| PMGETFD(3) | PMGETFD(3) | 
int pmGetFd(pmContext *pmc, int *fd, int *nfdp);
| pmContext * | pmc | pmContext object: must be a PM_COMPOSITEtype | |
| int * | fd | File descriptors of context | |
| int * | nfdp | Number of entries in fdarray | |
| 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 |