Subversion Repositories SvarDOS

Rev

Rev 616 | Details | Compare with Previous | Last modification | View Log | RSS feed

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