chiark / gitweb /
eglibc (2.11.3-4+deb6u3) squeeze-lts; urgency=medium
[eglibc.git] / debian / patches / hurd-i386 / submitted-ioctl-unsigned-size_t.diff
1 Add some basic types for ioctls.
2
3 http://sources.redhat.com/ml/libc-alpha/2007-07/msg00078.html
4
5 ---
6  sysdeps/mach/hurd/bits/ioctls.h |   14 +++++++++++++-
7  1 file changed, 13 insertions(+), 1 deletion(-)
8
9 --- a/sysdeps/mach/hurd/bits/ioctls.h
10 +++ b/sysdeps/mach/hurd/bits/ioctls.h
11 @@ -149,9 +149,17 @@
12  #define        _IOT_SIMPLE(type)       _IOT (_IOTS (type), 1, 0, 0, 0, 0)
13  
14  /* Basic C types.  */
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)
24 +
25 +#define        _IOT__IOTBASE_size_t    _IOT_SIMPLE (size_t)
26 +#define        _IOT__IOTBASE_ssize_t   _IOT_SIMPLE (ssize_t)
27  
28  
29  /* Standard flavors of ioctls.
30 @@ -174,6 +182,10 @@
31  #define _IOC_ENCODE_TYPE_1(typespec)   _IOC_ENCODE_TYPE_2(typespec)
32  #define _IOC_ENCODE_TYPE_2(typespec)   _IOT_##typespec
33  
34 +/* Also, ignore signedness.  */
35 +#define        _IOTBASE_unsigned
36 +#define        _IOTBASE_signed
37 +
38  
39  /* ioctls verbatim from 4.4 <sys/ioctl.h>.  */
40