xref: /minix3/minix/lib/libasyn/asyn.h (revision 433d6423c39e34ec4b79c950597bb2d236f886be)
1*433d6423SLionel Sambuc /*	asyn.h - async I/O
2*433d6423SLionel Sambuc  *							Author: Kees J. Bot
3*433d6423SLionel Sambuc  *								7 Jul 1997
4*433d6423SLionel Sambuc  * Minix-vmd compatible asynchio(3) using BSD select(2).
5*433d6423SLionel Sambuc  */
6*433d6423SLionel Sambuc #define nil 0
7*433d6423SLionel Sambuc #include <sys/types.h>
8*433d6423SLionel Sambuc #include <fcntl.h>
9*433d6423SLionel Sambuc #include <sys/ioctl.h>
10*433d6423SLionel Sambuc #include <sys/asynchio.h>
11*433d6423SLionel Sambuc #include <unistd.h>
12*433d6423SLionel Sambuc #include <string.h>
13*433d6423SLionel Sambuc #include <errno.h>
14*433d6423SLionel Sambuc 
15*433d6423SLionel Sambuc typedef struct _asynfd asynfd_t;
16*433d6423SLionel Sambuc 
17*433d6423SLionel Sambuc #undef IDLE
18*433d6423SLionel Sambuc 
19*433d6423SLionel Sambuc typedef enum state { IDLE, WAITING, PENDING } state_t;
20