XenevaOS
Loading...
Searching...
No Matches
XenevaOS
Libs
XEClib
includes
poll.h
Go to the documentation of this file.
1
30
#ifndef __POLL_H__
31
#define __POLL_H__
32
33
#include <
_xeneva.h
>
34
35
#ifdef __cplusplus
36
XE_EXTERN
{
37
#endif
38
39
#define POLLIN 0x001
40
#define POLLPRI 0x002
41
#define POLLOUT 0x004
42
#define POLLERR 0x008
43
#define POLLHUP 0x010
44
#define POLLNVAL 0x020
45
#define POLLRDNORM 0x040
46
#define POLLRDBAND 0x080
47
#define POLLWRNORM 0x100
48
#define POLLWRBAND 0x200
49
50
#ifndef POLLMSG
51
#define POLLMSG 0x400
52
#define POLLRDHUP 0x2000
53
#endif
54
typedef
unsigned
long
nfds_t
;
55
56
struct
pollfd
{
57
int
fd
;
58
short
events
;
59
short
revents
;
60
};
61
70
XE_LIB
int
poll
(
struct
pollfd
* fds,
nfds_t
num_fd,
int
timeout);
71
72
#ifdef __cplusplus
73
}
74
#endif
75
76
#endif
nfds_t
unsigned long int nfds_t
Definition
poll.h:59
poll
XE_LIB int poll(struct pollfd *fds, nfds_t num_fd, int timeout)
poll – monitor multiple file descriptors for events
_xeneva.h
XE_LIB
#define XE_LIB
Definition
_xeneva.h:55
XE_EXTERN
#define XE_EXTERN
Definition
_xeneva.h:50
pollfd
Definition
poll.h:56
pollfd::fd
int fd
Definition
poll.h:57
pollfd::revents
short revents
Definition
poll.h:59
pollfd::events
short events
Definition
poll.h:58
Generated by
1.9.8