Olivier Langlois
12c22bc4e3
Fix tst-long-dbl-fphex swprintf length calculation.
2013-09-24 16:12:12 -07:00
Ondřej Bílka
382466e04e
Fix typos.
2013-08-30 18:08:59 +02:00
Joseph Myers
2e09a79ada
Avoid use of "register" as optimization hint.
2013-06-07 22:24:35 +00:00
Ondrej Bilka
350635a59a
Fix leading whitespaces.
2013-06-06 20:36:07 +02:00
Joseph Myers
9c84384cc1
Remove trailing whitespace.
2013-06-05 20:44:03 +00:00
Thomas Schwinge
528c24058f
* stdio-common/bug26.c (main): Correct fscanf template.
...
Fixup for commit 6ecec3b616
.
2013-05-26 21:59:24 +02:00
Thomas Schwinge
207d1e2a6c
Fix coding-style violation.
...
Introduced in commit ee091edf1a
.
2013-04-15 22:11:30 +02:00
Andreas Schwab
6ecec3b616
Don't accept exp char without preceding digits in scanf float parsing
2013-04-11 10:24:37 +02:00
Thomas Schwinge
ee091edf1a
More tests for external charater sequences representing NaNs.
2013-04-05 22:41:20 +02:00
Thomas Schwinge
a8b792d6bb
Properly collect individual tests' results.
...
Fixup for commit 003c9895a8
.
2013-04-05 22:39:26 +02:00
Thomas Schwinge
67e971f18f
Better distinguish between NaN/qNaN/sNaN.
2013-03-15 19:06:02 +01:00
Thomas Schwinge
a57da95516
Remove unused declarations.
...
Added in commit f83af095b6
, and forgotten to be
removed in commit 76f2646f3d
.
2013-03-15 19:00:23 +01:00
Paul Pluzhnikov
e1b42695ea
Replace __builtin_expect(..., 0) with __glibc_unlikely().
2013-03-05 21:38:19 -08:00
Paul Pluzhnikov
cdcf361fda
* stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
...
call free(NULL).
2013-03-05 13:44:33 -08:00
Joseph Myers
70d9946a44
Remove __ptrvalue, __bounded and __unbounded.
2013-02-13 23:30:40 +00:00
H.J. Lu
740b3dbee8
Add --enable-hardcoded-path-in-tests configure option
2013-01-11 07:14:18 -08: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
Siddhesh Poyarekar
7728c57488
Add newline to last test in stdio-common/tst-put-error.c
...
The newline ensures that the buffer is flushed and the test executes
as expected.
2012-12-06 11:10:18 +05:30
Joseph Myers
363313b5be
Increase width of padded output in stdio-common/tst-put-error.
2012-12-05 20:02:41 +00:00
Joseph Myers
be14d48f5a
Fix more set-but-not-used warnings in _itowa.c.
2012-11-20 00:05:23 +00:00
Siddhesh Poyarekar
2b766585f9
printf should return negative value on error
...
[BZ #11741 ]
Fixed bug where printf and family may return a spurious success when
printing padded formats.
2012-11-16 19:13:11 +05:30
Thomas Schwinge
b830319d49
[BZ #157 ] Remove include/stub-tag.h for good.
2012-11-04 19:59:40 +01:00
Joseph Myers
03ac099f6b
Define and use $(run-built-tests).
2012-10-24 00:08:46 +00:00
Jeff Law
715a900c90
2012-09-28 Andreas Schwab <schwab@linux-m68k.org>
...
[BZ #6530 ]
* stdio-common/vfprintf.c (process_string_arg): Revert
2000-07-22 change.
2011-09-28 Jonathan Nieder <jrnieder@gmail.com>
* stdio-common/Makefile (tst-sprintf-ENV): Set environment
for testcase.
* stdio-common/tst-sprintf.c: Include <locale.h>
(main): Test sprintf's handling of incomplete multibyte
characters.
2012-09-28 12:49:51 -06: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
a9f8e53a5b
Make printf respect the rounding mode for hex output (bug 5044).
2012-09-24 15:38:21 +00:00
Joseph Myers
784761bee3
Make printf respect the rounding mode for decimal output (bug 5044).
2012-09-14 20:18:49 +00:00
Andreas Jaeger
88d506def0
Fix last patch: Add missing DUMMY variable
2012-08-18 18:01:46 +02:00
Roland McGrath
c75ccd4c3a
Clean up definition of _LIBC_REENTRANT and _IO_MTSAFE_IO.
2012-08-17 09:35:15 -07:00
Roland McGrath
db1ee0a836
Suppress -Wunused-but-set warnings in GMP code.
2012-08-16 14:08:47 -07:00
Roland McGrath
bea9b19322
Fix lots of bitrot for stub configurations.
2012-07-30 16:34:33 -07:00
Andreas Schwab
5be8418cb0
Remove use of INTDEF/INTUSE in stdio-common
2012-06-01 01:25:41 +02:00
Jeff Law
b0bc23a177
2012-05-24 Jeff Law <law@redhat.com>
...
* stdio-common/Makefile (tests): Add bug25.
* stdio-common/bug25.c: New test.
2012-05-24 21:30:43 -06:00
Andreas Schwab
d18ea0c5e6
Remove use of INTDEF/INTUSE in libio
2012-05-24 23:06:20 +02:00
Andreas Jaeger
5fefb43629
[BZ #13691 ], Revert breakage of iconv() converter for TCVN-5712.
...
* iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
inptr and inend for must_buffer_ch.
* wcsmbs/tst-mbsnrtowcs.c: Remove file.
* wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
* stdio-common/Makefile (tests): Remove bug15.
(bug15-ENV): Remove macro.
* stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
anymore.
localedata:
* SUPPORTED: Remove vi_VN.TCVN/TCVN5712-1.
* tst-strptime.c: Remove, we do not support vi_VN.TCVN5712-1
anymore.
* Makefile (LOCALES): Remove vi_VN.TCVN5712-1 from list.
(tests): Remove tst-strptime.
2012-05-21 20:41:36 +02:00
H.J. Lu
94b07d20dd
Check _ITOA_NEEDED and use _ITOA_WORD_TYPE
2012-05-18 06:03:04 -07:00
Chris Metcalf
286abc3dea
Bump up stdio bug22 timeout from 30 seconds to 60 seconds
...
The older Tilera platform (tilepro) needs just a hair over 30 seconds
to run this on one core.
2012-05-17 12:59:08 -04:00
Andreas Schwab
7e0d315da8
Fix formatting of denormal IBM long double numbers
2012-04-28 22:21:27 +02:00
David S. Miller
135ffda8b8
Tighten up vfprintf width, precision, and total length overflow handling.
...
With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
* stdio-common/printf-parse.h (read_int): Change return type to
'int', return -1 on INT_MAX overflow.
* stdio-common/vfprintf.c (vfprintf): Validate width and precision
against overflow of INT_MAX. Set errno to EOVERFLOW when 'done'
overflows INT_MAX. Check for overflow of in-format-string precision
values properly. Use EOVERFLOW rather than ERANGE throughout. Use
SIZE_MAX not INT_MAX for integer overflow test.
* stdio-common/printf-parsemb.c: If read_int signals an overflow,
skip the construct in the format string but do not record anything.
* stdio-common/bug22.c: Adjust to test both width/prevision
INT_MAX overflow as well as total length INT_MAX overflow. Check
explicitly for proper errno values.
2012-04-02 14:31:19 -07:00
H.J. Lu
8e95c99a7a
Add _ITOA_NEEDED and _ITOA_WORD_TYPE
...
Add _ITOA_NEEDED and _ITOA_WORD_TYPE to override _itoa and _itowa.
2012-03-21 14:38:47 -07:00
H.J. Lu
eb96ffb07d
Move stdio-common/_itoa.h to sysdeps/generic
2012-03-20 16:00:23 -07:00
Paul Eggert
c524201ab0
Replace FSF snail mail address with URL in miscellaneous files.
2012-03-10 00:45:35 +00:00
Joseph Myers
4962050e97
Install bits/stdio_lim.h in install-headers.
2012-03-09 22:05:49 +00:00
Ulrich Drepper
aea5d7277a
Clean up tst-fphex test
2012-03-08 03:02:24 -05:00
Ulrich Drepper
ca2ff9fc04
Merge branch 'master' of ssh://sourceware.org/git/glibc
...
Conflicts:
ChangeLog
2012-03-08 02:49:12 -05:00
Marek Polacek
70bca0a394
Fix up long double fphex test
2012-03-08 02:46:43 -05:00
Marek Polacek
65b81130c5
Enhance fphex test.
2012-03-08 08:34:10 +01:00
Ulrich Drepper
a4300c7a4d
Remove distribute variable from Makefiles
2012-03-07 05:17:13 -05:00
Ulrich Drepper
f72ed77d71
Formatting fixes
2012-03-06 21:45:53 -05:00
Marek Polacek
a53b7a4e4b
Fix up long double fphex.
2012-03-06 22:08:16 +01:00
Kees Cook
fa0355175d
2012-03-02 Kees Cook <keescook@chromium.org>
...
* stdio-common/vfprintf.c (vfprintf): add missing errno settings.
2012-03-05 10:18:17 +01:00
Kees Cook
7c1f4834d3
2012-03-02 Kees Cook <keescook@chromium.org>
...
[BZ #13656 ]
* stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
possibly allocate from heap instead of stack.
* stdio-common/bug-vfprintf-nargs.c: New file.
* stdio-common/Makefile (tests): Add nargs overflow test.
2012-03-05 10:17:22 +01:00
Roland McGrath
4579f81caf
Remove a spurious const in tst-fmemopen.
2012-02-27 13:29:12 -08:00
Paul Eggert
59ba27a63a
Replace FSF snail mail address with URLs.
2012-02-09 23:18:22 +00:00
Joseph Myers
c8a89e7dd5
Remove miscellaneous __STDC__ conditionals.
2012-01-30 21:20:32 +00:00
Ulrich Drepper
b15549e6f8
Fix gets problems
2012-01-24 17:40:44 -05:00
Paul Pluzhnikov
20b38e0301
sscanf always calls realloc
2012-01-08 20:13:35 -05:00
Ulrich Drepper
a784e50247
Remove pre-ISO C support
...
No more __const.
2012-01-07 23:57:22 -05:00
Ulrich Drepper
16578fa7b3
Better gets prototype and fallout from removal
2012-01-01 07:17:22 -05:00
Ulrich Drepper
a4647e727a
Fix extension of array in extended printf format handling
2011-12-17 21:27:25 -05:00
Ulrich Drepper
187da0aedc
isinf returns the sign of the number, use it in printf*
2011-10-08 08:22:44 -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
Ulrich Drepper
3f8cc204fd
Fix boundary conditions in scanf
...
Allocate large buffers with realloc. When returning error make sure
the stream is unlocked.
2011-09-09 21:26:05 -04:00
Ulrich Drepper
e4899e7b9a
Merge branch 'master' of ssh://sourceware.org/git/glibc
...
Conflicts:
ChangeLog
2011-09-09 18:21:39 -04:00
Ulrich Drepper
5c43483f0c
Add test for BZ 13114
2011-08-20 09:22:16 -04:00
Roland McGrath
5615eaf264
Quash some new warnings from GCC 4.6.
2011-06-10 22:44:20 -07:00
Ulrich Drepper
aec84f5395
Set stream errors in more cases
...
Also avoid unnecessarily setting errno when testing for TTY.
2011-05-21 00:42:06 -04:00
Petr Baudis
84a4211850
Fix allocation when handling positional parameters in printf.
2011-02-20 07:59:49 -05:00
Samuel Thibault
f75286c696
Conditionalize use of SIGRTMIN in psiginfo.
2011-02-16 14:41:58 -08:00
Jakub Jelinek
c1d0e639a9
Fix two printf handler issues.
2011-02-15 13:51:48 -05:00
Ulrich Drepper
f57e41a5b8
Fix grouping when rounding increases number of integer digits.
2011-01-12 20:37:51 -05:00
Ulrich Drepper
07eb4b716e
Always allow overwriting printf modifiers etc.
2010-12-24 19:28:32 -05:00
Ulrich Drepper
b76b818e6f
psiginfo relied too much on sys_siglist.
2010-10-11 10:58:31 -04:00
Ulrich Drepper
af3259695d
Unify psiginfo output.
2010-10-11 09:10:41 -04:00
Roland McGrath
c98d4212d0
tst-fmemopen: Do not write test file in $srcdir.
2010-04-19 13:48:00 -07:00
Richard Henderson
68cf34be99
Fix printf format warning for si_band.
...
Signed-off-by: Richard Henderson <rth@twiddle.net>
2010-03-26 09:48:44 -07: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
1c52a97a1e
Avoid warning in scanf test.
2009-10-30 09:23:24 -07:00
Ulrich Drepper
7f3146e789
Implement mkstemps and mkstemps64.
2009-10-30 00:11:07 -07:00
Andreas Schwab
199eb0de8d
Check for integer overflows in formatting functions
2009-09-29 06:11:59 -07:00
Ulrich Drepper
003c9895a8
Print sign of NaN values.
2009-08-23 11:57:52 -07:00
Ulrich Drepper
b48a267b8f
Preserve SSE registers in runtime relocations on x86-64.
...
SSE registers are used for passing parameters and must be preserved
in runtime relocations. This is inside ld.so enforced through the
tests in tst-xmmymm.sh. But the malloc routines used after startup
come from libc.so and can be arbitrarily complex. It's overkill
to save the SSE registers all the time because of that. These calls
are rare. Instead we save them on demand. The new infrastructure
put in place in this patch makes this possible and efficient.
2009-07-29 08:33:03 -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
0c59a1963e
* sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
...
* sysdeps/i386/fpu/s_cosf.S: Likewise.
* sysdeps/i386/fpu/s_cosl.S: Likewise.
* sysdeps/i386/fpu/s_sin.S: Likewise.
* sysdeps/i386/fpu/s_sinf.S: Likewise.
* sysdeps/i386/fpu/s_sinl.S: Likewise.
* sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
* sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
* sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
* sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
* sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
* sysdeps/x86_64/fpu/s_cosl.S: Likewise.
* sysdeps/x86_64/fpu/s_sinl.S: Likewise.
* math/libm-test.inc: Add tests for errno after sin/cos calls with
±Inf.
2009-04-26 01:04:54 +00:00
Ulrich Drepper
af9f1c486e
* stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
...
the 2001 revision.
2009-04-25 16:59:29 +00:00
Ulrich Drepper
57d2da1c67
* stdio-common/psiginfo.c: Include <errno.h>.
2009-04-24 14:05:25 +00:00
Ulrich Drepper
debafa10bc
* stdio-common/printf.h: Add missing const to register_printf_modifier.
...
* stdio-common/reg-modifier.c: Likewise.
2009-04-22 Andrew Stubbs <ams@codesourcery.com>
* sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
is no FPU.
2009-04-23 01:14:33 +00:00
Ulrich Drepper
84aa52d7e9
* sysdeps/x86-64/strrchr.S: New file.
2009-04-14 05:58:16 +00:00
Ulrich Drepper
9d26efa90c
* stdio-common/printf.h (struct printf_info): Add user element.
...
New types printf_arginfo_size_function, printf_va_arg_function.
Declare register_printf_specifier, register_printf_modifier,
register_printf_type.
* stdio-common/printf-parse.h (struct printf_spec): Add size element.
(union printf_arg): Add pa_user element.
Adjust __printf_arginfo_table type.
Add __printf_va_arg_table, __printf_modifier_table,
__handle_registered_modifier_mb, and __handle_registered_modifier_wc
declarations.
* stdio-common/printf-parsemb.c: Recognize registered modifiers.
If registered arginfo call failed try normal specifier.
* stdio-common/printf-prs.c: Pass additional parameter to arginfo
function.
* stdio-common/Makefile (routines): Add reg-modifier and reg-type.
* stdio-common/Versions: Export register_printf_modifier,
register_printf_type, and register_printf_specifier for GLIBC_2.10.
* stdio-common/reg-modifier.c: New file.
* stdio-common/reg-type.c: New file.
* stdio-common/reg-printf.c (__register_printf_specifier): New
function. Mostly the old __register_printf_function function but
uses locking and type of third parameter changed.
(__register_printf_function): Implement using
__register_printf_specifier.
* stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
calls to arginfo functions. Allocate enough memory for user-defined
types. Call new va_arg functions to get user-defined types.
Try installed handlers even for existing format specifiers first.
2009-04-11 05:34:20 +00:00
Ulrich Drepper
1d498daa95
Simplified code and possible copy problem fixed.
2009-04-10 03:56:06 +00:00
Ulrich Drepper
e9b4d069c1
* stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
2009-04-10 02:51:29 +00:00
Ulrich Drepper
f503060bbb
* libio/stdio.h: dprintf, fmemopen, getdelim, getline,
...
open_memstream, and vdprintf are in POSIX 2008.
2009-02-26 15:44:18 +00:00
Ulrich Drepper
1f04d00542
* locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
...
* locale/xlocale.h: Define locale_t type.
* locale/locale.h: duplocale, freelocale, newlocale, uselocale are
in POSIX 2008. Don't define locale_t here.
* stdlib/monetary.h: strfmon_l is in POSIX 2008.
* signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
* stdio-common/psiginfo.c: New file.
* stdio-common/psiginfo-data.h: New file.
* stdio-common/psiginfo-define.h: New file.
* stdio-common/Makefile (routines): Add psiginfo.
* stdio-common/Versions: Export psiginfo for GLIBC_2.10.
2009-02-26 06:18:24 +00:00
Ulrich Drepper
88a3b8f9ac
[BZ #9823 ]
...
2009-02-06 Ulrich Drepper <drepper@redhat.com>
[BZ #9823 ]
* stdio-common/psignal.c (psignal): Fix test for empty string.
2009-02-06 16:04:28 +00:00
Ulrich Drepper
1311b164df
* stdio-common/printf_fp.c (___printf_fp): Give wide outout code
...
the same treatment as narow output code in last patch.
2008-07-26 16:32:59 +00:00