]> git.ipfire.org Git - thirdparty/glibc.git/log
thirdparty/glibc.git
15 years agoAlso correct _POSIX2_* constants in case older standards are selected.
Ulrich Drepper [Sun, 23 Aug 2009 21:55:51 +0000 (14:55 -0700)] 
Also correct _POSIX2_* constants in case older standards are selected.

(cherry picked from commit bdc7f5d76b4f284475595dddc79f0e0f9720ec20)

15 years agoDefine _POSIX_VERSION correctly when older POSIX versions are selected.
Ulrich Drepper [Sun, 23 Aug 2009 19:27:09 +0000 (12:27 -0700)] 
Define _POSIX_VERSION correctly when older POSIX versions are selected.

(cherry picked from commit c6b6723e6b756d36d9912a1c430459634e15758b)

15 years agoAdd CFI directives to x86-64 pthread_rwlock_unlock.
Ulrich Drepper [Wed, 12 Aug 2009 03:47:36 +0000 (20:47 -0700)] 
Add CFI directives to x86-64 pthread_rwlock_unlock.

(cherry picked from commit ae0d54500381eb9d40710a259819d9b745a7297f)

15 years agoAdd CFI directives to x86-64 pthread_rwlock_{rd,wr)lock.
Ulrich Drepper [Mon, 10 Aug 2009 18:26:16 +0000 (11:26 -0700)] 
Add CFI directives to x86-64 pthread_rwlock_{rd,wr)lock.

(cherry picked from commit 1bc2b97ee42dd653890657a4c910bd144247ea11)

15 years agoSH: fix clobber list in stdlib/longlong.h
SUGIOKA Toshinobu [Mon, 10 Aug 2009 15:12:49 +0000 (08:12 -0700)] 
SH: fix clobber list in stdlib/longlong.h

(cherry picked from commit 78fd882a7bf6153f33b73363c542e1f37c098c56)

15 years agoFix obstack* on i?86
Jakub Jelinek [Fri, 31 Jul 2009 14:26:36 +0000 (07:26 -0700)] 
Fix obstack* on i?86

obstack calls several callbacks, so on i?86 it'd better be compiled
without -mpreferred-stack-boundary=2, otherwise the callbacks are called
with misaligned stack.
(cherry picked from commit 1877ea16ca0714abd715d6ce0aa1b840c3850241)

15 years agoStop backtrace when we make no more progress.
Ulrich Drepper [Thu, 30 Jul 2009 23:53:52 +0000 (16:53 -0700)] 
Stop backtrace when we make no more progress.

(cherry picked from commit 2dec6007d183aa51abedbbb048382973129f3935)

15 years agoHandle missing NSS modules and those without callbacks.
Ulrich Drepper [Sat, 25 Jul 2009 19:29:04 +0000 (12:29 -0700)] 
Handle missing NSS modules and those without callbacks.

getaddrinfo didn't update the status variable in that round of the
loop if no callback was used.
(cherry picked from commit 657317537c09b82a2feb1194fda045f63e3a1222)

16 years agoBuild pt_chown as PIE.
Ulrich Drepper [Wed, 17 Jun 2009 03:46:42 +0000 (20:46 -0700)] 
Build pt_chown as PIE.
(cherry picked from commit f051ddfe22d3db4e77d6a545d5363be8b986cb96)

16 years agoExtend pt_chown to drop privileges.
Ulrich Drepper [Tue, 16 Jun 2009 22:58:07 +0000 (15:58 -0700)] 
Extend pt_chown to drop privileges.

If libcap is available, use it to drop privileges in pt_chown before
starting the work to change the permissions and ownership of the
slave device.
(cherry picked from commit f793b62438a3cfdbcc5ba453eebee1db3f315bea)

16 years agoConsolidate PIE linking Makefile rules.
H.J. Lu [Tue, 16 Jun 2009 16:19:59 +0000 (09:19 -0700)] 
Consolidate PIE linking Makefile rules.
(cherry picked from commit 435aa54b3b9c1c87498e8bb3831394fd42220fa7)

16 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.
(cherry picked from commit 1e1dc4e82dd4f31b87440388614c3e4bccdd5f3c)

