about summary refs log tree commit diff
path: root/stdlib
Commit message (Collapse)AuthorAgeFilesLines
* Clean up trivially redundant __USE_MISC conditionals.Joseph Myers2014-02-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | This patch cleans up cases of __USE_MISC that are trivially redundant after the recent substitution of __USE_MISC for __USE_BSD and __USE_SVID: either in constructs such as "defined __USE_MISC || defined __USE_MISC", or else (in the bits/mman.h case) a conditional on __USE_MISC nested inside another __USE_MISC conditional. (The cleanups remaining after this patch are still quite large, but it seems a reasonable piece to separate out.) Tested x86_64. * bits/mman.h [__USE_MISC]: Remove redundant conditionals. * ctype/ctype.h [__USE_MISC]: Likewise. * dirent/dirent.h [__USE_MISC]: Likewise. * grp/grp.h [__USE_MISC]: Likewise. * io/fcntl.h [__USE_MISC]: Likewise. * io/sys/stat.h [__USE_MISC]: Likewise. * libio/stdio.h [__USE_MISC]: Likewise. * posix/unistd.h [__USE_MISC]: Likewise. * pwd/pwd.h [__USE_MISC]: Likewise. * stdlib.h [__USE_MISC]: Likewise. * string/bits/string2.h [__USE_MISC]: Likewise. * string/string.h [__USE_MISC]: Likewise. * time/time.h [__USE_MISC]: Likewise.
* Combine __USE_BSD and __USE_SVID into __USE_MISC.Joseph Myers2014-02-122-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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].
* Remove unused variable from stdlib/setenv.cOndřej Bílka2014-02-111-1/+0
|
* Use glibc_likely instead __builtin_expect.Ondřej Bílka2014-02-107-17/+17
|
* Fix previous commit.Ondřej Bílka2014-02-101-0/+5
|
* Deduplicate setenv.Ondřej Bílka2014-02-101-72/+3
| | | | | Setenv contained a code path that was redundant as it could be handled in general case.
* Update copyright notices with scripts/update-copyrightsAllan McRae2014-01-01146-146/+146
|
* Update longlong.h from GCC.Joseph Myers2013-12-041-13/+44
|
* Properly handle unavailable elements in LC_MONETARY categoryAndreas Schwab2013-11-181-11/+11
|
* Fix strtod rounding of half the least subnormal (bug 16151).Joseph Myers2013-11-133-1/+297
|
* Remove code from div that is by C99 obsolete. Fixes bug 15799Ondřej Bílka2013-10-303-66/+0
|
* Fix buffer overrun in strtod_lLiubov Dmitrieva2013-09-191-1/+1
|
* Fix memory leak in stdlib/isomac.cAllan McRae2013-09-091-0/+1
|
* Fix then/than typos.Ondřej Bílka2013-08-301-2/+2
|
* [BZ #15522] strtod ("nan(N)") returning a sNaN in some casesThomas Schwinge2013-08-293-11/+29
|
* Fix typos.Ondřej Bílka2013-08-291-1/+1
|
* Fix dependencies for stdlib/tst-tls-atexitAndreas Schwab2013-08-261-1/+1
|
* Fix typos.Ondřej Bílka2013-08-211-1/+1
|
* Make tst-strtod-round use ROUNDING_TESTS.Joseph Myers2013-06-141-9/+30
|
* Rework tst-strtod-round handling of inexact results.Joseph Myers2013-06-132-45/+723
|
* Use (void) in no-arguments function definitions.Joseph Myers2013-06-086-6/+6
|
* Avoid use of "register" as optimization hint.Joseph Myers2013-06-077-26/+25
|
* Fix leading whitespaces.Ondrej Bilka2013-06-061-1/+1
|
* Remove trailing whitespace.Joseph Myers2013-06-051-2/+2
|
* Link extra-libs consistently with libc and ld.so.Joseph Myers2013-05-311-1/+1
|
* Add #include <stdint.h> for uint[32|64]_t usage (except installed headers).Ryan S. Arnold2013-05-164-0/+4
|
* BZ#15380: Fix initstate error returnAndreas Jaeger2013-04-291-2/+3
| | | | | | [BZ #15380] * stdlib/random.c (__initstate): Return NULL if __initstate fails.
* Fix guards for qecvtAndreas Jaeger2013-04-272-7/+4
| | | | | | | [BZ #15007] * stdlib/stdlib.h: Update guards for qecvt. * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with <stdlib.h>.
* More tests for external charater sequences representing NaNs.Thomas Schwinge2013-04-052-0/+16
|
* Avoid unconditional __call_tls_dtors calls in static linking.Roland McGrath2013-03-282-2/+5
|
* Do not warn about mblen, mbtowc and wctomb unused result.Ondrej Bilka2013-03-201-3/+3
|
* * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-likeJakub Jelinek2013-02-191-21/+23
| | | | macro.
* Fix copyright year in new filesSiddhesh Poyarekar2013-02-193-3/+3
|
* stdlib.h: use existing malloc/alloc_size attribute definesMike Frysinger2013-02-181-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* C++11 thread_local destructors supportSiddhesh Poyarekar2013-02-186-2/+266
| | | | | | | | | | | This feature is specifically for the C++ compiler to offload calling thread_local object destructors on thread program exit, to glibc. This is to overcome the possible complication of destructors of thread_local objects getting called after the DSO in which they're defined is unloaded by the dynamic linker. The DSO is marked as 'unloadable' if it has a constructed thread_local object and marked as 'unloadable' again when all the constructed thread_local objects defined in it are destroyed.
* Install stdlib-bsearch.h headerOndrej Bilka2013-02-131-1/+2
|
* Add inline bsearch expansion.Ondrej Bilka2013-02-112-28/+7
|
* getenv: Remove check for non-standard endianness.Carlos O'Donell2013-02-041-4/+0
| | | | | stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the else clause and remove check for non-standard endianness.
* Remove __GLIBC_HAVE_LONG_LONG.Joseph Myers2013-01-111-5/+5
|
* Add --enable-hardcoded-path-in-tests configure optionH.J. Lu2013-01-112-3/+3
|
* Use __extension__ with long long in installed headers.Joseph Myers2013-01-101-1/+2
|
* Update copyright notices with scripts/update-copyrights.Joseph Myers2013-01-02143-154/+143
|
* Add script to update copyright notices and reformat some to facilitate its use.Joseph Myers2013-01-013-4/+3
|
* Declare ecvt, fcvt, gcvt, mktemp in stdlib.h for XOPEN2K (bug 14824).Joseph Myers2012-11-091-2/+2
|
* [BZ #157] Remove include/stub-tag.h for good.Thomas Schwinge2012-11-045-5/+0
|
* Compile x86 rtld with -mno-sse -mno-mmxH.J. Lu2012-11-023-6/+33
|
* Fix strtod handling of underflow (bug 14047).Joseph Myers2012-10-305-6/+340
|
* Define and use $(run-built-tests).Joseph Myers2012-10-241-1/+1
|
* Set "fail on error" mode directly in testsuite shell scriptsDmitry V. Levin2012-09-252-4/+5
|
* Make strtod respect the rounding mode (bug 14518).Joseph Myers2012-09-123-52/+152
|