mirror of
https://github.com/siemens-mobile-hacks/siemens-process-library.git
synced 2026-11-25 23:57:42 +00:00
22 lines
425 B
C
Executable file
22 lines
425 B
C
Executable file
#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
|