source: trunk/sys/dietlibc/include/sys/ioctl.h @ 1

Last change on this file since 1 was 1, checked in by alain, 5 years ago

First import

File size: 828 bytes
Line 
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
32int ioctl(int d, long int request, ...) __THROW;
33
34__END_DECLS
35
36#endif
Note: See TracBrowser for help on using the repository browser.