16 years agoFix whitespace in last patch.
Ulrich Drepper [Thu, 2 Jul 2009 11:34:35 +0000 (04:34 -0700)] 
Fix whitespace in last patch.
(cherry picked from commit 241e68032077f92de17f69ac77161807c232b346)

16 years agopthread_mutex_unlock needs to use _rel semantics for atomic ops.
Ulrich Drepper [Mon, 27 Jul 2009 20:46:56 +0000 (13:46 -0700)] 
pthread_mutex_unlock needs to use _rel semantics for atomic ops.
(cherry picked from commit e73e694e38b7b222eec3ec5897eb507d88bb8928)

16 years agoCompatibility of signalfd/eventfd with older kernels.
Ulrich Drepper [Sun, 26 Jul 2009 19:55:03 +0000 (12:55 -0700)] 
Compatibility of signalfd/eventfd with older kernels.
(cherry picked from commit aa7492d20e5a2cef54dab7b41f534048b3eca479)

16 years agoHandle SERVFAIL, NOTIMP, REFUSED replies from DNS server better.
Ulrich Drepper [Sun, 26 Jul 2009 19:16:24 +0000 (12:16 -0700)] 
Handle SERVFAIL, NOTIMP, REFUSED replies from DNS server better.

When doing IPv4+6 lookups we have to pass up the error record from
send_dg.
(cherry picked from commit e28b969b49811a30887e7a252ac1804a055fe297)

16 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
(cherry picked from commit edeabc047e56680a293c39992d227b4c430cc0a7)

16 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
(cherry picked from commit 863615332688db0aa6db3dea642752241f051e5c)

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

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

16 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.

(cherry picked from commit ab09b221594f12d90a63d29cbf5488d91f39d3f3)

16 years agoUse correct release semantic in list update.
Andreas Schwab [Thu, 16 Jul 2009 16:57:32 +0000 (09:57 -0700)] 
Use correct release semantic in list update.

nscd uses lockfree lists and we need to ensure the correct release
semantics is used when adding to the list.
(cherry picked from commit 50158f95525ca59459a90f2a7bc65ceb892a0807)

16 years agoFix race in corruption check.
Ulrich Drepper [Thu, 16 Jul 2009 16:54:34 +0000 (09:54 -0700)] 
Fix race in corruption check.

With atomic fastbins the checks performed can race with concurrent
modifications of the arena.  If we detect a problem re-do the test
after getting the lock.
(cherry picked from commit bec466d922ee22b94ac0d00415fb605e136efe6e)

16 years agoUse rel semantics of cas instead of acq semantics with full barrier before it in...
Jakub Jelinek [Thu, 16 Jul 2009 14:24:50 +0000 (07:24 -0700)] 
Use rel semantics of cas instead of acq semantics with full barrier before it in _int_free

