NetBSD Problem Report #38290

From martin@duskware.de  Mon Mar 24 10:18:06 2008
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id F1E9663B8A5
	for <gnats-bugs@gnats.netbsd.org>; Mon, 24 Mar 2008 10:18:05 +0000 (UTC)
Message-Id: <20080324015350.C16DA63B8A5@narn.NetBSD.org>
Date: Mon, 24 Mar 2008 01:53:50 +0000 (UTC)
From: adam.hoka@gmail.com
Reply-To: adam.hoka@gmail.com
To: netbsd-bugs-owner@NetBSD.org
Subject: IXANY Incorrect Feature Test Macro [IEEE Std 1003.1]
X-Send-Pr-Version: www-1.0

>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:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 24 10:20:00 +0000 2008
>Closed-Date:    Sun Jul 31 21:35:25 +0000 2016
>Last-Modified:  Sun Jul 31 21:35:25 +0000 2016
>Originator:     Adam Hoka
>Release:        NetBSD/i386 4.99.55
>Organization:
>Environment:
>Description:
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 */
#endif

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 system.


--
1. http://www.opengroup.org/onlinepubs/009695399/basedefs/termios.h.html
>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:
From: "David A. Holland" <dholland@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/38290 CVS commit: src/sys/sys
Date: Sun, 31 Jul 2016 21:34:53 +0000

 Module Name:	src
 Committed By:	dholland
 Date:		Sun Jul 31 21:34:53 UTC 2016

 Modified Files:
 	src/sys/sys: termios.h

 Log Message:
 PR 38290 Adam Hoka: IXANY should exist for _XOPEN_SOURCE


 To generate a diff of this commit:
 cvs rdiff -u -r1.32 -r1.33 src/sys/sys/termios.h

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 31 Jul 2016 21:35:25 +0000
State-Changed-Why:
fixed, thanks


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.