PMGETFD(3)
PM Programmer's Manual
PMGETFD(3)
NAME
pmGetFd - extract file descriptors associated with a context

SYNOPSIS
int pmGetFd(pmContext *pmc, int *fd, int *nfdp);

ARGUMENTS
pmContext * pmc
IN
pmContext object: must be a PM_COMPOSITE type
int * fd
OUT
File descriptors of context
int * nfdp
IN
Number of entries in fd array
OUT
Number of file descriptors

IMPLEMENTATION LEVEL
BASE

DESCRIPTION
pmGetFd() extracts file descriptors associated with context pmc for select(2) or poll(2). It always sets the number of file descriptors to *nfdp and returns ENOSPC if the number of array entries is too small.

RETURN VALUES
PM_SUCCESS Success
ENOSPC Number of array entries is too small
EINVAL Number of array entries is less than zero
ENOMEM Not enough memory


$Id: pmGetFd.html,v 1.1.1.1 2002/02/12 02:00:13 kameyama Exp $