1 Add some basic types for ioctls.
3 http://sources.redhat.com/ml/libc-alpha/2007-07/msg00078.html
6 sysdeps/mach/hurd/bits/ioctls.h | 14 +++++++++++++-
7 1 file changed, 13 insertions(+), 1 deletion(-)
9 --- a/sysdeps/mach/hurd/bits/ioctls.h
10 +++ b/sysdeps/mach/hurd/bits/ioctls.h
12 #define _IOT_SIMPLE(type) _IOT (_IOTS (type), 1, 0, 0, 0, 0)
15 -#define _IOT__IOTBASE_int _IOT_SIMPLE (int)
16 #define _IOT__IOTBASE_char _IOT_SIMPLE (char)
17 +#define _IOT__IOTBASE_int _IOT_SIMPLE (int)
18 #define _IOT__IOTBASE_short _IOT_SIMPLE (short)
19 +#define _IOT__IOTBASE_long _IOT_SIMPLE (long)
20 +#define _IOT_char _IOT_SIMPLE (char)
21 +#define _IOT_int _IOT_SIMPLE (int)
22 +#define _IOT_short _IOT_SIMPLE (short)
23 +#define _IOT_long _IOT_SIMPLE (long)
25 +#define _IOT__IOTBASE_size_t _IOT_SIMPLE (size_t)
26 +#define _IOT__IOTBASE_ssize_t _IOT_SIMPLE (ssize_t)
29 /* Standard flavors of ioctls.
31 #define _IOC_ENCODE_TYPE_1(typespec) _IOC_ENCODE_TYPE_2(typespec)
32 #define _IOC_ENCODE_TYPE_2(typespec) _IOT_##typespec
34 +/* Also, ignore signedness. */
35 +#define _IOTBASE_unsigned
36 +#define _IOTBASE_signed
39 /* ioctls verbatim from 4.4 <sys/ioctl.h>. */