This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH,HURD] Fix sgttyb ioctl value
- From: Samuel Thibault <samuel dot thibault at gnu dot org>
- To: libc-alpha at sourceware dot org, roland at gnu dot org, bug-hurd at gnu dot org
- Date: Wed, 2 Nov 2011 00:33:29 +0100
- Subject: [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. */