/usr/include/diet/linux/eventpoll.h is in dietlibc-dev 0.33~cvs20120325-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #ifndef _LINUX_EVENTPOLL_H
#define _LINUX_EVENTPOLL_H
#include <sys/cdefs.h>
#include <sys/ioctl.h>
#include <poll.h>
#include <sys/shm.h>
__BEGIN_DECLS
#define POLLFD_X_PAGE (PAGE_SIZE / sizeof(struct pollfd))
#define EP_FDS_PAGES(n) (((n) + POLLFD_X_PAGE - 1) / POLLFD_X_PAGE)
#define EP_MAP_SIZE(n) (EP_FDS_PAGES(n) * PAGE_SIZE * 2)
struct evpoll {
int ep_timeout;
unsigned long ep_resoff;
};
__END_DECLS
#endif
|