glibc/misc
Joseph Myers 498afc54df Combine __USE_BSD and __USE_SVID into __USE_MISC.
This patch cleans up following the obsoletion of _BSD_SOURCE and
_SVID_SOURCE by combining __USE_BSD and __USE_SVID into __USE_MISC.

The only non-mechanical part of this patch is the changes to
features.h; everything else is simple substitution of __USE_MISC for
the old macros.  Thus, this patch leaves obviously redundant
conditionals such as "defined __USE_MISC || defined __USE_MISC", and
does not update #endif comments where they referred to BSD or SVID in
words instead of the literal macro name.  This is intended to
facilitate patch review by separating the less mechanical changes from
these purely mechanical changes into a separate patch.  (I do intend
to integrate all the changes from
<https://sourceware.org/ml/libc-alpha/2013-12/msg00226.html>, which I
believe includes all the trailing comment updates, in subsequent
patches.)

Tested x86_64.

	* include/features.h (__USE_BSD): Remove macro definitions.
	(__USE_SVID): Likewise.
	(_BSD_SOURCE): Likewise.
	(_SVID_SOURCE): Likewise.
	[!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
	from definition of _DEFAULT_SOURCE.
	[_BSD_SOURCE || _SVID_SOURCE]: Change condition to
	[_DEFAULT_SOURCE].
	* bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
	* bits/mman.h [__USE_BSD]: Likewise.
	* bits/termios.h [__USE_BSD]: Likewise.
	* bits/waitstatus.h [__USE_BSD]: Likewise.
	* ctype/ctype.h [__USE_SVID]: Likewise.
	* dirent/dirent.h [__USE_BSD]: Likewise.
	* grp/grp.h [__USE_SVID]: Likewise.
	[__USE_BSD]: Likewise.
	* inet/netinet/igmp.h [__USE_BSD]: Likewise.
	* io/fcntl.h [__USE_BSD]: Likewise.
	* io/ftw.h [__USE_BSD]: Likewise.
	* io/sys/stat.h [__USE_BSD]: Likewise.
	* libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
	* libio/bits/stdio2.h [__USE_BSD]: Likewise.
	* libio/stdio.h [__USE_SVID]: Likewise.
	[__USE_BSD]: Likewise.
	* math/math.h [__USE_SVID]: Likewise.
	[__USE_BSD]: Likewise.
	* misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
	* misc/bits/syslog.h [__USE_BSD]: Likewise.
	* misc/search.h [__USE_SVID]: Likewise.
	* misc/sys/mman.h [__USE_BSD]: Likewise.
	* misc/sys/syslog.h [__USE_BSD]: Likewise.
	* misc/sys/uio.h [__USE_BSD]: Likewise.
	* posix/bits/unistd.h [__USE_BSD]: Likewise.
	* posix/glob.h [__USE_BSD]: Likewise.
	* posix/regex.h [__USE_BSD]: Likewise.
	* posix/sys/types.h [__USE_BSD]: Likewise.
	[__USE_SVID]: Likewise.
	* posix/sys/utsname.h [__USE_SVID]: Likewise.
	* posix/sys/wait.h [__USE_BSD]: Likewise.
	[__USE_SVID]: Likewise.
	* posix/unistd.h [__USE_BSD]: Likewise.
	[__USE_SVID]: Likewise.
	* pwd/pwd.h [__USE_SVID]: Likewise.
	* resolv/netdb.h [__USE_BSD]: Likewise.
	* setjmp/setjmp.h [__USE_BSD]: Likewise.
	* signal/signal.h [__USE_BSD]: Likewise.
	[__USE_SVID]: Likewise.
	* socket/sys/socket.h [__USE_BSD]: Likewise.
	* stdlib/fmtmsg.h [__USE_SVID]: Likewise.
	* stdlib/stdlib.h [__USE_BSD]: Likewise.
	[__USE_SVID]: Likewise.
	* string/bits/string2.h [__USE_BSD]: Likewise.
	[__USE_SVID]: Likewise.
	* string/bits/string3.h [__USE_BSD]: Likewise.
	* string/endian.h [__USE_BSD]: Likewise.
	* string/string.h [__USE_SVID]: Likewise.
	[__USE_BSD]: Likewise.
	* string/strings.h [__USE_BSD]: Likewise.
	* sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
	* sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
	* sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
	* sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
	* sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
	* sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
	Likewise.
	* sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
	Likewise.
	* sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
	* sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
	Likewise.
	* sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
	* sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
	Likewise.
	* sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
	Likewise.
	* sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
	* sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
	* sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
	Likewise.
	* sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
	Likewise.
	* sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
	* sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
	* termios/termios.h [__USE_BSD]: Likewise.
	* time/sys/time.h [__USE_BSD]: Likewise.
	* time/time.h [__USE_BSD]: Likewise.
	[__USE_SVID]: Likewise.

	* sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_BSD]: Change
	condition to [__USE_MISC].
