feature_tests.h: repurpose __UNLEASHED_VISIBLE
commitf81bd07ff459eb578aef8074550c0cb4c90f5b5f
authorLauri Tirkkonen <lotheac@iki.fi>
Wed, 2 Jan 2019 11:57:27 +0000 (2 13:57 +0200)
committerLauri Tirkkonen <lotheac@iki.fi>
Wed, 2 Jan 2019 13:55:56 +0000 (2 15:55 +0200)
tree5154fa9ba6e1ab81b1bc856a840fc9283baafc6c
parent11ce555dbf6b4c906c8ce3bb7439e08200495f6c
feature_tests.h: repurpose __UNLEASHED_VISIBLE

it is now set to 1 by default, 0 if user explicitly requests XPG or
POSIX (via _XOPEN_SOURCE or _POSIX_C_SOURCE), and it is always defined
after inclusion of feature_tests.h. this makes it more useful, a sort of
inverse replacement for __EXTENSIONS__ in illumos: these are nonstandard
interfaces that are available by default, but hidden if XPG or POSIX is
requested. illumos has kind-of-similar _STRICT_STDC/_STRICT_SYMBOLS, but
they do a subtly different thing and the existing checks in headers are
a mess between all three. so take a page out of the BSDs' book.
26 files changed:
bin/uudecode/Makefile
bin/uuencode/Makefile
include/dlfcn.h
include/sys/fcntl.h
include/sys/feature_tests.h
include/sys/mman.h
include/unistd.h
usr/src/cmd/cmd-inet/usr.bin/ftp/cmds.c
usr/src/cmd/cmd-inet/usr.bin/ftp/cmdtab.c
usr/src/cmd/cmd-inet/usr.bin/ftp/ftp_var.h
usr/src/cmd/cmd-inet/usr.bin/telnet/commands.c
usr/src/cmd/cmd-inet/usr.bin/tftp/main.c
usr/src/cmd/find/find.c
usr/src/cmd/mdb/intel/amd64/genunix/Makefile
usr/src/cmd/sgs/Makefile.com
usr/src/cmd/sgs/elfdump/Makefile.com
usr/src/cmd/sgs/elfedit/Makefile.com
usr/src/cmd/sgs/ldprof/Makefile.com
usr/src/cmd/sgs/liblddbg/Makefile.com
usr/src/cmd/truss/Makefile.com
usr/src/lib/libc/Makefile.targ
usr/src/lib/libsmbfs/Makefile.com
usr/src/lib/libzpool/Makefile.com
usr/src/test/libc-tests/tests/random/inz_inval.c
usr/src/uts/Makefile.uts
usr/src/uts/common/netinet/in.h