| PMGETFD(3) | PMGETFD(3) | 
int pmGetFd(pmContext *pmc, int *fd, int *nfdp);
pmContext * | 
  pmc | 
  pmContext object: must be a PM_COMPOSITE type | 
|
int * | 
  fd | 
  File descriptors of context | |
int * | 
  nfdp | 
  Number of entries in fd array | 
|
| Number of file descriptors | 
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.
PM_SUCCESS | 
  Success | 
ENOSPC | 
  Number of array entries is too small | 
EINVAL | 
  Number of array entries is less than zero | 
ENOMEM | 
  Not enough memory |