Subversion Repositories SvarDOS

Rev

Rev 616 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 616 Rev 676
1
/*!\file sys/poll.h
1
/*!\file sys/poll.h
2
 *
2
 *
3
 */
3
 */
4
#ifndef __SYS_POLL_H
4
#ifndef __SYS_POLL_H
5
#define __SYS_POLL_H
5
#define __SYS_POLL_H
6
 
6
 
7
#define POLLIN   0x0001
7
#define POLLIN   0x0001
8
#define POLLPRI  0x0002   /* not used */
8
#define POLLPRI  0x0002   /* not used */
9
#define POLLOUT  0x0004
9
#define POLLOUT  0x0004
10
#define POLLERR  0x0008
10
#define POLLERR  0x0008
11
#define POLLHUP  0x0010   /* not used */
11
#define POLLHUP  0x0010   /* not used */
12
#define POLLNVAL 0x0020   /* not used */
12
#define POLLNVAL 0x0020   /* not used */
13
 
13
 
14
struct pollfd {
14
struct pollfd {
15
       int fd;
15
       int fd;
16
       int events;     /* in param: what to poll for */
16
       int events;     /* in param: what to poll for */
17
       int revents;    /* out param: what events occured */
17
       int revents;    /* out param: what events occured */
18
     };
18
     };
19
 
19
 
20
extern int poll (struct pollfd *p, int num, int timeout);
20
extern int poll (struct pollfd *p, int num, int timeout);
21
 
21
 
22
#endif
22
#endif
23
 
23