summaryrefslogtreecommitdiff
path: root/minix/lib/libasyn/asyn_pending.c
blob: fa5f74b129847100547bd425a0c5316a87a0d883 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*	asyn_pending() - any results pending?		Author: Kees J. Bot
 *								7 Jul 1997
 */
#include "asyn.h"

int asyn_pending(asynchio_t *asyn, int fd, int op)
/* Check if a result of an operation is pending.  (This is easy with
 * select(2), because no operation is actually happening.)
 */
{
	if ((unsigned) fd >= FD_SETSIZE) { errno= EBADF; return -1; }

	return 0;
}