glibc/pb-stable.git
14 years agoSupport binutils 2.100 and 3.0.glibc-2.10-branch
H.J. Lu [Tue, 8 Sep 2009 23:04:30 +0000 (8 16:04 -0700)]
Support binutils 2.100 and 3.0.

(cherry picked from commit 0549ce8ec1f66a41c59815e50dd48ffd74fabb52)

14 years agoFix malformed #pragma.
Andreas Schwab [Mon, 7 Sep 2009 15:31:52 +0000 (7 08:31 -0700)]
Fix malformed #pragma.

(cherry picked from commit 3d60eb17340768688bd287580c32365c1e925487)

14 years agoFix endless loop in localedef.
Ulrich Drepper [Mon, 7 Sep 2009 09:32:29 +0000 (7 02:32 -0700)]
Fix endless loop in localedef.

localedef got into an endless loop in case order_start was used for
the unnamed_section twice and the first use didn't actually result
into any definition.
(cherry picked from commit 7a7e49c020125d444fec7fded51bd5f82bfc8c49)

14 years agoHandle POSIX2_LINE_MAX in getconf.
Ulrich Drepper [Mon, 7 Sep 2009 07:18:06 +0000 (7 00:18 -0700)]
Handle POSIX2_LINE_MAX in getconf.

(cherry picked from commit d76da20f7f77e9dfc7e81ebaf0f9902699a873e8)

14 years agoSupport binutils 2.20.
H.J. Lu [Sat, 5 Sep 2009 14:06:19 +0000 (5 07:06 -0700)]
Support binutils 2.20.

(cherry picked from commit 4c14c8c348ee3e9a5fea3608cabcabdb275b6141)

14 years agoFix whitespaces.
Ulrich Drepper [Thu, 3 Sep 2009 02:59:43 +0000 (2 19:59 -0700)]
Fix whitespaces.

(cherry picked from commit 01034d7590f0db29a689d0037cf9b837e38e7482)

14 years agoFix timer_create to initialize timer_t properly.
Suzuki Poulose [Thu, 3 Sep 2009 02:58:50 +0000 (2 19:58 -0700)]
Fix timer_create to initialize timer_t properly.

(cherry picked from commit 38eb61366303c2857f1b00785757bc21da983d70)

14 years agoFix lookup of group names in hesiod initgroups.
Andreas Schwab [Thu, 3 Sep 2009 02:48:39 +0000 (2 19:48 -0700)]
Fix lookup of group names in hesiod initgroups.

Resolving names from a grplist entry actually never worked.
(cherry picked from commit 2eeb9a5d73bd86261b69e61955741e3ce86c28f6)

14 years agoFix fsetpos on wide stream.
Andreas Schwab [Thu, 3 Sep 2009 02:45:33 +0000 (2 19:45 -0700)]
Fix fsetpos on wide stream.

(cherry picked from commit 5d2e69766a8faba5bae37702094c36113365a6ca)

14 years agoCleanup _IO_wfile_seekoff.
Andreas Schwab [Tue, 1 Sep 2009 22:36:22 +0000 (1 15:36 -0700)]
Cleanup _IO_wfile_seekoff.

This reformulates the in-buffer optimisation check to match the code in
_IO_new_file_seekoff.  No functional changes, but easier to understand.
(cherry picked from commit d840539e1271020600edba752e6ee908c00f66eb)

14 years agoFix use of 64-bit insn in 32-bit memcpy for POWER6.
Joshua W. Boyer [Tue, 1 Sep 2009 22:35:35 +0000 (1 15:35 -0700)]
Fix use of 64-bit insn in 32-bit memcpy for POWER6.

(cherry picked from commit a050d2a5e722876623a70d501c3cdfedfce8b5ce)

14 years agoFix problems with memory allocation in assert.
Ulrich Drepper [Mon, 31 Aug 2009 11:56:07 +0000 (31 04:56 -0700)]
Fix problems with memory allocation in assert.

In case the allocator is corrupted and an assert triggers, we shouldn't
allocate any more memory.  Use a private assert definition which doesn't
use malloc.

(cherry picked from commit b5c03e105cb445a7dc08289e7e6751434c3262ce)

14 years agoAdd local assert function to avoid problems with memory allocation in
Ulrich Drepper [Mon, 31 Aug 2009 11:55:10 +0000 (31 04:55 -0700)]
Add local assert function to avoid problems with memory allocation in
the real one.

(cherry picked from commit 72f9026327c109c3d72b4f17ee0afc8b4e2d6f00,
one merge conflict within whitespace changes resolved)

14 years agoSH lowlevellock broken for FUTEX_CLOCK_REALTIME.
Andrew Stubbs [Fri, 28 Aug 2009 21:57:16 +0000 (28 14:57 -0700)]
SH lowlevellock broken for FUTEX_CLOCK_REALTIME.

(cherry picked from commit 7812c65b908916f34161e41a76114004d0fcebb3)

14 years agoFix generic fdiml.
Joseph Myers [Tue, 25 Aug 2009 22:48:06 +0000 (25 15:48 -0700)]
Fix generic fdiml.

