about summary refs log tree commit diff
path: root/stdlib
Commit message (Collapse)AuthorAgeFilesLines
* Fix use of ucontext_t objects in tst-makecontext3Andreas Schwab2010-04-131-29/+33
| | | | | | | Objects of type ucontext_t cannot be copied, only getcontext can properly initialize them. For example, on powerpc the structure contains a pointer into itself, so makecontext modifies the original object by side effect.
* Avoid alloca in setenv for long strings.Ulrich Drepper2010-02-021-30/+64
|
* elax some conditions in stdlib.h.Ulrich Drepper2010-01-141-4/+4
|
* Add nonnull attribute to unsetenv declaration.Ulrich Drepper2010-01-131-1/+1
|
* Be a bit more relaxed about obsoleted mktemp symbol.Ulrich Drepper2010-01-131-2/+2
|
* Fix handling symbols removed in XPG7.Ulrich Drepper2010-01-111-6/+6
|
* Add support for XPG7 testing.Ulrich Drepper2010-01-094-39/+45
| | | | | The header conformance testing code needed extending for XPG7. This exposed a few bugs in the headers. There are more changes to come.
* Remove tst-sigcontext test.Ulrich Drepper2009-12-242-313/+1
| | | | It's bogus in many places.
* Additional setcontext(), etc. conformance tests.Maciej W. Rozycki2009-12-244-2/+532
|
* Fix comments in random_r.c.Ulrich Drepper2009-11-241-2/+2
|
* Avoid two warnings in strtol{,l} tests.Ulrich Drepper2009-10-302-2/+2
|
* Implement mkostemps and mkostemps64.Ulrich Drepper2009-10-301-0/+23
|
* Implement mkstemps and mkstemps64.Ulrich Drepper2009-10-301-2/+25
|
* Remove duplicate __set_errno call in random_r.c.Ulrich Drepper2009-10-081-4/+2
|
* Typo fix.Ulrich Drepper2009-10-081-2/+2
|
* More strto{,u}l{,l} tests.Ulrich Drepper2009-08-282-0/+663
|
* SH: fix clobber list in stdlib/longlong.hSUGIOKA Toshinobu2009-08-101-3/+4
|
* Preserve message printed before abort.Ulrich Drepper2009-06-152-1/+7
| | | | | | | The terminal output etc is not visible in a core file. The new libc-internal variable __abort_msg will point to a string with the message which has been printed before the abort in case abort is called from inside libc. BZ #10217
* Non-code changes to stdlib.h.Ulrich Drepper2009-05-161-13/+13
|
* Unify __WAIT_INT definition in stdlib.h and sys/wait.h.Ulrich Drepper2009-05-161-3/+3
| | | | This fixes BZ #10159. The stdlib.h definition was out of date.
* remove subsumed .gitignore entries and filesJim Meyering2009-05-161-8/+0
|
* remove mpn-copy.mk from .gitignore filesJim Meyering2009-05-161-1/+1
|
* remove COPYING* from .gitignore filesJim Meyering2009-05-161-1/+1
|
* rename each .cvsignore file to .gitignoreJim Meyering2009-05-151-0/+0
|
* * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):Ulrich Drepper2009-04-261-8/+5
| | | | Avoid warning by using may_alias attribute on ptrhack.
* * stdlib/strtod_l.c (round_and_return): We have to set errno toUlrich Drepper2009-04-252-4/+5
| | | | | ERANGE for underflows. * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
* [BZ #9920] cvs/fedora-glibc-20090424T0747Ulrich Drepper2009-04-241-2/+2
| | | | | * stdlib/random_r.c (__srandom_r): Change type of word to int32_t to get consistency between 32 and 64 bit architectures.
* * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.Ulrich Drepper2009-04-181-9/+16
| | | | Numerically stable check for valid width.
* * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcsUlrich Drepper2009-03-105-6/+6
| | | | | | | | | | | instead of __quick_exit_funcs to __run_exit_handlers. * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden. * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute. (__cxa_at_quick_exit): Remove attribute_hidden. * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs to __run_exit_handlers. * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove attribute_hidden.
* * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, andUlrich Drepper2009-03-0811-29/+208
| | | | | | | | | | | | | | | | | | | | | cxa_at_quick_exit. (static-only-routines): Add at_quick_exit. * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for GLIBC_2.10. * stdlib/quick_exit.c: New file. * stdlib/at_quick_exit.c: New file. * stdlib/cxa_at_quick_exit.c: New file. * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call it appropriately. (__internal_atexit): New function. (__new_exitfn): Now takes parameter to point to the list to use. * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them. * stdlib/exit.c (__run_exit_handlers): New function. Split from... (exit): ...here. Just call __run_exit_handlers appropriately. * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers, __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn. * stdlib/on_exit.c: Adjust call to __new_exitfn. * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
* * wctype/wctype.h: The *_l functions are in POSIX 2008.Ulrich Drepper2009-02-261-2/+2
| | | | | | | | | | | | | | | | | | | | * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy, wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs, wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l. * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from 200112L to 200809L. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise. * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and _SC_THREAD_ROBUST_PRIO_PROTECT entries. * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and _SC_THREAD_ROBUST_PRIO_PROTECT. * posix/unistd.h: fexecve is in POSIX 2008. * time/time.h: strftime_l is in POSIX 2008. * io/sys/stat.h: futimens is in POSIX 2008. * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008. * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal, strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008. * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
* * ctype/ctype.h: The *_l functions are in POSIX 2008.Ulrich Drepper2009-02-261-1/+1
| | | | | | * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in POSIX 2008. /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
* * stdlib/monetary.h: Uglify function parameter names. cvs/fedora-glibc-20090218T1534Jakub Jelinek2009-02-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sunrpc/rpc/pmap_clnt.h: Likewise. * sunrpc/rpc/svc.h: Likewise. * sunrpc/rpc/xdr.h: Likewise. * sunrpc/rpc/clnt.h: Likewise. * resolv/netdb.h: Likewise. * resolv/arpa/nameser.h: Likewise. * resolv/resolv.h: Likewise. * argp/argp.h: Likewise. * locale/langinfo.h: Likewise. * io/sys/stat.h: Likewise. * posix/spawn.h: Likewise. * nis/rpcsvc/nislib.h: Likewise. * malloc/obstack.h: Likewise. * sysdeps/ia64/bits/link.h: Likewise. * sysdeps/i386/bits/link.h: Likewise. * sysdeps/s390/bits/link.h: Likewise. * sysdeps/powerpc/bits/link.h: Likewise. * sysdeps/x86_64/bits/link.h: Likewise. * sysdeps/sparc/bits/link.h: Likewise. * sysdeps/sh/bits/link.h: Likewise. * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise. * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise. * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise. * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise. 2009-02-16 Jakub Jelinek <jakub@redhat.com> * stdlib/monetary.h: Uglify function parameter names. * sunrpc/rpc/pmap_clnt.h: Likewise. * sunrpc/rpc/svc.h: Likewise. * sunrpc/rpc/xdr.h: Likewise. * sunrpc/rpc/clnt.h: Likewise. * resolv/netdb.h: Likewise. * resolv/arpa/nameser.h: Likewise. * resolv/resolv.h: Likewise. * argp/argp.h: Likewise. * locale/langinfo.h: Likewise. * io/sys/stat.h: Likewise. * posix/spawn.h: Likewise. * nis/rpcsvc/nislib.h: Likewise. * malloc/obstack.h: Likewise. * sysdeps/ia64/bits/link.h: Likewise. * sysdeps/i386/bits/link.h: Likewise. * sysdeps/s390/bits/link.h: Likewise. * sysdeps/powerpc/bits/link.h: Likewise. * sysdeps/x86_64/bits/link.h: Likewise. * sysdeps/sparc/bits/link.h: Likewise. * sysdeps/sh/bits/link.h: Likewise. * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise. * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise. * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise. * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
* * stdlib/Makefile (tests): Add tst-unsetenv1.Ulrich Drepper2008-12-022-1/+13
| | | | * stdlib/tst-unsetenv1.c: New file.
* * stdlib/setenv.c (unsetenv): Don't search environment if it doesUlrich Drepper2008-12-021-14/+15
| | | | not exist.
* * stdlib/divmod_1.c: Use correct type for dummy variable.Ulrich Drepper2008-10-172-2/+2
| | | | * stdlib/mod_1.c: Likewise.
* 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>Roland McGrath2008-10-161-25/+132
| | | | * stdlib/longlong.h: Update from GCC.
* [BZ #6654]Ulrich Drepper2008-06-261-2/+2
| | | | | | | 2008-06-25 Ulrich Drepper <drepper@redhat.com> [BZ #6654] * stdlib/canonicalize.c (__realpath): readlink can write too much into the buffer on platforms without PATH_MAX.
* * stdlib/tst-setcontext.c: Set back_in_main before exit ifUlrich Drepper2008-06-251-1/+4
| | | | getcontext returns ENOSYS.
* * stdlib/tst-setcontext.c: Include unistd.h.Jakub Jelinek2008-04-301-1/+2
| | | | | | 2008-04-30 Jakub Jelinek <jakub@redhat.com> * stdlib/tst-setcontext.c: Include unistd.h.
* * stdlib/tst-makecontext.c (othervar): New variable. Jakub Jelinek2008-04-101-1/+2
| | | | | | | | (cf): Test sign extending the argument to long. 2008-04-10 Jakub Jelinek <jakub@redhat.com> * stdlib/tst-makecontext.c (othervar): New variable. (cf): Test sign extending the argument to long.
* * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.Ulrich Drepper2008-04-101-1/+3
| | | | | | | | | * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file. * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file. * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file. * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file. * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file. * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
* [BZ #5436]Ulrich Drepper2008-04-091-3/+3
| | | | | | | | | | | | | | 2008-04-09 Ulrich Drepper <drepper@redhat.com> * stdlib/tst-makecontext.c: Change parameter to cf to negative value to check for correct sign extension. [BZ #5436] * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext): Copy 64-bit parameter values even though this is not required in the standard. * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return PC save.
* * stdlib/mbtowc.c (__no_r_state): Remove. Jakub Jelinek2008-04-072-10/+11
| | | | | | | | | | | | | | | | | | | | | | (mbtowc): New static state variable. Use it instead of __no_r_state. * stdlib/wctomb.c (__no_r_state): Remove extern decl. (__wctomb_state): New hidden variable. (wctomb): Use __wctomb_state instead of __no_r_state. * debug/wctomb_chk.c (__no_r_state): Remove extern decl. (__wctomb_state): New extern decl. (__wctomb_chk): Use __wctomb_state instead of __no_r_state. 2008-04-07 Jakub Jelinek <jakub@redhat.com> * stdlib/mbtowc.c (__no_r_state): Remove. (mbtowc): New static state variable. Use it instead of __no_r_state. * stdlib/wctomb.c (__no_r_state): Remove extern decl. (__wctomb_state): New hidden variable. (wctomb): Use __wctomb_state instead of __no_r_state. * debug/wctomb_chk.c (__no_r_state): Remove extern decl. (__wctomb_state): New extern decl. (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
* [BZ #5995]Ulrich Drepper2008-03-291-1/+1
| | | | | | | | 2008-03-29 Ulrich Drepper <drepper@redhat.com> [BZ #5995] * stdlib/strtod_l.c: Use correct sign for result in one more underflow case. Patch by Eric Blake <ebb9@byu.net>.
* [BZ #5774]Ulrich Drepper2008-03-083-1/+57
| | | | | | | | | * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace on NAN(...) sequence. * stdlib/Makefile (tests): Add tst-strtod6. * stdlib/tst-strtod6.c: New file. * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
* * stdlib/Makefile (aux): Add tens_in_limb.Ulrich Drepper2008-03-083-19/+34
| | | | | * stdlib/strtod_l.c: Move _tens_in_limb definition to... * stdlib/tens_in_limb.c: ...here. New file.
* * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): AvoidUlrich Drepper2008-01-092-2/+84
| | | | | | clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size. * stdlib/Makefile: Add rules to build and run tst-makecontext2. * stdlib/tst-makecontext2.c: New test.
* * stdlib/tst-setcontext.c: Catch the case where the links getsUlrich Drepper2007-12-031-0/+18
| | | | messed up and we do not reach main again.
* * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.Ulrich Drepper2007-11-134-20/+43
| | | | | | | | | | | | * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype for _quicksort. * stdlib/msort.c (qsort): Now a wrapper around qsort_r. (qsort_r): Renamed from qsort. Take additional parameter and pass it on as third parameter to compare function and _quicksort. * stdlib/qsort.c (_quicksort): Take additional parameter and pass on to the compare function. * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r. * Versions.def: Add GLIBC_2.8 for libc.