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