2014-02-12 23:41:01 +00:00
..
bits Combine __USE_BSD and __USE_SVID into __USE_MISC. 2014-02-12 23:41:01 +00:00
sys Combine __USE_BSD and __USE_SVID into __USE_MISC. 2014-02-12 23:41:01 +00:00
Makefile Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
Versions Hide reference to mktemp in libpthread 2013-01-16 15:57:11 +01:00
acct.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
ar.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
brk.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
bug-hsearch1.c .. 2009-01-23 20:41:36 +00:00
chflags.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
chroot.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
daemon.c Update. 2004-09-25 06:49:33 +00:00
dirname.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
efgcvt.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
efgcvt_r.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
err.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
err.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
error.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
error.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
fchflags.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
fdatasync.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
fgetxattr.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
flistxattr.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
fremovexattr.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
fsetxattr.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
fstab.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
fstab.h Remove pre-ISO C support 2012-01-07 23:57:22 -05:00
fsync.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
ftruncate.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
ftruncate64.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
futimes.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
futimesat.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getauxval.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getclktck.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getdomain.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getdtsz.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
gethostid.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
gethostname.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getloadavg.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getpagesize.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getpass.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getsysstats.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getttyent.c Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
getusershell.c Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
getxattr.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
gtty.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
hsearch.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
hsearch_r.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
ifunc-impl-list.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
init-misc.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
insremque.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
ioctl.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
lgetxattr.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
libgen.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
listxattr.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
llistxattr.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
lremovexattr.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
lsearch.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
lsetxattr.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
lutimes.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
madvise.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
mincore.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
mkdtemp.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
mkostemp.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
mkostemp64.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
mkostemps.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
mkostemps64.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
mkstemp.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
mkstemp64.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
mkstemps.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
mkstemps64.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
mktemp.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
mlock.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
mlockall.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
mmap.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
mmap64.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
mntent.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
mntent.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
mntent_r.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
mprotect.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
msync.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
munlock.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
munlockall.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
munmap.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
preadv.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
preadv64.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
pselect.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
ptrace.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
pwritev.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
pwritev64.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
qefgcvt.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
qefgcvt_r.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
readv.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
reboot.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
regexp.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
regexp.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
remap_file_pages.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
removexattr.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
revoke.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sbrk.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
search.h Combine __USE_BSD and __USE_SVID into __USE_MISC. 2014-02-12 23:41:01 +00:00
select.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
setdomain.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
setegid.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
seteuid.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sethostid.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sethostname.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
setregid.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
setreuid.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
setxattr.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sgtty.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sstk.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
stab.h Update. 1997-06-21 02:59:26 +00:00
stty.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
swapoff.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
swapon.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sync.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
syncfs.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
syscall.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
syscall.h update from main archive 960107 1997-01-07 23:29:44 +00:00
sysexits.h Update. 1999-06-09 13:08:30 +00:00
syslog.c Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
syslog.h initial import 1995-02-18 01:27:10 +00:00
truncate.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
truncate64.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tsearch.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-dirname.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-efgcvt.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-error1.c * stdio-common/Makefile (aux): Add fxprintf. 2005-07-19 23:46:55 +00:00
tst-fdset.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-hsearch.c Update. 2002-01-29 08:25:15 +00:00
tst-insremque.c [BZ #2766] 2006-06-17 17:01:42 +00:00
tst-mntent.c (main): Use tmpfile instead of tmpnam. 2004-03-22 10:50:50 +00:00
tst-mntent2.c * sysdeps/unix/sysv/linux/rtld-lowlevel.h 2006-12-09 22:29:37 +00:00
tst-pselect.c Fix build warnings in some test cases 2013-02-18 18:17:05 +05:30
tst-tsearch.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
ttyent.h Remove pre-ISO C support 2012-01-07 23:57:22 -05:00
ttyslot.c Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
ualarm.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
usleep.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
ustat.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
ustat.h Thu Jul 18 04:33:21 1996 Roland McGrath <roland@baalperazim.frob.com> 1996-07-18 08:43:26 +00:00
utimes.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
vhangup.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
writev.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00