Robert Millan
4dad7bab2b
Fix typo in manual
...
lseek refers to WHENCE when it really means OFFSET
2012-04-06 21:38:42 +02:00
Andreas Jaeger
2c040eff83
Add missing include file
...
Compiling on Linux/i586 I get these warnings:
nss_db/db-initgroups.c:60:3: warning: implicit declaration of function
'strlen' [-Wimplicit-function-declaration]
nss_db/db-initgroups.c:74:7: warning: implicit declaration of function
'strncmp' [-Wimplicit-function-declaration]
Fixed with inclusion of <string.h>
2012-04-06 21:09:36 +02:00
Andreas Jaeger
e9142a17e1
Add __poll and __ppoll to libc.abilist
...
The functions were introduced in January but abilist was not updated.
2012-04-06 18:11:05 +02:00
David S. Miller
dcd2ae90d5
Fix check-local-headers.sh on multiarch systems.
...
* scripts/check-local-headers.sh: Accept a host triplet in the
path matched by the exclude regexp.
2012-04-05 23:40:28 -04:00
David S. Miller
993eb0541c
Reduce down to one definition of _ELF_DYNAMIC_DO_RELOC.
...
* elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
definition.
* sysdeps/powerpc/powerpc32/dl-machine.h
(ELF_MACHINE_PLTREL_OVERLAP): Delete.
* sysdeps/s390/s390-32/dl-machine.h
(ELF_MACHINE_PLTREL_OVERLAP): Likewise.
* sysdeps/sparc/sparc32/dl-machine.h
(ELF_MACHINE_PLTREL_OVERLAP): Likewise.
* sysdeps/sparc/sparc64/dl-machine.h
(ELF_MACHINE_PLTREL_OVERLAP): Likewise.
2012-04-05 15:28:37 -07:00
Marek Polacek
48e2e132de
Fix CL typos.
2012-04-05 19:28:16 +02:00
David S. Miller
ff9f1c5f32
Fix DL_DEBUG_UNUSED to elide the VDSO and handle PLT references properly.
...
* elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
lazy binding.
* elf/dl-lookup (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
undefined symbol errors.
* elf/rtlc.c (dl_main): Skip VDSO when checking for unused
DT_NEEDED entries.
2012-04-05 05:20:37 -04:00
Michael Matz
e80d6f94e1
Fix size parameter comparisions.
...
[BZ #13592 ]
There are several signed compares of the size argument, whereas
it really is unsigned. Depending on situations e.g. a "memset(ptr, 0,
-1)" segfault (but for the wrong reasons, because jumping into nirvana)
or succeeds even.
In normal use this is harmless, as a size with signbit set indicates
more than half the address space which on x86_64 is impossible to
allocate, but as the size is used to index some jump tables this
potentially could have other unwanted side effects.
2012-04-05 10:50:09 +02: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
Kaz Kojima
f402708f8a
Fix return value of SH fesetround.
2012-04-05 11:58:30 +09:00
Kaz Kojima
2ecccfc97a
Set SH fpcsr register which read again.
2012-04-05 11:57:03 +09:00
Kaz Kojima
8a53f50f2a
Fix SH4 fraiseexcpt so to generate exceptions appropriately.
2012-04-05 11:53:49 +09:00
Simon Josefsson
d653abb723
[BZ #12340 ] Fix return code of the Hurd's ttyname_r.
2012-04-05 00:35:19 +02:00
Thomas Schwinge
c3b1bf7d85
[BZ #13553 ] Remove pre-ISO C support
...
The bits missing from a784e50247
.
2012-04-05 00:26:22 +02:00
Andreas Jaeger
67f60a26d4
Fix typo in manual
...
[BZ # 13938]
* manual/setjmp.texi (System V contexts): Fix sentence.
2012-04-03 09:43:38 +02:00
Andreas Jaeger
b1aa60f32d
Add __bswap_64 definition for non GCC compilers.
...
[BZ#13926]
Currently __bswap_64 is not defined at all for non-GCC compilers.
Define it but guard it with __GLIBC_HAVE_LONG_LONG.
endian.h uses __bswap_64, make the functions only available
if __GLIBC_HAVE_LONG_LONG is defined.
2012-04-03 09:13:59 +02:00
Tulio Magno Quites Machado Filho
39c59c3572
Fix bug in previous tcvn5712 commit e64d2de52
.
...
[BZ #13691 ]
* iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
inptr and inend, rather than using last_ch.
2012-04-02 17:12:07 -07: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
Thomas Schwinge
302cadd343
Testsuite #include fixes.
2012-04-02 22:31:32 +02:00
Thomas Schwinge
228c019e63
Call __ctype_init in early glibc startup.
...
This adds the bits missing from fd5bdc0924
.
2012-04-02 22:26:43 +02:00
Ulrich Drepper
d1635ef80f
Updated Vietnamese translation
2012-04-01 09:52:09 -04:00
Ulrich Drepper
cfa633f5b3
Updated Russian translations
2012-04-01 09:51:00 -04:00
Siddhesh Poyarekar
6cd0a5eaf0
Merge copyright years in resolv/nss_dns/dns-host.c
2012-03-31 10:01:43 +05:30
Liubov Dmitrieva
4b43400f6a
optimize the following memcpy: sysdeps/i386/i686/multiarch/memcpy-ssse3.S
...
I've improved the following implementation of memcpy:
"sysdeps/i386/i686/multiarch/memcpy-ssse3.S".
The patch includes some minor style fixes, but the important part is
just using prefetch loops for the case:
DATA_CACHE_SIZE_HALF <= len < SHARED_CACHE_SIZE_HALF and
src and dst pointers have unequal 16 byte alignments.
This gives from 6% - 50% performance boost on the atom machine, about
24,73% in geometric mean.
2012-03-30 16:45:27 -04:00
Siddhesh Poyarekar
48c41d04ee
Consider TTL of CNAME record and return minimum TTL in the chain
...
[BZ #13928 ] A DNS request consists of multiple resources combined into
a single hostent, including multiple CNAME records that may have been
assigned different TTL values. In such a case, nscd should take the
least TTL among all of the resources as the timeout for the hostent
before it is reloaded in its cache so that the hostent remains stale
in the database for the least amount of time.
2012-03-30 21:30:01 +05:30
Jeff Law
2f5a5ed02c
* resolv/nss_dns/dns-host.c: Update copyright year.
2012-03-30 09:54:21 -06:00
Jeff Law
b8dc394ddf
2012-03-29 Jeff Law <law@redhat.com>
...
* crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
due to long keys.
* crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
* crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
2012-03-30 09:51:27 -06:00
Ulrich Drepper
8e6d108343
Correct check for DNS request send success
...
This predates the sendmmsg use. The two requests can use different
request sizes but the check for successful transfer always only used
buflen.
2012-03-30 08:27:11 -04:00
Ulrich Drepper
c030f70c87
Speed up DNS by avoiding a system call if possible
2012-03-30 07:42:29 -04:00
Ulrich Drepper
1d39e35923
Comment fixes for mmsghdr
2012-03-30 06:35:29 -04:00
Tulio Magno Quites Machado Filho
e64d2de526
Fix a bug when converting strings with 1 character using TCVN5712-1
...
It isn't necessary to buffer the last character of strings. This can cause a
bug with strings that have 1 character between 0x0041 and 0x01b0.
[BZ #13691 ]
* iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
with only 1 character between 0x0041 and 0x01b0.
* wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
* wcsmbs/tst-mbsnrtowcs.c: New file.
2012-03-30 10:43:43 +02:00
David S. Miller
20fde22738
Remove xsputn small copy optimization.
...
* libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
small copies by hand.
2012-03-29 14:38:27 -07:00
Jeff Law
984a42374c
[BZ #13761 ]
...
* nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
_nss_compat_initgroups_dyn): Fall back to malloc/free for
large group memberships.
2012-03-29 09:56:27 -06:00
David S. Miller
88d85d4f00
Optimize mempcpy on sparc.
...
* sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
that branches into memcpy.
* sysdeps/sparc/sparc64/memcpy.S: Likewise.
* sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
* sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
* sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
* sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
bits.
* sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
implementation too.
* sysdeps/sparc/mempcpy.S: New file.
2012-03-28 22:35:26 -07:00
David S. Miller
e5aa83e16d
Do not elide the libc hidden def of sparc's memset/memcpy when multiarching.
...
* sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
the IFUNC routine in the libc case.
* sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
2012-03-28 22:26:38 -07:00
David S. Miller
88570753ec
Use generic memset/memcpy in rtld on sparcv9/sparc64.
...
* sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
* sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
* sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
* sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
* sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
* sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
* sysdeps/sparc/sparc64/rtld-memset.c: New file.
* sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
2012-03-28 22:22:15 -07:00
David S. Miller
249d7567cc
Fix bugs and improve performance of niagara memset/bzero.
...
* sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
loop to 256 bytes instead of 64 bytes and fix test signedness.
2012-03-28 21:59:43 -07:00
David S. Miller
18c9d62b9c
Make sparc's -fPIC addition to ASFLAGS-.os more robust.
...
* sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
* sysdeps/sparc/sparc32/Makefile: rather than here...
* sysdeps/sparc/sparc64/Makefile: and here.
2012-03-28 14:25:42 -07:00
Ulrich Drepper
fb289bde9a
Merge branch 'master' of ssh://sourceware.org/git/glibc
...
Conflicts:
ChangeLog
2012-03-28 13:06:05 -04:00
Ulrich Drepper
05f3d1f6c6
Avoid warnings in test malloc program
2012-03-28 13:05:11 -04:00
Jeff Law
86ae07a8c9
[BZ #13760 ]
...
* resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
in the right place. Discard and retry query if response is
larger than input buffer size.
2012-03-28 10:09:29 -06:00
Joseph Myers
d6270972f7
Fix pow of negative numbers to integer exponents (bugs 369, 2678, 3866).
2012-03-28 14:57:58 +00:00
Joseph Myers
414fca039e
Bug 3868 also fixed by __kernel_standard_l changes.
2012-03-28 09:52:05 +00:00
Joseph Myers
41bf21a1e7
Avoid overflows from long double functions using __kernel_standard.
2012-03-28 09:32:12 +00:00
Anton Blanchard
dd62fda6cc
Define MAP_STACK and MAP_HUGETLB on powerpc, s390, sh and sparc.
...
* sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
MAP_HUGETLB.
* sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
* sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
2012-03-27 18:37:16 -07:00
David S. Miller
b855ab8539
Run conformtest script explicitly using BASH.
...
* conform/Makefile: Run run-conformtest.sh using $(BASH).
2012-03-27 15:02:19 -07:00
Andreas Jaeger
1e3cdfda74
Merge branch 'elf-move'
...
Conflicts:
debug/backtracesymsfd.c
sysdeps/generic/elf/backtracesymsfd.c
sysdeps/i386/configure.in
2012-03-27 21:35:36 +02:00
Andreas Schwab
c876e002a2
Update powerpc libm test ULPs
2012-03-26 14:20:28 +02:00
Andreas Schwab
a3f61311c0
Fix undue underflow in ldbl-128ibm version of expl
2012-03-26 14:19:35 +02:00
Roland McGrath
ac4c54f0cc
Fix confstr use of local buffer outside its extent.
2012-03-25 11:36:35 -07:00
Jeff Law
6a9b9c02fa
2012-03-23 Jeff Law <law@redhat.com>
...
* nss/getnssent.c (__nss_getent): Fix typo.
2012-03-23 14:56:42 -06:00
David S. Miller
4c42a0c1d5
Update sparc ULPs for recently added tests and bug fixes.
...
* sysdeps/sparc/fpu/libm-test-ulps: Update.
2012-03-23 11:57:53 -07:00
H.J. Lu
1532c7ac9a
Make sure x86_64 GOT entry slot is always 8 bytes
2012-03-23 11:06:57 -07:00
Paul Pluzhnikov
3ff4252677
2012-03-23 Daniel Jacobowitz <dmj@google.com>
...
Paul Pluzhnikov <ppluzhnikov@google.com>
[BZ #6528 ]
* grp/Makefile (otherlibs): Don't set it.
* inet/Makefile (otherlibs): Likewise.
* login/Makefile (otherlibs): Likewise.
* nscd/Makefile (otherlibs): Likewise.
* posix/Makefile (otherlibs): Likewise.
* pwd/Makefile (otherlibs): Likewise.
* rt/Makefile (otherlibs): Likewise.
* sunrpc/Makefile (otherlibs): Likewise.
* nss/Makefile (otherlibs): Likewise.
Add libnss_files to routines and static-only-routines.
($(objpfx)getent): Remove rule.
* resolv/Makefile: Add libnss_dns and libresolv to routines and
static-only-routines.
2012-03-23 09:47:03 -07:00
Joseph Myers
7c69cd143b
Fix cexp overflow (bug 13892).
2012-03-22 19:38:09 +00:00
H.J. Lu
81b035fe63
Replace Elf64_XXX with ElfW(XXX) in dl-irel.h
2012-03-22 10:17:05 -07:00
H.J. Lu
1da7940c77
Replace unsigned long with uint64_t
2012-03-22 10:02:57 -07:00
H.J. Lu
b749dbb9b7
Add forward declaration for La_x32_regs/La_x32_retval
2012-03-22 09:01:16 -07:00
H.J. Lu
2ff87f3f18
Add sysdeps/x86_64/preconfigure
2012-03-22 08:28:39 -07:00
Joseph Myers
48e44791e4
Fix exp2l inaccuracy (bug 13824).
2012-03-22 12:55:19 +00:00
Joseph Myers
c0df8e693f
Fix low-part sign handling in sin/cos for ldbl-128 and ldbl-128ibm.
2012-03-22 12:52:50 +00:00
H.J. Lu
c8e43ba739
Add x32 support to dynamic linker audit
2012-03-21 17:14:49 -07:00
Andreas Schwab
dcb3398838
Fix missing overflow/underflow exception in ldbl-128ibm version of powl
2012-03-21 23:59:22 +01:00
Andreas Schwab
233fc56343
Update powerpc libm-test ULPs
2012-03-21 23:59:22 +01:00
Andreas Schwab
7998fa7899
Disable use of FMA instructions in branred
2012-03-21 23:58:50 +01: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
David S. Miller
6f4db457f8
Update sparc ULPs for recently added tests.
...
* sysdeps/sparc/fpu/libm-test-ulps: Update.
2012-03-21 14:20:46 -07:00
H.J. Lu
7785fe5a0b
Check x86_64* instead of x86_64
2012-03-21 12:37:38 -07:00
Joseph Myers
4535cd55e2
Don't document varargs.h.
2012-03-21 17:52:19 +00:00
Thomas Schwinge
1722813295
Weaken -fstack-protector configure test to a compile test.
2012-03-21 17:51:08 +00:00
Thomas Schwinge
8149f97606
Don't tamper with $HOME.
2012-03-21 18:10:03 +01:00
Joseph Myers
be22ce65d7
Remove NOTES.
2012-03-21 16:56:28 +00:00
Joseph Myers
40b601fbb7
Use autoconf macro for testing compiler options with empty input.
2012-03-21 16:33:57 +00:00
Joseph Myers
1a4ac776eb
Remove inaccurate x86 cexp implementations (bug 13883).
2012-03-21 15:28:05 +00:00
Allan McRae
a458e7fe38
Do not install iso3166.tab and zone.tab
...
2012-03-21 Allan McRae <allan@archlinux.org>
* timezone/Makefile: Do not install iso3166.tab and zone.tab
2012-03-21 16:13:21 +01:00
Joseph Myers
0cb7efc517
Fix missing exp2 overflow exception (bug 13871).
2012-03-21 12:17:26 +00:00
Joseph Myers
2460d3aa21
Fix pow of zero and infinity to large powers.
2012-03-21 12:16:00 +00:00
H.J. Lu
eb96ffb07d
Move stdio-common/_itoa.h to sysdeps/generic
2012-03-20 16:00:23 -07:00
H.J. Lu
d1af992d0d
Check __x86_64__ instead of __WORDSIZE in mathinline.h
2012-03-20 08:54:58 -07:00
H.J. Lu
114883e00a
Support x86-64 __jmp_buf with __WORDSIZE != 64
2012-03-20 08:53:42 -07:00
Joseph Myers
c135cc1b5f
Test for overflow exceptions in libm-test.inc.
2012-03-20 10:58:04 +00:00
H.J. Lu
c27225516c
Correct ChangeLog entry.
2012-03-19 17:47:44 -07:00
H.J. Lu
95443d88af
Use atomic64_t with 64bit atomic macros
2012-03-19 17:29:26 -07:00
H.J. Lu
490df6c441
Check __x86_64__ instead of __WORDSIZE for fenv_t
2012-03-19 16:10:51 -07:00
H.J. Lu
5e52b189f0
Check __x86_64__ instead of __WORDSIZE in mathdef.h
2012-03-19 16:00:52 -07:00
David S. Miller
e1497744f0
Update sparc ULPs for newly added tests.
...
* sysdeps/sparc/fpu/libm-test-ulps: Update.
2012-03-19 15:46:15 -07:00
H.J. Lu
a9879d4cde
Add x32 support to ldd-rewrite.sed
2012-03-19 15:18:44 -07:00
H.J. Lu
b4c35121c4
Use int64_t in x86_64/fpu/math_private.h
2012-03-19 15:17:48 -07:00
David S. Miller
5df98260fe
Fix sparc build after math_private.h cleanups.
...
* sysdeps/sparc/fpu/fenv_private.h: New file.
* sysdeps/sparc/fpu/math_private.h: Use it.
(libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
Remove.
(libc_feholdexcept_setround, libc_feholdexcept_setroundf,
(libc_feholdexcept_setroundl): Remove.
(libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
Remove.
(libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
(libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
2012-03-19 15:12:50 -07:00
H.J. Lu
56965fd71c
Cast _Unwind_GetCFA return to _Unwind_Ptr first
2012-03-19 13:33:20 -07:00
Joseph Myers
1897ad4432
Fix clog overflow/underflow (bug 13629).
2012-03-19 20:14:26 +00:00
Joseph Myers
7726d6a95d
Fix atan2 spurious exceptions (bug 11451).
2012-03-19 20:11:09 +00:00
Joseph Myers
83d1aec8fc
Remove common-objdir-compile and related sysdeps/unix/Makefile code.
2012-03-19 16:23:26 +00:00
Richard Henderson
bd37f2ee31
Optimize private 387 fenv access; share code between i386 and x86_64.
2012-03-19 06:51:39 -07:00
Richard Henderson
d0adc92230
i386/x86_64: Optimize feholdexcept.
2012-03-19 06:51:06 -07:00
Richard Henderson
0fe0f1f86f
Create and use libc_feupdateenv_test.
...
We can reduce the number of STMXCSR, and often we can avoid the
call to __feraiseexcept.
2012-03-19 06:50:41 -07:00
Richard Henderson
eb92c487b3
Create and use SET_RESTORE_ROUND{,_NOEX,_53BIT}{,F,L}.
2012-03-19 06:49:44 -07:00
Richard Henderson
7d2e8012cf
i386: Convert libc_{feholdexcept_setround,updateenv}_53bit to functions.
...
Also fix a bug in libc_feupdateenv_53bit: don't force the rounding
precision back to _FPU_EXTENDED, instead restore the precision that
the user had in effect beforehand.
2012-03-19 06:49:04 -07:00
Richard Henderson
b4dabbb47a
Convert libc_feholdexcept et al from macros to inline functions.
2012-03-19 06:48:27 -07:00
Richard Henderson
4851a949b4
Make inline __isnan, __isinf_ns, __finite generic.
...
For code generation to stay identical on x86_64, this requires that
we define the fp word manipulation macros before including the
generic header.
2012-03-19 06:47:43 -07:00