kern/92360: Missing TAB3 in kernel headers

Robert Millan rmh at aybabtu.com
Thu Jan 26 04:50:08 PST 2006


>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:


More information about the freebsd-bugs mailing list