]> git.ipfire.org Git - thirdparty/glibc.git/blame - ChangeLog
* elf/elf.h (NT_386_IOPERM): New macro.
[thirdparty/glibc.git] / ChangeLog
CommitLineData
01a74645
RM
12008-11-26 Roland McGrath <roland@redhat.com>
2
3 * elf/elf.h (NT_386_IOPERM): New macro.
4 (NT_PPC_VSX): New macro.
5
c0439b95
RM
62008-11-25 Roland McGrath <roland@redhat.com>
7
8 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
9 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
10 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
11 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
12 Subdirectories moved to ports repository.
13 * configure.in (base_machine): Remove alpha case.
14
edba7a54
UD
152008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
16
17 [BZ #6411]
18 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
19 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
20 magic numbers.
21 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
22 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
23 (relax_fenv_state): Same as above.
24 (FPSCR_29): Reserve bit in ISA 2.05.
25 (FPSCR_NI): Provide define for compat.
26 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
27 magic numbers.
28 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
29 magic numbers.
30 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
31 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
32 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
33 access to hwcap to account for hwcap size increase to uint64_t.
34 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
35 Likewise.
36 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
37 (*setcontext): Likewise.
38 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
39 New file.
40 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
41 New file.
42 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
43 (*setcontext): dynamically select mtfsf insn based on
44 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
45 increase to uint64_t.
46 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
47 (*swapcontext): dynamically select mtfsf insn based on
48 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
49 increase to uint64_t.
50 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
51 New file.
52 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
53 New file.
54 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
55 (*setcontext): dynamically select mtfsf insn based on
56 PPC_FEATURE_HAS_DFP.
57 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
58 (*swapcontext): dynamically select mtfsf insn based on
59 PPC_FEATURE_HAS_DFP.
60
ec297962
UD
612008-11-13 Ulrich Drepper <drepper@redhat.com>
62
b5449f8a 63 * version.h: Bump for 2.9 release.
f52bb4d7 64 * include/features.h (__GLIBC_MINOR__): Bump to 9.
b5449f8a 65
ec297962
UD
66 [BZ #7029]
67 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
68 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
69 all the rounding.
70
3cac8b75
UD
712008-11-11 Ulrich Drepper <drepper@redhat.com>
72
0e54a725 73 [BZ #7009]
3cac8b75
UD
74 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
75 unknown request types for now.
76
58a4b51a
RM
772008-11-11 Roland McGrath <roland@redhat.com>
78
79 * sysdeps/x86_64/configure: New file.
80
81 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
82 * configure: Regenerated.
83
01bd5e96
JJ
842008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
85
86 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
87 correct instruction to remove the stack frame.
88
a9069550
JJ
892008-11-03 Michael Matz <matz@suse.de>
90
91 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
92 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
93
4b23f9bd
JJ
942008-11-07 Jakub Jelinek <jakub@redhat.com>
95
09f66a4f
JJ
96 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
97 Remove.
98
4b23f9bd
JJ
99 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
100 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
101 of the thread variable instead of void *.
102 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
103 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
104 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
105 __libc_tsd_define arguments.
106 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
107 __libc_tsd_address arguments. Remove union hack.
108 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
109 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
110 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
111 Adjust __libc_tsd_{set,get} arguments.
112 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
113 __libc_tsd_define arguments.
114 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
115 arguments.
116 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
117 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
118 (LOCALE): Adjust __libc_tsd_define arguments.
119 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
120 arguments.
121 (LOCALE): Adjust __libc_tsd_define arguments.
122 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
123 arguments.
124 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
125 arguments.
126
486bdb88
UD
1272008-11-02 Ulrich Drepper <drepper@redhat.com>
128
129 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
130 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
131
64647f9a
UD
1322008-11-01 Ulrich Drepper <drepper@redhat.com>
133
134 [BZ #6966]
135 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
136
acd44dbc
UD
1372008-10-24 Joseph Myers <joseph@codesourcery.com>
138 Ulrich Drepper <drepper@redhat.com>
139
140 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
141 definition for GCC 3.1 and later.
64647f9a 142
41e25904
UD
1432008-10-31 Jakub Jelinek <jakub@redhat.com>
144
145 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
146 refetch dtv, as it might have changed.
147 * elf/Makefile: Add rules to build and run tst-tls18.
148 * elf/tst-tls18.c: New test.
149 * elf/tst-tlsmod18a.c: New file.
150
e148a644 1512008-09-09 Aurelien Jarno <aurelien@aurel32.net>
97f12390 152
da9c2314 153 [BZ #6875]
e148a644
UD
154 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
155
1562008-10-31 Ulrich Drepper <drepper@redhat.com>
97f12390 157
6daf1a2f
UD
158 [BZ #6867]
159 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
160
6f576bf6
UD
161 [BZ #6919]
162 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
163 Fix length of copy operation.
164
45a8beb5
UD
1652008-10-02 Pierre Habouzit <madcoder@debian.org>
166
167 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
168 and fix its calling convention.
169
ad12e635
UD
1702008-10-07 Andreas Schwab <schwab@suse.de>
171
172 [BZ #6942]
173 * resolv/res_send.c (send_vc): Fix last change.
174 (send_dg): Align here as well.
175
3cf44918
UD
1762008-10-31 Ulrich Drepper <drepper@redhat.com>
177
dbb6ab3e
UD
178 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
179 return value in case rlimit is RLIM_INFINITY.
180
181 [BZ #6947]
182 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
183 for UL_SETFSIZE.
1828d6b0
UD
184 * resource/Makefile (tests): Add bug-ulimit1.
185 * resource/bug-ulimit1.c: New file.
dbb6ab3e 186
a5ff533e
UD
187 [BZ #6974]
188 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
189 without dot. Properly terminate the string with a null byte.
190 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
191
4bed549a
UD
192 [BZ #6980]
193 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
194 negative sizees.
195 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
196 negative __size.
197
3cf44918
UD
198 [BZ #6995]
199 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
200
21b07d8b
UD
2012008-10-30 Ulrich Drepper <drepper@redhat.com>
202
332c4465
UD
203 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
204 abort if there is no initgroups_dyn function.
205
21b07d8b
UD
206 * resolv/res_send.c (send_dg): On timeout, only return nonzero
207 result if any of the queries really provided an answer.
208
4caa3fb7
UD
2092008-10-28 Ulrich Drepper <drepper@redhat.com>
210
211 * po/lt.po: Update from translation team.
212
a22c3a0d
UD
2132008-10-26 Ulrich Drepper <drepper@redhat.com>
214
215 * po/id.po: Update from translation team.
216
49685151
UD
2172008-10-24 Ulrich Drepper <drepper@redhat.com>
218
219 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
660675de 220 Fix tests for existence of second reply.
49685151 221
8d9d5d35
UD
2222008-10-23 Ulrich Drepper <drepper@redhat.com>
223
224 * po/id.po: New file.
225 Contributed by the Indonesian translation team.
226
208bc836
UD
2272008-10-22 Dmitry V. Levin <ldv@altlinux.org>
228
229 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
230 initialization.
231
60a23f5a
UD
2322008-10-17 Jakub Jelinek <jakub@redhat.com>
233
234 * elf/Makefile: Add rules to build and run tst-tls17.
235 * elf/tst-tls17.c: New test.
236 * elf/tst-tlsmod17a.c: New file.
237 * elf/tst-tlsmod17b.c: Likewise.
238
292eb817
UD
2392008-10-17 Ulrich Drepper <drepper@redhat.com>
240
241 * stdlib/divmod_1.c: Use correct type for dummy variable.
242 * stdlib/mod_1.c: Likewise.
243
5df2a427
UD
2442008-10-16 Ulrich Drepper <drepper@redhat.com>
245
246 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
247
472e5e08
JJ
2482008-10-16 Jakub Jelinek <jakub@redhat.com>
249
250 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
251 __nonnull order for C++.
252 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
253 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
254
86900abd
RM
2552008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
256
257 * stdlib/longlong.h: Update from GCC.
258
19c10a47
JJ
2592008-10-09 Jakub Jelinek <jakub@redhat.com>
260 David S. Miller <davem@davemloft.net>
261
262 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
263 make sure any registers used with 64-bit 'branch-on-register'
264 instructions have their top 32-bits clear.
265 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
266 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
267
2fdde3b9
UD
2682008-09-18 Andreas Schwab <schwab@suse.de>
269
270 [BZ #6942]
271 * resolv/res_send.c (send_vc): Fix use of unaligned address.
272 Properly handle partial reads.
273
6ba25fcb
RM
2742008-10-01 Mark Shinwell <shinwell@codesourcery.com>
275
276 * elf/elf.h (STO_MIPS_PLT): New.
277 (R_MIPS_COPY): New.
278 (R_MIPS_JUMP_SLOT): New.
279 (R_MIPS_NUM): Redefine to 128.
280 (DT_MIPS_PLTGOT): New.
281 (DT_MIPS_RWPLT): New.
282 (DT_MIPS_NUM): Redefine to 0x35.
283
97898201
UD
2842008-10-01 Ulrich Drepper <drepper@redhat.com>
285
286 * timezone/africa: Update from tzdata2008f.
287 * timezone/asia: Likewise.
288 * timezone/australasia: Likewise.
289 * timezone/europe: Likewise.
290 * timezone/leapseconds: Likewise.
291 * timezone/northamerica: Likewise.
292 * timezone/southamerica: Likewise.
293 * timezone/zone.tab: Likewise.
294
3452ded5
UD
2952008-09-30 Ulrich Drepper <drepper@redhat.com>
296
297 * nscd/connections.c: Disable use of paccept for now.
298
54ad9327
UD
2992008-09-29 Ulrich Drepper <drepper@redhat.com>
300
8ec2550e
UD
301 * socket/Versions: Remove paccept export for GLIBC_2.9.
302 * socket/Makefile (routines): Remove paccept.
303 * socket/sys/socket.h: Remove paccept declaration.
304
54ad9327
UD
305 * po/sv.po: Update from translation team.
306
1c5eba39
UD
3072008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
308
309 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
310 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
311
0a26fc4d
UD
3122008-09-16 Ulrich Drepper <drepper@redhat.com>
313
314 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
315 Patch by Olivier Fourdan <ofourdan@redhat.com>.
316
2bcaff08
UD
3172008-09-15 Ulrich Drepper <drepper@redhat.com>
318
319 * sunrpc/rpc/svc.h: Declare svcfd_create.
320 Patch by Michael Solberg <msolberg@redhat.com>.
321
caa60cb9
UD
3222008-09-12 Flavio Leitner <fleitner@redhat.com>
323 Ulrich Drepper <drepper@redhat.com>
324
325 * malloc/malloc.c (public_vALLOc): Try other arenas in case
326 _int_valloc fails.
327 (public_pVALLOc): Likewise.
328
6c161112
AJ
3292008-09-02 Andreas Jaeger <aj@suse.de>
330
331 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
332 commit.
333
0cb269d7
RM
3342008-08-26 Aurelien Jarno <aurelien@aurel32.net>
335
452034cc 336 [BZ #6860]
2bcaff08 337 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
0cb269d7 338
13074b5b
RM
3392008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
340
341 * Makefile (check-data): Check data directory in add-ons.
342 * elf/Makefile (check-data): Likewise.
343
58801a0e
RM
3442008-08-18 Roland McGrath <roland@redhat.com>
345
346 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
347 * configure: Regenerated.
348 * config.make.in (cflags-cpu): New substituted variable.
349 (with-cpu): Variable removed.
350 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
351
7df49c5d
UD
3522008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
353
354 [BZ #6845]
355 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
356 __signbitl definition and __LONG_DOUBLE_128__ guard from:
357 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
358 redundant. Functions which call floating point assembler operations
359 should go into a sysdeps powerpc/fpu directory.
360
965805e8
UD
3612008-08-15 Ulrich Drepper <drepper@redhat.com>
362
363 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
364 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
365
9cf73ab0
UD
3662008-08-14 Ulrich Drepper <drepper@redhat.com>
367
62a1ffc6
UD
368 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
369
9cf73ab0
UD
370 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
371 change related to AT_EXECFN. We cannot use that string.
372 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
373 _dl_execfn member.
374 * elf/dl-support.c: Remove _dl_execfn variable.
375 (_dl_aux_init): Remove handling of AT_EXECFN.
376 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
377 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
378
1bfa05cf
UD
3792008-08-13 Ulrich Drepper <drepper@redhat.com>
380
7b3ba2c4
UD
381 [BZ #6544]
382 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
383 byte gets added to writes and seeks from the end use the length of
384 the buffer and not the currently terminating NUL byte.
385
1bfa05cf
UD
386 [BZ #6634]
387 * login/utmp_file.c (getutent_r_file): Take additional parameter.
388 Set to true if locking failed.
389 (getutid_r_file): Adjust caller.
390 (pututline_file): Likewise. Return NULL in this case.
391 Patch mostly by halesh.s@gmail.com.
392
c5671698
UD
3932008-08-12 Ulrich Drepper <drepper@redhat.com>
394
395 [BZ #6589]
396 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
397 Define.
398 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
399
4497384e
UD
4002008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
401
402 [BZ #6839]
403 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
404 macro since it is now available in elf/dynamic-link.h.
405
675d7111
RM
4062008-08-12 Roland McGrath <roland@frob.com>
407
408 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
409 in case used outside of libc.
410 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
411
8b254432
UD
4122008-08-11 Ulrich Drepper <drepper@redhat.com>
413
414 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
415 directly instead of going through dn_comp.
416
ac84eeca
RM
4172008-08-11 Aurelien Jarno <aurel32@debian.org>
418
419 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
420 Fix asm constraints.
421
f081b451
UD
4222008-08-07 Ulrich Drepper <drepper@redhat.com>
423
424 [BZ #6790]
425 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
426 (IPV6_PMTUDISC_PROBE): Likewise.
427
30a4429e
UD
4282008-08-07 Pete Eberlein <eberlein@us.ibm.com>
429
430 [BZ #6791]
431 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
432
1642331d 4332008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
626f68ff 434 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1642331d
UD
435
436 [BZ #6817]
437 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
438 Added the members 'vsx' and 'arch_2_06'.
439 (_dl_powerpc_platforms): Add the member 'power7'.
440 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
441 to reflect the changes required by VSX and ISA 2.06.
442 Modify _DL_PLATFORMS_COUNT to reflect the addition of
443 'power7'.
444 Defined PPC_PLATFORM_POWER7.
445 (_dl_string_platform): Add support for POWER7.
446 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
447 capability and ISA 2.06.
448
48b94661
UD
4492008-08-07 Ulrich Drepper <drepper@redhat.com>
450
451 [BZ #6824]
452 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
453 macro to detect use of 128 bit long double.
454 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
455
9523fd28
UD
4562008-08-05 Ulrich Drepper <drepper@redhat.com>
457
9c0cb150
UD
458 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
459
46aea5cb 460 [BZ #5794]
9523fd28
UD
461 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
462 parameters.
463 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
464 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
465
c400c931
UD
4662008-08-03 Ulrich Drepper <drepper@redhat.com>
467
468 * nscd/connections.c (main_loop_poll): Pass a buffer which is
469 guaranteed to be large enough to read inotify event. Ignore
470 EAGAIN error. Better error message. Add branch predicition.
471 (main_loop_epoll): Likewise.
472
3f39adac
RM
4732008-08-02 Roland McGrath <roland@frob.com>
474
475 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
476 Add memory clobbers.
477
3501542f
UD
4782008-08-02 Ulrich Drepper <drepper@redhat.com>
479
48b22986
UD
480 * manual/arith.texi: Avoid @strong{Note:}.
481 * manual/creature.texi: Likewise.
482 * manual/filesys.texi: Likewise.
483 * manual/math.texi: Likewise.
484 * manual/memory.texi: Likewise.
485 * manual/resource.texi: Likewise.
486 * manual/syslog.texi: Likewise.
487 * manual/time.texi: Likewise.
488
3501542f
UD
489 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
490 to prevent warning.
491
17756df3
UD
4922008-08-01 Ulrich Drepper <drepper@redhat.com>
493
ebcc1f4d
UD
494 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
495 new epoll_create1 interface.
496 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
497 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
498 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
499
144bfa86
UD
500 * include/arpa/nameser.h (NS_GET16): Use const pointer.
501 (NS_GET32): Likewise.
502
7e1b29c6
UD
503 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
504 syscalls, too.
505
42fa1f67
UD
506 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
507 use the AT_EXECFN value if it is no absolute path.
508 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
509 __ASSUME_AT_EXECFN.
510
cd5743fd
UD
511 * Versions.def: Add GLIBC_2.9 to libresolv.
512 * include/resolv.h: Remove hidden proto declarations for __ns_*
513 functions. Add them for __dn_count_labels and __p_secstodate.
514 * include/arpa/nameser.h: Add a number of hidden proto declarations.
515 Define ns_msg_getflags macro here.
516 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
517 and __p_secstodate.
518 * resolv/Versions: Export functions from <arpa/nameser.h> from
519 libresolv in version GLIBC_2.9.
520 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
521 hidden definitions.
522 * resolv/ns_netint.c: Likewise.
523 * resolv/ns_parse.c: Likewise.
524 * resolv/ns_print.c: Likewise.
525 * resolv/ns_samedomain.c: Likewise.
526 * resolv/ns_ttl.c: Likewise.
527 * resolv/arpa/nameser_compat.h: Likewise.
528 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
529 function calls.
530 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
531 instead of ns_get16.
532 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
533 __ns_get32 instead of ns_get16 and ns_get32 respectively.
534 (gaih_getanswer_slice): Likewise.
535 * resolv/Makefile (libresolv-routines): Add ns_date.
536 * resolv/ns_date.c: New file.
537
17756df3
UD
538 * elf/Makefile (check-localplt.out): Also check libresolv and
539 libcrypt.
540
46bc5d43
UD
5412008-07-31 Ulrich Drepper <drepper@redhat.com>
542
543 * sysdeps/unix/sysv/linux/kernel-features.h: Define
544 __ASSUME_O_CLOEXEC.
545
a707cff6
UD
5462008-07-30 Ulrich Drepper <drepper@redhat.com>
547
3c227386
UD
548 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
549 buffer passed to NSS functions.
550
9523fd28 551 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
bd7f4857
UD
552
553 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
554 Define.
555
a707cff6
UD
556 * misc/syslog.c (openlog_internal): Fix compile problem.
557
0424d007
RM
5582008-07-28 Roland McGrath <roland@redhat.com>
559
560 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
561
b7da31a1
UD
5622008-07-28 Ulrich Drepper <drepper@redhat.com>
563
300ea0ad
UD
564 * io/ftw.c (add_object): Remove inline to avoid warning.
565
d6173baa
UD
566 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
567
b7da31a1
UD
568 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
569 Use it instead of locally defined resplen2 variable.
570 (res_nsend): Adjust for __libc_res_nsend interface change.
571 (send_vc): Initialize *resplen2 if necessary. Read length of
572 package into an appropriately aligned variable. Store converted length
573 in new variable and use it appropriately.
574 Add branch prediction help.
575 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
576 and pass it on to __libc_res_nsend. Adjust all callers.
577 (__libc_res_nsearch): Likewise.
578 (__libc_res_nqeurydomain): Likewise.
579 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
580 change.
581 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
582 Define resplen2 variable and pass it to __libc_res_nsearch and then
583 to gaih_getanswer.
584 (getanswer_r): In case of incorrect DNS data don't overread buffer.
585 Add branch prediction.
586 (gaih_getanswer_slice): Likewise. Check for invalid data types.
587 (gaih_getanswer): Don't decode second slice if first one failed due
588 to a too small buffer. Don't let not found status of second
589 decoder shadow results of the first.
590 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
591 and __libc_res_nquery interface changes
592 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
593 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
594 __libc_res_nsearch, and __libc_res_nsend.
595 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
596 change.
597 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
598 __libc_res_nsearch interface changes.
599
11ed3eae
UD
6002008-07-27 Ulrich Drepper <drepper@redhat.com>
601
372aece0
UD
602 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
603
e038616f
UD
604 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
605 file descriptors with close-on-exec set.
606 (exec_comm_child): Fix the case where the write end of the pipe is
607 STDOUT_FILENO already. In case it is, clear close-on-exec.
608
d6e0c2a6
UD
609 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
610 * io/pipe2.c: Likewise.
611 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
612 instead of __ASSUME_PACCEPT.
613 * include/unistd.h: Declare __have_pipe2.
614 * libio/iopopen.c: Implement "e" flag.
615 * libio/Makefile (tests): Add tst-popen1.
616 * libio/tst-popen1.c: New file.
617
11ed3eae
UD
618 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
619 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
620
7438a80d
UD
6212008-07-26 Ulrich Drepper <drepper@redhat.com>
622
c4a710b6
UD
623 [BZ #6771]
624 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
625 success call of _IO_SEEKOFF or calls which failed because the
626 descriptor is for a pipe.
627
31f3b159
UD
628 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
629 magic number.
630
c0216dfc
UD
631 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
632
72112b0c
UD
633 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
634 F_SETFD use if we know fopen set the flag.
635
7438a80d
UD
636 * login/utmp_file.c (setutent_file): Minor optimization in case
637 O_CLOEXEC is available.
638
7b91359b
UD
6392008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
640
641 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
642 * elf/Makefile: Use pie-ccflag variable.
643 * nscd/Makefile: Likewise.
644 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
645
4057dc45
UD
6462008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
647
e7135e24 648 [BZ #6724]
4057dc45
UD
649 * Versions.def: Add GLIBC_2.9 version tag for libutil.
650 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
651 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
652 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
653 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
654 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
655 utmp32, utmpx32 and login32.
656 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
657 versions of struct utmp functions to libc and libutil.
658 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
659 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
660 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
661 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
662 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
663 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
664 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
665 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
666 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
667 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
668 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
669 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
670 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
671 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
672 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
673 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
674 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
675 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
676 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
677 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
678 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
679 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
680
ff0bf753
UD
6812008-07-26 Ulrich Drepper <drepper@redhat.com>
682
619cc2f6
UD
683 * scripts/gen-as-const.awk: Generate more widely usable code by
684 using 64-bit arithmetic.
685
1311b164 686 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
3f414923 687 the same treatment as narrow output code in last patch.
1311b164 688
ff0bf753
UD
689 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
690
3f414923 691 [BZ #6763]
ff0bf753
UD
692 * elf/dl-load.c (local_strdup): Remove inline.
693 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
694 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
695 part of the object.
696
697 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
698
8ccf22f9
UD
6992008-07-25 Ulrich Drepper <drepper@redhat.com>
700
bdd24a30
UD
701 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
702 the new syscalls, too.
b5c0b5e4 703
b41f1d14
UD
704 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
705 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
706
3703468e
UD
707 [BZ #6698]
708 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
709 parameter for end of buffer. If temporary copy is too large use
710 malloc.
711 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
712 interface change.
713 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
714 string rewrite when allocating buffer.
715
bb0277bf
UD
716 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
717 syscalls, too.
718
9dd84772
UD
719 * nscd/connections.c (nscd_init): Clean up fcntl call.
720
c418b1ba
UD
721 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
722 SOCK_NONBLOCK if possible.
723
b206d8b1
UD
724 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
725 SOCK_CLOEXEC if available.
726
8ccf22f9
UD
727 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
728 __libc_clntudp_bufcreate_internal.
729 * include/sys/socket.h: Declare __have_sock_cloexec.
730 * socket/Makefile (aux): Add have_sock_cloexec.
731 * socket/have_sock_cloexec.c: New file.
732 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
733 __libc_clntudp_bufcreate.
734 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
735 which takes an additional parameter. Create socket with non-blocking
736 mode and close-on-exec flag set, if wanted.
737 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
738 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
739 instead of clntudp_create. The socket has already the close-on-exec
740 flag set if SOCK_CLOEXEC is defined.
741
579cdf5a
UD
7422008-07-24 Ulrich Drepper <drepper@redhat.com>
743
3ff2c948
UD
744 * sysdeps/unix/sysv/linux/kernel-features.h: Define
745 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
746 appropriate.
747 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
748 non-blocking mode by using socket, paccept, and inotify_init1.
749
bdcebfc4
UD
750 * Versions.def (glibc): Add GLIBC_2.9.
751 * io/Makefile (routines): Add dup3 and pipe2.
752 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
753 * io/dup3.c: New file.
754 * io/pipe2.c: New file.
755 * posix/unistd.h: Declare dup3 and pipe2.
756 * socket/Makefile (routines): Add paccept.
757 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
758 * socket/paccept.c: New file.
759 * socket/sys/socket.h: Declare paccept.
760 * sysdeps/unix/syscalls.list: Add entry for dup3.
761 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
762 epoll_create2 and inotify_init1.
763 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
764 * sysdeps/unix/sysv/linux/paccept.c: New file.
765 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
766 possible.
767 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
768 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
769 inotify_init1, and pipe2 entries.
770 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
771 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
772 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
773 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
774 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
775 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
776 SOCK_NONBLOCK.
777 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
778 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
779 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
780 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
781 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
782 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
783 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
784 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
785 EPOLL_NONBLOCK. Declare epoll_create2.
786 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
787 EFD_NONBLOCK.
788 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
789 IN_NONBLOCK. Declare inotify_init1.
790 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
791 SFD_NONBLOCK.
792 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
793 TFD_NONBLOCK.
794
0e077a7e
UD
795 * elf/elf.h: Define AT_EXECFN.
796 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
797 LD_ORIGIN_PATH.
798 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
799 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
800 if __ASSUME_AT_EXECFN is defined.
801 (_dl_aux_init): Handle AT_EXECFN.
802 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
803 for 2.6.27 and up.
804 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
805 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
806 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
807 _dl_execfn if available and avoid compatibility code if
808 __ASSUME_AT_EXECFN is defined.
809
579cdf5a
UD
810 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
811 _dl_discover_osversion only for older kernels.
812
7385c04c
RM
8132008-07-22 Roland McGrath <roland@frob.com>
814
815 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
816
8a26088d
RM
8172008-07-21 Roland McGrath <roland@frob.com>
818
819 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
820 returned too much data out of line.
821
9f558b80
UD
8222008-07-20 Ulrich Drepper <drepper@redhat.com>
823
2e79213a
UD
824 * locale/setlocale.c (setname): Remove inline to avoid compiler
825 warning.
826
579cdf5a 827 [BZ #6712]
9f558b80
UD
828 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
829
9667f97d
UD
8302008-07-15 Ulrich Drepper <drepper@redhat.com>
831
2486b496
UD
832 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
833 doesn't manage to write anything, fail.
834
9667f97d
UD
835 * malloc/hooks.c (__malloc_check_init): Remove printf.
836
6d4c073b
RM
8372008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
838
839 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
840
b7432416
UD
8412008-07-12 Ulrich Drepper <drepper@redhat.com>
842
843 * nscd/connections.c (main_loop_poll): Fix handling of read errors
844 from inotify.
845 (main_loop_epoll): Likewise.
846
44abc397
UD
8472008-07-09 Ulrich Drepper <drepper@redhat.com>
848
835113c6
UD
849 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
850
fdc769f6
UD
851 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
852 if DEBUG is defined.
853
44abc397
UD
854 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
855 query. Adjust buffer size computation for padding.
856
38dc8fad
UD
8572008-07-08 Ulrich Drepper <drepper@redhat.com>
858
75684bd7
UD
859 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
860 * stdio-common/tst-setvbuf1.c: New file.
861 * stdio-common/tst-setvbuf1.expect: New file.
862
38dc8fad
UD
863 [BZ #6719]
864 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
865 when selecting fully-buffered stream.
866 Patch by Wang Xin <wxinee@gmail.com>.
867
107f4ac2
RM
8682008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
869
870 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
871 (__open_2): New function.
872 (__open64_2): New alias to __open_2.
873 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
874 (__openat_2): New function.
875 (__openat64_2): New alias to __openat_2.
876
45ec3e79
UD
8772008-07-06 Ulrich Drepper <drepper@redhat.com>
878
879 [BZ #6723]
880 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
881
0a583b54
RM
8822008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
883
884 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
885 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
886 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
887 __hurd_dfail.
888 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
889 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
890 * sysdeps/mach/hurd/send.c (__send): Likewise.
891 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
892 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
893
d5a0160b
RM
8942008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
895
896 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
897 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
898 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
899 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
900 * hurd/get-host.c (_hurd_get_host_config): Likewise.
901 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
902
80922a99
UD
9032008-06-27 Ulrich Drepper <drepper@redhat.com>
904
905 [BZ #6657]
906 * time/strptime_l.c: Don't clear s.era_cnt after successful match
907 of %EY.
908 Patch by Petr Baudis.
909
34ca2ff7
UD
9102008-06-26 Ulrich Drepper <drepper@redhat.com>
911
5ee0f5e2 912 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
34ca2ff7
UD
913 Patch by Peter Jones <pjones@redhat.com>.
914
104426b6
UD
9152008-06-25 Ulrich Drepper <drepper@redhat.com>
916
917 [BZ #6654]
918 * stdlib/canonicalize.c (__realpath): readlink can write too much
919 into the buffer on platforms without PATH_MAX.
920
7166d23f
UD
9212008-06-17 Carlos O'Donell <carlos@codesourcery.com>
922
4cb8e687 923 [BZ #6653]
7166d23f
UD
924 * posix/tst-regex.c (main): Rename to...
925 (do_test): ... this. Remove cmdline option processing.
926 (TIMEOUT): Define.
927 (TEST_FUNCTION): Define.
928 (CMDLINE_OPTIONS): Define.
929
974069d8
UD
9302008-06-25 Ulrich Drepper <drepper@redhat.com>
931
932 [BZ #5210]
933 * configure.in: Add -Werror to -fstack-protector test to catch
934 unsupported architectures.
935 Patch by Gilles Esponasse <g.esp@free.fr>.
936
cefa2dd3
UD
9372008-06-17 Joseph Myers <joseph@codesourcery.com>
938
939 * stdlib/tst-setcontext.c: Set back_in_main before exit if
940 getcontext returns ENOSYS.
941
c00d1128
UD
9422008-06-18 Ulrich Drepper <drepper@redhat.com>
943
944 * nscd/connections.c (main_loop_poll): Fix test for read error.
945 (main_loop_epoll): Likewise.
946
a0edbb48
UD
9472008-06-13 Ulrich Drepper <drepper@redhat.com>
948
d0a1ae94
UD
949 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
950 better place so it is not called when nscd is used.
951
a0edbb48
UD
952 * nscd/connections.c: Also recognize and handle changes to the
953 resolver configuration file.
954
46f70b3c
UD
9552008-06-12 Ulrich Drepper <drepper@redhat.com>
956
5bcc6c0f
UD
957 * time/strftime.c: Pass reference to tzset_called around to handle
958 recursive calls.
959
960 [BZ #6612]
961 * time/strftime.c (__strftime_internal): Call tzset() only
962 when printing timezone-dependent values.
963 Based on a patch by Petr Baudis <pasky@suse.cz>.
964
f854efd7
UD
965 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
966 unconditionally use second gaih_getanswer_slice result.
967
46f70b3c
UD
968 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
969 (getaddrinfo): RES must always be non-NULL.
970
9ea8bfec
UD
9712008-06-12 Jakub Jelinek <jakub@redhat.com>
972
973 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
974 cr[34] registers.
975 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
976 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
977 Likewise.
978 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
979 register.
980
5a337776
UD
9812008-06-12 Ulrich Drepper <drepper@redhat.com>
982
5228ba2f
UD
983 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
984 fields.
985 * nscd/connections.c (inotify_fd): New variable.
986 (nscd_init): Try to open an inotify descriptor.
987 If successful, watch files for databases using inotify instead of
988 having prune threads stat the files.
989 (nscd_run_prune): Recognize clear_cache flag being set and call
990 prune_cache appropriately.
991 (main_loop_poll): Add inotify descriptor to wait set and handle the
992 reported changes.
993 (main_loop_epoll): Likewise.
994 * nscd/cache.c (prune_cache): Don't stat files for databases if
995 inotify is used.
996 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
997 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
998
5a337776
UD
999 * nscd/grpcache.c (cache_addgr): Correctly compute size of
1000 fixed-size portion of the record.
1001 * nscd/servicescache.c (cache_addserv): Likewise.
1002 * nscd/pwdcache.c (cache_addpw): Likewise.
1003 * nscd/initgrcache.c (addinitgroupsX): Likewise.
1004
9ad58cc3
UD
10052008-06-11 Ulrich Drepper <drepper@redhat.com>
1006
1007 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
1008 out we don't use uninitialized memory.
1009
1010 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
1011 the client.
1012
c1283552
UD
10132008-06-10 Ulrich Drepper <drepper@redhat.com>
1014
1015 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
1016 ignore T_DNAME messages.
1017 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
1018
eef8a803
JJ
10192008-06-05 Jakub Jelinek <jakub@redhat.com>
1020
1021 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
1022 Avoid segfault if first GETC returns eof/'\0'/'\n'.
1023
ee78670e
JJ
10242008-06-03 Jakub Jelinek <jakub@redhat.com>
1025
1026 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
1027 instead of portstr to nscd_getserv_r. Patch by
1028 Roman Kagan <rkagan@mail.ru>.
1029
62605cbf
UD
10302008-05-26 Jim Meyering <meyering@redhat.com>
1031
10966640 1032 Remove more useless "if" tests before "free".
62605cbf
UD
1033 * include/inline-hashtab.h (htab_delete): Likewise.
1034 * libio/freopen.c (freopen): Likewise.
1035 * libio/freopen64.c (freopen64): Likewise.
1036 * locale/programs/ld-collate.c (collate_read): Likewise.
1037 * misc/fstab.c (libc_freeres_fn): Likewise.
1038 * posix/glob.c (globfree): Likewise.
1039
f63abf58
UD
10402008-05-24 Ulrich Drepper <drepper@redhat.com>
1041
1042 * string/Makefile (strop-tests): Add memmem.
1043 * string/test-memmem.c: New file.
1044 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
1045 (test_init): Size buf1 according to BUF1PAGES.
1046
ad8a5511
JJ
10472008-05-24 Jakub Jelinek <jakub@redhat.com>
1048
1049 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
1050 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
1051 (CFLAGS-scanf17.c): New.
1052 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
1053 * stdio-common/scanf15.c (main): Likewise.
f63abf58
UD
1054 * stdio-common/scanf16.c: New file.
1055 * stdio-common/scanf17.c: New file.
ad8a5511 1056
e2003883
UD
10572008-05-24 Ulrich Drepper <drepper@redhat.com>
1058
1059 * resolv/res_send.c (send_dg): If we already have one of two
b5ba2c79 1060 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
e2003883
UD
1061 use the one answer insted of failing.
1062
acbb9873
UD
10632008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
1064
1065 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
1066 being executed on PowerPC as the expected result exceeds IBM
1067 long double 128 __LDBL_MAX__.
1068
e85f1d6a
RM
10692008-05-21 Roland McGrath <roland@redhat.com>
1070
1071 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
1072
1073 * Makefile (check-data): Use $(abi-name) before other guesses.
1074 Look in $(add-ons) dirs before scripts/data/.
1075 * elf/Makefile (check-data): Likewise.
1076
1077 * scripts/soversions.awk: Grok ABI line.
1078 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
1079 Emit definition for abi-name variable.
1080
d8e763c6
UD
10812008-05-21 Ulrich Drepper <drepper@redhat.com>
1082
e92799fc 1083 * string/endian.h: Define new fixed-size hto* and *toh macros only
e85f1d6a 1084 if [__USE_BSD].
e92799fc 1085
d8e763c6
UD
1086 * iconvdata/Depend: Add localedata.
1087
009ef333
RM
10882008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
1089
1090 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
1091
86746abb
JJ
10922008-05-08 David S. Miller <davem@davemloft.net>
1093
1094 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
1095 HIDDEN_JUMPTARGET.
1096 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1097 (__SYSCALL_CLOBBERS): Remove %g* registers.
1098 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1099 (__SYSCALL_CLOBBERS): Likewise.
1100 * scripts/data/localplt-sparc-linux-gnu.data: New file.
f63abf58 1101 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
86746abb 1102
5e6f34c2
JJ
11032008-05-21 Jakub Jelinek <jakub@redhat.com>
1104
1105 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1106 (CALL_ERRNO_LOCATION): Define.
1107 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1108 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1109 (CALL_ERRNO_LOCATION): Define.
1110 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
1111 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
1112 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
1113
4beb4532
UD
11142008-05-20 Ulrich Drepper <drepper@redhat.com>
1115
1116 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
1117 variable.
1118
ed8f38ba
JJ
11192008-05-20 Jakub Jelinek <jakub@redhat.com>
1120
1121 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
1122 (FIRST_FRAME_POINTER): Define.
1123
11242008-05-09 David S. Miller <davem@davemloft.net>
1125
1126 * sysdeps/sparc/sparc64/backtrace.c: New file.
1127
c1b8190a
JJ
11282008-05-14 David S. Miller <davem@davemloft.net>
1129
1130 * sysdeps/sparc/machine-gmon.h: New file.
1131 * sysdeps/sparc/sparc-mcount.S: Likewise.
1132 * sysdeps/sparc/Makefile: Add sparc-mcount target to
1133 sysdep_routines in gmon directory.
1134
84aacd93
JJ
11352008-05-19 Jakub Jelinek <jakub@redhat.com>
1136
1137 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
1138
5908f779
UD
11392008-05-19 Ulrich Drepper <drepper@redhat.com>
1140
1141 * resolv/res_query.c (__libc_res_nquery): In case one of two
1142 answer was too short don't try to read that answer's header.
1143
1144 * resolv/res_send.c (send_dg): In case of timeout and there are
1145 two queries and one has been answered, return value indicating
1146 success.
1147
528741cb
UD
11482008-05-18 Ulrich Drepper <drepper@redhat.com>
1149
1150 * nscd/cache.c (cache_add): Take additional parameter specifying
1151 whether this is in response of a cache refill. Check alignment
1152 of package data. Revamp waking of pruning thread.
1153 (prune_cache): Small optimization.
1154 * nscd/nscd.h: Adjust cache_add prototypes.
1155 * nscd/aicache.c: Adjust cache_add calls.
1156 * nscd/grpcache.c: Likewise.
1157 * nscd/hstcache.c: Likewise.
1158 * nscd/initgrcache.c: Likewise.
1159 * nscd/pwdcache.c: Likewise.
1160 * nscd/servicescache.c: Likewise.
1161 * nscd/connections.c (restart): Really disable cache use before
1162 exec attempt. If it fails, reenable cache.
1163 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
1164 time to max to be able to notice concurrent cache additions. Unlock
1165 prune_lock while performing gc. Afterwards compute wakeup time with
1166 current wakeup_time value in mind.
1167
343996c4
UD
11682008-05-17 Ulrich Drepper <drepper@redhat.com>
1169
5811d72b
UD
1170 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
1171
fa526148
UD
1172 * nscd/mem.c (gc): Correctly determine highest used array element
1173 in mark.
1174
77d40f10
UD
1175 * nscd/mem.c (markrange): Add assert to check entries are all
1176 aligned. Small cleanup in bitmap use.
1177
8884028c
UD
1178 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
1179 blockoff of type nscd_ssize_t.
1180 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
1181 (mempoll_alloc): Record block offset and not address.
1182
b2159575
UD
1183 * nscd/mem.c (gc): Fix test for stack overuse.
1184
5c9629d2
UD
1185 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
1186 more asserts.
1187
66d90496
UD
1188 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
1189 entry is available, believe it.
1190
343996c4
UD
1191 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
1192 no answers return NSS_STATUS_NOTFOUND.
1193 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
1194 buffer does not have any content.
1195
91c8a74b
UD
11962008-05-16 Ulrich Drepper <drepper@redhat.com>
1197
74e13385
UD
1198 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
1199
91c8a74b
UD
1200 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
1201 lookup, don't assign canon unconditionally.
1202
0caca71a
UD
12032008-05-14 Ulrich Drepper <drepper@redhat.com>
1204
1205 * string/Makefile (distribute): Add str-two-way.h.
1206
12072008-03-29 Eric Blake <ebb9@byu.net>
1208
1209 Rewrite string searches to O(n) rather than O(n^2).
1210 * string/str-two-way.h: New file. For linear fixed-allocation
1211 string searching.
1212 * string/memmem.c: New implementation.
1213 * string/strstr.c: New implementation.
1214 * string/strcasestr.c: New implementation.
1215
b194db79
UD
12162008-04-11 Paolo Bonzini <bonzini@gnu.org>
1217
1218 * posix/regcomp.c (optimize_utf8): Add a note on why we test
1219 opr.ctx_type.
1220 (calc_first): Initialize constraint field.
1221 (duplicate_node_closure): Use it instead of special casing ANCHORS.
1222 Use search_duplicated_node to avoid loops. Fix grammar.
1223 (duplicate_node): Merge constraint field for all node types.
1224 (calc_eclosure_iter): Look at constraint field for all node types.
1225 * posix/regex_internal.c (create_cd_newstate): Don't look at
1226 create_cd_newstate.
1227
c8d49f05
UD
12282008-05-14 Ulrich Drepper <drepper@redhat.com>
1229
215a8745
UD
1230 [BZ #6428]
1231 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
1232
2f9a1be8
UD
1233 [BZ #6442]
1234 * string/endian.h: Add macros for fixed-size endian conversion.
1235 * bits/byteswap.h: Allow inclusion from <endian.h>.
1236 * sysdeps/i386/bits/byteswap.h: Likewise.
1237 * sysdeps/ia64/bits/byteswap.h: Likewise.
1238 * sysdeps/s390/bits/byteswap.h: Likewise.
1239 * sysdeps/x86_64/bits/byteswap.h: Likewise.
1240 * string/Makefile (tests): Add tst-endian.
1241 * string/tst-endian.c: New file.
1242
c8d49f05
UD
1243 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
1244 Patch by Reuben Thomas.
1245
a754f018
UD
12462008-05-14 Joseph Myers <joseph@codesourcery.com>
1247
1248 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
1249
372bfcac
UD
12502008-05-14 Ulrich Drepper <drepper@redhat.com>
1251
a754f018
UD
1252 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
1253
5deca9bb
UD
1254 [BZ #6461]
1255 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
1256 Add missing braces.
1257 (BODY for __gconv_transform_internal_ascii): Likewise.
1258
af77c9b7 1259 [BZ #6472]
5fab5544
UD
1260 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
1261 to be treated like link-local addresses.
5846c4e2
UD
1262 (match_prefix): Don't treat IPv4 loopback address special when
1263 converting to v4 mapped addressed.
5fab5544 1264
0caca71a 1265 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1f039824 1266 if necessary.
b194db79
UD
1267 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
1268 * posix/tst-rfc3484-2.c: Likewise.
1269 * posix/tst-rfc3484-3.c: Likewise.
1f039824 1270
18a74157
UD
1271 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
1272 and SCTP.
372bfcac
UD
1273
1274 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
1275
1276 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
1277
1278 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
1279
f05ac8f5
UD
12802008-05-13 Ulrich Drepper <drepper@redhat.com>
1281
1282 * po/lt.po: New file. From Lituanian translation team.
1283
c9ff0187
UD
12842008-01-30 Alexandre Oliva <aoliva@redhat.com>
1285
1286 Introduce TLS descriptors for i386 and x86_64.
1287 * include/inline-hashtab.h: New file, copied from 2005's
1288 libiberty, with fix for memory leak imported afterwards by
1289 Glauber de Oliveira Costa.
1290 * elf/tlsdeschtab.h: New file.
1291 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
1292 (_dl_allocate_static_tls): ... here. Rearrange failure path.
1293 (CHECK_STATIC_TLS): Move to...
1294 * elf/dynamic-link.h: ... this file.
1295 (TRY_STATIC_TLS): New macro.
1296 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
1297 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
1298 R_386_TLS_DESC): Define.
1299 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
1300 binutils.
1301 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
1302 R_X86_64_TLSDESC): Define.
1303 (R_386_NUM, R_X86_64_NUM): Adjust.
1304 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 1305 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
1306 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1307 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
1308 release tlsdesc_table.
1309 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
1310 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
1311 (elf_machine_rel): Handle R_386_TLS_DESC.
1312 (elf_machine_rela): Likewise.
1313 (elf_machine_lazy_rel): Likewise.
1314 (elf_machine_lazy_rela): Likewise.
1315 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
1316 * sysdeps/i386/dl-tlsdesc.S: New file.
1317 * sysdeps/i386/dl-tlsdesc.h: New file.
1318 * sysdeps/i386/tlsdesc.c: New file.
1319 * sysdeps/i386/tlsdesc.sym: New file.
1320 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
1321 tlsdesc_table.
1322 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
f05ac8f5 1323 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
c9ff0187
UD
1324 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1325 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
1326 release tlsdesc_table.
1327 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
1328 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
1329 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
1330 (elf_machine_rel): Handle R_X86_64_TLSDESC.
1331 (elf_machine_rela): Likewise.
1332 (elf_machine_lazy_rel): Likewise.
1333 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
1334 (__tls_get_addr): Do not declare for non-shared compiles.
1335 * sysdeps/x86_64/dl-tlsdesc.S: New file.
1336 * sysdeps/x86_64/dl-tlsdesc.h: New file.
1337 * sysdeps/x86_64/tlsdesc.c: New file.
1338 * sysdeps/x86_64/tlsdesc.sym: New file.
1339 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
1340 tlsdesc_table for both 32- and 64-bit structs.
1341
a3636e8b
UD
13422008-05-11 Ulrich Drepper <drepper@redhat.com>
1343
1344 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
1345 its own function. This reduces the frame setup costs and more.
1346
a7eb802f
UD
13472008-02-11 Joseph Myers <joseph@codesourcery.com>
1348
1349 [BZ #3406]
1350 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
1351 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
1352
3490f01d
UD
13532008-05-11 Ulrich Drepper <drepper@redhat.com>
1354
3d7eeebe
UD
1355 * io/openat.c (__openat_2): Also pass fd to __openat.
1356 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
1357 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
1358
3490f01d
UD
1359 * string/tester.c (test_memcmp): Add a few more tests.
1360 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
1361
7e71e55f
UD
13622008-05-10 Ulrich Drepper <drepper@redhat.com>
1363
1364 * nscd/cache.c (cache_add): Before returning with failure and this
1365 is the first use of the record, mark it as unusable.
1366 * nscd/aicache.c: Don't touch the dataset after cache_add returns
1367 reporting a failure.
1368 * nscd/grpcache.c: Likewise
1369 * nscd/hstcache.c: Likewise.
1370 * nscd/initgrcache.c: Likewise.
1371 * nscd/pwdcache.c: Likewise.
343996c4 1372 * nscd/servicescache.c: Likewise.
7e71e55f 1373
7396d0a9
RM
13742008-05-10 Roland McGrath <roland@redhat.com>
1375
1376 [BZ #6505]
1377 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
1378
c5ee217f
UD
13792008-05-08 David S. Miller <davem@davemloft.net>
1380
b29899ae
UD
1381 * misc/truncate64.c (truncate64): Use __truncate not truncate.
1382
c5ee217f
UD
1383 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
1384 (__ieee754_y0l): Likewise.
1385 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1386 (__ieee754_y1l): Likewise.
1387 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
1388 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
1389 frexpl and ldexpl. math_private.h provides them and the latter
1390 is not even used.
1391 (__log1pl): Use __frexpl.
1392
1eb946b9
UD
13932008-05-10 Ulrich Drepper <drepper@redhat.com>
1394
1395 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
1396 prototypes.
1397 * include/arpa/nameser_compat.h: Define T_UNSPEC.
1398 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
1399 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
1400 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
1401 af==AF_UNSPEC.
1402 (_nss_nis_gethostbyname4_r): New function.
1403 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
1404 Change to also handle af==AF_UNSPEC.
1405 (get_tablename): New function. Use it to avoid duplication.
1406 (_nss_nisplus_gethostbyname4_r): New function.
1407 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
1408 available.
1409 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
1410 * nss/nss.h: Define struct gaih_addrtuple.
1411 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
1412 af==AF_UNSPEC.
1413 (_nss_files_gethostbyname4_r): New function.
1414 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
1415 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
1416 calls.
1417 * resolv/res_query.c (__libc_res_nquery): Take two additional
1418 parameters for second answer buffer. Handle type=T_UNSPEC to mean
1419 look up IPv4 and IPv6.
1420 Change all callers.
1421 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
1422 for an additional query and answer buffer. Pass to send_vc and
1423 send_dg.
1424 (send_vc): Send possibly two requests and receive two answers.
1425 (send_dg): Likewise.
1426 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
1427 __libc_res_nquery.
1428 (_nss_dns_gethostbyname4_r): New function.
1429 (gaih_getanswer_slice): Likewise.
1430 (gaih_getanswer): Likewise.
1431 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
1432 __libc_res_nquery call.
1433 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
1434 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
1435 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
1436 available.
1437
b7fb703a
JJ
14382008-05-05 David S. Miller <davem@davemloft.net>
1439
1440 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
1441 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
1442
2256e43d
RM
14432007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
1444
1445 Fix termios bit macros.
1446 Move *DLY definitions where they belong, in termios.h.
1447 Add *[0-3] definitions.
1448 Fixes confusion between VT and FF.
8bb52dbf
RM
1449 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
1450 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
1451 are already defined to avoid collision with termios.h.
2256e43d
RM
1452 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
1453 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
1454 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
1455 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
1456 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
1457 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
1458 VTDLY, VT0, VT1): New macros.
1459 [__USE_GNU] (OLCUC): Change value of macro.
1460 [__USE_XOPEN] (OFILL): New macro.
1461 [__USE_BSD] (CRTSCTS): Change value.
1462 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
1463 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
1464 (B7200, B14400, B28800, B76800): New macros.
1465
4ce349e5
JJ
14662008-05-01 David S. Miller <davem@davemloft.net>
1467
a86a7a39
JJ
1468 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
1469 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
1470 (gen-as-const-headers): Add it.
1471 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
1472 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
1473 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
1474 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
2256e43d 1475
4ce349e5
JJ
1476 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
1477 six system call parameters.
1478 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
1479
89a8963d
UD
14802008-04-30 Ulrich Drepper <drepper@redhat.com>
1481
1482 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
1483 RUSAGE_LWP.
1484 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1485 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1486
b5ec5fce
JJ
14872008-04-30 Jakub Jelinek <jakub@redhat.com>
1488
1489 * stdlib/tst-setcontext.c: Include unistd.h.
1490
d4e92d9e
JJ
14912008-04-25 David S. Miller <davem@davemloft.net>
1492
1493 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
1494 Pass "union semun" properly in to sys_ipc, it must be passed
1495 by value, not by reference.
1496
7eb5e6c9
UD
14972008-04-22 Jakub Jelinek <jakub@redhat.com>
1498
1499 * nscd/Makefile (nscd-cflags): Set back to -fpie.
1500 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
1501 * nscd/connections.c (mem_in_flight): Likewise.
1502
1503 * nscd/nscd.h (dbs): Make hidden.
1504
1505 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
1506 Avoid returning -1, return 0 instead.
1507
0073dd2d
UD
15082008-04-19 Ulrich Drepper <drepper@redhat.com>
1509
1510 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
1511
c52137d3
UD
15122008-04-15 Ulrich Drepper <drepper@redhat.com>
1513
1514 [BZ #5209]
1515 * sysdeps/unix/sysv/linux/times.c: New file.
1516
1517 [BZ #5381]
1518 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
1519 mem_in_flight_list variables. Add new parameter to mempool_alloc
1520 prototype.
1521 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
1522 appropriate mem_in_flight element.
1523 (gc): Take allocations which have not yet been committed to the
1524 database into account.
1525 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
1526 Reset mem_in_flight before returning.
1527 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
1528 cue it up in mem_in_flight_list.
1529 * nscd/aicache.c: Adjust mempool_alloc call.
1530 * nscd/grpcache.c: Likewise.
1531 * nscd/hstcache.c: Likewise.
1532 * nscd/initgrcache.c: Likewise.
1533 * nscd/pwdcache.c: Likewise.
1534 * nscd/servicescache.c: Likewise.
1535 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
1536 of -fpie.
1537
1538 * nscd/connections.c (handle_request): Provide better error message
1539 in case SELinux forbids the service.
1540
1541 * version.h (VERSION): Bump to 2.8.90.
1542
39546e34
JJ
15432008-04-17 Jakub Jelinek <jakub@redhat.com>
1544
1545 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
1546
cf3a8c7f
UD
15472008-04-11 Ulrich Drepper <drepper@redhat.com>
1548
9e113ecd
UD
1549 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
1550 Also use for 32-bit.
3b6d574e
UD
1551 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
1552 __nextafter instead of nextafter to avoid local PLT.
c3a0ead4
UD
1553 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
1554 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1555
3781ec29
UD
1556 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
1557
246ec411
UD
1558 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
1559 __fe_nomask_env.
3cc56f92
UD
1560 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
1561 <fenv_libc.h> instead of <fenv.h>.
246ec411
UD
1562 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
1563 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
1564
1565 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
1566
1567 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
1568 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
1569 function from fegetexcept and make old name weak alias.
1570 * include/fenv.h: Declare __fegetexcept.
1571 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
1572 fegetexcept.
1573 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
1574 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
1575 to fetestexcept.
1576 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
1577 instead of frexpl to avoid local PLT.
1578 * math/s_significandl.c (__significandl): Use __ilogbl instead of
1579 ilogbl to avoid local PLT.
1580 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
1581 instead of ldexpl to avoid local PLT.
1582 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
1583 __roundl not roundl to avoid local PLT.
1584 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
1585 local PLTs. Use __sincosl instead of separate sinl and cosl
1586 calls.
1587 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1588
2dc4a2fd
UD
1589 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
1590 version for ppc64 to 2.4.21 since without it makecontext will fail.
1591
fe3350ee
UD
1592 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
1593 to the ABI in use.
1594 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
1595 .__tls_get_addr.
1596 [__powerpc64__] (TLS_GD): Likewise.
cf3a8c7f 1597
c1e6b459
UD
15982007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
1599
7763d4f1 1600 [BZ #4997]
c1e6b459
UD
1601 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
1602 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
1603 mantissa.
1604 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1605 Likewise. Also account for when x is an odd number between 2^52
1606 and 2^53-1.
1607 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
1608 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1609 * math/libm-test.inc (lround_test, llround_test): Added test cases to
1610 detect aforementioned erroneous conditions.
1611
22dca1ea
UD
16122008-04-11 Jakub Jelinek <jakub@redhat.com>
1613
1614 * configure.in: Check for -fno-section-anchors in addition to
1615 -fno-toplevel-reorder.
1616
5d59f4a5
UD
16172008-04-11 Ulrich Drepper <drepper@redhat.com>
1618
1619 * include/features.h (__GLIBC_MINOR__): Bump to 8.
1620
1621 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
1622 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
1623 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
1624 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
1625 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
1626 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
1627
91e32540
UD
16282008-04-11 Jakub Jelinek <jakub@redhat.com>
1629
1630 [BZ #5443]
1631 * time/era.c: Transform __libc_setlocale_lock into rwlock.
1632 * time/alt_digit.c: Likewise.
1633 * wcsmbs/wcsmbsload.c: Likewise.
1634
fd490ac8
UD
16352008-04-10 Ulrich Drepper <drepper@redhat.com>
1636
1db5b6f4
UD
1637 * version.h (VERSION): Bump to 2.8.
1638
fd490ac8
UD
1639 * timzeone/asia: Update from tzdata2008b.
1640 * timezone/backward: Likewise.
1641 * timezone/europe: Likewise.
1642 * timezone/northamerica: Likewise.
1643 * timezone/southamerica: Likewise.
1644 * timezone/iso3166.tab: Likewise.
1645 * timezone/leapseconds: Likewise.
1646 * timezone/zone.tab: Likewise.
1647 * timezone/private.h: Update from tzcode2008a.
1648 * timezone/zdump.c: Likewise.
1649 * timezone/zic.c: Likewise.
1650
153cf972
UD
16512008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
1652
1653 [BZ #5741]
1654 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
1655 Define additonal Data Cache Block instruction macros.
1656 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
1657 Replace dcbst with dcbf and sync with sync/isync.
1658
d2207f32
UD
16592008-02-21 Alan Modra <amodra@bigpond.net.au>
1660
1661 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
1662 Always set ELF_RTYPE_CLASS_PLT.
1663 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
1664
13d83320
UD
16652008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
1666
1667 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
1668 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
1669 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
1670 For ISA 2.01 and later replace mftb with mfspr 268.
1671
5f7aead5
UD
16722008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
1673
1674 [BZ #5768]
1675 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
1676 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
1677
16782008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
1679
1680 [BZ #5768]
1681 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
1682 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
1683 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
1684 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
1685
117df5d9
JJ
16862008-04-10 Jakub Jelinek <jakub@redhat.com>
1687
1688 * stdlib/tst-makecontext.c (othervar): New variable.
1689 (cf): Test sign extending the argument to long.
1690
3b32d8a2
UD
16912008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
1692
1693 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
1694 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
1695 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
1696 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
1697 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
1698 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
1699 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
1700
9fb11d4c
UD
17012008-02-22 Alan Modra <amodra@bigpond.net.au>
1702
1703 * elf/Makefile (tests): Substitute tests-vis-yes here.
1704 (tests-vis-yes): Delete.
1705 (modules-name, modules-vis-yes): Similarly.
1706
facd1d8e
UD
17072008-02-12 Pete Eberlein <eberlein@us.ibm.com>
1708
1709 [BZ #4407]
1710 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
1711 Preserve sign in signgamp when x is zero.
1712
aece054b
UD
17132007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
1714
1715 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
1716 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
1717 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
1718 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
1719 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
1720 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
1721
6c30d38f
UD
17222008-04-09 Ulrich Drepper <drepper@redhat.com>
1723
21208604 1724 [BZ #4314]
13d83320
UD
1725 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
1726 buffers.
21208604 1727
2f611ada 1728 [BZ #5209]
d1235fdf
UD
1729 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
1730 a reserved error value.
2f611ada 1731
6c30d38f
UD
1732 * stdlib/tst-makecontext.c: Change parameter to cf to negative
1733 value to check for correct sign extension.
1734
1735 [BZ #5436]
1736 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
1737 Copy 64-bit parameter values even though this is not required in
1738 the standard.
1739
1740 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
1741 PC save.
1742
de1bbf68
UD
17432008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
1744
1745 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
1746 PC save.
1747
9aef35a5
UD
17482008-04-09 Jakub Jelinek <jakub@redhat.com>
1749
1750 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
1751
a7925a24
UD
17522008-04-09 Ulrich Drepper <drepper@redhat.com>
1753
1754 [BZ #5998]
1755 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
1756 in line-buffered stream failed.
1757 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
1758
7b61ef24
UD
17592008-04-08 Ulrich Drepper <drepper@redhat.com>
1760
c2a684a4
UD
1761 [BZ #6024]
1762 * scripts/abi-versions.awk: If the version specified by
1763 --enable-oldest-abi is older than the first version for this
1764 architecture, use the default version.
1765
7b61ef24
UD
1766 * locale/programs/ld-collate.c (collate_read): Ignore script lines
1767 as well when ignoring the whole category.
1768
f6d749f0
UD
17692008-04-07 Ulrich Drepper <drepper@redhat.com>
1770
1771 [BZ #6042]
1772 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
1773 ETHERTYPE_* definitions.
1774 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
1775
1e99aede
JJ
17762008-04-07 Jakub Jelinek <jakub@redhat.com>
1777
1778 * stdlib/mbtowc.c (__no_r_state): Remove.
1779 (mbtowc): New static state variable. Use it instead of
1780 __no_r_state.
1781 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
1782 (__wctomb_state): New hidden variable.
1783 (wctomb): Use __wctomb_state instead of __no_r_state.
1784 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
1785 (__wctomb_state): New extern decl.
1786 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
1787
fcf90e0a
UD
17882008-04-07 Ulrich Drepper <drepper@redhat.com>
1789
1790 [BZ #5475]
1791 * resolv/res_init.c: Handle scope IDs in resolv.conf.
1792
ae39e102
JJ
17932008-04-07 Jakub Jelinek <jakub@redhat.com>
1794
1795 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
1796
2503dd30
UD
17972008-04-06 Ulrich Drepper <drepper@redhat.com>
1798
1799 * po/nl.po: Update from translation team.
1800
3eb9c809
UD
18012008-03-31 Ulrich Drepper <drepper@redhat.com>
1802
1803 [BZ #6007]
1804 * string/strfry.c: Handle empty strings again.
1805
9a69db29
UD
18062008-03-30 Ulrich Drepper <drepper@redhat.com>
1807
1808 [BZ #5443]
1809 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
1810 before looking for translation.
1811 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
1812 * locale/freelocale.c: Likewise.
1813 * locale/newlocale.c: Likewise.
1814 * locale/setlocale.c: Likewise.
1815 Based partially on a patch by ryo@np.css.fujitsu.com.
1816
2ecc7d93
UD
18172008-03-30 Jakub Jelinek <jakub@redhat.com>
1818
1819 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
1820 acquiring wrlock. Do conv_tab allocation while holding lock.
1821 * intl/Makefile: Add rules to build and run tst-gettext6.
1822 * intl/tst-gettext6.c: New test.
1823 * intl/tst-gettext6.sh: New file.
1824
221e5230
UD
18252008-03-30 Ulrich Drepper <drepper@redhat.com>
1826
faa091c6
UD
1827 * po/nl.po: Update from translation team.
1828
221e5230
UD
1829 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
1830 provided through st_blksize, try the default size before giving up.
1831
1c272665
UD
18322008-03-29 Ulrich Drepper <drepper@redhat.com>
1833
43f6bec1
UD
1834 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
1835
e8a32126
UD
1836 [BZ #5939]
1837 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
1838
1e489af9
UD
1839 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
1840 error message. POSIX today does not require the messages to be in
1841 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
1842
1d20f7f8
UD
1843 [BZ #5979]
1844 * sunrpc/auth_unix.c: Unify printed strings.
1845 * sunrpc/clnt_tcp.c: Likewise.
1846 * sunrpc/clnt_udp.c: Likewise.
1847 * sunrpc/clnt_unix.c: Likewise.
1848 * sunrpc/svc_tcp.c: Likewise.
1849 * sunrpc/svc_udp.c: Likewise.
1850 * sunrpc/svc_unix.c: Likewise.
1851 * sunrpc/xdr.c: Likewise.
1852 * sunrpc/xdr_array.c: Likewise.
1853 * sunrpc/xdr_rec.c: Likewise.
1854 * sunrpc/xdr_ref.c: Likewise.
1855 * locale/programs/ld-time.c (time_finish): Unify messages.
1856 * locale/programs/locfile.c (handle_copy): Fix typo.
1857 * nscd/nscd.c (options): Fix typo.
1858
1c272665
UD
1859 [BZ #5995]
1860 * stdlib/strtod_l.c: Use correct sign for result in one more
1861 underflow case.
1862 Patch by Eric Blake <ebb9@byu.net>.
1863
48cc060e
UD
18642008-03-27 Jakub Jelinek <jakub@redhat.com>
1865
1866 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
1867 and creat system calls.
1868 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
1869 call.
1870 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
1871 system calls.
1872 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
1873 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1874 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1875
f96853be
UD
18762008-03-27 Ulrich Drepper <drepper@redhat.com>
1877
1878 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
1879 <linux/limits.h> has defined it.
1880 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
1881 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
1882 headers.
1883 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
1884 it instead of ARG_MAX.
1885
fde15fdc
UD
18862008-03-25 Jakub Jelinek <jakub@redhat.com>
1887
1888 * posix/gai.conf: Fix comment for scope nullbits.
1889 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
1890 default to 128 bits for v4 mapped addresses.
1891
87b9b50f
UD
18922008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
1893
1894 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
1895 ptrace call to get the ieee_instruction_pointer from the kernel.
1896 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
1897 ptrace call to set the ieee_instructtion_pointer.
1898 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
1899 Add comment that ieee_instruction_pointer is always 0.
1900
af0498dc
UD
19012008-03-09 Andreas Jaeger <aj@suse.de>
1902
1903 [BZ #5857]
1904 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
1905 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
1906 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
1907
1908 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
1909 (rint_test): Likewise.
1910
0ab7632d
UD
19112008-03-24 Ulrich Drepper <drepper@redhat.com>
1912
0facd3df
UD
1913 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
1914 call.
1915 (__nisfind_server): Similar for open readColdStartFile call.
1916 Patch partially by Jim Meyering.
1917 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
1918 around internal_setent call.
1919
7e570c55
UD
1920 * po/vi.po: New Vietnamese translation.
1921
e093c247
UD
1922 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
1923 ADJ_OFFSET_SS_READ.
1924
0ab7632d
UD
1925 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
1926 remove CLONE_STOPPED.
1927
0726cdf7
UD
19282008-02-10 Jim Meyering <meyering@redhat.com>
1929
1930 Remove useless "if" before "free":
1931 * elf/ldconfig.c (parse_conf_include): Likewise.
1932 * gmon/gmon.c (weak_alias): Likewise.
1933 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
1934 * inet/rcmd.c (__validuser2_sa): Likewise.
1935 * intl/bindtextdom.c (set_binding_values): Likewise.
1936 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
1937 * libio/genops.c (save_for_backup): Likewise.
1938 * libio/wgenops.c (save_for_wbackup): Likewise.
1939 * locale/programs/ld-collate.c (collate_read): Likewise.
1940 * locale/programs/linereader.c (get_string): Likewise.
1941 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
1942 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
1943 * resolv/res_debug.c (do_section): Likewise.
1944 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
1945 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
1946 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
1947 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
1948 * time/tzset.c (tzset_internal): Likewise.
1949
354b7527
JJ
19502008-03-18 Jakub Jelinek <jakub@redhat.com>
1951
1952 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
1953 of ASSEMBLER.
1954
ca668b29
UD
19552008-03-11 Ulrich Drepper <drepper@redhat.com>
1956
1957 [BZ #5903]
1958 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
1959 not stream for output file. Open output file here.
1960 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
1961 and output file name.
1962 (process_fd): Likewise.
1963 (process_file): Likewise.
1964 (main): Adjust callers of changed functions.
1965 * iconv/iconv_prog.h: Adjust prototype.
1966
f3dc3415
AJ
19672008-03-09 Andreas Jaeger <aj@suse.de>
1968
1969 [BZ #5753]
1970 * sysdeps/ia64/ieee754.h: Use protected namespace
1971 __BIG_ENDIAN/__LITTLE_ENDIAN.
1972 * sysdeps/ieee754/ieee754.h: Likewise.
1973 Patch by Aurelien Jarno <aurelien@aurel32.net>.
1974
a8fd84d4
RM
19752008-03-08 Roland McGrath <roland@frob.com>
1976
2b965f1b
RM
1977 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
1978 ignore a signal that came from a machine exception, treat it as a
1979 fatal core-dump signal instead.
1980 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
1981
a8fd84d4
RM
1982 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
1983 Clear DF bit in thread state's eflags.
1984 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
1985
368a8dec
UD
19862008-03-08 Ulrich Drepper <drepper@redhat.com>
1987
b3278554
UD
1988 [BZ #5774]
1989 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
c6c00e0d 1990 of NAN(...) sequence.
b3278554
UD
1991 * stdlib/Makefile (tests): Add tst-strtod6.
1992 * stdlib/tst-strtod6.c: New file.
1993
1994 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
1995
2127a186
UD
1996 [BZ #5762]
1997 * posix/getopt.c (_getopt_internal_r): Clarify error message by
1998 putting offending option character in quotes. Clean up error
1999 messages.
2000 * po/be.po: Adjust msgstr in translation file.
2001 * po/bg.po: Likewise.
2002 * po/ca.po: Likewise.
2003 * po/cs.po: Likewise.
2004 * po/da.po: Likewise.
2005 * po/de.po: Likewise.
2006 * po/es.po: Likewise.
2007 * po/fr.po: Likewise.
2008 * po/hr.po: Likewise.
2009 * po/ko.po: Likewise.
2010 * po/nl.po: Likewise.
2011 * po/rw.po: Likewise.
2012 * po/sk.po: Likewise.
2013 * po/sv.po: Likewise.
2014 * po/tr.po: Likewise.
2015 * po/zh_CN.po: Likewise.
2016 * po/zh_TW.po: Likewise.
2017
725c0c87
UD
2018 [BZ #5760]
2019 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
2020 Patch by Roland Bless <roland@bless.de>.
2021
368a8dec
UD
2022 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
2023 .o file.
2024 * elf/Makefile (routines): Add dl-sysdep.
2025 (elide-routines.os): Likewise.
2026
78c2bf0e
UD
20272008-03-07 Ulrich Drepper <drepper@redhat.com>
2028
7c22c7ec
UD
2029 [BZ #5786]
2030 * elf/dl-sysdep.c: Undefine ROUND after use.
2031 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
2032 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
2033 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
2034 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
2035 to ...
2036 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
2037 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
2038 if necessary.
2039 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
2040
93025f93
UD
2041 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
2042 _dl_tls_get_addr_soft element.
2043 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
2044 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
2045 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
2046 GLRO.
2047 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2048 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
2049 of internal_function.
2050
72f10127
UD
2051 * stdlib/Makefile (aux): Add tens_in_limb.
2052 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
2053 * stdlib/tens_in_limb.c: ...here. New file.
2054
443db178
UD
2055 [BZ #5778]
2056 * sysdeps/unix/sysv/linux/pathconf.h: Declare
2057 __statfs_chown_restricted.
2058 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
2059 for _PC_CHOWN_RESTRICTED.
2060 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
2061 Implement __statfs_chown_restricted.
2062 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
2063 _POSIX_CHOWN_RESTRICTED value to zero.
c71665ad
UD
2064 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
2065 defined to zero.
443db178 2066
78c2bf0e
UD
2067 * sysdeps/x86_64/rtld-memset.c: New file.
2068
443db178 20692008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
78c2bf0e
UD
2070
2071 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
2072
2073 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
2074 Barcelona machine. Make default fall through branch of
2075 __x86_64_preferred_memory_instruction check as the integer code path.
2076
20772007-10-15 H.J. Lu <hongjiu.lu@intel.com>
2078
2079 * sysdeps/x86_64/cacheinfo.c
2080 (__x86_64_preferred_memory_instruction): New variable.
2081 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
2082
2083 * sysdeps/x86_64/memset.S: Rewrite.
2084
dff37515
UD
20852008-03-04 Jakub Jelinek <jakub@redhat.com>
2086
2087 * include/stdio.h (__asprintf_chk, __dprintf_chk,
2088 __obstack_printf_chk): New prototypes.
2089 (__vasprintf_chk, __vdprintf_chk,
2090 __obstack_vprintf_chk): Likewise.
2091 Add libc_hidden_proto.
2092 * libio/obprintf.c
2093 (_IO_obstack_jumps): No longer static, add attribute_hidden.
2094 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
2095 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2096 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
2097 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
2098 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
2099 __obstack_vprintf_chk): New prototypes.
2100 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
2101 obstack_vprintf): New inlines.
2102 * debug/dprintf_chk.c: New file.
2103 * debug/vdprintf_chk.c: New file.
2104 * debug/asprintf_chk.c: New file.
2105 * debug/vasprintf_chk.c: New file.
2106 * debug/obprintf_chk.c: New file.
2107 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
2108 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
2109 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
2110 @@GLIBC_2.8.
2111 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
2112 vdprintf_chk and obprintf_chk, set CFLAGS for them.
2113 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
2114 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
2115 libc_hidden_proto.
2116 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
2117 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
2118 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
2119 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
2120 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
2121 @@GLIBC_2.8.
2122 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
2123 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
2124 obstack_vprintf_chk.
2125 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
2126 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
2127 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
2128 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
2129 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
2130 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
2131
d835f136
UD
21322008-03-04 Ulrich Drepper <drepper@redhat.com>
2133
a4bb445a
UD
2134 [BZ #5779]
2135 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
2136 Patch by Roy Marples <roy@marples.name>.
2137
c958a6a4
UD
2138 [BZ #5736]
2139 * malloc/malloc.c: Fix typo in comment.
2140
d835f136
UD
2141 [BZ #5627]
2142 * locale/iso-639.def: Add Shuswap.
2143
65b4743a
UD
21442008-02-25 Jakub Jelinek <jakub@redhat.com>
2145
2146 [BZ #5790]
2147 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
2148 overwrite *h_errnop/*errnop values from getanswer_r in case of
2149 failure.
2150
3868fb6e
UD
21512008-03-03 Ulrich Drepper <drepper@redhat.com>
2152
27c377dd
UD
2153 [BZ #5818]
2154 * nscd/connections.c (dbs): Add initializers for .suggested_module.
2155 (verify_persistent_db): Remove one unnecessary test and add a new one
2156 for bad configuration.
2157 (nscd_init): Improve error reported when persistent database cannot
2158 be reused.
2159 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
2160 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
2161 .suggested_module and .max_db_size and case config file says the
2162 values are zero.
2163 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
2164
0f749099
UD
2165 [BZ #5854]
2166 * nis/ypclnt.c (yp_order): Fix handling of return value of
2167 do_ypcall_tr call.
2168 Patch by Jeff Moyer <jmoyer@redhat.com>.
2169
3868fb6e
UD
2170 * po/fr.po: Update from translation team.
2171
268dbf25
AJ
21722008-02-22 Andreas Jaeger <aj@suse.de>,
2173 Carlos O'Donell <carlos@systemhalted.org>
2174
2175 [BZ #5012]
2176 * FAQ.in: Describe why glibc needs to be compiled with
2177 optimization.
2178
73b82641
RM
21792008-02-19 Roland McGrath <roland@redhat.com>
2180
2181 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
2182
c9136393
UD
21832008-02-15 Ulrich Drepper <drepper@redhat.com>
2184
2185 [BZ #5737]
2186 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
2187 __USE_MISC is defined.
2188
2e3e9ff1
UD
21892008-02-10 Ulrich Drepper <drepper@redhat.com>
2190
2191 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
2192 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
2193 sys/timerfd.h.
2194 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
2195 timerfd_gettime, timerfd_settime.
2196 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
2197 timerfd_gettime, timerfd_settime for GLIBC_2.8.
2198
85202a2b
RM
21992008-02-08 Roland McGrath <roland@redhat.com>
2200
2201 * elf/elf.h (NT_PPC_SPE): New macro.
2202
708ef8a4
RM
22032008-02-06 Roland McGrath <roland@redhat.com>
2204
2205 * Makerules ($(common-objpfx)sysd-rules):
2206 Depend on $(sysdep-makeconfigs).
2207
363a641b
RM
22082008-01-31 Roland McGrath <roland@redhat.com>
2209
67fbfa5c
RM
2210 [BZ #5442]
2211 * configure.in: Use -print-file-name if it yields a directory,
2212 for each of include and include-fixed.
2213 * configure: Regenerated.
2214
363a641b
RM
2215 * Makeconfig (sysd-rules-targets): New variable.
2216 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
2217 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
2218
0f0f9610
RM
22192008-01-30 Roland McGrath <roland@redhat.com>
2220
7bd00dbf
RM
2221 * manual/libc.texinfo: Update back-cover text.
2222
0f0f9610
RM
2223 * elf/elf.h (NT_386_TLS): New macro.
2224
16cd816f
RM
22252008-01-29 Roland McGrath <roland@redhat.com>
2226
2227 * Makeconfig (sysd-rules-patterns): New variable.
2228 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
2229 (check-inhibit-asm): New canned sequence, replaces ...
2230 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
2231 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
2232 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
2233 (CFLAGS-rtld): Variable removed.
2234
f641ffcc
RM
22352008-01-24 Roland McGrath <roland@redhat.com>
2236
2237 * configure.in: Let configure fragments set base_os.
2238 * configure: Regenerated.
2239
b7e26885
UD
22402008-01-22 Ulrich Drepper <drepper@redhat.com>
2241
2242 * po/ko.po: Update from translation team.
2243
b4b166af
UD
22442008-01-12 H.J. Lu <hongjiu.lu@intel.com>
2245
2246 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
2247
f66def9d
AJ
22482008-01-12 Andreas Jaeger <aj@suse.de>
2249
2250 [BZ #5040]
2251 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
2252 Add EPOLLRDHUP.
2253
d3bc5e77
RM
22542008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
2255
2256 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
2257 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
2258 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
2259
4c533566
UD
22602007-10-23 Alexandre Oliva <aoliva@redhat.com>
2261
2262 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
2263 * elf/dl-close.c (_dl_close): Check for it.
2264 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
2265 (_dl_allocate_static_tls): Likewise.
2266 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
2267 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
2268 to it.
2269 * elf/tst-tls16.c: New file.
2270 * elf/tst-tlsmod16a.c: New file.
2271 * elf/tst-tlsmod16b.c: New file.
2272 * elf/Makefile: Add rules to build and run tst-tls16.
2273
a53d3f82
UD
22742008-01-16 Ulrich Drepper <drepper@redhat.com>
2275
a0f6c236
UD
2276 [BZ #5628]
2277 * bits/shm.h: Fix comment describing shmid_ds.
2278 * sysdeps/gnu/bits/shm.h: Likewise.
2279 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2280 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2281 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
2282 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2283 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2284 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
2285 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2286 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2287 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
2288
a53d3f82
UD
2289 [BZ #5607]
2290 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
2291 prototypes.
2292 * conform/data/limits.h-data: Adjust limits changed in v6 and add
2293 additional suffixes.
2294 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
2295 Add optional functions mq_timedreceive and mq_timedsend.
2296 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
2297 * conform/data/pthread.h-data: Fix prototype of
2298 pthread_condattr_setclock. pthread_sigmask is not required in v6.
2299 * conform/data/semaphore.h-data: Allow time.h definitions.
2300 * conform/data/signal.h-data: Likewise.
2301 * conform/data/stdio.h-data: getw and putw are not required in v6.
2302 * conform/data/stdlib.h-data: Change setstate prototype.
2303 * conform/data/string.h-data: Fix strerror_r prototype.
2304 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
2305 * conform/data/unistd.h-data: pthread_atfork not required in v6.
2306 Fix readlink prototype.
2307 * conform/data/netinet/in.h-data: Add const to in6addr_any and
2308 in6addr_loopback.
2309 * inet/netinet/in.h: Cleanup namespace.
2310 * posix/regex.h: Likewise.
2311 * resolv/netdb.h: Likewise.
2312 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
2313 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2314 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
6107639e
UD
2315 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
2316 of names of in in6_addr.
2317 (default_precedence): Likewise.
2318 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
2319 NULL definition.
a53d3f82 2320
ebca8f73
UD
23212008-01-15 Ulrich Drepper <drepper@redhat.com>
2322
fbe90cd5
UD
2323 * conform/data/fmtmsg.h-data: Add missing allows.
2324 * conform/data/ftw.h-data: Likewise.
2325 * conform/data/inttypes.h-data: Likewise.
2326 * conform/data/math.h-data: Likewise.
2327 * conform/data/signal.h-data: Likewise.
2328 * conform/data/net/if.h-data: Likewise.
2329 * conform/data/netinet/in.h-data: Likewise.
2330 * conform/data/sys/socket.h-data: Likewise.
2331
ebca8f73
UD
2332 [BZ #5614]
2333 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
2334 (__strtok_r): Simplify.
2335 * string/tester.c (test_strtok_r): Add test case for futile search
2336 with single-character seach string.
2337
7c33ca8b
UD
23382008-01-12 Ulrich Drepper <drepper@redhat.com>
2339
2340 * po/ko.po: Update from translation team.
2341
b8cc0848
AJ
23422008-01-11 Andreas Jaeger <aj@suse.de>
2343
2344 [BZ #5600]
2345 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
2346 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
2347 kernel header.
2348
49029a66
UD
23492008-01-10 Ulrich Drepper <drepper@redhat.com>
2350
2351 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
2352 native interface lookup in all the relevant places.
2353
99f05798
UD
23542008-01-10 Jakub Jelinek <jakub@redhat.com>
2355 Ulrich Drepper <drepper@redhat.com>
0efd1956
UD
2356
2357 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
2358 field. Use sockaddr_in6 for source_addr.
2359 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
2360 (match_prefix): Likewise.
2361 (get_label): Likewise.
2362 (get_precedence): Likewise.
2363 (rfc3484_sort): Change to use indirect access to results array.
2364 Adjust to use of sockaddr_in6. Replace service_order test with
2365 simple index comparison.
2366 (getaddrinfo): Define order array. Initialize it. Don't initialize
2367 service_order field. Adjust qsort_t calls. Access sorted result
2368 array indirectly through order array.
2369 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
2370 * posix/tst-rfc3484-2.c: Likewise.
2371 * posix/tst-rfc3484-3.c: Likewise.
2372
b3443701
UD
23732008-01-09 Ulrich Drepper <drepper@redhat.com>
2374
f6bacb8e
UD
2375 [BZ #5541]
2376 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
2377 pollfd structures.
2378 Patch by André Cruz.
2379
aa693c68
UD
2380 [BZ #5545]
2381 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
2382 (clnt_spcreateerror): Likewise.
2383
b3443701
UD
2384 [BZ #5553]
2385 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
2386 (public_mEMALIGn): Likewise.
2387 Patch mostly by Daniel Jacobowitz.
2388
148e12ed
UD
23892008-01-09 Jakub Jelinek <jakub@redhat.com>
2390
2391 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
2392 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
2393 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
2394 * stdlib/tst-makecontext2.c: New test.
2395
78c2bf0e 23962008-01-08 Jakub Jelinek <jakub@redhat.com>
4b1b449d
UD
2397
2398 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
2399 defined.
2400 (REINIT_PARAMS): Likewise. Undefine before end of file.
2401 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
2402 transliteration hooks and REINIT_PARAMS afterwards.
2403 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
2404 status.
2405 (REINIT_PARAMS): Define.
2406 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
2407 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
2408 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
2409 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
2410 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
2411 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
2412 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
2413 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
2414 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
2415 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
2416 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
2417 * iconvdata/tst-iconv7.c: New test.
2418
71edcafa
UD
24192008-01-07 Ulrich Drepper <drepper@redhat.com>
2420
2421 * libio/stdio.h (vscanf): Fix definition for loser compilers.
2422
0fbfe2f7
JJ
24232008-01-05 Jakub Jelinek <jakub@redhat.com>
2424
2425 [BZ #5112]
2426 * nscd/connections.c (restart): Fix condition.
2427
8726a12e
UD
24282008-01-03 Jakub Jelinek <jakub@redhat.com>
2429
2430 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
2431 __ctype_toupper_loc): Add __THROW.
2432
f4a1363e
UD
24332008-01-02 Ulrich Drepper <drepper@redhat.com>
2434
ad586879
UD
2435 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
2436 recognition of interface family.
2437
f4a1363e
UD
2438 * posix/getconf.c: Update copyright year.
2439 * nss/getent.c: Likewise.
2440 * iconv/iconvconfig.c: Likewise.
2441 * iconv/iconv_prog.c: Likewise.
2442 * elf/ldconfig.c: Likewise.
2443 * catgets/gencat.c: Likewise.
2444 * csu/version.c: Likewise.
2445 * elf/ldd.bash.in: Likewise.
2446 * elf/sprof.c (print_version): Likewise.
2447 * locale/programs/locale.c: Likewise.
2448 * locale/programs/localedef.c: Likewise.
2449 * nscd/nscd.c (print_version): Likewise.
2450 * debug/xtrace.sh: Likewise.
2451 * malloc/memusage.sh: Likewise.
2452 * malloc/mtrace.pl: Likewise.
2453 * debug/catchsegv.sh: Likewise.
2454
0dc6c5e4
UD
24552007-12-26 Ulrich Drepper <drepper@redhat.com>
2456
2457 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
2458 second lookup.
2459
80af8b82
UD
24602007-12-23 Ulrich Drepper <drepper@redhat.com>
2461
2462 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
2463 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2464
4bcecfb7
RM
24652007-12-17 Roland McGrath <roland@redhat.com>
2466
2467 * inet/ether_line.c (ether_line): Remove unused variable.
2468
24692007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
2470
2471 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
2472 and winp.
2473 * login/openpty.c (openpty): Likewise.
2474 * login/pty.h (openpty, forkpty): Likewise.
2475 * manual/terminal.texi (openpty, forkpty): Likewise.
2476
4cd4c5d6
UD
24772007-12-17 Ulrich Drepper <drepper@redhat.com>
2478
78c2bf0e 2479 * malloc/malloc.c (public_cALLOc): For arenas other than
4cd4c5d6
UD
2480 main_arena, count all bytes inside the mprotect_size range of the
2481 heap as uninitialized.
2482
68631c8e
UD
24832007-12-16 Ulrich Drepper <drepper@redhat.com>
2484
d9961b6a
UD
2485 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
2486 executable stacks.
2487
68631c8e
UD
2488 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
2489 mTRIm for all of them.
2490 (mTRIm): Additionally iterate over all free blocks and use madvise
2491 to free memory for all those blocks which contain at least one
2492 memory page.
be8c1500
UD
2493 * malloc/tst-trim1.c: New file.
2494 * malloc/Makefile (tests): Add tst-trim1.
68631c8e
UD
2495
2496 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
2497
78b767a0
UD
24982007-12-14 Ulrich Drepper <drepper@redhat.com>
2499
2500 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
2501 First cast argument to long
52386be7
UD
2502 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
2503 Return long.
2504 (__vdso_clock_gettime): Likewise.
78b767a0
UD
2505 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
2506 return long.
2507
bc3e1c12
UD
25082007-12-13 Ulrich Drepper <drepper@redhat.com>
2509
2510 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
2511 * locale/nl_langinfo_l.c: Real implementation, copied from
2512 nl_langinfo.c.
2513 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
2514
77751669
UD
25152007-12-01 Jim Meyering <meyering@redhat.com>
2516
2517 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
2518 that would inhibit utf8-optimization of a regexp containing line-
2519 or buffer-anchors, e.g., `^', `$'.
2520
f63e5063
UD
25212007-12-12 Ulrich Drepper <drepper@redhat.com>
2522
2523 * time/bug-getdate1.c (do_test): Don't use century values which
2524 aren't valid on 32-bit systems.
2525
a78814a9
UD
25262007-12-12 Jakub Jelinek <jakub@redhat.com>
2527
2528 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
2529 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
2530 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
2531 __strcat_g, __strncat_g): Add __asm__.
2532
25332007-12-12 Ulrich Drepper <drepper@redhat.com>
2534
2535 [BZ #5477]
2536 * io/fchmodat.c: Fix typo in stub_warning use.
2537 Patch by Petr Salinger.
2538
17edb30c
UD
25392007-12-11 Ulrich Drepper <drepper@redhat.com>
2540
58d11795
UD
2541 * iconvdata/hp-thai8.c: New file.
2542 * iconvdata/Makefile: Add rules for hp-thai8.c.
2543 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
2544 * iconvdata/gconv-modules: Likewise.
2545
2546 [BZ #5464]
2547 * iconvdata/hp-greek8.c: New file.
2548 * iconvdata/Makefile: Add rules for hp-greek8.c.
2549 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
2550 * iconvdata/gconv-modules: Likewise.
2551
2552 [BZ #5463]
2553 * iconvdata/hp-turkish8.c: New file.
2554 * iconvdata/Makefile: Add rules for hp-turkish8.c.
2555 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
2556 * iconvdata/gconv-modules: Likewise.
2557
cbf5760e
UD
2558 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
2559 (shrink_heap): ... this new function.
2560 (heap_trim): Call shrink_heap instead of grow_heap.
2561
17edb30c
UD
2562 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
2563 case don't call alloc_perturb.
2564
ae18718f
UD
25652007-12-10 Ulrich Drepper <drepper@redhat.com>
2566
2567 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
2568 possible.
2569 * sysdeps/unix/sysv/linux/kernel-features.h
2570 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
2571 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
2572
b4354cf4
UD
25732007-12-08 Ulrich Drepper <drepper@redhat.com>
2574
2575 [BZ #5424]
2576 * stdio-common/vfprintf.c: Do not overflow when adding to done.
2577 * stdio-common/Makefile (tests): Add bug22.
2578 * stdio-common/bug22.c: New file.
2579
2580 [BZ #5451]
2581 * time/getdate.c: Fix filling in default values.
2582 * time/bug-getdate1.c: New file.
2583 * time/Makefile: Add rules to build and run bug-getdate1.
2584
2585 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
2586 * iconvdata/ebcdic-es.c: Likewise.
2587 * iconvdata/ebcdic-es-a.c: Likewise.
2588 * iconvdata/ebcdic-uk.c: Likewise.
2589 * iconvdata/iso8859-16.c: Likewise.
2590 * iconvdata/viscii.c: Likewise.
2591 * iconvdata/iso8859-9e.c: Likewise.
2592 * iconvdata/Makefile: Adjust appropriately.
2593
2594 [BZ #5428]
2595 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
2596 __need_wint_t.
2597
26e21e75
UD
25982007-12-07 Ulrich Drepper <drepper@redhat.com>
2599
87520ccc
UD
2600 [BZ #5427]
2601 * iconvdata/hp-roman9.c: New file.
2602 * iconvdata/Makefile: Add rules for hp-roman9.c.
2603 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
b4354cf4 2604 * iconvdata/gconv-modules: Likewise.
87520ccc
UD
2605
2606 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
2607 * iconvdata/Makefile: Adjust appropriately.
2608
26e21e75
UD
2609 [BZ #5441]
2610 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
2611 structure, it's allocated with alloca.
2612 * stdio-common/Makefile (tests): Add bug21.
2613 * stdio-common/bug21.c: New file.
2614
26152007-12-06 Aurelien Jarno <aurelien@aurel32.net>
2616
2617 [BZ #5452]
2618 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
87520ccc 2619 keyword for gcc's braced-groups.
26e21e75
UD
2620
26212007-12-07 Ulrich Drepper <drepper@redhat.com>
2622
2623 [BZ #5454]
2624 * inet/ether_line.c: Strip hostname of whitespaces.
2625 * inet/Makefile (tests): Add tst-ether_line.
2626 * inet/tst-ether_line.c: New file.
2627
9e80c123
UD
26282007-12-03 Ulrich Drepper <drepper@redhat.com>
2629
da0ff4ae
UD
2630 [BZ #5439]
2631 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
2632
51bd20d9
UD
2633 [BZ #5435]
2634 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
2635
d90d0256
UD
2636 * stdlib/tst-setcontext.c: Catch the case where the links gets
2637 messed up and we do not reach main again.
2638
9e80c123
UD
2639 * po/ca.po: Update from translation team.
2640
ae4287f8
UD
26412007-11-26 Ulrich Drepper <drepper@redhat.com>
2642
6701afc7 2643 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
79fb2e02 2644 * posix/regex.h (REG_ENOSYS): Likewise.
a912a4f8 2645 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
ae4287f8 2646
30294ea4
UD
26472007-11-25 Ulrich Drepper <drepper@redhat.com>
2648
2649 * nscd/nscd.h (MAX_STACK_USE): Define.
2650 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
2651 (gc): Initialize stack_used based on allocation in prune_cache.
2652 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
e8667ddc 2653 Clear array before use.
30294ea4
UD
2654
2655 * nscd/aicache.c (addhstaiX): Update statistics counter in case
10a4c1e9 2656 memory allocation failed.
e8667ddc
UD
2657 * nscd/hstcache.c (cache_addhst): Likewise.
2658 * nscd/grpcache.c (cache_addgr): Likewise.
2659 * nscd/servicescache.c (cache_addserv): Likewise.
2660 * nscd/pwdcache.c (cache_addpw): Likewise.
2661 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30294ea4 2662
715db78b
UD
26632007-11-23 Ulrich Drepper <drepper@redhat.com>
2664
609bb071
UD
2665 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
2666 and creat system calls.
2667
715db78b
UD
2668 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
2669
ea2c47b6
UD
26702007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
2671
2672 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
2673 Add netiucv/iucv.h.
2674 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
2675 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
2676 protocol.
2677 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
2678 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
2679 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
2680
dcdcf4b9
UD
26812007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
2682
37143323
UD
2683 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
2684 strncat): Define as macros to avoid compile errors.
2685
dcdcf4b9
UD
2686 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
2687 creat entries.
2688
3a632674
UD
26892007-11-22 Ulrich Drepper <drepper@redhat.com>
2690
7ea8eb02
UD
2691 [BZ #5382]
2692 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
2693 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
715db78b 2694 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
7ea8eb02 2695 overflow it.
70d5b6ef 2696 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
7ea8eb02
UD
2697
2698 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
715db78b 2699 Return zero in case the thread library is not NPTL.
7ea8eb02 2700
5c3a3dba
UD
2701 [BZ #5375]
2702 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
2703 initializing interface list.
2704
85883123
UD
2705 [BZ #5378]
2706 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
2707 use result of nss_getgrgid_r if nothing was found. For other
2708 error return with a failure.
2709 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
2710
3a632674
UD
2711 * locale/programs/ld-collate.c (collate_read): Fix loop to match
2712 macro name.
2713
b73f9135
UD
27142007-11-19 Ulrich Drepper <drepper@redhat.com>
2715
ee72b971
UD
2716 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
2717 (get_scope): For IPv4 scope, use scopes table.
2718 (fini): Free scopes table if necessary.
2719 (free_scopelist): New function.
2720 (scopecmp): New function.
2721 (gaiconf_init): Also handle scopev4 entries.
2722 * posix/tst-rfc3484.c (do_test): Initialize scopes.
2723 * posix/tst-rfc3484-2.c (do_test): Likewise.
2724 * posix/gai.conf: Document scopev4 defaults.
2725 * posix/Makefile (tests): Add tst-rfc3484-3.
2726 * posix/tst-rfc3484-3.c: New file.
2727
f4a79765
UD
2728 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
2729 Teredo tunnels.
b73f9135
UD
2730 * posix/gai.conf: Update for current default tables.
2731
429bd64d
UD
27322007-11-19 Ulrich Drepper <drepper@redhat.com>
2733
2734 * po/tr.po: Update from translation team.
2735
3c9af259
RM
27362007-11-18 Roland McGrath <roland@frob.com>
2737
76cf9889
RM
2738 * manual/arith.texi (Remainder Functions): Spelling fix.
2739 From Shaun Silk <genix@mysoul.com.au>.
2740
3c9af259
RM
2741 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
2742
238346ab
UD
27432007-11-17 Ulrich Drepper <drepper@redhat.com>
2744
5879ad50
UD
2745 * po/zh_CN.po: Update from translation team.
2746
238346ab
UD
2747 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
2748 Add sys/signalfd.h and sys/eventfd.h.
2749
b80b9c77
UD
27502007-11-15 Bruno Haible <bruno@clisp.org>
2751
2752 [BZ #5346]
2753 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
2754 union.
2755 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
2756 (DCIGETTEXT): Change the allocation of the 'search' variable so that
2757 it needs only fixed stack space. Delay the initialization of
2758 msgid_len until it is needed.
2759
2da2501c
AJ
27602007-11-15 Andreas Jaeger <aj@suse.de>
2761
2762 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
2763 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
2764
68a6dcf5
UD
27652007-11-15 Ulrich Drepper <drepper@redhat.com>
2766
2767 * po/ko.po: Update from translation team.
2768
43850227
UD
27692007-11-14 Ulrich Drepper <drepper@redhat.com>
2770
1e2692c9
UD
2771 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
2772 significantly. The device type is also part of the ifinfomsg data.
2773
84e6cc7c 2774 * po/sv.po: Update from translation team.
cbd52634 2775 * po/nl.po: Likewise.
84e6cc7c 2776
f9e2261b
UD
2777 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
2778 to wake up in 24 hours.
2779
43850227
UD
2780 * nscd/gai.c (__ioctl): Define. Include check_native.c.
2781
5742e960
UD
27822007-11-13 Ulrich Drepper <drepper@redhat.com>
2783
1a821d82
UD
2784 * po/cs.po: Update from translation team.
2785 * po/pl.po: Likewise.
2786
773e79b3
UD
2787 * include/ifaddrs.h: Remove in6ai_temporary.
2788 (struct in6addrinfo): Add index element.
2789 Declare __check_native.
2790 * inet/Makefile (aux): Add check_native.
2791 * sysdeps/unix/sysv/linux/check_native.c: New file.
2792 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
2793 IFA_F_TEMPORARY. Pass back ifa_index.
2794 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
2795 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
2796 call __check_native if necessary.
2797 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
2798 to sort addresses. Pass information about the results.
2799 * posix/tst-rfc3484.c: Adjust for addition of index field and change
2800 of rfc3484_sort interface.
2801 * posix/tst-rfc3484-2.c: Likewise.
2802
e458144c
UD
2803 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
2804 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
2805 for _quicksort.
2806 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
2807 (qsort_r): Renamed from qsort. Take additional parameter and pass it
2808 on as third parameter to compare function and _quicksort.
2809 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
2810 to the compare function.
2811 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
2812 * Versions.def: Add GLIBC_2.8 for libc.
2813
bd63f380
UD
2814 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
2815 * posix/tst-rfc3484-2.c: Likewise.
2816
5742e960
UD
2817 * include/kernel-features.h: Moved to...
2818 * sysdeps/mach/hurd/kernel-features.h: ...here.
2819
a6ac7fdb
RM
28202007-09-13 H.J. Lu <hongjiu.lu@intel.com>
2821
2822 * sysdeps/i386/i586/memcpy_chk.S: New file.
2823 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
2824 * sysdeps/i386/i586/memset_chk.S: Likewise.
2825
6f3914d5
UD
28262007-11-12 Ulrich Drepper <drepper@redhat.com>
2827
2828 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
2829 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
2830 list of interfaces. Also store prefix length.
2831 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
2832 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
2833 prefix if source and destination address are in the same subnet.
2834 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
2835 Always look for matching record in in6ai list.
2836 Correct source_addr_len value for IPv6->IPv4 converted records.
2837
78cf5f6a
RM
28382007-11-11 Roland McGrath <roland@frob.com>
2839
2840 * include/kernel-features.h: New file.
2841
7f745396
UD
28422007-11-10 Ulrich Drepper <drepper@redhat.com>
2843
01e7fdbb
UD
2844 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
2845 complications for 64-bit platforms.
2846
7f745396
UD
2847 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
2848 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
2849 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
2850 open64_2.
2851 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
2852 entries.
2853 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2854 * sysdeps/wordsize-64/alphasort.c: New file.
2855 * sysdeps/wordsize-64/alphasort64.c: New file.
2856 * sysdeps/wordsize-64/fseeko.c: New file.
2857 * sysdeps/wordsize-64/fseeko64.c: New file.
2858 * sysdeps/wordsize-64/ftello.c: New file.
2859 * sysdeps/wordsize-64/ftello64.c: New file.
2860 * sysdeps/wordsize-64/ftw.c: New file.
2861 * sysdeps/wordsize-64/ftw64.c: New file.
2862 * sysdeps/wordsize-64/iofgetpos.c: New file.
2863 * sysdeps/wordsize-64/iofgetpos64.c: New file.
2864 * sysdeps/wordsize-64/iofopen.c: New file.
2865 * sysdeps/wordsize-64/iofopen64.c: New file.
2866 * sysdeps/wordsize-64/iofsetpos.c: New file.
2867 * sysdeps/wordsize-64/iofsetpos64.c: New file.
2868 * sysdeps/wordsize-64/lockf.c: New file.
2869 * sysdeps/wordsize-64/lockf64.c: New file.
2870 * sysdeps/wordsize-64/mkostemp.c: New file.
2871 * sysdeps/wordsize-64/mkostemp64.c: New file.
2872 * sysdeps/wordsize-64/mkstemp.c: New file.
2873 * sysdeps/wordsize-64/mkstemp64.c: New file.
2874 * sysdeps/wordsize-64/scandir.c: New file.
2875 * sysdeps/wordsize-64/scandir64.c: New file.
2876 * sysdeps/wordsize-64/tmpfile.c: New file.
2877 * sysdeps/wordsize-64/tmpfile64.c: New file.
2878 * sysdeps/wordsize-64/versionsort.c: New file.
2879 * sysdeps/wordsize-64/versionsort64.c: New file.
2880 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
2881 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
2882 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
2883 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
2884 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
2885 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
2886 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
2887 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
2888 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
2889 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
2890 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
2891 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
2892
2893 * crypt/sha256-crypt.c: Fix a comment.
2894 * crypt/sha512-crypt.c: Likewise.
2895
f6ed654c
UD
28962007-11-07 H.J. Lu <hongjiu.lu@intel.com>
2897
2898 * sysdeps/x86_64/memset.S: Add sfence after movnti.
2899
f2a8406a
UD
29002007-11-07 Ulrich Drepper <drepper@redhat.com>
2901
2902 [BZ #5277]
2903 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
2904 because output buffer is too small break, don't loop.
2905 * iconvdata/Makefile (tests): Add bug-iconv6.
2906 * iconvdata/bug-iconv6.c: New file.
2907
7fe4e0e8
UD
29082007-11-06 Ulrich Drepper <drepper@redhat.com>
2909
9ca230d6
UD
2910 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
2911 with size_t type.
2912 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
2913 size_t. Add casts where needed.
2914
7fe4e0e8
UD
2915 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
2916 old headers, don't call avc_has_perm if we don't have the
2917 permission information.
2918
b92e3780
UD
29192007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
2920
2921 * elf/rtld.c (dl_main): Use the page size to find the map start.
2922
ffb1b882
UD
29232007-11-05 Ulrich Drepper <drepper@redhat.com>
2924
94a749f6
UD
2925 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
2926 Patch by Szymon Siwek <sls@poczta.wp.pl>.
2927
ffb1b882
UD
2928 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
2929 when the lookup call failed.
2930
2931 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
2932 Add prune_cond and wakeup_time.
2933 (CACHE_PRUNE_INTERNAL): Define.
2934 Update declarations of prune_cache and setup_thread.
2935 * nscd/connections.c (dbs): Update initializers.
2936 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
2937 (nscd_init): Default number of threads is now 4.
2938 (invalidate_cache): Take lock before calling prune_cache.
2939 (handle_request): If SELinux forbids the request, say so.
2940 (readylist_cond): Use static initializer.
2941 (nscd_run_prune): New function. Used only by pruning threads.
2942 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
2943 here.
2944 (fd_ready): Update nscd_run reference.
2945 (start_threads): No need to initialize readylist_cond.
2946 Start pruning threads separately.
2947 * nscd/nscd_setup_thread.c: Change return value type to int and always
2948 return 0.
2949 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
2950 to int and return nonzero value if we can use the TID address hack.
2951 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
2952 the database is later than the new entry's timeout, update the
2953 wakeup time and wake the cleanup thread.
2954 (prune_cache): Return seconds the next entry in the database is still
2955 valid. Remove locking for pruning here.
2956 * nscd/nscd.conf: Document default number of threads.
2957
4c48ef06
UD
29582007-10-31 Ulrich Drepper <drepper@redhat.com>
2959
41ff2a49
UD
2960 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
2961 stack is properly aligned for the target function.
2962 Correct unwind info.
ffb1b882 2963
4c48ef06
UD
2964 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
2965 when using auditing libraries.
2966
384ca551
UD
29672007-10-29 Ulrich Drepper <drepper@redhat.com>
2968
31e2791c
UD
2969 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
2970 _nss_dns_getnetbyaddr2_r.
2971 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
2972 extra parameter to getanswer_r.
2973 (_nss_dns_getnetbyaddr_r): Now a wrapper around
2974 _nss_dns_getnetbyaddr2_r.
2975
384ca551
UD
2976 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
2977 gethstbynm3_r.
2978 * nscd/gethstbynm2_r.c: Remove.
2979 * nscd/gethstbynm3_r.c: New file.
2980 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
2981 __gethostbyaddr_r.
2982 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
2983 __gethostbyaddr_r compatibility wrapper.
2984 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
2985 determining timeout of entry.
2986 (lookup): Take new parameter and pass it to __gethostbyname3_r and
2987 __gethostbyaddr2_r.
2988 (addhstbyX): Pass reference to variable for TTL to lookup and
2989 cache_addhst.
2990 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
2991 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
2992 and __nss_next2. Remove __nss_services_lookup.
2993 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
2994 Add compat wrapper.
2995 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
2996 __nss_next2.
2997 * nss/getXXent_r.c: Likewise.
2998 * nss/getnssent_r.c: Likewise.
2999 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
3000 does not exist in module, try the optional second name.
3001 (__nss_next2): New function.
3002 (__nss_next): Now wrapper around __nss_next2.
3003 * nss/nsswitch.h: Adjust __nss_lookup prototype.
3004 Declare __nss_next2.
3005 Adjust definition of db_lookup_function type.
3006 * nss/service-lookup.c: Define NO_COMPAT.
3007 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
3008 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
3009 * inet/ether_ntoh.c: Likewise.
3010 * sunrpc/netname.c: Likewise.
3011 * sunrpc/publickey.c: Likewise.
3012 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
3013 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
3014 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
3015 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
3016 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
3017
3018 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
3019
3020 * inet/getnetgrent.c (setup): Encrypt static pointer.
3021
88197030
UD
30222007-10-28 Ulrich Drepper <drepper@redhat.com>
3023
f160a450
UD
3024 [BZ #5204]
3025 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
3026 * crypt/sha512c-test.c: Likewise.
3027
4c6b2202
UD
3028 [BZ #5225]
3029 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
3030 to keep track of end of %[ format string element.
22c915ac
UD
3031 * stdio-common/Makefile (tests): Add bug20.
3032 * stdio-common/bug20.c: New file.
4c6b2202 3033
88197030
UD
3034 [BZ #5222]
3035 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
3036 path elements in counting mode.
3037
05d69147
UD
30382007-10-27 Andreas Jaeger <aj@suse.de>
3039
94833f11
UD
3040 [BZ #5040]
3041 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
3042
05d69147
UD
3043 [BZ #3112]
3044 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
3045 (__cleanup): Free shared library when exiting.
3046 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
3047 (__cleanup): Free shared library when exiting.
3048
e6b29af8
UD
30492006-04-14 H.J. Lu <hongjiu.lu@intel.com>
3050
3051 [BZ #2549]
3052 * math/libm-test.inc (check_float_internal): Support
3053 denormalized return.
3054
ad3371fb
UD
30552007-10-23 Andreas Jaeger <aj@suse.de>
3056
3057 [BZ #5208]
3058 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
3059 __LONG_LONG_PAIR to handle little endian byte order.
3060 Suggested by abhishekrai@google.com
3061
666aa020
UD
30622007-10-27 Ulrich Drepper <drepper@redhat.com>
3063
3064 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
3065
8ad343b3
UD
30662007-10-26 Ulrich Drepper <drepper@redhat.com>
3067
3068 * nscd/cache.c (prune_cache): Move test for modified file outside
3069 of locking.
3070
9251c568
AJ
30712007-10-21 Andreas Jaeger <aj@suse.de>
3072
3073 * manual/texinfo.tex: Update to latest version.
3074
3075 * manual/sysinfo.texi (System Parameters): Fix Formatting.
3076
3077 * manual/arith.texi (Status bit operations): Fix formatting.
3078
3079 * manual/errno.texi (Error Messages): Fix formatting.
3080
3081 * manual/sysinfo.texi (System Parameters): Fix formatting.
3082
3083 * manual/libc.texinfo: Update VERSION and UPDATED.
3084
260b2e06
RM
30852007-10-19 Roland McGrath <roland@redhat.com>
3086
3087 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
3088
46ae8850
JJ
30892007-10-06 David S. Miller <davem@davemloft.net>
3090
3091 * configure.in: Add sparcv9v2 and sparc64v2.
3092 * scripts/config.sub: Likewise.
3093 * configure: Regenerate.
3094 * elf/elf.h (HWCAP_SPARC_N2): New.
3095 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
3096 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
3097 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
3098 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
3099 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
3100 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
3101 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
3102
6fbfbd80
UD
31032007-10-18 Ulrich Drepper <drepper@redhat.com>
3104
3105 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
3106 even if the poll result indicates there is data to read.
3107 Patch by Jeff Moyer <jmoyer@redhat.com>.
3108
39cfc9fa
RM
31092007-10-18 Roland McGrath <roland@redhat.com>
3110
3111 * elf/elf.h (NT_PPC_VMX): New macro.
28919a77 3112
39cfc9fa 31132007-10-17 Ulrich Drepper <drepper@redhat.com>
28919a77
UD
3114
3115 * version.h (VERSION): Set to 2.7.90.
3116
ed13ccf1
JJ
31172007-10-17 Jakub Jelinek <jakub@redhat.com>
3118
3119 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
3120 weak_alias.
3121
ee9fd869
RM
31222007-10-17 Roland McGrath <roland@frob.com>
3123
3124 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
3125 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
3126
1aa5e4d7
UD
31272007-10-17 Ulrich Drepper <drepper@redhat.com>
3128
50c9fbbf 3129 * version.h (VERSION): Bump to 2.7.
777bc4bf 3130 * include/features.h (__GLIBC_MINOR__): Bump to 7.
50c9fbbf 3131
58423c7d
UD
3132 [BZ #5186]
3133 * time/tzset.c (__tz_convert): Don't force testing for a change of
3134 TZ if not called from localtime. But then also see whether the
3135 file changed, in case __use_tzfile is set.
3136
1aa5e4d7
UD
3137 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
3138 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3139 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3140 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3141 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3142 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3143 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
3144 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3145
fc4837e5
UD
31462007-10-17 Jakub Jelinek <jakub@redhat.com>
3147
3148 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
3149 and admin selects to be able to replace the gai.conf file, lock
3150 data structures around the qsort call.
3151
62eaf7c8
UD
31522007-10-17 Ulrich Drepper <drepper@redhat.com>
3153
406f28db
UD
3154 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
3155 new memset.
ac1cb5da 3156 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
406f28db
UD
3157 too high for the improvements. Implement bzero unconditionally for
3158 use in libc.
ac1cb5da
UD
3159
31602007-10-17 Ulrich Drepper <drepper@redhat.com>
3161 Jakub Jelinek <jakub@redhat.com>
3162
62eaf7c8
UD
3163 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
3164 even when time_t is 32-bit.
3165 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
3166 timezone data read by __tzfile_default. Ensure __tzname[0] is
3167 always set after the search.
3168
6a649d25
UD
31692007-10-16 Ulrich Drepper <drepper@redhat.com>
3170
3171 * time/tzfile.c (__tzfile_read): Help the compiler recognize
3172 unreachable code on 32-bit machines.
3173
800d6f9e
UD
31742007-10-16 Jakub Jelinek <jakub@redhat.com>
3175
3176 [BZ #5184]
3177 * time/strftime_l.c: Include stdbool.h.
3178 (my_strftime): New wrapper, old function renamed to...
3179 (__strftime_internal): ... new function. Add tzset_called
3180 argument, pass it down to recursive calls, don't call tzset ()
3181 if already true, set to true after call to tzset ().
62eaf7c8 3182
69819d92
UD
31832007-10-16 Ulrich Drepper <drepper@redhat.com>
3184
3185 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
3186 into account when copying TZ string.
3187
62eaf7c8
UD
31882007-10-16 Jakub Jelinek <jakub@redhat.com>
3189
3190 * time/tzfile.c (__tzfile_compute): For use_last case set i to
3191 num_transition rather than num_transitions - 1.
3192
0308ad66
JJ
31932007-10-16 Jakub Jelinek <jakub@redhat.com>
3194
8d137b60
JJ
3195 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
3196 PIC indirect jump.
3197
0308ad66
JJ
3198 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
3199 a local label rather than HIDDEN_JUMPTARGET.
3200
e2b393bc
UD
32012007-10-15 Ulrich Drepper <drepper@redhat.com>
3202
3203 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
3204 (init_cacheinfo): Initialize it.
3205 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
3206 Always define bzero.
3207 Remove non-glibc code.
3208 * sysdeps/x86_64/bzero.S: Make an empty file.
3209
32102007-10-15 H.J. Lu <hongjiu.lu@intel.com>
3211
3212 * sysdeps/x86_64/cacheinfo.c
3213 (__x86_64_preferred_memory_instruction): New.
3214 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3215
3216 * sysdeps/x86_64/memset.S: Rewrite.
3217
0fbfcb7b
RM
32182007-10-15 Roland McGrath <roland@redhat.com>
3219
3220 * po/libc.pot: Regenerated.
3221
2884dad4
UD
32222007-10-15 Ulrich Drepper <drepper@redhat.com>
3223
e2b393bc 3224 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
d96a2216
UD
3225 pointers.
3226
2884dad4
UD
3227 [BZ #3425]
3228 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
3229 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
3230 address record to T_A/T_AAAA requests.
3231
89dc9d4c
UD
32322007-10-14 Ulrich Drepper <drepper@redhat.com>
3233
8d97ac13
UD
3234 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
3235
1b6aa63f
UD
3236 * posix/glob.c: Add some branch prediction throughout.
3237
895a08c0
UD
3238 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
3239 read from nscd.
3240
6f55ed88
UD
3241 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
3242 service_order.
8d62c8ab
UD
3243 (rfc3484_sort): Make sure that even if qsort doesn't support
3244 stable sorting out sorting here is stable by comparing service_order.
6f55ed88 3245 (getaddrinfo): Initialize service_order.
a94673e6
UD
3246 * posix/tst-rfc3484.c (do_test): Adjust for addition of
3247 service_order field to sorting structure.
dfcf64ce 3248 * posix/tst-rfc3484-2.c (do_test): Likewise.
6f55ed88 3249
fa76dde2
UD
3250 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
3251 * time/tzset.c (tzset_internal): Break TZ string parsing out into
3252 __tzset_parse_tz and updating of daylight, timezone, tzname into
3253 update_vars.
3254 (__tz_compute): Renamed from tz_compute. Take additional parameters.
3255 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
3256 happens in __tz_compute.
3257 * time/tzfile.c (__tzfile_read): Also read TZ string.
3258 (find_transition): Fold into __tzfile_compute.
3259 (__tzfile_compute): For times beyond the last transition try to
3260 use the TZ string.
3261 * timezone/tst-timezone.c: Information in daylight and tzname does
3262 change for Asia/Tokyo timezone with more concrete information.
3263 Remove the test.
3264
3265 * include/stdio.h: Add libc_hidden_proto for ftello.
3266 * libio/ftello.c: Add libc_hidden_def.
3267
89dc9d4c
UD
3268 [BZ #1140]
3269 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
3270 on the specified time and not the last entries in the file. Move
3271 code to determine tzname[] to...
3272 (find_transition): ...here. Add ugly guess for times before the
3273 first transition.
3274
f7140274
UD
32752007-10-13 Ulrich Drepper <drepper@redhat.com>
3276
cfca0aa3
UD
3277 [BZ #3195]
3278 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
3279 no entry.
3280 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
3281 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
3282 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3283 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3284
43d3e6bd
UD
3285 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
3286 read mechanism when there are no group members and avoid no-op
3287 read syscall in this case.
3288
f7140274
UD
3289 [BZ #3242]
3290 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
3291 (__readall): If reading failed due to EAGAIN error wait a bit
3292 and possibly try again.
3293 (__readvall): Likewise.
3294
656f02ce
UD
32952007-10-13 Bruno Haible <bruno@clisp.org>
3296
3297 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
3298 when we cannot recode the message.
3299
0ea49677
UD
33002007-10-13 Ulrich Drepper <drepper@redhat.com>
3301
3302 [BZ #4359]
3303 * libio/__freading.c (__freading): Don't return true for
ed36f224
UD
3304 write-only streams. For read/write streams, check whether we
3305 performed a read operation already.
7e39d802
UD
3306 * libio/Makefile (tests): Add tst-ext2.
3307 * libio/tst-ext2.c: New file.
0ea49677 3308
78a9b2dc
UD
33092007-10-12 Ulrich Drepper <drepper@redhat.com>
3310
fab1a490
UD
3311 * locale/programs/repertoire.c (repertoire_read): Always free
3312 memory for repertoire file name [Coverity CID 270].
3313
78a9b2dc
UD
3314 * elf/cache.c (save_aux_cache): Free memory allocated for
3315 temporary file name [Coverity CID 267].
3316
29d49a1a
JJ
33172007-10-12 Jakub Jelinek <jakub@redhat.com>
3318
3319 * misc/Makefile (headers): Add bits/error.h.
3320
d074d36d
UD
33212007-10-12 Ulrich Drepper <drepper@redhat.com>
3322
b7d1c5fa
UD
3323 * posix/fnmatch_loop.c: Take rule index returned as part of
3324 findidx return value into account when accessing weights.
3325 * posix/regcomp.c: Likewise.
3326 * posix/regexec.c: Likewise.
3327
d074d36d
UD
3328 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
3329 (skip_to): Fix problems with parameter of elifdef/elifndef.
3330
26a51060
UD
33312007-10-11 Ulrich Drepper <drepper@redhat.com>
3332
3333 * iconv/gconv_simple.c: Add some branch prediction.
3334
6dd3748b
UD
33352007-10-12 Jakub Jelinek <jakub@redhat.com>
3336
3337 * locale/programs/ld-collate.c (collate_read): If ignore_content
3338 and nowtok is tok_define, eat any tok_eol tokens.
3339
d0b5557d
JJ
33402007-10-11 Jakub Jelinek <jakub@redhat.com>
3341
3342 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
3343 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
3344
3345 * inet/netinet/in.h: Don't include bits/socket.h.
3346 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
3347 macro.
3348 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
3349
3a054d7a
UD
33502007-10-10 Ulrich Drepper <drepper@redhat.com>
3351
3352 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
3353 and tok_elifndef.
3354 * locale/programs/locfile-kw.gperf: Likewise.
3355 * locale/programs/ld-collate.c: Implement primitive preprocessor.
3356
c06b7169
UD
33572007-10-10 Jakub Jelinek <jakub@redhat.com>
3358
3359 * stdio-common/printf-parse.h: Include string.h and wchar.h.
3360 (__find_specwc): Change into __extern_always_inline function.
3361 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
3362 (__parse_one_specmb): Remove ps argument.
3363 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
3364 Adjust __find_specmb and __parse_one_specmb callers.
3365 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
3366 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
3367 Removed.
3368 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
3369 caller.
3370
5a01ab7b
UD
33712007-10-09 Ulrich Drepper <drepper@redhat.com>
3372
3373 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
3374 with some Pentium Ds.
3375
e3f8e049
UD
33762007-10-08 Ulrich Drepper <drepper@redhat.com>
3377
3378 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
3379 __read not read.
3380 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
3381 __write not write.
3382
a1a363d2
UD
33832007-10-07 Ulrich Drepper <drepper@redhat.com>
3384
a1160714
UD
3385 [BZ #181]
3386 * locale/C-time.c: Set week_1stday data to 19971201.
659a9013
UD
3387 * locale/programs/ld-time.c (time_finish): Default for
3388 first_workday is Monday.
a1160714 3389
bb27a6eb
UD
3390 [BZ #2633]
3391 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
3392
c8d48fae
UD
3393 [BZ #5103]
3394 * posix/glob.c (glob): Recognize patterns starting \/.
3395 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
3396 (main): Add test for pattern starting \/.
3397
a1a363d2
UD
3398 * misc/error.h: Use __const instead of const.
3399 * misc/bits/error.h: Likewise.
3400
34012007-10-07 Andreas Jaeger <aj@suse.de>
3402
3403 * include/bits/error.h: New file.
3404
3405 * misc/bits/error.h (error_at_line): Fix prototype.
3406
71894681
UD
34072007-10-06 Ulrich Drepper <drepper@redhat.com>
3408
a6fa5328
UD
3409 [BZ #3924]
3410 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
3411 more little bugs in creating the stack frame when pltexit has to
3412 be called.
3413
8c7661bc 3414 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
50607309 3415 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
8c7661bc 3416
c039eedd
UD
3417 [BZ #4407]
3418 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
3419 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
3420 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
3421 * math/libm-test.inc: Add test for this case.
3422
71894681
UD
3423 [BZ #5010]
3424 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
3425 (svc_register): Initialize sc_mapped. Set to TRUE if call to
3426 map service succeeded.
3427 (svc_is_mapped): New function.
3428 (svc_unregister): Use it before trying to unmap service.
3429
34c2c092
UD
34302007-10-05 Ulrich Drepper <drepper@redhat.com>
3431
d10737e4
UD
3432 * timezone/zic.c: Update from tzcode2007h.
3433
3434 [BZ #5063]
3435 * timezone/africa: Update from tzdata2007h.
3436 * timezone/antarctica: Likewise.
3437 * timezone/asia: Likewise.
3438 * timezone/australasia: Likewise.
3439 * timezone/europe: Likewise.
3440 * timezone/leapseconds: Likewise.
3441 * timezone/northamerica: Likewise.
3442 * timezone/southamerica: Likewise.
3443 * timzeone/zone.tab: Likewise.
3444
0304f168
UD
3445 [BZ #5104]
3446 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
3447
a83b5649
UD
3448 [BZ #5113]
3449 * string/bits/string2.h (__strdup): Cast parameters to calloc to
3450 avoid warning with -Wconversion.
3451 (__strndup): Likewise.
c039eedd 3452 Half the patch by Christian Iseli <christian.iseli@licr.org>.
a83b5649 3453
3e6ce4d7
UD
3454 [BZ #5112]
3455 * nscd/connections.c (restart): Don't resync if database is
3456 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
3457
8e351378
UD
3458 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
3459 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
3460
3461 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
3462 evetnfd_read, eventfd_write.
3463 * sysdeps/unix/sysv/linux/eventfd.c: New file.
3464 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
3465 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
3466 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
d10737e4 3467 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
8e351378
UD
3468 eventfd_write for GLIBC_2.7.
3469
34c2c092
UD
3470 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
3471 * sysdeps/unix/sysv/linux/signalfd.c: New file.
3472 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
3473 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
3474
6789aaaa 34752007-10-04 Jakub Jelinek <jakub@redhat.com>
375d9429
UD
3476
3477 * stdlib/msort.c: Include stdint.h.
3478 (struct msort_param): New type.
3479 (msort_with_tmp): Use struct msort_param pointer for unchanging
3480 parameters. Add optimized handling for several common sizes
3481 and indirect sorting mode.
3482 (qsort): Adjust msort_with_tmp callers. For big S use indirect
3483 sorting.
3484 Suggested by Belazougui Djamel .
3485
3486 * stdlib/Makefile (tests): Add tst-qsort2.
3487 * stdlib/tst-qsort2.c: New test.
3488
b80bfc8b
UD
34892007-10-04 Ulrich Drepper <drepper@redhat.com>
3490
174420d2
UD
3491 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
3492 for dup2 in case another thread races with the current one. Retry
3493 in this case.
3494
b80bfc8b
UD
3495 * misc/error.h: Remove support for use outside of libc. We have to
3496 include <features.h> now. Include <bits/error.h> if possible.
3497 * misc/bits/error.h: New file.
3498
6789aaaa 34992007-10-03 Jakub Jelinek <jakub@redhat.com>
ee868c89 3500
e5dd2178
UD
3501 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
3502 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
3503 __extern_always_inline functions unconditionally, drop macros.
3504
ac97dec1
UD
3505 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
3506 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
3507 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
3508
ee868c89
UD
3509 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
3510 add __artificial__ attribute.
3511
80e069e0
UD
35122007-10-02 Ulrich Drepper <drepper@redhat.com>
3513
6e682cf5
UD
3514 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
3515 backward to forward direction.
3516
90241a20
UD
3517 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
3518
80e069e0
UD
3519 [BZ #645]
3520 * locale/programs/ld-collate.c (collate_finish): Compare against last
3521 used section which is known to have rules defined.
3522 (collate_read): After order_start, correctly record order of sections
3523 and queue sections up.
3524
035ef8d7
UD
35252007-10-01 Ulrich Drepper <drepper@redhat.com>
3526
95bddc0c
UD
3527 [BZ #5071]
3528 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
3529 the same number of pages.
3530 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
3531
c8caf089
UD
3532 * locale/programs/ld-collate.c (collate_read): After initial copy
3533 statement, continue in state 0.
3534
035ef8d7
UD
3535 * include/stdio_ext.h (__fsetlocking): Define as macro.
3536
592a95ee
UD
35372007-09-30 Ulrich Drepper <drepper@redhat.com>
3538
56ebeb41
UD
3539 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
3540 of section order.
3541
592a95ee
UD
3542 * po/pt_BR.po: Fix typo.
3543
6c522e21
UD
35442007-09-29 Ulrich Drepper <drepper@redhat.com>
3545
8ad5c3cd
UD
3546 * iconvdata/Makefile (modules): Add ISO8859-9E.
3547 (distribute): Add iso8859-9e.c.
3548 (gen-8bit-gap-modules): Add iso8859-9e.
3549 * iconvdata/iso8859-9e.c: New file.
3550 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
3551 * iconvdata/TESTS: Likewise.
3552 * iconvdata/tst-tables.sh: Likewise.
3553
3554 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3555
6c522e21
UD
3556 * locale/iso-639.def: Add several new entries.
3557
385b4cf4
UD
35582007-09-24 Jakub Jelinek <jakub@redhat.com>
3559
3560 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
3561 void * pointers instead of struct link_map **.
3562 (_dl_scope_free): Change argument type to void *.
3563 * include/link.h (struct link_map): Change type of l_reldeps
3564 to struct link_map_reldeps, move l_reldepsact into that
3565 struct too.
3566 * elf/dl-deps.c: Include atomic.h.
3567 (_dl_map_object_deps): Only change l->l_initfini when it is
3568 fully populated, use _dl_scope_free for freeing it. Optimize
3569 removal of libs from reldeps by using l_reserved flag, when
3570 some removal is needed, allocate a new list instead of
3571 reallocating and free the old with _dl_scope_free. Adjust
3572 for l_reldeps and l_reldepsact changes.
3573 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
3574 searching in l_initfini and l_reldeps without holding dl_load_lock.
3575 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
3576 l_reldepsact changes.
3577 * elf/dl-close.c (_dl_close_worker): Likewise.
3578 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
3579
90bf831b
UD
35802007-09-28 Ulrich Drepper <drepper@redhat.com>
3581
3582 * iconvdata/Makefile (modules): Add KOI8-RU.
3583 (distribute): Add koi8-ru.c.
3584 (gen-8bit-gap-modules): Add koi8-ru.
3585 * iconvdata/koi8-ru.c: New file.
3586 * iconvdata/gconv-modules: Add entries for KOI8-RU.
3587 * iconvdata/TESTS: Likewise.
3588 * iconvdata/tst-tables.sh: Likewise.
3589
3590 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3591
d6cd6bf4
UD
35922007-09-26 Jakub Jelinek <jakub@redhat.com>
3593
3594 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
3595 with __warning__/__error__ attributes.
3596 (__warnattr): Define.
3597 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
3598 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
3599 __warnattr.
3600 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
3601 of __*_chk if compile time detectable overflow is found.
3602 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
3603 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
3604 with __warnattr.
3605 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
3606 instead of __*_chk if compile time detectable overflow is found.
3607 (__gets_alias): Rename to...
3608 (__gets_warn): ... this. Add __warnattr.
3609 (gets): Call __gets_warn instead of __gets_alias.
3610 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
3611 aliases with __warnattr.
3612 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
3613 time detectable overflow is found.
3614 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
3615 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
3616 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
3617 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
3618 __getdomainname_chk_warn): New aliases with __warnattr.
3619 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
3620 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
3621 __*_chk_warn instead of __*_chk if compile time detectable overflow
3622 is found.
3623 (__getgroups_chk): Rename argument to __listlen from listlen.
3624 (__getwd_alias): Rename to...
3625 (__getwd_warn): ... this. Add __warnattr.
3626 (getwd): Call __getwd_warn instead of __getwd_alias.
3627 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
3628 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
3629 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
3630 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
3631 __wcsnrtombs_chk_warn): New aliases with __warnattr.
3632 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
3633 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
3634 compile time detectable overflow is found.
3635 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
3636 to use __*_chk or not.
3637 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
3638 in comparisons which function should be called and in __*_chk*
3639 arguments. Call __*_chk_warn instead of __*_chk if compile time
3640 detectable overflow is found.
3641 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
3642 __*_chk argument.
3643 * debug/tst-chk1.c (do_test): Add a few more tests.
3644
408cfca0
UD
36452007-09-24 Ulrich Drepper <drepper@redhat.com>
3646
3647 [BZ #5058]
3648 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
3649 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
3650 (_nl_unload_domain): Finalize conversions_lock.
3651 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
3652 handling table of known conversions.
3653
e6eec9ce
JJ
36542007-09-24 Jakub Jelinek <jakub@redhat.com>
3655
3656 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
3657 close_not_cancel_no_status instead of close.
3658
a532a41d
UD
36592007-09-13 Aurelien Jarno <aurelien@aurel32.net>
3660
682268ef 3661 [BZ #5028]
408cfca0 3662 * posix/regcomp.c (lookup_collation_sequence_value): Check that
a532a41d
UD
3663 nrules != 0 for multibyte chars.
3664
dec9ed9e
UD
36652007-09-23 Ulrich Drepper <drepper@redhat.com>
3666
91633816
UD
3667 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
3668 Provide better error message in case the type is unknown.
3669
9cc198f6
UD
3670 [BZ #4963]
3671 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
3672 * string/stratcliff.c: Make usable to test wide char functions.
3673 * wcsmbs/wcsatcliff.c: New file.
3674 * wcsmbs/Makefiel (tests): Add wcsatcliff.
3675
27f3d446
UD
3676 [BZ #4972]
3677 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
3678 (distribute): Add mac-centraleurope.c.
3679 (gen-8bit-gap-modules): Add mac-centraleurope.
3680 * iconvdata/mac-centraleurope.c: New file.
3681 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
3682 * iconvdata/TESTS: Likewise.
3683 * iconvdata/tst-tables.sh: Likewise.
3684
dec9ed9e
UD
3685 [BZ #5043]
3686 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
3687
0435403c
UD
36882007-09-21 Ulrich Drepper <drepper@redhat.com>
3689
3690 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
3691 from __x86_64_core_cache_size_half.
3692 (init_cacheinfo): Compute shared cache size for AMD processors with
3693 shared L3 correctly.
3694 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
3695 name change.
3696 Patch in large parts by Evandro Menezes.
3697
c3266dc0
UD
36982007-09-19 Ulrich Drepper <drepper@redhat.com>
3699
715899d1
UD
3700 * elf/dl-lookup.c (add_dependency): Handle failing memory
3701 allocation for dependency list. Remove unnecessary check.
3702
e1db0493
UD
3703 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
3704 open/close when determining source addresses.
3705
c3266dc0
UD
3706 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
3707 sha512-crypt, and sha512.
3708 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
3709 (distribute): Add sha256.h and sha512.h.
3710 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
3711 and call the appropriate code.
3712 * crypt/sha256-crypt.c: New file.
3713 * crypt/sha256.c: New file.
3714 * crypt/sha256.h: New file.
3715 * crypt/sha256c-test.c: New file.
3716 * crypt/sha256test.c: New file.
3717 * crypt/sha512-crypt.c: New file.
3718 * crypt/sha512.c: New file.
3719 * crypt/sha512.h: New file.
3720 * crypt/sha512c-test.c: New file.
3721 * crypt/sha512test.c: New file.
3722
ddf51ecb
JJ
37232007-09-19 Jakub Jelinek <jakub@redhat.com>
3724
3725 * misc/bits/syslog.h (syslog): Remove extraneous argument from
3726 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
3727 __syslog_chk.
3728
b90395e6
UD
37292007-09-18 Jakub Jelinek <jakub@redhat.com>
3730
76c0bea7
JJ
3731 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
3732 %as in fscanf format strings.
3733
00680568
JJ
3734 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
3735 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
c3266dc0
UD
3736 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
3737 Likewise.
3738 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
3739 Likewise.
00680568 3740
b90395e6
UD
3741 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
3742 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
3743 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
3744 * elf/dl-sym.c (do_sym): Likewise.
3745 * include/link.h (struct link_map): Add l_serial field.
3746 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
3747 * elf/dl-lookup.c (add_dependency): Add flags argument.
3748 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
3749 flags, use THREAD_GSCOPE_RESET_FLAG before and
3750 THREAD_GSCOPE_SET_FLAG after
3751 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
3752 Don't dereference map until it has been found on some list.
3753 If map->l_serial changed, return -1.
3754
874aa523
UD
37552007-09-17 Jakub Jelinek <jakub@redhat.com>
3756
3757 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
3758 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
3759 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
3760 libc_hidden_proto.
3761 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
3762 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
3763 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
3764 add libc_hidden_proto.
3765 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
3766 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
3767 conformance requested.
3768 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
3769 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
3770 conformance requested.
3771 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
3772 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
3773 conformance requested.
3774 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
3775 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
3776 ISO C99 or POSIX conformance requested.
3777 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
3778 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
3779 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
3780 and __isoc99_vsscanf@@GLIBC_2.7.
3781 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
3782 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
3783 (tests): Add scanf14.
3784 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
3785 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
3786 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
3787 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
3788 CFLAGS-isoc99_scanf.c): Add $(exceptions).
3789 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
3790 from using internal headers.
3791 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
3792 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
3793 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
3794 and __isoc99_vswscanf@@GLIBC_2.7.
3795 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
3796 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
3797 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
3798 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
3799 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
3800 * stdio-common/isoc99_scanf.c: New file.
3801 * stdio-common/isoc99_vsscanf.c: New file.
3802 * stdio-common/isoc99_vscanf.c: New file.
3803 * stdio-common/isoc99_vfscanf.c: New file.
3804 * stdio-common/isoc99_fscanf.c: New file.
3805 * stdio-common/isoc99_sscanf.c: New file.
3806 * wcsmbs/isoc99_fwscanf.c: New file.
3807 * wcsmbs/isoc99_vswscanf.c: New file.
3808 * wcsmbs/isoc99_swscanf.c: New file.
3809 * wcsmbs/isoc99_wscanf.c: New file.
3810 * wcsmbs/isoc99_vwscanf.c: New file.
3811 * wcsmbs/isoc99_vfwscanf.c: New file.
3812 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
3813 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
3814 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
3815 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
3816 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
3817 * stdio-common/scanf14.c: New test.
3818 * stdio-common/scanf15.c: New test.
3819 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
3820 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
3821 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
3822 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
3823 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
3824 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
3825 __nldbl___isoc99_scanf@@GLIBC_2.7,
3826 __nldbl___isoc99_fscanf@@GLIBC_2.7,
3827 __nldbl___isoc99_sscanf@@GLIBC_2.7,
3828 __nldbl___isoc99_vscanf@@GLIBC_2.7,
3829 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
3830 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
3831 __nldbl___isoc99_wscanf@@GLIBC_2.7,
3832 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
3833 __nldbl___isoc99_swscanf@@GLIBC_2.7,
3834 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
3835 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
3836 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
3837 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
3838 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
3839 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
3840 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
3841 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
3842 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3843 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
3844 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
3845 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
3846 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
3847 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
3848 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
3849 functions.
3850 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
3851 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
3852 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
3853 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
3854 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
3855 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
3856 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
3857 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
3858 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
3859 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
3860 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
3861 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
3862
3863 * stdio-common/Makefile (tests): Add scanf13.
3864 (scanf13-ENV): New.
3865 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
3866 m modifier followed by l.
3867 (STRING_ARG): Add width argument.
3868 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
3869 <case L_('C')>: Handle %mlc and %mC.
3870 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
3871 arguments.
3872 * stdio-common/scanf13.c: New test.
3873
3874 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
3875 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
3876
883f7943
UD
38772007-09-18 Ulrich Drepper <drepper@redhat.com>
3878
3879 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
874aa523 3880 type and __THROW marker of splice, vmsplice, and tee.
883f7943
UD
3881 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3882 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3883 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3884 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3885 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3886 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
3887 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3888 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
3889 as cancellation points.
3890
3524efe0
UD
38912003-11-01 Daniel Jacobowitz <dan@debian.org>
3892
3893 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
3894 parse more than three parts of the version number.
3895
267c54dc
UD
38962007-09-15 Ulrich Drepper <drepper@redhat.com>
3897
3898 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
3899 modifier. Patch by Jakub Jelinek.
3900
5e17d6b7
UD
39012007-08-26 Jakub Jelinek <jakub@redhat.com>
3902
3903 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
3904 call_fallocate in misc subdir.
3905 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
3906 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
3907 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
3908 instead of __fallocate64.
3909 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
3910
3a50811c
UD
39112007-09-15 Jakub Jelinek <jakub@redhat.com>
3912
3913 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
3914 * rt/Makefile (headers): Add bits/mqueue2.h.
3915 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
3916 optimizing with GCC and __va_arg_pack_len is defined.
3917 * rt/bits/mqueue2.h: New file.
3918 * rt/mq_open.c (__mq_open): Renamed from mq_open.
3919 (mq_open): New strong_alias.
3920 (__mq_open_2): New function.
3921 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
3922 (mq_open): New strong_alias.
3923 (__mq_open_2): New function.
3924 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
3925 * Versions.def (librt): Add GLIBC_2.7 version.
3926 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
3927 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
3928
3929 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
3930 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
3931 is defined rather than when not C++.
3932 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
3933 __openat64_alias): New redirects.
3934 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
3935 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
3936 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
3937 (open, open64, openat, openat64): Rewrite as __extern_always_inline
3938 functions instead of function-like macros.
3939
9bdfff60
UD
39402007-09-14 H.J. Lu <hongjiu.lu@intel.com>
3941
3942 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
3943 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
3944 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
3945
ab905672
UD
39462007-09-15 Mike Frysinger <vapier@gentoo.org>
3947
3948 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
3949 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
3950
9bd68902
RM
39512007-09-14 Mike Frysinger <vapier@gentoo.org>
3952
3953 * inet/tst-network.c: Increment ERRORS for failing tests.
3954
de1c3ebb
UD
39552007-09-07 Jakub Jelinek <jakub@redhat.com>
3956
3957 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
3958 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
3959 implement as __extern_always_inline function.
3960 (vsyslog): Define as __extern_always_inline function unconditionally.
3961 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
3962 When __va_arg_pack is defined, implement as __extern_always_inline
3963 functions.
3964 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
3965 __extern_always_inline functions unconditionally.
3966 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
3967 bits/stdio2.h will be included.
3968 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
3969 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
3970 implement as __extern_always_inline functions.
3971 (vswprintf, vwprintf, vfwprintf): Define as
3972 __extern_always_inline functions unconditionally.
3973 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
3974
39752007-09-03 Jakub Jelinek <jakub@redhat.com>
3976
3977 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
3978 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
3979 attribute.
3980 * include/features.h (__USE_EXTERN_INLINES): Define only when
3981 __extern_inline is defined.
3982 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
3983 is defined instead of when not __cplusplus.
3984 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
3985 is defined instead of when not __cplusplus.
3986 * socket/sys/socket.h: Include bits/socket2.h when
3987 __extern_always_inline is defined instead of when not __cplusplus.
3988 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
3989 is defined instead of when not __cplusplus.
3990 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
3991 is defined instead of when not __cplusplus.
3992 * string/string.h: Include bits/string3.h when __extern_always_inline
3993 is defined instead of when not __cplusplus.
3994 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
3995 is defined instead of when not __cplusplus.
3996 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
3997 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
3998 is not defined.
3999 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
4000 defined __extern_always_inline instead of !defined __cplusplus.
4001 * libio/bits/stdio-ldbl.h: Likewise.
4002 * wcsmbs/bits/wchar-ldbl.h: Likewise.
4003 * misc/bits/syslog.h (syslog): Don't define for C++.
4004 (vsyslog): Use __extern_always_inline function for C++ instead of
4005 a macro.
4006 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
4007 whenever that macro is defined.
4008 (vprintf): Don't provide the inline for C++.
4009 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
4010 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
4011 define the macros for C++.
4012 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
4013 __extern_always_inline functions for C++.
4014 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
4015 stat64, lstat64, fstat64, fstatat64): Don't define if not
4016 __USE_EXTERN_INLINES.
4017 * wcsmbs/bits/wchar2.h: Fix #error message.
4018 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
4019 (vswprintf, vwprintf, vfwprintf): Define using
4020 __extern_always_inline functions for C++.
4021 * string/bits/string3.h: Don't #undef macros if __cplusplus.
4022 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
4023 strncpy, strcat, strncat): Define as __extern_always_inline
4024 functions instead of macros for C++.
4025 * math/bits/cmathcalls.h: Guard __extern_inline routines with
4026 defined __extern_inline.
4027 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
4028 to __extern_inline whenever that macro is defined.
4029 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4030 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4031 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
4032 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
4033 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4034 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4035 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4036 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
4037 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
4038 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
4039 prototypes. Only provide __extern_inline routines if
4040 __USE_EXTERN_INLINES.
4041 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
4042 tests.
4043 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
4044 For now avoid some *printf tests in C++. Skip all testing
4045 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
4046 is not.
4047 * debug/tst-chk4.cc: New file.
4048 * debug/tst-chk5.cc: New file.
4049 * debug/tst-chk6.cc: New file.
4050 * debug/tst-lfschk4.cc: New file.
4051 * debug/tst-lfschk5.cc: New file.
4052 * debug/tst-lfschk6.cc: New file.
4053 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
4054 prototypes in C++.
4055 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
4056 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
4057 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
4058
b53eef9c
UD
40592007-09-13 Ulrich Drepper <drepper@redhat.com>
4060
4061 * po/cs.po: Update from translation team.
4062
af385590
RM
40632007-09-11 Roland McGrath <roland@redhat.com>
4064
4065 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
4066 compiling.
4067
af2f25a1
RM
40682007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4069
4070 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
4071
94733ae0
RM
40722007-09-05 Roland McGrath <roland@redhat.com>
4073
4074 * manual/signal.texi (Signaling Another Process): Typo fix.
4075 From Karl Berry <karl@freefriends.org>.
4076
de4d8563
UD
40772007-08-29 Ulrich Drepper <drepper@redhat.com>
4078
4079 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
4080 zero if not defined.
4081 (make_request): Recognize optimistic addresses and treat them like
4082 deprecated addresses.
4083 Reported by Neil Horman <nhorman@redhat.com>.
4084
0adfcc05
UD
40852007-08-28 Ulrich Drepper <drepper@redhat.com>
4086
f3c54060
UD
4087 * nscd/connections.c (send_ro_fd): Also transfer file size.
4088 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
4089 file size don't call fstat.
4090
0adfcc05
UD
4091 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
4092 ahead and map the file. This should always be correct and we can
4093 catch problems later.
4094
3586b2b6
UD
40952007-08-28 Jakub Jelinek <jakub@redhat.com>
4096
4097 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
4098 prototypes.
4099 (__fread_alias, __fread_unlocked_alias): New aliases.
4100 (fread): New extern inline.
4101 (fread_unlocked): Likewise. Undef macro before definition of
4102 the inline function.
4103 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
4104 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
4105 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
4106 and __fread_unlocked_chk@@GLIBC_2.7.
4107 * debug/fread_chk.c: New file.
4108 * debug/fread_u_chk.c: New file.
4109 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
4110
3704aa0b
RM
41112007-08-27 Jakub Jelinek <jakub@redhat.com>
4112
4113 * sysdeps/unix/sysv/linux/syscalls.list
4114 (personality): Change caller to EXTRA.
4115
80e7d6a6
UD
41162007-08-25 Ulrich Drepper <drepper@redhat.com>
4117
278bfa00
UD
4118 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
4119 to keep gcc quiet.
4120 * iconvdata/iso-2022-cn.c (BODY): Likewise.
4121
a45d733c
UD
4122 * locale/programs/ld-collate.c (collate_output): Avoid warning if
4123 NDEBUG is defined.
4124
5dfeae0e
UD
4125 * Makerules: Use -p option with mkdir.
4126
8f1fe057
UD
4127 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
4128 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
bd0dcd28
UD
4129 (_xdr_directory_obj): Likewise.
4130 (xdr_entry_obj): Likewise.
4131 (xdr_group_obj): Likewise.
4132 (xdr_link_obj): Likewise.
4133 (xdr_table_obj): Likewise.
4134 (_xdr_nis_result): Likewise.
4135 (_xdr_ns_request): Likewise.
4136 (_xdr_ib_request): Likewise.
4137 (_xdr_nis_taglist): Likewise.
4138 (xdr_cback_data): Likewise.
8f1fe057 4139 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
bd0dcd28
UD
4140 (xdr_ypresp_maplist): Likewise.
4141
01339a67
UD
4142 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
4143
3fa10468
UD
4144 * posix/regex_internal.h: Prevent some declarations and definitions
4145 to be seen when used in tests.
4146
ec1e04de
UD
4147 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
4148 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
4149
7a344d1d
UD
4150 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
4151
f8f6ff5d
UD
4152 * config.make.in (datarootdir): Add to shut up configure.
4153
76fca9f1
UD
4154 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
4155 associativity for fully-associative caches.
4156
80e7d6a6
UD
4157 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
4158 requests. Fill on more associativity values for L2.
4159 Patch mostly by Evandro Menezes.
4160
cb5ba304
UD
41612007-08-24 Ulrich Drepper <drepper@redhat.com>
4162
d250df8c
UD
4163 * sysdeps/unix/sysv/linux/x86_64/init-first.c
4164 (_libc_vdso_platform_setup): Avoid using exported variable by using
4165 alias.
4166
88f61aaf
UD
4167 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
4168
cb5ba304 4169 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
cb104bd7 4170 fallocate64 as EXTRA. It is not referenced if the symbol isn't
cb5ba304
UD
4171 defined.
4172
62e1b1f5
UD
41732007-08-23 Ulrich Drepper <drepper@redhat.com>
4174
44b2e581
UD
4175 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
4176 align stack for call if pltexit is to be used.
4177
73e3ff07
UD
4178 [BZ #3924]
4179 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
4180 align for function call in case pltexit has to be called later.
4181
62e1b1f5
UD
4182 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
4183 implicit atomic operation when storing function pointer.
4184 (_dl_runtime_profile): Likewise.
4185
0008163a
UD
41862007-08-17 Jakub Jelinek <jakub@redhat.com>
4187
4188 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
4189 NIS_NOTFOUND.
4190
55ea8790
UD
41912007-08-21 Ulrich Drepper <drepper@redhat.com>
4192
2e0e1a05
UD
4193 [BZ #4566]
4194 * string/strtok.c: Fix typo in comment.
4195
682e4437
UD
4196 [BZ #4582]
4197 * debug/segfault.c: Fix typos in comments.
4198
7d55c9eb
UD
4199 [BZ #4588]
4200 * stdio-common/tempnam.c: Fix comment, it is not checked that
4201 TMPDIR points to a writable directory.
4202
0f8f993c
UD
4203 [BZ #4726]
4204 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
4205 memory allocated for the name server address.
4206
1465dd0f
UD
4207 [BZ #4946]
4208 * nscd/connections.c (handle_request): Using sendfile always
4209 requires that mmap is used for the database.
4210 Patch by Petr Baudis <pasky@suse.cz>.
4211
c44d3bdf
UD
4212 [BZ #4905]
4213 * nscd/hstcache.c (cache_addhst): When reloading an entry which
4214 suddenly has two or more addresses, ignore it and remove the old
4215 entry.
4216
1ce7d80d
UD
4217 [BZ #4814]
4218 * resolv/res_hconf.c: Prepare for compiling outside libc.
4219 * nscd/res_hconf.c: New file.
4220 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
4221 the new file.
4222 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
4223 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
4224
a30d41c1
UD
4225 * nscd/hstcache.c (cache_addhst): Minimal optimization.
4226
45dc3ad7
UD
4227 [BZ #4925]
4228 * debug/pcprofiledump.c: Turn on internationalization by calling
4229 setlocale. Patch mostly by Benno Schulenberg.
4230
55ea8790
UD
4231 [BZ #4936]
4232 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
4233 the state.
4234 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
4235 * iconvdata/bug-iconv5.c: New file.
4236
0b82ff74
UD
42372007-08-04 Carlos O'Donell <carlos@systemhalted.org>
4238
55ea8790 4239 [BZ #4896]
0b82ff74
UD
4240 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
4241 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
4242 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
4243 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
4244 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
4245 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
4246 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
4247 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
4248
ee16a55a
UD
42492007-08-21 Ulrich Drepper <drepper@redhat.com>
4250
4251 [BZ #4937]
4252 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
4253 lookup loop. Suggested by John Reiser.
4254
b211fe0f
JJ
42552007-08-21 Jakub Jelinek <jakub@redhat.com>
4256
4257 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
4258
fb84593c
UD
42592007-08-20 Ulrich Drepper <drepper@redhat.com>
4260
4261 * csu/libc-start.c: Don't handle VDSO_SETUP here.
4262 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
4263 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
4264 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
4265 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
4266 to...
4267 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
4268
b83fb35c
UD
42692007-08-18 Ulrich Drepper <drepper@redhat.com>
4270
4271 * po/nl.po: Update from translation team.
4272
20806a70
AJ
42732007-08-16 Andreas Jaeger <aj@suse.de>
4274
4275 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
4276 Reported by Peter Festner <peter.festner@ewetel.net>.
4277
42282d57
JJ
42782007-08-17 Jakub Jelinek <jakub@redhat.com>
4279
4280 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
4281
8a501135
JJ
42822007-08-16 Jakub Jelinek <jakub@redhat.com>
4283
cb84d1e4
JJ
4284 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
4285 to check for undefined symbols.
4286
91ddd9c4
JJ
4287 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
4288 If the syscall fails, set errno to the actual returned error number
4289 rather than EINVAL.
4290 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
4291 arguments are incorrect, set errno to EINVAL, if the syscall
4292 fails, set errno to the actual returned error number.
4293
18915760
JJ
4294 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
4295 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
4296
8a501135
JJ
4297 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
4298 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
4299 file.
4300 (ASI_PNF, ASI_BLK_P): Don't define.
4301 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
4302 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
4303 file.
4304 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
4305 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
4306 file.
4307
e4720b0e
JJ
43082007-08-15 Jakub Jelinek <jakub@redhat.com>
4309
4310 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
4311 FE_UNDERFLOW on Niagara CPUs.
4312
4313 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
4314 exceptions.
4315
702a9414
JJ
43162007-08-14 Jakub Jelinek <jakub@redhat.com>
4317
467d1345
JJ
4318 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
4319 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
4320 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
4321 flush should be used or not inside of the function.
4322 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
4323
4324 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
4325 __thread_start): Use HIDDEN_JUMPTARGET.
4326 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
4327 __thread_start): Likewise.
4328 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
4329
702a9414
JJ
4330 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
4331 Add libc_hidden_proto.
4332 (STRTOF): Add libc_hidden_proto.
4333 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
4334 (strtold_l, wcstold_l): Use them as second argument for
4335 long_double_symbol.
4336
c6c8f0ec
UD
43372007-08-14 Ulrich Drepper <drepper@redhat.com>
4338
4339 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
4340
5e88abf9
UD
43412007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4342
4343 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
4344
fc4819b0
UD
43452007-08-14 Ulrich Drepper <drepper@redhat.com>
4346
4347 * po/bg.po: New file. From the translation team.
4348
22502ea2
UD
43492007-08-13 Jakub Jelinek <jakub@redhat.com>
4350
4351 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
4352 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
4353 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
4354 when each feature was introduced.
4355
4356 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
4357 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
4358 (CHECK_HASH): New macro.
4359 (PREPARE_VERSION): Use it.
4360
4361 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
4362 prototype if not __ASSUME_PSELECT.
4363 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
4364 prototype if not __ASSUME_PPOLL.
4365
4366 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
4367
4368 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
4369 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
4370 is defined.
4371
9c6f6953
UD
43722007-08-13 Ulrich Drepper <drepper@redhat.com>
4373
4374 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4375 (_libc_vdso_platform_setup): If vDSO is not available point
4376 __vdso_gettimeofday to the vsyscall.
4377 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
4378 __vdso_gettimeofday instead of vsyscall.
4379
f8de5057
UD
43802007-08-13 Jakub Jelinek <jakub@redhat.com>
4381
4382 * nscd/servicescache.c: Include kernel-features.h.
4383 * nscd/gai.c: Likewise.
4384 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
4385 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
4386 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
4387 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
4388 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
4389 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
4390 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
4391 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
4392 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
4393
3c87d79d
UD
43942007-08-12 Ulrich Drepper <drepper@redhat.com>
4395
ea37207a
UD
4396 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
4397 and _dl_get_origin defines anymore.
4398
4eb375fe
UD
4399 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
4400 Build fix for systems which might lack POSIX timer support.
4401
3c87d79d
UD
4402 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4403 (_libc_vdso_platform_setup): Mangle function pointers before storing
4404 them.
4405 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
4406 Demangle vdso pointer before use.
4407 (INTERNAL_VSYSCALL): Likewise.
4408
4409 * elf/cache.c (primes): Mark as const.
4410 Noted by Roland McGrath.
4411
27d9ffda
UD
44122007-08-01 Andreas Jaeger <aj@suse.de>
4413 Jakub Jelinek <jakub@redhat.com>
4414
4415 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
4416 (options): Add option.
4417 (parse_opt): Handle option.
4418 (manual_link): Adjust process_file caller. Call implicit_soname.
4419 (search_dir): Formatting. Use and populate auxiliary cache.
4420 (main): Load and save auxiliary cache.
4421 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
4422 stat64 from fstat64 to caller.
4423 (implicit_soname): New function.
4424 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
4425 leave *soname as NULL.
4426 * elf/cache.c: Include libgen.h.
4427 (print_entry, print_cache, compare, save_cache, add_to_cache):
4428 Formatting and cleanups.
4429 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
4430 aux_cache_file): New structures.
4431 (AUX_CACHEMAGIC): Define.
4432 (primes): New array.
4433 (aux_hash_size, aux_hash): New variables.
4434 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
4435 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
4436 load_aux_cache, save_aux_cache): New functions.
4437 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
4438 (init_aux_cache, search_aux_cache, add_to_aux_cache,
4439 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
4440 (process_file): Adjust prototype.
4441
8d944b0f
UD
44422007-08-12 Jakub Jelinek <jakub@redhat.com>
4443
4444 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
4445 with __need_size_t.
4446
75fb247e
UD
44472007-08-12 Ulrich Drepper <drepper@redhat.com>
4448
fb86328a
UD
4449 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
4450 r_found_version structure as second parameter.
4451 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
4452 (_dl_vdso_vsym): Change type of second parameter accordingly.
4453 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
4454 (_libc_vdso_platform_setup): Adjust.
974a1f0f 4455 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
fb86328a
UD
4456 (_libc_vdso_platform_setup): Likewise.
4457
75fb247e
UD
4458 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
4459 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
4460 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
4461 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
4462 * csu/libc-start.c: Pretty printing.
4463 Use VDSO_SETUP if defined.
4464 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
4465 and let generic code call into _libc_vdso_platform_setup.
4466 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
4467 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
4468 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
4469 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
4470 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
4471 for GLIBC_PRIVATE.
4472 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
4473 (sysdep_rountines): Add dl-vdso.
4474
4475 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
4476 of routines.
4477
4478 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
4479 attribute_hidden to __vdso_gettimeofday prototype.
4480
9229b83e
RM
44812007-08-12 Roland McGrath <roland@redhat.com>
4482
4483 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
4484 From: Karl Berry <karl@freefriends.org>.
4485
4503061f
UD
44862007-08-11 Ulrich Drepper <drepper@redhat.com>
4487
4488 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
4489 an atime update for the files we read.
4490
d7e23b02
UD
44912007-08-10 Ulrich Drepper <drepper@redhat.com>
4492
7cf89e95
UD
4493 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
4494
9d169bb3 4495 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
d7e23b02
UD
4496 instead of mkstemp.
4497
4498 * misc/Makefile (routines): Add mkostemp and mkostemp64.
4499 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
4500 * misc/mkostemp.c: New file.
4501 * misc/mkostemp64.c: New file.
4502 * stdlib/stdlib.h: Declare the new functions.
4503 * sysdeps/posix/tempname.c: Add new parameter which is added to
4504 the flags for open. Remove __GT_BIGFILE handling.
4505 * stdio-common/tempname.c: Likewise.
4506 * include/stdio.h: Adjust __gen_tempname prototype.
4507 Renumber __GT_* constants.
4508 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
4509 * misc/mkdtemp.c: Likewise.
4510 * misc/mkstemp.c: Likewise.
4511 * misc/mkstemp64.c: Likewise.
4512 * misc/mktemp.c: Likewise.
4513 * stdio-common/tempnam.c: Likewise.
4514 * stdio-common/tmpfile.c: Likewise.
4515 * stdio-common/tmpfile64.c: Likewise.
4516 * stdio-common/tmpnam.c: Likewise.
4517 * stdio-common/tmpnam_r.c: Likewise.
4518
22532966
RM
45192007-08-10 Roland McGrath <roland@frob.com>
4520
4521 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
4522 New macros.
4523 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
4524 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4525
673876e6
UD
45262007-08-10 Ulrich Drepper <drepper@redhat.com>
4527
aa132749
UD
4528 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
4529 possible.
4530 * nss/nss_files/files-alias.c (internal_setent): Likewise.
4531 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
4532 * nss/nss_files/files-have_o_cloexec.c: New file.
4533
22532966 4534 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
673876e6
UD
4535 available.
4536
1e286653
JJ
45372007-08-10 Jakub Jelinek <jakub@redhat.com>
4538
4539 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
4540 ___new_wcstold_l): New weak aliases.
4541 (strtold_l, wcstold_l): Use them as second argument for
4542 long_double_symbol.
4543
f07f72f3
UD
45442007-08-09 Ulrich Drepper <drepper@redhat.com>
4545
6479496a
UD
4546 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
4547 register in test for error.
4548
c4adefbd
UD
4549 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
4550 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
4551
f07f72f3
UD
4552 * po/sv.po: Update from translation team.
4553
eef38c28
RM
45542007-08-06 Roland McGrath <roland@redhat.com>
4555
773e305e
RM
4556 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
4557 Remove __strto*_l inlines.
4558 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
4559 * stdlib/strtod.c: Add libc_hidden_def.
4560 * stdlib/strtod_l.c: Likewise.
4561 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
4562 for __new_strtold and __new_wcstold.
4563 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
4564 __STRTOF, STRTOF.
4565 * stdlib/strtol.c: Add libc_hidden_def.
4566 * stdlib/strtol_l.c: Likewise.
4567 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
4568 strtoq.
4569
4570 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
4571
4572 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
4573 * scripts/data/localplt-generic.data: ... here.
4574 * elf/Makefile (check-data): Get generic file if no other.
4575 ($(objpfx)check-localplt.out): Make target unconditional.
4576
eef38c28
RM
4577 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
4578 Use ElfW(Nhdr).
4579
742df3a4
UD
45802007-08-05 Ulrich Drepper <drepper@redhat.com>
4581
4582 * po/zh_CN.po: Updated translation from translation team.
4583
0470fa46
JJ
45842007-08-05 Jakub Jelinek <jakub@redhat.com>
4585
4586 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
4587 Don't use CGOTSETUP and CGOTRESTORE macros.
4588
b5075bdc
RM
45892007-08-04 Roland McGrath <roland@redhat.com>
4590
4591 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
4592
9accc268
JJ
45932007-08-04 Jakub Jelinek <jakub@redhat.com>
4594
4595 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
4596 __extension__ around the whole statement expression.
4597
220ae3ef
UD
45982007-08-04 Ulrich Drepper <drepper@redhat.com>
4599
c8ccd8e3
UD
4600 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
4601 elements during initialization.
4602
220ae3ef
UD
4603 * po/pl.po: Updated translation from translation team.
4604 * po/tr.po: Likewise.
11960f7f 4605 * po/nl.po: Likewise.
220ae3ef 4606
2fb20667
UD
46072007-08-03 Ulrich Drepper <drepper@redhat.com>
4608
4609 * rt/aio.h: Add __nonnull attributes.
4610
ce31a3b1
UD
46112007-08-03 Jakub Jelinek <jakub@redhat.com>
4612
64f6281c
UD
4613 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
4614 * stdlib/Makefile (tests): Add tst-strtod5.
4615 (tst-strtod5-ENV): New.
4616 * stdlib/tst-strtod5.c: New file.
4617
ce31a3b1
UD
4618 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
4619 failed.
4620 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
4621 on failure.
4622
4623 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
4624 allocated.
4625
754980e4
JJ
46262007-08-03 Jakub Jelinek <jakub@redhat.com>
4627
4628 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
4629 numbers.
4630
497af0cb
UD
46312007-08-02 Ulrich Drepper <drepper@redhat.com>
4632
cbf0489b
UD
4633 * io/Makefile (aux): Add have_o_cloexec.
4634 * include/fcntl.h: Declare __have_o_cloexec.
4635 * io/have_o_cloexec.c: New file.
4636 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
4637 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
4638 fcntl call if not necessary.
4639 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
4640 of local variable.
4641
fa39685d
UD
4642 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
4643 Avoid memset, add explicit initialization.
4644 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
4645 to the end and change into zero-sized array.
4646 Move lock member to fill a hole on 64-bit platforms.
9b2e9577
UD
4647
4648 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
4649 inline functions.
4650 * include/stdlib.h: Add __strto*_internal prototypes here.
4651 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
4652 inline functions.
4653 * include/wchar.h: Add __wcsto*_internal prototypes.
4654 * sysdeps/generic/inttypes.h: No need to protect the declaration
4655 of the __strto*_internal and __wcsto*_internal members here.
4656
497af0cb
UD
4657 * rt/mqueue.h: Change const to __const and add nonnull attributes.
4658
d17a8cf0
RM
46592007-08-02 Roland McGrath <roland@redhat.com>
4660
4661 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
4662 $(inst_bindir)/getconf if possible.
4663
4664 * posix/Makefile ($(objpfx)getconf.speclist): New target.
4665 (generated): Add it.
4666 ($(inst_libexecdir)/getconf): Use it.
4667
0abf17de
UD
46682007-08-01 Ulrich Drepper <drepper@redhat.com>
4669
4670 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
4671 /proc is faster and sufficient. /sys is still needed for
4672 __get_nprocs_conf.
4673
5e0923ab
UD
46742007-08-01 Jakub Jelinek <jakub@redhat.com>
4675
4676 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
4677 syscall as __fallocate64.
4678 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
4679 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
4680
1475e201
UD
46812007-07-30 Jakub Jelinek <jakub@redhat.com>
4682
4683 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
4684 value.
4685
4686 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
4687 if off_t is different rank from size_t.
4688
4689 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
4690 uw_frame_state_for): Avoid type punning warnings.
4691 * sysdeps/generic/unwind-dw2-fde-glibc.c
4692 (_Unwind_IteratePhdrCallback): Likewise.
4693 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
4694 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
4695 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
4696 pointers.
4697
e076bece
UD
46982007-07-31 Ulrich Drepper <drepper@redhat.com>
4699
9506149a
UD
4700 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
4701 total processors using sysfs.
4702 (__get_nprocs): Use sysfs to determine which processors are online.
e076bece 4703
bbeaaa84
JJ
47042007-07-31 Jakub Jelinek <jakub@redhat.com>
4705
09881398
JJ
4706 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
4707 syscall arguments count.
4708
bbeaaa84
JJ
4709 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
4710
087ef75f
RM
47112007-07-30 Roland McGrath <roland@redhat.com>
4712
4713 * manual/libc.texinfo: Update copyrights, formatting magic, and
4714 @dircategory. From Karl Berry <karl@freefriends.org>.
4715
44f08a6e
UD
47162007-07-29 Ulrich Drepper <drepper@redhat.com>
4717
eafaae72
UD
4718 [BZ #4860]
4719 * io/Makefile (headers): Add bits/fcntl2.h.
4720
c5705565
UD
4721 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
4722 using gcc builtin.
4723 (__CPU_EQUAL_S): Likewise.
4724
44f08a6e
UD
4725 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
4726 (tests): Add tst-cpuset.
4727 * posix/sched_cpualloc.c: New file.
4728 * posix/sched_cpufree.c: New file.
4729 * posix/tst-cpuset.c: New file.
4730 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
4731 GLIBC_2.7.
4732 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
4733 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
4734 macros. Define CPU_*_S macros.
4735
8f5e1400
UD
47362007-07-28 Ulrich Drepper <drepper@redhat.com>
4737
5b74caf6
UD
4738 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
4739 entry.
4740
a26d01bb 4741 [BZ #4858]
8f5e1400
UD
4742 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
4743 #.0g and value rounded to 1.0.
4744 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
4745
085a4412
UD
47462007-07-26 Jakub Jelinek <jakub@redhat.com>
4747
cedb4109
UD
4748 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
4749 for int_frac_digits and frac_digits.
4750
4751 * login/logout.c (logout): Avoid aliasing violation.
4752 * login/logwtmp.c (logwtmp): Likewise.
4753
4754 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
4755
9d9febc7
UD
4756 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
4757 to avoid warning.
4758 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
4759 warning.
4760 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
4761 warning.
4762 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
4763 to avoid warnings.
4764
701666b7
UD
4765 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
4766 void **.
4767 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
4768
4769 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
4770 char * to avoid warning.
4771 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
4772
4773 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
4774
4775 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
4776 allocate_arrays): Cast second argument to charmap_find_symbol
4777 to char * to avoid warnings.
4778
4779 * locale/programs/repertoire.c (repertoire_new_char): Change
4780 from_nr, to_nr and cnt to unsigned long, adjust printf format
4781 string.
4782
4783 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
4784 Cast second argument to new_element to char * to avoid warnings.
4785
4786 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
4787
4788 * intl/gettextP.h (struct loaded_domain): Change plural to const
4789 struct expression *.
4790 * intl/plural-eval.c (plural_eval): Change first argument to
4791 const struct expression *.
4792 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
4793 argument to const struct expression **.
4794 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
4795 prototypes.
4796 * intl/loadmsgcat (_nl_unload_domain): Cast away const
4797 in call to __gettext_free_exp.
4798
4799 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
4800 unitialized wstring/wpattern var warnings.
4801
4802 * posix/runtests.c (struct a_test): Make data field const char *.
4803
4804 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
4805 vars if not LDBL_MANT_DIG >= 106.
4806
4807 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
4808
4809 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
4810 __find_specmb to avoid warning.
4811
4812 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
4813
4814 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
4815 to avoid warnings.
4816
4817 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
4818 initializer.
4819
4820 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
4821 tv var when it will be actually used.
4822
4823 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
4824 to avoid warnings.
4825
085a4412
UD
4826 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
4827 char array resp. pointer.
4828 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
4829 char array.
4830 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
4831 to const unsigned char **.
4832 (ucs4_to_cns11643): Change second argument to unsigned char *.
4833 * iconvdata/euc-tw.c (BODY): Change endp type to
4834 const unsigned char *.
4835 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
4836 to unsigned char *.
4837 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
4838 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
4839 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
4840 types to unsigned char pointers/arrays instead of char.
4841 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
4842 to unsigned char *.
4843 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
4844 * iconvdata/jis0212.h: Include assert.h.
4845 (ucs4_to_jisx0212): Change second argument to unsigned char *.
4846 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
4847 of trying to handle that.
4848 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
4849 shut up a warning.
4850 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
4851 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
4852 two dimensional const unsigned char arrays.
4853 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
4854 Initialize endp to inptr to shut up a warning.
4855
fa69dc9c
UD
48562007-07-20 Jakub Jelinek <jakub@redhat.com>
4857
ae1ad762
UD
4858 [BZ #4772]
4859 * time/strptime_l.c (__strptime_internal): Silently ignore
4860 strftime modifiers and field width in recursive calls.
4861
fa69dc9c
UD
4862 * include/time.h (enum ptime_locale_status): Remove.
4863 (__strptime_internal): Remove decided and era_cnt arguments,
4864 add statep argument.
4865 * time/strptime_l.c (__strptime_internal): Remove decided
4866 and era_cnt arguments, add statep argument. Don't recompute
4867 any fields in recursive calls, only update caller's tm
4868 and state, if recursive call fails, don't change tm nor
4869 any state.
4870 (get_alt_number): Adjust.
4871 (recursive): Adjust caller.
4872 (strptime): Likewise.
4873 * time/strptime.c (strptime): Likewise.
4874
7b503bcc
UD
48752007-07-19 Jakub Jelinek <jakub@redhat.com>
4876
4877 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
4878 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
4879 if from and to charsets are the same.
4880 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
4881 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
4882 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
4883
48842007-07-17 Jakub Jelinek <jakub@redhat.com>
4885
4886 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
4887 Don't define wint_t when __need_mbstate_t unless it
4888 is necessary.
4889 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
4890 in the typedef if possible.
4891 * wctype/wctype.h (wint_t): Define by including
4892 wchar.h with __need_wint_t instead of including stddef.h
4893 with __need_wint_t and as fallback definining it ourselves.
4894 * iconv/gconv.h (__need_wint_t): Define before including
4895 wchar.h.
4896 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
4897 or _GLIBCPP_USE_WCHAR_T.
4898 (__need_wchar_t): Don't define
4899 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
4900 (__need_wint_t): Don't define before including stddef.h,
4901 define before including wchar.h only if _LIBC or
4902 _GLIBCPP_USE_WCHAR_T.
4903 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
4904 * sysdeps/mach/hurd/_G_config.h: Likewise.
4905 * sysdeps/generic/_G_config.h: Likewise.
4906 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
4907 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
4908 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
4909 if _LIBC or _GLIBCPP_USE_WCHAR_T.
4910
a95a608f
UD
49112007-07-28 Ulrich Drepper <drepper@redhat.com>
4912
4913 * sysdeps/posix/posix_fallocate64.c: Undefine
4914 __posix_fallocate64_l64 before alias handling.
4915 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
4916 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
4917 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
4918 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
4919
4920 * io/tst-posix_fallocate.c: Include <fcntl.h>.
4921
49222007-07-23 Jakub Jelinek <jakub@redhat.com>
4923
4924 * locale/programs/ld-collate.c (atwc): New variable.
4925 (add_to_tablewc): New toplevel function, moved from collate_output.
4926 (collate_output): Remove add_to_tablewc nested function.
4927
4928 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
4929 (name_insert): New function.
4930 (write_output): Remove hash_table and hash_size vars and name_insert
4931 nested function.
4932
80d4c3b0
RM
49332007-07-24 Roland McGrath <roland@redhat.com>
4934
4935 * Makerules (install-others-programs-nosubdir): New target.
4936 (install-no-libc.a-nosubdir): Depend on it.
4937
4938 * iconv/Makefile (install-others-programs): Set this instead of
4939 install-others.
4940 * login/Makefile (install-others-programs): Likewise.
4941 * posix/Makefile (install-others-programs): Likewise.
4942
4943 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
4944 dependencies.
4945
c1bf9f14
UD
49462007-07-23 Ulrich Drepper <drepper@redhat.com>
4947
4948 * io/Makefile (tests): Add tst-posix_fallocate.
4949 * io/tst-posix_fallocate.c: New file.
4950
4951 * sysdeps/unix/sysv/linux/kernel-features.h: Define
4952 __ASSUME_FALLOCATE.
4953
2320270c
RM
49542007-07-22 Roland McGrath <roland@frob.com>
4955
3dadfa7e
RM
4956 * hurd/getdport.c: Add missing copyright year update.
4957
2320270c
RM
4958 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
4959 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
4960
cc783763
UD
49612007-07-22 Ulrich Drepper <drepper@redhat.com>
4962
c942388d
UD
4963 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
4964
cc783763
UD
4965 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
4966 O_CLOEXEC is needed.
4967 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
4968 Avoid additional fcntl to set O_CLOEXEC if not needed.
4969 * nis/nss_compat/compat-initgroups.c: Likewise.
4970 * nis/nss_compat/compat-pwd.c: Likewise.
4971 * nis/nss_compat/compat-spwd.c: Likewise.
4972
610903b0
RM
49732007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
4974
3dadfa7e 4975 [BZ #3665]
5c3d7832
RM
4976 * manual/errno.texi: Change ECANCELED value to 119.
4977
3dadfa7e 4978 [BZ #4610]
610903b0
RM
4979 * mach/lock-intern.h: Include <sys/cdefs.h>.
4980
3dadfa7e 4981 [BZ #4178]
610903b0
RM
4982 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
4983 reading A.
4984
3dadfa7e
RM
4985 [BZ #4126]
4986 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
4987 to __sigsuspend.
610903b0
RM
4988
4989 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
4990
49912006-06-13 Thomas Schwinge <tschwinge@gnu.org>
4992
4993 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
4994 `__ASSEMBLER__'.
4995 * sysdeps/mach/hurd/i386/tls.h: Likewise.
4996
acf79996
UD
49972007-07-21 Ulrich Drepper <drepper@redhat.com>
4998
dde0763a
UD
4999 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
5000 descriptor received from nscd.
5001
acf79996
UD
5002 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
5003
5004 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
5005 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5006 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5007 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5008 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5009 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5010
00d26929
JJ
50112007-07-20 Jakub Jelinek <jakub@redhat.com>
5012
403445d7
JJ
5013 [BZ #4816]
5014 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
5015
00d26929
JJ
5016 [BZ #4813]
5017 * login/forkpty.c (forkpty): Close master and slave fds on
5018 fork failure. Patch by
5019 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
5020
087722b8
UD
50212007-07-18 Jakub Jelinek <jakub@redhat.com>
5022
5023 * include/features.h (__USE_ISOC95): New define.
5024 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
5025 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
5026 for -std=iso9899:199409.
5027 * CONFORMANCE: Remove comments about unsupported AMD1.
5028
b042b023
UD
50292007-07-17 Jakub Jelinek <jakub@redhat.com>
5030
5031 * sysdeps/ia64/sched_cpucount.c: New file.
5032 * sysdeps/powerpc/sched_cpucount.c: New file.
5033
8381e467
UD
5034 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
5035 __BEGIN_DECLS/__END_DECLS around the prototype.
5036 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
5037 pointer to const cpu_set_t.
5038
50e16f85
UD
5039 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
5040 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
5041 __need_size_t and include stddef.h.
5042 * sysvipc/sys/msg.h: Likewise.
5043 * posix/sched.h: Likewise.
5044 * hurd/hurd/signal.h (__need_size_t): Define.
5045
5046 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
5047 neither does signal.h in pedantic ISO C namespaces. stdio.h
5048 no longer defines wint_t or wchar_t.
5049
b257c726
UD
5050 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
5051 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
5052 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
5053 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
5054 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
5055 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
5056 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
5057 * debug/printf_chk.c (__printf_chk): Likewise.
5058 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
5059 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
5060
5061 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
5062 Define.
5063
d5078b9f
UD
5064 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
5065 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
5066
1c3e748e
UD
50672007-07-16 Jakub Jelinek <jakub@redhat.com>
5068
5069 [BZ #4792]
5070 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
5071 * malloc/malloc.h (realloc): Likewise.
5072
4e425301
UD
5073 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
5074 if one of proc_file_chain streams has that fileno.
5075 * stdio-common/Makefile (tests): Add tst-popen2.
5076 * stdio-common/tst-popen2.c: New test.
5077
2e2efe65
RM
50782007-07-14 Jakub Jelinek <jakub@redhat.com>
5079
5080 * elf/ldconfig.c: Allow GPLv2 or any later version.
5081 * elf/readlib.c: Likewise.
5082 * elf/chroot_canon.c: Likewise.
5083 * elf/cache.c: Likewise.
5084 * nscd/mem.c: Likewise.
5085 * nscd/getpwuid_r.c: Likewise.
5086 * nscd/grpcache.c: Likewise.
5087 * nscd/aicache.c: Likewise.
5088 * nscd/getsrvbynm_r.c: Likewise.
5089 * nscd/nscd.c: Likewise.
5090 * nscd/servicescache.c: Likewise.
5091 * nscd/getsrvbypt_r.c: Likewise.
5092 * nscd/initgrcache.c: Likewise.
5093 * nscd/gethstbyad_r.c: Likewise.
5094 * nscd/gethstbynm2_r.c: Likewise.
5095 * nscd/getgrnam_r.c: Likewise.
5096 * nscd/nscd_setup_thread.c: Likewise.
5097 * nscd/getpwnam_r.c: Likewise.
5098 * nscd/gai.c: Likewise.
5099 * nscd/connections.c: Likewise.
5100 * nscd/dbg_log.c: Likewise.
5101 * nscd/cache.c: Likewise.
5102 * nscd/hstcache.c: Likewise.
5103 * nscd/nscd_conf.c: Likewise.
5104 * nscd/getgrgid_r.c: Likewise.
5105 * nscd/pwdcache.c: Likewise.
5106 * catgets/gencat.c: Likewise.
5107 * locale/programs/linereader.h: Likewise.
5108 * locale/programs/locarchive.c: Likewise.
5109 * locale/programs/ld-paper.c: Likewise.
5110 * locale/programs/locfile-kw.h: Likewise.
5111 * locale/programs/ld-address.c: Likewise.
5112 * locale/programs/xmalloc.c: Likewise.
5113 * locale/programs/ld-time.c: Likewise.
5114 * locale/programs/localedef.c: Likewise.
5115 * locale/programs/simple-hash.c: Likewise.
5116 * locale/programs/xstrdup.c: Likewise.
5117 * locale/programs/ld-numeric.c: Likewise.
5118 * locale/programs/locfile-kw.gperf: Likewise.
5119 * locale/programs/ld-collate.c: Likewise.
5120 * locale/programs/charmap-kw.gperf: Likewise.
5121 * locale/programs/charmap.h: Likewise.
5122 * locale/programs/charmap-kw.h: Likewise.
5123 * locale/programs/config.h: Likewise.
5124 * locale/programs/locfile.c: Likewise.
5125 * locale/programs/ld-ctype.c: Likewise.
5126 * locale/programs/charmap.c: Likewise.
5127 * locale/programs/ld-messages.c: Likewise.
5128 * locale/programs/repertoire.h: Likewise.
5129 * locale/programs/locale.c: Likewise.
5130 * locale/programs/ld-name.c: Likewise.
5131 * locale/programs/linereader.c: Likewise.
5132 * locale/programs/locfile.h: Likewise.
5133 * locale/programs/3level.h: Likewise.
5134 * locale/programs/ld-monetary.c: Likewise.
5135 * locale/programs/ld-measurement.c: Likewise.
5136 * locale/programs/charmap-dir.c: Likewise.
5137 * locale/programs/ld-identification.c: Likewise.
5138 * locale/programs/localedef.h: Likewise.
5139 * locale/programs/charmap-dir.h: Likewise.
5140 * locale/programs/repertoire.c: Likewise.
5141 * locale/programs/simple-hash.h: Likewise.
5142 * locale/programs/ld-telephone.c: Likewise.
5143 * locale/programs/locale-spec.c: Likewise.
5144 * locale/programs/locfile-token.h: Likewise.
5145 * posix/getconf.c: Likewise.
5146 * iconv/dummy-repertoire.c: Likewise.
5147 * iconv/iconv_charmap.c: Likewise.
5148 * iconv/iconvconfig.c: Likewise.
5149 * iconv/iconv_prog.c: Likewise.
5150 * malloc/memusagestat.c: Likewise.
5151 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
5152
84c23a3d
RM
51532007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5154
5155 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
5156 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
5157 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
5158 check for the first argument.
5159
1c298d08
UD
51602007-07-12 Jakub Jelinek <jakub@redhat.com>
5161
5162 [BZ #4775]
5163 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
5164 (__tgmath_real_type): Fix if expr is const int or other const
5165 qualified integral type.
5166 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
5167 expressions and handle const qualified arguments.
5168 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
5169 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
5170 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
5171 statement expressions.
5172 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
5173 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
5174 (__TGMATH_UNARY_IMAG): Define.
5175 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
5176 * math/Makefile (tests): Add test-tgmath2.
5177 (CFLAGS-test-tgmath2.c): Add.
5178 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
5179 count_cfloat, count_cldouble): New variables.
5180 (NCCALLS): Define.
5181 (main): Check number of complex calls as well.
5182 (F(compile_test)): Add complex tests and tests with const qualified
5183 arguments.
5184 (y, z, ccount): Define.
5185 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
5186 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
5187 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
5188 F(cproj)): New functions.
5189 * math/test-tgmath2.c: New test.
5190
51912007-07-11 Jakub Jelinek <jakub@redhat.com>
5192
5193 [BZ #4776]
5194 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
5195 RPATH etc. as "/" rather than "", don't segfault on empty paths,
5196 instead output ".".
5197 * dlfcn/Makefile (distribute): Add glreflib3.c.
5198 (module-names): Add glreflib3.
5199 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
5200 glreflib1.so.
5201 (LDFLAGS_glreflib3.so): New.
5202 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
5203 glreflib1.so.
5204 * dlfcn/glreflib3.c: New file.
5205
5206 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
5207 returned -1, return NULL.
5208 * intl/explodename.c (_nl_explode_name): Return -1 if
5209 _nl_normalize_codeset failed.
5210
a88f47a7
UD
52112007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
5212
5213 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
5214 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
5215 and avoid branch misspredicts for > 31 bytes memset case.
5216 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
5217 Remove toc ref to __cache_line_size.
5218
5219 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
5220 to get ISA-V2.0 branch hints.
5221 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
5222 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
5223 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
5224 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
5225 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5226 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
5227 Remove toc ref to __cache_line_size.
5228
5229 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
5230 Include math_ldbl_opt.h.
5231
f98c2d06
UD
52322007-07-10 Ulrich Drepper <drepper@redhat.com>
5233
5234 [BZ #4773]
5235 * time/strptime_l.c (__strptime_internal): Implement greedy
5236 matching of weekday and month names.
5237
cec5991f
RM
52382007-07-09 Roland McGrath <roland@redhat.com>
5239
5240 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
5241 (ELF_NOTE_ABI): Use it.
5242 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
5243
8c1dcd26
UD
52442007-07-09 Ulrich Drepper <drepper@redhat.com>
5245
5246 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
5247 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5248
c2c7bd3f
UD
52492007-07-07 Ulrich Drepper <drepper@redhat.com>
5250
5251 [BZ #4745]
0923a2c8
UD
5252 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
5253 in loop to look for conversion specifier to avoid testing of
5254 wrong errno value.
5255 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
c2c7bd3f 5256 * stdio-common/bug18.c: New file.
0923a2c8
UD
5257 * stdio-common/bug18a.c: New file.
5258 * stdio-common/bug19.c: New file.
5259 * stdio-common/bug19a.c: New file.
c2c7bd3f 5260
4facf4af
RM
52612007-07-05 Mike Frysinger <vapier@gentoo.org>
5262
5263 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
5264 running awk script.
5265
1311e86e
UD
52662007-07-01 Jakub Jelinek <jakub@redhat.com>
5267
5268 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
5269 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
5270 Return NULL if mmap failed instead of asserting it does not.
5271 (calloc): Check for integer overflow.
5272
5273 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
5274 than LONG_MAX / 10.
5275
57c9179c
UD
52762007-07-03 Jakub Jelinek <jakub@redhat.com>
5277
5278 [BZ #4702]
5279 * nis/nss-default.c: Include errno.h.
5280 (init): Preserve errno.
5281
d0b283a8
UD
52822007-07-02 Ulrich Drepper <drepper@redhat.com>
5283
5284 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
5285
34e0bbaf
UD
52862007-06-30 Ulrich Drepper <drepper@redhat.com>
5287
5288 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
5289
52902007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
5291
5292 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
5293
34e0bbaf 52942007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
33516494
UD
5295
5296 * sysdeps/s390/dl-procinfo.c: New file.
5297 * sysdeps/s390/dl-procinfo.h: New file.
5298 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
5299
0e508a6e
UD
53002007-06-29 Jakub Jelinek <jakub@redhat.com>
5301
5302 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
5303 in PT_NOTE segments with multiple notes.
5304 * elf/readelflib.c (process_elf_file): Likewise.
5305
e22c61fb
UD
53062007-06-22 Ulrich Drepper <drepper@redhat.com>
5307
5308 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
5309 ISO C compliant.
5310
e4eb675d
UD
53112007-06-19 Ulrich Drepper <drepper@redhat.com>
5312
5313 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
5314
53152007-06-13 Jakub Jelinek <jakub@redhat.com>
5316
5317 * include/link.h: Don't include rtld-lowlevel.h.
5318 (struct link_map): Remove l_scope_lock.
5319 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
5320 (_dl_scope_free_list): New field (variable) in _rtld_global.
5321 (DL_LOOKUP_SCOPE_LOCK): Remove.
5322 (_dl_scope_free): New prototype.
5323 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
5324 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
5325 (_dl_profile_fixup): Likewise.
5326 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
5327 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
5328 THREAD_GSCOPE_RESET_FLAG around it.
5329 * elf/dl-close.c (_dl_close_worker): Don't use
5330 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
5331 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
5332 scopes were queued or if l_scope_mem has been abandoned.
5333 * elf/dl-open.c (_dl_scope_free): New function.
5334 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
5335 * elf/dl-support.c (_dl_scope_free_list): New variable.
5336 * elf/dl-lookup.c (add_dependency): Remove flags argument.
5337 Remove DL_LOOKUP_SCOPE_LOCK handling.
5338 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
5339 handling.
5340 * elf/dl-object.c (_dl_new_object): Don't use
5341 __rtld_mrlock_initialize.
5342
9be09e06
UD
53432007-06-19 Ulrich Drepper <drepper@redhat.com>
5344
5345 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
5346 to fill in holes
5347 (rtld_global_ro): Likewise.
5348
53492007-06-18 Jakub Jelinek <jakub@redhat.com>
5350
5351 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
5352 Move PT_LOAD checking to...
5353 (_dl_addr_inside_object): ... here, new function.
5354 * elf/dl-sym.c (do_sym): If not l_contiguous,
5355 call _dl_addr_inside_object.
5356 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5357 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
5358 * elf/dl-open.c (dl_open_worker): Likewise.
5359 (_dl_addr_inside_object): New function if IS_IN_rtld.
5360 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
5361 holes are present or are PROT_NONE protected.
5362 * include/link.h (struct link_map): Add l_contiguous field.
5363 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
5364
ae1ad3ae
UD
53652007-06-18 Jakub Jelinek <jakub@redhat.com>
5366 Tomas Janousek <tjanouse@redhat.com>
5367 Ulrich Drepper <drepper@redhat.com>
5368
5369 [BZ #4647]
5370 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
5371 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
5372 socket.
5373 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
5374 unused member a bitmap.
5375 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
5376 servers are configured.
5377
3abee0b7
UD
53782007-06-18 Jakub Jelinek <jakub@redhat.com>
5379
5380 * elf/rtld.c (dl_main): Don't call init_tls more than once.
5381
89074592
UD
53822007-06-17 Andreas Schwab <schwab@suse.de>
5383
5384 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
5385
b26e274d
AJ
53862007-06-16 Andreas Jaeger <aj@suse.de>
5387
5388 [BZ #4125]
5389 * sysdeps/unix/sysv/linux/sys/ptrace.h
5390 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
5391 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
89074592 5392 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
b26e274d
AJ
5393 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
5394 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
5395 Define.
5396 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
5397 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
5398 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
5399 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
5400
e0d4a4e5
UD
54012007-06-16 Ulrich Drepper <drepper@redhat.com>
5402
5403 [BZ #4599]
5404 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
5405 determining whether there are IPv4/IPv6 addresses, ignore loopback
5406 addresses.
5407
ae8e81f5
JJ
54082007-06-14 Uros Bizjak <ubizjak@gmail.com>
5409
5410 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
5411 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
5412 as the return type. Change type of "r" variable to CMPtype.
5413 * soft-fp/eqsf2.c (__eqsf2): Likewise.
5414 * soft-fp/eqtf2.c (__eqtf2): Likewise.
5415 * soft-fp/gedf2.c (__gedf2): Likewise.
5416 * soft-fp/gesf2.c (__gesf2): Likewise.
5417 * soft-fp/getf2.c (__getf2): Likewise.
5418 * soft-fp/ledf2.c (__ledf2): Likewise.
5419 * soft-fp/lesf2.c (__lesf2): Likewise.
5420 * soft-fp/letf2.c (__letf2): Likewise.
5421 * soft-fp/unorddf2 (__unorddf2): Likewise.
5422 * soft-fp/unordsf2 (__unordsf2): Likewise.
5423 * soft-fp/unordtf2 (__unordtf2): Likewise.
5424
90cd2413
UD
54252007-06-09 Ulrich Drepper <drepper@redhat.com>
5426
5427 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
5428 make sure gcc doesn't mess around with this.
5429
3c457089
UD
54302007-06-08 Ulrich Drepper <drepper@redhat.com>
5431
5432 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
5433
e8b6b64d
UD
54342007-06-08 Jakub Jelinek <jakub@redhat.com>
5435
5436 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
5437 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
5438 at most once per _dl_close_worker.
5439
36dffb22
UD
54402007-06-08 Ulrich Drepper <drepper@redhat.com>
5441
755db8c5
UD
5442 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
5443 __sched_cpucount as const.
5444 * posix/sched_cpucount.c: Adjust.
5445
36dffb22
UD
5446 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
5447 instruction for counting bits.
5448 * sysdeps/x86_64/sched_cpucount.c: New file.
5449
26f56c1c
UD
54502007-06-07 Ulrich Drepper <drepper@redhat.com>
5451
5452 * configure.in: Avoid variable named BASH.
e967d385 5453 * config.make.in: Likewise.
26f56c1c 5454 Patch in part by Mike Frysinger.
835abc5c 5455
26f56c1c 54562007-06-06 Jakub Jelinek <jakub@redhat.com>
47779a7d
JJ
5457
5458 [BZ #4586]
835abc5c
UD
5459 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
5460 pseudo-zeros as zero.
5461 * sysdeps/x86_64/ldbl2mpn.c: New file.
5462 * sysdeps/ia64/ldbl2mpn.c: New file.
5463
7e3706ea
UD
54642007-06-04 Jakub Jelinek <jakub@redhat.com>
5465
5466 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
5467 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
5468 Remove unreachable code at the end.
5469
54702007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
5471
5472 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
5473 ldbl-128ibm in comment.
5474 (fpclassifyl): Correct classification of denormals.
5475 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
5476 return value for MIN denormal. Rewrite using long double math too
5477 correctly handle denormals and canonicalize the results.
5478
54792007-06-05 Jakub Jelinek <jakub@redhat.com>
5480
5481 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
5482 (__mpn_construct_long_double): Fix conversion where result ought
5483 to be smaller than __LDBL_MIN__, or the low double should be
5484 denormal. Fix decision where to negate low double - honor round
5485 to even rules.
5486 * stdio-common/tst-sprintf2.c: Include string.h.
5487 (COMPARE_LDBL): Define.
5488 (TEST): Also test whether a string hexadecimal float representation
5489 can be parsed back to the number.
5490 (main): Add a couple of further tests.
5491
43b76828
UD
54922007-06-04 Jakub Jelinek <jakub@redhat.com>
5493
5494 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
5495 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
5496 is non-zero, but smaller than 2 * __DBL_MIN__.
5497 * stdio-common/tst-sprintf2.c: New test.
5498 * stdio-common/Makefile (tests): Add tst-sprintf2.
5499
5500 * math/test-misc.c (main): Don't run last batch of tests with
5501 IBM long double format.
5502
04067002
UD
55032007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
5504
5505 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
5506 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
5507 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
5508 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
5509 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5510 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
5511 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
5512 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
5513 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
5514 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5515 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
5516 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
5517 New file.
5518 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
5519 New file.
5520 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
5521 New file.
5522 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
5523 New file.
5524 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
5525 New file.
5526 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
5527 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
5528 New file.
5529 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
5530 New file.
5531 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
5532 New file.
5533 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
5534 New file.
5535 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
5536 New file.
5537
55382007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
5539
5540 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
5541 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
5542 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
5543 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
5544 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
5545 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
5546 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
5547 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
5548
55492007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
5550
5551 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
5552 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5553 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
5554 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5555 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
5556 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5557 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
5558 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5559
55602007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
5561
5562 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
5563 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
5564 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
5565 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
5566
55672007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
5568
5569 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
5570 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
5571
55722006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
5573
5574 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
5575 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
5576 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
5577 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
5578
55792006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
5580
5581 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
5582 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
5583
55842006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
5585
5586 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
5587 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
5588
5589 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
5590 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
5591 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
5592 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5593
55942006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
5595
5596 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
5597 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
5598 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
5599 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
5600
56012006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
5602
5603 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
5604 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
5605 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
5606 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5607 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
5608 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5609
56102006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
5611
5612 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
5613 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
5614 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
5615 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
5616
56172006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
5618
5619 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
5620 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
5621 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
5622 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
5623 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
5624 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
5625 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
5626 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
5627 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
5628 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
5629 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
5630 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
5631 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
5632 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
5633 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
5634 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
5635
56362006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
5637
5638 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
5639 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
5640
56412007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
5642
5643 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
5644 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
5645
56462007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
5647
5648 * sysdeps/powerpc/powerpc32/970/Implies: New file.
5649 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
5650 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
5651 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
5652 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
5653 * sysdeps/powerpc/powerpc64/970/Implies: New file.
5654 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
5655 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
5656 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
5657 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
5658
56592007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
5660
5661 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
5662
56632007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
5664
5665 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
5666 branch miss-predicts. Ensure that cache line crossing does not impact
5667 dispatch grouping.
5668
56692006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
5670
5671 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
5672 "../../powerpc32/power4/memcopy.h".
5673 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
5674 "../../powerpc32/power4/wordcopy.c".
5675
56762006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
5677
5678 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
5679 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
5680 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
5681 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
5682 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
5683 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
5684
56852006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
5686
5687 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
5688
56892006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
5690
5691 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
5692 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
5693 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
5694 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
5695 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
5696 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
5697 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
5698 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
5699
57002006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
5701
5702 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
5703
57042006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
5705
5706 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
5707 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
5708 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
5709 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
5710 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
5711 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
5712 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
5713
5b55e1d3
RM
57142007-05-29 Roland McGrath <roland@redhat.com>
5715
5716 * po/Makefile (po-sed-cmd): New variable.
5717 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
5718
5da4373c
UD
57192007-05-29 Ulrich Drepper <drepper@redhat.com>
5720
4b5e7304
UD
5721 * crypt/md5-crypt.c: Fix comment.
5722
5da4373c
UD
5723 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
5724 of crashing. When this is the case or if the reply is malformed,
5725 don't try to close the new file descriptor since it does not
5726 exist.
5727 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
5728
40f57573
UD
57292007-05-28 Jakub Jelinek <jakub@redhat.com>
5730
5731 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
5732 if __NR_utimensat is not defined.
5733
6df7ffad
UD
57342007-05-26 Ulrich Drepper <drepper@redhat.com>
5735
5736 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
5737
47ad95ab
UD
57382007-05-25 Jakub Jelinek <jakub@redhat.com>
5739
5740 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
5741 (open): Fix comment typos. Don't call __open_2 if flags
5742 is a compile time constant without O_CREAT.
5743 (__open64_2): Add nonnull attribute.
5744 (open64): Fix comment typos. Don't call __open64_2 if flags
5745 is a compile time constant without O_CREAT.
5746 (__openat_2): Add nonnull attribute, fix nonnull attribute
5747 on redirect.
5748 (openat): Fix comment typos. Don't call __openat_2 if flags
5749 is a compile time constant without O_CREAT.
5750 (__openat64_2): Add nonnull attribute, fix nonnull attribute
5751 on redirect.
5752 (openat64): Fix comment typos. Don't call __openat64_2 if flags
5753 is a compile time constant without O_CREAT.
5754
ddfd0535
UD
57552007-05-24 Ulrich Drepper <drepper@redhat.com>
5756
5757 * Makerules (sysd-rules): Define PTW for ptw-* files.
5758 * Versions: Define GLIBC_2.7 for libc.
5759 * include/stdio.h: Declare __fortify_fail.
5760 * debug/fortify_fail.c: New file.
5761 * debug/Makefile (routines): Add fortify_fail.
5762 * debug/chk_fail.c: Use __fortify_fail.
5763 * debug/stack_chk_fail.c: Likewise.
5764 * io/Versions: Export __open_2, __open64_2, __openat_2, and
5765 __openat64_2 for GLIBC_2.7.
5766 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
5767 * io/open.c: Define *_2 variant of function which checks for O_CREAT
5768 and fails if necessary.
5769 * io/open64.c: Likewise.
5770 * io/openat.c: Likewise.
5771 * io/openat64.c: Likewise.
5772 * sysdeps/unix/sysv/linux/open64.c: Likewise.
5773 * sysdeps/unix/sysv/linux/openat.c: Likewise.
5774 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
5775 * io/bits/fcntl2.h: New file.
5776 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
5777 __openat64_2.
5778 * include/bits/fcntl2.h: New file.
5779 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
5780 Add open_2.
5781 * sysdeps/unix/sysv/linux/open_2.c: New file.
5782
bfe6f5fa
UD
57832007-05-21 Ulrich Drepper <drepper@redhat.com>
5784
6d59823c
UD
5785 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
5786 as second parameter to handle_intel.
5787
e2b1e343
UD
5788 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
5789 the entry.
5790
bfe6f5fa
UD
5791 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
5792 handling to ...
5793 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
5794 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
5795 cacheinfo.
5796 * sysdeps/x86_64/memcpy.S: Complete rewrite.
5797 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
5798 Patch by Evandro Menezes <evandro.menezes@amd.com>.
5799
5800 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
5801
1f4843fb
UD
58022007-05-21 Jakub Jelinek <jakub@redhat.com>
5803
2c2c003a
UD
5804 [BZ #4525]
5805 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
5806 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
5807 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
5808
5809 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
5810
af269dd9
UD
5811 [BZ #4514]
5812 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
5813 reinitialize workend at the start of each do_positional format spec
5814 loop, free workstart before do_positional loops.
5815 (printf_unknown): Fix size of work_buffer.
5816 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
5817
1f4843fb
UD
5818 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
5819 (public_sET_STATe): If ms->version < 3, put all chunks into
5820 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
5821 chunks.
5822
5823 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
5824 * malloc/hooks.c: Likewise.
5825 * malloc/arena.c: Likewise.
5826 * malloc/malloc.c (do_check_malloc_state): Don't assert
5827 n_mmaps is not greater than n_mmaps_max. This removes the need
5828 for the previous change.
5829
5830 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
5831 2007-05-07 commit.
5832
12e8bbff
UD
58332007-05-19 Ulrich Drepper <drepper@redhat.com>
5834
5835 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
5836 Define for kernel >= 2.6.22.
69e5cbf5 5837
12e8bbff 58382007-05-18 Ulrich Drepper <drepper@redhat.com>
6d59823c 5839
df94b641
UD
5840 * elf/dl-close.c (_dl_close_worker): When removing object from
5841 global scope, wait for all lookups to finish afterwards.
5842 * elf/dl-open.c (add_to_global): When global scope array must
5843 grow, allocate a new one and free old array only after all
5844 lookups finish.
5845 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
5846 (_dl_lookup_symbol_x): Likewise.
5847 * elf/dl-support.c: Define _dl_wait_lookup_done.
5848 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
5849 _dl_wait_lookup_done.
5850
2acd01ac
UD
5851 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
5852 not overlapping with arena.
5853
129abdd3
UD
5854 * malloc/mcheck.c (reallochook): If size==0, free the block.
5855
eb4b098a
UD
5856 * rt/tst-shm.c: Use fstat64 instead of fstat.
5857
69e5cbf5
UD
5858 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
5859 __NR_sync_file_range is not defined.
5860
a2ccc760
UD
58612007-05-17 Ulrich Drepper <drepper@redhat.com>
5862
bec51a30
UD
5863 Dummy files to prevent stub versions from being used.
5864 * sysdeps/x86_64/fpu/k_cosl.c: New file.
5865 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
5866 * sysdeps/x86_64/fpu/k_sinl.c: New file.
5867 * sysdeps/x86_64/fpu/k_tanl.c: New file.
5868
a2ccc760
UD
5869 * version.h (VERSION): Set to 2.6.90.
5870
1a31b586
UD
58712007-05-14 Ulrich Drepper <drepper@redhat.com>
5872
a2ccc760
UD
5873 * version.h (VERSION): Define to 2.6.
5874 * include/features.h (__GLIBC_MINOR__): Define to 6.
2c1d6172 5875
1d47e92f
UD
5876 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
5877
5878 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
5879 sizes.
366ad8fd 5880
1a31b586 58812007-05-13 Ulrich Drepper <drepper@redhat.com>
87e66335 5882
366ad8fd
UD
5883 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
5884 number of mmaps. n_mmaps_max is the target.
5885 * malloc/hooks.c: Likewise.
5886 * malloc/arena.c: Likewise.
5887
11ed6713
AJ
58882007-05-12 Andreas Jaeger <aj@suse.de>
5889
5890 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
5891 getpid.
5892
d65ef3dd
UD
58932007-05-11 Ulrich Drepper <drepper@redhat.com>
5894
2e81d449
UD
5895 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
5896 adding new variables.
5897
d65ef3dd 5898 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
2e81d449 5899 optimize. Completely extend global scope array before making the
d65ef3dd
UD
5900 new entries visible.
5901
c27d2078
UD
59022007-05-10 Ulrich Drepper <drepper@redhat.com>
5903
341c566f
UD
5904 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
5905 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
5906 tst-getcpu.
5907
5908 * include/link.h: Move l_version and l_nversion members around to
5909 fill gaps.
5910
a53fa282
UD
5911 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
5912
3771196d
UD
5913 * sysdeps/unix/sysv/linux/sched_setaffinity.c
5914 (__sched_setaffinity_new): If syscall was successful and
5915 RESET_VGETCPU_CACHE is defined, use it before returning.
5916 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
5917
f9bf102d
UD
5918 * io/sys/stat.h: Make sure struct timespec is defined for
5919 __USE_ATFILE.
5920
c27d2078
UD
5921 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
5922 UTIME_OMIT.
5923 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
5924 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
5925 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
5926 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
5927 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
5928 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
5929 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
5930 * io/sys/stat.h: Declare utimensat, futimens.
5931 * io/utimensat.c: New file.
5932 * io/futimens.c: New file.
5933 * sysdeps/unix/sysv/linux/utimensat.c: New file.
5934 * sysdeps/unix/sysv/linux/futimens.c: New file.
5935 * io/Makefile (routines): Add utimensat, futimens.
5936 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
5937 * sysdeps/unix/sysv/linux/lutimes.c: New file.
5938 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
5939 available.
5940
5941 * include/sys/cdefs.h: Redefine __nonnull so that test for
5942 incorrect parameters in the libc code itself are not omitted.
5943
cf6b0980
JJ
59442007-05-09 Jakub Jelinek <jakub@redhat.com>
5945
c1dfd7e6
JJ
5946 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
5947 exception in addition to inexact when asked to raise only FE_INEXACT.
5948
cf6b0980
JJ
5949 [BZ #3427]
5950 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
5951 in *envp.
5952
df7b6fea
UD
59532007-05-07 Ulrich Drepper <drepper@redhat.com>
5954
5955 [BZ #4403]
5956 * string/strfry.c (strfry): Make result more random.
5957
37f40235
RH
59582007-05-07 Richard Henderson <rth@redhat.com>
5959
5960 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
5961 if __NO_LONG_DOUBLE_MATH.
5962 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
df7b6fea 5963 available in the compiler, add .arch directive to the assembly.
37f40235
RH
5964
59652007-05-07 Jakub Jelinek <jakub@redhat.com>
5966
5967 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
5968 compat_symbol to GLIBC_2_1.
5969 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
5970 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
5971 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
5972 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
5973 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
5974 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
5975 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
5976 libc, not libm.
5977 (__isnanl): New compat_symbol.
5978
c7fd3362
JJ
59792007-05-07 Ulrich Drepper <drepper@redhat.com>
5980 Jakub Jelinek <jakub@redhat.com>
5981
5982 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
5983 (new_heap): Initialize mprotect_size.
5984 (grow_heap): When growing, only mprotect from mprotect_size till
5985 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
5986 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
5987
4a59e9ad 59882007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
37f40235 5989 Peter Bergner <bergner@us.ibm.com>
4a59e9ad
UD
5990
5991 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
5992 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
5993 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
5994 * sysdeps/powerpc/fpu/fe_mask.c: New file.
5995 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
5996 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
5997 Call __fe_mask_env() if all FP exceptions disabled.
5998 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
5999 from old FPSCR to new fenv to propagate DFP rounding modes.
6000 Call __fe_mask_env() if FP exceptions previously enabled.
6001 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
6002 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
6003 transitioning from all exceptions disabled to any exception enabled
6004 or visa versa.
6005 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
6006 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
6007 when transitioning from all exceptions disabled to any exception
6008 enabled or visa versa.
6009 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
6010 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
6011 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
6012 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
6013 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
6014 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
6015
aa75f64c
UD
60162007-05-06 Ulrich Drepper <drepper@redhat.com>
6017
15eca720 6018 [BZ #4465]
aa75f64c
UD
6019 * posix/unistd.h: Remove __THROW from fdatasync.
6020
711deb05
UD
60212007-05-06 Mike Frysinger <vapier@gentoo.org>
6022
15eca720 6023 [BZ #4465]
711deb05
UD
6024 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
6025
ffecd39b
UD
60262007-05-06 Ulrich Drepper <drepper@redhat.com>
6027
49a8eb75
UD
6028 * stdio-common/vfprintf.c (process_string_arg): Optimize
6029 ridiculous precision in wide char code printing multi-byte string.
6030 Reported by Jim Meyering <jim@meyering.net>.
6031
ffecd39b
UD
6032 [BZ #4131]
6033 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
6034 boundaries to work around systems with overlapping binary loading.
6035 Based on a patch by Suzuki <suzuki@in.ibm.com>.
6036
b16dba4c
UD
60372007-05-04 Ulrich Drepper <drepper@redhat.com>
6038
30b323ab
UD
6039 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
6040 __mbsnrtowcs after last change.
6041
b16dba4c
UD
6042 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
6043 (get_ident): Likewise.
6044
37002cbc
JJ
60452007-05-03 Jakub Jelinek <jakub@redhat.com>
6046
6047 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
6048 with setting the sticky bit.
6049 * math/test-misc.c (main): Add more truncation tests.
6050
60512007-04-14 Uros Bizjak <ubizjak@gmail.com>
6052
6053 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
6054 double in the function declaration.
6055 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
6056 double in the function declaration.
6057 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6058 float in the function declaration.
6059 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
6060 float in the function declaration.
6061
6062 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
6063 denormal operands. Do not generate FP_EX_DENORM exception.
6064 (FP_UNPACK_RAW_EP): Ditto.
6065 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
6066 undefined _FP_UNPACK_RAW_E.
6067 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
6068 undefined _FP_UNPACK_RAW_EP.
6069 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
6070 undefined _FP_PACK_RAW_E.
6071 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
6072 undefined _FP_PACK_RAW_EP.
6073
d9ac82d0
UD
6074 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
6075 _FP_FRAC_COPY_2.
6076 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
6077 _FP_FRAC_COPY_4.
37002cbc
JJ
6078
60792007-04-16 Uros Bizjak <ubizjak@gmail.com>
6080 Jakub Jelinek <jakub@redhat.com>
6081
6082 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
6083 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
6084 this case.
6085 * soft-fp/op-common.h (FP_TRUNC): Ditto.
6086
002f0b0b
JJ
60872007-05-03 Jakub Jelinek <jakub@redhat.com>
6088
6089 * math/test-misc.c (main): Add tests for rounding long double
6090 values close to smallest double denormalized value to double.
6091
60922007-04-30 Joseph Myers <joseph@codesourcery.com>
6093
6094 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
6095 condition for truncating to 0. Set sticky bit for such
6096 truncation.
6097
57433ede
UD
60982007-05-02 Jakub Jelinek <jakub@redhat.com>
6099
6100 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
6101 fixed length array for ignore.
6102
c01c2455
UD
61032007-04-30 Ulrich Drepper <drepper@redhat.com>
6104
6105 [BZ #4438]
6106 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
6107 stack for large precisions.
1cb04337
UD
6108 * stdio-common/test-vfprintf.c (main): Add test for large
6109 precision.
c01c2455 6110
37f02b1d
UD
61112007-04-30 Jakub Jelinek <jakub@redhat.com>
6112
b866373d
UD
6113 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
6114 for exponent 0.
6115 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
6116
37f02b1d
UD
6117 [BZ #4439]
6118 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
6119 account in the size check.
6120 * resolv/tst-inet_ntop.c: New test.
6121 * resolv/Makefile (tests): Add tst-inet_ntop.
6122
7ecfbd38
UD
61232007-04-30 Ulrich Drepper <drepper@redhat.com>
6124 Jakub Jelinek <jakub@redhat.com>
6125
6126 [BZ #4349]
6127 * malloc/malloc.c: Keep separate list for first blocks on the bin
6128 lists with a given size. This helps skipping over list elements
6129 we know won't fit in two places.
6130 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
6131
e53f0f51
UD
61322007-04-28 Ulrich Drepper <drepper@redhat.com>
6133
6134 [BZ #4102]
6135 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
6136 label to Teredo tunnel addresses 2001://32.
6137
109f51f2
UD
61382007-04-27 Ulrich Drepper <drepper@redhat.com>
6139
762422d1
UD
6140 * locale/programs/ld-collate.c (collate_read): Allow order_start
6141 after copy.
6142
61d5a67f
UD
6143 * locale/programs/ld-collate.c (collate_read): Fix printing of
6144 error message.
6145
6146 [BZ #3213]
6147 * locale/C-translit.h.in: Add entry for U2044.
6148
109f51f2
UD
6149 [BZ #4342]
6150 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
6151 hexa-decimal floats without exponent.
6152 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
6153
ec08f13d
UD
61542007-04-25 Ulrich Drepper <drepper@redhat.com>
6155
6156 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
6157 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
6158 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
6159 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
6160 GLIBC_2.6.
bce20b9a
UD
6161 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
6162 Add sched_getcpu.
ec08f13d 6163
41967e1c
JJ
61642007-04-25 Jakub Jelinek <jakub@redhat.com>
6165
6166 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
6167 of 0 after the out_fail label.
6168
ba508da3
UD
61692007-04-25 Ulrich Drepper <drepper@redhat.com>
6170
6171 [BZ #4406]
109f51f2 6172 * iconv/gconv_charset.h (strip): Allow ':'.
ba508da3
UD
6173 * iconv/iconv_open.c (iconv_open): Adjust comment.
6174
9c8d03d9
JJ
61752007-04-25 Jakub Jelinek <jakub@redhat.com>
6176
6177 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
6178 version.
6179
2f1687b9
UD
61802007-04-23 Jakub Jelinek <jakub@redhat.com>
6181
6182 [BZ #4381]
6183 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
6184 alignment of buffer and tmp_buffer.
6185 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
6186 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
6187 alignment of buffer.
6188 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
6189 bigger than INT_MAX.
6190 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
6191 h_errnop arguments. Fail if buflen is too small.
6192 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
6193
b64a9db8
JJ
61942007-04-23 Jakub Jelinek <jakub@redhat.com>
6195
6196 [BZ #4405]
6197 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
6198 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
6199
4d3144c9
RM
62002007-04-22 Roland McGrath <roland@redhat.com>
6201
6202 * elf/elf.h (NT_PRXFPREG): New macro.
6203
767b40bf
AJ
62042007-04-19 Andreas Jaeger <aj@suse.de>
6205
6206 [BZ #3905]
6207 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
6208 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
6209 Added.
6210
2592d1ec
UD
62112007-04-19 Ulrich Drepper <drepper@redhat.com>
6212
6213 * include/sys/mman.h: Mark madvise hidden.
d07d044e 6214 * misc/madvise.c: Add libc_hidden_def.
2592d1ec 6215
7ab174ed
UD
62162007-04-06 Jakub Jelinek <jakub@redhat.com>
6217
6218 * nis/nis_domain_of.c (__nis_domain_of): New function.
6219 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
6220 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
6221 * nis/nis_call.c (rec_dirsearch): Likewise.
6222 (first_shoot): Likewise. Remove search_parent_first argument.
6223 (struct nis_server_cache): Rename search_parent_first field
6224 to search_parent.
6225 (nis_server_cache_search, nis_server_cache_add): Rename
6226 search_parent_first argument to search_parent.
6227 (__nisfind_server): Likewise. If search_parent, call
6228 __nis_domain_of.
6229
b17c265f
UD
62302007-04-18 Ulrich Drepper <drepper@redhat.com>
6231
6232 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
6233
b7674b11
UD
62342007-04-17 Ulrich Drepper <drepper@redhat.com>
6235
6236 [BZ #4368]
6237 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
6238
faf3ad69
UD
62392007-04-16 Ulrich Drepper <drepper@redhat.com>
6240
6241 [BZ #4364]
6242 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
6243
c14f245c
UD
62442007-04-15 Jakub Jelinek <jakub@redhat.com>
6245
6246 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
6247 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
6248 current number of locales in SUPPORTED.
6249 (create_archive): Initialize serial.
6250 (enlarge_archive): Preserve aliases rather than duplicating
6251 their locrecs.
6252
d40e67f5
UD
62532007-04-13 Jakub Jelinek <jakub@redhat.com>
6254
993a5d66
UD
6255 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
6256 after _IO_un_link, not before it.
6257
d40e67f5
UD
6258 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
6259 special case handling when wcp == wstartp + 1. Fix a comment typo.
6260 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
6261
0fca3153
UD
62622007-03-30 Jakub Jelinek <jakub@redhat.com>
6263
6264 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
6265 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
6266 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
6267 Remove __THROW.
6268 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
6269 _IO_file_xsgetn_maybe_mmap): Likewise.
6270 * libio/oldfileops.c (old_do_write): Likewise.
6271 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
6272 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
6273 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
6274 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
6275 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
6276 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
6277 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
6278 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
6279 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
6280 _IO_file_underflow, _IO_file_underflow_mmap,
6281 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
6282 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
6283 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
6284 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
6285 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
6286 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
6287 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
6288 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
6289 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
6290 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
6291 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
6292 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
6293 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
6294 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
6295 _IO_adjust_column_internal, _IO_default_uflow_internal,
6296 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
6297 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
6298 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
6299 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
6300 _IO_file_close_it_internal, _IO_file_underflow_internal,
6301 _IO_file_overflow_internal, _IO_file_attach_internal,
6302 _IO_file_fopen_internal, _IO_file_sync_internal,
6303 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
6304 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
6305 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
6306 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
6307 _IO_seekpos_unlocked): Likewise.
6308 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
6309 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
6310
07358add
JJ
63112007-04-16 Jakub Jelinek <jakub@redhat.com>
6312
6313 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
6314 argument in xmalloc size computation.
6315
7a82b74f
UD
63162007-04-01 Jakub Jelinek <jakub@redhat.com>
6317
6318 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
6319 math_opt_barrier and math_force_eval macros.
6320
3e336a87
UD
63212007-03-27 Jakub Jelinek <jakub@redhat.com>
6322
6323 [BZ #3306]
6324 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
6325 * sysdeps/i386/fpu/math_private.h: New file.
6326 * sysdeps/x86_64/fpu/math_private.h: New file.
6327 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
6328 math_force_eval macros. Use "+m" constraint on asm rather than
6329 "=m" and "m".
6330 * math/s_nextafter.c (__nextafter): Likewise.
6331 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
6332 Likewise.
6333 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
6334 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
6335 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6336 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
6337 math_opt_barrier and math_force_eval macros.
6338 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
6339 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
6340 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
6341 (__nexttoward): Use math_opt_barrier and
6342 math_force_eval macros. Use "+m" constraint on asm rather than
6343 "=m" and "m". Only use asm to force double result if
6344 FLT_EVAL_METHOD is 2.
6345 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
6346 (__nexttowardf): Use math_opt_barrier and
6347 math_force_eval macros. Use "+m" constraint on asm rather than
6348 "=m" and "m". Only use asm to force double result if
6349 FLT_EVAL_METHOD is not 0.
6350 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
6351 (__nexttowardf): Use math_opt_barrier and
6352 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
6353 x to float using asm.
6354 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
6355 (__nldbl_nexttowardf): Use math_opt_barrier and
6356 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
6357 x to float using asm.
6358 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
6359 (__nexttowardf): Use math_opt_barrier and math_force_eval
6360 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
6361 * math/bug-nextafter.c (zero, inf): New variables.
6362 (main): Add new tests.
6363 * math/bug-nexttoward.c (zero, inf): New variables.
6364 (main): Add new tests.
6365
a8c79c40
UD
63662007-03-22 Jakub Jelinek <jakub@redhat.com>
6367
6368 [BZ #3427]
6369 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
6370 exceptions both in SW and MXCSR.
6371 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
6372 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
6373 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6374 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6375 in MXCSR if SSE is available.
6376 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
6377 and ldsodefs.h.
6378 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
6379 Fix comment typo.
6380 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
6381 Return 0 rather than 1.
6382 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
6383 Remove incorrect part of a comment. Fix argument to feraiseexcept.
6384 * math/test-fenv.c (feholdexcept_tests): New function.
6385 (main): Call it.
6386
63872007-01-05 Richard B. Kreckel <kreckel@ginac.de>
6388
6389 [BZ #3427]
6390 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6391 in SW.
6392
30a3aa75
JJ
63932007-04-13 Jakub Jelinek <jakub@redhat.com>
6394
6395 [BZ #4344]
6396 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
6397 Reported by David Anderson <davea42@earthlink.net>.
6398
75587bfe
UD
63992007-04-07 Ulrich Drepper <drepper@redhat.com>
6400
6401 * posix/sys/wait.h: Remove unnecessary forward declaration.
6402
88fa1769
JJ
64032007-04-05 Jakub Jelinek <jakub@redhat.com>
6404
6405 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
6406 with obj->do_servers after first_shoot.
6407
eab1bdfb
UD
64082007-04-03 Ulrich Drepper <drepper@redhat.com>
6409
6410 * posix/Makefile (routines): Add sched_cpucount.
6411 (tests): Add tst-cpucount.
6412 * posix/sched_cpucount.c: New file.
6413 * posix/tst-cpucount.c: New file.
6414 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
b4afdd06
UD
6415 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
6416 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6417 * posix/sched.h: Define CPU_COUNT.
eab1bdfb 6418
9700b039
UD
64192007-03-27 Jakub Jelinek <jakub@redhat.com>
6420
6421 * posix/fnmatch.c (STRUCT): Define.
6422 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
6423 * posix/fnmatch_loop.c (struct STRUCT): New type.
6424 (FCT): Add ends argument. If ends != NULL and normal * is
6425 seen in the pattern, store current pattern and string pointers
6426 and return. Adjust recursive calls.
6427 (EXT): Adjust FCT callers.
6428 (STRUCT): Undef at the end of the file.
6429 * posix/Makefile (tests): Add tst-fnmatch2.
6430 * posix/tst-fnmatch2.c: New test.
6431
d64e9790
JJ
64322007-04-01 Jakub Jelinek <jakub@redhat.com>
6433
933dfe7b
JJ
6434 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
6435 and 1 on failure.
6436
d64e9790
JJ
6437 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
6438 Change last argument to unsigned int.
6439
e1f0c5bc
UD
64402007-03-23 Jakub Jelinek <jakub@redhat.com>
6441
6442 * scripts/check-local-headers.sh: Filter out sys/capability.h.
6443
64442007-03-22 Jakub Jelinek <jakub@redhat.com>
6445
6446 * config.h.in (HAVE_LIBCAP): Add.
6447 * nscd/selinux.h: Include sys/capability.h rather than non-existent
6448 sys/capabilities.h.
6449 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
6450 free_caps. Cast away const from 4th cap_set_flag argument.
6451
4e87573f
UD
64522007-03-26 Ulrich Drepper <drepper@redhat.com>
6453
6454 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
6455 GLIBC_2.6.
6456 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6457 Add sync_file_range.
6458 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
6459
fa6e3bc3
UD
64602007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
6461
6462 * sysdeps/powerpc/bits/atomic.h
6463 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
6464 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
6465 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6466 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
6467 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6468 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
6469 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
6470 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6471 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6472 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6473 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
6474 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6475 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6476 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6477 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6478 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
6479 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6480 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
6481 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6482 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
6483
64842007-03-20 Jakub Jelinek <jakub@redhat.com>
c7693af7
UD
6485
6486 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6487 (__cache_line_size): Define the variable here. Add
6488 attribute_hidden, remove weak_extern.
6489 (__libc_start_main): Set __cache_line_size
6490 unconditionally.
6491 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
6492 (__cache_line_size): Define the variable here. Add
6493 attribute_hidden, remove weak_extern.
6494 (DL_PLATFORM_AUXV): Set __cache_line_size
6495 unconditionally.
6496 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
6497 weak_extern, add attribute_hidden.
6498 (__elf_machine_runtime_setup): Assume __cache_line_size is always
6499 defined in ld.so.
6500 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
6501 definition.
6502 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
6503
0479e581
JJ
65042007-03-26 Jakub Jelinek <jakub@redhat.com>
6505
6506 [BZ #4276]
6507 * timezone/africa: Update from tzdata2007d.
6508 * timezone/asia: Likewise.
6509 * timezone/australasia: Likewise.
6510 * timezone/backward: Likewise.
6511 * timezone/europe: Likewise.
6512 * timezone/iso3166.tab: Likewise.
6513 * timezone/leapseconds: Likewise.
6514 * timezone/northamerica: Likewise.
6515 * timezone/southamerica: Likewise.
6516 * timezone/zone.tab: Likewise.
6517
6518 * timezone/private.h: Update from tzcode2007d.
6519 * timezone/zdump.c: Likewise.
6520 * timezone/zic.c: Likewise.
6521
697d37b1
JJ
65222007-03-21 Jakub Jelinek <jakub@redhat.com>
6523
6524 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
6525 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
6526 variables.
6527 (nis_server_cache_search, nis_server_cache_add): New functions.
6528 (__nisfind_server): Use them. Add dbp and flags argument, if
6529 call __nisbind_create.
6530 (__nisbind_create): Add server_used and current_ep arguments,
6531 only call __nis_findfastest if server_used is ~0.
6532 (__do_niscall2, __prepare_niscall): Adjust callers.
6533 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
6534 ckey_cache_euid, ckey_cache_lock): New variables.
6535 (get_ckey): New function.
6536 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
6537 __pmap_getnisport. Save __pmap_getnisport result in
6538 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
6539 key.
6540 * nis/nis_lookup.c (nis_lookup): Likewise.
6541 * nis/nis_table.c (nis_list): Likewise.
6542 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
6543 prototypes.
6544
6545 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
6546 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
6547 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
6548 _nss_nisplus_getservbyport_r): Likewise.
6549 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
6550 _nss_nisplus_getnetbyaddr_r): Likewise.
6551 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
6552 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
6553 _nss_nisplus_getntohost_r): Likewise.
6554 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
6555 _nss_nisplus_getrpcbynumber_r): Likewise.
6556
06029c20
JJ
65572007-03-20 Jakub Jelinek <jakub@redhat.com>
6558
371f84a4
JJ
6559 * configure.in (libc_cv_gnu89_inline): Only do compile test.
6560 * configure: Rebuilt.
6561
06029c20
JJ
6562 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
6563 bit-fields.
6564 * soft-fp/extended.h (_FP_UNION_E): Likewise.
6565
65662006-06-07 Joseph Myers <joseph@codesourcery.com>
6567
6568 [BZ #2831]
6569 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
6570 bit-fields.
6571
addc8335
UD
65722007-03-18 Jakub Jelinek <jakub@redhat.com>
6573
6574 * nscd/gai.c: Include alloca.h.
6575 (__libc_use_alloca): Define.
6576
b037a293
UD
65772007-03-16 Jakub Jelinek <jakub@redhat.com>
6578
965cba04
UD
6579 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
6580 smaller scopes.
6581 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
6582 (DL_DST_REQUIRED): Adjust user.
6583
6584 * include/dlfcn.h (struct link_map): New forward decl.
6585
6586 * inet/getnameinfo.c: Include stddef.h.
6587 (getnameinfo): Use offsetof.
6588
6589 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
6590
6591 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
6592
6593 * string/strerror_l.c: Include stdlib.h.
6594
b037a293
UD
6595 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
6596 * config.make.in (gnu89-inline-CFLAGS): New variable.
6597 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
6598 -std=gnu99.
6599 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
6600 * argp/argp.h: Use it.
6601 * bits/mathinline.h: Likewise.
6602 * bits/sigset.h: Likewise.
6603 * bits/string.h: Likewise.
6604 * ctype/ctype.h: Likewise.
6605 * hurd/hurd.h: Likewise.
6606 * hurd/hurd/fd.h: Likewise.
6607 * hurd/hurd/port.h: Likewise.
6608 * hurd/hurd/signal.h: Likewise.
6609 * hurd/hurd/threadvar.h: Likewise.
6610 * hurd/hurd/userlink.h: Likewise.
6611 * io/sys/stat.h: Likewise.
6612 * libio/bits/stdio.h: Likewise.
6613 * libio/bits/stdio2.h: Likewise.
6614 * mach/lock-intern.h: Likewise.
6615 * mach/mach/mig_support.h: Likewise.
6616 * math/bits/cmathcalls.h: Likewise.
6617 * posix/bits/unistd.h: Likewise.
6618 * socket/bits/socket2.h: Likewise.
6619 * stdlib/bits/stdlib.h: Likewise.
6620 * stdlib/stdlib.h: Likewise.
6621 * string/argz.h: Likewise.
6622 * string/bits/string2.h: Likewise.
6623 * string/bits/string3.h: Likewise.
6624 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
6625 * sysdeps/generic/inttypes.h: Likewise.
6626 * sysdeps/generic/machine-lock.h: Likewise.
6627 * sysdeps/generic/machine-sp.h: Likewise.
6628 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6629 * sysdeps/i386/i486/bits/string.h: Likewise.
6630 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
6631 * sysdeps/mach/alpha/machine-lock.h: Likewise.
6632 * sysdeps/mach/alpha/machine-sp.h: Likewise.
6633 * sysdeps/mach/i386/machine-lock.h: Likewise.
6634 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
6635 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
6636 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
6637 * sysdeps/s390/bits/string.h: Likewise.
6638 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
6639 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6640 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
6641 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
6642 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6643 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
6644 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
6645 * wcsmbs/bits/wchar2.h: Likewise.
6646 * wcsmbs/wchar.h: Likewise.
6647 * stdlib/gmp.h: Likewise. Include <features.h> to get
6648 __extern_inline definition.
6649
6b2665f5
UD
66502007-03-15 Jakub Jelinek <jakub@redhat.com>
6651
b037a293
UD
6652 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
6653 NULL.
6654
6b2665f5
UD
6655 [BZ #3919]
6656 * math/libm-test.inc (log_test): Test -Inf and NaN.
6657 (log10_test, log1p_test, log2_test): Test -Inf.
6658 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
6659 FE_INVALID when argument is qNaN.
6660 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
6661 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
6662 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
6663 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
6664 andb $1, %ah with testb $1, %ah, don't test for parity, instead
6665 testb $4, %ah and jump if non-zero.
6666 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
6667 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
6668
44969f17
UD
6669 [BZ #4101]
6670 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
6671 ancestors with the same depths.
6672 Patch by Niels Moeller <nisse@lysator.liu.se>.
6673 (filter_doc): Don't crash if argp is NULL.
6674 * argp/Makefile (tests): Add tst-argp2.
6675 * argp/tst-argp2.c: New test.
6676
05eb8975
UD
6677 [BZ #4130]
6678 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
6679 open_not_cancel_2.
6680 (updwtmp_file): Likewise.
6681
6cb988fa
UD
6682 [BZ #4181]
6683 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
6684 (inet6_opt_append): Don't check extlen is big enough if extbuf
6685 is NULL.
6686 (inet6_opt_finish): Likewise.
6687 * inet/Makefile (tests): Add test-inet6_opt.
6688 * inet/test-inet6_opt.c: New test.
6689
6690 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
6691 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
6692 NLMSG_ERR. Instead use a page sized buffer.
6693 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
6694 buffer.
6695
aea1d19e
RH
66962007-03-14 Richard Henderson <rth@redhat.com>
6697
b6df547c
RH
6698 * sysdeps/alpha/fpu/s_llround.c: New file.
6699 * sysdeps/alpha/fpu/s_llroundf.c: New file.
6700 * sysdeps/alpha/fpu/s_lround.c: New file.
6701 * sysdeps/alpha/fpu/s_lroundf.c: New file.
6702 * sysdeps/alpha/fpu/s_round.c: New file.
6703 * sysdeps/alpha/fpu/s_roundf.c: New file.
6704 * sysdeps/alpha/fpu/s_trunc.c: New file.
6705 * sysdeps/alpha/fpu/s_truncf.c: New file.
6706
aea1d19e
RH
6707 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
6708 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
6709 * sysdeps/alpha/fpu/s_floor.c: Likewise.
6710 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
6711 * sysdeps/alpha/fpu/s_rint.c: Likewise.
6712 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6713
6714 * sysdeps/alpha/fpu/s_fmax.S: New file.
6715 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
6716 * sysdeps/alpha/fpu/s_fmin.S: New file.
6717 * sysdeps/alpha/fpu/s_fminf.S: New file.
6718 * sysdeps/alpha/fpu/s_isnan.c: New file.
6719 * sysdeps/alpha/fpu/s_isnanf.c: New file.
6720 * sysdeps/alpha/fpu/s_llrint.c: New file.
6721 * sysdeps/alpha/fpu/s_llrintf.c: New file.
6722 * sysdeps/alpha/fpu/s_lrint.c: New file.
6723 * sysdeps/alpha/fpu/s_lrintf.c: New file.
6724 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
6725 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
6726
6727 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
6728 (__fdimf, fdimf, __fdim, fdim): Remove.
6729 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
6730 (__isnanf, __isnan, __isnanl): New.
6731
9e43b50d
RH
67322007-03-13 Richard Henderson <rth@redhat.com>
6733
6734 * sysdeps/ieee754/ldbl-128/Makefile: New file.
6735
62789da3
RH
67362007-03-13 Richard Henderson <rth@redhat.com>
6737
6738 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
6739 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
6740 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
6741 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
6742 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
6743 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
6744
47dbe62b
RH
67452007-03-13 Richard Henderson <rth@redhat.com>
6746
37f40235 6747 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
47dbe62b
RH
6748 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
6749 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
6750 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
6751 Move to dl-auxv.h; initialize instead of extern weak.
6752 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
6753 weak symbol.
6754 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
6755 Extern instead of initialized.
6756
b8097bed
RH
67572007-03-13 Richard Henderson <rth@redhat.com>
6758
6759 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
6760 __sigsuspend_nocancel.
6761
6bf4a686
UD
67622007-03-06 Ulrich Drepper <drepper@redhat.com>
6763
6764 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
6765 172.16/12 address range.
6766
0b3b1a0c
UD
67672007-03-02 Jakub Jelinek <jakub@redhat.com>
6768
6769 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
6770 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
6771 message.
6772
8f3edfee
UD
67732007-03-01 Jakub Jelinek <jakub@redhat.com>
6774
c1c5e654 6775 [BZ #4069]
8f3edfee
UD
6776 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
6777 earlier.
6778 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
6779
6780 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
6781 for x qNaN and y either +-inf or non-integer value.
6782 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
6783 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
6784 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
6785
245a1481
UD
67862007-02-10 Mike Frysinger <vapier@gentoo.org>
6787
6788 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
6789 from sysdep_headers.
6790
c217692b
UD
67912007-02-28 Jakub Jelinek <jakub@redhat.com>
6792
6793 * time/tzfile.c (find_transition): Instead of a linear search try to
6794 guess the transition index, use a linear search if the result is at
6795 most 10 transitions away from the guess or binary search otherwise.
6796
fe64626c
JJ
67972007-02-27 Jakub Jelinek <jakub@redhat.com>
6798
6799 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
6800 memory reallocation.
6801
0f7769f7
UD
68022007-02-21 Ulrich Drepper <drepper@redhat.com>
6803
621c133d
UD
6804 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
6805 and fix some typos.
6806 Optimize use of TOLOWER.
9cf147d8 6807
cdfd61e1
UD
6808 [BZ #3325]
6809 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
6810 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
6811 * sysdeps/i386/fpu/e_fmod.S: Likewise.
6812
8889e7aa
UD
6813 [BZ #3458]
6814 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
6815 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
6816
63a2f305
UD
6817 [BZ #4076]
6818 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
6819 (open_dir_stream): Likewise.
6820 * io/Makefile (tests): Add bug-ftw5.
c536b9b8 6821 * io/bug-ftw5.c: New file.
63a2f305 6822
c8703f88
UD
6823 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
6824 * nscd/servicescache.c (cache_addserv): Likewise.
6825
6826 * nscd/grpcache.c (cache_addgr): In case a record changed on
6827 refresh, adjust key_copy.
6828
61705e06
UD
6829 [BZ #4074]
6830 * nscd/pwdcache.c (cache_addpw): In case a record changed on
6831 refresh, adjust key_copy.
6832
0f7769f7
UD
6833 [BZ #4070]
6834 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
0f7769f7 6835 special cases.
8889e7aa 6836 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
0f7769f7 6837
3979024a
UD
68382007-02-19 Ulrich Drepper <drepper@redhat.com>
6839
4c02bf1a
UD
6840 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
6841 optimization.
6842
3979024a
UD
6843 * stdio-common/vfscanf.c: Small cleanups throughout.
6844
821d3e70
UD
68452007-02-18 Ulrich Drepper <drepper@redhat.com>
6846
2484468b
UD
6847 [BZ #3325]
6848 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
6849 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
6850 * sysdeps/i386/fpu/e_fmod.S: Likewise.
6851 Patch by Jared Casper <jaredcasper@gmail.com>.
6852
858ee15d
UD
6853 * sysdeps/unix/closedir.c: Outside libc don't use locking.
6854 * sysdeps/unix/opendir.c: Likewise.
6855 * sysdeps/unix/readdir.c: Likewise.
6856
ecb72bd5
UD
6857 [BZ #2211]
6858 * stdio-common/vfscanf.c: Handle localized digits etc for floating
6859 point numbers.
6860 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
6861
ac2ca022
UD
6862 * stdio-common/vfscanf.c: Fix problems in width accounting.
6863 * stdio-common/tst-sscanf.c (double_tests): New tests.
6864 (main): Hook them up.
6865
e9bb5246 6866 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
da50f001 6867 More simplifications of floating-point reader.
e9bb5246 6868
821d3e70
UD
6869 * stdio-common/Makefile (tests): Add tst-swscanf.
6870 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
6871 testing.
6872 * stdio-common/tst-swscanf.c: New file.
6873
07fb5185
UD
68742007-02-17 Ulrich Drepper <drepper@redhat.com>
6875
9138cc0b
UD
6876 [BZ #2633]
6877 * libio/stdio.h: Define struct _IO_FILE in global namespace.
6878 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
6879 Remove using for __jmp_buf_tag.
6880 * locale/locale.h (struct lconv): Also define in std namespace.
6881 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
6882
6818d837
UD
6883 [BZ #3842]
6884 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
6885 using __libc_enable_secure.
6886
15c4b5a4
UD
6887 [BZ #3818]
6888 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
6889
5e9e9c14
UD
6890 [BZ #3745]
6891 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
6892 of names for ellipsises.
6893
07fb5185
UD
6894 [BZ #3348]
6895 * malloc/memusage.sh: Cleanups.
6896 * debug/xtrace.sh: Quoting and trap changes.
6897
8c6d1043
UD
68982007-02-16 Ulrich Drepper <drepper@redhat.com>
6899
07fb5185
UD
6900 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
6901
93e66914 6902 * locale/iso-3166.def: Update entry for Serbia.
93e36434
UD
6903 * locale/iso-4217.def: Define RSD, remove CSD.
6904
ad0b348c
UD
6905 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
6906 and 64-bit operations.
6907
6908 [BZ #4040]
6909 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
6910 16-bit operations.
6911
8c6d1043
UD
6912 * nscd/nscd.c (parse_opt): One more conversion to use send instead
6913 of writev.
6914
987f54c6
UD
69152007-02-15 Ulrich Drepper <drepper@redhat.com>
6916
b3715c05
UD
6917 [BZ #3991]
6918 * assert/assert.h (assert): Simplify.
6919 (assert_perror): Likewise.
6920 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
6921
6eea8e0d
UD
6922 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
6923 reqdata.
6924
987f54c6
UD
6925 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
6926 change: don't pass NULL in place of an integer.
6927
3dc08a7e
UD
69282007-02-02 Bruno Haible <bruno@clisp.org>
6929
06c17c78
UD
6930 [BZ #3954]
6931 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
6932 Add mapping for U+327E.
6933 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
6934 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
6935 mapping of 0xD9 0xE8.
6936 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
6937 mapping of U+327E.
6938 Reported by Jungshik Shin <jungshik@google.com>.
6939
6940 [BZ #3955]
3dc08a7e
UD
6941 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
6942 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
6943 Reported by Jungshik Shin <jungshik@google.com>.
6944
a810e68c
UD
69452007-02-14 Ulrich Drepper <drepper@redhat.com>
6946
6947 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
6948 byte variants.
6949
6950 [BZ #4040]
6951 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
6952 byte variants. Patch mostly be tom@tommay.net.
6953
05f135ba
UD
69542007-02-14 Jakub Jelinek <jakub@redhat.com>
6955
6956 [BZ #3996]
6957 * posix/glob.c (attribute_hidden): Define if not defined.
6958 (glob): Unescape dirname, filename or username when needed and not
6959 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
6960 is NULL. Handle unescaped [ in pattern without closing ].
6961 Don't pass GLOB_CHECK down to recursive glob for directories.
6962 (__glob_pattern_type): New function.
6963 (__glob_pattern_p): Implement using __glob_pattern_type.
6964 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
6965 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
6966 Remove unreachable code.
6967 * posix/globtest.sh: Add a couple of new tests.
6968
2f699967
UD
69692007-02-13 Ulrich Drepper <drepper@redhat.com>
6970
6971 * po/ru.po: Update from translation team.
6972
3a7cd5b4
JJ
69732007-02-12 Jakub Jelinek <jakub@redhat.com>
6974
6975 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
6976 to the list of i486+ CPUs.
6977 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
6978
2f978feb
UD
69792007-02-12 Ulrich Drepper <drepper@redhat.com>
6980
6981 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
6982 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
6983 references.
6984
2bbb7d5b
UD
69852007-02-09 Ulrich Drepper <drepper@redhat.com>
6986
5ed61e0f
UD
6987 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
6988
2bbb7d5b
UD
6989 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
6990 * resolv/res_mkquery.c: Define __res_nopt.
6991 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
6992 try adding EDNS0 record.
6993 * resolv/res_send.c (send_dg): If request failed with FORMERR and
6994 EDNS0 record was send make sure we don't try it again.
6995 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
6996 * include/resolv.h: Declare __res_nopt.
6997
00458b5b
UD
69982007-02-08 Jakub Jelinek <jakub@redhat.com>
6999
7000 [BZ #3944]
7001 * time/strptime_l.c (__strptime_internal): Set have_mon for
7002 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
7003 have been computed from tm_yday and tm_year. Don't crash
7004 in day_of_the_week or day_of_the_year if not have_mon
7005 and tm_mon contains bogus value.
7006 * time/Makefile (tests): Add tst-strptime3.
7007 * time/tst-strptime3.c: New test.
7008
784aacea
UD
70092007-02-05 Jakub Jelinek <jakub@redhat.com>
7010
7011 [BZ #3957]
7012 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
7013 bit for RE_HAT_LISTS_NOT_NEWLINE.
7014 (build_charclass_op): Remove bogus comment.
7015 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
7016 * posix/bug-regex27.c: New test.
7017 * posix/bug-regex28.c: New test.
7018
bf7a2463
UD
70192007-02-03 Ulrich Drepper <drepper@redhat.com>
7020
7021 * po/sv.po: Update from translation team.
7022
f2ccf983
UD
70232007-02-02 Ulrich Drepper <drepper@redhat.com>
7024
7025 * nscd/nscd_helper.c (open_socket): Minor size optimization.
7026
73f50d5a
UD
70272007-02-02 Jakub Jelinek <jakub@redhat.com>
7028
7029 * include/locale.h (__uselocale): Add libc_hidden_proto.
7030 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
7031
f6bf9e59
JJ
7032 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
7033 gettimeofday.
7034
4a44ce79
UD
70352007-02-01 Ulrich Drepper <drepper@redhat.com>
7036
7037 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
7038 returning.
7039 (PTR_DEMANGLE): Real definition now that it's not the same as
7040 PRT_MANGLE anymore.
7041 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7042
7043 * string/strerror_l.c: New file.
7044 * string/Makefile (routines): Add strerror_l.
7045 * string/string.h: Declare strerror_l.
7046 * string/Versions: Export strerror_l for GLIBC_2.6.
7047
58a2d52e
UD
70482007-01-31 Ulrich Drepper <drepper@redhat.com>
7049
7050 * nscd/nscd_helper.c (open_socket): Now takes request type and key
7051 as parameter. Construct request record. Try sending request
7052 before the first poll use, it usually succeeds. Adjust all
7053 callers.
7054 * nscd/nscd-client.h: Define MAXKEYLEN.
4a44ce79 7055 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
58a2d52e 7056
1a77d37f
JJ
70572007-01-31 Jakub Jelinek <jakub@redhat.com>
7058
7059 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
7060 from return value.
7061 * nscd/nscd_helper.c: Include string.h.
7062 (__nscd_cache_search): Remove const qualifier from return value.
7063 On strict alignment architectures check hash entry and data head
7064 alignment.
7065 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
7066 mmapped data during GC cycle contains garbage. If
7067 __nscd_drop_map_ref fails, decrement mapped->counter when returning
7068 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
7069 dropped to 0.
7070 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7071 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7072 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7073 * nscd/nscd_getai.c (__nscd_getai): Likewise.
7074 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7075
ee314200
UD
70762007-01-30 Ulrich Drepper <drepper@redhat.com>
7077
7078 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
7079
14c8bf3b
UD
70802007-01-26 Ulrich Drepper <drepper@redhat.com>
7081
7082 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
7083 names not numbers in cfi_*.
7084
d2708e67
AJ
70852007-01-26 Andreas Jaeger <aj@suse.de>
7086
7087 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
14c8bf3b 7088 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
d2708e67
AJ
7089 Correct values of PER_HPUX and PER_OSF4.
7090
7fbc8784
UD
70912007-01-24 Ulrich Drepper <drepper@redhat.com>
7092
8aaf53ee 7093 * elf/dl-minimal.c: Undefine _itoa first.
7fbc8784
UD
7094 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
7095 * malloc/mtrace.c: Revert last change.
7096 * posix/wordexp.c: Likewise.
7097
9d6cde3d
UD
70982007-01-24 Jakub Jelinek <jakub@redhat.com>
7099
7100 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
7101 and __geode__ to the list of i486+ CPUs.
7102 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
7103
c1f0486a
UD
71042007-01-23 Ulrich Drepper <drepper@redhat.com>
7105
7106 * stdio-common/_itoa.c: Include <limits.h>.
7107 * stdio-common/_itowa.c: Likewise.
7108
6cae3957
UD
71092007-01-22 Ulrich Drepper <drepper@redhat.com>
7110
765bbb24
UD
7111 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
7112 platforms.
7113 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
7114 64-bit platforms.
7115 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
7116 possible.
7117 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
7118 if possible.
7119
6cae3957
UD
7120 [BZ #3902]
7121 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
7122 * stdio-common/Makefile (tests): Add bug17.
7123 * stdio-common/bug17.c: New file.
7124
ddaafd04
UD
71252007-01-19 Ulrich Drepper <drepper@redhat.com>
7126
7127 * iconvdata/brf.c: New file.
439201de
UD
7128 * iconvdata/testdata/BRF: New file.
7129 * iconvdata/testdata/BRF..UTF8: New file.
7130 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
ddaafd04
UD
7131 * iconvdata/Makefile: Add rules to build BRF.
7132 * iconvdata/TESTS: Add BRF entry.
7133 * iconvdata/gconv-modules: Likewise.
7134 * iconvdata/tst-tables.sh: Likewise.
ddaafd04 7135
9e6e344e
UD
71362007-01-18 Anton Nikishaev <anton.nik@gmail.com>
7137
7138 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
7139 type `long long int', not `long int'.
7140 (wcstoq): Likewise.
7141
299f7b0f
UD
71422007-01-18 Ulrich Drepper <drepper@redhat.com>
7143
7144 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
7145 of values on 64-bit platforms which are too large.
7146
cd8127cc
JJ
71472007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
7148 Joe Kerian <jkerian@us.us.ibm.com>
7149
7150 [BZ #2749]
7151 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
7152 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
7153 (__copysignl): Use signbit() for comparison.
7154 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
7155 SET_LDOUBLE_WORDS64.
7156
7157 [BZ #2423, #2749]
7158 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
7159 (__ceill): Remove calls to fegetround(), fesetround().
7160 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7161 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7162 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7163
b3acfdf7
JJ
71642007-01-17 Jakub Jelinek <jakub@redhat.com>
7165
4a2e03c6
JJ
7166 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
7167
b3acfdf7
JJ
7168 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
7169
1476bce6
UD
71702007-01-17 Ulrich Drepper <drepper@redhat.com>
7171
7172 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
7173 demangle pointer.
7174 * csu/libc-start.c: Likewise.
7175
d78bce1c
UD
71762007-01-16 Ulrich Drepper <drepper@redhat.com>
7177
7178 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
7179 really work anyway.
7180
1bd79025
UD
71812007-01-15 Ulrich Drepper <drepper@redhat.com>
7182
000b027e
UD
7183 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
7184 users.
7185 (handle_request): Remove unnecessary tests.
7186
1bd79025
UD
7187 * nscd/cache.c (cache_add): Record the failure to add to the cache.
7188
d68f5d2c
JJ
71892007-01-15 Jakub Jelinek <jakub@redhat.com>
7190
7191 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
7192 workbits in semi-raw fraction.
7193
7194 * math/test-misc.c: Add new tests.
7195
71962007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
7197
7198 * math/basic-test.c: Include test-skeleton.c.
7199 (TEST_TRUNC): Define.
7200 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
7201 (main): Rename to ...
7202 (do_test): ...this. Run new tests.
7203 (TEST_FUNCTION): Define.
7204
72052006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
7206 Joe Kerian <jkerian@us.us.ibm.com>
7207
7208 [BZ #2749]
7209 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
7210 handling for high words.
7211 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
7212 and overflow for infinity.
7213
4e35ef2c
UD
72142007-01-15 Ulrich Drepper <drepper@redhat.com>
7215
2a1dea97
UD
7216 * nscd/connections.c (handle_request): Add a __builtin_expect.
7217
9691d83c
UD
7218 * nscd/connections.c (serv2db): Change type into structure which
7219 also says whether this is a request for data. Renamed to
7220 servinfo. All users changed.
7221 (handle_request): Much simpler test whether we should search the cache.
7222
49ee6d79
UD
7223 * nscd/connections.c (handle_request): Fix thinko in selinux test
7224 invocation.
7225
4e35ef2c
UD
7226 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
7227 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
7228 it before getting dl_load_lock and then relock.
7229 (_dl_lookup_symbol_x): Pass flags to add_dependency.
7230 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
7231 case we unlocked the scope.
7232 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
7233 _dl_lookup_symbol_x in case we locked the scope.
7234 (_dl_profile_fixup): Likewise.
7235 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
7236 set DL_LOOKUP_SCOPE_LOCK.
7237
23691ab2
UD
72382007-01-13 Ulrich Drepper <drepper@redhat.com>
7239
fb453d08
UD
7240 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
7241 CFLAGS-getsrvbynpt_r.c.
7242 * nscd/getsrvbynm_r.c: New file.
7243 * nscd/getsrvbypt_r.c: New file.
7244 * nscd/nscd_getserv_r.c: New file.
7245 * nscd/servicescache.c: New file.
7246 * nscd/Makefile (routines): Add nscd_getserv_r.
7247 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
7248 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
7249 CFLAGS-getsrvbypt_r.c.
7250 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
7251 table. Add entries for services database.
7252 * nscd/connections.c (serv2str): Mark as const. Add entries for
7253 services database.
7254 (dbs): Add .reset_res and servdb initialization.
7255 (serv2db): Add entries for services database.
7256 (verify_persistent_db): Accept dbnr == servdb.
7257 (invalidate_cache): Rewrite database name recognition to use a table.
7258 Call res_init() if .reset_res is set for database.
7259 (handle_request): Add code to handle services database.
7260 * nscd/gai.c: Don't define __getservbyname_r.
7261 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
7262 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
7263 (serv_response_header): Define.
7264 (struct datahead): Add serv_response_header member.
7265 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
7266 using table.
7267 * nscd/nscd.conf: Add entries for services database.
7268 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
7269 Declare serv_iov_disabled.
7270 Declare addservbyname, readdservbyname, addservbyport, and
7271 readdservbyport.
7272 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
7273 (find_db): Fix error message.
7274 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
7275 __nscd_getservbyname_r, and __nscd_getservbyport_r.
7276 * nscd/selinux.c (perms): Add entries for services database.
7277 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
7278 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
7279
7280 * nscd/grpcache.c: Remove obsolete code. Cleanups.
7281 * nscd/hstcache.c: Likewise.
7282 * nscd/pwdcache.c: Likewise.
7283
b21fa963
UD
7284 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
7285 computation of keylen.
7286
23691ab2
UD
7287 * include/string.h: Only redefine strndupa if this is really for
7288 libc code.
7289
8980796b
UD
72902007-01-12 Ulrich Drepper <drepper@redhat.com>
7291
4a4a65f2
UD
7292 * nscd/nscd_gethst_r.c: Minor cleanups.
7293
43397eaf
UD
7294 * nscd/connections.c (handle_request): Check selinux permissions
7295 for all non-admin commands.
7296
038a1a9f
UD
7297 * sysdeps/i386/i486/bits/atomic.h: Define
7298 atomic_compare_and_exchange_val_acq,
7299 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
7300 using __sync_* built-ins for gcc >= 4.1.
7301 * sysdeps/x86_64/bits/atomic.h: Likewise.
7302
8980796b
UD
7303 [BZ #3840]
7304 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
7305 and .oS.d files.
7306
32c075e1
JJ
73072007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
7308
7309 * stdlib/tst-makecontext.c: Include errno.h. Change main()
7310 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
7311 (do_test): Check errno and exit(0) if ENOSYS.
7312
73132007-01-11 Jakub Jelinek <jakub@redhat.com>
7314
7315 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
7316 thousands separators.
7317 * stdlib/Makefile: Add rules to build and run tst-strtod4.
7318 * stdlib/tst-strtod4.c: New test.
7319
7320 [BZ #3855]
7321 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
7322 hexadecimal digit should accept just the initial 0.
7323 * stdlib/tst-strtod2.c (tests): New variable.
7324 (do_test): Run several tests rather than just one.
7325
11bf311e 73262007-01-11 Jakub Jelinek <jakub@redhat.com>
df859a0c 7327
11bf311e
UD
7328 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
7329 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
df859a0c 7330
11bf311e 73312007-01-10 Ulrich Drepper <drepper@redhat.com>
32c075e1 7332
11bf311e
UD
7333 * io/fts.c: Make sure fts_cur is always valid after return from
7334 fts_read.
7335 Patch by Miloslav Trmac <mitr@redhat.com>.
64a0aa0f 7336
11bf311e 73372006-10-27 Richard Sandiford <richard@codesourcery.com>
32c075e1 7338
11bf311e
UD
7339 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
7340 (R_MIPS_NUM): Bump by 1.
32c075e1 7341
11bf311e 73422007-01-03 Jakub Jelinek <jakub@redhat.com>
32c075e1 7343
11bf311e
UD
7344 * posix/execvp.c: Include alloca.h.
7345 (allocate_scripts_argv): Renamed to...
7346 (scripts_argv): ... this. Don't allocate buffer here nor count
7347 arguments.
7348 (execvp): Use alloca if possible.
7349 * posix/Makefile: Add rules to build and run tst-vfork3 test.
7350 * posix/tst-vfork3.c: New test.
32c075e1
JJ
7351
73522007-01-03 Ulrich Drepper <drepper@redhat.com>
7353
7354 * string/Makefile (tst-strxfrm2-ENV): Define.
11bf311e 7355 * stdlib/Makefile (tst-strtod3-ENV): Define.
32c075e1 7356
11bf311e 73572007-01-02 Ulrich Drepper <drepper@redhat.com>
32c075e1 7358
11bf311e
UD
7359 * posix/getconf.c: Update copyright year.
7360 * nss/getent.c: Likewise.
7361 * iconv/iconvconfig.c: Likewise.
7362 * iconv/iconv_prog.c: Likewise.
7363 * elf/ldconfig.c: Likewise.
7364 * catgets/gencat.c: Likewise.
7365 * csu/version.c: Likewise.
7366 * elf/ldd.bash.in: Likewise.
7367 * elf/sprof.c (print_version): Likewise.
7368 * locale/programs/locale.c: Likewise.
7369 * locale/programs/localedef.c: Likewise.
7370 * nscd/nscd.c (print_version): Likewise.
7371 * debug/xtrace.sh: Likewise.
7372 * malloc/memusage.sh: Likewise.
7373 * malloc/mtrace.pl: Likewise.
7374 * debug/catchsegv.sh: Likewise.
64a0aa0f 7375
11bf311e 73762006-12-24 Ulrich Drepper <drepper@redhat.com>
48576885 7377
11bf311e
UD
7378 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
7379 attempts.
48576885 7380
11bf311e 73812006-12-23 Ulrich Drepper <drepper@redhat.com>
3b6667a4 7382
11bf311e 7383 * posix/wordexp.c: Remove some unnecessary tests.
3b6667a4 7384
33c6de58
UD
73852006-12-22 Gavin Romig-Koch <gavin@redhat.com>
7386
7387 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
7388 blacklist the group till after we look it up.
7389
fc242bef
UD
73902006-12-21 Ulrich Drepper <drepper@redhat.com>
7391
7392 * include/atomic.h (atomic_forced_read): New macro.
7393
11bf311e
UD
73942006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
7395
7396 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
7397
a12dcecc
UD
73982006-12-19 Jakub Jelinek <jakub@redhat.com>
7399
11bf311e
UD
7400 * nss/getXXbyYY_r.c: Include atomic.h.
7401 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
7402 add atomic_write_barrier () in between.
7403
a12dcecc
UD
7404 * stdlib/Makefile (tests): Add tst-makecontext.
7405 * stdlib/tst-makecontext.c: New test.
7406
7407 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
7408 (__makecontext): Don't realign uc_mcontext.uc_regs.
7409
11bf311e 74102006-11-28 Jakub Jelinek <jakub@redhat.com>
594d423a 7411
11bf311e
UD
7412 * elf/dl-support.c: Include dl-procinfo.h.
7413 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
7414 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
7415 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
7416 Define.
7417 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
7418 hardcoded constants.
7419 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
7420 PPC_PLATFORM_* macros for array designators.
594d423a 7421
11bf311e 74222006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
594d423a 7423
11bf311e
UD
7424 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
7425 names to the beginning.
7426 (_dl_powerpc_platforms): Add "power6x".
7427 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
7428 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
7429 (_DL_PLATFORMS_COUNT): Increase.
7430 (_dl_string_platform): Handle power6x case.
7431 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
7432 PPC_FEATURE_POWER6_EXT): Define.
7433 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
594d423a 7434
5bcba0ed
UD
74352006-12-18 Jakub Jelinek <jakub@redhat.com>
7436
7437 [BZ #3747]
7438 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
11bf311e 7439 [-2^31 .. 2^31) range.
5bcba0ed
UD
7440 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
7441 targets.
7442 * stdlib/tst-rand48-2.c: New test.
7443 * stdlib/Makefile (tests): Add tst-rand48-2.
7444
9e1444fc
UD
74452006-12-14 Jakub Jelinek <jakub@redhat.com>
7446
7447 * misc/tst-pselect.c (do_test): Fix sigblock argument.
7448
36775704
UD
74492006-12-14 Ulrich Drepper <drepper@redhat.com>
7450
7451 * misc/tst-pselect.c (do_test): Make sure the helper process is
7452 terminating when the test is aborted.
7453
1e88bd0f
UD
74542006-12-13 Ulrich Drepper <drepper@redhat.com>
7455
11bf311e
UD
7456 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
7457 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
7458 Handle relatime mount option.
7459
1e88bd0f
UD
7460 [BZ #2337]
7461 * libio/Makefile (tests): Add tst-setvbuf1.
7462 * libio/tst-setvbuf1.c: New file.
7463
74642006-12-08 Jakub Jelinek <jakub@redhat.com>
7465
7466 [BZ #2337]
7467 * libio/genops.c (__uflow): Fix a typo.
7468 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
7469 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
7470 the narrow buffer size.
7471
74722006-11-24 Jakub Jelinek <jakub@redhat.com>
7473
7474 [BZ #2337]
7475 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
7476 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
7477 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
7478 in _flags.
7479 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
7480 _IO_wstr_finish): Likewise.
7481 * libio/wmemstream.c (open_wmemstream): Likewise.
7482 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
7483 even for wide streams.
7484
11bf311e 74852006-12-13 Jakub Jelinek <jakub@redhat.com>
1f55ce48 7486
11bf311e
UD
7487 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
7488 kernel-features.h.
7489
74902006-12-11 Ulrich Drepper <drepper@redhat.com>
7491
7492 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
7493 separators also if no non-zero digits found.
7494 * stdlib/Makefile (tests): Add tst-strtod3.
1f55ce48 7495
d117c1ce
UD
74962006-12-09 Ulrich Drepper <drepper@redhat.com>
7497
f85fb97b
UD
7498 [BZ #3632]
7499 * include/features.h: Fix comment about default value for
7500 _POSIX_C_SOURCE.
7501
11bf311e
UD
7502 [BZ #3664]
7503 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
7504 empty parsed strings.
7505 * stdlib/Makefile (tests): Add tst-strtod2.
7506 * stdlib/tst-strtod2.c: New file.
7507
7508 [BZ #3673]
7509 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
7510 computation.
7511 * stdlib/Makefile (tests): Add tst-atof2.
7512 * stdlib/tst-atof2.c: New file.
7513
7514 [BZ #3674]
7515 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
7516 correctly if removing trailing zero of hex-float.
7517 * stdlib/Makefile (tests): Add tst-atof1.
7518 * stdlib/tst-atof1.c: New file.
7519
a822d9f4
UD
75202006-12-09 Jakub Jelinek <jakub@redhat.com>
7521
11bf311e
UD
7522 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
7523 Start searching for next comma at p rather than rest.
7524 * misc/Makefile (tests): Add tst-mntent2.
7525 * misc/tst-mntent2.c: New test.
7526
a822d9f4
UD
7527 * misc/getusershell.c (initshells): Check for integer overflows.
7528 Make strings buffer one bigger as fgets always succeeds when second
7529 argument is 1. Don't use calloc for shells array. Disallow
11bf311e 7530 / as shell.
f0d5e1f6 7531
11bf311e 75322006-12-08 Ulrich Drepper <drepper@redhat.com>
f0d5e1f6 7533
11bf311e
UD
7534 * malloc/memusage.c: Handle realloc with new size of zero and
7535 non-NULL pointer correctly.
7536 (me): Really write first record twice.
7537 (struct entry): Make format bi-arch safe.
7538 (dest): Write out more realloc statistics.
7539 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
32c075e1 7540
11bf311e 75412006-12-05 Jakub Jelinek <jakub@redhat.com>
32c075e1 7542
11bf311e 7543 * nis/nis_subr.c (nis_getnames): Revert last change.
32c075e1 7544
f0d5e1f6
UD
75452006-12-04 Jakub Jelinek <jakub@redhat.com>
7546
7547 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
7548 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
7549 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
7550 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
7551 ENOTTY.
7552 * io/Makefile: Add rules to build and run tst-ttyname_r test.
7553 * io/tst-ttyname_r.c: New test.
7554
11bf311e 75552006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5df4fe08 7556
11bf311e 7557 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
5df4fe08 7558
11bf311e 75592006-11-30 H.J. Lu <hongjiu.lu@intel.com>
ee50871d 7560
11bf311e
UD
7561 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
7562 jump table entries.
7563
75642006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
7565
7566 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
7567 `clone' function to ensure proper unwinding stop of gdb.
7568 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
7569
75702006-12-01 Ulrich Drepper <drepper@redhat.com>
7571
7572 * nscd/nscd.init: Remove obsolete and commented-out -S option
7573 handling.
7574
75752006-11-23 Jakub Jelinek <jakub@redhat.com>
7576
7577 [BZ #3514]
7578 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
7579
7580 [BZ #3515]
7581 * manual/string.texi (strtok): Remove duplicate paragraph.
7582
75832006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7584
7585 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
7586 libgcc not supporting `rflags' unwinding (register # >= 17).
7587
75882006-11-30 Jakub Jelinek <jakub@redhat.com>
7589
7590 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
7591 succeeded.
7592
75932006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
7594 Jakub Jelinek <jakub@redhat.com>
7595 Jan Kratochvil <jan.kratochvil@redhat.com>
7596
7597 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
7598 unwind information.
7599 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
7600 'restore_rt' even in the 'signal' directory.
7601 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
ee50871d 7602
b1a758f3
UD
76032006-11-27 Jakub Jelinek <jakub@redhat.com>
7604
7605 [BZ #3559]
7606 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
11bf311e
UD
7607 malloc crashed. Don't allocate memory unnecessarily in each
7608 loop.
b1a758f3 7609
11bf311e 76102006-10-21 Jakub Jelinek <jakub@redhat.com>
854d1124 7611
11bf311e 7612 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
dfc99a56 7613
11bf311e 76142006-11-20 Ulrich Drepper <drepper@redhat.com>
dfc99a56 7615
11bf311e 7616 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
852d657c 7617
11bf311e 76182006-11-18 Bruno Haible <bruno@clisp.org>
852d657c 7619
11bf311e
UD
7620 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
7621 __sysconf only after having tried to call getgroups32.
36c0a636 7622
11bf311e 76232006-11-19 Ulrich Drepper <drepper@redhat.com>
36c0a636 7624
11bf311e
UD
7625 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
7626 addresses for IPv4 queries if they can be mapped.
b1f0c2a6 7627
11bf311e 76282006-11-16 Jakub Jelinek <jakub@redhat.com>
b1f0c2a6 7629
11bf311e
UD
7630 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
7631 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
7632 (signmask): Add .size directive.
7633 (othermask): Add .type directive.
bef8927a 7634
11bf311e 76352006-11-14 Ulrich Drepper <drepper@redhat.com>
2c53fa20 7636
11bf311e 7637 * po/nl.po: Update from translation team.
854d1124 7638
11bf311e 7639 * timezone/zdump.c: Redo fix for BZ #3137.
3f1e9205 7640
11bf311e 76412006-11-14 Jakub Jelinek <jakub@redhat.com>
bef8927a 7642
11bf311e
UD
7643 * nss/nss_files/files-alias.c (get_next_alias): Set line back
7644 to first_unused after parsing :include: file.
5c2af134 7645
32c075e1 76462006-11-10 Ulrich Drepper <drepper@redhat.com>
e1b37083 7647
11bf311e
UD
7648 * timezone/africa: Update from tzdata2006o.
7649 * timezone/antarctica: Likewise.
7650 * timezone/asia: Likewise.
7651 * timezone/australasia: Likewise.
7652 * timezone/backward: Likewise.
7653 * timezone/europe: Likewise.
7654 * timezone/iso3166.tab: Likewise.
7655 * timezone/northamerica: Likewise.
7656 * timezone/southamerica: Likewise.
7657 * timezone/zone.tab: Likewise.
7658
7659 * time/tzfile.c (__tzfile_read): Extend to handle new file format
7660 on machines with 64-bit time_t.
7661
7662 * timezone/checktab.awk: Update from tzcode2006o.
7663 * timezone/ialloc.c: Likewise.
7664 * timezone/private.h: Likewise.
7665 * timezone/scheck.c: Likewise.
7666 * timezone/tzfile.h: Likewise.
7667 * timezone/tzselect.ksh: Likewise.
7668 * timezone/zdump.c: Likewise.
7669 * timezone/zic.c: Likewise.
7670
7671 [BZ #3483]
7672 * elf/ldconfig.c (main): Call setlocale and textdomain.
7673 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
7674
7675 [BZ #3480]
7676 * manual/argp.texi: Fix typos.
7677 * manual/charset.texi: Likewise.
7678 * manual/errno.texi: Likewise.
7679 * manual/filesys.texi: Likewise.
7680 * manual/lang.texi: Likewise.
7681 * manual/maint.texi: Likewise.
7682 * manual/memory.texi: Likewise.
7683 * manual/message.texi: Likewise.
7684 * manual/resource.texi: Likewise.
7685 * manual/search.texi: Likewise.
7686 * manual/signal.texi: Likewise.
7687 * manual/startup.texi: Likewise.
7688 * manual/stdio.texi: Likewise.
7689 * manual/sysinfo.texi: Likewise.
7690 * manual/syslog.texi: Likewise.
7691 * manual/time.texi: Likewise.
7692 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7693
7694 [BZ #3465]
7695 * sunrpc/clnt_raw.c: Minimal message improvements.
7696 * sunrpc/pm_getmaps.c: Likewise.
7697 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
7698 * nis/nis_print_group_entry.c: Likewise.
7699 * locale/programs/repertoire.c: Likewise.
7700 * locale/programs/charmap.c: Likewise.
7701 * malloc/memusage.sh: Likewise.
7702 * elf/dl-deps.c: Likewise.
7703 * locale/programs/ld-collate.c: Likewise.
7704 * libio/vswprintf.c: Likewise.
7705 * malloc/memusagestat.c: Likewise.
7706 * sunrpc/auth_unix.c: Likewise.
7707 * sunrpc/rpc_main.c: Likewise.
7708 * nscd/cache.c: Likewise.
7709 * locale/programs/repertoire.c: Unify output messages.
7710 * locale/programs/charmap.c: Likewise.
7711 * locale/programs/ld-ctype.c: Likewise.
7712 * locale/programs/ld-monetary.c: Likewise.
7713 * locale/programs/ld-numeric.c: Likewise.
7714 * locale/programs/ld-time.c: Likewise.
7715 * elf/ldconfig.c: Likewise.
7716 * nscd/selinux.c: Likewise.
7717 * elf/cache.c: Likewise.
7718 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
7719
5c2af134
UD
7720 [BZ #3451]
7721 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
7722 change atomic.
7723 (ceil): Likewise.
7724
11bf311e
UD
77252006-11-10 Jakub Jelinek <jakub@redhat.com>
7726
7727 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
7728 if N is one bigger than return value.
7729 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
7730 and l1 last arguments, if buf is defined, verify the return value
7731 equals to strlen (buf) and verify no byte beyond passed length
7732 is modified.
7733
77342006-11-10 Ulrich Drepper <drepper@redhat.com>
7735
7736 * po/sv.po: Update from translation team.
7737
37afcf79
UD
77382006-11-09 Ulrich Drepper <drepper@redhat.com>
7739
7740 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
7741 noinline attribute.
7742
77432006-11-10 Jakub Jelinek <jakub@redhat.com>
7744
7745 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
7746 noinline attribute.
7747
11bf311e
UD
7748 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
7749 Use __new_sys_siglist instead of _sys_siglist_internal as
7750 second macro argument.
7751 (_old_sys_siglist): Use declare_symbol_alias macro instead of
7752 strong_alias.
2692deea 7753
11bf311e
UD
77542006-11-09 Ulrich Drepper <drepper@redhat.com>
7755
7756 [BZ #3493]
7757 * posix/unistd.h (sysconf): Remove const attribute.
7758
7759 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
7760 temporary or deprecated addresses.
7761 Patch by Sridhar Samudrala <sri@us.ibm.com>.
7762
7763 * string/Makefile (tests): Add tst-strxfrm2.
7764 * string/tst-strxfrm2.c: New file.
7765
77662006-10-09 Jakub Jelinek <jakub@redhat.com>
7767
7768 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
7769 rather than r->r_brk.
2692deea
UD
7770
77712006-11-08 Jakub Jelinek <jakub@redhat.com>
7772
11bf311e
UD
7773 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
7774 optimization even if needed > n.
7775
2692deea
UD
7776 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
7777 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
7778 return false, otherwise return true.
7779 (cache_rpath): Return decompose_rpath return value.
7780
11bf311e
UD
77812006-11-07 Jakub Jelinek <jakub@redhat.com>
7782
7783 * include/libc-symbols.h (declare_symbol): Rename to...
7784 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
7785 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
7786 .size directive.
7787 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
7788 changes.
7789 * sysdeps/gnu/siglist.c: Likewise.
7790
77912006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
7792
7793 * sysdeps/powerpc/fpu/bits/mathinline.h
7794 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
7795 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
7796
77972006-11-05 Ulrich Drepper <drepper@redhat.com>
7798
7799 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
7800 Update handling of cache descriptor 0x49 for new models.
7801 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
7802 Likewise.
7803
9666e36c
UD
78042006-11-02 Jakub Jelinek <jakub@redhat.com>
7805
7806 * malloc/memusage.c (dest): Reset not_me back to false after
7807 printing statistics.
7808
11bf311e
UD
78092006-11-02 Ulrich Drepper <drepper@redhat.com>
7810
7811 * configure.in: Work around ld --help change and avoid -z relro
7812 test completely if the architecture doesn't care about security.
7813
78142006-11-01 Ulrich Drepper <drepper@redhat.com>
7815
7816 * po/sv.po: Update from translation team.
7817
78182006-10-31 Ulrich Drepper <drepper@redhat.com>
7819
7820 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
7821 generate compatibility version.
7822
78232006-10-29 Ulrich Drepper <drepper@redhat.com>
7824
7825 * configure.in: Relax -z relro requirement a bit.
7826
7827 * po/sv.po: Update from translation team.
7828
78292006-10-29 Jakub Jelinek <jakub@redhat.com>
7830
7831 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
7832 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
7833 * elf/dl-close.c (_dl_close_worker): Likewise.
7834 * elf/dl-open.c (_dl_open_worker): Likewise.
7835 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
7836
b2369ca3
UD
78372006-10-27 Ulrich Drepper <drepper@redhat.com>
7838
11bf311e
UD
7839 * configure.in: Require assembler support for visibility, compiler
7840 support for visibility and aliases, linker support for various -z
7841 options.
7842 * Makeconfig: Remove conditional code which now is unnecessary.
7843 * config.h.in: Likewise.
7844 * config.make.in: Likewise.
7845 * dlfcn/Makefile: Likewise.
7846 * elf/Makefile: Likewise.
7847 * elf/dl-load.c: Likewise.
7848 * elf/rtld.c: Likewise.
7849 * include/libc-symbols.h: Likewise.
7850 * include/stdio.h: Likewise.
7851 * io/Makefile: Likewise.
7852 * io/fstat.c: Likewise.
7853 * io/fstat64.c: Likewise.
7854 * io/fstatat.c: Likewise.
7855 * io/fstatat64.c: Likewise.
7856 * io/lstat.c: Likewise.
7857 * io/lstat64.c: Likewise.
7858 * io/mknod.c: Likewise.
7859 * io/mknodat.c: Likewise.
7860 * io/stat.c: Likewise.
7861 * io/stat64.c: Likewise.
7862 * libio/stdio.c: Likewise.
7863 * nscd/Makefile: Likewise.
7864 * stdlib/Makefile: Likewise.
7865 * stdlib/atexit.c: Likewise.
7866 * sysdeps/generic/ldsodefs.h: Likewise.
7867 * sysdeps/i386/dl-machine.h: Likewise.
7868 * sysdeps/i386/sysdep.h: Likewise.
7869 * sysdeps/i386/i686/memcmp.S: Likewise.
7870 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
7871 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
7872 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
7873
7874 * Makerules: USE_TLS support is now default.
7875 * tls.make.c: Likewise.
7876 * csu/Versions: Likewise.
7877 * csu/libc-start.c: Likewise.
7878 * csu/libc-tls.c: Likewise.
7879 * csu/version.c: Likewise.
7880 * dlfcn/dlinfo.c: Likewise.
7881 * elf/dl-addr.c: Likewise.
7882 * elf/dl-cache.c: Likewise.
7883 * elf/dl-close.c: Likewise.
7884 * elf/dl-iteratephdr.c: Likewise.
7885 * elf/dl-load.c: Likewise.
7886 * elf/dl-lookup.c: Likewise.
7887 * elf/dl-object.c: Likewise.
7888 * elf/dl-open.c: Likewise.
7889 * elf/dl-reloc.c: Likewise.
7890 * elf/dl-support.c: Likewise.
7891 * elf/dl-sym.c: Likewise.
7892 * elf/dl-sysdep.c: Likewise.
7893 * elf/dl-tls.c: Likewise.
7894 * elf/ldconfig.c: Likewise.
7895 * elf/rtld.c: Likewise.
7896 * elf/tst-tls-dlinfo.c: Likewise.
7897 * elf/tst-tls1.c: Likewise.
7898 * elf/tst-tls10.h: Likewise.
7899 * elf/tst-tls14.c: Likewise.
7900 * elf/tst-tls2.c: Likewise.
7901 * elf/tst-tls3.c: Likewise.
7902 * elf/tst-tls4.c: Likewise.
7903 * elf/tst-tls5.c: Likewise.
7904 * elf/tst-tls6.c: Likewise.
7905 * elf/tst-tls7.c: Likewise.
7906 * elf/tst-tls8.c: Likewise.
7907 * elf/tst-tls9.c: Likewise.
7908 * elf/tst-tlsmod1.c: Likewise.
7909 * elf/tst-tlsmod13.c: Likewise.
7910 * elf/tst-tlsmod13a.c: Likewise.
7911 * elf/tst-tlsmod14a.c: Likewise.
7912 * elf/tst-tlsmod2.c: Likewise.
7913 * elf/tst-tlsmod3.c: Likewise.
7914 * elf/tst-tlsmod4.c: Likewise.
7915 * elf/tst-tlsmod5.c: Likewise.
7916 * elf/tst-tlsmod6.c: Likewise.
7917 * include/errno.h: Likewise.
7918 * include/link.h: Likewise.
7919 * include/tls.h: Likewise.
7920 * locale/global-locale.c: Likewise.
7921 * locale/localeinfo.h: Likewise.
7922 * malloc/arena.c: Likewise.
7923 * malloc/hooks.c: Likewise.
7924 * malloc/malloc.c: Likewise.
7925 * resolv/Versions: Likewise.
7926 * sysdeps/alpha/dl-machine.h: Likewise.
7927 * sysdeps/alpha/libc-tls.c: Likewise.
7928 * sysdeps/generic/ldsodefs.h: Likewise.
7929 * sysdeps/generic/tls.h: Likewise.
7930 * sysdeps/i386/dl-machine.h: Likewise.
7931 * sysdeps/ia64/dl-machine.h: Likewise.
7932 * sysdeps/ia64/libc-tls.c: Likewise.
7933 * sysdeps/mach/hurd/fork.c: Likewise.
7934 * sysdeps/mach/hurd/i386/tls.h: Likewise.
7935 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
7936 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
7937 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
7938 * sysdeps/s390/libc-tls.c: Likewise.
7939 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7940 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7941 * sysdeps/sh/dl-machine.h: Likewise.
7942 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7943 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7944 * sysdeps/x86_64/dl-machine.h: Likewise.
7945
131c4428
UD
7946 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
7947 split out locking and parameter checking.
7948 (_dl_close): Call _dl_close_worker after locking and checking.
7949 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
7950 _dl_close.
ffd0e1b7
UD
7951 * elf/Makefile: Add rules to build and run tst-thrlock.
7952 * elf/tst-thrlock.c: New file.
131c4428 7953
11bf311e
UD
7954 [BZ #3426]
7955 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
7956 reality.
7957
b2369ca3
UD
7958 [BZ #3429]
7959 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
131c4428 7960 we are sure we do not need it anymore for _dl_close. Also move
b2369ca3
UD
7961 the asserts inside the lock region.
7962 Patch mostly by Suzuki <suzuki@in.ibm.com>.
7963
11bf311e
UD
79642006-10-27 Jakub Jelinek <jakub@redhat.com>
7965
7966 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
7967 argument.
7968 (_dl_lookup_symbol_x): Adjust caller.
7969
7970 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
7971 _ns_global_scope.
7972 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
7973
7974 * elf/dl-libc.c: Revert l_scope name changes.
7975 * elf/dl-load.c: Likewise.
7976 * elf/dl-object.c: Likewise.
7977 * elf/rtld.c: Likewise.
7978 * elf/dl-close.c (_dl_close): Likewise.
7979 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
7980 always use __rtld_mrlock_{change,done}. Always free old scope list
7981 here if not l_scope_mem.
7982 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
7983 change. Never free scope list here. Just __rtld_mrlock_lock before
7984 the lookup and __rtld_mrlock_unlock it after the lookup.
7985 * elf/dl-sym.c: Likewise.
7986 * include/link.h (struct r_scoperec): Remove.
7987 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
7988 with l_scope_mem and l_scoperec_lock with l_scope_lock.
7989
79902006-10-25 Ulrich Drepper <drepper@redhat.com>
7991
7992 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
7993
79942006-10-18 Ulrich Drepper <drepper@redhat.com>
7995
7996 * configure.in: Disable building profile libraries by default.
7997
609cf614
UD
79982006-10-17 Jakub Jelinek <jakub@redhat.com>
7999
8000 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
8001 as signed longs, check for x_base + pos overflow.
8002 * sunrpc/Makefile (tests): Add tst-xdrmem2.
8003 * sunrpc/tst-xdrmem2.c: New test.
8004
11bf311e
UD
80052006-10-18 Ulrich Drepper <drepper@redhat.com>
8006
8007 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
8008 _dl_lookup_symbol_x code.
8009
80102006-10-17 Jakub Jelinek <jakub@redhat.com>
8011
8012 * elf/dl-runtime.c: Include sysdep-cancel.h.
8013 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
8014 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
8015 instead of catomic_* macros.
8016 * elf/dl-sym.c: Include sysdep-cancel.h.
8017 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
8018 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
8019 * elf/dl-close.c: Include sysdep-cancel.h.
8020 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
8021 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
8022 * elf/dl-open.c: Include sysdep-cancel.h.
8023 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
8024 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
8025
80262006-10-17 Jakub Jelinek <jakub@redhat.com>
8027
8028 [BZ #3313]
8029 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
8030 fastbin rather than end of fastbin array.
8031
80322006-10-18 Ulrich Drepper <drepper@redhat.com>
8033
8034 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
8035 body macro.
8036 * sysdeps/x86_64/bits/atomic.h
8037 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
8038 (catomic_decrement): Use correct body macro.
8039
80402006-10-17 Jakub Jelinek <jakub@redhat.com>
8041
8042 * include/atomic.h: Add a unique prefix to all local variables
8043 in macros.
8044 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
8045
4a85a8ee
UD
80462006-10-16 Ulrich Drepper <drepper@redhat.com>
8047
8048 [BZ #3369]
8049 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
8050 and 7.
8051
11bf311e
UD
80522006-10-14 Ulrich Drepper <drepper@redhat.com>
8053
8054 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
8055
ff8d96be
UD
80562006-10-13 Ulrich Drepper <drepper@redhat.com>
8057
11bf311e
UD
8058 [BZ #3313]
8059 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
8060 determine highest fast bin to consolidate, always look into all of
8061 them.
8062 (do_check_malloc_state): Only require for empty bins for large
8063 sizes in main arena.
8064
8065 * libio/stdio.h: Add more __wur attributes.
8066
ff8d96be
UD
8067 * elf/dl-minimal.c (realloc): Optimize last patch.
8068
90a0991a
UD
80692006-10-12 Richard Sandiford <richard@codesourcery.com>
8070
8071 [BZ #3352]
8072 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
8073 and use memcpy() if it does.
ff8d96be 8074
11bf311e
UD
80752006-11-12 Andreas Jaeger <aj@suse.de>
8076
8077 [BZ #2510]
8078 * manual/search.texi (Hash Search Function): Clarify.
8079 (Array Search Function): Clarify.
8080
80812006-11-12 Joseph Myers <joseph@codesourcery.com>
8082
8083 [BZ #2830]
8084 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
8085 shifting.
8086 * math/atest-exp2.c (read_mpn_hex): Likewise.
8087 * math/atest-sincos.c (main): Likewise.
8088
37fb7595
UD
80892006-10-11 Ulrich Drepper <drepper@redhat.com>
8090
11bf311e
UD
8091 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
8092 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
8093 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
8094 version GLIBC_2.6.
8095 * Versions.def: Add GLIBC_2.6 for libc.
8096
46c38bd7
UD
8097 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
8098
11bf311e
UD
8099 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
8100
81012006-10-11 Jakub Jelinek <jakub@redhat.com>
8102
8103 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
8104
8105 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
8106
8107 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
8108 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
8109
81102006-10-11 Ulrich Drepper <drepper@redhat.com>
8111
8112 * include/atomic.c: Define catomic_* operations.
8113 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
8114 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
8115 * malloc/memusage.c: Likewise.
8116 * gmon/mcount.c: Likewise.
8117 * elf/dl-close.c: Likewise.
8118 * elf/dl-open.c: Likewise.
8119 * elf/dl-profile.c: Likewise.
8120 * elf/dl-sym.c: Likewise.
8121 * elf/dl-runtime.c: Likewise.
8122 * elf/dl-fptr.c: Likewise.
8123 * resolv/res_libc.c: Likewise.
8124
2a6ee549
UD
81252006-10-10 Ulrich Drepper <drepper@redhat.com>
8126
8127 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
8128 components which lack them.
8129
8130 * nis/nis_subr.c (nis_getnames): Make sure that we always return
8131 at least one entry consisting of the parameter concatenated with
8132 the domain.
8133
11bf311e 81342006-10-10 Roland McGrath <roland@frob.com>
c4f9fc3a 8135
11bf311e
UD
8136 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
8137 * sysdeps/mach/hurd/futimes.c: Likewise.
8138 * sysdeps/mach/hurd/lutimes.c: Likewise.
8139
81402006-10-09 Ulrich Drepper <drepper@redhat.com>
8141 Jakub Jelinek <jakub@redhat.com>
8142
8143 Implement reference counting of scope records.
8144 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
8145 from the list in objects which remain. Always allocate new scope
8146 record.
8147 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
8148 don't resize, allocate a new one.
8149 * elf/dl-runtime.c: Update reference counters before using a scope
8150 array.
8151 * elf/dl-sym.c: Likewise.
8152 * elf/dl-libc.c: Adjust for l_scope name change.
8153 * elf/dl-load.c: Likewise.
8154 * elf/dl-object.c: Likewise.
8155 * elf/rtld.c: Likewise.
8156 * include/link.h: Include <rtld-lowlevel.h>. Define struct
8157 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
8158 Add l_scoperec_lock.
8159 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
8160 * sysdeps/generic/rtld-lowlevel.h: New file.
8161
8162 * include/atomic.h: Rename atomic_and to atomic_and_val and
8163 atomic_or to atomic_or_val. Define new macros atomic_and and
8164 atomic_or which do not return values.
8165 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
8166 Various cleanups.
8167 * sysdeps/i386/i486/bits/atomic.h: Likewise.
8168
8169 * po/sv.po: Update from translation team.
8170
81712006-10-07 Ulrich Drepper <drepper@redhat.com>
8172
8173 * Versions.def: Add GLIBC_2.6 to libpthread.
8174
8175 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
8176 (versioned_symbol): Likewise.
8177 (compat_symbol): Likewise.
8178
8179 * po/tr.po: Update from translation team.
feb87ad1 8180
4df92d57
UD
81812006-10-06 Ulrich Drepper <drepper@redhat.com>
8182
11bf311e
UD
8183 * nis/Banner: Removed. It's been integral part forever and the
8184 author info is incomplete anyway.
8185 * libio/Banner: Likewise.
8186
4df92d57
UD
8187 * nis/nis_table.c (nis_list): If __follow_path fails in the new
8188 code, make sure the nis_freeresult call doesn't crash and that the
8189 result is reported correctly.
8190
68361572
UD
81912006-09-27 Jakub Jelinek <jakub@redhat.com>
8192
8193 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
8194 when callback is NULL.
8195
8196 * nis/Versions (libnss_nisplus): Add
8197 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
8198 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
8199 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
8200 _nss_create_tablename): Rename to...
8201 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
8202 ... these. No longer static.
8203 (internal_setgrent): Adjust users.
8204 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8205 Don't use locking around _nss_grp_create_tablename call.
8206 * nis/nss_nisplus/nisplus-initgroups.c: New file.
8207
11bf311e
UD
82082006-10-06 Ulrich Drepper <drepper@redhat.com>
8209
8210 * version.h (VERSION): Bump to 2.5.90 for new development tree.
8211
3a4e0609
UD
82122006-10-06 Andreas Jaeger <aj@suse.de>
8213
8214 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
8215
82162006-10-06 Ulrich Drepper <drepper@redhat.com>
8217
8218 * po/pl.po: Update from translation team.
8219
8220 * nscd/nscd.c (main): Fix typo in message.
8221 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
8222
97e57dee
UD
82232006-10-02 Jakub Jelinek <jakub@redhat.com>
8224
8225 [BZ #3291]
8226 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
8227 errno.h, signal.h, unistd.h and sysdep-cancel.h.
8228 (__sigprocmask): Define.
8229
768027a4
UD
82302006-10-02 Ulrich Drepper <drepper@redhat.com>
8231
8232 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
8233 used.
8234
0b25a49a
UD
82352006-10-02 Jakub Jelinek <jakub@redhat.com>
8236
8237 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
8238 in oldtotal and newtotal calculation.
8239 * nscd/nscd-client.h (struct mapped_database): Add datasize
8240 field.
8241 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
8242 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
8243 increased.
8244 (__nscd_cache_search): Add checks to make sure we never reference
8245 data beyond the current mapping.
8246
a1286745
UD
82472006-10-02 Dmitry V. Levin <ldv@altlinux.org>
8248
d4ed7561
UD
8249 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
8250 variables const to avoid compiler warnings.
8251
a1286745
UD
8252 * io/fts.c (fts_close): Remove redundant checks.
8253 (fts_build): Likewise.
8254 (fts_palloc): Likewise.
8255
8256 * manual/message.texi (Advanced gettext functions,
8257 Using gettextized software): Fix typos.
8258
f01e4069
UD
82592006-09-30 Ulrich Drepper <drepper@redhat.com>
8260
8261 * posix/glob.c (glob_in_dir): Add some comments and asserts to
8262 explain why there are no leaks.
8263
154619b5
UD
82642006-09-29 Ulrich Drepper <drepper@redhat.com>
8265
690c3947
UD
8266 * libio/wmemstream.c: Include <wchar.h>.
8267 * libio/bug-wmemstream1.c: Likewise.
8268 * libio/tst-wmemstream1.c: Likewise.
8269 * libio/tst-wmemstream2.c: Likewise.
8270
88cc61e8
UD
8271 * version.h (RELEASE): Bump to 2.5.
8272 * README: Regenerated.
8273
a70c18b0
UD
8274 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
8275
154619b5
UD
8276 [BZ #3273]
8277 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
8278 found no group members.
8279 Patch by Petr Baudis.
8280
82812006-09-29 Jakub Jelinek <jakub@redhat.com>
8282
8283 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
8284 assert bootstrap_map.l_tls_modid is zero.
8285 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
8286 if USE___THREAD.
8287
1c31aa79
UD
82882006-09-27 Ulrich Drepper <drepper@redhat.com>
8289
8290 * libio/stdio.h: Move open_wmemstream prototype to ...
8291 * wcsmbs/wchar.h: ... here.
8292
f1122ec3
UD
82932006-09-25 Jakub Jelinek <jakub@redhat.com>
8294
8295 [BZ #3252]
8296 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
8297 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
8298 __{,l}chown to handle the rest.
8299 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
8300 fchownat syscall and __ASSUME_32BITUIDS case inline, call
8301 __{,l}chown to handle the rest.
8302 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
8303 i386/fchownat.c.
8304 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
8305 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
8306
8307 [BZ #3253]
8308 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8309 time, rather allocate increasingly bigger arrays of pointers, if
8310 possible with alloca, if too large with malloc.
8311
83122006-09-24 Jakub Jelinek <jakub@redhat.com>
8313
8314 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
8315
8316 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
8317
457b559e
UD
83182006-09-24 Ulrich Drepper <drepper@redhat.com>
8319
8320 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
8321 home addresses.
8322 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
8323 IFA_F_HOMEADDRESS flag for interfaces.
8324 * include/ifaddrs.h (struct in6addrinfo): Define
8325 in6ai_homeaddress.
8326
4a132246
UD
83272006-09-21 Jakub Jelinek <jakub@redhat.com>
8328
8329 [BZ #3225]
8330 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
8331 PTR_DEMANGLE3): Define.
8332 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
8333 PTR_DEMANGLE3): Likewise.
8334 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
8335 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
8336 Likewise.
8337 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
8338
c69136ae
UD
83392006-09-20 Jakub Jelinek <jakub@redhat.com>
8340
8341 * po/libc.pot: Regenerated.
8342 * po/be.po: Updated.
8343 * po/ca.po: Likewise.
8344 * po/cs.po: Likewise.
8345 * po/da.po: Likewise.
8346 * po/de.po: Likewise.
8347 * po/el.po: Likewise.
8348 * po/en_GB.po: Likewise.
8349 * po/es.po: Likewise.
8350 * po/fi.po: Likewise.
8351 * po/fr.po: Likewise.
8352 * po/gl.po: Likewise.
8353 * po/hr.po: Likewise.
8354 * po/hu.po: Likewise.
8355 * po/ja.po: Likewise.
8356 * po/ko.po: Likewise.
8357 * po/nb.po: Likewise.
8358 * po/nl.po: Likewise.
8359 * po/pl.po: Likewise.
8360 * po/pt_BR.po: Likewise.
8361 * po/ru.po: Likewise.
8362 * po/rw.po: Likewise.
8363 * po/sk.po: Likewise.
8364 * po/sv.po: Likewise.
8365 * po/tr.po: Likewise.
8366 * po/zh_CN.po: Likewise.
8367 * po/zh_TW.po: Likewise.
8368
8369 [BZ #3137]
8370 * iconv/iconv_prog.c (main): Fix spelling in error message.
8371 * iconv/iconvconfig.c (main): Likewise.
8372 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
8373 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
8374 * locale/programs/localedef.c (main): Likewise.
8375 * locale/programs/repertoire.c (repertoire_read): Likewise.
8376 * timezone/zdump.c (main): Likewise.
8377 * nscd/connections.c (handle_request): Fix spelling in log message.
8378 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
8379
83b3108c
UD
83802006-09-20 Ulrich Drepper <drepper@redhat.com>
8381
8382 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
8383 interfaces.
8384
89210b4c
AJ
83852006-09-20 Andreas Jaeger <aj@suse.de>
8386
8387 * math/libm-test.inc (lrint_test_upward): Fix typo.
8388
6624dbc0
UD
83892006-06-17 Joseph S. Myers <joseph@codesourcery.com>
8390
8391 [BZ #2592]
8392 * math/libm-test.inc (lrint_test_tonearest): New function.
8393 (lrint_test_towardzero): New function.
8394 (lrint_test_downward): New function.
8395 (lrint_test_upward): New function.
8396 (main): Run these new tests.
8397 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
8398 of values near to 0.
8399 (two52): Use double not long double.
8400 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
8401 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
8402 (two23): Use float not double.
8403 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
8404 (two23): Use float not double.
8405 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
8406 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
8407 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
8408 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
8409
60cb50c7
UD
84102006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
8411
8412 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
8413 Cast sp to unsigned long to avoid compiler warning.
8414 Use __makecontext_ret function instead of a trampoline on the stack.
8415 (__makecontext_ret): New function.
8416 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
8417
33315ced
UD
84182006-09-19 Jakub Jelinek <jakub@redhat.com>
8419
8420 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
8421 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
8422 bits.
8423
1ee2ff20
UD
84242006-09-19 Ulrich Drepper <drepper@redhat.com>
8425
8426 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
8427 sure no reference to the unloaded map's search list remains in the
8428 dependency's scope.
8429
84302006-09-16 Jakub Jelinek <jakub@redhat.com>
8431
8432 * elf/Makefile: Add rules to build and run unload7 test.
8433 * elf/unload7.c: New test.
8434 * elf/unload7mod1.c: New file.
8435 * elf/unload7mod2.c: New file.
8436
0466106e
UD
84372006-09-18 Jakub Jelinek <jakub@redhat.com>
8438
8439 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
8440 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
8441 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8442 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
8443 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8444 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
8445 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8446 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
8447 PTRACE_GETEVENTMSG): Likewise.
8448 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
8449 values.
8450
9c316a45
UD
84512006-09-17 Mike Frysinger <vapier@gentoo.org>
8452
0466106e
UD
8453 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
8454 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8455 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
8456 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9c316a45
UD
8457
84582006-09-16 Jakub Jelinek <jakub@redhat.com>
8459
8460 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
8461 write '\0' to the fd.
8462 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
8463 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
8464 Change regs to unsigned long pointer from unsigned int, fix fscr
8465 offset.
8466
fb146a76
UD
84672006-09-14 Jakub Jelinek <jakub@redhat.com>
8468
8469 * io/Makefile (CFLAGS-fstatat.c): Set.
8470 (CFLAGS-fstatat64.c): Likewise.
8471 (CFLAGS-mknodat.c): Likewise.
8472
8473 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
8474 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8475 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
8476 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
8477
4cd3633d
UD
84782006-09-14 Jakub Jelinek <jakub@redhat.com>
8479 Steven Munroe <sjmunroe@us.ibm.com>
fb146a76 8480
4cd3633d
UD
8481 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
8482 names to the beginning. Rename "cell" to "cellbe".
8483 (_dl_powerpc_platforms): New.
8484 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
8485 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
8486 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
8487 (_DL_HWCAP_PLATFORM): Define to new mask.
8488 (_dl_platform_string, _dl_string_platform): New functions.
8489 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
8490 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
8491
30aa5785
UD
84922006-09-12 Jakub Jelinek <jakub@redhat.com>
8493
8494 [BZ #2526]
8495 * README.libm: Fix a thinko in sqrt algorithm description.
8496
8497 [BZ #3143]
8498 * manual/string.texi (argz_delete): Fix prototype.
8499 Patch by <alpt@freaknet.org>.
8500
85012006-08-26 Joseph Myers <joseph@codesourcery.com>
8502
8503 [BZ #3138]
8504 * io/test-lfs.c (do_prepare): Give name_len type size_t.
8505 * io/tst-fcntl.c (do_prepare): Likewise.
8506 * posix/tst-exec.c (do_prepare): Likewise.
8507 * posix/tst-preadwrite.c (do_prepare): Likewise.
8508 * posix/tst-spawn.c (do_prepare): Likewise.
8509 * posix/tst-truncate.c (do_prepare): Likewise.
8510 * rt/tst-aio.c (do_prepare): Likewise.
8511 * rt/tst-aio64.c (do_prepare): Likewise.
8512 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
8513 size_t.
8514
d26d01d1
UD
85152006-09-09 Ulrich Drepper <drepper@redhat.com>
8516
41aba3d7
UD
8517 [BZ #2821]
8518 * time/mktime.c (guess_time_tm): Fix overflow detection.
8519 * time/Makefile (tests): Add bug-mktime1.
8520 * time/bug-mktime1.c: New file.
8521
eaa51b47 8522 [BZ #3189, #3188]
d26d01d1 8523 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
eaa51b47 8524 (mremap): Likewise.
d26d01d1 8525
ba40cc15
UD
85262006-09-07 Jakub Jelinek <jakub@redhat.com>
8527
2b6a801e
UD
8528 [BZ #1006]
8529 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
8530 Ensure relocation doesn't clobber any bits outside of the
8531 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
8532 R_SPARC_HI22 and R_SPARC_H44.
8533
469615bd
UD
8534 [BZ #2775]
8535 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
8536 (long) (MINSIZE + nb - old_size) is positive.
8537
8538 * malloc/arena.c (grow_heap): When growing bail even if new_size
8539 is negative.
8540
ba40cc15
UD
8541 [BZ #3155]
8542 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
8543 stack below r1.
8544
243b9ac1
UD
85452006-09-06 Jakub Jelinek <jakub@redhat.com>
8546
ba40cc15
UD
8547 * posix/regex_internal.c (re_string_reconstruct): Handle
8548 offset < pstr->valid_raw_len && pstr->offsets_needed case.
8549 Ensure no bytes read before raw_mbs array. Pass a saved copy of
8550 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
8551 re_string_context_at.
8552 * posix/Makefile: Add rules to build and run bug-regex26 test.
8553 * posix/bug-regex26.c: New test.
8554
243b9ac1
UD
8555 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
8556 rather than col_sym_free. Move seqp declaration earlier.
8557
8558 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
8559
d052233c
UD
85602006-09-05 Jakub Jelinek <jakub@redhat.com>
8561
8562 * nscd/initgrcache.c (addinitgroupsX): Move any_success
8563 decl before first goto out.
8564
71213dc2
UD
85652006-09-04 Jakub Jelinek <jakub@redhat.com>
8566
8567 * Makerules (shlib.lds): If have-hash-style, put .hash section
8568 at the end of the RO segment.
8569
85702006-09-04 Ulrich Drepper <drepper@redhat.com>
8571
8572 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
8573 style hash table format is used.
8574
03eeff83
UD
85752006-09-04 Jakub Jelinek <jakub@redhat.com>
8576
8577 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
8578 randomization rather than before.
8579 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
8580
b80770b2
UD
85812006-08-31 Jakub Jelinek <jakub@redhat.com>
8582
ba40cc15 8583 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
b80770b2
UD
8584
8585 * malloc/malloc.c (_int_malloc): Use full list insert and not
8586 shortcut which assumes the list is empty for large requests
8587 too.
8588
8589 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
8590
99ea5991
UD
85912006-08-30 Jakub Jelinek <jakub@redhat.com>
8592
8593 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
8594 and offout arguments to the prototype.
8595 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
8596 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
8597 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
8598 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
8599 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
8600 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
8601 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
8602 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
8603
4004a0a5
UD
86042006-08-28 Ulrich Drepper <drepper@redhat.com>
8605
950398e1
UD
8606 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
8607
4004a0a5
UD
8608 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
8609 dlopen parameters.
8610
6e310111
UD
86112006-08-28 Jakub Jelinek <jakub@redhat.com>
8612
8613 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
8614 only if herrno is NETDB_INTERNAL. Handle errors other than
8615 ERANGE outside of the loops, handle TRY_AGAIN.
8616
8617 * locale/programs/ld-ctype.c (translit_flatten): Issue error
8618 if other's ctype category was missing.
8619 * locale/programs/ld-collate.c (collate_read): Return if
8620 copy_locale's collate category is missing.
8621
07014fca
UD
86222006-08-27 Ulrich Drepper <drepper@redhat.com>
8623
8624 [BZ #2684]
8625 * malloc/malloc.c (public_rEALLOc): Try harder by using other
8626 arenas if allocation failed.
8627 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
8628
71663747
UD
86292006-08-26 Ulrich Drepper <drepper@redhat.com>
8630
41999a1a
UD
8631 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
8632 waste bins[0..1].
8633 (malloc_state): Reduce bins size by 2.
8634 (_int_malloc): Fix test for large enough buffer for early termination.
8635 When no unsorted block matches perfectly and an exiting block has
8636 to be split, use full list insert and not shortcut which assumes
8637 the list is empty.
8638
71663747
UD
8639 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
8640 failure.
8641
93b53ca2
UD
86422006-08-24 Ulrich Drepper <drepper@redhat.com>
8643
f5a82772
UD
8644 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
8645 do anything.
8646
2ac9ca73
UD
8647 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
8648 symbol require exact match (these are PLTs).
8649 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
8650 (_dl_ppc64_addr_sym_match): Likewise.
8651
93b53ca2
UD
8652 [BZ #2683]
8653 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
8654 If symbol has a value use it.
8655 * elf/tst-dladdr1.c: New file.
8656 * elf/Makefile: Add rules to build and run tst-addr1.
8657
7463d5cb
UD
86582006-08-24 Jakub Jelinek <jakub@redhat.com>
8659
8660 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
8661 keeps failing and heap growth or new heap creation isn't
8662 successful either.
8663 * malloc/tst-malloc.c (main): Add new tests.
8664
542a6f62
UD
86652006-08-24 Ulrich Drepper <drepper@redhat.com>
8666
8667 [BZ #2734]
8668 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
8669 as in the x86-64 code to use bswap.
8670
aa2c6b6d
UD
86712006-05-21 Joseph S. Myers <joseph@codesourcery.com>
8672
24982798 8673 [BZ #2680]
aa2c6b6d
UD
8674 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
8675 __USE_UNIX98.
8676 * posix/bits/unistd.h: Likewise.
8677
59776aef
UD
86782006-05-15 Mike Frysinger <vapier@gentoo.org>
8679
8680 [BZ #2751]
8681 * string/strchr.c: Add cast to avoid warning.
8682
e404fb16
UD
86832006-08-21 Ulrich Drepper <drepper@redhat.com>
8684
8685 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
bd2c2341 8686 platforms define as 512K. For 64-bit platforms as 32MB. The lower
e404fb16
UD
8687 limit is needed to avoid the exploding of the address space
8688 requirement for secondary heaps.
8689 * malloc/arena.c (HEAP_MAX_SIZE): Define using
8690 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
8691
376e973a
UD
86922006-07-30 Joseph S. Myers <joseph@codesourcery.com>
8693
8694 [BZ #3018]
8695 * Makerules (depfiles): Handle extra-test-objs the same as
8696 extra-objs.
8697 (common-mostlyclean): Likewise.
8698 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
8699 instead.
8700 * elf/Makefile (extra-objs): Likewise.
8701 * stdlib/Makefile (extra-objs): Likewise.
8702
240c62a7
UD
87032006-08-14 Eric Blake <ebb9@byu.net>
8704
8705 [BZ #3044]
8706 * misc/error.h: Assume C89 or better.
8707 * misc/error.c: Likewise.
8708
3997b7c4
UD
87092006-08-21 Ulrich Drepper <drepper@redhat.com>
8710
8711 [BZ #3040]
8712 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
8713 __ASSUME_ATFCTS is defined.
8714
8a6537b0
UD
87152006-08-19 Ulrich Drepper <drepper@redhat.com>
8716
72320021
UD
8717 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
8718 to sort in each call.
8719
ed3691ba
UD
8720 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
8721 is empty simply return and use next service.
8722 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
8723
8a6537b0
UD
8724 * locale/programs/charmap.c (charmap_read): Add new parameter. It
8725 tells us when not finding a charmap file is an error.
8726 * locale/programs/charmap.h: Adjust charmap_read prototype.
8727 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
8728 cannot find a charmap.
8729 * locale/programs/localedef.c (main): Adjust charmap_read call.
8730
ad2a3c07
UD
87312006-08-15 Jakub Jelinek <jakub@redhat.com>
8732
8733 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
8734 sysdeps/posix/pause.c implementation instead.
8735
87362006-08-09 Jakub Jelinek <jakub@redhat.com>
8737
8738 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
8739 to EPERM.
8740
f17efcb4
UD
87412006-08-13 Andreas Schwab <schwab@suse.de>
8742
8743 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
8744 Don't clobber caller's LRSAVE.
8745 (_dl_prof_resolve): Likewise.
8746
107b8a92
UD
87472006-08-14 Ulrich Drepper <drepper@redhat.com>
8748
8749 [BZ #1996]
8750 * libio/memstream.c (open_memstream): Allocate initial buffer with
8751 calloc.
8752 * libio/wmemstream.c (open_wmemstream): Likewise.
8753 * libio/strops.c: Pretty printing.
8754 (_IO_str_overflow): Clear uninitialized part of the new buffer.
8755 (enlarge_userbuf): New function.
8756 (_IO_str_seekoff): Call it if seek position is larger than current
8757 buffer.
8758 * libio/wstrops.c: Likewise.
8759 * libio/vasprintf.c: Add comment as to why we do not have to use
8760 calloc instead of malloc to allocate initial buffer.
8761 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
8762 * libio/bug-memstream1.c: New file.
8763 * libio/bug-wmemstream1.c: New file.
8764
fa3ac53f
UD
87652006-08-13 Ulrich Drepper <drepper@redhat.com>
8766
89993734
UD
8767 * libio/wstrops.c: Remove dead macro definitions and comments.
8768 * libio/strops.c: Likewise.
8769
fa3ac53f
UD
8770 [BZ #2764]
8771 * login/utmpname.c (__utmpname): Remove unnecessary test.
8772
f99ed760
UD
87732006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
8774
8775 [BZ #2832]
8776 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
8777 0s from integers.
8778
87792006-08-13 Ulrich Drepper <drepper@redhat.com>
8780
8781 [BZ #2987]
8782 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
8783 for CPU clocks.
8784 * sysdeps/unix/clock_settime.c: Add support for platform-specific
8785 setting of CPU clocks.
8786
4c3f81d0
UD
87872006-06-23 Paul Eggert <eggert@cs.ucla.edu>
8788
8789 [BZ #2841]
8790 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
8791 since C99 requires the result to promote to 'int' when uint_least8_t
8792 and uint_least16_t promote to 'int'.
8793
cd8e60ce
UD
87942006-08-12 Ulrich Drepper <drepper@redhat.com>
8795
9a5c46e8
UD
8796 [BZ #3013]
8797 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
8798 lenght of one output field, correct bitmask creation.
8799 * locale/programs/ld-time.c: Add alignment.
8800
cd8e60ce
UD
8801 [BZ #2997]
8802 * misc/error.c: Add space between program name and message if file
8803 name is missing.
8804
9a528884
UD
88052006-08-03 Eric Blake <ebb9@byu.net>
8806
8807 [BZ #2998]
8808 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
8809
1d05c2fb
UD
88102006-08-09 Ulrich Drepper <drepper@redhat.com>
8811
0c1c6c6c
UD
8812 * malloc/memusagestat.c: Silence warnings.
8813
1d05c2fb
UD
8814 * malloc/malloc.c: Dynamically size mmap treshold if the program
8815 frees mmaped blocks.
8816 Patch by Valerie Henson and Arjan van de Ven.
8817
2d1e6277
UD
88182006-08-08 Jakub Jelinek <jakub@redhat.com>
8819
be7ffd91
UD
8820 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
8821 __USE_GNU.
8822
2d1e6277
UD
8823 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
8824 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
8825 (DEF): Don't put the var into .gnu.linkonce.r.* section.
8826 Only provide var definitions in strtol_l (or for *ull*
8827 in strtoll_l).
8828
8829 * stdio-common/bug16.c (tests): New array.
8830 (do_tests): Allow the first hexadecimal digit
8831 to be 1, 2, 4 or 8. Do 3 additional tests.
8832
8833 * sysdeps/s390/fpu/libm-test-ulps: Update.
8834
8835 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
8836 fchownat syscall if available.
8837 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
8838 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
8839 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
8840
d0ccde25
UD
88412006-08-07 Ulrich Drepper <drepper@redhat.com>
8842
8843 * nis/nis_xdr.c: Avoid some function calls.
8844
13a0293d 88452006-08-07 Jakub Jelinek <jakub@redhat.com>
3f7a21a9 8846 Ulrich Drepper <drepper@redhat.com>
13a0293d
UD
8847
8848 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
8849 short cut if only one name component is stripped away.
8850
bd1ebae0
UD
88512006-08-07 Ulrich Drepper <drepper@redhat.com>
8852
8853 * nis/nis_call.c: Minor cleanups throughout.
2d1e6277 8854 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
bd1ebae0
UD
8855 (first_shoot): Add search_parent_first parameter. Only if it is set
8856 search parent server first.
8857 If directory for table found through cold start cache is not the same
8858 as referenced in the cache, don't use it.
8859 (__nisfind_server): Take additional parameter. Pass it on to
8860 first_shoot.
8861 (__prepare_niscall): Adjust __nisfind_server call.
8862 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
8863 * nis/nis_table.c: Adjust __nisfind_server call.
8864 * nis/nis_lookup.c: Likewise.
8865 (nis_lookup): Don't loop endlessly if name is reduced to ".".
8866
f1762c0c
UD
88672006-08-03 Ulrich Drepper <drepper@redhat.com>
8868
fe710250
UD
8869 [BZ #2182]
8870 * math/s_cacosh.c: Return values from positive branch.
8871 * math/s_cacoshf.c: Likewise.
8872 * math/s_cacoshl.c: Likewise.
8873
a5852807
UD
8874 [BZ #2883]
8875 * sysvipc/sys/msg.h: Change return value to ssize_t.
8876 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
fe710250
UD
8877 * sysvipc/msgrcv.c: Likewise.
8878 * include/sys/msg.h: Likewise.
39571a13 8879
6c215a8d
UD
8880 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
8881 test introduced in patch for bz #661.
39571a13 8882 (getgrouplist): Simplify code a bit. Don't allocate one additional
f13bfdd0 8883 element for NEWGROUPS.
6c215a8d 8884
9c06eb66
UD
8885 [BZ #2908]
8886 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
8887 'f', use '1' as leading digit not '\1'.
8888 * stdio-common/Makefile (tests): Add bug16.
8889 * stdio-common/bug16.c: New file.
8890
8891 [BZ #2914]
8892 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
8893 and don't try to open it. The patch introducing the macro
8894 contained a bug and used the same file name as the new file
8895 instead of using /var/adm/hostid. Nobody complaint so I'm taking
8896 this out completely.
8897
8898 [BZ #2926]
8899 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
8900 Patch by Jerry James <Jerry.James@usu.edu>.
8901
f1762c0c
UD
8902 * rt/Makefile (tests): Add tst-clock2.
8903 * rt/tst-clock2.c: New file.
8904
8905 [BZ #2978]
8906 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
8907 function and its parameters and pass it to new thread.
8908 (__gai_notify): Add support for alternative waiting for completion.
8909 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
8910 waiting for completion.
8911 * resolv/getaddrinfo_a.c: Likewise.
8912 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
8913 waiting for completion is used.
8914 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
8915 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
8916 * resolv/gai_error.c: Likewise.
8917 * resolv/gai_sigqueue.c: Likewise.
8918
83ae6b40
RM
89192006-08-02 Thomas Schwinge <tschwinge@gnu.org>
8920
0e4e62fe 8921 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
f1762c0c 8922 errno to EBADF and return MACH_PORT_NULL.
83ae6b40 8923
82ee37c5
UD
89242006-06-23 Joseph Myers <joseph@codesourcery.com>
8925
8926 [BZ #2980]
f1762c0c 8927 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
82ee37c5
UD
8928
89292006-08-02 Ulrich Drepper <drepper@redhat.com>
8930
8931 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
8932 walk them instead of the symbol table.
8933
7bb1b2c9
UD
89342006-08-01 Ulrich Drepper <drepper@redhat.com>
8935
f13bfdd0 8936 [BZ #2098]
fbbc73b3
UD
8937 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
8938 status of NSS calls, not the number of returned entries.
8939
a4518922
UD
8940 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
8941 request_key, keyctl.
7bb1b2c9 8942
b06e7e9a
UD
89432006-07-31 Ulrich Drepper <drepper@redhat.com>
8944
8945 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
8946
f1227969
UD
89472006-07-16 Jeff Bailey <jbailey@ubuntu.com>
8948
8949 * elf/tst-auditmod1.c: Fix typo in #error.
8950
82ae2712
UD
89512006-07-31 Ulrich Drepper <drepper@redhat.com>
8952
f1227969
UD
8953 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
8954
82ae2712
UD
8955 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
8956
a1260d92
UD
89572006-07-20 Adam Nemet <anemet@caviumnetworks.com>
8958
8959 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
b06e7e9a 8960 that the directory is empty even on non-POSIX filesystems.
a1260d92 8961
d2de41fe
UD
89622006-07-31 Ulrich Drepper <drepper@redhat.com>
8963
13669f2c
UD
8964 * elf/dl-open.c (dl_open_worker): Add branch prediction.
8965
d2de41fe
UD
8966 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
8967 the backend NSS module. If backend setgrent call failed, don't have
8968 internal_setgrent fail. Just remember this until it is needed.
8969 * nis/nss_compat/compat-pwd.c: Likewise.
8970 * nis/nss_compat/compat-spwd.c: Likewise.
8971
b894c2ea
RM
89722006-07-30 Roland McGrath <roland@redhat.com>
8973
8974 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
8975 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
8976 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
8977 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
8978
8979 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
8980 (nanosleep_not_cancel): New macro.
8981 (sigsuspend_not_cancel): new macro.
8982 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
8983 (do_sigsuspend): Define as inline.
8984 (__sigsuspend): Always use do_sigsuspend.
8985 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
8986 * include/signal.h: Declare __sigsuspend_nocancel.
8987 * sysdeps/posix/pause.c
8988 [! NO_CANCELLATION] (__pause_nocancel): New function.
8989
8990 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
8991 * include/time.h (__nanosleep_nocancel): Likewise.
8992
c10d32c8
UD
89932006-07-30 Ulrich Drepper <drepper@redhat.com>
8994
8995 * locale/programs/localedef.c (add_to_readlist): Rename local
8996 variables to avoid confusion.
8997
8998 * locale/programs/charmap.c (charmap_read): Emit error message if
8999 charmap couldn't be found or read.
9000
6822f056
UD
90012006-07-28 Ulrich Drepper <drepper@redhat.com>
9002
d5ba53f9
UD
9003 * sysdeps/unix/sysv/linux/kernel-features.h: Define
9004 __ASSUME_FUTEX_LOCK_PI.
9005 * include/time.h: Declare __nanosleep_nocancel.
9006 * include/unistd.h: Declare __pause_nocancel.
9007
6822f056
UD
9008 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
9009 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
9010 get the __stack_chk_fail_local definition when it's needed.
9011
3a975ff5
UD
90122006-07-26 Ulrich Drepper <drepper@redhat.com>
9013
6de1f625
UD
9014 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
9015 * dlfcn/bug-atexit3.c: New file.
9016 * dlfcn/bug-atexit3-lib.cc: New file.
9017
3a975ff5
UD
9018 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
9019 used when the namespace is not the base namespace.
9020
a92b1166
UD
90212006-07-26 Gavin Romig-Koch <gavin@redhat.com>
9022
9023 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
9024 (__new_exitfn): Bump it in every successful call.
9025 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
9026 more exit handlers, call them right away.
9027 * stdlib/exit.h: Declare __new_exitfn_called.
9028
a08336fb
UD
90292006-07-25 Ulrich Drepper <drepper@redhat.com>
9030
bd3754dc
UD
9031 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
9032 calling registered handler.
9033
a08336fb
UD
9034 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
9035 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9036 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9037 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9038 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9039 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9040 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9041 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9042
871b9158
UD
90432006-07-10 Ulrich Drepper <drepper@redhat.com>
9044
9045 * elf/dl-lookup.c (dl_new_hash): New functions.
9046 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
9047 value here. Compute new-style hash value. Pass new hash value
9048 and reference to variable with the old value to do_lookup_x.
9049 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
9050 old-style hash table.
9051 (_dl_debug_bindings): Pass new hash value and reference to variable
9052 with the old value to do_lookup_x.
9053 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
9054 new-style hash value and change old-style hash value parameter to
9055 be a reference. Reoganize functions to determine whether
9056 new-style hash table is available. Only fall back on old-style
9057 table. If old-style hash value is needed, compute it here.
9058 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
9059 entry.
9060 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
9061 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
9062 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
9063 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
9064 * Makeconfig: If linker supports --hash-style option add it to all
9065 linker command lines to build DSOs.
9066 * config.make.in: Define have-hash-style.
9067 * configure.in: Test whether linker supports --hash-style option.
9068
9069 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
9070 * sysdeps/generic/ldsodefs.h: Adjust prototype.
9071
a1f0de82
UD
90722006-06-27 Ulrich Drepper <drepper@redhat.com>
9073
361a3706
UD
9074 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
9075 auditing.
9076
a1f0de82
UD
9077 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
9078 RPATH of main map twice.
9079
4259230f
UD
90802006-06-22 Ulrich Drepper <drepper@redhat.com>
9081
9082 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
9083 look further, return original strings.
9084 (_nl_find_msg): Do not return found translation if the conversion
9085 failed. Either signal the string is unusable or that something went
9086 wrong and the original should be used.
9087
90882006-06-21 Ulrich Drepper <drepper@redhat.com>
9089
9090 * string/_strerror.c (__strerror_r): Add __builtin_expect.
9091
f9b7a98b
UD
90922006-06-14 Jakub Jelinek <jakub@redhat.com>
9093
9094 [BZ #2766]
9095 * misc/insremque.c (insque): Handle prev == NULL.
9096 * misc/Makefile (tests): Add tst-insremque.
9097 * misc/tst-insremque.c: New test.
9098
ac55a25b
UD
90992006-06-17 Ulrich Drepper <drepper@redhat.com>
9100
9101 [BZ #2792]
9102 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
9103 conflict with DL_DST_REQUIRED.
9104
02f366b3
UD
91052006-06-16 Ulrich Drepper <drepper@redhat.com>
9106
9107 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
9108 match what Solaris does.
9109
9009e8f8
UD
91102006-06-04 Ulrich Drepper <drepper@redhat.com>
9111
1b8373f4
UD
9112 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
9113 local_setegid instead of seteuid and setegid.
9114 * sysdeps/generic/local-setxid.h: New file.
9115 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
9116
7231452e
UD
9117 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
9118
9009e8f8 9119 * string/Makefile (tests): Add bug-envz1.
02f366b3 9120 * string/bug-envz1.c: New file.
9009e8f8 9121
33e63e79
UD
91222006-06-02 Jakub Jelinek <jakub@redhat.com>
9123
9124 * posix/regex_internal.c (re_string_skip_chars): If no character has
9125 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
9126 to the byte which couldn't be converted.
9127 (re_string_reconstruct): Don't clear valid_raw_len before calling
9128 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
9129 tip_context using re_string_context_at.
9130 * posix/Makefile: Add rules to build and run bug-regex25 test.
9131 * posix/bug-regex25.c: New test.
9132
fdc02996
UD
91332006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
9134
9135 [BZ #2703]
9136 * string/envz.c (envz_strip): Correct erroneously reversed src
9137 and dest parameters to memmove() invocation.
9138
902c4291
UD
91392006-05-30 Jakub Jelinek <jakub@redhat.com>
9140
9141 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
9142 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
9143 to make sure the database has been already invalidated.
9144 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
9145 after the cache has been invalidated. Use pthread_mutex_lock rather
9146 than pthread_mutex_trylock if fd != -1.
9147 * nscd/connections.c (invalidate_cache): Add fd argument, write
9148 response to fd if not calling prune_cache, pass fd to prune_cache.
9149 (handle_request): Adjust invalidate_cache caller.
9150 (nscd_run): Pass -1 as fd to prune_cache.
9151
ecc68568
UD
91522006-05-30 Ulrich Drepper <drepper@redhat.com>
9153
9154 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
9155 the correct place.
9156
9636a217
UD
91572006-05-29 Ulrich Drepper <drepper@redhat.com>
9158
9159 * nscd/nscd.h (struct database_dyn): Add prunelock field.
9160 * nscd/cache.c (prune_cache): Take prunelock before starting the
9161 work. Just return in case it is already taken.
cabfcde1 9162 * nscd/connections.c (dbs): Initialize .prunelock.
9636a217 9163
6bcb494a
UD
91642006-05-25 Ulrich Drepper <drepper@redhat.com>
9165
672d5a63 9166 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
ecc68568 9167 copying. No need to allocate new array for group members. Just
672d5a63
UD
9168 move the pointers and update the size.
9169
1663b44f
UD
9170 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
9171 Avoid memory leak in case realloc fails. Simplification for
9172 better code generation.
9173
9174 Avoid deprecation warning because of libc_hidden_proto for
9175 inet6_option_alloc.
9176 * inet/inet6_option.c (option_alloc): Renamed from
9177 inet6_option_alloc. Made static.
9636a217 9178 (inet6_option_alloc): Now a simple wrapper around option_alloc.
1663b44f
UD
9179 (inet6_option_append): Call option_alloc.
9180 * include/netinet/in.h: Remove libc_hidden_proto for
9181 inet6_option_alloc.
9182
6bcb494a
UD
9183 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
9184 for cleanup when cb!=NULL [Coverity CID 233].
9185
aec6b246
UD
91862006-05-24 Ulrich Drepper <drepper@redhat.com>
9187
07bfff20
UD
9188 [BZ #2693]
9189 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
9190 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
9191 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
9192 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
9193 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
9194 and inet6_rth_getaddr.
9195 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
9196 array.
9197 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
9198 Mark inet6_option_* interfaces as deprecated.
9199 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
9200 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
9201 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
9202 inet6_rth_segments, and inet6_rth_getaddr.
9203 * inet/inet6_opt.c: New file.
9204 * inet/inet6_rth.c: New file.
9205
9206 * inet/netinet/icmp6.h: Pretty printing.
9207
aec6b246
UD
9208 [BZ #2683]
9209 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
9210
2d571cd1
UD
92112006-05-23 Ulrich Drepper <drepper@redhat.com>
9212
062e719b
UD
9213 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
9214 doing it all here. When server does not know the answer do not
9215 fail immediate, try parent first.
9216
2d571cd1
UD
9217 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
9218 overflow test.
9219
a17fa610
UD
92202006-05-20 Ulrich Drepper <drepper@redhat.com>
9221
9222 * nis/nis_call.c (__prepare_niscall): New function. Split out
9223 from __do_niscall.
9224 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
9225 and exported.
9226 (__follow_path): New function. Split out from nis_list.
9227 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
9228 _xdr_nis_result.
9229 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
9230 _xdr_nis_result.
9231 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
9232 and __follow_path.
9233 * nis/Versions: Export __prepare_niscall, __create_ib_request,
9234 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
9235 from libnsl for version GLIBC_PRIVATE.
9236 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
9237 Remove entry parameter from _nss_nisplus_parse_pwent and
9238 _nss_nisplus_parse_grent.
9239 * nis/nss_nisplus/nisplus-parser.c: Likewise.
9240 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
9241 again. Rewrite getpwent handling to not use nis_first_entry and
9242 nis_next_entry. Roll out own niscall handling.
9243 * nis/nss_nisplus/nisplus-grp.c: Likewise.
9244
9245 * sunrpc/xdr_rec.c: Fix typo in comment.
9246
429bb183
UD
92472006-05-19 Ulrich Drepper <drepper@redhat.com>
9248
1d4f062a
UD
9249 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
9250 handling.
9251
101cc598
UD
9252 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
9253 to allocate memory for my_pollfd. Better initialization of
9254 cb_is_running. Use TEMP_FAILURE_RETRY.
9255
f50fa10c
UD
9256 * malloc/memusage.sh (memusageso): Add quotes.
9257 (memusagestat): Likewise.
9258 * debug/xtrace.sh (pcprofileso): Likewise.
9259 (pcprofiledump): Likewise.
9260 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
9261 replacement.
9262 * malloc/Makefile ($(objpfx)memusage): Likewise.
9263
882bfe73
UD
9264 * nis/nis_callback.c (__nis_create_callback): Calls to
9265 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
9266 asprintf call fails.
9267
429bb183
UD
9268 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
9269 no uninitialized memory is passed to sendto.
9270
f90de831
UD
92712006-05-18 Ulrich Drepper <drepper@redhat.com>
9272
9273 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
9274 of snprintf+strdup. Handle OOM.
9275 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
9276 cb->serv together. Remove now obsolete free calls.
9277 (__nis_destroy_callback): Remove now obsolete free call.
9278
a17fa610 92792006-05-18 David Woodhouse <dwmw2@redhat.com>
6e2a7825
UD
9280
9281 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
9282 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
9283 and ULA respectively). Set precedence for IPv4 address to 10 as
9284 defined in RFC3484 for preferring IPv6.
9285 * posix/gai.conf: Update to match the new default tables.
9286
758b9d7e
UD
92872006-05-18 Jakub Jelinek <jakub@redhat.com>
9288
9289 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
9290 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
9291 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
9292 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
9293
9294 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
9295 Removed.
9296 (init_nss_interface): Remove initialization of these variables.
9297
92982006-05-18 Ulrich Drepper <drepper@redhat.com>
9299
9300 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
9301 nis_free_directory forward to avoid duplication.
9302
388c779e
UD
93032006-05-17 Ulrich Drepper <drepper@redhat.com>
9304
5f1724bf
UD
9305 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
9306 rec_dirsearch returning NULL.
9307 (first_shoot): Handle __nis_finddirectory returning NULL.
9308 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
9309
388c779e
UD
9310 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
9311 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
9312
360d5cf4
UD
93132006-05-17 Jakub Jelinek <jakub@redhat.com>
9314
9315 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
9316 pid changed.
9317
88dbff8c
UD
93182006-05-15 Ulrich Drepper <drepper@redhat.com>
9319
6f8a7dff
UD
9320 * include/rpc/pmap_prot.h: Mark all functions as hidden.
9321
9322 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
9323 * nscd/nscd_getgr_r.c: Likewise.
9324
9325 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
9326
9327 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
9328 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
9329
9330 * stdlib/longlong.h (__clz_tab): Mark as hidden.
9331
9332 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
9333
360d5cf4 9334 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
8263ed62
UD
9335
9336 * include/rpc/auth.h: Mark xdr_des_block_internal and
9337 xdr_opaque_auth_internal as hidden.
9338
9339 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
9340 hidden.
9341
360d5cf4 9342 * include/rpc/xdr.h: Mark all _internal functions as hidden.
8263ed62 9343
02264020
UD
9344 * misc/getusershell.c (okshells): Don't use static initializers,
9345 do it dynamically.
9346
fd5ea238
UD
9347 * stdlib/fmtmsg.c (keywords): Change type of len element to
9348 uint32_t to not waste space on 64bit machines.
9349
9446614c
UD
9350 * locale/setlocale.c: Change _nl_category_names into a string.
9351 Add new _nl_category_name_idxs. Change all users.
9352 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
9353 Declare _nl_category_name_idxs.
9354 * locale/findlocale.c: Adjust for _nl_category_names change.
9355 * locale/loadlocale.c: Likewise.
9356 * locale/newlocale.c: Likewise.
9357 * intl/dcigettext.c: Likewise.
9358
88dbff8c
UD
9359 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
9360 (add_alias2): ...here. New function.
9361 (__gconv_read_conf): Simplify builtin alias handling.
9362 (builtin_aliases): Convert to string to avoid relocations.
9363 * iconv/gconv_builtin.h: Add comment about correct formatting.
9364
4442d58f
UD
93652006-05-15 Jakub Jelinek <jakub@redhat.com>
9366
9367 * resolv/res_debug.c (loc_ntoa): Make error const.
9368
93692006-05-14 Andreas Schwab <schwab@suse.de>
9370
9371 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
9372
93732006-05-12 Jakub Jelinek <jakub@redhat.com>
9374
9375 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
9376 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
9377 sizeof (cpu_set_t).
9378
a51752b6
UD
93792006-05-11 Ulrich Drepper <drepper@redhat.com>
9380
5d3fd1f6
UD
9381 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
9382
08cfb839
UD
9383 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
9384
4b481a15
UD
9385 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
9386 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
9387
9388 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
9389 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
9390
9391 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
9392 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
9393 xdr_cback_data.
9394
9395 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
9396 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9397 xdr_ypupdate_args.
9398
9399 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
9400 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
9401
9402 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
9403 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
9404
9405 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
9406 * include/rpcsvc/nis_callback.h: New file.
9407
9408 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
9409 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
9410
9411 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9412 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9413
9414 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
9415 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
9416
9417 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9418 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9419
b1ad49c6
UD
9420 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
9421 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9422 xdr_ypdelete_args.
9423
cd5f7829
UD
9424 * nis/nis_xdr.h: Mark all functions as hidden. Remove
9425 __BEGIN_DECLS and __END_DECLS, the header is not installed.
9426
a51752b6
UD
9427 * nis/nis_error.c: Remove table of strings. Use position
9428 independent mechanism.
9429 * nis/nis_error.h: New file.
9430
3d237e42
UD
94312006-05-11 Jakub Jelinek <jakub@redhat.com>
9432
9433 * locale/programs/ld-time.c (time_finish): If wide era name or
9434 format aren't provided, set both wname and wformat to L"".
9435
d6c159fe
UD
94362006-05-10 Ulrich Drepper <drepper@redhat.com>
9437
0088b04e
UD
9438 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
9439 results if the call was succesful.
9440
d6c159fe
UD
9441 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
9442
9443 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
9444 as hidden.
9445
5c5acdf0
UD
94462006-05-10 Jakub Jelinek <jakub@redhat.com>
9447
9448 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
9449
16d620db
UD
94502006-05-10 Ulrich Drepper <drepper@redhat.com>
9451
9452 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
9453 caller makes sure this is not the case.
9454 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
9455
e7c8359e
UD
94562006-05-09 Ulrich Drepper <drepper@redhat.com>
9457
ecf359c6
UD
9458 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
9459 calls.
9460
400cc70a
UD
9461 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
9462 [Coverity CID 229, 230]
9463
9464 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
9465 DGETTEXT calls.
9466 (hol_help): Likewise. [Coverity CID 226, 227]
9467
9468 * string/argz-replace.c (__argz_replace): Unconditionally call
9469 free on SRC. [Coverity CID 225]
9470
9471 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
9472 the return value of __nis_default_owner and __nis_default_group,
9473 it has been especially allocated. [Coverity CID 224]
9474
51e59260
UD
9475 * nis/nis_defaults.c (searchXYX): New functions. Used by both
9476 searchgroup and searchowner. Significantly simplified.
9477 (__nis_default_owner): Remove duplication. Do not locally copy the
9478 string before duplicating it.
9479 (__nis_default_group): Likewise.
9480
9481 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
9482 we must clear the variable before calling __nisfind_server.
9483
9484 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
9485 nis_getnames. [Coverity CID 223]
9486
9487 * locale/programs/locfile.c (locfile_read): Use alloca instead of
9488 xmalloc to allocate local repertoire name. [Coverity CID 222]
9489
9490 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
9491 allocate memory for the input to add_bytes. [Coverity CID 221]
9492
e7c8359e 9493 * posix/wordexp.c (w_addword): Free word if realloc fails and it
51e59260 9494 was allocated here. [Coverity CID 219, 220]
e7c8359e
UD
9495
9496 * posix/getconf.c (print_all): Free confstr data after printing.
9497 [Coverity CID 218]
9498
9499 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
9500 list allocation fails. [Coverity CID 215]
9501
9502 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
9503 [Coverity CID 213]
9504
9505 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
9506 string is NULL. [Coverity CID 212]
9507 * argp/Makefile: Add rules to build and run bug-argp1.
9508 * argp/bug-argp1.c: New file.
9509
9510 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
9511 end of string.
9512 * stdlib/canonicalize.c (__realpath): Likewise.
9513
9514 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
9515 pointer. [Coverity CID 206]
9516
9517 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
9518 in statically linked code.
9519 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
9520 statically built code, be prepared to have no link map.
9521 [Coverity CID 205]
9522
9523 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
9524 dgettext calls. [Coverity CID 204]
9525
9526 * argp/argp-help.c (struct uparams): Remove valid member. Change
9527 the one user.
9528 (uparam_names): Reduce size. Avoid relative relocations.
9529 Moved to read-only segment.
9530 (fill_in_uparams): Update for new layout.
9531
9532 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
9533 assumed to always be != NULL. [Coverity CID 202]
9534
9535 * argp/argp-help.c (hol_entry_help): Remove some dead code
9536 [Coverity CID 200].
9537
9538 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
9539 away a few more unconditional yperr2nss calls.
9540 (_nss_nis_getservbyname_r): Likewise.
9541
acf82eaf
UD
95422006-05-06 Ulrich Drepper <drepper@redhat.com>
9543
4461cf48
UD
9544 * sysdeps/generic/ldsodefs.h: Remove support for non-core
9545 architectures.
9546
b74a8c7f
UD
9547 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
9548 that unused memory passed to sendto is nevertheless initialized.
9549
acb98cb5
UD
9550 [BZ #2499]
9551 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
9552 possibly unaligned memory accesses.
9553
bce16467
UD
9554 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
9555 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
9556 and __putlong respectively. Correct buffer overflow check for
9557 NS_NOTIFY_OP.
9558
9559 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
9560
8e45b1ac
UD
9561 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
9562 (send_dg): Rewrite error handling to be more compact and avoid
9563 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
9564
697e1628
UD
9565 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
9566
9567 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
9568 instead of ns_get16.
9569 (res_queriesmatch): Likewise. Minor optimization.
9570
acf82eaf
UD
9571 [BZ #2499]
9572 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
9573 __libc_res_nsend might reallocate the buffer for the answer. In
9574 this case we have to reload the HP pointer.
9575
7bfee654
UD
95762006-05-05 Ulrich Drepper <drepper@redhat.com>
9577
694b49ca
UD
9578 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
9579 some branch prediction hints.
9580
7bfee654
UD
9581 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
9582 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9583 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9584 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9585 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9586 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9587 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9588 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9589
308bb2d5
UD
95902006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
9591
9592 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
9593 by a GOT relocation to make Scrt1.o position independent.
9594 * sysdeps/s390/s390-64/elf/start.S: Likewise.
9595
9596 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
9597 six system call parameters.
9598 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
9599
cdb9c321
UD
96002006-05-05 Ulrich Drepper <drepper@redhat.com>
9601
9602 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
9603 malloc&bzero.
9604
9605 * sunrpc/svc_udp.c (BZERO): Remove definition.
9606 (CALLOC): Define.
9607 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
9608
9609 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
9610 (des_SPtrans): Use uint32_t type.
9611 (des_skb): Likewise.
9612
9613 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
9614
fff04b32
UD
96152006-05-05 Jakub Jelinek <jakub@redhat.com>
9616
9617 [BZ #2509]
9618 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
9619 on 32-bit arches.
9620
96212006-05-05 Ulrich Drepper <drepper@redhat.com>
9622
9623 * locale/programs/ld-address.c (address_finish): Fix one more
cdb9c321 9624 place where the iso639 array might be accessed beyond the limits.
fff04b32 9625
077a30bc 96262006-05-04 Ulrich Drepper <drepper@redhat.com>
77dd4c3b 9627
f2d5cf50
UD
9628 * nis/nis_table.c (nis_list): Avoid clearing res twice before
9629 filling it for the first time.
9630
3e4370cf
UD
9631 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
9632 Adjust all callers.
9633 Free res object content before returning.
9634
5e65a53d
UD
9635 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
9636
48be3114
UD
9637 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
9638 client->cl_auth.
9639
ca4fce0e
UD
9640 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
9641 cleanup for initial thread, just the free call on TVP.
9642
077a30bc 9643 * nscd/gai.c (__getline): Define.
3b7a95fb 9644
5d37289a 9645
3f87d901 9646See ChangeLog.16 for earlier changes.