external/glibc.git
15 years agoAdd SSE4.2 optimized rawmemchr implementation for x86-64.
Ulrich Drepper [Fri, 5 Jun 2009 23:54:50 +0000 (16:54 -0700)]
Add SSE4.2 optimized rawmemchr implementation for x86-64.

15 years agoForgot some more cleanups for the SSE4.2 strlen on x86-64.
Ulrich Drepper [Fri, 5 Jun 2009 18:51:59 +0000 (11:51 -0700)]
Forgot some more cleanups for the SSE4.2 strlen on x86-64.

15 years agoAdd missing cleanups from SSE4.2 x86-64 strlen.
Ulrich Drepper [Fri, 5 Jun 2009 18:39:45 +0000 (11:39 -0700)]
Add missing cleanups from SSE4.2 x86-64 strlen.

15 years agoOptimize x86-64 strlen for SSE4.2.
Ulrich Drepper [Fri, 5 Jun 2009 18:32:00 +0000 (11:32 -0700)]
Optimize x86-64 strlen for SSE4.2.

The SSE4.2 implementation is used in the DSO only.  The patch also adds
some infrastructure to be used in similar code later one.

15 years agoFix build problems with old binutils.
Ulrich Drepper [Fri, 5 Jun 2009 16:42:32 +0000 (09:42 -0700)]
Fix build problems with old binutils.

Old binutils don't provide IFUNC and don't generate the section start/end
symbols we expect.  At least for now only add the initializer code for
static IFUNC relocations if multi-arch support is requested.

15 years agoMore small optimizations for x86-64 strlen.
Ulrich Drepper [Thu, 4 Jun 2009 23:45:35 +0000 (16:45 -0700)]
More small optimizations for x86-64 strlen.

15 years agoTiny strlen for x86-64 optimization.
Ulrich Drepper [Thu, 4 Jun 2009 17:54:29 +0000 (10:54 -0700)]
Tiny strlen for x86-64 optimization.

I didn't remove an instruction from a previous version in the final
version.

15 years agoTest for ELF IFUNC functionality.
H.J. Lu [Wed, 3 Jun 2009 23:21:40 +0000 (16:21 -0700)]
Test for ELF IFUNC functionality.

15 years agoTerminate correct buffer.
Ulrich Drepper [Wed, 3 Jun 2009 15:30:35 +0000 (08:30 -0700)]
Terminate correct buffer.

Little typo could cause additional characters to be printed.

15 years agoAdd missing __execvpe prototype.
Ulrich Drepper [Tue, 2 Jun 2009 14:11:51 +0000 (07:11 -0700)]
Add missing __execvpe prototype.

Avoids warnings.

15 years agoImplement execvpe.
Ulrich Drepper [Tue, 2 Jun 2009 14:03:02 +0000 (07:03 -0700)]
Implement execvpe.

There is some existing practice in other OSes and it's trivial to
implement giving the existing code.  Fixes BZ #10221.

15 years agoSmall optimization of STT_GNU_IFUNC handling.
Ulrich Drepper [Mon, 1 Jun 2009 18:49:05 +0000 (11:49 -0700)]
Small optimization of STT_GNU_IFUNC handling.

The test to call the indirect function now includes a subtest to
checked whether the symbol is defined.  When coming to that point
this is almost always the case.  The test for STT_GNU_IFUNC on the
other hand rarely is true.  Move it to the front means we don't have
to perform the second test unless really necessary.

15 years agoFix mbrtowc example.
André Goddard Rosa [Mon, 1 Jun 2009 18:43:26 +0000 (11:43 -0700)]
Fix mbrtowc example.

The remaining bytes were not copied correctly.

15 years agoBetter error message for invalid relocatio in static binary.
Ulrich Drepper [Mon, 1 Jun 2009 18:39:24 +0000 (11:39 -0700)]
Better error message for invalid relocatio in static binary.

15 years agoDescribe latest IFUNC changes.
Ulrich Drepper [Mon, 1 Jun 2009 06:50:25 +0000 (23:50 -0700)]
Describe latest IFUNC changes.

15 years agoFix up sched_cpucount in x86-64.
Ulrich Drepper [Mon, 1 Jun 2009 06:46:42 +0000 (23:46 -0700)]
Fix up sched_cpucount in x86-64.