The following patch fixes catomic_compare_and_exchange_*_rel definitions
(which were never used and weren't correct) and uses
catomic_compare_and_exchange_val_rel in _int_free.  Comparing to the
pre-2009-07-02 --enable-experimental-malloc state the generated code should
be identical on all arches other than ppc/ppc64 and on ppc/ppc64 should use
lwsync instead of isync barrier.

(cherry picked from commit bea0ac1d8703091294fe5822d982591c849b5458)

16 years agoFix build issue with modules for audit test on machines != x86-64.
Ulrich Drepper [Wed, 15 Jul 2009 15:27:19 +0000 (08:27 -0700)] 
Fix build issue with modules for audit test on machines != x86-64.

(cherry picked from commit 59cbcac015cdd446c346cfd2c2ada3f94ef540b2,
removed tst-audit4, tst-audit5 references)

16 years agoFix comment in Linux's <sys/epoll.h>.
Ulrich Drepper [Fri, 10 Jul 2009 13:14:25 +0000 (06:14 -0700)] 
Fix comment in Linux's <sys/epoll.h>.

(cherry picked from commit 339717d5f117d118750ec187b1779cafa349249e)

16 years agoFix wrong PPC_FEATURE_* values.
Andreas Schwab [Mon, 6 Jul 2009 06:46:03 +0000 (23:46 -0700)] 
Fix wrong PPC_FEATURE_* values.

Nothing uses these wrong values yet, but it fixes a warning due to
conflicting definitions in <asm/cputable.h>.

(cherry picked from commit 2123d5815eaaa53a772be4b6069bdc6332f2f491)

16 years agoFix handling of xmm6 in ld.so audit hooks on x86-64.
H.J. Lu [Thu, 2 Jul 2009 11:33:12 +0000 (04:33 -0700)] 
Fix handling of xmm6 in ld.so audit hooks on x86-64.

(cherry picked from commit 167d5ed5de0c6e587506b8a595fe0e4aa630bbb0)

16 years agoFix possible race when freeing object in fast bin list.
Ulrich Drepper [Thu, 2 Jul 2009 10:30:55 +0000 (03:30 -0700)] 
Fix possible race when freeing object in fast bin list.
(cherry picked from commit 6cbbaa50aac809ad6e0692247876c82d58e466bf)

16 years agoFix NIS and NIS+ getnetbyaddr backends.
Ulrich Drepper [Wed, 1 Jul 2009 10:41:30 +0000 (03:41 -0700)] 
Fix NIS and NIS+ getnetbyaddr backends.

The addresses were interpreted as class-based network addresses.
(cherry picked from commit 2fd0cd8b5257e7ae0c0df0651ee62a6ef7c37cc2)

16 years agoFix getent networks lookup and resulting incorrect NSS change.
Ulrich Drepper [Wed, 1 Jul 2009 10:33:26 +0000 (03:33 -0700)] 
Fix getent networks lookup and resulting incorrect NSS change.

I changed the files NSS backend for networks because I thought the
getent use of getnetbyaddr is correct.  But it isn't.  Undo parts
of the last change and fix getent.
(cherry picked from commit 5cd1f906c34256abdccc92052fbbde51fd70a565)

16 years agoFix getnetbyaddr implementation.
Ulrich Drepper [Wed, 1 Jul 2009 09:42:59 +0000 (02:42 -0700)] 
Fix getnetbyaddr implementation.

There were two problems in the getnetbyaddr implementation.  The type
argument is pretty much useless since (almost) no input file contains
this information and the NSS backends make up the value they fill in
for the n_addrtype field.  Therefore we now declare that passing AF_UNSPEC
is always recognized.  Secondly, the files backend didn't compare the network
numbers with the correct endianess.

Also change getent to take advantage of the type parameter change.

(cherry picked from commit 29ba9812bb86bf6da9702f4fbff5cdbb25846401)

16 years agoFix cfa offset for saved registers in PPC sqrt implementations.
Andreas Schwab [Wed, 24 Jun 2009 18:36:57 +0000 (11:36 -0700)] 
Fix cfa offset for saved registers in PPC sqrt implementations.
(cherry picked from commit 3f241d758415e050269ebd9b3b909f3d007f89e5)

16 years agoHandle empty TZ strings at the end of new-style timzeone files correctly.
Andreas Schwab [Tue, 23 Jun 2009 16:13:30 +0000 (09:13 -0700)] 
Handle empty TZ strings at the end of new-style timzeone files correctly.

(cherry picked from commit 7a7c2c24654f7ab69b1cec72c329c8d73f0e4c04)

16 years agoAdd 802.15.4 definitions to header files.
Ulrich Drepper [Thu, 18 Jun 2009 14:52:38 +0000 (07:52 -0700)] 
Add 802.15.4 definitions to header files.

(cherry picked from commit d0a2af710654a038903dd4a300030670bfbeaa2d)

16 years agoFix x86-64 memchr for large lengths.
Jakub Jelinek [Tue, 16 Jun 2009 17:23:31 +0000 (10:23 -0700)] 
Fix x86-64 memchr for large lengths.

(cherry picked from commit fab8238de69de67637d21923b3ec1c26e4ce8450)

16 years agoFix incorrect use of cmpldi in 32-bit PPC code.
Ryan S. Arnold [Tue, 16 Jun 2009 15:29:04 +0000 (08:29 -0700)] 
Fix incorrect use of cmpldi in 32-bit PPC code.

The 32-bit PowerPC POWER6 memcpy uses the cmpldi insn when it should use a cmplwi.
BZ #10107
(cherry picked from commit 25bfbb9e0e610afaf6b67e5ee1a1a5338018c42e)

16 years agoDefine week, first_weekday, first_workday in de_AT locale.
Ulrich Drepper [Tue, 16 Jun 2009 15:25:01 +0000 (08:25 -0700)] 
Define week, first_weekday, first_workday in de_AT locale.

BZ #10011
(cherry picked from commit b23964c6207124341b89cefc316dc512a669c17b)

16 years agoRun tst-fgetwc with necessary envvar.
Ulrich Drepper [Tue, 16 Jun 2009 14:48:27 +0000 (07:48 -0700)] 
Run tst-fgetwc with necessary envvar.
(cherry picked from commit eae3208e249edda25548fa7680d01193d7515e0c)

16 years agoFix permission of slave device on devpts if necessary.
Ulrich Drepper [Tue, 16 Jun 2009 05:56:51 +0000 (22:56 -0700)] 
Fix permission of slave device on devpts if necessary.

If devptr is misconfigured the slave device permission after grantpt
might not be 0620.  BZ #10166
(cherry picked from commit 292e3abebff9f94ca47c1a725a691cb6ed6cff5f)

16 years agoWhen iterating over CPU bitmask, don't try more than CPU_SETSIZE.
Ulrich Drepper [Tue, 16 Jun 2009 04:12:57 +0000 (21:12 -0700)] 
When iterating over CPU bitmask, don't try more than CPU_SETSIZE.
(cherry picked from commit 395a37e379bf900b2b6a25e17c44cde2d1c46c44)

16 years agoFix type of nd_opt_home_agent_info_preference.
Arnaud Ebalard [Tue, 16 Jun 2009 03:33:39 +0000 (20:33 -0700)] 
Fix type of nd_opt_home_agent_info_preference.

(cherry picked from commit 7ed520bd8504700cf4aaf3b06deb10575bfc546a)

16 years agoFix memory leak when batch-reading large NIS password maps.
Joe Landers [Tue, 16 Jun 2009 00:37:40 +0000 (17:37 -0700)] 
Fix memory leak when batch-reading large NIS password maps.

Not the whole was traversed in the function to free all buffers.
BZ #10203
(cherry picked from commit 233a182b9ee2a48eddbb15f70af8bc24add24af3)

16 years ago(do_test): Use de_DE.UTF-8 as locale name.
Bruce Dubbs [Tue, 16 Jun 2009 00:27:48 +0000 (17:27 -0700)] 
(do_test): Use de_DE.UTF-8 as locale name.

(cherry picked from commit 4155d926336ba38428a98359bf0908453ff83625)

16 years agoFix computation of tzspec_len.
Ulrich Drepper [Mon, 15 Jun 2009 18:00:08 +0000 (11:00 -0700)] 
Fix computation of tzspec_len.

Without this it should never have worked that we can use the
embedded envvar in the timezone data files for dates after the last
matching rule.
(cherry picked from commit 6355c99740c91ed5a7fa14e378f74950e09f5f48)

16 years agoHandle leap seconds even if no DST rule exists.
Akinori Hattori [Mon, 15 Jun 2009 17:54:26 +0000 (10:54 -0700)] 
Handle leap seconds even if no DST rule exists.

This fixes BZ #10211.
(cherry picked from commit 29143408ae6d474a115768e809691635f507b1fd)

16 years agoFix futex syscall parameter for x86 absolute timeout waits.
Bryan Kadzban [Thu, 11 Jun 2009 18:32:51 +0000 (11:32 -0700)] 
Fix futex syscall parameter for x86 absolute timeout waits.

This affects only installations compiled for kernels older than 2.6.18.
(cherry picked from commit 1828530f09bcc321cfb84c27110bbce804605ec4)

16 years agoRemember we switched to single-request mode.
Ulrich Drepper [Thu, 11 Jun 2009 17:07:33 +0000 (10:07 -0700)] 
Remember we switched to single-request mode.

This change prevents repetition in most later calls of the resolver
in case the DNS server or the network connection is broken.
(cherry picked from commit 310647e9809986986650994d036af18ca9b17fb2)

16 years agoRemove comma at end of enum.
J.H.M. Dassen [Tue, 9 Jun 2009 14:58:02 +0000 (07:58 -0700)] 
Remove comma at end of enum.
(cherry picked from commit 88ea382fda5af7717f85bb19837c9c99094f3df4)

16 years ago(_IO_new_file_fopen): Don't prematurely stop parsing mode string.
Ulrich Drepper [Tue, 9 Jun 2009 13:59:02 +0000 (06:59 -0700)] 
(_IO_new_file_fopen): Don't prematurely stop parsing mode string.
(cherry picked from commits 0d74e0436195a051d69e78bef10d23879788cb7e,
d360a0da2b42b2b79e9ce9c2d7984c234e840b7a)

16 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.
(cherry picked from commit fbb04b35e7997070feec74e0fd46953faef71f9e)

16 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.
(cherry picked from commit 21e66bc528edcbe18d434eb33a601e0f796904c9)

16 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.
(cherry picked from commit fd469aac31dc09f1328c8c4b976f887ebd592c56)

16 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.
(cherry picked from commit c16a054d5e20e4da6ccc528b690910a777d69a8b)

16 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.
(cherry picked from commit cc3ae2461cf5ced13ab7c7787543f4dd3eabe88c)

16 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.
(cherry picked from commit 7f3394bdf34e28b374e5569a7a74ddac734fb172)

16 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.
(cherry picked from commit 8ee84bd01f85b5ab1430750270b7e51a967d03eb)

16 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.
(cherry picked from commit 57be3fd79a418b14e417e9a6b96f05dcb99932ee)

16 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.
(cherry picked from commit 38ae768d88c47dd06030104eb3376212b0d8d164)

16 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.
(cherry picked from commit fa64b7f76b97930cd2aaf7bfd305cac3d925cd8f)

16 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.
(cherry picked from commit 3533b1a6a6a6b7e350b7a9459f8152b1f9f0364a)

16 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.
(cherry picked from commit d14eda9310125ddf8fe66df01bbe46ab7d226a5e)

16 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).
(cherry picked from commit a2292378d0d629c26edfae6b197efbdb362a7094)

