NetBSD Problem Report #37734
From smb@cs.columbia.edu Wed Jan 9 23:45:33 2008
Return-Path: <smb@cs.columbia.edu>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 82F6D63BD87
for <gnats-bugs@gnats.NetBSD.org>; Wed, 9 Jan 2008 23:45:33 +0000 (UTC)
Message-Id: <20080109234530.90ADABC323@bigboy.machshav.com>
Date: Wed, 9 Jan 2008 18:45:30 -0500 (EST)
From: smb@cs.columbia.edu
Reply-To: smb@cs.columbia.edu
To: gnats-bugs@NetBSD.org
Subject: inappropriate tests against _XOPEN_SOURCE in some #include files
X-Send-Pr-Version: 3.95
>Number: 37734
>Category: standards
>Synopsis: inappropriate tests against _XOPEN_SOURCE in some #include files
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: standards-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jan 09 23:50:00 +0000 2008
>Closed-Date: Sun Jun 12 01:44:20 +0000 2016
>Last-Modified: Sun Jun 12 01:44:20 +0000 2016
>Originator: Steven M. Bellovin
>Release: NetBSD 4.99.34
>Organization:
>Environment:
System: NetBSD bigboy.machshav.com 4.99.34 NetBSD 4.99.34 (BIGBOY) #0: Sat Nov 3 16:52:15 EDT 2007 smb@bigboy.machshav.com:/usr/BUILD/obj/sys/arch/i386/compile/BIGBOY i386
Architecture: i386
Machine: i386
>Description:
Several .h files -- at least stdlib.h, unistd.h, time.h, and wordexp.h
-- compare _XOPEN_SOURCE against 4. This is wrong. Open Group
standards (http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_02.html)
say it should be set to 600; the values listed in <sys/featuretest.h>
suggest that the intended value in thoses tests should be 400.
>How-To-Repeat:
See above.
>Fix:
See above.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 12 Jun 2016 01:44:20 +0000
State-Changed-Why:
There are no such uses left (nor even any uses of 400) so I guess someone
has cleaned this up in the meantime.
>Unformatted:
(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-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.