[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: termios and glibc versions



On Sun, Jun 16, 2002 at 01:51:46AM +0200, Guillem Jover wrote:
> While porting util-linux i've found that in the Hurd there is no define 
> for TABDLY and TAB3 when including <termios.h>. I've looked the SUSv2 and
> SUSv3 drafts and it mentions this two defines. Also XTABS is defined, but not
> mentioned in the drafts.

Can you take a look at this little patch against glibc ?

kind regards
guillem

--- glibc-2.2.5/sysdeps/mach/hurd/bits/ioctls.h	Tue Jul 10 02:56:39 2001
+++ glibc-2.2.5-patched/sysdeps/mach/hurd/bits/ioctls.h	Mon Jun 17 18:03:24 2002
@@ -54,9 +54,9 @@
 	  [29,28]: datum #0 type (enum __ioctl_datum)
 	  [27,26]: datum #1 type (enum __ioctl_datum)
 	  [24,25]: datum #2 type (enum __ioctl_datum)
-	  [23,19]: datum #0 count	[0,31]
+	  [23,19]: datum #0 count [0,31]
 	  [18,14]: datum #1 count [0,31]
-	  [13,11]: datum #2 count [0,3]
+	  [13,11]: datum #2 count [0,31]
      bits [07,10]: group (letter - 'f': ['f','v'])
      bits [00,06]: command	[0,127]
 
@@ -288,11 +288,13 @@
 #define			NL1	0x00000100	/* tty 37 */
 #define			NL2	0x00000200	/* vt05 */
 #define			NL3	0x00000300
-#define		TBDELAY		0x00000c00	/* horizontal tab delay */
+#define		TABDLY		0x00000c00	/* horizontal tab delay */
+#define		TBDELAY		TABDLY
 #define			TAB0	0x00000000
 #define			TAB1	0x00000400	/* tty 37 */
 #define			TAB2	0x00000800
-#define		XTABS		0x00000c00	/* expand tabs on output */
+#define			TAB3	0x00000c00	/* expand tabs on output */
+#define		XTABS		TAB3
 #define		CRDELAY		0x00003000	/* \r delay */
 #define			CR0	0x00000000
 #define			CR1	0x00001000	/* tn 300 */


-- 
To UNSUBSCRIBE, email to debian-hurd-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: