]> sourceware.org Git - glibc.git/log
glibc.git
12 years agoaio_notify: fix _POSIX_REALTIME_SIGNALS check
Pino Toscano [Mon, 29 Oct 2012 18:35:09 +0000 (19:35 +0100)]
aio_notify: fix _POSIX_REALTIME_SIGNALS check

Check that _POSIX_REALTIME_SIGNALS is greater than zero to assume realtime
signals are supported, instead of any non-zero value (including -1).

12 years agotile: add vDSO support for gettimeofday()
Chris Metcalf [Fri, 26 Oct 2012 13:21:08 +0000 (09:21 -0400)]
tile: add vDSO support for gettimeofday()

12 years agoDefine a BUSY_WAIT_NOP for sparc.
David S. Miller [Mon, 29 Oct 2012 06:19:00 +0000 (23:19 -0700)]
Define a BUSY_WAIT_NOP for sparc.

nptl/

* sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP):
Define when we have v9 instructions available.
* sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: New file.
* sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S: New
file.
* sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile: New
file.
* sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: Add cpu_relax
to libpthread-routines.

12 years agoRemove redundant defines of __O_LARGEFILE
Andreas Jaeger [Sat, 27 Oct 2012 11:49:30 +0000 (13:49 +0200)]
Remove redundant defines of __O_LARGEFILE

* sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
[!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
* sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
[__WORDSIZE != 64]: Likewise.

* sysdeps/unix/sysv/linux/generic/bits/fcntl.h: (__O_LARGEFILE)
[__WORDSIZE != 64]: Do not define, take value from
<bits/fcntl-linux.h>.

12 years agoRemove ${SHELL} from tst-table.sh/tst-tables.sh
H.J. Lu [Fri, 26 Oct 2012 20:47:25 +0000 (13:47 -0700)]
Remove ${SHELL} from tst-table.sh/tst-tables.sh

12 years agoHPPA: Use <bits/fcntl-linux.h>
Andreas Jaeger [Fri, 26 Oct 2012 19:17:06 +0000 (21:17 +0200)]
HPPA: Use <bits/fcntl-linux.h>

* sysdeps/unix/sysv/linux/hppa/bits/fcntl.h: Remove all
definitions and declarations that are provided by
<bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
(__O_PATH): Define.

12 years agoFix build breakage in tst-cond-except.c.
Roland McGrath [Fri, 26 Oct 2012 00:02:51 +0000 (17:02 -0700)]
Fix build breakage in tst-cond-except.c.

12 years agoAdd IFUNC test lists for memcpy/mempcpy/memset on sparc.
David S. Miller [Thu, 25 Oct 2012 22:51:43 +0000 (15:51 -0700)]
Add IFUNC test lists for memcpy/mempcpy/memset on sparc.

* sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
ifunc-impl-list.c
* sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
* sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
* sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
file.

12 years agoFix sparc64 build.
David S. Miller [Thu, 25 Oct 2012 22:41:32 +0000 (15:41 -0700)]
Fix sparc64 build.

* sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
(__get_clockfreq_via_proc_openprom): Use strtoumax instead
of strtoull.

12 years agoUse bash to run nptl/tst-tls6.sh.
Joseph Myers [Thu, 25 Oct 2012 21:59:14 +0000 (21:59 +0000)]
Use bash to run nptl/tst-tls6.sh.

12 years agoUse __getdents instead of __getdirentries in sparc __get_clockfreq_via_proc_openprom.
Roland McGrath [Thu, 25 Oct 2012 21:49:28 +0000 (14:49 -0700)]
Use __getdents instead of __getdirentries in sparc __get_clockfreq_via_proc_openprom.

12 years agoFix compiler warnings in some NPTL tests.
Roland McGrath [Thu, 25 Oct 2012 21:43:10 +0000 (14:43 -0700)]
Fix compiler warnings in some NPTL tests.

12 years agoAdd cross-test-ssh.sh.
Joseph Myers [Thu, 25 Oct 2012 19:17:45 +0000 (19:17 +0000)]
Add cross-test-ssh.sh.

12 years agoConvert ia64, linux-generic, m68k <bits/fcntl.h> to use <bits/fcntl-linux.h>
Andreas Jaeger [Thu, 25 Oct 2012 18:14:21 +0000 (20:14 +0200)]
Convert ia64, linux-generic, m68k <bits/fcntl.h> to use <bits/fcntl-linux.h>

* sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Remove all
definitions and declarations that are provided by
<bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.

* sysdeps/unix/sysv/linux/generic/bits/fcntl.h: Remove all
definitions and declarations that are provided by
<bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.

* sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Remove all
definitions and declarations that are provided by
<bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.

12 years agoHurd: ptrace: use __hurd_fail for EOPNOTSUPP
Pino Toscano [Thu, 25 Oct 2012 16:47:38 +0000 (18:47 +0200)]
Hurd: ptrace: use __hurd_fail for EOPNOTSUPP

12 years agoFix run-program-prefix comment.
Joseph Myers [Thu, 25 Oct 2012 15:54:16 +0000 (15:54 +0000)]
Fix run-program-prefix comment.

12 years agoSupport cross-testing.
Joseph Myers [Wed, 24 Oct 2012 21:59:01 +0000 (21:59 +0000)]
Support cross-testing.

12 years agoBZ#14743: Move clock_* symbols from librt to libc.
Roland McGrath [Wed, 24 Oct 2012 21:50:46 +0000 (14:50 -0700)]
BZ#14743: Move clock_* symbols from librt to libc.

12 years agochange ifunc assembly test to a link test
Mike Frysinger [Tue, 23 Oct 2012 03:40:42 +0000 (23:40 -0400)]
change ifunc assembly test to a link test

The test currently tests the binutils frontend support which passes for
all versions of binutils we currently require (2.20+).  It doesn't test
the backend which is required for ifunc to actually work, and which most
targets don't yet support.

Change the assembly code so that when we link it, we get a file that has
ifunc relocations if the backend supports it.  That way we can test to
see if binutils supports everything we need.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoConvert MIPS to use <bits/fcntl-linux.h>
Andreas Jaeger [Wed, 24 Oct 2012 20:13:15 +0000 (22:13 +0200)]
Convert MIPS to use <bits/fcntl-linux.h>

* sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Remove all
definitions and declarations that are provided by
<bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.

12 years agoDon't set resource limits in tst-oddstacklimit-ENV.
Joseph Myers [Wed, 24 Oct 2012 17:13:24 +0000 (17:13 +0000)]
Don't set resource limits in tst-oddstacklimit-ENV.

12 years agodrop -q flag when using grep
Mike Frysinger [Wed, 24 Oct 2012 02:37:50 +0000 (22:37 -0400)]
drop -q flag when using grep

We don't currently want to rely on the -q option to grep.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoUse build directory instead of `pwd` in ftwtest-sh.
Joseph Myers [Wed, 24 Oct 2012 11:48:00 +0000 (11:48 +0000)]
Use build directory instead of `pwd` in ftwtest-sh.

12 years agoUse build directory instead of /tmp in globtest.sh.
Joseph Myers [Wed, 24 Oct 2012 11:47:16 +0000 (11:47 +0000)]
Use build directory instead of /tmp in globtest.sh.

12 years agoAlways define off_t, mode_t, pid_t
Andreas Jaeger [Wed, 24 Oct 2012 06:57:47 +0000 (08:57 +0200)]
Always define off_t, mode_t, pid_t

* io/fcntl.h: Always define mode_t, off_t, pid_t and use these
types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
[__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
[__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
posix_fadvise64, posix_fallocate64.

12 years agoF_GETLK cleanup for <bits/fcntl.h>
Andreas Jaeger [Wed, 24 Oct 2012 06:54:46 +0000 (08:54 +0200)]
F_GETLK cleanup for <bits/fcntl.h>

12 years agoDefine and use $(run-built-tests).
Joseph Myers [Wed, 24 Oct 2012 00:08:46 +0000 (00:08 +0000)]
Define and use $(run-built-tests).

12 years agoUse $(run-program-prefix) in posix/globtest.sh.
Joseph Myers [Tue, 23 Oct 2012 23:32:14 +0000 (23:32 +0000)]
Use $(run-program-prefix) in posix/globtest.sh.

12 years agoAdd and use $(host-built-program-cmd).
Jim Blandy [Tue, 23 Oct 2012 22:49:59 +0000 (22:49 +0000)]
Add and use $(host-built-program-cmd).

12 years agoRefactor parts of run-program-prefix and built-program-cmd into new run-via-rtld...
Joseph Myers [Tue, 23 Oct 2012 22:05:28 +0000 (22:05 +0000)]
Refactor parts of run-program-prefix and built-program-cmd into new run-via-rtld-prefix.

12 years agoFix O_RSYNC
Andreas Jaeger [Mon, 22 Oct 2012 17:59:22 +0000 (19:59 +0200)]
Fix O_RSYNC

 (O_RSYNC): Define to __O_RSYNC if it exists, otherwise to O_SYNC.

12 years agoDon't pass shell loops' stdin to programs run on glibc's host.
Jim Blandy [Mon, 22 Oct 2012 17:12:17 +0000 (17:12 +0000)]
Don't pass shell loops' stdin to programs run on glibc's host.

12 years agoMove ChangeLog entry to correct file.
Joseph Myers [Mon, 22 Oct 2012 17:09:51 +0000 (17:09 +0000)]
Move ChangeLog entry to correct file.

12 years agoAlways define __O_LARGEFILE
Andreas Jaeger [Mon, 22 Oct 2012 14:23:20 +0000 (16:23 +0200)]
Always define __O_LARGEFILE

12 years agoARM: Use <bits/fcntl-linux.h>
Andreas Jaeger [Mon, 22 Oct 2012 07:34:11 +0000 (09:34 +0200)]
ARM: Use <bits/fcntl-linux.h>

* sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Remove all
definitions and declarations that are provided by
<bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.

12 years agoAdd missed ChangeLog entry
Andreas Jaeger [Mon, 22 Oct 2012 07:31:36 +0000 (09:31 +0200)]
Add missed ChangeLog entry

12 years agoImprove <bits/fcntl-linux.h>: F_GETLK etc.
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].

12 years agoInstall <bits/fcntl-linux.h>
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.

12 years agoUse __O_LARGEFILE instead of O_LARGEFILE
Andreas Jaeger [Mon, 22 Oct 2012 07:19:30 +0000 (09:19 +0200)]
Use __O_LARGEFILE instead of O_LARGEFILE

12 years agoUse $(NM) not nm in tst-cancel-wrappers.
Jim Blandy [Sun, 21 Oct 2012 22:38:34 +0000 (22:38 +0000)]
Use $(NM) not nm in tst-cancel-wrappers.

12 years agoSH: Use <bits/fcntl-linux.h>
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>.

12 years agoCheck the main application only if SHARED is defined
H.J. Lu [Sat, 20 Oct 2012 23:16:59 +0000 (16:16 -0700)]
Check the main application only if SHARED is defined

12 years agoReorganization of bits/fcntl.h for Linux
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

12 years agoAlsways include <bits/types.h> in <fcntl.h>.
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.

12 years agoAdd wcsmbs IFUNC tests
H.J. Lu [Sat, 20 Oct 2012 05:13:34 +0000 (22:13 -0700)]
Add wcsmbs IFUNC tests

12 years agoAdd string IFUNC tests
H.J. Lu [Sat, 20 Oct 2012 05:04:19 +0000 (22:04 -0700)]
Add string IFUNC tests

12 years agoAdd debug IFUNC tests
H.J. Lu [Sat, 20 Oct 2012 05:02:47 +0000 (22:02 -0700)]
Add debug IFUNC tests

12 years agoRetry read in ld.so if the entire ELF header is not read in
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.

12 years agoUse $(built-program-cmd) in io/ftwtest-sh.
Joseph Myers [Fri, 19 Oct 2012 23:31:28 +0000 (23:31 +0000)]
Use $(built-program-cmd) in io/ftwtest-sh.

12 years agoUse $(run-program-prefix) in more shell script tests.
Joseph Myers [Fri, 19 Oct 2012 23:30:43 +0000 (23:30 +0000)]
Use $(run-program-prefix) in more shell script tests.

12 years agoRemove relics of support for configuring in the source directory.
Joseph Myers [Fri, 19 Oct 2012 20:03:12 +0000 (20:03 +0000)]
Remove relics of support for configuring in the source directory.

12 years agoUse working directory, not /tmp, in io/ftwtest-sh.
Joseph Myers [Fri, 19 Oct 2012 20:01:45 +0000 (20:01 +0000)]
Use working directory, not /tmp, in io/ftwtest-sh.

12 years agoUse $(built-program-cmd) in posix/tst-getconf.sh.
Joseph Myers [Fri, 19 Oct 2012 20:00:43 +0000 (20:00 +0000)]
Use $(built-program-cmd) in posix/tst-getconf.sh.

12 years agoClean up localedata/tst-wctype.sh to match how it is called.
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.

12 years agoAdd a testcase for BZ #14716
H.J. Lu [Sun, 14 Oct 2012 07:05:10 +0000 (00:05 -0700)]
Add a testcase for BZ #14716

12 years agoFix case of February month name in de_AT locale.
Florian Pritz [Tue, 16 Oct 2012 15:06:42 +0000 (17:06 +0200)]
Fix case of February month name in de_AT locale.

12 years agomr_IN locale fixes
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.

12 years agoComment on slow compilation of math/test-tgmath2.c
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

12 years agoRemove _G_OPEN64, _G_LSEEK64, _G_MMAP64, _G_FSTAT64 from _G_config.h.
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.

12 years agoAdd note on free list pointers overwriting M_PERTURB bytes
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.

12 years agoDon't call feclearexcept in gamma function tests.
Joseph Myers [Wed, 17 Oct 2012 23:42:32 +0000 (23:42 +0000)]
Don't call feclearexcept in gamma function tests.

12 years agoFix typo in nptl/ChangeLog
Siddhesh Poyarekar [Wed, 17 Oct 2012 15:35:29 +0000 (21:05 +0530)]
Fix typo in nptl/ChangeLog

12 years agoDon't check error return for pthread_cancel in tst-cond25
Siddhesh Poyarekar [Wed, 17 Oct 2012 15:32:56 +0000 (21:02 +0530)]
Don't check error return for pthread_cancel in tst-cond25

12 years agoAdjust mutex lock in condvar_cleanup if we got it from requeue_pi
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.

12 years ago__alloc_dir: avoid integer overflow in malloc argument
Florian Weimer [Tue, 16 Oct 2012 08:33:50 +0000 (10:33 +0200)]
__alloc_dir: avoid integer overflow in malloc argument

12 years agoFix BZ #14716: memmem crash
Maxim Kuvyrkov [Tue, 16 Oct 2012 00:22:41 +0000 (17:22 -0700)]
Fix BZ #14716: memmem crash

12 years agotilegx: add optimized sched_getcpu() using TILE_COORD SPR
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.

12 years agoUse __uint64_t in x86 __bswap_64
H.J. Lu [Fri, 12 Oct 2012 16:21:47 +0000 (09:21 -0700)]
Use __uint64_t in x86 __bswap_64

12 years agoAvoid PLT references from __get_clockfreq on powerpc
Andreas Schwab [Thu, 11 Oct 2012 12:48:32 +0000 (14:48 +0200)]
Avoid PLT references from __get_clockfreq on powerpc

12 years agoAdd x86-64 __libc_ifunc_impl_list
H.J. Lu [Wed, 10 Oct 2012 14:49:12 +0000 (07:49 -0700)]
Add x86-64 __libc_ifunc_impl_list

12 years agoAdd i686 __libc_ifunc_impl_list
H.J. Lu [Wed, 10 Oct 2012 14:48:45 +0000 (07:48 -0700)]
Add i686 __libc_ifunc_impl_list

12 years agoFramework to test IFUNC implementations on target
H.J. Lu [Wed, 10 Oct 2012 14:47:59 +0000 (07:47 -0700)]
Framework to test IFUNC implementations on target

12 years agoUse IFUNC memmove/memset in x86-64 bcopy/bzero
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.

12 years agoFixup nptl/ChangeLog for last commit.
Carlos O'Donell [Thu, 11 Oct 2012 03:34:38 +0000 (23:34 -0400)]
Fixup nptl/ChangeLog for last commit.

12 years agoFix formatting in nptl/sysdeps/pthread/pthread.h.
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.

12 years agohppa: Update pthread.h
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.

12 years agohppa: Remove pt-initfini.c
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

12 years agohppa: Restore nptl/shlib-versions.
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.

12 years agoUse $CXX not cc1plus to locate C++ headers.
Joseph Myers [Wed, 10 Oct 2012 22:07:36 +0000 (22:07 +0000)]
Use $CXX not cc1plus to locate C++ headers.

12 years agoDon't include link-libc-static in +link-static-before-libc.
Joseph Myers [Wed, 10 Oct 2012 21:07:20 +0000 (21:07 +0000)]
Don't include link-libc-static in +link-static-before-libc.

12 years agoRemove _IO_pos_t.
Joseph Myers [Wed, 10 Oct 2012 16:05:36 +0000 (16:05 +0000)]
Remove _IO_pos_t.

12 years ago* NEWS: Add note about FIPS mode. Wording suggested by Roland
Alexandre Oliva [Wed, 10 Oct 2012 10:06:03 +0000 (07:06 -0300)]
* NEWS: Add note about FIPS mode.  Wording suggested by Roland
McGrath.

12 years ago* crypt/crypt-entry.c: Include fips-private.h.
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.

12 years ago* crypt/crypt-private.h: Include stdbool.h.
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.

12 years agoTake lock in pthread_cond_wait cleanup handler only when needed
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.

12 years agoAdd NEWS entry for BZ #14602.
Maxim Kuvyrkov [Wed, 10 Oct 2012 00:09:30 +0000 (17:09 -0700)]
Add NEWS entry for BZ #14602.

12 years agoMake libm-test.inc test comparison macros.
Joseph Myers [Tue, 9 Oct 2012 23:34:12 +0000 (23:34 +0000)]
Make libm-test.inc test comparison macros.

12 years agoAutomatically disable libidn add-on under --disable-shared.
Roland McGrath [Tue, 9 Oct 2012 22:48:55 +0000 (15:48 -0700)]
Automatically disable libidn add-on under --disable-shared.

12 years agoAdd missing magic to GLIBC_PROVIDES.
Roland McGrath [Tue, 9 Oct 2012 22:41:30 +0000 (15:41 -0700)]
Add missing magic to GLIBC_PROVIDES.

12 years agoFree errstring if _dl_addr doesn't returns 0
Roland McGrath [Tue, 9 Oct 2012 22:22:16 +0000 (15:22 -0700)]
Free errstring if _dl_addr doesn't returns 0

12 years agoRemove _G_off64_t and _G_stat64 from _G_config.h.
Joseph Myers [Tue, 9 Oct 2012 15:09:32 +0000 (15:09 +0000)]
Remove _G_off64_t and _G_stat64 from _G_config.h.

12 years agoFix BZ #14602: strstr and strcasestr return wrong result.
Maxim Kuvyrkov [Tue, 9 Oct 2012 03:52:53 +0000 (20:52 -0700)]
Fix BZ #14602: strstr and strcasestr return wrong result.

12 years agoImprove libm test coverage of classification macros / functions.
Joseph Myers [Mon, 8 Oct 2012 22:22:23 +0000 (22:22 +0000)]
Improve libm test coverage of classification macros / functions.

12 years agoAdd bugs 14660, 14661 to NEWS
Jonathan Nieder [Mon, 8 Oct 2012 21:17:02 +0000 (14:17 -0700)]
Add bugs 14660, 14661 to NEWS

12 years agonptl_db/Makefile: force C locale when running readelf
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

12 years agoMakerules (check-abi-%): force C locale when running objdump
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

12 years agoFix missing include in sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
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

12 years agoFix Niagara-4 memcpy bug on 32-bit.
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.

12 years agoAdd a strstr test for page boundary
H.J. Lu [Sat, 6 Oct 2012 23:04:56 +0000 (16:04 -0700)]
Add a strstr test for page boundary

12 years agoCorrect libthreadb register access for 64-bit sparc.
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.

This page took 0.06645 seconds and 5 git commands to generate.