16 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.
(cherry picked from commit 5078fff6c4bc1c71c5d558ff7ec4775aa48b0c11)

16 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.
(cherry picked from commit a64039b084ae3faca3336b7d95f2e40c497d20e1)

16 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.
(cherry picked from commit fa546abe9d0346d5d87b8fe19884993408476d77)

16 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.
(cherry picked from commit 95410b7ba23c44f6a038285d9c38ee84129e4cd6)

16 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.
(cherry picked from commit 831a40494d44045c0caaf8085ab1d35c0da23140)

16 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.
(cherry picked from commit cfe1fc1013d0e7e4863c974fa0e78891cc0a2ed2)

16 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.
(cherry picked from commit 3b1b533bc3239ef6df1e40e0088e7270ac060be6)

16 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.
(cherry picked from commit 9e471dad8e173806cbbfb704875d5ae40e36fa34)
(fixed ChangeLog entry by pasky)

16 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.
(cherry picked from commit 9437b427cec6266abd303983848549a5c4ba0d0a)

16 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.
(cherry picked from commit 1a7f254b4b0590bfab1baa1400705265b1b23b97)

16 years agoCleanup some .gitignore files.
Ulrich Drepper [Sat, 16 May 2009 02:47:10 +0000 (19:47 -0700)] 
Cleanup some .gitignore files.
(cherry picked from commit 9a1fbe861d8ae41976f926a211d59098a030878f)

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

16 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
(cherry picked from commit 2e180a26222caf478f29e272c9d1b5d9c6299752)

16 years agoUpdate from trunk. cvs/glibc-2_10-branch ibm/2.10/master cvs/glibc-2_10_1 glibc-2.10.1
Ulrich Drepper [Mon, 11 May 2009 14:08:53 +0000 (14:08 +0000)] 
Update from trunk.

16 years agoUpdate from trunk.
Ulrich Drepper [Sun, 10 May 2009 19:31:51 +0000 (19:31 +0000)] 
Update from trunk.

16 years ago* Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the cvs/fedora-glibc-20090509T2200 cvs/glibc-2_10 cvs/glibc-2_10-base glibc-2.10
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.

16 years ago* version.h (VERSION): Bump for 2.10 release. cvs/fedora-glibc-20090509T1828
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.

16 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.

16 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.

16 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.

16 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.

16 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.

16 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.

16 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.

16 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>.

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

16 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.

16 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.

16 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.

16 years ago* locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE cvs/fedora-glibc-20090427T1419
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.

16 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.

16 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.

16 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

16 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>.

16 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.

16 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.

16 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.