Date: Sat, 28 Oct 1995 05:29:30 +1000 From: Bruce Evans <bde@zeta.org.au> To: julian@ref.tfs.com, vcapuano@esoc.esa.de Cc: freebsd-hackers@freebsd.org Subject: Re: _SC_PAGESIZE patch to sysconf(3) Message-ID: <199510271929.FAA25371@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199510271929.FAA25371>