(cherry picked from commit e9f145cba8691a81dac379914bb3895360795a9b)

14 years agoFix overflow handling in fdim.
Ulrich Drepper [Mon, 24 Aug 2009 19:06:55 +0000 (24 12:06 -0700)]
Fix overflow handling in fdim.

(cherry picked from commit f0c281e072fd324261a51558284c04e230c0178d)

14 years agoFix td_ta_map_lwp2thr logging and early sanity check.
Roland McGrath [Sun, 23 Aug 2009 23:33:50 +0000 (23 16:33 -0700)]
Fix td_ta_map_lwp2thr logging and early sanity check.

(cherry picked from commit a0e25a886a9128b280b4c05bc9c6dd12377ea868)

14 years agoExtend last test case.
Ulrich Drepper [Sun, 23 Aug 2009 23:03:48 +0000 (23 16:03 -0700)]
Extend last test case.

(cherry picked from commit a1ed6c284a2ad191f13c640d34c2563b5c366267)

14 years agoAdd test case for last fixed regex bug.
Ulrich Drepper [Sun, 23 Aug 2009 22:33:40 +0000 (23 15:33 -0700)]
Add test case for last fixed regex bug.

(cherry picked from commit 8a7cea019947a68e641e9201813fe01ba35cfd1a)

14 years agoRecognize ill-formed { } expressions in regcomp.
Ulrich Drepper [Sun, 23 Aug 2009 22:22:00 +0000 (23 15:22 -0700)]
Recognize ill-formed { } expressions in regcomp.

(cherry picked from commit 52db8039f54672abe6a6da5fb107fa52aca42547)

14 years agoAlso correct _POSIX2_* constants in case older standards are selected.
Ulrich Drepper [Sun, 23 Aug 2009 21:55:51 +0000 (23 14:55 -0700)]
Also correct _POSIX2_* constants in case older standards are selected.

(cherry picked from commit bdc7f5d76b4f284475595dddc79f0e0f9720ec20)

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

(cherry picked from commit c6b6723e6b756d36d9912a1c430459634e15758b)

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

(cherry picked from commit ae0d54500381eb9d40710a259819d9b745a7297f)

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

(cherry picked from commit 1bc2b97ee42dd653890657a4c910bd144247ea11)

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

(cherry picked from commit 78fd882a7bf6153f33b73363c542e1f37c098c56)

