Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Oct 1995 13:11:18 -0700 (MST)
From:      Terry Lambert <terry@lambert.org>
To:        bde@zeta.org.au (Bruce Evans)
Cc:        julian@ref.tfs.com, vcapuano@esoc.esa.de, freebsd-hackers@FreeBSD.ORG
Subject:   Re: _SC_PAGESIZE patch to sysconf(3)
Message-ID:  <199510272011.NAA23822@phaeton.artisoft.com>
In-Reply-To: <199510271929.FAA25371@godzilla.zeta.org.au> from "Bruce Evans" at Oct 28, 95 05:29:30 am

next in thread | previous in thread | raw e-mail | index | archive | help
> >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.

Disagree.  Non-standard system features should be diked out so that
code portability can be determined with a compilation attempt.

SunOS did this with their _POSIX_SOURCE as well.


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199510272011.NAA23822>