Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src
Module Name: src
Committed By: bjh21
Date: Mon Apr 28 23:16:32 UTC 2003
Modified Files:
src/include: ctype.h dirent.h dlfcn.h errno.h fnmatch.h getopt.h glob.h
grp.h limits.h math.h ndbm.h netdb.h pwd.h sched.h setjmp.h
signal.h stdio.h stdlib.h string.h strings.h time.h unistd.h
utmpx.h wchar.h
src/include/arpa: inet.h
src/sys/arch/alpha/include: limits.h signal.h stdarg.h types.h
src/sys/arch/amd64/include: limits.h signal.h stdarg.h types.h
src/sys/arch/arm/include: limits.h signal.h stdarg.h types.h
src/sys/arch/hp700/include: param.h
src/sys/arch/hppa/include: limits.h math.h param.h signal.h types.h
src/sys/arch/i386/include: limits.h signal.h stdarg.h types.h
src/sys/arch/m68k/include: limits.h signal.h stdarg.h types.h
src/sys/arch/mips/include: limits.h signal.h stdarg.h types.h
src/sys/arch/pc532/include: limits.h signal.h stdarg.h types.h
src/sys/arch/powerpc/include: limits.h signal.h stdarg.h types.h
src/sys/arch/sh3/include: limits.h signal.h stdarg.h types.h
src/sys/arch/sh5/include: limits.h signal.h stdarg.h types.h
src/sys/arch/sparc/include: limits.h signal.h stdarg.h types.h
src/sys/arch/vax/include: limits.h signal.h stdarg.h types.h
src/sys/net: if.h
src/sys/netinet: in.h
src/sys/netinet6: in6.h
src/sys/sys: dirent.h endian.h errno.h event.h fcntl.h featuretest.h
ipc.h mman.h mount.h msg.h poll.h resource.h sched.h sem.h shm.h
signal.h sigtypes.h socket.h stat.h syslimits.h syslog.h termios.h
time.h types.h uio.h un.h unistd.h utsname.h wait.h
src/tools/compat: Makefile defs.mk.in
Log Message:
Add a new feature-test macro, _NETBSD_SOURCE. If this is defined
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.
To generate a diff of this commit:
cvs rdiff -r1.21 -r1.22 src/include/ctype.h
cvs rdiff -r1.17 -r1.18 src/include/dirent.h src/include/wchar.h
cvs rdiff -r1.13 -r1.14 src/include/dlfcn.h
cvs rdiff -r1.4 -r1.5 src/include/errno.h src/include/getopt.h
cvs rdiff -r1.9 -r1.10 src/include/fnmatch.h src/include/utmpx.h
cvs rdiff -r1.15 -r1.16 src/include/glob.h
cvs rdiff -r1.16 -r1.17 src/include/grp.h
cvs rdiff -r1.19 -r1.20 src/include/limits.h
cvs rdiff -r1.24 -r1.25 src/include/math.h src/include/signal.h
cvs rdiff -r1.8 -r1.9 src/include/ndbm.h src/include/strings.h
cvs rdiff -r1.28 -r1.29 src/include/netdb.h
cvs rdiff -r1.26 -r1.27 src/include/pwd.h
cvs rdiff -r1.2 -r1.3 src/include/sched.h
cvs rdiff -r1.18 -r1.19 src/include/setjmp.h
cvs rdiff -r1.50 -r1.51 src/include/stdio.h
cvs rdiff -r1.61 -r1.62 src/include/stdlib.h
cvs rdiff -r1.23 -r1.24 src/include/string.h
cvs rdiff -r1.29 -r1.30 src/include/time.h
cvs rdiff -r1.91 -r1.92 src/include/unistd.h
cvs rdiff -r1.12 -r1.13 src/include/arpa/inet.h
cvs rdiff -r1.7 -r1.8 src/sys/arch/alpha/include/limits.h
cvs rdiff -r1.6 -r1.7 src/sys/arch/alpha/include/signal.h
cvs rdiff -r1.11 -r1.12 src/sys/arch/alpha/include/stdarg.h
cvs rdiff -r1.28 -r1.29 src/sys/arch/alpha/include/types.h
cvs rdiff -r1.2 -r1.3 src/sys/arch/amd64/include/limits.h
cvs rdiff -r1.1 -r1.2 src/sys/arch/amd64/include/signal.h \
src/sys/arch/amd64/include/stdarg.h src/sys/arch/amd64/include/types.h
cvs rdiff -r1.3 -r1.4 src/sys/arch/arm/include/limits.h
cvs rdiff -r1.2 -r1.3 src/sys/arch/arm/include/signal.h
cvs rdiff -r1.5 -r1.6 src/sys/arch/arm/include/stdarg.h
cvs rdiff -r1.7 -r1.8 src/sys/arch/arm/include/types.h
cvs rdiff -r1.1 -r1.2 src/sys/arch/hp700/include/param.h
cvs rdiff -r1.2 -r1.3 src/sys/arch/hppa/include/limits.h \
src/sys/arch/hppa/include/param.h
cvs rdiff -r1.1 -r1.2 src/sys/arch/hppa/include/math.h \
src/sys/arch/hppa/include/signal.h
cvs rdiff -r1.4 -r1.5 src/sys/arch/hppa/include/types.h
cvs rdiff -r1.15 -r1.16 src/sys/arch/i386/include/limits.h \
src/sys/arch/i386/include/signal.h
cvs rdiff -r1.19 -r1.20 src/sys/arch/i386/include/stdarg.h
cvs rdiff -r1.41 -r1.42 src/sys/arch/i386/include/types.h
cvs rdiff -r1.14 -r1.15 src/sys/arch/m68k/include/limits.h
cvs rdiff -r1.11 -r1.12 src/sys/arch/m68k/include/signal.h
cvs rdiff -r1.19 -r1.20 src/sys/arch/m68k/include/stdarg.h
cvs rdiff -r1.18 -r1.19 src/sys/arch/m68k/include/types.h
cvs rdiff -r1.17 -r1.18 src/sys/arch/mips/include/limits.h
cvs rdiff -r1.18 -r1.19 src/sys/arch/mips/include/signal.h
cvs rdiff -r1.22 -r1.23 src/sys/arch/mips/include/stdarg.h
cvs rdiff -r1.36 -r1.37 src/sys/arch/mips/include/types.h
cvs rdiff -r1.11 -r1.12 src/sys/arch/pc532/include/limits.h
cvs rdiff -r1.8 -r1.9 src/sys/arch/pc532/include/signal.h
cvs rdiff -r1.16 -r1.17 src/sys/arch/pc532/include/stdarg.h
cvs rdiff -r1.28 -r1.29 src/sys/arch/pc532/include/types.h
cvs rdiff -r1.10 -r1.11 src/sys/arch/powerpc/include/limits.h
cvs rdiff -r1.11 -r1.12 src/sys/arch/powerpc/include/signal.h
cvs rdiff -r1.12 -r1.13 src/sys/arch/powerpc/include/stdarg.h
cvs rdiff -r1.19 -r1.20 src/sys/arch/powerpc/include/types.h
cvs rdiff -r1.5 -r1.6 src/sys/arch/sh3/include/limits.h \
src/sys/arch/sh3/include/signal.h src/sys/arch/sh3/include/stdarg.h
cvs rdiff -r1.14 -r1.15 src/sys/arch/sh3/include/types.h
cvs rdiff -r1.1 -r1.2 src/sys/arch/sh5/include/limits.h \
src/sys/arch/sh5/include/stdarg.h
cvs rdiff -r1.7 -r1.8 src/sys/arch/sh5/include/signal.h
cvs rdiff -r1.6 -r1.7 src/sys/arch/sh5/include/types.h
cvs rdiff -r1.13 -r1.14 src/sys/arch/sparc/include/limits.h
cvs rdiff -r1.10 -r1.11 src/sys/arch/sparc/include/signal.h
cvs rdiff -r1.18 -r1.19 src/sys/arch/sparc/include/stdarg.h
cvs rdiff -r1.31 -r1.32 src/sys/arch/sparc/include/types.h
cvs rdiff -r1.11 -r1.12 src/sys/arch/vax/include/limits.h
cvs rdiff -r1.8 -r1.9 src/sys/arch/vax/include/signal.h
cvs rdiff -r1.13 -r1.14 src/sys/arch/vax/include/stdarg.h
cvs rdiff -r1.25 -r1.26 src/sys/arch/vax/include/types.h
cvs rdiff -r1.86 -r1.87 src/sys/net/if.h
cvs rdiff -r1.60 -r1.61 src/sys/netinet/in.h
cvs rdiff -r1.41 -r1.42 src/sys/netinet6/in6.h
cvs rdiff -r1.14 -r1.15 src/sys/sys/dirent.h
cvs rdiff -r1.5 -r1.6 src/sys/sys/endian.h
cvs rdiff -r1.30 -r1.31 src/sys/sys/errno.h src/sys/sys/mman.h
cvs rdiff -r1.7 -r1.8 src/sys/sys/event.h
cvs rdiff -r1.23 -r1.24 src/sys/sys/fcntl.h src/sys/sys/syslog.h
cvs rdiff -r1.3 -r1.4 src/sys/sys/featuretest.h
cvs rdiff -r1.24 -r1.25 src/sys/sys/ipc.h src/sys/sys/termios.h
cvs rdiff -r1.101 -r1.102 src/sys/sys/mount.h
cvs rdiff -r1.13 -r1.14 src/sys/sys/msg.h src/sys/sys/sem.h
cvs rdiff -r1.6 -r1.7 src/sys/sys/poll.h
cvs rdiff -r1.20 -r1.21 src/sys/sys/resource.h src/sys/sys/syslimits.h
cvs rdiff -r1.16 -r1.17 src/sys/sys/sched.h
cvs rdiff -r1.31 -r1.32 src/sys/sys/shm.h
cvs rdiff -r1.50 -r1.51 src/sys/sys/signal.h
cvs rdiff -r1.2 -r1.3 src/sys/sys/sigtypes.h
cvs rdiff -r1.66 -r1.67 src/sys/sys/socket.h
cvs rdiff -r1.42 -r1.43 src/sys/sys/stat.h
cvs rdiff -r1.37 -r1.38 src/sys/sys/time.h
cvs rdiff -r1.57 -r1.58 src/sys/sys/types.h
cvs rdiff -r1.25 -r1.26 src/sys/sys/uio.h src/sys/sys/un.h
cvs rdiff -r1.26 -r1.27 src/sys/sys/unistd.h
cvs rdiff -r1.9 -r1.10 src/sys/sys/utsname.h
cvs rdiff -r1.18 -r1.19 src/sys/sys/wait.h
cvs rdiff -r1.22 -r1.23 src/tools/compat/Makefile
cvs rdiff -r1.6 -r1.7 src/tools/compat/defs.mk.in
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index