Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (19 sloc) 545 Bytes
#ifndef __POLL_H
#define __POLL_H
#define POLL_READ 1
#define POLL_WRITE 2
#define POLL_ERROR 4
struct poll {
int fd;
struct poll_event {
int fd;
int events;
int poll_init(struct poll *poll);
int poll_register(struct poll *poll, int fd, int events);
int poll_modify(struct poll *poll, int fd, int events);
int poll_remove_all(struct poll *poll, int fd);
int poll_remove(struct poll *poll, int fd, int events);
int poll_wait(struct poll *poll, long long milliseconds, struct poll_event *events, long long max_events);
Jump to Line
Something went wrong with that request. Please try again.