Now that static executables can handle IFUNC functions don't exclude
optimization for sched_cpucount for !SHARED.

15 years agoFinish IFUNC support for x86 and x86-64.
Ulrich Drepper [Mon, 1 Jun 2009 06:45:33 +0000 (23:45 -0700)]
Finish IFUNC support for x86 and x86-64.

Add support for the IRELAIVE relocation and IFUNC in static executables.

15 years agoSimplify CPUID value handling.
Ulrich Drepper [Mon, 1 Jun 2009 00:52:05 +0000 (17:52 -0700)]
Simplify CPUID value handling.

SO far Intel and AMD use exactly the same bits meaning the same
things in CPUID index 1.  Simplify the code.  Should an architecture
come along which doesn't use the same semantics then it must use a
different index value than COMMON_CPUID_INDEX_1.

15 years agoAdd missing file from accept4 commit.
Ulrich Drepper [Mon, 1 Jun 2009 00:46:55 +0000 (17:46 -0700)]
Add missing file from accept4 commit.

Hidden by previous .gitignore content.

15 years agoMove AC_CANONICAL_HOST before first use of $host and $build.
Andreas Schwab [Sun, 31 May 2009 23:54:28 +0000 (16:54 -0700)]
Move AC_CANONICAL_HOST before first use of $host and $build.

15 years agoRemove arch directory names from .gitignore.
Roland McGrath [Sat, 30 May 2009 22:06:51 +0000 (15:06 -0700)]
Remove arch directory names from .gitignore.

15 years agoFix errno for boundary conditions in 128-bit long double.
Ulrich Drepper [Fri, 29 May 2009 19:00:22 +0000 (12:00 -0700)]
Fix errno for boundary conditions in 128-bit long double.

Similar to the changes which went already in for the other formats,
follow POSIX rules for errno.

15 years agoImplement longjmp checking for s390.
Ulrich Drepper [Fri, 29 May 2009 18:58:04 +0000 (11:58 -0700)]
Implement longjmp checking for s390.

15 years agoCompact cache info data structure for x86/x86-64.
Ulrich Drepper [Fri, 29 May 2009 18:53:36 +0000 (11:53 -0700)]
Compact cache info data structure for x86/x86-64.

This saves about 1.5kB in the DSO.

15 years ago[BZ #10200]
Aurelien Jarno [Wed, 27 May 2009 23:41:00 +0000 (16:41 -0700)]
[BZ #10200]
* db-symbols.awk: Use the last field for the symbol name instead
of the 8th one.

15 years agoDescribe nss_dns parallel lookup workaround in 2.10 NEWS.
Ulrich Drepper [Fri, 22 May 2009 16:07:00 +0000 (09:07 -0700)]
Describe nss_dns parallel lookup workaround in 2.10 NEWS.

15 years agoFix errno for IBM long double.
Andreas Schwab [Fri, 22 May 2009 15:35:15 +0000 (08:35 -0700)]
Fix errno for IBM long double.

After the last addition to the math test suite PPC routines haven't
been adjusted so far.

15 years agoAdd ___longjmp_chk support for powerpc{32,64}.
Andreas Schwab [Fri, 22 May 2009 15:28:20 +0000 (08:28 -0700)]
Add ___longjmp_chk support for powerpc{32,64}.

15 years agoImplement accept4 for more archs using socketcall.
Jakub Jelinek [Fri, 22 May 2009 15:25:34 +0000 (08:25 -0700)]
Implement accept4 for more archs using socketcall.

So far accept4 was only supported on archs using socketcall for x86.
This patch adds support for the remaining archs.

15 years agoAdd missing file from previous IA-64 longjmp commit.
Ulrich Drepper [Fri, 22 May 2009 01:54:47 +0000 (18:54 -0700)]
Add missing file from previous IA-64 longjmp commit.

15 years agoHandle -g option for IA-64 assembler.
Ulrich Drepper [Fri, 22 May 2009 01:54:05 +0000 (18:54 -0700)]
Handle -g option for IA-64 assembler.

15 years agoFix IA-64 memchr read-ahead.
Ulrich Drepper [Fri, 22 May 2009 01:47:59 +0000 (18:47 -0700)]
Fix IA-64 memchr read-ahead.

The latest stratcliff extension exposed a bug in the IA-64 memchr which
uses non-speculative loads to prefetch data.  Change the code to use
speculative loads with appropriate fixup.  Fixes BZ 10162.

15 years agoAdd ____longjmp_chk support for IA-64.
H.J. Lu [Fri, 22 May 2009 01:43:45 +0000 (18:43 -0700)]
Add ____longjmp_chk support for IA-64.

15 years agoAdd missing .text directives.
H.J. Lu [Fri, 22 May 2009 01:38:11 +0000 (18:38 -0700)]
Add missing .text directives.

The ____longjmp_chk functions on x86 and x86-64 were placed in .rodata.str1.1.

15 years agoDon't define __ASSUME_ACCEPT4 for IA-64.
Ulrich Drepper [Fri, 22 May 2009 01:23:57 +0000 (18:23 -0700)]
Don't define __ASSUME_ACCEPT4 for IA-64.

15 years agoRemove __NR_accept4 definition.
Jakub Jelinek [Fri, 22 May 2009 01:16:59 +0000 (18:16 -0700)]
Remove __NR_accept4 definition.

This definition was meant to be removed before the checkin.  It was
used in the development.

15 years agoCorrect socketcall argument for accept4.
Jakub Jelinek [Fri, 22 May 2009 01:15:26 +0000 (18:15 -0700)]
Correct socketcall argument for accept4.

The header had the old name (paccept).

15 years agoSun agreed to a change of the license for the RPC code to a BSD-like license.
Ulrich Drepper [Thu, 21 May 2009 04:57:37 +0000 (21:57 -0700)]
Sun agreed to a change of the license for the RPC code to a BSD-like license.

15 years agoDanish translation update from translation team.
Ulrich Drepper [Wed, 20 May 2009 14:12:32 +0000 (07:12 -0700)]
Danish translation update from translation team.

15 years agoAdd ____longjmp_chk for SH.
Kaz Kojima [Mon, 18 May 2009 22:44:09 +0000 (15:44 -0700)]
Add ____longjmp_chk for SH.

Following the previous changes for x86 and x86-64.

15 years agoFix forced loop termination in nscd database lookup.
Jakub Jelinek [Mon, 18 May 2009 17:19:50 +0000 (10:19 -0700)]
Fix forced loop termination in nscd database lookup.

There are two issues with the forced loop exit in the nscd lookup:
1. the estimate of the entry size isn't pessimistic enough for all
   databases, resulting potentially is too early exits
2. the combination of 64-bit process and 32-bit nscd would lead to
   rejecting valid records in the database.

15 years agolibc-cancellation.c cleanup.
Ulrich Drepper [Sat, 16 May 2009 22:04:27 +0000 (15:04 -0700)]
libc-cancellation.c cleanup.

The unrelated function __libc_cleanup_routine should not be in
this file.  Move it into its own file.

15 years agoUnify source for async cancel handling.
Ulrich Drepper [Sat, 16 May 2009 21:55:59 +0000 (14:55 -0700)]
Unify source for async cancel handling.

Unify all three places where we enable async cancellation for
syscalls.  Optimize a bit.

15 years agoRemove sunrpc/.gitignore.
Ulrich Drepper [Sat, 16 May 2009 19:57:37 +0000 (12:57 -0700)]
Remove sunrpc/.gitignore.

We don't update the RPC sources from the original tarball anymore.
No need to ignore that directory.

15 years agoFix typos and pretty printing in sys/wait.h.
Ulrich Drepper [Sat, 16 May 2009 19:47:15 +0000 (12:47 -0700)]
Fix typos and pretty printing in sys/wait.h.

15 years agoNon-code changes to stdlib.h.
Ulrich Drepper [Sat, 16 May 2009 19:17:55 +0000 (12:17 -0700)]
Non-code changes to stdlib.h.

15 years agoUnify __WAIT_INT definition in stdlib.h and sys/wait.h.
Ulrich Drepper [Sat, 16 May 2009 18:39:39 +0000 (11:39 -0700)]
Unify __WAIT_INT definition in stdlib.h and sys/wait.h.

This fixes BZ #10159.  The stdlib.h definition was out of date.

15 years agoMove BLOCK_ALIGN* macros back.
Ulrich Drepper [Sat, 16 May 2009 17:29:43 +0000 (10:29 -0700)]
Move BLOCK_ALIGN* macros back.

The move to nscd-client.h was only needed for some interim version
of the patch.  The final version doesn't need it.  Undo the change.

15 years agoFix exit condition.
Ulrich Drepper [Sat, 16 May 2009 17:10:32 +0000 (10:10 -0700)]
Fix exit condition.

The patch to bound the search in the nscd caches used a wrong exit
condition.  Fixed now.

15 years agoRename nptl/init.c to nptl/nptl-init.c.
Ulrich Drepper [Sat, 16 May 2009 15:57:49 +0000 (08:57 -0700)]
Rename nptl/init.c to nptl/nptl-init.c.

Needed to allow overwriting architectures init.c in csu and nptl
individually.  Fixes BZ #9924.

15 years agoremove subsumed .gitignore entries and files
Jim Meyering [Sat, 16 May 2009 07:52:16 +0000 (09:52 +0200)]
remove subsumed .gitignore entries and files

15 years agoremove mpn-copy.mk from .gitignore files
Jim Meyering [Sat, 16 May 2009 07:28:06 +0000 (09:28 +0200)]
remove mpn-copy.mk from .gitignore files

15 years agoremove COPYING* from .gitignore files
Jim Meyering [Sat, 16 May 2009 07:16:27 +0000 (09:16 +0200)]
remove COPYING* from .gitignore files

15 years agoRemove redundant .gitignore files.
Andreas Schwab [Sat, 16 May 2009 08:18:34 +0000 (10:18 +0200)]
Remove redundant .gitignore files.

15 years agoFurther robustify nscd database lookup.
Ulrich Drepper [Sat, 16 May 2009 04:33:43 +0000 (21:33 -0700)]
Further robustify nscd database lookup.

We can compute an absolute maximum for the number of elements which
can fit into the currently mapped database.  Stop after that many
iterations.

15 years agoRobustify libc-side nscd database reader.
Jakub Jelinek [Sat, 16 May 2009 04:17:08 +0000 (21:17 -0700)]
Robustify libc-side nscd database reader.

The nscd database mapped in processes can change at any time.  We
have to be more vigilant when it comes to using that memory.  Test
the data entries are valid in their entire size, don't read data
again from memory once we verified it, and make sure the trailing
pointer is not going off the deep end.

15 years agoAvoid double definition of catomic_compare_and_exchange_val_acq.
Jakub Jelinek [Sat, 16 May 2009 04:08:55 +0000 (21:08 -0700)]
Avoid double definition of catomic_compare_and_exchange_val_acq.

15 years agoChangeLog entries incorrectly applied.
Ulrich Drepper [Sat, 16 May 2009 04:03:49 +0000 (21:03 -0700)]
ChangeLog entries incorrectly applied.

15 years agoAdd missing export of fallocate64 on 32-bit platforms.
Jakub Jelinek [Sat, 16 May 2009 04:00:09 +0000 (21:00 -0700)]
Add missing export of fallocate64 on 32-bit platforms.

Due to a pasto the fallocate64 interface, introduced in glibc 2.10,
isn't exported for 32-bit Linux platforms.  It is too late for this
now so exported them for glibc 2.11.

15 years agoDon't try to cleanup libselinux and libaudit.
Jakub Jelinek [Sat, 16 May 2009 03:48:08 +0000 (20:48 -0700)]
Don't try to cleanup libselinux and libaudit.

Because we are not shutting down the other threads first another
thread might work on a query before the process shuts down.  In this
case the now uninitialized libselinux and libaudit might be used.
Just don't free the resources.  It's not necessary anyway because
the process is about to terminate.

15 years agoFix change to prevent cancel signal in unsafe places.
Ulrich Drepper [Sat, 16 May 2009 03:42:36 +0000 (20:42 -0700)]
Fix change to prevent cancel signal in unsafe places.

The bits tested to decide when to delay the return when switching
off async cancel mode were wrong.  Fix that.  Also close a race
condition in pthread_cancel where the bit indicating the cancellation
is unconditionally set even if the cancel type might have changed.

15 years agoAdd test for range error in expm1.
Ulrich Drepper [Sat, 16 May 2009 02:53:09 +0000 (19:53 -0700)]
Add test for range error in expm1.

15 years agoMerge branch 'master' of ssh://sources.redhat.com/git/glibc
Ulrich Drepper [Sat, 16 May 2009 02:50:06 +0000 (19:50 -0700)]
Merge branch 'master' of ssh://sources.redhat.com/git/glibc

Conflicts:
ChangeLog

15 years agoCleanup some .gitignore files.
Ulrich Drepper [Sat, 16 May 2009 02:47:10 +0000 (19:47 -0700)]
Cleanup some .gitignore files.

15 years agoCheck for valid stack frame in longjmp.
Ulrich Drepper [Sat, 16 May 2009 02:28:04 +0000 (19:28 -0700)]
Check for valid stack frame in longjmp.

If longjmp restores the stack frame to an address which is beyond
the stack frame at the time of the longjmp call it would install
an uninitialized stack frame.  If compiled with _FORTIFY_SOURCE
defined, longjmp will now bail out in this situation.

15 years agoIgnore Emacs backup files.
Ulrich Drepper [Fri, 15 May 2009 20:02:02 +0000 (13:02 -0700)]
Ignore Emacs backup files.

15 years agoVersion info change for 2.11 development.
Ulrich Drepper [Fri, 15 May 2009 17:24:57 +0000 (10:24 -0700)]
Version info change for 2.11 development.

15 years agoNo cancel signal in unsafe places.
Ulrich Drepper [Fri, 15 May 2009 17:12:35 +0000 (10:12 -0700)]
No cancel signal in unsafe places.

When disabling async cancellation we cannot return from the function
call if the thread is canceled.  This happens when the cancel bits
have been set before async cancel is disabled but the signal hasn't
been sent/received yet.  Delay for as long as necessary since
otherwise the signal might be received in an unsafe context.

15 years agoVersion info change for 2.11 development.
Ulrich Drepper [Fri, 15 May 2009 17:24:57 +0000 (10:24 -0700)]
Version info change for 2.11 development.

15 years agoNo cancel signal in unsafe places.
Ulrich Drepper [Fri, 15 May 2009 17:12:35 +0000 (10:12 -0700)]
No cancel signal in unsafe places.

When disabling async cancellation we cannot return from the function
call if the thread is canceled.  This happens when the cancel bits
have been set before async cancel is disabled but the signal hasn't
been sent/received yet.  Delay for as long as necessary since
otherwise the signal might be received in an unsafe context.

15 years agorename each .cvsignore file to .gitignore
Jim Meyering [Fri, 15 May 2009 14:47:36 +0000 (16:47 +0200)]
rename each .cvsignore file to .gitignore

15 years agoTest DSOs for executable stack.
Ulrich Drepper [Fri, 15 May 2009 15:01:09 +0000 (08:01 -0700)]
Test DSOs for executable stack.

Add a text program, built to run on the host, to check all newly
built DSOs for executable stacks and fail if the stack information
is missing or indicates executable stacks.

15 years ago* version.h (VERSION): Bump to 2.10.1.
Ulrich Drepper [Sun, 10 May 2009 18:38:52 +0000 (18:38 +0000)]
* version.h (VERSION): Bump to 2.10.1.

* nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
compatibility functions.
* nss/getXXent_r.c: Likewise.
* gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
* gshadow/getsgnam_r.c: Likewise.
* gshadow/Version: Remove duplicate entries.

* sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
for recent processor.
* sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
Likewise.

15 years ago* Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
Ulrich Drepper [Sat, 9 May 2009 21:58:12 +0000 (21:58 +0000)]
* Makeconfig: Undo last change.  Add asflags-cpu to ASFLAGS in the

same place we add ASFLAGS-config.

15 years ago* version.h (VERSION): Bump for 2.10 release.
Ulrich Drepper [Sat, 9 May 2009 17:40:57 +0000 (17:40 +0000)]
* version.h (VERSION): Bump for 2.10 release.

* include/features.h (__GLIBC_MINOR__): Bump to 10.

15 years ago[BZ #10128]
Ulrich Drepper [Sat, 9 May 2009 16:12:41 +0000 (16:12 +0000)]
[BZ #10128]

2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
[BZ #10128]
* resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
or FORMERR and the other NOERROR, don't raise an error.

15 years ago[BZ #10118]
Ulrich Drepper [Sat, 9 May 2009 15:59:55 +0000 (15:59 +0000)]
[BZ #10118]

2009-05-06  Ryan S. Arnold  <rsa@us.ibm.com>
[BZ #10118]
* Makeconfig (+asflags): New variable based upon ASFLAG or
asflags-cpu.
(ASFLAGS): Add override to set ASFLAGS to +asflags.
* config.make.in (asflags-cpu): Add variable based upon
@libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
the assembler.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
Remove unneeded file now that the assembler emits _ARCH_PWR6 and
recognizes power6 instruction set due to passing -mcpu=power6 from
--with-cpu=power6 when compiling .S files.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
Likewise.

15 years ago* string/stratcliff.c (do_test): Test for zero length
Ulrich Drepper [Sat, 9 May 2009 14:45:07 +0000 (14:45 +0000)]
* string/stratcliff.c (do_test): Test for zero length

STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
at the end of the page.

15 years ago* sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
Ulrich Drepper [Sat, 9 May 2009 06:54:31 +0000 (06:54 +0000)]
* sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.

15 years ago* sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
Ulrich Drepper [Sat, 9 May 2009 06:40:15 +0000 (06:40 +0000)]
* sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when

count is zero.

15 years ago* po/da.po: Update from translation team.
Ulrich Drepper [Fri, 8 May 2009 20:51:51 +0000 (20:51 +0000)]
* po/da.po: Update from translation team.

2009-05-05  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
and READ_IMPLIES_EXEC.

2009-05-04  Ulrich Drepper  <drepper@redhat.com>

* po/da.po: Update from translation team.

15 years ago* io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
Ulrich Drepper [Thu, 7 May 2009 17:42:24 +0000 (17:42 +0000)]
* io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,

guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.

15 years ago* localedata/locales/bn_BD: Remove comment about missing collation
Ulrich Drepper [Mon, 4 May 2009 21:20:20 +0000 (21:20 +0000)]
* localedata/locales/bn_BD: Remove comment about missing collation

rules.
* localedata/locales/iso14651_t1_common: Add Bengali collation rules.
Patch by Pravin Satpute <psatpute@redhat.com>.

15 years agoUpdate from translation team.
Ulrich Drepper [Mon, 4 May 2009 21:13:21 +0000 (21:13 +0000)]
Update from translation team.

15 years agoAdd missing CHangeLog entry.
Jakub Jelinek [Wed, 29 Apr 2009 18:04:10 +0000 (18:04 +0000)]
Add missing CHangeLog entry.

2009-01-07  Ulrich Drepper  <drepper@redhat.com>

* (in_flight_stack): New variable.
(stack_list_del): New function.  Use instead of list_del.
(stack_list_add): New function.  Use instead of list_add when adding to
stack_cache and stack_used lists.
(__reclaim_stacks): Complete operations on stack_cache and stack_used lists
when the fork call interrupted another thread.

15 years ago* sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12 comment change.
Jakub Jelinek [Wed, 29 Apr 2009 16:42:32 +0000 (16:42 +0000)]
* sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12 comment change.

2009-04-29  Jakub Jelinek  <jakub@redhat.com>

* sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
comment change.

15 years ago* cancellation.c (__pthread_disable_asynccancel): Use THREAD_ATOMIC_AND
Ulrich Drepper [Mon, 27 Apr 2009 21:55:49 +0000 (21:55 +0000)]
* cancellation.c (__pthread_disable_asynccancel): Use THREAD_ATOMIC_AND

is available.
* libc-cancellation.c (__libc_disable_asynccancel): Likewise.
* sysdeps/x86_64/tls.h: Define THREAD_ATOMIC_AND.
* sysdeps/i386/tls.h: Likewise.
(tcbhead_t): Add __private_tm member.

15 years ago* locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
Ulrich Drepper [Mon, 27 Apr 2009 14:07:57 +0000 (14:07 +0000)]
* locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE

to MAP_ANON in PROT_NONE mmap64 call.
(open_archive): Likewise.
(file_data_available_p): Use mmap64 instead of mremap.
(enlarge_archive): Likewise.  Update head if ah->addr changed.
Attempt to reserve address space after mmap64 region.

15 years ago* sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
Ulrich Drepper [Mon, 27 Apr 2009 05:31:37 +0000 (05:31 +0000)]
* sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.

* sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
* sysdeps/x86_64/fpu/s_expm1l.S: Likewise.

15 years ago* sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
Ulrich Drepper [Mon, 27 Apr 2009 04:01:16 +0000 (04:01 +0000)]
* sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in

atanh should set ERANGE.

15 years ago* inet/inet6_option.c (option_alloc): Add temporary variable to
Ulrich Drepper [Mon, 27 Apr 2009 03:34:27 +0000 (03:34 +0000)]
* inet/inet6_option.c (option_alloc): Add temporary variable to

15 years ago[BZ #10087]
Ulrich Drepper [Mon, 27 Apr 2009 03:01:36 +0000 (03:01 +0000)]
[BZ #10087]

* elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
result of lookup to make call to implement STT_GNU_IFUNC.
(_dl_profile_fixup): Likewise.
Patch by H.J. Lu <hjl.tools@gmail.com>.

15 years ago* nscd/connections.c (send_ro_fd): Define temporary variable to avoid
Ulrich Drepper [Sun, 26 Apr 2009 22:31:19 +0000 (22:31 +0000)]
* nscd/connections.c (send_ro_fd): Define temporary variable to avoid

warning.

* elf/sprof.c: Likewise.

15 years ago* sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
Ulrich Drepper [Sun, 26 Apr 2009 20:12:37 +0000 (20:12 +0000)]
* sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline

from definition.

* sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
label if it is not used.

* elf/dl-profile.c (_dl_start_profile): Define real-type variant
of gmon_hist_hdr and gmon_hdr structures and use them.

* elf/dl-load.c (open_verify): Add temporary variable to avoid
warning.

* nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.

* sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
to avoid cast.

* inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
* inet/rcmd.c (rcmd_af): Make from a union of the various needed types
to avoid warnings.
(iruserok_af): Use ss_family instead of casts.

* gmon/gmon.c (write_hist): Define real-type variant of
gmon_hist_hdr structure and use it.
(write_gmon): Likewise for gmon_hdr.

* sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
function if we are not going to define it.
* sysdeps/unix/sysv/linux/writev.c: Likewise.

* inet/inet6_option.c (optin_alloc): Add temporary variable to
avoid warning.

* libio/strfile.h (struct _IO_streambuf): Use correct type and
name of VTable element.
* libio/iovsprintf.c: Avoid casts to avoid warnings.
* libio/iovsscanf.c: Likewise.
* libio/vasprintf.c: Likewise.
* libio/vsnprintf.c: Likewise.
* stdio-common/isoc99_vsscanf.c: Likewise.
* stdlib/strfmon_l.c: Likewise.
* debug/vasprintf_chk.c: Likewise.
* debug/vsnprintf_chk.c: Likewise.
* debug/vsprintf_chk.c: Likewise.

15 years ago* sem_open.c (sem_open): Rewrite initialization of initsem to
Ulrich Drepper [Sun, 26 Apr 2009 18:37:05 +0000 (18:37 +0000)]
* sem_open.c (sem_open): Rewrite initialization of initsem to

avoid warnings.

15 years ago* sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):
Ulrich Drepper [Sun, 26 Apr 2009 18:06:47 +0000 (18:06 +0000)]
* sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):

Avoid warning by using may_alias attribute on ptrhack.

15 years ago* nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
Ulrich Drepper [Sun, 26 Apr 2009 16:45:03 +0000 (16:45 +0000)]
* nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached

function pointers.

15 years ago* sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
Ulrich Drepper [Sun, 26 Apr 2009 15:03:11 +0000 (15:03 +0000)]
* sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.

15 years ago* posix/bits/posix1_lim.h: Cleanup namespace a bit.
Ulrich Drepper [Sun, 26 Apr 2009 06:18:19 +0000 (06:18 +0000)]
* posix/bits/posix1_lim.h: Cleanup namespace a bit.

15 years ago* sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
Ulrich Drepper [Sun, 26 Apr 2009 05:42:49 +0000 (05:42 +0000)]
* sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.

* sysdeps/i386/fpu/s_tanf.S: Likewise.
* sysdeps/i386/fpu/s_tanl.S: Likewise.
* sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
* sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
* sysdeps/x86_64/fpu/s_tanl.S: Likewise.
* math/libm-test.inc: Add tests for errno after tan calls with
±Inf.