1#ifndef SYS_POLL_H 2#define SYS_POLL_H 3 4typedef int nfds_t; 5 6struct pollfd 7{ 8 int fd; 9 short events; 10 short revents; 11}; 12 13int poll(struct pollfd fds[], nfds_t nfds, int timeout); 14 15#endif /* SYS_POLL_H */ 16