Joseph Myers
6a57d93130
Remove __GLIBC_HAVE_LONG_LONG.
2013-01-11 21:13:25 +00:00
H.J. Lu
740b3dbee8
Add --enable-hardcoded-path-in-tests configure option
2013-01-11 07:14:18 -08:00
Joseph Myers
828beb132d
Use __extension__ with long long in installed headers.
2013-01-10 20:19:45 +00:00
Joseph Myers
568035b787
Update copyright notices with scripts/update-copyrights.
2013-01-02 19:05:09 +00:00
Joseph Myers
f4cf5f2d8b
Add script to update copyright notices and reformat some to facilitate its use.
2013-01-01 16:29:10 +00:00
Joseph Myers
9bde902c76
Declare ecvt, fcvt, gcvt, mktemp in stdlib.h for XOPEN2K (bug 14824).
2012-11-09 21:16:58 +00:00
Thomas Schwinge
b830319d49
[BZ #157 ] Remove include/stub-tag.h for good.
2012-11-04 19:59:40 +01:00
H.J. Lu
f62c8abcfb
Compile x86 rtld with -mno-sse -mno-mmx
2012-11-02 18:43:27 -07:00
Joseph Myers
2a27fd6dae
Fix strtod handling of underflow (bug 14047).
2012-10-30 13:51:27 +00:00
Joseph Myers
03ac099f6b
Define and use $(run-built-tests).
2012-10-24 00:08:46 +00:00
Dmitry V. Levin
57c69bef13
Set "fail on error" mode directly in testsuite shell scripts
2012-09-25 02:48:31 +00:00
Joseph Myers
6c9b0f6826
Make strtod respect the rounding mode (bug 14518).
2012-09-12 23:36:19 +00:00
Joseph Myers
ed8c2ecd21
Fix strtod test for values above maximum for IBM long double.
2012-09-06 15:33:06 +00:00
Andreas Schwab
4d038ae316
Increase timeout for stdlib/tst-strtod-overflow
2012-09-05 18:13:21 +02:00
Andreas Schwab
a0070b7e70
Use LDBL_MIN_EXP to distinguish Intel and Motorola extended float format
2012-09-05 13:53:43 +02:00
Andreas Schwab
e1343020fb
Correctly handle Motorola extended float format in tst-strtod-round
2012-09-05 12:40:45 +02:00
Florian Weimer
edb3cb8831
stdlib/tst-secure-getenv.c: whitespace-only changes in comments
2012-09-04 15:01:18 +02:00
Florian Weimer
292378045c
stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID failures
2012-09-04 14:36:56 +02:00
Joseph Myers
7efb4737dd
Fix sign of zero on strtod underflow (bug 14519).
2012-08-27 16:04:19 +00:00
Joseph Myers
af92131a8e
Fix strtod rounding (bug 3479).
2012-08-27 16:02:07 +00:00
Joseph Myers
d6e70f4368
Fix strtod integer/buffer overflow (bug 14459).
2012-08-27 15:59:24 +00:00
Roland McGrath
c75ccd4c3a
Clean up definition of _LIBC_REENTRANT and _IO_MTSAFE_IO.
2012-08-17 09:35:15 -07:00
Joseph Myers
c3c8283c06
Update longlong.h from GCC.
2012-08-16 21:37:04 +00:00
Roland McGrath
db1ee0a836
Suppress -Wunused-but-set warnings in GMP code.
2012-08-16 14:08:47 -07:00
H.J. Lu
c5757acd6e
Remove __secure_getenv in 2.17 instead of 2.16
2012-08-06 14:47:35 -07:00
Roland McGrath
4f75b7a09a
Distinguish ELOOP diagnosis threshold from SYMLOOP_MAX.
2012-08-03 11:39:30 -07:00
Florian Weimer
2bc1387273
secure_getenv test should write errors to standard output
...
This way, they end up in the log file. Also skip the test if no GID can
be found.
2012-07-31 09:55:38 +02:00
Florian Weimer
84b3fd8407
Rename __secure_getenv to secure_getenv
2012-07-25 19:46:22 +02:00
Thomas Schwinge
dc97c227c9
setcontext: Clarify termination when uc_link is the null pointer.
2012-07-17 10:05:55 +02:00
Andreas Schwab
d0cd7d0212
Fix bug-getcontext test
2012-07-16 18:46:40 +02:00
David S. Miller
2fd6ff133b
Sync longlong.h with GCC to fix a sparc regression.
...
* stdlib/longlong.h: Updated from GCC.
2012-06-03 18:51:43 -07:00
David S. Miller
402fe938f6
Update longlong.h from GCC to get some sparc improvements.
...
* stdlib/longlong.h: Updated from GCC.
2012-06-01 13:33:28 -07:00
Andreas Schwab
d18ea0c5e6
Remove use of INTDEF/INTUSE in libio
2012-05-24 23:06:20 +02:00
Chris Metcalf
0af797def3
math: support platforms with limited FP rounding or exception support
...
For some tests, just claim that fetestexcept() always returns true,
so the rest of the test can be compiled.
For libm-test, provide known bogus values for unsupported rounding
modes, so fesetround() will return failure.
Elsewhere, just add some #ifdefs to avoid code that uses particular
FP exceptions if the exceptions aren't supported.
2012-05-17 08:50:41 -04:00
H.J. Lu
8115f29bad
Update stdlib/longlong.h from GCC
2012-05-09 15:36:41 -07:00
Joseph Myers
8f203e6cb6
Fix strtod rounding of hex values (bug 14049).
2012-05-04 10:44:39 +00:00
Allan McRae
d4c2917fc5
Fix test-suite failues with -Wl,--as-needed
...
Signed-off-by: Allan McRae <allan@archlinux.org>
2012-05-02 20:32:50 -04:00
Marek Polacek
5ac3ea17df
Fix attributes for fortify functions.
2012-04-29 15:34:20 +02:00
Paul Eggert
c0baea34e0
* stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
...
[BZ #13970 ]
(strtod, strtof, strtold, strtol, strtoul, strtoq)
(strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
(strtod_l, strtof_l, strtold_l): Remove __wur.
It is not necessarily an error to ignore strtol's return value.
One can reliably look at the stored endptr to decide whether
the number had valid syntax.
2012-04-23 10:43:28 -07:00
Andreas Jaeger
349fa79f55
Don't warn about unused result of mktemp
...
[BZ #13908 ]
mktemp always returns TEMPLATE, the caller should check TEMPLATE[0]
instead of TEMPLATE, so do not warn about the unused result.
Fix also the comment for mktemp
2012-04-05 10:44:08 +02:00
Ulrich Drepper
a4300c7a4d
Remove distribute variable from Makefiles
2012-03-07 05:17:13 -05:00
Marek Polacek
bc957d531c
Remove oldish __GNUC_PREREQ.
2012-03-03 22:57:00 +01:00
Carlos O'Donell
433f48bf3b
BZ #3992 : stdlib/fmtmsg.c: missing stdint.h include.
...
Use of uint32_t requires stdint.h.
2012-02-27 22:31:39 -05:00
Ulrich Drepper
7724defcf8
Fix locking in fmtmsg
2012-02-24 21:18:04 -05:00
Paul Eggert
59ba27a63a
Replace FSF snail mail address with URLs.
2012-02-09 23:18:22 +00:00
Marek Polacek
69db4f8f46
Remove PARAMS macros.
2012-01-31 20:02:53 +00:00
Ulrich Drepper
400aa020ea
Fix locking problem in fmtmsg
2012-01-16 09:03:20 -05:00
Ulrich Drepper
a784e50247
Remove pre-ISO C support
...
No more __const.
2012-01-07 23:57:22 -05:00
Ulrich Drepper
8b43a4cc56
Fix aligned_alloc prototype
2012-01-01 07:17:22 -05:00
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
Ulrich Drepper
77db439eaf
* ctype/ctype.h: The *_l functions are in POSIX 2008.
...
* dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
POSIX 2008.
/proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
2009-02-26 02:23:50 +00:00