Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jan 2006 12:41:14 GMT
From:      Robert Millan <rmh@aybabtu.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/92360: Missing TAB3 in kernel headers
Message-ID:  <200601261241.k0QCfES3060934@www.freebsd.org>
Resent-Message-ID: <200601261250.k0QCo34P004189@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         92360
>Category:       kern
>Synopsis:       Missing TAB3 in kernel headers
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 26 12:50:02 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Robert Millan
>Release:        5.4-1-586  (Debian kernel)
>Organization:
>Environment:
GNU/kFreeBSD io.debian.net 5.4-1-586 #0 Mon Dec  5 19:45:10 CET 2005 i586 i386 AMD-K6(tm) 3D processor GNU/kFreeBSD

>Description:
TAB3 is not defined in <sys/ioctl_compat.h>.  This macro is required by POSIX:
  http://www.opengroup.org/onlinepubs/009695399/basedefs/termios.h.html

Its value should be the same as XTABS, which is already defined.

Patch below.

>How-To-Repeat:
              
>Fix:
diff -ur src.old/sys/sys/ioctl_compat.h src/sys/sys/ioctl_compat.h
--- src.old/sys/sys/ioctl_compat.h      2006-01-10 10:19:10.000000000 +0100
+++ src/sys/sys/ioctl_compat.h  2006-01-26 13:32:04.000000000 +0100
@@ -110,7 +110,8 @@
 #define                        TAB0    0x00000000
 #define                        TAB1    0x00000400      /* tty 37 */
 #define                        TAB2    0x00000800
-#define                XTABS           0x00000c00      /* expand tabs on output */
+#define                        TAB3    0x00000c00
+#define                XTABS           TAB3            /* expand tabs on output */
 #define                CRDELAY         0x00003000      /* \r delay */
 #define                        CR0     0x00000000
 #define                        CR1     0x00001000      /* tn 300 */

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601261241.k0QCfES3060934>