From owner-cvs-include Mon Mar 31 13:15:35 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id NAA10965 for cvs-include-outgoing; Mon, 31 Mar 1997 13:15:35 -0800 (PST) Received: from werple.net.au (melb.werple.net.au [203.9.190.18]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id NAA10936 for ; Mon, 31 Mar 1997 13:15:15 -0800 (PST) Received: (qmail 10954 invoked by uid 5); 31 Mar 1997 21:15:09 -0000 Received: (from jb@localhost) by freebsd1.cimlogic.com.au (8.7.5/8.7.3) id HAA09273; Tue, 1 Apr 1997 07:10:15 +1000 (EST) From: John Birrell Message-Id: <199703312110.HAA09273@freebsd1.cimlogic.com.au> Subject: Re: cvs commit: src/include unistd.h To: bde@zeta.org.au (Bruce Evans) Date: Tue, 1 Apr 1997 07:10:14 +1000 (EST) Cc: peter@freefall.freebsd.org, peter@spinner.dialix.com, cvs-all@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-include@freefall.freebsd.org In-Reply-To: <199703311510.BAA12303@godzilla.zeta.org.au> from Bruce Evans at "Apr 1, 97 01:10:13 am" X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-include@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Bruce Evans wrote: > glibc is more careful about this. It declares getopt stuff if > __USE_POSIX2 is defined. __USE_POSIX2 is defined if > > defined _POSIX_C_SOURCE >= 2 || defined _XOPEN_SOURCE > This doesn't comply with POSIX 1003.1b (and I assume .c). For POSIX 1003.1b, the _POSIX_C_SOURCE feature test is supposed to be compared against 199309L. And for 1003.1c, I guess that it is supposed to be 1996XXL where XX is the month that the update was (finally) published. And _POSIX_SOURCE still has to be tested for POSIX 1003.1[a]. -- John Birrell - jb@cimlogic.com.au; jb@netbsd.org; jb@freebsd.org CIMlogic Pty Ltd, 119 Cecil Street, South Melbourne Vic 3205, Australia Tel +61 3 9690 6900 Fax +61 3 9690 6650 Mob +61 418 353 137