1 /* asyn_pending() - any results pending? Author: Kees J. Bot 2 * 7 Jul 1997 3 */ 4 #include "asyn.h" 5 asyn_pending(asynchio_t * asyn,int fd,int op)6int asyn_pending(asynchio_t *asyn, int fd, int op) 7 /* Check if a result of an operation is pending. (This is easy with 8 * select(2), because no operation is actually happening.) 9 */ 10 { 11 if ((unsigned) fd >= FD_SETSIZE) { errno= EBADF; return -1; } 12 13 return 0; 14 } 15