4be7a2dcf3
by the application, all NetBSD interfaces are made visible, even if some other feature-test macro (like _POSIX_C_SOURCE) is defined. <sys/featuretest.h> defined _NETBSD_SOURCE if none of _ANSI_SOURCE, _POSIX_C_SOURCE and _XOPEN_SOURCE is defined, so as to preserve existing behaviour. This has two major advantages: + Programs that require non-POSIX facilities but define _POSIX_C_SOURCE can trivially be overruled by putting -D_NETBSD_SOURCE in their CFLAGS. + It makes most of the #ifs simpler, in that they're all now ORs of the various macros, rather than having checks for (!defined(_ANSI_SOURCE) || !defined(_POSIX_C_SOURCE) || !defined(_XOPEN_SOURCE)) all over the place. I've tried not to change the semantics of the headers in any case where _NETBSD_SOURCE wasn't defined, but there were some places where the current semantics were clearly mad, and retaining them was harder than correcting them. In particular, I've mostly normalised things so that _ANSI_SOURCE gets you the smallest set of stuff, then _POSIX_C_SOURCE, _XOPEN_SOURCE and _NETBSD_SOURCE in that order. Tested by building for vax, encouraged by thorpej, and uncontested in tech-userlevel for a week. |
||
---|---|---|
.. | ||
sys | ||
compat_defs.h | ||
compat_pwd.h | ||
config.h.in | ||
configure | ||
configure.ac | ||
db.h | ||
defs.mk.in | ||
fgetln.c | ||
flock.c | ||
fts.h | ||
getmode.c | ||
glob.h | ||
issetugid.c | ||
lchflags.c | ||
lchmod.c | ||
lchown.c | ||
Makefile | ||
md2.h | ||
md4.h | ||
md5.h | ||
mpool.h | ||
namespace.h | ||
nl_types.h | ||
pread.c | ||
putc_unlocked.c | ||
pwrite.c | ||
README | ||
rmd160.h | ||
setenv.c | ||
setgroupent.c | ||
setpassent.c | ||
setprogname.c | ||
sha1.h | ||
snprintf.c | ||
tzfile.h | ||
vis.h |
$NetBSD: README,v 1.8 2002/09/29 07:05:28 lukem Exp $ Special notes for cross-hosting a NetBSD build on certain platforms. Only those platforms which have been tested to complete a "build.sh" run are listed. ===== HP-UX: * zlib must be available. This will be fixed in the future to include zlib in libnbcompat. ===== LINUX: * Tested on RedHat Linux 7.1 (i386). Tested on RedHat Linux 7.3 (i686) on 16 Sep 2002. Requires "LANG=C" in the environment. * The gcc (and libstdc++, if needed) package must be installed, along with the typical system development packages (glibc-devel, etc.). * The ncurses-devel package must be installed (for nbinfo). * The zlib and zlib-devel packages must be installed. This will be fixed in the future to include zlib in libnbcompat. ===== NETBSD (earlier releases): * Tested on NetBSD 1.5.2 (machine-independently). * Should need no special setup. ===== SOLARIS: * Tested on Solaris/x86 8 (5.8) with gcc 2.95.2 and Solaris/sparc 8 (5.8) with gcc 3.2 (not yet tested with SUNWspro). * $HOST_CC needs to be set properly (for gcc, it should be set to "gcc", otherwise the improper /usr/ucb/cc may be invoked by accident). * The SUNWzlib package (or a built version of zlib visible to $HOST_CC, such as SMCzlib from sunfreeware.com) must be installed. This will be fixed in the future to include zlib in libnbcompat. * Needs the following paths, in this order, in $PATH: /usr/xpg4/bin /usr/ccs/bin <path to host C and C++ compilers> /usr/bin /usr/ucb may optionally be placed before /usr/bin, per your preference, but /usr/ucb *MUST NOT* be before /usr/ccs/bin or before the path to the host C and C++ compilers.