repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
vm, kernel, top: report memory usage of vm, kernel
[minix.git]
/
lib
/
libasyn
/
asyn.h
blob
301f34050c0d3b99ef902d79b2436f91a6ba8e2b
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
;