add sigio support

extend code to cope with edge triggered event notification
add io_eagain() so that you can notify io_wait if accept() returned EAGAIN
This commit is contained in:
leitner
2003-09-12 22:03:51 +00:00
parent 5a4d2cc732
commit 2a2e1ddc75
15 changed files with 262 additions and 32 deletions

4
io.h
View File

@@ -45,6 +45,10 @@ void io_wait();
void io_waituntil(tai6464 t);
void io_check();
/* signal that read/accept/whatever returned EAGAIN */
/* needed for SIGIO */
void io_eagain(int64 d);
/* return next descriptor from io_wait that can be read from */
int64 io_canread();
/* return next descriptor from io_wait that can be written to */