platform/upstream/linaro-glibc.git
11 years agoDefine lll_futex_timed_wait_bitset for ARM.
Joseph Myers [Mon, 5 Nov 2012 22:30:37 +0000 (22:30 +0000)]
Define lll_futex_timed_wait_bitset for ARM.

11 years ago[S390,PPC] Implement FUTEX_WAIT_BITSET for timedwait functions
Siddhesh Poyarekar [Mon, 5 Nov 2012 15:42:10 +0000 (21:12 +0530)]
[S390,PPC] Implement FUTEX_WAIT_BITSET for timedwait functions

Since the FUTEX_WAIT operation takes a relative timeout, the
pthread_cond_timedwait and other timed function implementations have
to get a relative timeout from the absolute timeout parameter it gets
before it makes the futex syscall.  This value is then converted back
into an absolute timeout within the kernel.  This is a waste and has
hence been improved upon by a FUTEX_WAIT_BITSET operation (OR'd with
FUTEX_CLOCK_REALTIME to make the kernel use the realtime clock instead
of the default monotonic clock).  This was implemented only in the x86
and sh assembly code and not in the C code.  This patch implements
support for FUTEX_WAIT_BITSET whenever available (since linux-2.6.29)
for s390 and powerpc.

11 years agoAdd bug 14805 to list of fixed bugs in NEWS.
Joseph Myers [Mon, 5 Nov 2012 13:42:54 +0000 (13:42 +0000)]
Add bug 14805 to list of fixed bugs in NEWS.

11 years agoFix types of FE_DFL_ENV and FE_NOMASK_ENV (bug 14805).
Joseph Myers [Mon, 5 Nov 2012 13:38:40 +0000 (13:38 +0000)]
Fix types of FE_DFL_ENV and FE_NOMASK_ENV (bug 14805).

11 years agoFix S/390 bits/fenv.h namespace use (bug 14801).
Joseph Myers [Mon, 5 Nov 2012 13:16:07 +0000 (13:16 +0000)]
Fix S/390 bits/fenv.h namespace use (bug 14801).

12 years ago[BZ #3665] Regenerate sysdeps/mach/hurd/bits/errno.h.
Samuel Thibault [Sun, 22 Jul 2007 11:50:04 +0000 (13:50 +0200)]
[BZ #3665] Regenerate sysdeps/mach/hurd/bits/errno.h.

12 years ago[BZ #5246] Conditionalize use of PTR_DEMANGLE.
Thomas Schwinge [Sun, 4 Nov 2012 20:46:30 +0000 (21:46 +0100)]
[BZ #5246] Conditionalize use of PTR_DEMANGLE.

12 years agoFix fma overflow results outside round-to-nearest mode (bug 14797).
Joseph Myers [Sun, 4 Nov 2012 19:26:02 +0000 (19:26 +0000)]
Fix fma overflow results outside round-to-nearest mode (bug 14797).

12 years ago[BZ #157] Remove include/stub-tag.h for good.
Thomas Schwinge [Sun, 4 Nov 2012 18:59:40 +0000 (19:59 +0100)]
[BZ #157] Remove include/stub-tag.h for good.

12 years ago[BZ #11638] has been fixed.
Thomas Schwinge [Sun, 4 Nov 2012 14:36:32 +0000 (15:36 +0100)]
[BZ #11638] has been fixed.

In commit bea9b19322c77265033a068ac60c95a37e798a80 already.

12 years agogeneric paths.h: remove old paths from _PATH_STDPATH
Pino Toscano [Sun, 4 Nov 2012 09:11:39 +0000 (10:11 +0100)]
generic paths.h: remove old paths from _PATH_STDPATH

Remove /usr/contrib/bin and /usr/old/bin from _PATH_STDPATH, since they seem
to be part only of old BSDs, Solaris and HP-UX.

12 years agoFix small indendation issues in paths.h files
Pino Toscano [Sun, 4 Nov 2012 09:10:58 +0000 (10:10 +0100)]
Fix small indendation issues in paths.h files

12 years agoFix coding style in sparc lowlevellock.h
David S. Miller [Sat, 3 Nov 2012 22:25:47 +0000 (15:25 -0700)]
Fix coding style in sparc lowlevellock.h

nptl/

* sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP):
Add missing spaces.
(__cpu_relax): Likewise.

12 years agoMake fma use of Dekker and Knuth algorithms use round-to-nearest (bug 14796).
Joseph Myers [Sat, 3 Nov 2012 19:48:53 +0000 (19:48 +0000)]
Make fma use of Dekker and Knuth algorithms use round-to-nearest (bug 14796).

12 years agoMake fenv.h FE_* macros usable in #if (bug 3439).
Joseph Myers [Sat, 3 Nov 2012 17:07:56 +0000 (17:07 +0000)]
Make fenv.h FE_* macros usable in #if (bug 3439).

12 years agotile: Account for new tests (missed test-double changes)
Chris Metcalf [Sat, 3 Nov 2012 12:46:09 +0000 (08:46 -0400)]
tile: Account for new tests (missed test-double changes)

12 years agoelf.h: add new tilegx relocations (copy from binutils trunk)
Chris Metcalf [Sat, 3 Nov 2012 12:39:40 +0000 (08:39 -0400)]
elf.h: add new tilegx relocations (copy from binutils trunk)

12 years agoMake cross-test-ssh.sh compatible with a remote POSIX sh
Andreas Schwab [Fri, 2 Nov 2012 17:33:33 +0000 (18:33 +0100)]
Make cross-test-ssh.sh compatible with a remote POSIX sh

12 years agoCompile x86 rtld with -mno-sse -mno-mmx
H.J. Lu [Sat, 3 Nov 2012 01:43:27 +0000 (18:43 -0700)]
Compile x86 rtld with -mno-sse -mno-mmx

12 years agoconformtest: Add test data for fenv.h.
Joseph Myers [Fri, 2 Nov 2012 23:21:36 +0000 (23:21 +0000)]
conformtest: Add test data for fenv.h.

12 years agoconformtest: Enable complex.h and inttypes.h testing for XOPEN2K8.
Joseph Myers [Fri, 2 Nov 2012 23:20:43 +0000 (23:20 +0000)]
conformtest: Enable complex.h and inttypes.h testing for XOPEN2K8.

12 years agoconformtest: Fix sys/wait.h expectations for struct rusage.
Joseph Myers [Fri, 2 Nov 2012 22:12:09 +0000 (22:12 +0000)]
conformtest: Fix sys/wait.h expectations for struct rusage.

12 years agoMake math.h FP_* macros usable in #if (bug 3439).
Joseph Myers [Fri, 2 Nov 2012 22:11:21 +0000 (22:11 +0000)]
Make math.h FP_* macros usable in #if (bug 3439).

12 years agoFix printf format mismatches
Andreas Schwab [Fri, 2 Nov 2012 19:04:52 +0000 (20:04 +0100)]
Fix printf format mismatches

12 years agoRequire an exact Autoconf version.
Roland McGrath [Fri, 2 Nov 2012 18:19:27 +0000 (11:19 -0700)]
Require an exact Autoconf version.

12 years agoDirect __ppc_get_timebase to __builtin_ppc_get_timebase for GCC 4.8+.
Tulio Magno Quites Machado Filho [Fri, 2 Nov 2012 16:20:39 +0000 (11:20 -0500)]
Direct __ppc_get_timebase to __builtin_ppc_get_timebase for GCC 4.8+.

Adapts __ppc_get_timebase to the upcoming GCC 4.8 that provides
__builtin_ppc_get_timebase.  Building applicationns with previous
versions of GCC will continue to use the internal implementation.

12 years agoTest _ISOMAC in include/sys/syslog.h.
Joseph Myers [Fri, 2 Nov 2012 15:41:37 +0000 (15:41 +0000)]
Test _ISOMAC in include/sys/syslog.h.

12 years agoFix LC_IDENTIFICATION in fi_FI@euro
Marko Myllynen [Fri, 2 Nov 2012 09:37:02 +0000 (11:37 +0200)]
Fix LC_IDENTIFICATION in fi_FI@euro

12 years agoPowerPC: Fix uc_link == NULL handling for makecontex.
Andreas Schwab [Fri, 2 Nov 2012 01:10:39 +0000 (20:10 -0500)]
PowerPC: Fix uc_link == NULL handling for makecontex.

If the function registered with makecontext returns with a NULL context
link the process should exit with zero, not non-zero.

12 years agoPowerPC: Remove unnecessary -mnew-mnemonics.
Tulio Magno Quites Machado Filho [Thu, 1 Nov 2012 23:00:06 +0000 (18:00 -0500)]
PowerPC: Remove unnecessary -mnew-mnemonics.

12 years agoUpdate test-gencat.sh and tst-langinfo.sh
H.J. Lu [Thu, 1 Nov 2012 22:04:39 +0000 (15:04 -0700)]
Update test-gencat.sh and tst-langinfo.sh

12 years agoPut __NO_FPRS__ around floating point opcodes in powerpc32/dl-trampoline.S.
Sebastan Andrzej Siewior [Thu, 1 Nov 2012 21:48:47 +0000 (16:48 -0500)]
Put __NO_FPRS__ around floating point opcodes in powerpc32/dl-trampoline.S.

12 years agoFix build of test cases on GNU Hurd that are statically linked.
Thomas Schwinge [Thu, 1 Nov 2012 17:54:57 +0000 (18:54 +0100)]
Fix build of test cases on GNU Hurd that are statically linked.

12 years agoFix build for !(defined NEED_DL_SYSINFO || defined NEED_DL_SYSINFO_DSO).
Thomas Schwinge [Thu, 1 Nov 2012 17:48:34 +0000 (18:48 +0100)]
Fix build for !(defined NEED_DL_SYSINFO || defined NEED_DL_SYSINFO_DSO).

12 years agoRemove PowerPC sysdep files for GNU Hurd and GNU Mach.
Thomas Schwinge [Thu, 1 Nov 2012 18:41:23 +0000 (19:41 +0100)]
Remove PowerPC sysdep files for GNU Hurd and GNU Mach.

12 years agocheck-local-headers: ignore c++ headers
Andreas Schwab [Thu, 1 Nov 2012 16:42:45 +0000 (17:42 +0100)]
check-local-headers: ignore c++ headers

12 years agoRegenerate all configure scripts.
Thomas Schwinge [Thu, 1 Nov 2012 17:04:56 +0000 (18:04 +0100)]
Regenerate all configure scripts.

12 years agoChange type of constant to avoid a warning.
Thomas Schwinge [Thu, 1 Nov 2012 16:50:30 +0000 (17:50 +0100)]
Change type of constant to avoid a warning.

Warning has been introduced in commit 7583a88d1c7170caad26966bcea8bfc2c92093ba.

12 years agoFix fma (a, b, c) for small a * b (bugs 14784, 14785).
Joseph Myers [Thu, 1 Nov 2012 16:47:26 +0000 (16:47 +0000)]
Fix fma (a, b, c) for small a * b (bugs 14784, 14785).

12 years agoFix a compilation error in the Hurd's bits/param.h.
Thomas Schwinge [Thu, 1 Nov 2012 08:14:30 +0000 (09:14 +0100)]
Fix a compilation error in the Hurd's bits/param.h.

Introduced in the unification in commit
e66a42f57fd20d1c7bbdc5f7937831d13bcf709b.

12 years agoConvert alpha to use <bits/fcntl-linux.h>
Andreas Jaeger [Thu, 1 Nov 2012 05:07:38 +0000 (06:07 +0100)]
Convert alpha to use <bits/fcntl-linux.h>

12 years agoBZ#14743: Move clock_* symbols from librt to libc.
Thomas Schwinge [Thu, 1 Nov 2012 00:55:23 +0000 (01:55 +0100)]
BZ#14743: Move clock_* symbols from librt to libc.

Change missing from commit 6e6249d0b461b952d0f544792372663feb6d792a.

12 years agoBuild SH backtrace with -funwind-tables.
Joseph Myers [Thu, 1 Nov 2012 00:22:53 +0000 (00:22 +0000)]
Build SH backtrace with -funwind-tables.

12 years agoBuild en_US.UTF-8 locale for testing.
Joseph Myers [Thu, 1 Nov 2012 00:22:04 +0000 (00:22 +0000)]
Build en_US.UTF-8 locale for testing.

12 years agoCorrect checking for mmap failure.
Thomas Schwinge [Wed, 31 Oct 2012 23:23:09 +0000 (00:23 +0100)]
Correct checking for mmap failure.

12 years agoFix powerpc abilist sort order
Andreas Schwab [Thu, 11 Oct 2012 09:26:36 +0000 (11:26 +0200)]
Fix powerpc abilist sort order

12 years agoCorrect order of entries in powerpc libc.abilist files.
Tulio Magno Quites Machado Filho [Wed, 31 Oct 2012 22:02:13 +0000 (17:02 -0500)]
Correct order of entries in powerpc libc.abilist files.

12 years agoUpdate powerpc libm ULPs
Andreas Schwab [Thu, 11 Oct 2012 08:22:46 +0000 (10:22 +0200)]
Update powerpc libm ULPs

12 years agoFix ldbl-128ibm atan2l for x near 1.
Joseph Myers [Wed, 31 Oct 2012 20:44:59 +0000 (20:44 +0000)]
Fix ldbl-128ibm atan2l for x near 1.

12 years agoDocument general use of test-wrapper and test-wrapper-env.
Joseph Myers [Wed, 31 Oct 2012 20:43:54 +0000 (20:43 +0000)]
Document general use of test-wrapper and test-wrapper-env.

12 years agoRemove 'Contributed' line, glibc is not using them anymore.
Steve Ellcey [Wed, 31 Oct 2012 20:03:45 +0000 (13:03 -0700)]
Remove 'Contributed' line, glibc is not using them anymore.

12 years agoRemove trailing white spaces.
Steve Ellcey [Wed, 31 Oct 2012 17:39:48 +0000 (10:39 -0700)]
Remove trailing white spaces.

12 years ago2012-10-31 Steve Ellcey <sellcey@mips.com>
Steve Ellcey [Wed, 31 Oct 2012 17:38:17 +0000 (10:38 -0700)]
2012-10-31  Steve Ellcey  <sellcey@mips.com>

* sysdeps/mips/memcpy.S: Add prefetching and more unrolling, make
it work in 32 or 64 bit modes.
* sysdeps/mips/mips64/memcpy.S: Remove.

12 years agoFix fma underflow exceptions in after-rounding edge cases.
Joseph Myers [Wed, 31 Oct 2012 13:01:17 +0000 (13:01 +0000)]
Fix fma underflow exceptions in after-rounding edge cases.

12 years agoUse sysdeps/x86/tininess.h for i386 and x86_64
H.J. Lu [Wed, 31 Oct 2012 03:38:31 +0000 (20:38 -0700)]
Use sysdeps/x86/tininess.h for i386 and x86_64

12 years agoFix ChangeLog date for commit 09dec6c37e3cd967f62795320703647f24545e3e
Ryan S. Arnold [Wed, 31 Oct 2012 00:10:22 +0000 (19:10 -0500)]
Fix ChangeLog date for commit 09dec6c37e3cd967f62795320703647f24545e3e

12 years agoSupport cross-testing for elf/tst-array*.
Joseph Myers [Tue, 30 Oct 2012 23:14:33 +0000 (23:14 +0000)]
Support cross-testing for elf/tst-array*.

12 years agoCorrect cacheline size to 32-bytes for ppc405 memset.S (bug 14595).
Ryan S. Arnold [Tue, 30 Oct 2012 22:07:18 +0000 (17:07 -0500)]
Correct cacheline size to 32-bytes for ppc405 memset.S (bug 14595).

This patch also creates a version of memset.S for the ppc476 processor
which uses a 128-byte cacheline size for dcbz insns.

12 years agocheck-local-headers: Ignore <arch> headers
Chris Metcalf [Tue, 30 Oct 2012 18:17:49 +0000 (14:17 -0400)]
check-local-headers: Ignore <arch> headers

The tile architecture's Linux port installs headers in an
<arch> directory; these headers are in part shared with glibc.
Ignore these headers for check-local-headers like we ignore
all the other Linux headers.

12 years agoInvoke DL_AFTER_LOAD if defined
Chris Metcalf [Tue, 30 Oct 2012 18:16:18 +0000 (14:16 -0400)]
Invoke DL_AFTER_LOAD if defined

This hook is useful for any arch-specific functionality that
should be done on loaded objects.  For the tile architecture,
the hook is already provided (though we switch to using the new
macro name with this commit) and implements a simulator notifier
so that the simulator can load Elf symbols to match the object
and generate better error messages for PC's.

Also, remove a spurious definition of DL_UNMAP in dl-runtime.c

12 years agoSuppress incorrect link warnings for NSS symbols
Chris Metcalf [Tue, 30 Oct 2012 18:14:33 +0000 (14:14 -0400)]
Suppress incorrect link warnings for NSS symbols

When glibc is built with --enable-static-nss, the warning that
using NSS symbols requires the nss shared objects to be present
is no longer true, as those symbols are built into libc.  Suppress
the warning for those symbols by providing a new macro
(nss_interface_function) for the NSS functions that is defined as
static_link_warning in the normal case, and empty for static NSS.

12 years agotile: improve ABI and #include use in gettimeofday vdso support
Chris Metcalf [Tue, 30 Oct 2012 18:11:54 +0000 (14:11 -0400)]
tile: improve ABI and #include use in gettimeofday vdso support

12 years agotile: update libm-test-ulps for new tests
Chris Metcalf [Tue, 30 Oct 2012 18:11:22 +0000 (14:11 -0400)]
tile: update libm-test-ulps for new tests

12 years agoFix nptl/tst-cancel7 for non-bash shells.
Aurelien Jarno [Tue, 30 Oct 2012 16:32:26 +0000 (16:32 +0000)]
Fix nptl/tst-cancel7 for non-bash shells.

12 years agoUpdate Russian translation
Andreas Jaeger [Tue, 30 Oct 2012 14:52:23 +0000 (15:52 +0100)]
Update Russian translation

12 years agoFix fma missing underflows and bad results for some subnormal results (bugs 14152...
Joseph Myers [Tue, 30 Oct 2012 13:54:50 +0000 (13:54 +0000)]
Fix fma missing underflows and bad results for some subnormal results (bugs 14152, 14783).

12 years agoFix strtod handling of underflow (bug 14047).
Joseph Myers [Tue, 30 Oct 2012 13:51:27 +0000 (13:51 +0000)]
Fix strtod handling of underflow (bug 14047).

12 years ago[BZ#14767] Remove tests for have-initfini-array in elf/Makefile
Andreas Jaeger [Tue, 30 Oct 2012 08:07:01 +0000 (09:07 +0100)]
[BZ#14767] Remove tests for have-initfini-array in elf/Makefile

* elf/Makefile (tests): Remove conditional for have-initfini-array
since this is now always required and the variable does not exist
anymore.
(tests-static): Likewise.
(modules-names): Likewise.

12 years agoAdd Esperanto translation
Andreas Jaeger [Tue, 30 Oct 2012 08:04:01 +0000 (09:04 +0100)]
Add Esperanto translation

12 years agoFix fini_array and init_array sections
Andreas Jaeger [Tue, 30 Oct 2012 07:58:04 +0000 (08:58 +0100)]
Fix fini_array and init_array sections

* elf/tst-array1.c (fini_array): Make writeable so that it can be
merged with constructor/destructor.
(init_array): Likewise.
* elf/tst-array2dep.c (fini_array): Likewise.
(init_array): Likewise.

12 years agohppa: Add cfi direcvtives.
Carlos O'Donell [Tue, 30 Oct 2012 03:31:55 +0000 (23:31 -0400)]
hppa: Add cfi direcvtives.

We add cfi directives to the syscall assembly.

12 years agohppa: Fix r19 save and restore.
Carlos O'Donell [Tue, 30 Oct 2012 03:16:44 +0000 (23:16 -0400)]
hppa: Fix r19 save and restore.

We must save and restore r19 in both PIC and non-PIC
situations since the kernel paths that clobber r19
are independent of that PIC-ness of userspace.
In addition we choose r4 as the temporary register over
r3 which is being used by recent gcc's as the frame
pointer.

12 years agohppa: Optimize syscall sequence.
Carlos O'Donell [Tue, 30 Oct 2012 03:04:43 +0000 (23:04 -0400)]
hppa: Optimize syscall sequence.

We remove an extraneous nop from the syscall sequence.
No DO_CALL* may end in an instruction with a delay slot.

12 years agoFix trailing whitespace.
Carlos O'Donell [Tue, 30 Oct 2012 02:05:36 +0000 (22:05 -0400)]
Fix trailing whitespace.

12 years agomanual: delete nested @cartouche
Mike Frysinger [Mon, 29 Oct 2012 23:03:00 +0000 (19:03 -0400)]
manual: delete nested @cartouche

Putting @cartouche inside of @smallexample does not work with HTML output
as the former produces a <table> while the latter produces a <pre>.  You
cannot nest a <table> in a <pre> as the contents are no longer formatted.

Since it's entirely unnecessary, and none of the other examples do this,
just drop the cartouche.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years ago2012-10-29 Steve Ellcey <sellcey@mips.com>
Steve Ellcey [Mon, 29 Oct 2012 18:42:39 +0000 (11:42 -0700)]
2012-10-29  Steve Ellcey  <sellcey@mips.com>

* sysdeps/unix/sysv/linux/mips/mips32/Makefile: Remove.
* sysdeps/unix/sysv/linux/mips/mips64/n32/Makefile: Remove.
* sysdeps/unix/sysv/linux/mips/mips64/n64/Makefile: Remove.
* sysdeps/unix/sysv/linux/mips/configure.in: Create default_abi.make.
* sysdeps/unix/sysv/linux/mips/configure: Regenerate.
* sysdeps/unix/sysv/linux/mips/Makefile: Include default_abi.make.
(abi-variants): Add hard and soft float versions.
(abi-o32-options): Remove.
(abi-o32-condition): Remove.
(abi-n32-options): Remove.
(abi-n32-condition): Remove.
(abi-n64-options): Remove.
(abi-n64-condition): Remove.
(abi-o32_soft-options): New.
(abi-o32_soft-condition): New.
(abi-o32_hard-options): New.
(abi-o32_hard-condition): New.
(abi-n32_soft-options): New.
(abi-n32_soft-condition): New.
(abi-n32_hard-options): New.
(abi-n32_hard-condition): New.
(abi-n64_soft-options): New.
(abi-n64_soft-condition): New.
(abi-n64_hard-options): New.
(abi-n64_hard-condition): New.

12 years agoMerge branch 'master' of ssh://sourceware.org/git/glibc
Steve Ellcey [Mon, 29 Oct 2012 18:41:36 +0000 (11:41 -0700)]
Merge branch 'master' of ssh://sourceware.org/git/glibc

12 years ago2012-10-29 Steve Ellcey <sellcey@mips.com>
Steve Ellcey [Mon, 29 Oct 2012 18:40:31 +0000 (11:40 -0700)]
2012-10-29  Steve Ellcey  <sellcey@mips.com>

* sysdeps/unix/sysv/linux/mips/mips32/Makefile: Remove.
* sysdeps/unix/sysv/linux/mips/mips64/n32/Makefile: Remove.
* sysdeps/unix/sysv/linux/mips/mips64/n64/Makefile: Remove.
* sysdeps/unix/sysv/linux/mips/configure.in: Create default_abi.make.
* sysdeps/unix/sysv/linux/mips/configure: Regenerate.
* sysdeps/unix/sysv/linux/mips/Makefile: Include default_abi.make.
(abi-variants): Add hard and soft float versions.
(abi-o32-options): Remove.
(abi-o32-condition): Remove.
(abi-n32-options): Remove.
(abi-n32-condition): Remove.
(abi-n64-options): Remove.
(abi-n64-condition): Remove.
(abi-o32_soft-options): New.
(abi-o32_soft-condition): New.
(abi-o32_hard-options): New.
(abi-o32_hard-condition): New.
(abi-n32_soft-options): New.
(abi-n32_soft-condition): New.
(abi-n32_hard-options): New.
(abi-n32_hard-condition): New.
(abi-n64_soft-options): New.
(abi-n64_soft-condition): New.
(abi-n64_hard-options): New.
(abi-n64_hard-condition): New.

12 years agoHurd: fix fdatasync/fsync if the fd does not support file_sync
Pino Toscano [Mon, 29 Oct 2012 18:35:56 +0000 (19:35 +0100)]
Hurd: fix fdatasync/fsync if the fd does not support file_sync

Handle the case of the fd port implementing a stub (EOPNOTSUPP),
properly returning EINVAL.

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.