NetBSD-Bugs archive

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

standards/38290: IXANY Incorrect Feature Test Macro [IEEE Std 1003.1]

>Number:         38290
>Category:       standards
>Synopsis:       IXANY Incorrect Feature Test Macro [IEEE Std 1003.1]
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    standards-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 24 10:20:00 +0000 2008
>Originator:     Adam Hoka
>Release:        NetBSD/i386 4.99.55
In /usr/include/termios.h, there is a define for the IXANY macro:

#if defined(_NETBSD_SOURCE)
#define IXANY           0x00000800      /* any char will restart after stop */

This marks this _NETBSD_SOURCE, however IXANY is defined by IEEE Std 1003.1 as 
an XSI extension.[1]

Thus it should be changed to:

#if defined(_XOPEN_SOURCE) || defined(_NETBSD_SOURCE)

So it will be usable for programs which expecting it to be avalible on a POSIX 



Home | Main Index | Thread Index | Old Index