about summary refs log tree commit diff
path: root/misc
Commit message (Collapse)AuthorAgeFilesLines
* Combine __USE_BSD and __USE_SVID into __USE_MISC.Joseph Myers2014-02-126-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].
* Use glibc_likely instead __builtin_expect.Ondřej Bílka2014-02-102-2/+2
|
* Update copyright notices with scripts/update-copyrightsAllan McRae2014-01-01138-138/+138
|
* Add error reporting (via errno) to getauxval().Brooks Moses2013-12-182-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().
* Remove libbsd-compat dummy library.Joseph Myers2013-12-171-2/+1
|
* Fix error_tail overflow in allocation calculation.Ondřej Bílka2013-10-141-1/+1
|
* Update generic swapon definition to match prototype.Ryan S. Arnold2013-10-041-2/+1
|
* Add GLRO(dl_hwcap2) for new AT_HWCAP2 auxv_t a_type.Ryan S. Arnold2013-06-281-0/+2
|
* Use (void) in no-arguments function definitions.Joseph Myers2013-06-0813-22/+22
|
* Avoid use of "register" as optimization hint.Joseph Myers2013-06-074-13/+13
|
* Remove trailing whitespace.Joseph Myers2013-06-051-1/+1
|
* Only defined DEV_BSIZE if not already defined.Aurelien Jarno2013-05-081-1/+3
|
* Use __gnu_inline__ for __extern_always_inline in g++-4.2Richard Smith2013-05-011-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.
* Fix copy'n'pastos.Thomas Schwinge2013-03-151-1/+1
|
* sys/cdefs.h: export __attribute_alloc_size__Mike Frysinger2013-02-181-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>
* Fix build warnings in some test casesSiddhesh Poyarekar2013-02-181-0/+1
| | | | Include stdlib.h to get declaration of exit(3)
* Remove bounded-pointers build system support.Joseph Myers2013-02-151-4/+0
|
* Remove __ptrvalue, __bounded and __unbounded.Joseph Myers2013-02-131-8/+0
|
* Fix a typo in the mremap comment.Roland McGrath2013-02-111-1/+1
|
* Whitespace fix for __glibc_likely/__glibc_unlikely defns.Roland McGrath2013-01-231-4/+4
|
* Hide reference to mktemp in libpthreadAndreas Schwab2013-01-162-1/+3
|
* Remove unused macro ALLOCA_LIMIT.Roland McGrath2013-01-091-1/+0
|
* Fix copyright notice corruption from update-copyright bug.Joseph Myers2013-01-022-2/+2
|
* Update copyright notices with scripts/update-copyrights.Joseph Myers2013-01-02138-145/+138
|
* Add script to update copyright notices and reformat some to facilitate its use.Joseph Myers2013-01-011-1/+1
|
* Add __glibc_likely as an alias for __builtin_expect when availableSiddhesh Poyarekar2012-12-281-0/+2
|
* Adding missing -fexception CFLAGSMarcus Shawcroft2012-11-141-0/+1
|
* [BZ #157] Remove include/stub-tag.h for good.Thomas Schwinge2012-11-0472-72/+0
|
* Define and use $(run-built-tests).Joseph Myers2012-10-241-1/+1
|
* Framework to test IFUNC implementations on targetH.J. Lu2012-10-113-1/+34
|
* Name space hygeine for madvise.Roland McGrath2012-10-042-3/+9
|
* Fix up definitions for older compilers.Marek Polacek2012-09-261-1/+8
|
* Split sys/param.h out into common file and sysdeps bits/param.h file.Roland McGrath2012-08-172-1/+103
|
* Make libio compile without _IO_MTSAFE_IO.Roland McGrath2012-08-171-1/+0
|
* Move stub lseek.c to the right directory.Roland McGrath2012-08-151-52/+0
|
* Clean up mkostemps64 definition for O_LARGEFILE==0.Roland McGrath2012-08-012-2/+11
|
* Clean up mkstemps64 definition for O_LARGEFILE==0.Roland McGrath2012-08-012-2/+11
|
* Clean up mkstemp64/mkostemp64 for O_LARGEFILE==0.Roland McGrath2012-08-014-4/+22
|
* Fix LOG_MAKEPRI to agree with BSDAndreas Schwab2012-07-101-2/+2
|
* Suppress sign-conversion warning from FD_SET.Paul Pluzhnikov2012-06-131-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.
* Wrap __builtin_expect in pthread.hSiddhesh Poyarekar2012-06-041-0/+6
| | | | | | [BZ #14188] This fixes compilation of programs using pthread_cleanup_push built with non-gcc compilers and older gcc compilers.
* Remove use of INTUSE/INTDEF in misc.Marek Polacek2012-05-311-5/+4
|
* Remove use of INTDEF/INTUSE in libioAndreas Schwab2012-05-242-4/+4
|
* * misc/getauxval.c (__getauxval): Use unsigned long int.Richard Henderson2012-05-212-4/+5
| | | | | * misc/sys/auxv.h: Include <sys/cdefs.h>. (getauxval): Use unsigned long int.
* Add <sys/auxv.h> and getauxval.Richard Henderson2012-05-204-2/+76
|
* Hurd: #include <kernel-features.h>Thomas Schwinge2012-05-101-0/+2
|
* Fix attributes for fortify functions.Marek Polacek2012-04-294-17/+16
|
* Remove distribute variable from MakefilesUlrich Drepper2012-03-071-2/+0
|
* Replace FSF snail mail address with URLs.Paul Eggert2012-02-09135-405/+270
|
* Remove miscellaneous __STDC__ conditionals.Joseph Myers2012-01-301-4/+0
|