This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH,HURD] Fix sgttyb ioctl value


Hello,

Struct sgttyb contains 4 characters, not 6.

Samuel

2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>

* bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.

diff --git a/bits/ioctl-types.h b/bits/ioctl-types.h
index 58b78a6..ccfa4de 100644
--- a/bits/ioctl-types.h
+++ b/bits/ioctl-types.h
@@ -64,7 +64,7 @@ struct sgttyb
 };
 
 #define	_IOT_sgttyb	/* Hurd ioctl type field.  */ \
-  _IOT (_IOTS (char), 6, _IOTS (short int), 1, 0, 0)
+  _IOT (_IOTS (char), 4, _IOTS (short int), 1, 0, 0)
 
 #if defined TIOCGWINSZ || defined TIOCSWINSZ
 /* Type of ARG for TIOCGWINSZ and TIOCSWINSZ requests.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]