2023-08-02 12:48:20 +00:00
|
|
|
/* bits/poll.h: The pollfd data structure. */
|
|
|
|
|
|
|
|
#ifndef _BITS_POLL_H
|
|
|
|
#define _BITS_POLL_H
|
|
|
|
|
|
|
|
#include <bits/fixed-size-types.h>
|
|
|
|
|
2023-08-02 15:18:38 +00:00
|
|
|
#define POLLIN (1 << 0)
|
|
|
|
#define POLLERR (1 << 1)
|
|
|
|
#define POLLNVAL (1 << 2)
|
2023-08-14 11:22:41 +00:00
|
|
|
#define POLLHUP (1 << 3)
|
2023-08-02 12:48:20 +00:00
|
|
|
|
|
|
|
typedef __u64_t nfds_t;
|
|
|
|
|
|
|
|
struct pollfd
|
|
|
|
{
|
|
|
|
int fd;
|
|
|
|
short events;
|
|
|
|
short revents;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|