Commit Graph

622 Commits

Author SHA1 Message Date
Ulrich Drepper 380d7e87dc Implement aligned_alloc 2012-01-01 07:17:21 -05:00
Ulrich Drepper 4e9e7a356c Enable at_quick_exit and quick_exit for ISO C11 2012-01-01 07:17:20 -05:00
Andreas Schwab 707f25dfc0 Fix division by denominator with more than two limbs in strtold 2011-12-21 23:57:15 +01:00
Ulrich Drepper 5776983978 makecontext doens't need __THROWNL 2011-11-11 12:57:31 -05:00
Andreas Schwab edc5984d4d Mark setjmp and ucontext functions as non-leaf 2011-11-11 11:11:07 +01:00
Andreas Krebbel 48693bea9e S/390: Fix longlong.h inline asms for zarch 2011-10-07 12:09:59 -04:00
Ulrich Drepper 3ce1f29594 Cleanup of configuration options
Make several tool features mandatory and simplify the code.
2011-09-10 14:34:15 -04:00
Andreas Jaeger 04d08991c4 Add test case strtod underflow 2011-07-08 13:16:26 -04:00
Ulrich Drepper 9895c8bc62 Change error code for underflows in strtod 2011-07-06 20:57:55 -04:00
Andreas Krebbel 5a31b2836d S/390 longlong.h: Fix smul_ppmm with -m31 -mzarch 2011-06-07 07:26:27 -04:00
Andreas Schwab def7fbd6c6 Update longlong.h from GCC 2011-05-23 11:53:24 -04:00
Ulrich Drepper ea389b12b3 Handle long variable names in putenv 2011-05-16 10:13:54 -04:00
Ulrich Drepper f8a3b5bf8f Use mmap for allocation of buffers used for __abort_msg 2011-05-15 00:34:48 -04:00
Jim Meyering ded5b9b7c7 Remove doubled words. 2011-04-22 21:34:32 -04:00
Ulrich Drepper 75ea32abcd Fix FPU context handling in getcontext on x86-64.
fnstenv on x86-64 seems to clear the state.  Work around.
2011-04-17 21:51:26 -04:00
Ulrich Drepper 4c1423edfb Fix typos in comments. 2011-04-01 10:39:30 -04:00
Ulrich Drepper fb88ac72c2 Fix race in qsort_r initialization. 2010-12-09 12:12:58 -05:00
Andreas Schwab a726d7960e Fix array overflow in floating point parser 2010-09-01 12:38:44 -07:00
Andi Kleen d22e4cc939 x86: Add support for frame pointer less mcount 2010-08-07 21:24:05 -07:00
Andreas Schwab ef634a94c7 Fix use of ucontext_t objects in tst-makecontext3
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.
2010-04-13 07:13:00 -07:00
Ulrich Drepper c63bfa7994 Avoid alloca in setenv for long strings. 2010-02-02 09:55:55 -08:00
Ulrich Drepper c589e093e1 elax some conditions in stdlib.h. 2010-01-14 16:07:58 -08:00
Ulrich Drepper e26dfa69f5 Add nonnull attribute to unsetenv declaration. 2010-01-13 23:06:59 -08:00
Ulrich Drepper 52e96a8092 Be a bit more relaxed about obsoleted mktemp symbol. 2010-01-13 07:15:17 -08:00
Ulrich Drepper 21487cc929 Fix handling symbols removed in XPG7. 2010-01-11 14:49:17 -08:00
Ulrich Drepper f095bb7204 Add support for XPG7 testing.
The header conformance testing code needed extending for XPG7.  This
exposed a few bugs in the headers.  There are more changes to come.
2010-01-09 10:56:41 -08:00
Ulrich Drepper a87cd2894c Remove tst-sigcontext test.
It's bogus in many places.
2009-12-24 13:34:05 -08:00
Maciej W. Rozycki 9250545663 Additional setcontext(), etc. conformance tests. 2009-12-24 13:22:33 -08:00
Ulrich Drepper c53f6228f1 Fix comments in random_r.c. 2009-11-24 20:22:44 -08:00
Ulrich Drepper 08c7ad975c Avoid two warnings in strtol{,l} tests. 2009-10-30 09:22:34 -07:00
Ulrich Drepper 3a83202db6 Implement mkostemps and mkostemps64. 2009-10-30 08:02:30 -07:00
Ulrich Drepper 7f3146e789 Implement mkstemps and mkstemps64. 2009-10-30 00:11:07 -07:00
Ulrich Drepper 1abedcdad2 Remove duplicate __set_errno call in random_r.c. 2009-10-08 13:46:47 -07:00
Ulrich Drepper 1219ddfe54 Typo fix. 2009-10-08 13:39:00 -07:00
Ulrich Drepper d444ac573c More strto{,u}l{,l} tests. 2009-08-28 13:45:28 -07:00
SUGIOKA Toshinobu 78fd882a7b SH: fix clobber list in stdlib/longlong.h 2009-08-10 08:12:49 -07:00
Ulrich Drepper 48dcd0ba84 Preserve message printed before abort.
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
2009-06-15 16:17:09 -07:00
Ulrich Drepper 8f0d3f499f Non-code changes to stdlib.h. 2009-05-16 12:17:55 -07:00
Ulrich Drepper a64039b084 Unify __WAIT_INT definition in stdlib.h and sys/wait.h.
This fixes BZ #10159.  The stdlib.h definition was out of date.
2009-05-16 11:39:39 -07:00
Jim Meyering edeabc047e remove subsumed .gitignore entries and files 2009-05-16 10:41:40 +02:00
Jim Meyering 8636153326 remove mpn-copy.mk from .gitignore files 2009-05-16 10:38:54 +02:00
Jim Meyering bb87237534 remove COPYING* from .gitignore files 2009-05-16 10:38:53 +02:00
Jim Meyering 2e180a2622 rename each .cvsignore file to .gitignore 2009-05-15 18:13:37 +02:00
Ulrich Drepper f521be31b9 * sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
Avoid warning by using may_alias attribute on ptrhack.
2009-04-26 18:06:47 +00:00
Ulrich Drepper 4bbf8999f4 * stdlib/strtod_l.c (round_and_return): We have to set errno to
ERANGE for underflows.
	* stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
2009-04-25 17:56:10 +00:00
Ulrich Drepper fe12c7984b [BZ #9920]
* stdlib/random_r.c (__srandom_r): Change type of word to int32_t
	to get consistency between 32 and 64 bit architectures.
2009-04-24 03:58:48 +00:00
Ulrich Drepper 153aa31b93 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
Numerically stable check for valid width.
2009-04-18 19:53:59 +00:00
Ulrich Drepper eec4b45482 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
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.
2009-03-10 13:40:37 +00:00
Ulrich Drepper 610e67ed5a * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
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.
2009-03-08 19:53:12 +00:00
Ulrich Drepper 6cbe890a9d * wctype/wctype.h: The *_l functions are in POSIX 2008.
* 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.
2009-02-26 16:53:30 +00:00