[PATCH,HURD] Fix sgttyb ioctl value
Samuel Thibault
samuel.thibault@gnu.org
Tue Nov 1 23:34:00 GMT 2011
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. */
More information about the Libc-alpha
mailing list