File: iopoll.h1

package info (click to toggle)
cvm 0.11-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 492 kB
  • ctags: 215
  • sloc: ansic: 1,777; makefile: 48; sh: 12
file content (18 lines) | stat: -rw-r--r-- 285 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef IOPOLL__H__
#define IOPOLL__H__

/* sysdep: -poll */
#define IOPOLL_SELECT

typedef struct {
  int fd;
  short events;
  short revents;
} iopoll_fd;

#define IOPOLL_READ 1
#define IOPOLL_WRITE 4

extern int iopoll(iopoll_fd* fds, unsigned nfds, unsigned long timeout);

#endif