From owner-freebsd-hackers Fri Oct 27 12:33:43 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id MAA14836 for hackers-outgoing; Fri, 27 Oct 1995 12:33:43 -0700 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id MAA14817 for ; Fri, 27 Oct 1995 12:33:32 -0700 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id FAA25371; Sat, 28 Oct 1995 05:29:30 +1000 Date: Sat, 28 Oct 1995 05:29:30 +1000 From: Bruce Evans Message-Id: <199510271929.FAA25371@godzilla.zeta.org.au> To: julian@ref.tfs.com, vcapuano@esoc.esa.de Subject: Re: _SC_PAGESIZE patch to sysconf(3) Cc: freebsd-hackers@freebsd.org Sender: owner-hackers@freebsd.org Precedence: bulk >It's not a bad addition, but it's not in the POSIX definitions >that I can see, though I only have the XPG4 definitions which >allign this call to posix-1 despite having some posix 2 definitions in it >(the posix 2 standard was still not approved when XPG4 went to print I think) >if this is not POSIX standard it should be hidden behind a >#ifndef _POSIX_SOURCE >> >> I was porting a program I developed on Solaris to FreeBSD when I got into a >> missing call: sysconf(_SC_PAGESIZE). I know I could use getpagesize(3), but >> I then had to ifdef my code. It's already hidden by using an identifier in implementation's namespace. An application that is careful enough to define _POSIX_SOURCE should be careful enough not to reference nonstandard indentifiers. Bruce