Rev | Line | |
---|
[1] | 1 | #ifndef _IOCTL_H |
---|
| 2 | #define _IOCTL_H |
---|
| 3 | |
---|
| 4 | #include <sys/cdefs.h> |
---|
| 5 | |
---|
| 6 | __BEGIN_DECLS |
---|
| 7 | |
---|
| 8 | #if defined(__i386__) || defined(__x86_64__) || defined(__ia64__) |
---|
| 9 | #include <sys/i386-ioctl.h> |
---|
| 10 | #elif defined(__alpha__) |
---|
| 11 | #include <sys/alpha-ioctl.h> |
---|
| 12 | #elif defined(__arm__) |
---|
| 13 | #include <sys/arm-ioctl.h> |
---|
| 14 | #elif defined(__sparc__) |
---|
| 15 | #include <sys/sparc-ioctl.h> |
---|
| 16 | #elif defined(__mips__) |
---|
| 17 | //#include <sys/mips-ioctl.h> |
---|
| 18 | #elif defined(__powerpc__) || defined(__powerpc64__) |
---|
| 19 | #include <sys/ppc-ioctl.h> |
---|
| 20 | #elif defined(__s390__) |
---|
| 21 | #include <sys/s390-ioctl.h> |
---|
| 22 | #elif defined(__hppa__) |
---|
| 23 | #include <sys/hppa-ioctl.h> |
---|
| 24 | #endif |
---|
| 25 | |
---|
| 26 | /* used for /dev/epoll */ |
---|
| 27 | #define EP_ALLOC _IOR('P', 1, int) |
---|
| 28 | #define EP_POLL _IOWR('P', 2, struct evpoll) |
---|
| 29 | #define EP_FREE _IO('P', 3) |
---|
| 30 | #define EP_ISPOLLED _IOWR('P', 4, struct pollfd) |
---|
| 31 | |
---|
| 32 | int ioctl(int d, long int request, ...) __THROW; |
---|
| 33 | |
---|
| 34 | __END_DECLS |
---|
| 35 | |
---|
| 36 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.