aboutsummaryrefslogtreecommitdiff
path: root/misc
AgeCommit message (Collapse)AuthorFilesLines
2014-02-12Combine __USE_BSD and __USE_SVID into __USE_MISC.Joseph Myers6-7/+7
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-10Use glibc_likely instead __builtin_expect.Ondřej Bílka2-2/+2
2014-01-01Update copyright notices with scripts/update-copyrightsAllan McRae138-138/+138
2013-12-18Add error reporting (via errno) to getauxval().Brooks Moses2-2/+5
[BZ 15846] As discussed in the recent thread on my $EXEC_ORIGIN patch and in BZ 15846, getauxval() presently has no unambiguous way of reporting an error condition. It currently returns zero on error, but this may also be a valid result for some auxv entries. As there is no clear invalid result for all current and future auxv entries, this patch sets errno (following a suggestion in the BZ entry). This version of the patch also adds documentation and tests for the value-not-found conditions in getauxval().
2013-12-17Remove libbsd-compat dummy library.Joseph Myers1-2/+1
2013-10-14Fix error_tail overflow in allocation calculation.Ondřej Bílka1-1/+1
2013-10-04Update generic swapon definition to match prototype.Ryan S. Arnold1-2/+1
2013-06-28Add GLRO(dl_hwcap2) for new AT_HWCAP2 auxv_t a_type.Ryan S. Arnold1-0/+2
2013-06-08Use (void) in no-arguments function definitions.Joseph Myers13-22/+22
2013-06-07Avoid use of "register" as optimization hint.Joseph Myers4-13/+13
2013-06-05Remove trailing whitespace.Joseph Myers1-1/+1
2013-05-08Only defined DEV_BSIZE if not already defined.Aurelien Jarno1-1/+3
2013-05-01Use __gnu_inline__ for __extern_always_inline in g++-4.2Richard Smith1-8/+6
Use the __gnu_inline__ attribute in _FORTIFY_SOURCE's __extern_always_inline macro whenever the compiler supports it. Previously this macro only included the __gnu_inline__ attribute in C++ mode for gcc >= 4.3. However, __gnu_inline__ semantics are always desired for the __extern_always_inline functions, and are available in g++ 4.2 (and some releases of g++ 4.1, and also in Clang, which claims to be g++ 4.2). This change stops g++-4.2 from emitting weak definitions for the fortify wrapper functions if they can't be inlined, and also improves Clang compatibility.
2013-03-15Fix copy'n'pastos.Thomas Schwinge1-1/+1
2013-02-18sys/cdefs.h: export __attribute_alloc_size__Mike Frysinger1-0/+9
Since we want to use this in installed headers, move it to the installed sys/cdefs.h. This requires a slight tweaking of the name (add trailing underscores). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-02-18Fix build warnings in some test casesSiddhesh Poyarekar1-0/+1
Include stdlib.h to get declaration of exit(3)
2013-02-15Remove bounded-pointers build system support.Joseph Myers1-4/+0
2013-02-13Remove __ptrvalue, __bounded and __unbounded.Joseph Myers1-8/+0
2013-02-11Fix a typo in the mremap comment.Roland McGrath1-1/+1
2013-01-23Whitespace fix for __glibc_likely/__glibc_unlikely defns.Roland McGrath1-4/+4
2013-01-16Hide reference to mktemp in libpthreadAndreas Schwab2-1/+3
2013-01-09Remove unused macro ALLOCA_LIMIT.Roland McGrath1-1/+0
2013-01-02Fix copyright notice corruption from update-copyright bug.Joseph Myers2-2/+2
2013-01-02Update copyright notices with scripts/update-copyrights.Joseph Myers138-145/+138
2013-01-01Add script to update copyright notices and reformat some to facilitate its use.Joseph Myers1-1/+1
2012-12-28Add __glibc_likely as an alias for __builtin_expect when availableSiddhesh Poyarekar1-0/+2
2012-11-14Adding missing -fexception CFLAGSMarcus Shawcroft1-0/+1
2012-11-04[BZ #157] Remove include/stub-tag.h for good.Thomas Schwinge72-72/+0
2012-10-24Define and use $(run-built-tests).Joseph Myers1-1/+1
2012-10-11Framework to test IFUNC implementations on targetH.J. Lu3-1/+34
2012-10-04Name space hygeine for madvise.Roland McGrath2-3/+9
2012-09-26Fix up definitions for older compilers.Marek Polacek1-1/+8
2012-08-17Split sys/param.h out into common file and sysdeps bits/param.h file.Roland McGrath2-1/+103
2012-08-17Make libio compile without _IO_MTSAFE_IO.Roland McGrath1-1/+0
2012-08-15Move stub lseek.c to the right directory.Roland McGrath1-52/+0
2012-08-01Clean up mkostemps64 definition for O_LARGEFILE==0.Roland McGrath2-2/+11
2012-08-01Clean up mkstemps64 definition for O_LARGEFILE==0.Roland McGrath2-2/+11
2012-08-01Clean up mkstemp64/mkostemp64 for O_LARGEFILE==0.Roland McGrath4-4/+22
2012-07-10Fix LOG_MAKEPRI to agree with BSDAndreas Schwab1-2/+2
2012-06-13Suppress sign-conversion warning from FD_SET.Paul Pluzhnikov1-6/+7
[BZ #14210] See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>. * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int, not unsigned long int. * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
2012-06-04Wrap __builtin_expect in pthread.hSiddhesh Poyarekar1-0/+6
[BZ #14188] This fixes compilation of programs using pthread_cleanup_push built with non-gcc compilers and older gcc compilers.
2012-05-31Remove use of INTUSE/INTDEF in misc.Marek Polacek1-5/+4
2012-05-24Remove use of INTDEF/INTUSE in libioAndreas Schwab2-4/+4
2012-05-21 * misc/getauxval.c (__getauxval): Use unsigned long int.Richard Henderson2-4/+5
* misc/sys/auxv.h: Include <sys/cdefs.h>. (getauxval): Use unsigned long int.
2012-05-20Add <sys/auxv.h> and getauxval.Richard Henderson4-2/+76
2012-05-10Hurd: #include <kernel-features.h>Thomas Schwinge1-0/+2
2012-04-29Fix attributes for fortify functions.Marek Polacek4-17/+16
2012-03-07Remove distribute variable from MakefilesUlrich Drepper1-2/+0
2012-02-09Replace FSF snail mail address with URLs.Paul Eggert135-405/+270
2012-01-30Remove miscellaneous __STDC__ conditionals.Joseph Myers1-4/+0