Andreas Jaeger [Mon, 22 Oct 2012 07:31:36 +0000 (09:31 +0200)]
Add missed ChangeLog entry
Andreas Jaeger [Mon, 22 Oct 2012 07:29:52 +0000 (09:29 +0200)]
Improve <bits/fcntl-linux.h>: F_GETLK etc.
(F_GETLK, F_SETLK, F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
Andreas Jaeger [Mon, 22 Oct 2012 07:24:14 +0000 (09:24 +0200)]
Install <bits/fcntl-linux.h>
(sysdep_headers): Add bits/fcntl-linux.h.
Andreas Jaeger [Mon, 22 Oct 2012 07:19:30 +0000 (09:19 +0200)]
Use __O_LARGEFILE instead of O_LARGEFILE
Jim Blandy [Sun, 21 Oct 2012 22:38:34 +0000 (22:38 +0000)]
Use $(NM) not nm in tst-cancel-wrappers.
Andreas Jaeger [Sun, 21 Oct 2012 18:01:32 +0000 (20:01 +0200)]
SH: Use <bits/fcntl-linux.h>
Remove all definitions and declarations that are provided by
<bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
H.J. Lu [Sat, 20 Oct 2012 23:16:59 +0000 (16:16 -0700)]
Check the main application only if SHARED is defined
Andreas Jaeger [Sat, 20 Oct 2012 10:54:49 +0000 (12:54 +0200)]
Reorganization of bits/fcntl.h for Linux
Create a new bits/fcntl-linux.h that contains Linux generic code and a
include it from the architecture specific bits/fcntl.h.
Architectures done: x86, SPARC, s390
Roland McGrath [Sat, 20 Oct 2012 10:52:29 +0000 (12:52 +0200)]
Alsways include <bits/types.h> in <fcntl.h>.
Move include of <bits/types.h> to the top and include it unconditionally.
H.J. Lu [Sat, 20 Oct 2012 05:13:34 +0000 (22:13 -0700)]
Add wcsmbs IFUNC tests
H.J. Lu [Sat, 20 Oct 2012 05:04:19 +0000 (22:04 -0700)]
Add string IFUNC tests
H.J. Lu [Sat, 20 Oct 2012 05:02:47 +0000 (22:02 -0700)]
Add debug IFUNC tests
Siddhesh Poyarekar [Sat, 20 Oct 2012 02:30:58 +0000 (08:00 +0530)]
Retry read in ld.so if the entire ELF header is not read in
[BZ #13601]
A read operation could return less than requested data for a number of
reasons.
Joseph Myers [Fri, 19 Oct 2012 23:31:28 +0000 (23:31 +0000)]
Use $(built-program-cmd) in io/ftwtest-sh.
Joseph Myers [Fri, 19 Oct 2012 23:30:43 +0000 (23:30 +0000)]
Use $(run-program-prefix) in more shell script tests.
Joseph Myers [Fri, 19 Oct 2012 20:03:12 +0000 (20:03 +0000)]
Remove relics of support for configuring in the source directory.
Joseph Myers [Fri, 19 Oct 2012 20:01:45 +0000 (20:01 +0000)]
Use working directory, not /tmp, in io/ftwtest-sh.
Joseph Myers [Fri, 19 Oct 2012 20:00:43 +0000 (20:00 +0000)]
Use $(built-program-cmd) in posix/tst-getconf.sh.
Jim Blandy [Fri, 19 Oct 2012 19:59:34 +0000 (19:59 +0000)]
Clean up localedata/tst-wctype.sh to match how it is called.
H.J. Lu [Sun, 14 Oct 2012 07:05:10 +0000 (00:05 -0700)]
Add a testcase for BZ #14716
Florian Pritz [Tue, 16 Oct 2012 15:06:42 +0000 (17:06 +0200)]
Fix case of February month name in de_AT locale.
Pravin Satpute [Fri, 19 Oct 2012 02:52:00 +0000 (08:22 +0530)]
mr_IN locale fixes
[BZ #14694]
Fix Wednesday in DAY and August, September and October in ABMON and
MON.
Markus Trippelsdorf [Thu, 18 Oct 2012 20:03:49 +0000 (16:03 -0400)]
Comment on slow compilation of math/test-tgmath2.c
The math/test-tgmath2.c testcase uses very long lines
(>3 million), so it may take a while to compile it.
See: http://llvm.org/bugs/show_bug.cgi?id=14106 and
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54402
Joseph Myers [Thu, 18 Oct 2012 18:50:43 +0000 (18:50 +0000)]
Remove _G_OPEN64, _G_LSEEK64, _G_MMAP64, _G_FSTAT64 from _G_config.h.
Siddhesh Poyarekar [Thu, 18 Oct 2012 02:55:03 +0000 (08:25 +0530)]
Add note on free list pointers overwriting M_PERTURB bytes
Fixes BZ #12140.
Joseph Myers [Wed, 17 Oct 2012 23:42:32 +0000 (23:42 +0000)]
Don't call feclearexcept in gamma function tests.
Siddhesh Poyarekar [Wed, 17 Oct 2012 15:35:29 +0000 (21:05 +0530)]
Fix typo in nptl/ChangeLog
Siddhesh Poyarekar [Wed, 17 Oct 2012 15:32:56 +0000 (21:02 +0530)]
Don't check error return for pthread_cancel in tst-cond25
Siddhesh Poyarekar [Tue, 16 Oct 2012 08:53:01 +0000 (14:23 +0530)]
Adjust mutex lock in condvar_cleanup if we got it from requeue_pi
This completes the fix to bz #14652.
Florian Weimer [Tue, 16 Oct 2012 08:33:50 +0000 (10:33 +0200)]
__alloc_dir: avoid integer overflow in malloc argument
Maxim Kuvyrkov [Tue, 16 Oct 2012 00:22:41 +0000 (17:22 -0700)]
Fix BZ #14716: memmem crash
Chris Metcalf [Thu, 11 Oct 2012 16:15:45 +0000 (12:15 -0400)]
tilegx: add optimized sched_getcpu() using TILE_COORD SPR
We can discover our x,y coordinate in the core mesh with an
mfspr instruction, multiply y by the core mesh width, and have
the core number without needing to ask the kernel.
H.J. Lu [Fri, 12 Oct 2012 16:21:47 +0000 (09:21 -0700)]
Use __uint64_t in x86 __bswap_64
Andreas Schwab [Thu, 11 Oct 2012 12:48:32 +0000 (14:48 +0200)]
Avoid PLT references from __get_clockfreq on powerpc
H.J. Lu [Wed, 10 Oct 2012 14:49:12 +0000 (07:49 -0700)]
Add x86-64 __libc_ifunc_impl_list
H.J. Lu [Wed, 10 Oct 2012 14:48:45 +0000 (07:48 -0700)]
Add i686 __libc_ifunc_impl_list
H.J. Lu [Wed, 10 Oct 2012 14:47:59 +0000 (07:47 -0700)]
Framework to test IFUNC implementations on target
H.J. Lu [Thu, 11 Oct 2012 20:58:16 +0000 (13:58 -0700)]
Use IFUNC memmove/memset in x86-64 bcopy/bzero
Also add separate tests for bcopy and bzero.
Carlos O'Donell [Thu, 11 Oct 2012 03:34:38 +0000 (23:34 -0400)]
Fixup nptl/ChangeLog for last commit.
Carlos O'Donell [Thu, 11 Oct 2012 03:28:52 +0000 (23:28 -0400)]
Fix formatting in nptl/sysdeps/pthread/pthread.h.
The macro pthread_cleanup_push_defer_np in pthread.h has a misaligned
line continuation marker. This marker was previously aligned, but
recent changes have moved it out of alignment. This change realigns
the marker. This also reduces the diff against the hppa version of
pthread.h where the marker is aligned.
Carlos O'Donell [Thu, 11 Oct 2012 03:00:00 +0000 (23:00 -0400)]
hppa: Update pthread.h
Updates the hppa-specific pthread.h from the generic version.
After this update the only difference between the generic
version and the hppa version is the footer protected by the
_PTHREAD_H_HPPA_ guard.
Carlos O'Donell [Thu, 11 Oct 2012 02:52:00 +0000 (22:52 -0400)]
hppa: Remove pt-initfini.c
Rmoves the unused pt-initfini.c
Carlos O'Donell [Thu, 11 Oct 2012 02:42:52 +0000 (22:42 -0400)]
hppa: Restore nptl/shlib-versions.
On 2012-01-07 the nptl/shlib-versions file removed the hppa entry.
This restores that entry in the hppa ports tree.
Joseph Myers [Wed, 10 Oct 2012 22:07:36 +0000 (22:07 +0000)]
Use $CXX not cc1plus to locate C++ headers.
Joseph Myers [Wed, 10 Oct 2012 21:07:20 +0000 (21:07 +0000)]
Don't include link-libc-static in +link-static-before-libc.
Joseph Myers [Wed, 10 Oct 2012 16:05:36 +0000 (16:05 +0000)]
Remove _IO_pos_t.
Alexandre Oliva [Wed, 10 Oct 2012 10:06:03 +0000 (07:06 -0300)]
* NEWS: Add note about FIPS mode. Wording suggested by Roland
McGrath.
Alexandre Oliva [Wed, 10 Oct 2012 10:05:46 +0000 (07:05 -0300)]
* crypt/crypt-entry.c: Include fips-private.h.
(__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
* crypt/md5c-test.c (main): Tolerate disabled MD5.
* sysdeps/unix/sysv/linux/fips-private.h: New file.
* sysdeps/generic/fips-private.h: New file, dummy fallback.
Alexandre Oliva [Wed, 10 Oct 2012 10:05:10 +0000 (07:05 -0300)]
* crypt/crypt-private.h: Include stdbool.h.
(_ufc_setup_salt_r): Return bool.
* crypt/crypt-entry.c: Include errno.h.
(__crypt_r): Return NULL with EINVAL for bad salt.
* crypt/crypt_util.c (bad_for_salt): New.
(_ufc_setup_salt_r): Check that salt is long enough and within
the specified alphabet.
* crypt/badsalttest.c: New file.
* crypt/Makefile (tests): Add it.
($(objpfx)badsalttest): New.
Siddhesh Poyarekar [Wed, 10 Oct 2012 06:47:27 +0000 (12:17 +0530)]
Take lock in pthread_cond_wait cleanup handler only when needed
[BZ #14652]
When a thread waiting in pthread_cond_wait with a PI mutex is
cancelled after it has returned successfully from the futex syscall
but just before async cancellation is disabled, it enters its
cancellation handler with the mutex held and simply calling a
mutex_lock again will result in a deadlock. Hence, it is necessary to
see if the thread owns the lock and try to lock it only if it doesn't.
Maxim Kuvyrkov [Wed, 10 Oct 2012 00:09:30 +0000 (17:09 -0700)]
Add NEWS entry for BZ #14602.
Joseph Myers [Tue, 9 Oct 2012 23:34:12 +0000 (23:34 +0000)]
Make libm-test.inc test comparison macros.
Roland McGrath [Tue, 9 Oct 2012 22:48:55 +0000 (15:48 -0700)]
Automatically disable libidn add-on under --disable-shared.
Roland McGrath [Tue, 9 Oct 2012 22:41:30 +0000 (15:41 -0700)]
Add missing magic to GLIBC_PROVIDES.
Roland McGrath [Tue, 9 Oct 2012 22:22:16 +0000 (15:22 -0700)]
Free errstring if _dl_addr doesn't returns 0
Joseph Myers [Tue, 9 Oct 2012 15:09:32 +0000 (15:09 +0000)]
Remove _G_off64_t and _G_stat64 from _G_config.h.
Maxim Kuvyrkov [Tue, 9 Oct 2012 03:52:53 +0000 (20:52 -0700)]
Fix BZ #14602: strstr and strcasestr return wrong result.
Joseph Myers [Mon, 8 Oct 2012 22:22:23 +0000 (22:22 +0000)]
Improve libm test coverage of classification macros / functions.
Jonathan Nieder [Mon, 8 Oct 2012 21:17:02 +0000 (14:17 -0700)]
Add bugs 14660, 14661 to NEWS
Jonathan Nieder [Mon, 8 Oct 2012 21:04:23 +0000 (14:04 -0700)]
nptl_db/Makefile: force C locale when running readelf
db-symbols.awk relies on English-language readelf output to find the
beginning of the symbol table, so force the locale.
Without this change, "make check" fails in non-English locales:
| diff -p -U 0 ../sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist [...]/nptl_db/libthread_db.symlist
| readelf -W -s [...]/nptl/libpthread.so | gawk -f [...]/nptl_db/db-symbols.v.i > [...]/nptl_db/db-symbols.out
| make[2]: *** [[...]/nptl_db/db-symbols.out] Erreur 1
Jonathan Nieder [Mon, 8 Oct 2012 21:04:15 +0000 (14:04 -0700)]
Makerules (check-abi-%): force C locale when running objdump
abilist.awk relies on English-language output to find the "file
format" header line in "objdump --dynamic-syms" output, so force the
locale.
Without this change, "make check" fails in non-English locales:
| diff -p -U 0 ../sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist [...]/locale/libBrokenLocale.symlist
| --- ../sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist 2012-10-02 18:33:50.
761863147 -0700
| +++ [...]/locale/libBrokenLocale.symlist 2012-10-03 00:11:22.
877234252 -0700
| @@ -0,0 +1 @@
| +Don't grok this line: [...]/locale/libBrokenLocale.so: format de fichier elf64-x86-64
| make[2]: *** [check-abi-libBrokenLocale] Erreur 1
Andreas Schwab [Mon, 8 Oct 2012 09:41:11 +0000 (11:41 +0200)]
Fix missing include in sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
David S. Miller [Sun, 7 Oct 2012 01:36:40 +0000 (18:36 -0700)]
Fix Niagara-4 memcpy bug on 32-bit.
* sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
upper 32-bits of the length value in %o2 since we use branch-on-register
tests which consider the entire 64-bit register.
H.J. Lu [Sat, 6 Oct 2012 23:04:56 +0000 (16:04 -0700)]
Add a strstr test for page boundary
David S. Miller [Sat, 6 Oct 2012 04:22:41 +0000 (21:22 -0700)]
Correct libthreadb register access for 64-bit sparc.
[BZ #14568]
* sysdeps/sparc/tls.h (DB_THREAD_SELF_INCLUDE): Delete.
(DB_THREAD_SELF): Use constants for the register offsets. Correct
the case of a 64-bit debugger with a 32-bit inferior.
David S. Miller [Fri, 5 Oct 2012 21:46:47 +0000 (14:46 -0700)]
Add Niagara-4 optimized memset/bzero implementation.
* sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
* sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
file.
* sysdeps/sparc/sparc64/multiarch/Makefile: Add to
sysdep_routines.
* sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
* sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
and bzero when HWCAP_SPARC_CRYPTO is present.
H.J. Lu [Fri, 5 Oct 2012 20:30:02 +0000 (13:30 -0700)]
Add a testase for BZ #14602
H.J. Lu [Fri, 5 Oct 2012 20:32:07 +0000 (13:32 -0700)]
Test strcasestr/strchr/strstr under all implementations
Roland McGrath [Fri, 5 Oct 2012 16:39:23 +0000 (09:39 -0700)]
Clean up R_ARM_PC24 handling.
H.J. Lu [Fri, 5 Oct 2012 17:26:29 +0000 (10:26 -0700)]
Move _dl_important_hwcaps to dl-hwcaps.c
H.J. Lu [Fri, 5 Oct 2012 17:23:58 +0000 (10:23 -0700)]
Add test cases for BZ #14557
H.J. Lu [Fri, 5 Oct 2012 17:22:14 +0000 (10:22 -0700)]
Set GL(dl_nns) to 1 for vDSO in libc.a
H.J. Lu [Fri, 5 Oct 2012 17:20:39 +0000 (10:20 -0700)]
Set up the data structures for vDSO in libc.a
Joseph Myers [Fri, 5 Oct 2012 17:06:23 +0000 (17:06 +0000)]
Improve libm-test.inc comment.
Joseph Myers [Fri, 5 Oct 2012 16:00:07 +0000 (16:00 +0000)]
Update config.guess and config.sub.
Siddhesh Poyarekar [Fri, 5 Oct 2012 13:22:35 +0000 (18:52 +0530)]
Unlock mutex before going back to waiting for PI mutexes
[BZ #14417]
A futex call with FUTEX_WAIT_REQUEUE_PI returns with the mutex locked
on success. If such a successful thread is pipped to the cond_lock by
another spuriously woken waiter, it could be sent back to wait on the
futex with the mutex lock held, thus causing a deadlock. So it is
necessary that the thread relinquishes the mutex before going back to
sleep.
Khem Raj [Sun, 9 Sep 2012 04:29:10 +0000 (21:29 -0700)]
powerpc: add name_to_handle_at, open_by_handle etc. to bits/fcntl.h
Fixes BZ #14251.
Roland McGrath [Thu, 4 Oct 2012 23:31:43 +0000 (16:31 -0700)]
Name space hygeine for madvise.
Roland McGrath [Wed, 3 Oct 2012 23:13:14 +0000 (16:13 -0700)]
Clean up conditionalize of ld.so.cache support.
Steve Ellcey [Wed, 3 Oct 2012 21:32:26 +0000 (14:32 -0700)]
2012-10-03 Steve Ellcey <sellcey@mips.com>
* sysdeps/mips/ieee754.h: Move to...
* sysdeps/mips/ieee754/ieee754.h: Here.
* sysdeps/mips/mips32/Implies: Add mips/ieee754.
* sysdeps/mips/mips64/Implies: Ditto.
* sysdeps/mips/mips64/n32/Implies: Ditto.
* sysdeps/mips/mips64/n64/Implies: Ditto.
Steve Ellcey [Wed, 3 Oct 2012 21:31:00 +0000 (14:31 -0700)]
2012-10-03 Steve Ellcey <sellcey@mips.com>
* sysdeps/mips/ieee754.h: Move to...
* sysdeps/mips/ieee754/ieee754.h: Here.
* sysdeps/mips/mips32/Implies: Add mips/ieee754.
* sysdeps/mips/mips64/Implies: Ditto.
* sysdeps/mips/mips64/n32/Implies: Ditto.
* sysdeps/mips/mips64/n64/Implies: Ditto.
Pino Toscano [Wed, 3 Oct 2012 20:57:38 +0000 (22:57 +0200)]
sysconf/posix: handle _SC_LEVEL4_CACHE_LINESIZE
Roland McGrath [Wed, 3 Oct 2012 20:43:58 +0000 (13:43 -0700)]
Remove sysdeps/unix/bsd/confstr.h file.
Alexandre Oliva [Wed, 3 Oct 2012 02:40:52 +0000 (23:40 -0300)]
* scripts/check-local-headers.sh: Exclude sys/sdt.h and
sys/sdt-config.h.
H.J. Lu [Tue, 2 Oct 2012 23:50:47 +0000 (16:50 -0700)]
Update copyright years
Roland McGrath [Tue, 2 Oct 2012 22:56:15 +0000 (15:56 -0700)]
Use ElfW(Off) rather than off_t for offsets within ELF files.
Dmitry V. Levin [Thu, 23 Aug 2012 14:29:43 +0000 (14:29 +0000)]
nscd: fix compilation flags
Commit
61653dfb81b776bb72ce4304175b861d77c357a8 added support for
compilers predefining _FORTIFY_SOURCE by adding -U_FORTIFY_SOURCE to
CPPFLAGS for these compilers, but that change doesn't work quite well in
case of nscd: its Makefile sets _FORTIFY_SOURCE using CFLAGS instead of
CPPFLAGS and, thanks to compilation rules defined in Makerules, CPPFLAGS
are passed to compiler after CFLAGS, resulting to a build with
_FORTIFY_SOURCE turned off.
This change implements a more safe method of passing preprocessor and
compiler flags so that no nscd modules could be accidentally forgotten.
Dmitry V. Levin [Sun, 13 Sep 2009 19:45:27 +0000 (19:45 +0000)]
Clarify memory allocation error diagnostics to avoid confusion
H.J. Lu [Tue, 2 Oct 2012 12:05:17 +0000 (05:05 -0700)]
Define HAS_FMA with bit_FMA_Usable
Siddhesh Poyarekar [Tue, 2 Oct 2012 03:55:42 +0000 (09:25 +0530)]
Split my last ChangeLog entry into respective arch-specific files
Siddhesh Poyarekar [Tue, 2 Oct 2012 03:22:55 +0000 (08:52 +0530)]
Fix clone flag name in comment to CLONE_CHILD_CLEARTID.
Roland McGrath [Mon, 1 Oct 2012 21:39:29 +0000 (14:39 -0700)]
Get rid of unused __swblk_t type.
Jeff Law [Mon, 1 Oct 2012 21:32:39 +0000 (15:32 -0600)]
2012-10-01 Patsy Franklin <pfrankli@redhat.com>
Honza Horak <hhorak@redhat.com>
* nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
(xdr_mapname): Use YPMAXMAP as maxsize.
(xdr_peername): Use YPMAXPEER as maxsize.
(xdr_keydat): Use YPAXRECORD as maxsize.
(xdr_valdat): Use YPMAXRECORD as maxsize.
Roland McGrath [Mon, 1 Oct 2012 20:07:58 +0000 (13:07 -0700)]
Define __have_atfcts global in stub openat implementation.
Roland McGrath [Mon, 1 Oct 2012 19:55:34 +0000 (12:55 -0700)]
Clean up init-first.c files.
Siddhesh Poyarekar [Mon, 1 Oct 2012 17:50:42 +0000 (23:20 +0530)]
Fix exception table for i386 pthread_cond_wait
[BZ #14477]
Add an additional entry in the exception table to jump to
__condvar_w_cleanup2 instead of __condvar_w_cleanup for PI mutexes
when %ebx contains the address of the futex instead of the condition
variable.
Joseph Myers [Mon, 1 Oct 2012 08:30:06 +0000 (08:30 +0000)]
Fix sign of inexact zero return from fma (bug 14645).
Joseph Myers [Sat, 29 Sep 2012 18:31:54 +0000 (18:31 +0000)]
Fix sign of exact zero return from fma (bug 14638).
David S. Miller [Fri, 28 Sep 2012 23:36:35 +0000 (16:36 -0700)]
Uncorrupt Sparc ULPS file.
* sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
Roland McGrath [Fri, 28 Sep 2012 23:22:51 +0000 (16:22 -0700)]
Implement POSIX-generic sleep via nanosleep rather than SIGARLM.