sprofalyze fixes
[minix.git] / lib / libasyn / asyn_pending.c
blobfa5f74b129847100547bd425a0c5316a87a0d883
1 /* asyn_pending() - any results pending? Author: Kees J. Bot
2 * 7 Jul 1997
3 */
4 #include "asyn.h"
6 int 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 */
11 if ((unsigned) fd >= FD_SETSIZE) { errno= EBADF; return -1; }
13 return 0;