X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=libs%2Fwatt32%2Fsys%2Fpoll.h;fp=libs%2Fwatt32%2Fsys%2Fpoll.h;h=2b0058075e60deceb3e652c5b430bcc22e5a2f4f;hb=214a070238552de6167bbf506cbc23006969a182;hp=0000000000000000000000000000000000000000;hpb=d3c8a942b99443abf0c11d9759994022ed6da597;p=oftp diff --git a/libs/watt32/sys/poll.h b/libs/watt32/sys/poll.h new file mode 100644 index 0000000..2b00580 --- /dev/null +++ b/libs/watt32/sys/poll.h @@ -0,0 +1,22 @@ +/*!\file sys/poll.h + * + */ +#ifndef __SYS_POLL_H +#define __SYS_POLL_H + +#define POLLIN 0x0001 +#define POLLPRI 0x0002 /* not used */ +#define POLLOUT 0x0004 +#define POLLERR 0x0008 +#define POLLHUP 0x0010 /* not used */ +#define POLLNVAL 0x0020 /* not used */ + +struct pollfd { + int fd; + int events; /* in param: what to poll for */ + int revents; /* out param: what events occured */ + }; + +extern int poll (struct pollfd *p, int num, int timeout); + +#endif