14 years agoFix obstack* on i?86
Jakub Jelinek [Fri, 31 Jul 2009 14:26:36 +0000 (31 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)

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

(cherry picked from commit 2dec6007d183aa51abedbbb048382973129f3935)

14 years agoHandle missing NSS modules and those without callbacks.
Ulrich Drepper [Sat, 25 Jul 2009 19:29:04 +0000 (25 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)

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

14 years agoExtend pt_chown to drop privileges.
Ulrich Drepper [Tue, 16 Jun 2009 22:58:07 +0000 (16 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)

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

14 years agoImplement accept4 for more archs using socketcall.
Jakub Jelinek [Fri, 22 May 2009 15:25:34 +0000 (22 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)

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

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

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

14 years agoHandle SERVFAIL, NOTIMP, REFUSED replies from DNS server better.
Ulrich Drepper [Sun, 26 Jul 2009 19:16:24 +0000 (26 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)

14 years agoremove subsumed .gitignore entries and files
Jim Meyering [Sat, 16 May 2009 07:52:16 +0000 (16 09:52 +0200)]
remove subsumed .gitignore entries and files
(cherry picked from commit edeabc047e56680a293c39992d227b4c430cc0a7)

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

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

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

14 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 (20 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)

14 years agoUse correct release semantic in list update.
Andreas Schwab [Thu, 16 Jul 2009 16:57:32 +0000 (16 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)

14 years agoFix race in corruption check.
Ulrich Drepper [Thu, 16 Jul 2009 16:54:34 +0000 (16 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)

14 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 (16 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)

14 years agoFix build issue with modules for audit test on machines != x86-64.
Ulrich Drepper [Wed, 15 Jul 2009 15:27:19 +0000 (15 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)

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

(cherry picked from commit 339717d5f117d118750ec187b1779cafa349249e)

14 years agoFix wrong PPC_FEATURE_* values.
Andreas Schwab [Mon, 6 Jul 2009 06:46:03 +0000 (5 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)

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

(cherry picked from commit 167d5ed5de0c6e587506b8a595fe0e4aa630bbb0)

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

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

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

14 years agoFix getent networks lookup and resulting incorrect NSS change.
Ulrich Drepper [Wed, 1 Jul 2009 10:33:26 +0000 (1 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)

14 years agoFix getnetbyaddr implementation.
Ulrich Drepper [Wed, 1 Jul 2009 09:42:59 +0000 (1 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)

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

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

(cherry picked from commit 7a7c2c24654f7ab69b1cec72c329c8d73f0e4c04)

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

(cherry picked from commit d0a2af710654a038903dd4a300030670bfbeaa2d)

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

(cherry picked from commit fab8238de69de67637d21923b3ec1c26e4ce8450)

14 years agoFix incorrect use of cmpldi in 32-bit PPC code.
Ryan S. Arnold [Tue, 16 Jun 2009 15:29:04 +0000 (16 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)

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

BZ #10011
(cherry picked from commit b23964c6207124341b89cefc316dc512a669c17b)

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

14 years agoFix permission of slave device on devpts if necessary.
Ulrich Drepper [Tue, 16 Jun 2009 05:56:51 +0000 (15 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)

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

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

(cherry picked from commit 7ed520bd8504700cf4aaf3b06deb10575bfc546a)

14 years agoFix memory leak when batch-reading large NIS password maps.
Joe Landers [Tue, 16 Jun 2009 00:37:40 +0000 (15 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)

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

(cherry picked from commit 4155d926336ba38428a98359bf0908453ff83625)

14 years agoFix computation of tzspec_len.
Ulrich Drepper [Mon, 15 Jun 2009 18:00:08 +0000 (15 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)

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

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

14 years agoFix futex syscall parameter for x86 absolute timeout waits.
Bryan Kadzban [Thu, 11 Jun 2009 18:32:51 +0000 (11 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)

14 years agoRemember we switched to single-request mode.
Ulrich Drepper [Thu, 11 Jun 2009 17:07:33 +0000 (11 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)

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

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

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

Little typo could cause additional characters to be printed.
(cherry picked from commit fbb04b35e7997070feec74e0fd46953faef71f9e)

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

The remaining bytes were not copied correctly.
(cherry picked from commit 21e66bc528edcbe18d434eb33a601e0f796904c9)

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

Hidden by previous .gitignore content.
(cherry picked from commit fd469aac31dc09f1328c8c4b976f887ebd592c56)

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

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

14 years agoFix errno for boundary conditions in 128-bit long double.
Ulrich Drepper [Fri, 29 May 2009 19:00:22 +0000 (29 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)

14 years ago[BZ #10200]
Aurelien Jarno [Wed, 27 May 2009 23:41:00 +0000 (27 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)

14 years agoDescribe nss_dns parallel lookup workaround in 2.10 NEWS.
Ulrich Drepper [Fri, 22 May 2009 16:07:00 +0000 (22 09:07 -0700)]
Describe nss_dns parallel lookup workaround in 2.10 NEWS.
(cherry picked from commit 57be3fd79a418b14e417e9a6b96f05dcb99932ee)

14 years agoFix errno for IBM long double.
Andreas Schwab [Fri, 22 May 2009 15:35:15 +0000 (22 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)

14 years agoFix IA-64 memchr read-ahead.
Ulrich Drepper [Fri, 22 May 2009 01:47:59 +0000 (21 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)

14 years agoDon't define __ASSUME_ACCEPT4 for IA-64.
Ulrich Drepper [Fri, 22 May 2009 01:23:57 +0000 (21 18:23 -0700)]
Don't define __ASSUME_ACCEPT4 for IA-64.
(cherry picked from commit 3533b1a6a6a6b7e350b7a9459f8152b1f9f0364a)

14 years agoRemove __NR_accept4 definition.
Jakub Jelinek [Fri, 22 May 2009 01:16:59 +0000 (21 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)

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

The header had the old name (paccept).
(cherry picked from commit a2292378d0d629c26edfae6b197efbdb362a7094)

14 years agoFix forced loop termination in nscd database lookup.
Jakub Jelinek [Mon, 18 May 2009 17:19:50 +0000 (18 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)

14 years agoUnify __WAIT_INT definition in stdlib.h and sys/wait.h.
Ulrich Drepper [Sat, 16 May 2009 18:39:39 +0000 (16 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)

14 years agoMove BLOCK_ALIGN* macros back.
Ulrich Drepper [Sat, 16 May 2009 17:29:43 +0000 (16 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)

14 years agoFix exit condition.
Ulrich Drepper [Sat, 16 May 2009 17:10:32 +0000 (16 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)

14 years agoFurther robustify nscd database lookup.
Ulrich Drepper [Sat, 16 May 2009 04:33:43 +0000 (15 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)

14 years agoRobustify libc-side nscd database reader.
Jakub Jelinek [Sat, 16 May 2009 04:17:08 +0000 (15 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)

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

14 years agoDon't try to cleanup libselinux and libaudit.
Jakub Jelinek [Sat, 16 May 2009 03:48:08 +0000 (15 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)

14 years agoFix change to prevent cancel signal in unsafe places.
Ulrich Drepper [Sat, 16 May 2009 03:42:36 +0000 (15 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)

14 years agoNo cancel signal in unsafe places.
Ulrich Drepper [Fri, 15 May 2009 17:12:35 +0000 (15 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)

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

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

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

15 years agoUpdate from trunk.
Ulrich Drepper [Mon, 11 May 2009 14:08:53 +0000 (11 14:08 +0000)]
Update from trunk.

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

15 years ago* Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
Ulrich Drepper [Sat, 9 May 2009 21:58:12 +0000 (9 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 (9 17:40 +0000)]
* version.h (VERSION): Bump for 2.10 release.

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