gbdt-rs/sgx/gbdt-sgx-test/common/inc/poll.h (10 lines of code) (raw):
#ifndef _POLL_H_
#define _POLL_H_
/* Type used for the number of file descriptors. */
typedef unsigned long int nfds_t;
/* Data structure describing a polling request. */
struct pollfd
{
int fd; /* File descriptor to poll. */
short int events; /* Types of events poller cares about. */
short int revents; /* Types of events that actually occurred. */
};
#endif