1 2009-04-22 Ryan S. Arnold <rsa@us.ibm.com>
4 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Replace cmpldi
6 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
8 2009-06-16 Ulrich Drepper <drepper@redhat.com>
10 * sysdeps/unix/sysv/linux/grantpt.c: Remove file after folding changes
12 * sysdeps/unix/grantpt.c: ...here.
14 2009-06-15 Ulrich Drepper <drepper@redhat.com>
16 * sysdeps/unix/sysv/linux/grantpt.c (grantpt): Only call chown and
17 chmod if it is necessary.
20 * sysdeps/unix/sysv/linux/grantpt.c: Remove shortcut which was used
21 when the slave device is in devpts or devfs.
24 * posix/tst-cpucount.c: Don't try more than CPU_SETSIZE bits.
27 * inet/netinet/icmp6.h (struct nd_opt_home_agent_info): Change type
28 of nd_opt_home_agent_info_preference to uint16_t.
29 Patch by Arnaud Ebalard <arno@natisbad.org>.
32 * nss/getent.c: Add support for print gshadow data.
35 * nis/nss_nis/nis-pwd.c (internal_nis_endpwent): Free all buffers,
36 not just the currently used one and those which follow.
37 Patch by Joe Landers <jlanders@vmware.com>.
40 * libio/tst-fgetwc.c (do_test): Use de_DE.UTF-8 as locale name.
41 * libio/Makefile: Run tst-fgetwc with necessary envvar.
42 Patch by Bruce Dubbs <bdubbs@linuxfromscratch.org>.
45 * stdlib/abort.c: Define variable __abort_msg.
46 * stdlib/Versions: Export __abort_msg with GLIBC_PRIVATE version.
47 * include/stdlib.h: Declare __abort_msg.
48 * assert/assert-perr.c: Don't free buffer for message immediately.
49 Store atomically in __abort_msg and free old buffer if necessary.
50 * assert/assert.c: Likewise.
51 * sysdeps/posix/libc_fatal.c: Allocate buffer for message, copy it,
52 store pointer in __abort_msg, and possibly free old string.
53 * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
55 * time/tzfile.c (__tzfile_read): Correct computation of tzspec_len.
58 * time/tzfile.c (__tzfile_compute): If we use the envvar format still
59 handle leap seconds if they are available.
60 Patch by Akinori Hattori <hattya@gentoo.org>.
62 * timezone/tzselect.ksh: Update from tzcode2009i.
63 * timezone/zdump.c: Likewise.
64 * timezone/zic.c: Likewise.
66 * timezone/africa: Update from tzdata2009i.
67 * timezone/antarctica: Likewise.
68 * timezone/asia: Likewise.
69 * timezone/australasia: Likewise.
70 * timezone/backward: Likewise.
71 * timezone/etcetera: Likewise.
72 * timezone/europe: Likewise.
73 * timezone/factory: Likewise.
74 * timezone/iso3166.tab: Likewise.
75 * timezone/leapseconds: Likewise.
76 * timezone/northamerica: Likewise.
77 * timezone/pacificnew: Likewise.
78 * timezone/solar87: Likewise.
79 * timezone/solar88: Likewise.
80 * timezone/solar89: Likewise.
81 * timezone/southamerica: Likewise.
82 * timezone/systemv: Likewise.
83 * timezone/yearistype: Likewise.
84 * timezone/zone.tab: Likewise.
86 2009-06-15 Jakub Jelinek <jakub@redhat.com>
88 * elf/dl-lookup.c (_dl_debug_bindings): When resolving to
89 STT_GNU_IFUNC symbol or in 8 into type_class.
91 * sysdeps/i386/dl-irel.h (elf_irel): Use Elf32_Addr type
92 instead of Elf64_Addr.
94 2009-06-14 Ulrich Drepper <drepper@redhat.com>
96 * po/sv.po: Update from translation team.
99 * misc/sys/select.h (__NFDBITS): Expression should have type int.
100 * sysdeps/x86_64/bits/select.h: Remove asm versions for __FD_SET,
101 __FD_CLR, and __FD_ISSET. gcc nowadays generates better code from
104 2009-06-12 Ulrich Drepper <drepper@redhat.com>
106 * Versions.def: Add GLIBC_2.11 for libpthread.
108 2009-06-11 Ulrich Drepper <drepper@redhat.com>
110 * resolv/res_send.c (send_dg): Remember we switched to
113 2009-06-09 Ulrich Drepper <drepper@redhat.com>
115 * dlfcn/dlfcn.h: Remove comma at end of enum.
116 Patch by J.H.M. Dassen <rdassen@redhat.com>.
118 * libio/fileops.c (_IO_new_file_fopen): Don't prematurely stop
121 2009-06-05 Ulrich Drepper <drepper@redhat.com>
123 * sysdeps/x86_64/rawmemchr.S: Minor optimization.
125 * sysdeps/x86_64/multiarch/rawmemchr.S: New file.
127 * sysdeps/x86_64/multiarch/strlen.S: New file.
128 * sysdeps/x86_64/multiarch/ifunc-defines.sym: New file.
129 * sysdeps/x86_64/multiarch/Makefile: Add rule to build ifunc-defines.h.
130 * sysdeps/x86_64/multiarch/init-arch.h: Name structure with register
133 * csu/elf-init.c: Only compile in IFUNC functionality if USE_MULTIARCH
136 2009-06-04 Ulrich Drepper <drepper@redhat.com>
138 * sysdeps/x86_64/strlen.S: Minor optimizations.
140 2009-06-02 H.J. Lu <hongjiu.lu@intel.com>
142 * elf/Makefile (distribute): Add ifuncmain1.c, ifuncmain1pic.c,
143 ifuncmain1vis.c, ifuncmain1vispic.c, ifuncmain1static.c,
144 ifuncmain1staticpic.c, ifuncmain1picstatic.c, ifuncdep1.c,
145 ifuncdep1pic.c, ifuncmod1.c, ifuncmain1pie.c, ifuncmain1vispie.c,
146 ifuncmain2.c, ifuncmain2static.c, ifuncdep2.c,
147 funcmain2pic.c, ifuncmain2picstatic.c, ifuncdep2pic.c,
148 ifuncmain3.c, ifuncmod3.c,.
149 ifuncmain4.c, ifuncmain4static.c, ifuncmain4picstatic.c.
150 (tests-static): Add ifuncmain1static, ifuncmain1picstatic,
151 ifuncmain2static, ifuncmain2picstatic, ifuncmain4static,
153 (tests): Add ifuncmain1, ifuncmain1pic, ifuncmain1vis,
154 ifuncmain1vispic, ifuncmain1staticpic, ifuncmain2, ifuncmain2pic,
155 ifuncmain3, ifuncmain4.
156 (tests): Depend on $(objpfx)ifuncmain1pie.out and
157 $(objpfx)ifuncmain1vispie.out.
158 (modules-names): Add ifuncmod1 ifuncmod3.
159 (generated): Add ifuncmain1pie ifuncmain1pie.out
160 ifuncmain1vispie ifuncmain1vispie.out.
161 Define rules to build and run the tests.
162 * elf/ifuncdep1.c: New file.
163 * elf/ifuncdep1pic.c: New file.
164 * elf/ifuncdep2.c: New file.
165 * elf/ifuncdep2pic.c: New file.
166 * elf/ifuncmain1.c: New file.
167 * elf/ifuncmain1pic.c: New file.
168 * elf/ifuncmain1picstatic.c: New file.
169 * elf/ifuncmain1pie.c: New file.
170 * elf/ifuncmain1static.c: New file.
171 * elf/ifuncmain1staticpic.c: New file.
172 * elf/ifuncmain1vis.c: New file..
173 * elf/ifuncmain1vispic.c: New file..
174 * elf/ifuncmain1vispie.c: New file.
175 * elf/ifuncmain2.c: New file.
176 * elf/ifuncmain2pic.c: New file.
177 * elf/ifuncmain2picstatic.c: New file.
178 * elf/ifuncmain2static.c: New file.
179 * elf/ifuncmain3.c: New file.
180 * elf/ifuncmain4.c: New file.
181 * elf/ifuncmain4picstatic.c: New file.
182 * elf/ifuncmain4static.c: New file.
183 * elf/ifuncmod1.c: New file.
184 * elf/ifuncmod3.c: New file.
186 2009-06-03 Ulrich Drepper <drepper@redhat.com>
188 * elf/dl-sysdep.c (_dl_show_auxv): Terminate correct string.
190 2009-06-02 Ulrich Drepper <drepper@redhat.com>
193 * posix/Makefile (routines): Add execvpe.
194 * posix/Versions: Export execvpe for GLIBC_2.11.
195 * posix/execvp.c: Now only a wrapper. Move code to...
196 * posix/execvpe.c: ...here. New file.
197 * posix/unistd.h: Declare execvpe.
199 2009-06-01 Ulrich Drepper <drepper@redhat.com>
201 * sysdeps/i386/dl-machine.h (elf_machine_rel): Reorder conditions
202 for STT_GNU_IFUNC handling for efficiency.
203 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
205 * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
207 * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
209 2009-05-31 Ulrich Drepper <drepper@redhat.com>
211 * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
214 2009-05-29 H.J. Lu <hongjiu.lu@intel.com>
216 * csu/elf-init.c: Include <link.h> and <dl-irel.h> if LIBC_NONSHARED
218 (__rela_iplt_start): New declaration.
219 (__rela_iplt_end): Likewise.
220 (__rel_iplt_start): Likewise.
221 (__rel_iplt_end): Likewise.
222 (__libc_csu_init): Process __rela_iplt_start and __rel_iplt_start.
223 * elf/elf.h (R_386_IRELATIVE): New macro.
224 (R_X86_64_IRELATIVE): New macro.
225 (R_386_NUM): Updated.
226 (R_X86_64_NUM): Likewise.
227 * include/libc-symbols.h (libc_ifunc_hidden_def1): New macro.
228 (libc_ifunc_hidden_def): New macro.
229 * sysdeps/generic/dl-irel.h: New file.
230 * sysdeps/i386/dl-irel.h: New file.
231 * sysdeps/x86_64/dl-irel.h: New file.
232 * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle R_386_IRELATIVE.
233 (elf_machine_rela): Check SHN_UNDEF for STT_GNU_IFUNC symbol.
234 Handle R_386_IRELATIVE.
235 (elf_machine_lazy_rel): Handle R_386_IRELATIVE.
236 (elf_machine_lazy_rela): Likewise.
237 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
239 (elf_machine_lazy_rel): Handle R_X86_64_IRELATIVE.
241 2009-05-31 Ulrich Drepper <drepper@redhat.com>
243 * sysdeps/x86_64/multiarch/init-arch.h: Define COMMON_CPUID_INDEX_1
244 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. So far there
245 are no differences. If an architecture has bits in CPUID index 1
246 meaning different things the values for the COMMON_CPUID_INDEX_1
247 index must not be set.
248 (INTEL_HAS_POPCOUNT, AMD_HAS_POPCOUNT): Removed in favor of...
249 (HAS_POPCOUNT): ...this. New macro.
250 * sysdeps/x86_64/multiarch/init-arch.c: Use COMMON_CPUID_INDEX_1
251 instead of INTEL_CPUID_INDEX_1 and AMD_CPUID_INDEX_1. Unify code
252 to set the value for Intel and AMD architectures.
253 * sysdeps/x86_64/cacheinfo.c: Use COMMON_CPUID_INDEX_1 instead of
255 * sysdeps/x86_64/multiarch/sched_cpucount.c: Adjust for HAS_POPCOUNT
258 2009-05-30 Andreas Schwab <schwab@linux-m68k.org>
260 * configure.in: Move AC_CANONICAL_HOST before first use of $host
263 2009-05-29 Jakub Jelinek <jakub@redhat.com>
265 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <errno.h>.
266 (__expm1l): Set errno to ERANGE on overflow.
267 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include <errno.h>.
268 (__tanl): Set errno to EDOM for ±Inf.
269 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include <errno.h>.
270 (__cosl): Set errno to EDOM for ±Inf.
271 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include <errno.h>.
272 (__sinl): Set errno to EDOM for ±Inf.
274 * sysdeps/s390/s390-32/__longjmp.c (__longjmp): If CHECK_SP is
276 * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
277 * sysdeps/s390/s390-32/____longjmp_chk.c: New file.
278 * sysdeps/s390/s390-64/____longjmp_chk.c: New file.
280 2009-05-29 Ulrich Drepper <drepper@redhat.com>
282 * sysdeps/x86_64/cacheinfo.c: Compact intel_02_known array. Adjust
284 * sysdeps/unix/sysv/linux/i386/sysconf.c: Likewise.
286 2009-05-22 Andreas Schwab <schwab@linux-m68k.org>
288 * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Set errno for ±Inf.
289 * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
290 * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
291 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Set errno for overflow.
293 * sysdeps/powerpc/powerpc32/____longjmp_chk.S: New file.
294 * sysdeps/powerpc/powerpc64/____longjmp_chk.S: New file.
295 * sysdeps/powerpc/powerpc32/__longjmp-common.S: Use CHECK_SP if
297 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
298 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
300 2009-05-22 Jakub Jelinek <jakub@redhat.com>
302 * sysdeps/unix/sysv/linux/accept4.c: Include kernel-features.h.
303 (accept4): If __NR_accept4 is not defined, but __NR_socketcall
304 is, either do nothing at all if __ASSUME_ACCEPT4, or
305 call __internal_accept4 and handle EINVAL -> ENOSYS translation.
306 * sysdeps/unix/sysv/linux/internal_accept4.S: New file.
307 * sysdeps/unix/sysv/linux/i386/accept4.S (SOCKOP_accept4): Don't
309 * sysdeps/unix/sysv/linux/i386/internal_accept4.S: New file.
310 * sysdeps/unix/sysv/linux/Makefile (sysdep-routines): Add
311 internal_accept4 in socket directory.
313 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
315 * sysdeps/ia64/configure.in: New file.
317 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
320 * sysdeps/ia64/memchr.S: Use speculative load.
322 * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S: New file.
323 * sysdeps/unix/sysv/linux/ia64/__longjmp.S: If CHECK_RSP is defined,
326 * sysdeps/i386/__longjmp.S: Add .text.
327 * sysdeps/x86_64/__longjmp.S: Likewise.
329 2009-05-21 Ulrich Drepper <drepper@redhat.com>
331 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
332 __ASSUME_ACCEPT4 for IA-64.
334 2009-05-21 Jakub Jelinek <jakub@redhat.com>
336 * sysdeps/unix/sysv/linux/accept4.c (__NR_accept4): Don't define.
338 * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_paccept): Remove.
339 (SOCKOP_accept4): Define.
341 2009-05-20 Ulrich Drepper <drepper@redhat.com>
343 Sun approved the change of the license.
344 * sunrpc/auth_des.c: Replace license text.
345 * sunrpc/auth_none.c: Likewise.
346 * sunrpc/auth_unix.c: Likewise.
347 * sunrpc/authdes_prot.c: Likewise.
348 * sunrpc/authuxprot.c: Likewise.
349 * sunrpc/bindrsvprt.c: Likewise.
350 * sunrpc/clnt_gen.c: Likewise.
351 * sunrpc/clnt_perr.c: Likewise.
352 * sunrpc/clnt_raw.c: Likewise.
353 * sunrpc/clnt_simp.c: Likewise.
354 * sunrpc/clnt_tcp.c: Likewise.
355 * sunrpc/clnt_udp.c: Likewise.
356 * sunrpc/clnt_unix.c: Likewise.
357 * sunrpc/des_crypt.c: Likewise.
358 * sunrpc/des_soft.c: Likewise.
359 * sunrpc/get_myaddr.c: Likewise.
360 * sunrpc/getrpcport.c: Likewise.
361 * sunrpc/key_call.c: Likewise.
362 * sunrpc/key_prot.c: Likewise.
363 * sunrpc/openchild.c: Likewise.
364 * sunrpc/pm_getmaps.c: Likewise.
365 * sunrpc/pm_getport.c: Likewise.
366 * sunrpc/pmap_clnt.c: Likewise.
367 * sunrpc/pmap_prot.c: Likewise.
368 * sunrpc/pmap_prot2.c: Likewise.
369 * sunrpc/pmap_rmt.c: Likewise.
370 * sunrpc/rpc/auth.h: Likewise.
371 * sunrpc/rpc/auth_unix.h: Likewise.
372 * sunrpc/rpc/clnt.h: Likewise.
373 * sunrpc/rpc/des_crypt.h: Likewise.
374 * sunrpc/rpc/key_prot.h: Likewise.
375 * sunrpc/rpc/netdb.h: Likewise.
376 * sunrpc/rpc/pmap_clnt.h: Likewise.
377 * sunrpc/rpc/pmap_prot.h: Likewise.
378 * sunrpc/rpc/pmap_rmt.h: Likewise.
379 * sunrpc/rpc/rpc.h: Likewise.
380 * sunrpc/rpc/rpc_des.h: Likewise.
381 * sunrpc/rpc/rpc_msg.h: Likewise.
382 * sunrpc/rpc/svc.h: Likewise.
383 * sunrpc/rpc/svc_auth.h: Likewise.
384 * sunrpc/rpc/types.h: Likewise.
385 * sunrpc/rpc/xdr.h: Likewise.
386 * sunrpc/rpc_clntout.c: Likewise.
387 * sunrpc/rpc_cmsg.c: Likewise.
388 * sunrpc/rpc_common.c: Likewise.
389 * sunrpc/rpc_cout.c: Likewise.
390 * sunrpc/rpc_dtable.c: Likewise.
391 * sunrpc/rpc_hout.c: Likewise.
392 * sunrpc/rpc_main.c: Likewise.
393 * sunrpc/rpc_parse.c: Likewise.
394 * sunrpc/rpc_parse.h: Likewise.
395 * sunrpc/rpc_prot.c: Likewise.
396 * sunrpc/rpc_sample.c: Likewise.
397 * sunrpc/rpc_scan.c: Likewise.
398 * sunrpc/rpc_scan.h: Likewise.
399 * sunrpc/rpc_svcout.c: Likewise.
400 * sunrpc/rpc_tblout.c: Likewise.
401 * sunrpc/rpc_util.c: Likewise.
402 * sunrpc/rpc_util.h: Likewise.
403 * sunrpc/rpcinfo.c: Likewise.
404 * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
405 * sunrpc/rpcsvc/key_prot.x: Likewise.
406 * sunrpc/rpcsvc/klm_prot.x: Likewise.
407 * sunrpc/rpcsvc/mount.x: Likewise.
408 * sunrpc/rpcsvc/nfs_prot.x: Likewise.
409 * sunrpc/rpcsvc/rex.x: Likewise.
410 * sunrpc/rpcsvc/rstat.x: Likewise.
411 * sunrpc/rpcsvc/rusers.x: Likewise.
412 * sunrpc/rpcsvc/sm_inter.x: Likewise.
413 * sunrpc/rpcsvc/spray.x: Likewise.
414 * sunrpc/rpcsvc/yppasswd.x: Likewise.
415 * sunrpc/rtime.c: Likewise.
416 * sunrpc/svc.c: Likewise.
417 * sunrpc/svc_auth.c: Likewise.
418 * sunrpc/svc_authux.c: Likewise.
419 * sunrpc/svc_raw.c: Likewise.
420 * sunrpc/svc_run.c: Likewise.
421 * sunrpc/svc_simple.c: Likewise.
422 * sunrpc/svc_tcp.c: Likewise.
423 * sunrpc/svc_udp.c: Likewise.
424 * sunrpc/svc_unix.c: Likewise.
425 * sunrpc/svcauth_des.c: Likewise.
426 * sunrpc/xcrypt.c: Likewise.
427 * sunrpc/xdr.c: Likewise.
428 * sunrpc/xdr_array.c: Likewise.
429 * sunrpc/xdr_float.c: Likewise.
430 * sunrpc/xdr_mem.c: Likewise.
431 * sunrpc/xdr_rec.c: Likewise.
432 * sunrpc/xdr_ref.c: Likewise.
433 * sunrpc/xdr_sizeof.c: Likewise.
434 * sunrpc/xdr_stdio.c: Likewise.
436 * po/da.po: Update from translation team.
438 2009-05-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
440 * sysdeps/sh/____longjmp_chk.S: New file.
441 * sysdeps/sh/sh3/__longjmp.S: If CHECK_SP is defined, use it.
442 * sysdeps/sh/sh4/__longjmp.S: Likewise.
444 2009-05-18 Jakub Jelinek <jakub@redhat.com>
445 Ulrich Drepper <drepper@redhat.com>
447 * nscd/nscd_helper.c (MINIMUM_HASHENTRY_SIZE): Define.
448 (__nscd_cache_search): Assume each entry in the
449 hash chain needs one hashentry and half of datahead. Use
450 MINIMUM_HASHENTRY_SIZE instead of sizeof(hashentry).
452 2009-05-16 Ulrich Drepper <drepper@redhat.com>
454 * posix/sys/wait.h: Fix typos. Pretty printing.
455 * stdlib/stdlib.h: Likewise. Correct comments.
458 * stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
460 * nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
463 2009-05-15 Ulrich Drepper <drepper@redhat.com>
465 * nscd/nscd_helper.c (__nscd_cache_search): Introduce loop counter.
466 Use it if we absolutely cannot reach any more correct list elements
467 because that many do not fit into the currently mapped database.
469 2009-05-14 Jakub Jelinek <jakub@redhat.com>
471 * nscd/nscd_helper.c: Include stddef.h.
472 (__nscd_cache_search): Add datalen argument. Use atomic_forced_read
473 in a couple of places. Return NULL if trail is not less than
474 datasize, don't consider dataheads with length smaller than
475 offsetof (struct datahead, data) + datalen.
476 * nscd/nscd_client.h (__nscd_cache_search): Adjust prototype.
477 * nscd/nscd_gethst_r.c (nscd_gethst_r): Adjust callers.
478 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
479 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
480 * nscd/nscd_getai.c (__nscd_getai): Likewise.
481 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
482 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
484 * sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
486 (fallocate64): ... to this.
487 * sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
489 (fallocate64): ... to this.
490 * sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
491 * sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
492 fallocate64@@GLIBC_2.10.
493 * sysdeps/unix/sysv/linux/i386/Versions (libc): Add
494 fallocate64@@GLIBC_2.11.
495 * sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
496 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
497 * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
498 * sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.
500 * nscd/selinux.c (nscd_avc_destroy): Removed.
501 * nscd/selinux.h (nscd_avc_destroy): Likewise.
502 * nscd/nscd.c (termination_handler): Don't call
505 2009-05-12 Jakub Jelinek <jakub@redhat.com>
507 * include/atomic.h: Formatting.
508 (catomic_compare_and_exchange_val_acq): Don't define if already
509 defined by bits/atomic.h.
511 2009-05-15 Ulrich Drepper <drepper@redhat.com>
513 * math/libm-test.inc (expm1_test): Add test for range error.
515 * Versions.def: Add GLIBC_2.11 for libc.
516 * debug/Makefile (routines): Add longjmp_chk.
517 Add rules to build and run tst-longjmp_chk.
518 * debug/Versions: Export __longjmp_chk for GLIBC_2.11.
519 * debug/longjmp_chk.c: New file.
520 * debug/tst-longjmp_chk.c: New file.
521 * include/bits/setjmp2.: New file.
522 * include/stdio.h: Mark __fortify_fail as internal_function.
523 * setjmp/Makefile (headers): Add bits/setjmp2.h.
524 * setjmp/bits/setjmp2.h: New file.
525 * setjmp/longjmp.c: If __libc_siglongjmp is defined, don't define any
527 * setjmp/setjmp.h: Include <bits/setjmp2.h> if _FORTIFY_SOURCE is
529 * sysdeps/i386/____longjmp_chk.S: New file.
530 * sysdeps/x86_64/____longjmp_chk.S: New file.
531 * sysdeps/i386/__longjmp.S: If CHECK_ESP is defined, use it.
532 * sysdeps/x86_64/__longjmp.S: Likewise.
534 * version.h: Bump for 2.11 development.
536 * elf/check-execstack.c: New file.
537 * elf/Makefile: Add rules to build and run check-execstack.
539 2009-05-10 Ulrich Drepper <drepper@redhat.com>
541 * version.h (VERSION): Bump to 2.10.1.
543 * nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
544 compatibility functions.
545 * nss/getXXent_r.c: Likewise.
546 * gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
547 * gshadow/getsgnam_r.c: Likewise.
548 * gshadow/Version: Remove duplicate entries.
550 * sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
551 for recent processor.
552 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
555 2009-05-09 Ulrich Drepper <drepper@redhat.com>
557 * version.h (VERSION): Bump for 2.10 release.
558 * include/features.h (__GLIBC_MINOR__): Bump to 10.
560 * Makeconfig: Undo last change. Add asflags-cpu to ASFLAGS in the
561 same place we add ASFLAGS-config.
563 2009-05-05 Aurelien Jarno <aurelien@aurel32.net>
566 * resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
567 or FORMERR and the other NOERROR, don't raise an error.
569 2009-05-06 Ryan S. Arnold <rsa@us.ibm.com>
572 * Makeconfig (+asflags): New variable based upon ASFLAG or
574 (ASFLAGS): Add override to set ASFLAGS to +asflags.
575 * config.make.in (asflags-cpu): Add variable based upon
576 @libc_cv_cc_submachine@ to propagate -mcpu=CPU from --with-cpu=CPU to
578 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
579 Remove unneeded file now that the assembler emits _ARCH_PWR6 and
580 recognizes power6 instruction set due to passing -mcpu=power6 from
581 --with-cpu=power6 when compiling .S files.
582 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
584 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
586 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
589 2009-05-09 Jakub Jelinek <jakub@redhat.com>
591 * string/stratcliff.c (do_test): Test for zero length
592 STRNLEN, MEMCHR, STRNCPY, STPNCPY, MEMCPY, MEMPCPY and memccpy
593 at the end of the page.
595 2009-05-08 Ulrich Drepper <drepper@redhat.com>
597 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
599 * sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
602 * po/da.po: Update from translation team.
604 2009-05-05 Jakub Jelinek <jakub@redhat.com>
606 * io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
607 guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.
609 2009-05-05 Ulrich Drepper <drepper@redhat.com>
611 * sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
612 and READ_IMPLIES_EXEC.
614 2009-05-04 Ulrich Drepper <drepper@redhat.com>
616 * po/da.po: Update from translation team.
618 2009-04-29 Jakub Jelinek <jakub@redhat.com>
620 * sysdeps/unix/sysv/linux/ifaddrs.c: Revert unintended 2008-08-12
623 2009-04-27 Jakub Jelinek <jakub@redhat.com>
625 * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
626 to MAP_ANON in PROT_NONE mmap64 call.
627 (open_archive): Likewise.
628 (file_data_available_p): Use mmap64 instead of mremap.
629 (enlarge_archive): Likewise. Update head if ah->addr changed.
630 Attempt to reserve address space after mmap64 region.
632 2009-04-26 Ulrich Drepper <drepper@redhat.com>
634 * sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.
635 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
636 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
638 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors in
639 atanh should set ERANGE.
642 * elf/dl-runtime.c (_dl_fixup): Use DL_FIXUP_VALUE_ADDR to access
643 result of lookup to make call to implement STT_GNU_IFUNC.
644 (_dl_profile_fixup): Likewise.
645 Patch by H.J. Lu <hjl.tools@gmail.com>.
647 * nscd/connections.c (send_ro_fd): Define temporary variable to avoid
650 * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Remove inline
653 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Don't define
654 label if it is not used.
656 * elf/dl-profile.c (_dl_start_profile): Define real-type variant
657 of gmon_hist_hdr and gmon_hdr structures and use them.
658 * elf/sprof.c: Likewise.
660 * elf/dl-load.c (open_verify): Add temporary variable to avoid
663 * nscd/nscd_helper.c (get_mapping): Avoid casts to avoid warnings.
665 * sunrpc/clnt_raw.c (clntraw_private_s): Use union in definition
668 * inet/rexec.c (rexec_af): Make sa2 a union to avoid warnings.
669 * inet/rcmd.c (rcmd_af): Make from a union of the various needed types
671 (iruserok_af): Use ss_family instead of casts.
673 * gmon/gmon.c (write_hist): Define real-type variant of
674 gmon_hist_hdr structure and use it.
675 (write_gmon): Likewise for gmon_hdr.
677 * sysdeps/unix/sysv/linux/readv.c: Avoid declaration of replacement
678 function if we are not going to define it.
679 * sysdeps/unix/sysv/linux/writev.c: Likewise.
681 * inet/inet6_option.c (option_alloc): Add temporary variable to
684 * libio/strfile.h (struct _IO_streambuf): Use correct type and
685 name of VTable element.
686 * libio/iovsprintf.c: Avoid casts to avoid warnings.
687 * libio/iovsscanf.c: Likewise.
688 * libio/vasprintf.c: Likewise.
689 * libio/vsnprintf.c: Likewise.
690 * stdio-common/isoc99_vsscanf.c: Likewise.
691 * stdlib/strfmon_l.c: Likewise.
692 * debug/vasprintf_chk.c: Likewise.
693 * debug/vsnprintf_chk.c: Likewise.
694 * debug/vsprintf_chk.c: Likewise.
696 * nss/nsswitch.c (__nss_lookup_function): En/Decrypt cached
699 2009-04-26 Jakub Jelinek <jakub@redhat.com>
701 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.
703 2009-04-25 Ulrich Drepper <drepper@redhat.com>
705 * posix/bits/posix1_lim.h: Cleanup namespace a bit.
707 * sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.
708 * sysdeps/i386/fpu/s_tanf.S: Likewise.
709 * sysdeps/i386/fpu/s_tanl.S: Likewise.
710 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
711 * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
712 * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
713 * math/libm-test.inc: Add tests for errno after tan calls with
716 * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
717 errno value vor pow(+-0,neg).
718 * math/libm-test.inc (pow_test): Add tests for errno value for
721 * math/w_fmod.c: Also handle x=±Inf as error.
722 * math/w_fmodf.c: Likewise.
723 * math/w_fmodl.c: Likewise.
724 * math/libm-test.inc (fmod_test): Add tests for errno after calls for
727 * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
728 * sysdeps/i386/fpu/s_cosf.S: Likewise.
729 * sysdeps/i386/fpu/s_cosl.S: Likewise.
730 * sysdeps/i386/fpu/s_sin.S: Likewise.
731 * sysdeps/i386/fpu/s_sinf.S: Likewise.
732 * sysdeps/i386/fpu/s_sinl.S: Likewise.
733 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
734 * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
735 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
736 * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
737 * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
738 * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
739 * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
740 * math/libm-test.inc: Add tests for errno after sin/cos calls with
743 * stdlib/strtod_l.c (round_and_return): We have to set errno to
744 ERANGE for underflows.
745 * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
747 * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
750 * libio/tst-widetext.input: Remove surrogates.
752 * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
754 * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
755 for lgamma should set errno to ERANGE, not EDOM.
756 * math/libm-test.inc (lgamma_test): Check errno for pole errors.
758 2009-04-24 Ulrich Drepper <drepper@redhat.com>
761 * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
764 * locale/programs/locarchive.c (enlarge_archive): Conserve address
765 space when temporarily mapping the whole content of the old file.
768 * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
771 2009-04-24 Jakub Jelinek <jakub@redhat.com>
773 * iconvdata/sjis.c (BODY): Don't advance inptr before
774 STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
775 Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
778 2009-04-24 Ulrich Drepper <drepper@redhat.com>
780 * locale/locarchive.h (struct locarhandle): Rename len field to
781 mmaped and add new reserved field.
782 * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
783 (create_archive): Reserve address space and then map file into it.
784 (open_archive): Likewise.
785 (file_data_available_p): New function.
786 (compare_from_file): New function.
787 (close_archive): Adjust to member name changes.
788 (add_locale): Before comparing locale data, check it is mapped.
789 Otherwise fall back to reading from the file.
791 2009-04-23 H.J. Lu <hongjiu.lu@intel.com>
793 * stdio-common/psiginfo.c: Include <errno.h>.
795 2009-04-23 Ulrich Drepper <drepper@redhat.com>
798 * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
799 to get consistency between 32 and 64 bit architectures.
802 * sysdeps/unix/make-syscalls.sh: Add rule to create target
803 directory for dummy syscall rules.
804 Patch by Chris Steinbroner <hesh@pobox.com>.
806 2009-04-23 Aurelien Jarno <aurelien@aurel32.net>
809 * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
812 2009-04-23 Ulrich Drepper <drepper@redhat.com>
814 * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.
815 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
817 2009-04-23 Jakub Jelinek <jakub@redhat.com>
819 * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy
820 data from vector to temporary buffer and call PWRITEV after it
821 instead of vice versa.
822 * sysdeps/posix/preadv.c: Fix up comment.
823 * misc/preadv.c: Likewise.
824 * misc/preadv64.c: Likewise.
825 * misc/pwritev.c: Likewise.
826 * misc/pwritev64.c: Likewise.
827 * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
829 2009-04-23 Ulrich Drepper <drepper@redhat.com>
831 * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
833 * shadow/Makefile (tests): Add tst-shadow.
834 * shadow/tst-shadow.c: New file.
837 * gshadow/Makefile: New file.
838 * gshadow/Versions: New file.
839 * gshadow/fgetsgent.c: New file.
840 * gshadow/fgetsgent_r.c: New file.
841 * gshadow/getsgent.c: New file.
842 * gshadow/getsgent_r.c: New file.
843 * gshadow/getsgnam.c: New file.
844 * gshadow/getsgnam_r.c: New file.
845 * gshadow/gshadow.h: New file.
846 * gshadow/putsgent.c: New file.
847 * gshadow/sgetsgent.c: New file.
848 * gshadow/sgetsgent_r.c: New file.
849 * gshadow/tst-gshadow.c: New file.
850 * include/gshadow.h: New file.
851 * Makeconfig (all-subdirs): Add gshadow.
852 * Makefile (installed-headers): Add gshadow/gshadow.h.
853 * nss/Makefile (databases): Add sgrp.
854 * nss/Versions: Add gshadow functions as private exports.
855 * nss/nsswitch.conf: Add gshadow entry.
856 * nss/sgrp-lookup.c: New file.
857 * nss/nss_files/files-parse.c: Add STRING_LIST macro. Rewrite
858 parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
859 * nss/nss_files/files-sgrp.c: New file.
860 * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
861 * sysdeps/unix/sysv/linux/paths.h: Likewise.
863 2009-04-22 Ulrich Drepper <drepper@redhat.com>
865 * stdio-common/printf.h: Add missing const to register_printf_modifier.
866 * stdio-common/reg-modifier.c: Likewise.
868 2009-04-22 Andrew Stubbs <ams@codesourcery.com>
870 * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
873 2009-04-20 Ulrich Drepper <drepper@redhat.com>
876 * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
877 headers up to 2.6.30.
879 * po/ca.po: Update from translation team.
881 2009-04-19 Ulrich Drepper <drepper@redhat.com>
884 * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
885 an object that uses static TLS if the TLS modid is higher than the
886 reserve we always allocate. At least for multi-threaded code.
888 2009-04-18 Ulrich Drepper <drepper@redhat.com>
890 * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
891 Numerically stable check for valid width.
893 * locale/programs/locarchive.c (open_archive): Map the entire file
894 and not just the administrative data.
895 (add_locale): When we find a hash sum match compare the content
898 * malloc/malloc.c (malloc_info): Output address space information.
900 2009-04-17 Ulrich Drepper <drepper@redhat.com>
902 * malloc/malloc.c (malloc_info): Also output system memory information.
904 * sysdeps/unix/sysv/linux/kernel-features.h: All supported
905 architectures have preadv/pwritev in 2.6.30.
907 * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
908 * sysdeps/posix/readv.c: Likewise.
909 Reported by Markus Armbruster <armbru@redhat.com>.
911 * malloc/hooks.c (top_check): Force hook value into register.
913 2009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
915 * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
916 calls to _dl_relocate_object.
918 2009-04-16 Ulrich Drepper <drepper@redhat.com>
921 * malloc/malloc.c (force_reg): Define.
922 (sYSMALLOc): Load hook variable into variable
923 before test and force into register.
925 (public_mALLOc): Force hook value into register.
926 (public_fREe): Likewise.
927 (public_rEALLOc): Likewise.
928 (public_mEMALIGn): Likewise.
929 (public_vALLOc): Likewise.
930 (public_pVALLOc): Likewise.
931 (public_cALLOc): Likewise.
932 (__posix_memalign): Likewise.
933 * malloc/arena.c (ptmalloc_init): Load hook variable into variable
934 before test and force into register.
935 * malloc/hooks.c (top_check): Likewise.
936 (public_sET_STATe): Pretty printing.
938 * resolv/res_send.c (send_dg): Don't just ignore the result we got
939 in case we only receive one reply in single-request mode.
941 2009-04-16 Jakub Jelinek <jakub@redhat.com>
943 * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
944 are dlopened in statically linked program even for __LM_ID_CALLER.
946 2009-04-16 Ulrich Drepper <drepper@redhat.com>
948 * resolv/res_send.c (send_dg): Don't switch into single-request
949 mode if we already are in it.
951 2009-04-15 Ulrich Drepper <drepper@redhat.com>
953 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
954 are always at least 4 bytes in the returned line.
956 2009-04-15 Jakub Jelinek <jakub@redhat.com>
958 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
959 __libc_use_alloca (8192), if the stack is too small use 512 bytes
960 instead of 8K. Stop searching in /proc/stat after hitting first
961 line not starting with cpu.
962 (next_line): Truncate too long
963 lines at buffer size * 3/4 instead of pretending there were line
964 breaks inside of large lines.
966 2009-04-14 Ulrich Drepper <drepper@redhat.com>
968 * sysdeps/x86_64/mp_clz_tab.c: New file.
970 2009-03-17 Ryan S. Arnold <rsa@us.ibm.com>
971 Ulrich Drepper <drepper@redhat.com>
973 * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
974 * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
975 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
977 2009-03-25 Andrew Stubbs <ams@codesourcery.com>
979 * sysdeps/sh/libc-tls.c: New file.
981 * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
983 2009-04-14 Roland McGrath <roland@redhat.com>
985 * elf/elf.h: Add various missing ARM constants, to match binutils.
987 2009-04-14 Ulrich Drepper <drepper@redhat.com>
989 Optimizations from GMP.
990 * sysdeps/x86_64/add_n.S: New file.
991 * sysdeps/x86_64/addmul_1.S: New file.
992 * sysdeps/x86_64/lshift.S: New file.
993 * sysdeps/x86_64/mul_1.S: New file.
994 * sysdeps/x86_64/rshift.S: New file.
995 * sysdeps/x86_64/sub_n.S: New file.
996 * sysdeps/x86_64/submul_1.S: New file.
998 2009-04-14 Jakub Jelinek <jakub@redhat.com>
1000 * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
1001 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
1002 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
1003 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
1005 2009-04-14 Ulrich Drepper <drepper@redhat.com>
1007 * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
1010 2009-04-13 Ulrich Drepper <drepper@redhat.com>
1012 * sysdeps/x86-64/strrchr.S: New file.
1014 2009-04-10 Ulrich Drepper <drepper@redhat.com>
1016 * stdio-common/printf.h (struct printf_info): Add user element.
1017 New types printf_arginfo_size_function, printf_va_arg_function.
1018 Declare register_printf_specifier, register_printf_modifier,
1019 register_printf_type.
1020 * stdio-common/printf-parse.h (struct printf_spec): Add size element.
1021 (union printf_arg): Add pa_user element.
1022 Adjust __printf_arginfo_table type.
1023 Add __printf_va_arg_table, __printf_modifier_table,
1024 __handle_registered_modifier_mb, and __handle_registered_modifier_wc
1026 * stdio-common/printf-parsemb.c: Recognize registered modifiers.
1027 If registered arginfo call failed try normal specifier.
1028 * stdio-common/printf-prs.c: Pass additional parameter to arginfo
1030 * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
1031 * stdio-common/Versions: Export register_printf_modifier,
1032 register_printf_type, and register_printf_specifier for GLIBC_2.10.
1033 * stdio-common/reg-modifier.c: New file.
1034 * stdio-common/reg-type.c: New file.
1035 * stdio-common/reg-printf.c (__register_printf_specifier): New
1036 function. Mostly the old __register_printf_function function but
1037 uses locking and type of third parameter changed.
1038 (__register_printf_function): Implement using
1039 __register_printf_specifier.
1040 * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
1041 calls to arginfo functions. Allocate enough memory for user-defined
1042 types. Call new va_arg functions to get user-defined types.
1043 Try installed handlers even for existing format specifiers first.
1045 2009-04-09 Ulrich Drepper <drepper@redhat.com>
1047 * sysdeps/x86_64/rawmemchr.S: New file.
1049 * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
1050 Simplified code and possible copy problem fixed.
1052 * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
1053 function if it is not defined. Add some necessary casts.
1054 * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
1056 * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
1057 have preadv/pwritev in 2.6.30.
1059 2009-04-08 Ulrich Drepper <drepper@redhat.com>
1061 * malloc/malloc.c (malloc_info): New function.
1062 * malloc/malloc.h: Declare it.
1063 * malloc/Versions: Export malloc_info for GLIBC_2.10.
1065 * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
1068 * malloc/malloc.c (_int_realloc): Add parameter with old block
1069 size. Remove duplicated test. Don't handle mmap'ed blocks here.
1071 * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
1073 2009-04-07 Ulrich Drepper <drepper@redhat.com>
1075 * sysdeps/x86_64/strchrnul.S: New file.
1077 * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
1078 depending libcrypt on -lfreebl3.
1080 * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
1081 preadv/pwritev in 2.6.30.
1083 * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
1084 instead of __strcasecmp.
1086 * string/stratcliff.c (do_test): Add memchr tests..
1087 * wcsmbs/wcsatcliff.c (MEMCHR): Define.
1088 * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
1089 first read quad word.
1091 2009-04-06 Ulrich Drepper <drepper@redhat.com>
1093 * string/strverscmp.c (__strverscmp): Fix last cleanups.
1094 * string/tst-svc.input: Add new test case.
1095 * string/tst-svc.expect: Adjust.
1096 * string/Makefile: Don't ignore tst-svc error.
1098 * sysdeps/x86_64/memchr.S: New file.
1100 * resolv/resolv.h (RES_SNGLKUP): Define.
1101 * resolv/res_init.c (res_setoptions): Recognize single-request option.
1102 * resolv/res_send.c (send_dg): If we sent two requests at once and
1103 only get one reply before timeout switch to mode where we send the
1104 second request only after the first answer has been received.
1106 2009-04-05 Ulrich Drepper <drepper@redhat.com>
1108 * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
1109 * sysdeps/x86_64/strchr.S: Likewise.
1111 2009-04-03 Ulrich Drepper <drepper@redhat.com>
1113 * configure.in: We need to test for the compiler earlier.
1115 * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
1116 * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
1118 * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
1119 * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
1121 * misc/preadv.c: New file.
1122 * misc/preadv64.c: New file.
1123 * misc/pwritev.c: New file.
1124 * misc/pwritev64.c: New file.
1125 * sysdeps/posx/preadv.c: New file.
1126 * sysdeps/posx/preadv64.c: New file.
1127 * sysdeps/posx/pwritev.c: New file.
1128 * sysdeps/posx/pwritev64.c: New file.
1129 * sysdeps/unix/sysv/linux/preadv.c: New file.
1130 * sysdeps/unix/sysv/linux/preadv64.c: New file.
1131 * sysdeps/unix/sysv/linux/pwritev.c: New file.
1132 * sysdeps/unix/sysv/linux/pwritev64.c: New file.
1133 * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
1134 * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
1136 * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
1138 * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
1140 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1141 __ASSUME_COMPLETE_READV_WRITEV.
1142 * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
1143 with modern kernels.
1144 * sysdeps/unix/sysv/linux/writev.c: Likewise.
1146 * sysdeps/posix/readv.c: Since read is a cancellation point we have
1147 to free a possible malloced buffer in case of cancellation.
1148 * sysdeps/posix/writev.c: Likewise for write.
1150 2009-04-02 Ulrich Drepper <drepper@redhat.com>
1152 * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
1154 * configure.in: Recognize --enable-nss-crypt.
1155 * config.make.in: Add nss-crypt entry.
1156 * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
1157 sha512.c. Don't run md5test, sha256test, sha512test. Pass -DUSE_NSS
1158 and include path for NSS directory to compiler for md5-crypt,
1159 sha256-crypt, sha512-crypt. Link libcrypt.so with -lfreebl3.
1160 * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
1161 function implementation, use NSS. Introduce wrappers around the
1162 hash function calls. Little code size optimization.
1163 * crypt/sha256-crypt.c: Likewise.
1164 * crypt/sha512-crypt.c: Likewise.
1165 * scripts/check-local-headers.sh: Ignore nss3 directory.
1167 * configure.in: Rename pic_default to libc_cv_pic_default.
1168 * config.make.in: Likewise.
1170 2009-04-01 Roland McGrath <roland@redhat.com>
1172 * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
1173 (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
1174 (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
1175 (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
1176 (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
1177 (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
1178 (R_SPARC_NUM): Update.
1179 From Dave Miller <davem@davemloft.net>.
1181 2009-04-01 Ulrich Drepper <drepper@redhat.com>
1183 * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
1185 2009-03-31 Ulrich Drepper <drepper@redhat.com>
1187 * elf/dl-open.c: Keep track of used name spaces and only iterate over
1188 those which are used.
1189 * elf/dl-addr.c: Likewise.
1190 * elf/dl-caller.c: Likewise.
1191 * elf/dl-fini.c: Likewise.
1192 * elf/dl-iteratephdr.c: Likewise.
1193 * elf/dl-libc.c: Likewise.
1194 * elf/dl-load.c: Likewise.
1195 * elf/dl-support.c: Likewise.
1196 * elf/dl-sym.c: Likewise.
1197 * elf/rtld.c: Likewise.
1198 * sysdeps/generic/ldsodefs.h: Likewise.
1200 * elf/dl-load.c: Remove support for systems without MAP_ANON.
1201 * elf/dl-minimal.c: Likewise.
1202 * elf/dl-misc.c: Likewise.
1203 * elf/rtld.c: Likewise.
1204 * sysdeps/generic/ldsodefs.h: Likewise.
1206 2009-03-30 Ulrich Drepper <drepper@redhat.com>
1208 * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
1209 Avoid reuse of complex expression.
1211 * po/fr.po: Update from translation team.
1213 2009-03-16 Ulrich Drepper <drepper@redhat.com>
1215 * include/dirent.h: Yet more changes to match sort function type
1217 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
1218 * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
1219 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
1221 2009-03-16 Thomas Schwinge <tschwinge@gnu.org>
1223 * dirent/scandir64.c (scandir64): Adjust declaration to type change.
1225 2009-03-16 Ulrich Drepper <drepper@redhat.com>
1227 * nscd/connections.c (restart): Try to preserve the process name
1228 by reading the /proc/self/exe symlink and using the return name.
1229 Patch by Jeff Bastian <jbastian@redhat.com>.
1231 2009-03-15 Ulrich Drepper <drepper@redhat.com>
1234 * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
1235 if we are not loading a new audit library.
1236 * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
1237 Only use profiling trampoline for auditing if we are not relocating
1239 * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
1240 * elf/rtld.c: Likewise.
1241 * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
1243 * elf/rtld.c (dl_main): Extend help message for --audit option.
1246 * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
1247 alphasort64, versionsort, and versionsort64 to POSIX 2008.
1248 * dirent/alphasort.c: Adjust implementation to type change.
1249 * dirent/alphasort64.c: Likewise.
1250 * dirent/scandir.c: Likewise.
1251 * dirent/versionsort.c: Likewise.
1252 * dirent/versionsort64.c: Likewise.
1253 * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
1255 * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
1259 * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
1260 correctly. Set segleft member in output as required.
1261 Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1262 * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
1265 * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
1266 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1267 * inet/Makefile (tests): Add tst-inet6_rth.
1268 * inet/tst-inet6_rth.c: New file.
1271 * string/strlen.c (strlen): Fix omission in the expression to test
1274 2009-03-14 Ulrich Drepper <drepper@redhat.com>
1276 * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
1278 * elf/dl-runtime.c (reloc_offset): Define.
1279 (reloc_index): Define.
1280 (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
1281 (_dl_fixup_profile): Likewise. Use reloc_index instead of
1282 computing index from reloc_offset.
1283 (_dl_call_pltexit): Likewise.
1284 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
1285 the relocation index to _dl_fixup.
1286 (_dl_runtime_profile): Likewise for _dl_fixup_profile and
1288 * sysdeps/x86_64/dl-runtime.c: New file.
1291 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
1292 alignment of La_x86_64_regs. Store xmm parameters.
1293 Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
1296 * string/strverscmp.c (__strverscmp): Fix case of different digits
1297 in fractional part of string.
1298 Patch by Jingyu Liu <jyliu@fortinet.com>.
1299 * string/Makefile (tests): Add tst-svc2.
1300 * string/tst-svc2.c: New file.
1302 * string/strverscmp.c (__strverscmp): Optimize size of tables.
1304 * locale/iso-639.def: Add Min Nan.
1306 2009-03-11 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1309 * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
1311 2009-03-14 Ulrich Drepper <drepper@redhat.com>
1313 * elf/dl-sysdep.c (auxvars): Compress data structure.
1315 * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
1316 STT_GNU_IFUNC handling.
1317 (elf_machine_rela): Likewise.
1319 2009-03-13 Ulrich Drepper <drepper@redhat.com>
1321 * config.h.in (USE_MULTIARCH): Define.
1322 * configure.in: Handle --enable-multi-arch.
1323 * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
1324 (_dl_fixup_profile): Likewise.
1325 * elf/do-lookup.c (dl_lookup_x): Likewise.
1326 * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
1327 * elf/elf.h (STT_GNU_IFUNC): Define.
1328 * include/libc-symbols.h (libc_ifunc): Define.
1329 * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
1330 framework in init-arch.h to get CPUID values.
1331 * sysdeps/x86_64/multiarch/Makefile: New file.
1332 * sysdeps/x86_64/multiarch/init-arch.c: New file.
1333 * sysdeps/x86_64/multiarch/init-arch.h: New file.
1334 * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
1336 * config.make.in (experimental-malloc): Define.
1337 * configure.in: Handle --enable-experimental-malloc.
1338 * malloc/Makefile: Handle experimental-malloc flag.
1339 * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
1340 * malloc/arena.c: Likewise.
1341 * malloc/hooks.c: Likewise.
1342 * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
1344 2009-03-11 Ulrich Drepper <drepper@redhat.com>
1346 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
1347 prediction. A few size optimizations.
1349 2009-03-10 Ulrich Drepper <drepper@redhat.com>
1351 * time/tzset.c: Optimize a bit for size.
1353 2009-03-10 Jakub Jelinek <jakub@redhat.com>
1355 * include/stdio.h (fmemopen): Add libc_hidden_proto.
1356 * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
1358 * elf/sprof.c: Avoid warning about multi-line comment.
1360 2009-03-10 Ulrich Drepper <drepper@redhat.com>
1362 * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
1364 * time/tst-posixtz.c: Add tests for quoted timezone names.
1366 2009-03-10 Jakub Jelinek <jakub@redhat.com>
1368 * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
1369 _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
1370 200809L instead of 200112L.
1371 (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
1372 * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
1374 * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
1375 instead of __quick_exit_funcs to __run_exit_handlers.
1376 * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
1377 * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
1378 (__cxa_at_quick_exit): Remove attribute_hidden.
1379 * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
1380 to __run_exit_handlers.
1381 * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
1384 2009-03-10 Ulrich Drepper <drepper@redhat.com>
1386 * po/id.po: Update from translation team.
1388 2009-02-18 Jakub Jelinek <jakub@redhat.com>
1390 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
1391 .machine push; .machine "power6" and .machine pop around mtfsf
1392 insns outside of _ARCH_PWR6 define.
1393 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1394 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1396 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1398 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
1399 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
1400 relax_fenv_state): Likewise.
1402 2009-03-08 Ulrich Drepper <drepper@redhat.com>
1404 * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
1406 (static-only-routines): Add at_quick_exit.
1407 * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
1409 * stdlib/quick_exit.c: New file.
1410 * stdlib/at_quick_exit.c: New file.
1411 * stdlib/cxa_at_quick_exit.c: New file.
1412 * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function. Call
1414 (__internal_atexit): New function.
1415 (__new_exitfn): Now takes parameter to point to the list to use.
1416 * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
1417 * stdlib/exit.c (__run_exit_handlers): New function. Split from...
1418 (exit): ...here. Just call __run_exit_handlers appropriately.
1419 * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
1420 __internal_atexit, __cxa_at_quick_exit. Adjust __new_exitfn.
1421 * stdlib/on_exit.c: Adjust call to __new_exitfn.
1422 * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
1424 * po/id.po: Update from translation team.
1426 2009-03-07 Ulrich Drepper <drepper@redhat.com>
1428 * po/ru.po: Update from translation team.
1430 2009-03-04 Ulrich Drepper <drepper@redhat.com>
1432 * po/nl.po: Update from translation team.
1434 2009-03-03 Ulrich Drepper <drepper@redhat.com>
1436 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
1437 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1438 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1439 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
1440 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1441 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1442 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1444 * po/pl.po: Update from translation team.
1446 2009-03-02 Ulrich Drepper <drepper@redhat.com>
1449 * sysdeps/unix/sysv/linux/fallocate.c: New file.
1450 * sysdeps/unix/sysv/linux/fallocate64.c: New file.
1451 * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
1452 * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
1453 * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
1454 * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
1455 * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
1457 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
1458 Add fallocate and fallocate64.
1460 * io/fcntl.h: Pretty printing.
1462 2009-03-02 Richard Guenther <rguenther@suse.de>
1464 * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
1465 attribute also for non-C99 inline semantics variant.
1467 2009-02-12 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1469 * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
1470 * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
1471 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
1472 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
1473 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
1475 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
1478 2009-03-02 Ulrich Drepper <drepper@redhat.com>
1480 * po/cs.po: Update from translation team.
1482 2009-02-28 Ulrich Drepper <drepper@redhat.com>
1484 * po/bg.po: Update from translation team.
1485 * po/sv.po: Likewise.
1486 * po/fi.po: Likewise.
1487 * po/vi.po: Likewise.
1489 2009-02-27 Roland McGrath <roland@redhat.com>
1491 * Makeconfig (%.v.i): Depend on Makeconfig.
1492 Exclude % lines from initial #-comment removal.
1494 2009-02-27 Ulrich Drepper <drepper@redhat.com>
1496 * po/ko.po: Update from translation team.
1498 2009-02-26 Roland McGrath <roland@redhat.com>
1500 * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
1501 avoids unused warning.
1503 2009-02-26 Andrew Stubbs <ams@codesourcery.com>
1504 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1506 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
1507 sys/ucontext.h and asm/elf.h. Include sys/user.h.
1508 * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
1509 and asm/user.h. Include asm/ptrace.h.
1510 (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
1511 PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1512 PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
1514 (start_thread): Don't undefine.
1515 (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
1518 2009-02-26 Ulrich Drepper <drepper@redhat.com>
1520 * wctype/wctype.h: The *_l functions are in POSIX 2008.
1521 * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
1522 wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
1523 wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
1524 * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
1526 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
1527 * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
1528 _SC_THREAD_ROBUST_PRIO_PROTECT entries.
1529 * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
1530 _SC_THREAD_ROBUST_PRIO_PROTECT.
1531 * posix/unistd.h: fexecve is in POSIX 2008.
1532 * time/time.h: strftime_l is in POSIX 2008.
1533 * io/sys/stat.h: futimens is in POSIX 2008.
1534 * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
1535 * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
1536 strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
1537 * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
1538 * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
1539 open_memstream, and vdprintf are in POSIX 2008.
1541 2009-02-25 Ulrich Drepper <drepper@redhat.com>
1543 * include/features.h: Define macros for XPG7/POSIX 2008.
1544 * ctype/ctype.h: The *_l functions are in POSIX 2008.
1545 * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
1547 * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
1548 * locale/xlocale.h: Define locale_t type.
1549 * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
1550 in POSIX 2008. Don't define locale_t here.
1551 * stdlib/monetary.h: strfmon_l is in POSIX 2008.
1552 * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
1553 UTIME_OMIT only with __USE_ATFILE.
1554 * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
1555 * stdio-common/psiginfo.c: New file.
1556 * stdio-common/psiginfo-data.h: New file.
1557 * stdio-common/psiginfo-define.h: New file.
1558 * stdio-common/Makefile (routines): Add psiginfo.
1559 * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
1560 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
1561 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
1562 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
1563 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
1564 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1565 * io/sys/stat.h: Move mknodat definition into same conditional as
1567 * time/sys/time.h: futimesat is not among the functions accepted
1568 into the POSIX standard.
1570 * include/features.h: If no feature selection given and we select
1571 by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
1572 * posix/Versions: Export __posix_getopt.
1573 * posix/getopt.c (_getopt_initialize): Take additional parameter.
1574 Use it to alternatively initialize __posixly_correct.
1575 (_getopt_internal_r): Take addition parameter. Pass on to
1577 (_getopt_internal): Take addition parameter. Pass on to
1579 (getopt): Pass additional zero to _getopt_internal.
1580 (__posix_getopt): New function.
1581 * posix/getopt.h: Add redirection for getopt.
1582 * posix/getopt1.c (getopt_long): Pass additional zero to
1584 (getopt_long_only): Likewise.
1585 (_getopt_long_r): Pass additional zero to _getopt_internal_r.
1586 (_getopt_long_only_r): Likewise.
1587 * posix/getopt_int.h: Adjust declarations of _getopt_internal and
1590 2009-02-24 Ulrich Drepper <drepper@redhat.com>
1592 * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
1593 _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1594 * sysdeps/posix/sysconf.c (__sysconf): Handle
1595 _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
1596 _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
1598 2009-02-24 Roland McGrath <roland@redhat.com>
1601 * README.template: Reworded not to use substituted version number.
1603 * README: ... here (no longer generated).
1604 * Makefile (README): Target removed.
1606 2009-02-24 Ulrich Drepper <drepper@redhat.com>
1608 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
1609 /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
1612 * io/sys/stat.h: The lstat functions have been mandatory since 2001.
1614 * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
1616 2009-02-22 Ulrich Drepper <drepper@redhat.com>
1618 * po/bg.po: Update from translation team.
1620 2009-02-16 Jakub Jelinek <jakub@redhat.com>
1622 * stdlib/monetary.h: Uglify function parameter names.
1623 * sunrpc/rpc/pmap_clnt.h: Likewise.
1624 * sunrpc/rpc/svc.h: Likewise.
1625 * sunrpc/rpc/xdr.h: Likewise.
1626 * sunrpc/rpc/clnt.h: Likewise.
1627 * resolv/netdb.h: Likewise.
1628 * resolv/arpa/nameser.h: Likewise.
1629 * resolv/resolv.h: Likewise.
1630 * argp/argp.h: Likewise.
1631 * locale/langinfo.h: Likewise.
1632 * io/sys/stat.h: Likewise.
1633 * posix/spawn.h: Likewise.
1634 * nis/rpcsvc/nislib.h: Likewise.
1635 * malloc/obstack.h: Likewise.
1636 * sysdeps/ia64/bits/link.h: Likewise.
1637 * sysdeps/i386/bits/link.h: Likewise.
1638 * sysdeps/s390/bits/link.h: Likewise.
1639 * sysdeps/powerpc/bits/link.h: Likewise.
1640 * sysdeps/x86_64/bits/link.h: Likewise.
1641 * sysdeps/sparc/bits/link.h: Likewise.
1642 * sysdeps/sh/bits/link.h: Likewise.
1643 * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
1644 * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
1645 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
1646 * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
1648 2008-12-01 Fredrik Unger <fred@tree.se>
1650 * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
1651 FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
1652 _FP_UNPACK_RAW_2, fix up first argument.
1654 2009-02-15 Ulrich Drepper <drepper@redhat.com>
1656 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
1657 (GET_NPROCS_PARSER): Change parameters and use next_line.
1658 (__get_nprocs): Rewrite to not use stdio routines.
1659 * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
1660 Change parameters and use next_line.
1662 2009-02-13 Ulrich Drepper <drepper@redhat.com>
1665 * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
1666 Change mempool_alloc prototype.
1667 * nscd/mem.c (gc): Don't handle mem_in_flight.
1668 (mempool_alloc): Third parameter now only indicates whether this is the
1669 first call (to allocate data) or not. If it is, get db rdlock.
1670 Release it on error. Don't handle mem_in_flight.
1671 * nscd/aicache.c (addhstaiX): Mark he parameter as const.
1672 Adjust third parameter of mempool_alloc calls.
1673 Nothing to do here in case mempool_alloc fails.
1674 Avoid local variable shadowing parameter. No need to get db rdlock
1675 before calling cache_add.
1676 * nscd/cache.c (cache_add): Adjust call to mempool_alloc. There is
1677 no mem_in_flight array anymore.
1678 * nscd/connections.c: Remove definition and handling of mem_in_flight.
1679 * nscd/grpcache.c (cache_addgr): Adjust third parameter of
1680 mempool_alloc calls. Mark he parameter as const. Nothing to do here
1681 in case mempool_alloc fails. No need to get db rdlock before calling
1683 * nscd/hstcache.c (cache_addhst): Likewise.
1684 * nscd/initgrcache.c (addinitgroupsX): Likewise.
1685 * nscd/servicescache.c (cache_addserv): Likewise.
1686 * nscd/pwdcache.c (cache_addpw): Likewise. Remove some debugging code.
1688 2009-02-11 Ulrich Drepper <drepper@redhat.com>
1690 * po/lt.po: Update from translation team.
1692 2009-02-10 Ulrich Drepper <drepper@redhat.com>
1694 * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
1695 defined, allow additional data to be added using the optional
1696 MORE_ELF_HEADER_DATA macro.
1697 * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
1698 VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
1700 2009-02-08 Ulrich Drepper <drepper@redhat.com>
1702 * include/atomic.h: Define catomic_and if not already defined.
1703 * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
1704 * sysdeps/i386/i486/bits/atomic.h: Likewise.
1706 2009-02-07 Ulrich Drepper <drepper@redhat.com>
1708 * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
1710 (_int_realloc): Likewise. Third argument is now padded size
1711 All _int_* functions are now static.
1713 * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
1714 * malloc/arena.c: Likewise.
1715 * include/malloc.h: Remove now unnecessary declarations of the _int_*
1718 * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
1721 * malloc/malloc.c: Add branch prediction for use of the hooks.
1723 * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
1725 2009-02-06 Ulrich Drepper <drepper@redhat.com>
1728 * bits/confname.h: Add SUSv7 macros for getconf environments.
1729 * bits/environments.h: Likewise.
1730 * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
1731 * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
1732 * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
1733 * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
1734 * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
1735 * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
1736 * posix/getconf.c: Likewise.
1737 * posix/sysconf.c: Likewise.
1738 * sysdeps/posix/sysconf.c: Likewise.
1739 * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
1742 2009-01-16 Petr Baudis <pasky@suse.cz>
1745 * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
1746 even if we currently have zero nscount.
1748 2009-02-06 Ulrich Drepper <drepper@redhat.com>
1751 * grp/compat-initgroups.c (compat_call): Switch to use malloc when
1752 the input line is too long.
1754 * po/Makefile (libc.pot): Add f_print as function taking c-format
1757 * debug/xtrace.sh: Unify translatable messages.
1758 * elf/ldd.bash.in: Likewise.
1759 * elf/sprof.c: Likewise.
1760 * locale/programs/locale.c: Likewise.
1761 * malloc/memusage.sh: Likewise.
1762 * nss/getent.c: Likewise.
1764 2009-02-06 Joseph Myers <joseph@codesourcery.com>
1766 * debug/pcprofiledump.c (print_version,
1767 argp_program_version_hook): New function.
1768 * elf/ldconfig.c (more_help): New function.
1770 * elf/sln.c (usage): New function.
1771 (main): Support --help and --version.
1772 * malloc/memusagestat.c (print_version): New function.
1773 (argp_program_version_hook): New variable.
1774 * nscd/nscd.c (more_help): New function.
1776 * posix/getconf.c (main): Send --version output to stdout.
1778 * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
1779 arguments. All callers changed.
1780 (print_version): New function.
1781 (parseargs): Support --help and --version.
1782 * sunrpc/rpcinfo.c (usage): Take STREAM argument. All callers
1784 (print_version): New function.
1785 (main): Use getopt_long. Support --help and --version.
1786 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
1789 2009-02-06 Ulrich Drepper <drepper@redhat.com>
1791 * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
1792 (update_data): Fix handling of wrapping back
1793 to the beginning of the buffer.
1796 * stdio-common/psignal.c (psignal): Fix test for empty string.
1798 2009-02-05 Ulrich Drepper <drepper@redhat.com>
1800 * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
1801 * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
1802 move _null_auth to .rodata.
1804 * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
1807 * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
1809 * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
1810 today than when the original code was written. Use larger
1811 buffers. This also makes it unnecessary to have stat information,
1812 if this causes extra efforts.
1813 (__opendir): In case O_DIRECTORY works, don't call fstat just for
1816 2009-02-03 Andrew Stubbs <ams@codesourcery.com>
1818 * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
1820 * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
1821 * sysdeps/sh/sh4/__longjmp.S: Likewise.
1822 * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
1823 * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
1824 * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
1825 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
1827 2009-02-04 Ulrich Drepper <drepper@redhat.com>
1829 * po/ru.po: Update from translation team.
1831 2008-11-17 Nathan Sidwell <nathan@codesourcery.com>
1833 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
1834 Add _tid slot to maintain consistency with kernel.
1836 2009-02-04 Ulrich Drepper <drepper@redhat.com>
1838 * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
1839 incomplete characters at end of input buffer.
1840 * libio/Makefile (tests): Add tst-fgetwc.
1841 * libio/tst-fgetwc.c: New file.
1842 * libio/tst-fgetwc.input: New file.
1844 2009-02-02 Andrew Stubbs <ams@codesourcery.com>
1846 * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
1848 2009-02-02 Ulrich Drepper <drepper@redhat.com>
1851 * iconv/gconv_trans.c (__gconv_transliterate): Don't change
1852 *OUTBUFSTART unless the whole output fit into the buffer.
1853 * iconv/Makefile (tests): Add tst-iconv4.
1854 * iconv/tst-iconv4.c: New file.
1856 2009-02-01 Ulrich Drepper <drepper@redhat.com>
1858 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
1859 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
1861 2009-01-29 Andrew Stubbs <ams@codesourcery.com>
1863 * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
1864 newer linker scripts.
1866 2009-01-30 Ulrich Drepper <drepper@redhat.com>
1869 * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
1870 inotify_rm_watch should have type int.
1872 2009-01-06 Steven Munroe <sjmunroe@us.ibm.com>
1874 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
1875 Make aligned_restore_vmx a local symbol.
1876 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
1879 2009-01-30 Andreas Jaeger <aj@suse.de>
1881 * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
1882 * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
1883 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
1884 * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
1885 * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
1886 * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
1887 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
1889 2009-01-11 Ryan S. Arnold <rsa@us.ibm.com>
1892 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
1893 _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
1895 2009-01-08 Ryan S. Arnold <rsa@us.ibm.com>
1898 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1899 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1900 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1901 (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1903 2009-01-11 Thomas Schwinge <tschwinge@gnu.org>
1905 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
1906 memcpy instead of memcmp.
1907 (_dl_setup_pointer_guard): Likewise.
1909 2009-01-30 Ulrich Drepper <drepper@redhat.com>
1911 * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
1912 manipulated brk, use malloc_printerr.
1913 * misc/sbrk.c (__sbrk): Better error handling for nonsense
1916 2009-01-30 Jakub Jelinek <jakub@redhat.com>
1918 * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
1919 rindex): For C++ add inlines so that they can be recognized as
1921 * string/strings.h: Define correct C++ prototypes for gcc 4.4.
1923 2009-01-29 Ulrich Drepper <drepper@redhat.com>
1924 Jakub Jelinek <jakub@redhat.com>
1926 * string/string.h: Define correct C++ prototypes for gcc 4.4.
1927 * wcsmbs/wchar.h: Likewise.
1929 2009-01-29 Ulrich Drepper <drepper@redhat.com>
1931 * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
1932 (stackinfo_sub_sp): Define.
1934 2009-01-28 Ulrich Drepper <drepper@redhat.com>
1937 * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
1938 * include/alloca.h (alloca_account): Define.
1939 * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
1940 (stackinfo_sub_sp): Define.
1942 * nscd/connections.c (nscd_init): If database file access fails
1943 check whether this is due to permission problems and bail in that
1947 * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
1948 Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
1950 2009-01-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1952 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
1953 Add "t" to clobber list.
1954 (INTERNAL_SYSCALL_NCS): Likewise.
1956 2009-01-28 Ulrich Drepper <drepper@redhat.com>
1958 * nss/getent.c (print_networks): Don't print comma between aliases.
1960 2009-01-23 Ulrich Drepper <drepper@redhat.com>
1962 * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
1964 * misc/hsearch_r.c (hcreate_r): We need at least three elements in
1966 * misc/Makefile (tests): Add bug-hsearch1.
1967 * misc/bug-hsearch1.c: New file.
1969 2009-01-22 Roland McGrath <roland@redhat.com>
1971 * Makeconfig (%.v.i): Strip trailing # comments,
1972 not only whole-line comments.
1974 2009-01-10 Ulrich Drepper <drepper@redhat.com>
1976 * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
1977 one parameter. If non-NULL use it to initialize return value.
1978 (_dl_setup_pointer_guard): New function.
1979 * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
1980 * sysdeps/generic/ldsodefs.h: Declare _dl_random.
1981 * elf/rtld.c (security_init): Pass _dl_random to
1982 _dl_setup_stack_chk_guard. Call _dl_setup_pointer_guard to initialize
1984 * elf/dl-sysdep.c (_dl_random): New variable.
1985 (_dl_sysdep_start): Handle AT_RANDOM.
1986 (_dl_show_auxv): Likewise.
1987 * elf/dl-support.c (_dl_random): New variable.
1988 (_dl_aux_init): Handle AT_RANDOM.
1989 * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
1990 to _dl_setup_stack_chk_guard.
1992 * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
1994 2009-01-10 Roland McGrath <roland@redhat.com>
1996 * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
1998 2009-01-08 Ulrich Drepper <drepper@redhat.com>
2000 * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
2003 * nss/nss_files/files-parse.c (strtou32): New function.
2004 (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
2005 across 32-bit and 64-bit platforms.
2006 (INT_FIELD_MAYBE_NULL): Likewise.
2008 2009-01-08 Jakub Jelinek <jakub@redhat.com>
2011 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
2012 comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
2013 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
2016 2009-01-05 Paolo Bonzini <bonzini@gnu.org>
2019 * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
2020 being NULL also if there are no backreferences.
2021 * posix/rxspencer/tests: Add testcases.
2023 2009-01-04 Paolo Bonzini <bonzini@gnu.org>
2026 * posix/bug-regex17.c: Add testcases.
2027 * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
2030 2009-01-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
2032 * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
2033 * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
2034 * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
2035 * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
2037 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
2038 INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
2039 INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
2040 HAVE_CLOCK_GETTIME_VSYSCALL: Define.
2041 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2042 * sysdeps/unix/sysv/linux/s390/Versions: New file.
2044 2008-12-31 Paolo Bonzini <bonzini@gnu.org>
2046 * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
2047 * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
2048 re_string_skip_chars, re_string_reconstruct): Likewise.
2049 * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
2051 2008-12-31 Rafael Avila de Espindola <espindola@google.com>
2053 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
2054 adjust the buffer alignment.
2056 2009-01-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
2058 * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
2059 Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
2062 * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
2063 flavor to description only when flavor is not NULL.
2065 * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
2066 mutex after SIGIO/SIGURG lookup loop.
2068 2009-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
2070 * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
2072 2009-01-03 Ulrich Drepper <drepper@redhat.com>
2074 * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
2077 2009-01-02 Ulrich Drepper <drepper@redhat.com>
2079 * sysdeps/unix/sysv/linux/kernel-features.h
2080 (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
2082 * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
2083 if no output is written.
2085 * version.h: Bump to 2.10 development.
2087 * posix/getconf.c: Update copyright year.
2088 * nss/getent.c: Likewise.
2089 * iconv/iconvconfig.c: Likewise.
2090 * iconv/iconv_prog.c: Likewise.
2091 * elf/ldconfig.c: Likewise.
2092 * catgets/gencat.c: Likewise.
2093 * csu/version.c: Likewise.
2094 * elf/ldd.bash.in: Likewise.
2095 * elf/sprof.c (print_version): Likewise.
2096 * locale/programs/locale.c: Likewise.
2097 * locale/programs/localedef.c: Likewise.
2098 * nscd/nscd.c (print_version): Likewise.
2099 * debug/xtrace.sh: Likewise.
2100 * malloc/memusage.sh: Likewise.
2101 * malloc/mtrace.pl: Likewise.
2102 * debug/catchsegv.sh: Likewise.
2104 2008-12-29 Mike Frysinger <vapier@gentoo.org>
2106 * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
2109 2008-12-29 Ulrich Drepper <drepper@redhat.com>
2111 * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
2112 gethostbyname4_r function call succeeded, just leave the loop.
2115 * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
2117 * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
2118 * wctype/Makefile (tests): Add bug-wctypeh.
2119 * wctype/bug-wctypeh.c: New file.
2121 * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
2122 LOCALDOMAIN is defined.
2123 * nscd/nscd_getai.c (__nscd_getai): Likewise.
2125 * sysdeps/x86_64/bits/select.h: New file.
2127 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
2129 2008-12-21 Bruno Haible <bruno@clisp.org>
2132 * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
2133 if no output is written.
2135 2008-12-13 Klaus Dittrich <kladit@arcor.de>
2137 * login/utmp_file.c (pututline_file): Replace call to dup2 with
2138 libc internal symbol __dup2 to avoid access through the PLT.
2140 2008-12-08 Ulrich Drepper <drepper@redhat.com>
2143 * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
2144 available only for __USE_GNU.
2146 * inet/Makefile (tests): Add tst-getni2.
2147 * inet/tst-getni2.c: New file.
2150 * inet/getnameinfo.c (getnameinfo): Check for output buffers being
2151 NULL when NI_NAMEREQD is set.
2152 Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
2153 * inet/Makefile (tests): Add tst-getni1.
2154 * inet/tst-getni1.c: New file.
2156 2008-12-03 Petr Baudis <pasky@suse.cz>
2159 * nscd/connections.c (invalidate_cache): Use prune_run_lock
2160 instead of prune_lock.
2161 (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
2162 * nscd/nscd.h (database_dyn): Add prune_run_cache.
2164 2008-12-07 Ulrich Drepper <drepper@redhat.com>
2166 * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
2169 * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
2172 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
2173 after reading name server list.
2176 * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
2177 handling for host name aliases.
2179 2008-11-24 Arkadiusz Miśkiewicz <arekm@maven.pl>
2181 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
2182 instead of doing things manually.
2184 2008-11-26 Chris Steel <chris.steel.lnx@googlemail.com>
2186 * posix/regex_internal.h (build_wcs_upper_buffer):
2187 Return type is reg_error_t.
2189 2008-12-05 Ulrich Drepper <drepper@redhat.com>
2191 * posix/globtest.sh: Use mktemp to create temporary file and
2194 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
2196 (__CPU_CLR_S): Likewise.
2197 (__CPU_ISSET_S): Likewise.
2199 2008-12-05 Joseph Myers <joseph@codesourcery.com>
2200 Ulrich Drepper <drepper@redhat.com>
2202 * scripts/firstversion.awk: Use custom comparison function to compare
2204 * scripts/versions.awk: Use sort invocation which can handle
2205 multi-digit sub-version numbers.
2207 2008-12-04 Ulrich Drepper <drepper@redhat.com>
2209 * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
2210 * locale/iso-639.def: Add Chhattisgarhi entry.
2212 2008-12-02 Ulrich Drepper <drepper@redhat.com>
2214 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
2216 (_nss_dns_gethostbyname4_r): Likewise.
2217 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
2218 * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
2219 gethostbyname4_r, we don't have a separate IPv6 status, so copy
2220 the no_data variable.
2222 * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
2223 information at the correct index.
2225 * socket/sys/socket.h: Declare accept4.
2226 * socket/accept4.c: New file.
2227 * sysdeps/unix/sysv/linux/accept4.c: New file.
2228 * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
2229 * socket/Makefile (routines): Add accept4.
2230 * socket/Versions: Export accept4 with version GLIBC_2.10.
2231 * socket/paccept.c: Removed.
2232 * sysdeps/unix/sysv/linux/paccept.c: Removed.
2233 * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
2234 * Versions.def: Define GLIBC_2.10 for libc.
2235 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
2237 * nscd/connections.c: Use accept4.
2239 * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
2241 2008-12-01 Ulrich Drepper <drepper@redhat.com>
2243 * resolv/res_send.c (send_dg): Create sockets with non-blocking
2246 * stdlib/setenv.c (unsetenv): Don't search environment if it does
2248 * stdlib/Makefile (tests): Add tst-unsetenv1.
2249 * stdlib/tst-unsetenv1.c: New file.
2251 2008-11-29 Ulrich Drepper <drepper@redhat.com>
2253 * login/utmp_file.c (file_writable): New variable.
2254 (setutent_file): Don't try to open file for writing.
2255 (pututline_file): Before writing, make descriptor writable if
2258 2008-11-26 Ulrich Drepper <drepper@redhat.com>
2260 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
2261 to IPv4 or IPv6 if an interface has been found.
2263 2008-11-26 Roland McGrath <roland@redhat.com>
2265 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
2266 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
2268 * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
2269 * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
2270 * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
2272 * elf/elf.h (NT_386_IOPERM): New macro.
2273 (NT_PPC_VSX): New macro.
2275 2008-11-25 Roland McGrath <roland@redhat.com>
2277 * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
2278 sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
2279 sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
2280 sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
2281 Subdirectories moved to ports repository.
2282 * configure.in (base_machine): Remove alpha case.
2284 2008-11-25 Thomas Schwinge <tschwinge@gnu.org>
2286 * sysdeps/mach/strerror_l.c: New file.
2288 2008-11-13 Ryan S. Arnold <rsa@us.ibm.com>
2291 * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
2292 * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
2294 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
2295 choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
2296 (relax_fenv_state): Same as above.
2297 (FPSCR_29): Reserve bit in ISA 2.05.
2298 (FPSCR_NI): Provide define for compat.
2299 * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
2301 * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
2303 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file. Test case to
2304 test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
2305 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
2306 access to hwcap to account for hwcap size increase to uint64_t.
2307 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
2309 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
2310 (*setcontext): Likewise.
2311 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
2313 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
2315 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
2316 (*setcontext): dynamically select mtfsf insn based on
2317 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
2318 increase to uint64_t.
2319 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
2320 (*swapcontext): dynamically select mtfsf insn based on
2321 PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
2322 increase to uint64_t.
2323 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
2325 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
2327 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
2328 (*setcontext): dynamically select mtfsf insn based on
2329 PPC_FEATURE_HAS_DFP.
2330 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
2331 (*swapcontext): dynamically select mtfsf insn based on
2332 PPC_FEATURE_HAS_DFP.
2334 2008-11-13 Ulrich Drepper <drepper@redhat.com>
2336 * version.h: Bump for 2.9 release.
2337 * include/features.h (__GLIBC_MINOR__): Bump to 9.
2340 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
2341 Multiply with sizeof of __cpu_mask, not 8 unconditionally after
2344 2008-11-11 Ulrich Drepper <drepper@redhat.com>
2347 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
2348 unknown request types for now.
2350 2008-11-11 Roland McGrath <roland@redhat.com>
2352 * sysdeps/x86_64/configure: New file.
2354 * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
2355 * configure: Regenerated.
2357 2008-11-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
2359 * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
2360 correct instruction to remove the stack frame.
2362 2008-11-03 Michael Matz <matz@suse.de>
2364 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
2365 __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
2367 2008-11-07 Jakub Jelinek <jakub@redhat.com>
2369 * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
2372 * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
2373 __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
2374 of the thread variable instead of void *.
2375 * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
2376 __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
2377 * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
2378 __libc_tsd_define arguments.
2379 (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
2380 __libc_tsd_address arguments. Remove union hack.
2381 * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
2382 * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
2383 (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
2384 Adjust __libc_tsd_{set,get} arguments.
2385 * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
2386 __libc_tsd_define arguments.
2387 * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
2389 * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
2390 * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
2391 (LOCALE): Adjust __libc_tsd_define arguments.
2392 * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
2394 (LOCALE): Adjust __libc_tsd_define arguments.
2395 * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
2397 (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
2400 2008-11-02 Ulrich Drepper <drepper@redhat.com>
2402 * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
2403 really all bytes. Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2405 2008-11-01 Ulrich Drepper <drepper@redhat.com>
2408 * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
2410 2008-10-24 Joseph Myers <joseph@codesourcery.com>
2411 Ulrich Drepper <drepper@redhat.com>
2413 * math/tgmath.h (__floating_type): Use __builtin_classify_type in
2414 definition for GCC 3.1 and later.
2416 2008-10-31 Jakub Jelinek <jakub@redhat.com>
2418 * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
2419 refetch dtv, as it might have changed.
2420 * elf/Makefile: Add rules to build and run tst-tls18.
2421 * elf/tst-tls18.c: New test.
2422 * elf/tst-tlsmod18a.c: New file.
2424 2008-09-09 Aurelien Jarno <aurelien@aurel32.net>
2427 * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
2429 2008-10-31 Ulrich Drepper <drepper@redhat.com>
2432 * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
2435 * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
2436 Fix length of copy operation.
2438 2008-10-02 Pierre Habouzit <madcoder@debian.org>
2440 * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
2441 and fix its calling convention.
2443 2008-10-07 Andreas Schwab <schwab@suse.de>
2446 * resolv/res_send.c (send_vc): Fix last change.
2447 (send_dg): Align here as well.
2449 2008-10-31 Ulrich Drepper <drepper@redhat.com>
2451 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
2452 return value in case rlimit is RLIM_INFINITY.
2455 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
2457 * resource/Makefile (tests): Add bug-ulimit1.
2458 * resource/bug-ulimit1.c: New file.
2461 * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
2462 without dot. Properly terminate the string with a null byte.
2463 Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
2466 * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
2468 * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
2472 * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
2474 2008-10-30 Ulrich Drepper <drepper@redhat.com>
2476 * grp/initgroups.c (internal_getgrouplist): Don't prematurely
2477 abort if there is no initgroups_dyn function.
2479 * resolv/res_send.c (send_dg): On timeout, only return nonzero
2480 result if any of the queries really provided an answer.
2482 2008-10-28 Ulrich Drepper <drepper@redhat.com>
2484 * po/lt.po: Update from translation team.
2486 2008-10-26 Ulrich Drepper <drepper@redhat.com>
2488 * po/id.po: Update from translation team.
2490 2008-10-24 Ulrich Drepper <drepper@redhat.com>
2492 * resolv/res_query.c (__libc_res_nquery): Add a few casts.
2493 Fix tests for existence of second reply.
2495 2008-10-23 Ulrich Drepper <drepper@redhat.com>
2497 * po/id.po: New file.
2498 Contributed by the Indonesian translation team.
2500 2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
2502 * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
2505 2008-10-17 Jakub Jelinek <jakub@redhat.com>
2507 * elf/Makefile: Add rules to build and run tst-tls17.
2508 * elf/tst-tls17.c: New test.
2509 * elf/tst-tlsmod17a.c: New file.
2510 * elf/tst-tlsmod17b.c: Likewise.
2512 2008-10-17 Ulrich Drepper <drepper@redhat.com>
2514 * stdlib/divmod_1.c: Use correct type for dummy variable.
2515 * stdlib/mod_1.c: Likewise.
2517 2008-10-16 Ulrich Drepper <drepper@redhat.com>
2519 * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
2521 2008-10-16 Jakub Jelinek <jakub@redhat.com>
2523 * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
2524 __nonnull order for C++.
2525 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
2526 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
2528 2008-10-01 Daniel Jacobowitz <dan@codesourcery.com>
2530 * stdlib/longlong.h: Update from GCC.
2532 2008-10-09 Jakub Jelinek <jakub@redhat.com>
2533 David S. Miller <davem@davemloft.net>
2535 * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
2536 make sure any registers used with 64-bit 'branch-on-register'
2537 instructions have their top 32-bits clear.
2538 * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
2539 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
2541 2008-09-18 Andreas Schwab <schwab@suse.de>
2544 * resolv/res_send.c (send_vc): Fix use of unaligned address.
2545 Properly handle partial reads.
2547 2008-10-01 Mark Shinwell <shinwell@codesourcery.com>
2549 * elf/elf.h (STO_MIPS_PLT): New.
2551 (R_MIPS_JUMP_SLOT): New.
2552 (R_MIPS_NUM): Redefine to 128.
2553 (DT_MIPS_PLTGOT): New.
2554 (DT_MIPS_RWPLT): New.
2555 (DT_MIPS_NUM): Redefine to 0x35.
2557 2008-10-01 Ulrich Drepper <drepper@redhat.com>
2559 * timezone/africa: Update from tzdata2008f.
2560 * timezone/asia: Likewise.
2561 * timezone/australasia: Likewise.
2562 * timezone/europe: Likewise.
2563 * timezone/leapseconds: Likewise.
2564 * timezone/northamerica: Likewise.
2565 * timezone/southamerica: Likewise.
2566 * timezone/zone.tab: Likewise.
2568 2008-09-30 Ulrich Drepper <drepper@redhat.com>
2570 * nscd/connections.c: Disable use of paccept for now.
2572 2008-09-29 Ulrich Drepper <drepper@redhat.com>
2574 * socket/Versions: Remove paccept export for GLIBC_2.9.
2575 * socket/Makefile (routines): Remove paccept.
2576 * socket/sys/socket.h: Remove paccept declaration.
2578 * po/sv.po: Update from translation team.
2580 2008-09-22 Deborah S. Townsend <dstownse@us.ibm.com>
2582 * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
2583 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
2585 2008-09-16 Ulrich Drepper <drepper@redhat.com>
2587 * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
2588 Patch by Olivier Fourdan <ofourdan@redhat.com>.
2590 2008-09-15 Ulrich Drepper <drepper@redhat.com>
2592 * sunrpc/rpc/svc.h: Declare svcfd_create.
2593 Patch by Michael Solberg <msolberg@redhat.com>.
2595 2008-09-12 Flavio Leitner <fleitner@redhat.com>
2596 Ulrich Drepper <drepper@redhat.com>
2598 * malloc/malloc.c (public_vALLOc): Try other arenas in case
2600 (public_pVALLOc): Likewise.
2602 2008-09-02 Andreas Jaeger <aj@suse.de>
2604 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
2607 2008-08-26 Aurelien Jarno <aurelien@aurel32.net>
2610 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
2612 2008-07-18 Daniel Jacobowitz <dan@codesourcery.com>
2614 * Makefile (check-data): Check data directory in add-ons.
2615 * elf/Makefile (check-data): Likewise.
2617 2008-08-18 Roland McGrath <roland@redhat.com>
2619 * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
2620 * configure: Regenerated.
2621 * config.make.in (cflags-cpu): New substituted variable.
2622 (with-cpu): Variable removed.
2623 * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
2625 2008-08-14 Ryan S. Arnold <rsa@us.ibm.com>
2628 * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
2629 __signbitl definition and __LONG_DOUBLE_128__ guard from:
2630 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
2631 redundant. Functions which call floating point assembler operations
2632 should go into a sysdeps powerpc/fpu directory.
2634 2008-08-15 Ulrich Drepper <drepper@redhat.com>
2636 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
2637 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
2639 2008-08-14 Ulrich Drepper <drepper@redhat.com>
2641 * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
2643 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
2644 change related to AT_EXECFN. We cannot use that string.
2645 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
2647 * elf/dl-support.c: Remove _dl_execfn variable.
2648 (_dl_aux_init): Remove handling of AT_EXECFN.
2649 * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
2650 * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
2652 2008-08-13 Ulrich Drepper <drepper@redhat.com>
2655 * libio/fmemopen.c: Implement binary mode. In this mode no NUL
2656 byte gets added to writes and seeks from the end use the length of
2657 the buffer and not the currently terminating NUL byte.
2660 * login/utmp_file.c (getutent_r_file): Take additional parameter.
2661 Set to true if locking failed.
2662 (getutid_r_file): Adjust caller.
2663 (pututline_file): Likewise. Return NULL in this case.
2664 Patch mostly by halesh.s@gmail.com.
2666 2008-08-12 Ulrich Drepper <drepper@redhat.com>
2669 * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
2671 (struct ifaddrs_storage): Use it instead of sockaddr_ll.
2673 2008-08-12 Ryan S. Arnold <rsa@us.ibm.com>
2676 * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
2677 macro since it is now available in elf/dynamic-link.h.
2679 2008-08-12 Roland McGrath <roland@frob.com>
2681 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
2682 in case used outside of libc.
2683 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
2685 2008-08-11 Ulrich Drepper <drepper@redhat.com>
2687 * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
2688 directly instead of going through dn_comp.
2690 2008-08-11 Aurelien Jarno <aurel32@debian.org>
2692 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2693 Fix asm constraints.
2695 2008-08-07 Ulrich Drepper <drepper@redhat.com>
2698 * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
2699 (IPV6_PMTUDISC_PROBE): Likewise.
2701 2008-08-07 Pete Eberlein <eberlein@us.ibm.com>
2704 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
2706 2008-08-01 Steven Munroe <sjmunroe@us.ibm.com>
2707 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2710 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
2711 Added the members 'vsx' and 'arch_2_06'.
2712 (_dl_powerpc_platforms): Add the member 'power7'.
2713 * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
2714 to reflect the changes required by VSX and ISA 2.06.
2715 Modify _DL_PLATFORMS_COUNT to reflect the addition of
2717 Defined PPC_PLATFORM_POWER7.
2718 (_dl_string_platform): Add support for POWER7.
2719 * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
2720 capability and ISA 2.06.
2722 2008-08-07 Ulrich Drepper <drepper@redhat.com>
2725 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
2726 macro to detect use of 128 bit long double.
2727 Patch by Ryan S. Arnold <rsa@us.ibm.com>.
2729 2008-08-05 Ulrich Drepper <drepper@redhat.com>
2731 * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
2734 * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
2736 * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2737 Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2739 2008-08-03 Ulrich Drepper <drepper@redhat.com>
2741 * nscd/connections.c (main_loop_poll): Pass a buffer which is
2742 guaranteed to be large enough to read inotify event. Ignore
2743 EAGAIN error. Better error message. Add branch predicition.
2744 (main_loop_epoll): Likewise.
2746 2008-08-02 Roland McGrath <roland@frob.com>
2748 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2749 Add memory clobbers.
2751 2008-08-02 Ulrich Drepper <drepper@redhat.com>
2753 * manual/arith.texi: Avoid @strong{Note:}.
2754 * manual/creature.texi: Likewise.
2755 * manual/filesys.texi: Likewise.
2756 * manual/math.texi: Likewise.
2757 * manual/memory.texi: Likewise.
2758 * manual/resource.texi: Likewise.
2759 * manual/syslog.texi: Likewise.
2760 * manual/time.texi: Likewise.
2762 * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
2765 2008-08-01 Ulrich Drepper <drepper@redhat.com>
2767 * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
2768 new epoll_create1 interface.
2769 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2770 * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
2771 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
2773 * include/arpa/nameser.h (NS_GET16): Use const pointer.
2774 (NS_GET32): Likewise.
2776 * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
2779 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
2780 use the AT_EXECFN value if it is no absolute path.
2781 * sysdeps/unix/sysv/linux/kernel-features.h: Never define
2784 * Versions.def: Add GLIBC_2.9 to libresolv.
2785 * include/resolv.h: Remove hidden proto declarations for __ns_*
2786 functions. Add them for __dn_count_labels and __p_secstodate.
2787 * include/arpa/nameser.h: Add a number of hidden proto declarations.
2788 Define ns_msg_getflags macro here.
2789 * resolv/res_debug.c: Add hidden definition for __dn_count_labels
2791 * resolv/Versions: Export functions from <arpa/nameser.h> from
2792 libresolv in version GLIBC_2.9.
2793 * resolv/ns_name.c: Integrate changes from bind 9.5.0. Add necessary
2795 * resolv/ns_netint.c: Likewise.
2796 * resolv/ns_parse.c: Likewise.
2797 * resolv/ns_print.c: Likewise.
2798 * resolv/ns_samedomain.c: Likewise.
2799 * resolv/ns_ttl.c: Likewise.
2800 * resolv/arpa/nameser_compat.h: Likewise.
2801 * resolv/arpa/nameser.h: Likewise. Remove macros which redirect
2803 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
2804 instead of ns_get16.
2805 * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
2806 __ns_get32 instead of ns_get16 and ns_get32 respectively.
2807 (gaih_getanswer_slice): Likewise.
2808 * resolv/Makefile (libresolv-routines): Add ns_date.
2809 * resolv/ns_date.c: New file.
2811 * elf/Makefile (check-localplt.out): Also check libresolv and
2814 2008-07-31 Ulrich Drepper <drepper@redhat.com>
2816 * sysdeps/unix/sysv/linux/kernel-features.h: Define
2819 2008-07-30 Ulrich Drepper <drepper@redhat.com>
2821 * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
2822 buffer passed to NSS functions.
2824 * nscd/connections.c (nscd_init): Typo in preprocessor directive.
2826 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
2829 * misc/syslog.c (openlog_internal): Fix compile problem.
2831 2008-07-28 Roland McGrath <roland@redhat.com>
2833 * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
2835 2008-07-28 Ulrich Drepper <drepper@redhat.com>
2837 * io/ftw.c (add_object): Remove inline to avoid warning.
2839 * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
2841 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
2842 Use it instead of locally defined resplen2 variable.
2843 (res_nsend): Adjust for __libc_res_nsend interface change.
2844 (send_vc): Initialize *resplen2 if necessary. Read length of
2845 package into an appropriately aligned variable. Store converted length
2846 in new variable and use it appropriately.
2847 Add branch prediction help.
2848 * resolv/res_query.c (__libc_res_nquery): Take additional parameter
2849 and pass it on to __libc_res_nsend. Adjust all callers.
2850 (__libc_res_nsearch): Likewise.
2851 (__libc_res_nqeurydomain): Likewise.
2852 * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
2854 (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
2855 Define resplen2 variable and pass it to __libc_res_nsearch and then
2857 (getanswer_r): In case of incorrect DNS data don't overread buffer.
2858 Add branch prediction.
2859 (gaih_getanswer_slice): Likewise. Check for invalid data types.
2860 (gaih_getanswer): Don't decode second slice if first one failed due
2861 to a too small buffer. Don't let not found status of second
2862 decoder shadow results of the first.
2863 * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
2864 and __libc_res_nquery interface changes
2865 (gethostbyaddr): Adjust for __libc_res_nquery interface change.
2866 * include/resolv.h: Adjust prototypes for __libc_res_nquery,
2867 __libc_res_nsearch, and __libc_res_nsend.
2868 * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
2870 * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
2871 __libc_res_nsearch interface changes.
2873 2008-07-27 Ulrich Drepper <drepper@redhat.com>
2875 * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
2877 * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
2878 file descriptors with close-on-exec set.
2879 (exec_comm_child): Fix the case where the write end of the pipe is
2880 STDOUT_FILENO already. In case it is, clear close-on-exec.
2882 * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
2883 * io/pipe2.c: Likewise.
2884 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
2885 instead of __ASSUME_PACCEPT.
2886 * include/unistd.h: Declare __have_pipe2.
2887 * libio/iopopen.c: Implement "e" flag.
2888 * libio/Makefile (tests): Add tst-popen1.
2889 * libio/tst-popen1.c: New file.
2891 * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
2892 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2894 2008-07-26 Ulrich Drepper <drepper@redhat.com>
2897 * libio/fileops.c (_IO_new_file_attach): Preserve errno around
2898 success call of _IO_SEEKOFF or calls which failed because the
2899 descriptor is for a pipe.
2901 * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
2904 * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
2906 * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call. Drop
2907 F_SETFD use if we know fopen set the flag.
2909 * login/utmp_file.c (setutent_file): Minor optimization in case
2910 O_CLOEXEC is available.
2912 2008-07-24 Tom "spot" Callaway <tcallawa@redhat.com>
2914 * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
2915 * elf/Makefile: Use pie-ccflag variable.
2916 * nscd/Makefile: Likewise.
2917 * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
2919 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
2922 * Versions.def: Add GLIBC_2.9 version tag for libutil.
2923 * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
2924 gnu/bits/utmp.h. Check for __WORDSIZE_COMPAT32 removed.
2925 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
2926 gnu/bits/utmpx.h. Check for __WORDSIZE_COMPAT32 removed.
2927 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
2928 utmp32, utmpx32 and login32.
2929 * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
2930 versions of struct utmp functions to libc and libutil.
2931 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
2932 * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
2933 * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
2934 * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
2935 * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
2936 * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
2937 * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
2938 * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
2939 * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
2940 * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
2941 * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
2942 * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
2943 * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
2944 * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
2945 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
2946 * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
2947 * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
2948 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
2949 * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
2950 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
2951 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
2952 * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
2954 2008-07-26 Ulrich Drepper <drepper@redhat.com>
2956 * scripts/gen-as-const.awk: Generate more widely usable code by
2957 using 64-bit arithmetic.
2959 * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
2960 the same treatment as narrow output code in last patch.
2962 * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
2965 * elf/dl-load.c (local_strdup): Remove inline.
2966 (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
2967 * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
2970 * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
2972 2008-07-25 Ulrich Drepper <drepper@redhat.com>
2974 * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
2975 the new syscalls, too.
2977 * sysdeps/i386/i686/memcmp.S: Fix unwind information.
2978 Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
2981 * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
2982 parameter for end of buffer. If temporary copy is too large use
2984 * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
2986 * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for
2987 string rewrite when allocating buffer.
2989 * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
2992 * nscd/connections.c (nscd_init): Clean up fcntl call.
2994 * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
2995 SOCK_NONBLOCK if possible.
2997 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
2998 SOCK_CLOEXEC if available.
3000 * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
3001 __libc_clntudp_bufcreate_internal.
3002 * include/sys/socket.h: Declare __have_sock_cloexec.
3003 * socket/Makefile (aux): Add have_sock_cloexec.
3004 * socket/have_sock_cloexec.c: New file.
3005 * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
3006 __libc_clntudp_bufcreate.
3007 (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
3008 which takes an additional parameter. Create socket with non-blocking
3009 mode and close-on-exec flag set, if wanted.
3010 * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
3011 * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
3012 instead of clntudp_create. The socket has already the close-on-exec
3013 flag set if SOCK_CLOEXEC is defined.
3015 2008-07-24 Ulrich Drepper <drepper@redhat.com>
3017 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3018 __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
3020 * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
3021 non-blocking mode by using socket, paccept, and inotify_init1.
3023 * Versions.def (glibc): Add GLIBC_2.9.
3024 * io/Makefile (routines): Add dup3 and pipe2.
3025 * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
3026 * io/dup3.c: New file.
3027 * io/pipe2.c: New file.
3028 * posix/unistd.h: Declare dup3 and pipe2.
3029 * socket/Makefile (routines): Add paccept.
3030 * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
3031 * socket/paccept.c: New file.
3032 * socket/sys/socket.h: Declare paccept.
3033 * sysdeps/unix/syscalls.list: Add entry for dup3.
3034 * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
3035 epoll_create2 and inotify_init1.
3036 * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
3037 * sysdeps/unix/sysv/linux/paccept.c: New file.
3038 * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
3040 * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
3041 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
3042 inotify_init1, and pipe2 entries.
3043 * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
3044 * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
3045 * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
3046 * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
3047 * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
3048 * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
3050 * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
3051 * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
3052 * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
3053 * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
3054 * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
3055 * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
3056 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
3057 * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
3058 EPOLL_NONBLOCK. Declare epoll_create2.
3059 * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
3061 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
3062 IN_NONBLOCK. Declare inotify_init1.
3063 * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
3065 * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
3068 * elf/elf.h: Define AT_EXECFN.
3069 * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
3071 * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
3072 * elf/dl-support.c: Define _dl_execfn. Don't define _dl_origin_path
3073 if __ASSUME_AT_EXECFN is defined.
3074 (_dl_aux_init): Handle AT_EXECFN.
3075 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
3077 * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
3078 Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
3079 * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
3080 _dl_execfn if available and avoid compatibility code if
3081 __ASSUME_AT_EXECFN is defined.
3083 * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
3084 _dl_discover_osversion only for older kernels.
3086 2008-07-22 Roland McGrath <roland@frob.com>
3088 * hurd/fd-read.c (_hurd_fd_read): Fix last change.
3090 2008-07-21 Roland McGrath <roland@frob.com>
3092 * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
3093 returned too much data out of line.
3095 2008-07-20 Ulrich Drepper <drepper@redhat.com>
3097 * locale/setlocale.c (setname): Remove inline to avoid compiler
3101 * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
3103 2008-07-15 Ulrich Drepper <drepper@redhat.com>
3105 * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
3106 doesn't manage to write anything, fail.
3108 * malloc/hooks.c (__malloc_check_init): Remove printf.
3110 2008-07-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3112 * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
3114 2008-07-12 Ulrich Drepper <drepper@redhat.com>
3116 * nscd/connections.c (main_loop_poll): Fix handling of read errors
3118 (main_loop_epoll): Likewise.
3120 2008-07-09 Ulrich Drepper <drepper@redhat.com>
3122 * resolv/res_send.c: Remove unnecessary res_pquery prototype.
3124 * resolv/res_query.c (__libc_res_nquery): Issue debug message only
3125 if DEBUG is defined.
3127 * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
3128 query. Adjust buffer size computation for padding.
3130 2008-07-08 Ulrich Drepper <drepper@redhat.com>
3132 * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
3133 * stdio-common/tst-setvbuf1.c: New file.
3134 * stdio-common/tst-setvbuf1.expect: New file.
3137 * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
3138 when selecting fully-buffered stream.
3139 Patch by Wang Xin <wxinee@gmail.com>.
3141 2008-07-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
3143 * sysdeps/mach/hurd/open.c: Include <stdio.h>.
3144 (__open_2): New function.
3145 (__open64_2): New alias to __open_2.
3146 * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
3147 (__openat_2): New function.
3148 (__openat64_2): New alias to __openat_2.
3150 2008-07-06 Ulrich Drepper <drepper@redhat.com>
3153 * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
3155 2008-07-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3157 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
3158 * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
3159 * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
3161 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
3162 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
3163 * sysdeps/mach/hurd/send.c (__send): Likewise.
3164 * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
3165 * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
3167 2008-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
3169 * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
3170 * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
3171 * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
3172 * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
3173 * hurd/get-host.c (_hurd_get_host_config): Likewise.
3174 * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
3176 2008-06-27 Ulrich Drepper <drepper@redhat.com>
3179 * time/strptime_l.c: Don't clear s.era_cnt after successful match
3181 Patch by Petr Baudis.
3183 2008-06-26 Ulrich Drepper <drepper@redhat.com>
3185 * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
3186 Patch by Peter Jones <pjones@redhat.com>.
3188 2008-06-25 Ulrich Drepper <drepper@redhat.com>
3191 * stdlib/canonicalize.c (__realpath): readlink can write too much
3192 into the buffer on platforms without PATH_MAX.
3194 2008-06-17 Carlos O'Donell <carlos@codesourcery.com>
3197 * posix/tst-regex.c (main): Rename to...
3198 (do_test): ... this. Remove cmdline option processing.
3200 (TEST_FUNCTION): Define.
3201 (CMDLINE_OPTIONS): Define.
3203 2008-06-25 Ulrich Drepper <drepper@redhat.com>
3206 * configure.in: Add -Werror to -fstack-protector test to catch
3207 unsupported architectures.
3208 Patch by Gilles Esponasse <g.esp@free.fr>.
3210 2008-06-17 Joseph Myers <joseph@codesourcery.com>
3212 * stdlib/tst-setcontext.c: Set back_in_main before exit if
3213 getcontext returns ENOSYS.
3215 2008-06-18 Ulrich Drepper <drepper@redhat.com>
3217 * nscd/connections.c (main_loop_poll): Fix test for read error.
3218 (main_loop_epoll): Likewise.
3220 2008-06-13 Ulrich Drepper <drepper@redhat.com>
3222 * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
3223 better place so it is not called when nscd is used.
3225 * nscd/connections.c: Also recognize and handle changes to the
3226 resolver configuration file.
3228 2008-06-12 Ulrich Drepper <drepper@redhat.com>
3230 * time/strftime.c: Pass reference to tzset_called around to handle
3234 * time/strftime.c (__strftime_internal): Call tzset() only
3235 when printing timezone-dependent values.
3236 Based on a patch by Petr Baudis <pasky@suse.cz>.
3238 * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
3239 unconditionally use second gaih_getanswer_slice result.
3241 * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
3242 (getaddrinfo): RES must always be non-NULL.
3244 2008-06-12 Jakub Jelinek <jakub@redhat.com>
3246 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
3248 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3249 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3251 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
3254 2008-06-12 Ulrich Drepper <drepper@redhat.com>
3256 * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
3258 * nscd/connections.c (inotify_fd): New variable.
3259 (nscd_init): Try to open an inotify descriptor.
3260 If successful, watch files for databases using inotify instead of
3261 having prune threads stat the files.
3262 (nscd_run_prune): Recognize clear_cache flag being set and call
3263 prune_cache appropriately.
3264 (main_loop_poll): Add inotify descriptor to wait set and handle the
3266 (main_loop_epoll): Likewise.
3267 * nscd/cache.c (prune_cache): Don't stat files for databases if
3269 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
3270 (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
3272 * nscd/grpcache.c (cache_addgr): Correctly compute size of
3273 fixed-size portion of the record.
3274 * nscd/servicescache.c (cache_addserv): Likewise.
3275 * nscd/pwdcache.c (cache_addpw): Likewise.
3276 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3278 2008-06-11 Ulrich Drepper <drepper@redhat.com>
3280 * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
3281 out we don't use uninitialized memory.
3283 * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
3286 2008-06-10 Ulrich Drepper <drepper@redhat.com>
3288 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
3289 ignore T_DNAME messages.
3290 * resolv/arpa/nameser_compat.h (T_DNAME): Define.
3292 2008-06-05 Jakub Jelinek <jakub@redhat.com>
3294 * misc/regexp.h (compile): Use __REPB_PREFIX macro.
3295 Avoid segfault if first GETC returns eof/'\0'/'\n'.
3297 2008-06-03 Jakub Jelinek <jakub@redhat.com>
3299 * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
3300 instead of portstr to nscd_getserv_r. Patch by
3301 Roman Kagan <rkagan@mail.ru>.
3303 2008-05-26 Jim Meyering <meyering@redhat.com>
3305 Remove more useless "if" tests before "free".
3306 * include/inline-hashtab.h (htab_delete): Likewise.
3307 * libio/freopen.c (freopen): Likewise.
3308 * libio/freopen64.c (freopen64): Likewise.
3309 * locale/programs/ld-collate.c (collate_read): Likewise.
3310 * misc/fstab.c (libc_freeres_fn): Likewise.
3311 * posix/glob.c (globfree): Likewise.
3313 2008-05-24 Ulrich Drepper <drepper@redhat.com>
3315 * string/Makefile (strop-tests): Add memmem.
3316 * string/test-memmem.c: New file.
3317 * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
3318 (test_init): Size buf1 according to BUF1PAGES.
3320 2008-05-24 Jakub Jelinek <jakub@redhat.com>
3322 * libio/stdio.h (vscanf): Fix -std=c99 redirect.
3323 * stdio-common/Makefile (tests): Add scanf16 and scanf17.
3324 (CFLAGS-scanf17.c): New.
3325 * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
3326 * stdio-common/scanf15.c (main): Likewise.
3327 * stdio-common/scanf16.c: New file.
3328 * stdio-common/scanf17.c: New file.
3330 2008-05-24 Ulrich Drepper <drepper@redhat.com>
3332 * resolv/res_send.c (send_dg): If we already have one of two
3333 answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
3334 use the one answer insted of failing.
3336 2008-02-20 Ryan S. Arnold <rsa@us.ibm.com>
3338 * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
3339 being executed on PowerPC as the expected result exceeds IBM
3340 long double 128 __LDBL_MAX__.
3342 2008-05-21 Roland McGrath <roland@redhat.com>
3344 * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
3346 * Makefile (check-data): Use $(abi-name) before other guesses.
3347 Look in $(add-ons) dirs before scripts/data/.
3348 * elf/Makefile (check-data): Likewise.
3350 * scripts/soversions.awk: Grok ABI line.
3351 * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
3352 Emit definition for abi-name variable.
3354 2008-05-21 Ulrich Drepper <drepper@redhat.com>
3356 * string/endian.h: Define new fixed-size hto* and *toh macros only
3359 * iconvdata/Depend: Add localedata.
3361 2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
3363 * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
3365 2008-05-08 David S. Miller <davem@davemloft.net>
3367 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
3369 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3370 (__SYSCALL_CLOBBERS): Remove %g* registers.
3371 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3372 (__SYSCALL_CLOBBERS): Likewise.
3373 * scripts/data/localplt-sparc-linux-gnu.data: New file.
3374 * scripts/data/localplt-sparc64-linux-gnu.data: New file.
3376 2008-05-21 Jakub Jelinek <jakub@redhat.com>
3378 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3379 (CALL_ERRNO_LOCATION): Define.
3380 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
3381 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3382 (CALL_ERRNO_LOCATION): Define.
3383 (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
3384 * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
3385 HIDDEN_JUMPTARGET for __errno_location call in libc.so.
3387 2008-05-20 Ulrich Drepper <drepper@redhat.com>
3389 * include/inline-hashtab.h (higher_prime_number): Fix type of mid
3392 2008-05-20 Jakub Jelinek <jakub@redhat.com>
3394 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
3395 (FIRST_FRAME_POINTER): Define.
3397 2008-05-09 David S. Miller <davem@davemloft.net>
3399 * sysdeps/sparc/sparc64/backtrace.c: New file.
3401 2008-05-14 David S. Miller <davem@davemloft.net>
3403 * sysdeps/sparc/machine-gmon.h: New file.
3404 * sysdeps/sparc/sparc-mcount.S: Likewise.
3405 * sysdeps/sparc/Makefile: Add sparc-mcount target to
3406 sysdep_routines in gmon directory.
3408 2008-05-19 Jakub Jelinek <jakub@redhat.com>
3410 * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
3412 2008-05-19 Ulrich Drepper <drepper@redhat.com>
3414 * resolv/res_query.c (__libc_res_nquery): In case one of two
3415 answer was too short don't try to read that answer's header.
3417 * resolv/res_send.c (send_dg): In case of timeout and there are
3418 two queries and one has been answered, return value indicating
3421 2008-05-18 Ulrich Drepper <drepper@redhat.com>
3423 * nscd/cache.c (cache_add): Take additional parameter specifying
3424 whether this is in response of a cache refill. Check alignment
3425 of package data. Revamp waking of pruning thread.
3426 (prune_cache): Small optimization.
3427 * nscd/nscd.h: Adjust cache_add prototypes.
3428 * nscd/aicache.c: Adjust cache_add calls.
3429 * nscd/grpcache.c: Likewise.
3430 * nscd/hstcache.c: Likewise.
3431 * nscd/initgrcache.c: Likewise.
3432 * nscd/pwdcache.c: Likewise.
3433 * nscd/servicescache.c: Likewise.
3434 * nscd/connections.c (restart): Really disable cache use before
3435 exec attempt. If it fails, reenable cache.
3436 (nscd_run_prune): Initialize wakeup_time. After wakeup, set wakeup
3437 time to max to be able to notice concurrent cache additions. Unlock
3438 prune_lock while performing gc. Afterwards compute wakeup time with
3439 current wakeup_time value in mind.
3441 2008-05-17 Ulrich Drepper <drepper@redhat.com>
3443 * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
3445 * nscd/mem.c (gc): Correctly determine highest used array element
3448 * nscd/mem.c (markrange): Add assert to check entries are all
3449 aligned. Small cleanup in bitmap use.
3451 * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
3452 blockoff of type nscd_ssize_t.
3453 * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
3454 (mempoll_alloc): Record block offset and not address.
3456 * nscd/mem.c (gc): Fix test for stack overuse.
3458 * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
3461 * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
3462 entry is available, believe it.
3464 * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
3465 no answers return NSS_STATUS_NOTFOUND.
3466 (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
3467 buffer does not have any content.
3469 2008-05-16 Ulrich Drepper <drepper@redhat.com>
3471 * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
3473 * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
3474 lookup, don't assign canon unconditionally.
3476 2008-05-14 Ulrich Drepper <drepper@redhat.com>
3478 * string/Makefile (distribute): Add str-two-way.h.
3480 2008-03-29 Eric Blake <ebb9@byu.net>
3482 Rewrite string searches to O(n) rather than O(n^2).
3483 * string/str-two-way.h: New file. For linear fixed-allocation
3485 * string/memmem.c: New implementation.
3486 * string/strstr.c: New implementation.
3487 * string/strcasestr.c: New implementation.
3489 2008-04-11 Paolo Bonzini <bonzini@gnu.org>
3491 * posix/regcomp.c (optimize_utf8): Add a note on why we test
3493 (calc_first): Initialize constraint field.
3494 (duplicate_node_closure): Use it instead of special casing ANCHORS.
3495 Use search_duplicated_node to avoid loops. Fix grammar.
3496 (duplicate_node): Merge constraint field for all node types.
3497 (calc_eclosure_iter): Look at constraint field for all node types.
3498 * posix/regex_internal.c (create_cd_newstate): Don't look at
3501 2008-05-14 Ulrich Drepper <drepper@redhat.com>
3504 * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
3507 * string/endian.h: Add macros for fixed-size endian conversion.
3508 * bits/byteswap.h: Allow inclusion from <endian.h>.
3509 * sysdeps/i386/bits/byteswap.h: Likewise.
3510 * sysdeps/ia64/bits/byteswap.h: Likewise.
3511 * sysdeps/s390/bits/byteswap.h: Likewise.
3512 * sysdeps/x86_64/bits/byteswap.h: Likewise.
3513 * string/Makefile (tests): Add tst-endian.
3514 * string/tst-endian.c: New file.
3516 * iconvdata/run-iconv-test.sh: Use = instead of == in test.
3517 Patch by Reuben Thomas.
3519 2008-05-14 Joseph Myers <joseph@codesourcery.com>
3521 * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
3523 2008-05-14 Ulrich Drepper <drepper@redhat.com>
3525 * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
3528 * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
3530 (BODY for __gconv_transform_internal_ascii): Likewise.
3533 * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
3534 to be treated like link-local addresses.
3535 (match_prefix): Don't treat IPv4 loopback address special when
3536 converting to v4 mapped addressed.
3538 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
3540 * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
3541 * posix/tst-rfc3484-2.c: Likewise.
3542 * posix/tst-rfc3484-3.c: Likewise.
3544 * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
3547 * nss/getent.c (ahosts_keys_int): Handle all known socket types.
3549 * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
3551 * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
3553 2008-05-13 Ulrich Drepper <drepper@redhat.com>
3555 * po/lt.po: New file. From Lituanian translation team.
3557 2008-01-30 Alexandre Oliva <aoliva@redhat.com>
3559 Introduce TLS descriptors for i386 and x86_64.
3560 * include/inline-hashtab.h: New file, copied from 2005's
3561 libiberty, with fix for memory leak imported afterwards by
3562 Glauber de Oliveira Costa.
3563 * elf/tlsdeschtab.h: New file.
3564 * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
3565 (_dl_allocate_static_tls): ... here. Rearrange failure path.
3566 (CHECK_STATIC_TLS): Move to...
3567 * elf/dynamic-link.h: ... this file.
3568 (TRY_STATIC_TLS): New macro.
3569 * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
3570 * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
3571 R_386_TLS_DESC): Define.
3572 (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
3574 (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
3575 R_X86_64_TLSDESC): Define.
3576 (R_386_NUM, R_X86_64_NUM): Adjust.
3577 * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
3578 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
3579 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3580 * sysdeps/i386/dl-lookupcfg.h: New file. Introduce _dl_unmap to
3581 release tlsdesc_table.
3582 * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
3583 (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
3584 (elf_machine_rel): Handle R_386_TLS_DESC.
3585 (elf_machine_rela): Likewise.
3586 (elf_machine_lazy_rel): Likewise.
3587 (elf_machine_lazy_rela): Likewise.
3588 * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
3589 * sysdeps/i386/dl-tlsdesc.S: New file.
3590 * sysdeps/i386/dl-tlsdesc.h: New file.
3591 * sysdeps/i386/tlsdesc.c: New file.
3592 * sysdeps/i386/tlsdesc.sym: New file.
3593 * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
3595 * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
3596 sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
3597 (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
3598 * sysdeps/x86_64/dl-lookupcfg.h: New file. Introduce _dl_unmap to
3599 release tlsdesc_table.
3600 * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
3601 (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
3602 (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
3603 (elf_machine_rel): Handle R_X86_64_TLSDESC.
3604 (elf_machine_rela): Likewise.
3605 (elf_machine_lazy_rel): Likewise.
3606 * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
3607 (__tls_get_addr): Do not declare for non-shared compiles.
3608 * sysdeps/x86_64/dl-tlsdesc.S: New file.
3609 * sysdeps/x86_64/dl-tlsdesc.h: New file.
3610 * sysdeps/x86_64/tlsdesc.c: New file.
3611 * sysdeps/x86_64/tlsdesc.sym: New file.
3612 * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
3613 tlsdesc_table for both 32- and 64-bit structs.
3615 2008-05-11 Ulrich Drepper <drepper@redhat.com>
3617 * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
3618 its own function. This reduces the frame setup costs and more.
3620 2008-02-11 Joseph Myers <joseph@codesourcery.com>
3623 * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
3624 * math/libm-test.inc (exp_test): Test 88.72269439697265625.
3626 2008-05-11 Ulrich Drepper <drepper@redhat.com>
3628 * io/openat.c (__openat_2): Also pass fd to __openat.
3629 * io/openat64.c (__openat64_2): Also pass fd to __openat64.
3630 Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
3632 * string/tester.c (test_memcmp): Add a few more tests.
3633 Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
3635 2008-05-10 Ulrich Drepper <drepper@redhat.com>
3637 * nscd/cache.c (cache_add): Before returning with failure and this
3638 is the first use of the record, mark it as unusable.
3639 * nscd/aicache.c: Don't touch the dataset after cache_add returns
3640 reporting a failure.
3641 * nscd/grpcache.c: Likewise
3642 * nscd/hstcache.c: Likewise.
3643 * nscd/initgrcache.c: Likewise.
3644 * nscd/pwdcache.c: Likewise.
3645 * nscd/servicescache.c: Likewise.
3647 2008-05-10 Roland McGrath <roland@redhat.com>
3650 * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
3652 2008-05-08 David S. Miller <davem@davemloft.net>
3654 * misc/truncate64.c (truncate64): Use __truncate not truncate.
3656 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
3657 (__ieee754_y0l): Likewise.
3658 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
3659 (__ieee754_y1l): Likewise.
3660 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
3661 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
3662 frexpl and ldexpl. math_private.h provides them and the latter
3664 (__log1pl): Use __frexpl.
3666 2008-05-10 Ulrich Drepper <drepper@redhat.com>
3668 * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
3670 * include/arpa/nameser_compat.h: Define T_UNSPEC.
3671 * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
3672 (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
3673 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
3675 (_nss_nis_gethostbyname4_r): New function.
3676 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
3677 Change to also handle af==AF_UNSPEC.
3678 (get_tablename): New function. Use it to avoid duplication.
3679 (_nss_nisplus_gethostbyname4_r): New function.
3680 * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
3682 * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
3683 * nss/nss.h: Define struct gaih_addrtuple.
3684 * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
3686 (_nss_files_gethostbyname4_r): New function.
3687 * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
3688 * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
3690 * resolv/res_query.c (__libc_res_nquery): Take two additional
3691 parameters for second answer buffer. Handle type=T_UNSPEC to mean
3692 look up IPv4 and IPv6.
3694 * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
3695 for an additional query and answer buffer. Pass to send_vc and
3697 (send_vc): Send possibly two requests and receive two answers.
3698 (send_dg): Likewise.
3699 * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
3701 (_nss_dns_gethostbyname4_r): New function.
3702 (gaih_getanswer_slice): Likewise.
3703 (gaih_getanswer): Likewise.
3704 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
3705 __libc_res_nquery call.
3706 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
3707 (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
3708 * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
3711 2008-05-05 David S. Miller <davem@davemloft.net>
3713 * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
3714 * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
3716 2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3718 Fix termios bit macros.
3719 Move *DLY definitions where they belong, in termios.h.
3720 Add *[0-3] definitions.
3721 Fixes confusion between VT and FF.
3722 * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
3723 CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
3724 are already defined to avoid collision with termios.h.
3725 (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
3726 * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
3727 TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
3728 [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
3729 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
3730 TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
3731 VTDLY, VT0, VT1): New macros.
3732 [__USE_GNU] (OLCUC): Change value of macro.
3733 [__USE_XOPEN] (OFILL): New macro.
3734 [__USE_BSD] (CRTSCTS): Change value.
3735 (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
3736 [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
3737 (B7200, B14400, B28800, B76800): New macros.
3739 2008-05-01 David S. Miller <davem@davemloft.net>
3741 * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
3742 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
3743 (gen-as-const-headers): Add it.
3744 * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
3745 * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
3746 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
3747 * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
3749 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
3750 six system call parameters.
3751 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
3753 2008-04-30 Ulrich Drepper <drepper@redhat.com>
3755 * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
3757 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
3758 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
3760 2008-04-30 Jakub Jelinek <jakub@redhat.com>
3762 * stdlib/tst-setcontext.c: Include unistd.h.
3764 2008-04-25 David S. Miller <davem@davemloft.net>
3766 * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
3767 Pass "union semun" properly in to sys_ipc, it must be passed
3768 by value, not by reference.
3770 2008-04-22 Jakub Jelinek <jakub@redhat.com>
3772 * nscd/Makefile (nscd-cflags): Set back to -fpie.
3773 * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
3774 * nscd/connections.c (mem_in_flight): Likewise.
3776 * nscd/nscd.h (dbs): Make hidden.
3778 * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
3779 Avoid returning -1, return 0 instead.
3781 2008-04-19 Ulrich Drepper <drepper@redhat.com>
3783 * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
3785 2008-04-15 Ulrich Drepper <drepper@redhat.com>
3788 * sysdeps/unix/sysv/linux/times.c: New file.
3791 * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
3792 mem_in_flight_list variables. Add new parameter to mempool_alloc
3794 * nscd/mem.c (mempool_alloc): Take additional parameter. Initialize
3795 appropriate mem_in_flight element.
3796 (gc): Take allocations which have not yet been committed to the
3797 database into account.
3798 * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
3799 Reset mem_in_flight before returning.
3800 * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
3801 cue it up in mem_in_flight_list.
3802 * nscd/aicache.c: Adjust mempool_alloc call.
3803 * nscd/grpcache.c: Likewise.
3804 * nscd/hstcache.c: Likewise.
3805 * nscd/initgrcache.c: Likewise.
3806 * nscd/pwdcache.c: Likewise.
3807 * nscd/servicescache.c: Likewise.
3808 * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
3811 * nscd/connections.c (handle_request): Provide better error message
3812 in case SELinux forbids the service.
3814 * version.h (VERSION): Bump to 2.8.90.
3816 2008-04-17 Jakub Jelinek <jakub@redhat.com>
3818 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
3820 2008-04-11 Ulrich Drepper <drepper@redhat.com>
3822 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
3823 Also use for 32-bit.
3824 * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
3825 __nextafter instead of nextafter to avoid local PLT.
3826 * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
3827 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3829 * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
3831 * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
3833 * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. Include
3834 <fenv_libc.h> instead of <fenv.h>.
3835 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
3836 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
3838 * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
3840 * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
3841 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
3842 function from fegetexcept and make old name weak alias.
3843 * include/fenv.h: Declare __fegetexcept.
3844 * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
3846 * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
3847 * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
3849 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
3850 instead of frexpl to avoid local PLT.
3851 * math/s_significandl.c (__significandl): Use __ilogbl instead of
3852 ilogbl to avoid local PLT.
3853 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
3854 instead of ldexpl to avoid local PLT.
3855 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
3856 __roundl not roundl to avoid local PLT.
3857 * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
3858 local PLTs. Use __sincosl instead of separate sinl and cosl
3860 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3862 * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
3863 version for ppc64 to 2.4.21 since without it makecontext will fail.
3865 * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
3867 [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
3869 [__powerpc64__] (TLS_GD): Likewise.
3871 2007-11-20 Ryan S. Arnold <rsa@us.ibm.com>
3874 * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
3875 result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
3877 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3878 Likewise. Also account for when x is an odd number between 2^52
3880 * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
3881 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3882 * math/libm-test.inc (lround_test, llround_test): Added test cases to
3883 detect aforementioned erroneous conditions.
3885 2008-04-11 Jakub Jelinek <jakub@redhat.com>
3887 * configure.in: Check for -fno-section-anchors in addition to
3888 -fno-toplevel-reorder.
3890 2008-04-11 Ulrich Drepper <drepper@redhat.com>
3892 * include/features.h (__GLIBC_MINOR__): Bump to 8.
3894 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
3895 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
3896 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
3897 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3898 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3899 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3901 2008-04-11 Jakub Jelinek <jakub@redhat.com>
3904 * time/era.c: Transform __libc_setlocale_lock into rwlock.
3905 * time/alt_digit.c: Likewise.
3906 * wcsmbs/wcsmbsload.c: Likewise.
3908 2008-04-10 Ulrich Drepper <drepper@redhat.com>
3910 * version.h (VERSION): Bump to 2.8.
3912 * timzeone/asia: Update from tzdata2008b.
3913 * timezone/backward: Likewise.
3914 * timezone/europe: Likewise.
3915 * timezone/northamerica: Likewise.
3916 * timezone/southamerica: Likewise.
3917 * timezone/iso3166.tab: Likewise.
3918 * timezone/leapseconds: Likewise.
3919 * timezone/zone.tab: Likewise.
3920 * timezone/private.h: Update from tzcode2008a.
3921 * timezone/zdump.c: Likewise.
3922 * timezone/zic.c: Likewise.
3924 2008-01-24 Steven Munroe <sjmunroe@us.ibm.com>
3927 * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
3928 Define additonal Data Cache Block instruction macros.
3929 (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
3930 Replace dcbst with dcbf and sync with sync/isync.
3932 2008-02-21 Alan Modra <amodra@bigpond.net.au>
3934 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
3935 Always set ELF_RTYPE_CLASS_PLT.
3936 (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
3938 2008-04-03 Steven Munroe <sjmunroe@us.ibm.com>
3940 * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
3941 * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
3942 * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
3943 For ISA 2.01 and later replace mftb with mfspr 268.
3945 2008-02-19 Steven Munroe <sjmunroe@us.ibm.com>
3948 * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
3949 * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
3951 2008-02-18 Steven Munroe <sjmunroe@us.ibm.com>
3954 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
3955 * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
3956 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
3957 * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
3959 2008-04-10 Jakub Jelinek <jakub@redhat.com>
3961 * stdlib/tst-makecontext.c (othervar): New variable.
3962 (cf): Test sign extending the argument to long.
3964 2008-03-03 Steven Munroe <sjmunroe@us.ibm.com>
3966 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
3967 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
3968 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
3969 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
3970 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
3971 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
3972 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
3974 2008-02-22 Alan Modra <amodra@bigpond.net.au>
3976 * elf/Makefile (tests): Substitute tests-vis-yes here.
3977 (tests-vis-yes): Delete.
3978 (modules-name, modules-vis-yes): Similarly.
3980 2008-02-12 Pete Eberlein <eberlein@us.ibm.com>
3983 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
3984 Preserve sign in signgamp when x is zero.
3986 2007-10-26 Steven Munroe <sjmunroe@us.ibm.com>
3988 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
3989 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
3990 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
3991 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
3992 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
3993 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
3995 2008-04-09 Ulrich Drepper <drepper@redhat.com>
3998 * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
4002 * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
4003 a reserved error value.
4005 * stdlib/tst-makecontext.c: Change parameter to cf to negative
4006 value to check for correct sign extension.
4009 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
4010 Copy 64-bit parameter values even though this is not required in
4013 * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
4016 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
4018 * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
4021 2008-04-09 Jakub Jelinek <jakub@redhat.com>
4023 * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
4025 2008-04-09 Ulrich Drepper <drepper@redhat.com>
4028 * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
4029 in line-buffered stream failed.
4030 * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
4032 2008-04-08 Ulrich Drepper <drepper@redhat.com>
4035 * scripts/abi-versions.awk: If the version specified by
4036 --enable-oldest-abi is older than the first version for this
4037 architecture, use the default version.
4039 * locale/programs/ld-collate.c (collate_read): Ignore script lines
4040 as well when ignoring the whole category.
4042 2008-04-07 Ulrich Drepper <drepper@redhat.com>
4045 * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
4046 ETHERTYPE_* definitions.
4047 Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
4049 2008-04-07 Jakub Jelinek <jakub@redhat.com>
4051 * stdlib/mbtowc.c (__no_r_state): Remove.
4052 (mbtowc): New static state variable. Use it instead of
4054 * stdlib/wctomb.c (__no_r_state): Remove extern decl.
4055 (__wctomb_state): New hidden variable.
4056 (wctomb): Use __wctomb_state instead of __no_r_state.
4057 * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
4058 (__wctomb_state): New extern decl.
4059 (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
4061 2008-04-07 Ulrich Drepper <drepper@redhat.com>
4064 * resolv/res_init.c: Handle scope IDs in resolv.conf.
4066 2008-04-07 Jakub Jelinek <jakub@redhat.com>
4068 * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
4070 2008-04-06 Ulrich Drepper <drepper@redhat.com>
4072 * po/nl.po: Update from translation team.
4074 2008-03-31 Ulrich Drepper <drepper@redhat.com>
4077 * string/strfry.c: Handle empty strings again.
4079 2008-03-30 Ulrich Drepper <drepper@redhat.com>
4082 * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
4083 before looking for translation.
4084 * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
4085 * locale/freelocale.c: Likewise.
4086 * locale/newlocale.c: Likewise.
4087 * locale/setlocale.c: Likewise.
4088 Based partially on a patch by ryo@np.css.fujitsu.com.
4090 2008-03-30 Jakub Jelinek <jakub@redhat.com>
4092 * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
4093 acquiring wrlock. Do conv_tab allocation while holding lock.
4094 * intl/Makefile: Add rules to build and run tst-gettext6.
4095 * intl/tst-gettext6.c: New test.
4096 * intl/tst-gettext6.sh: New file.
4098 2008-03-30 Ulrich Drepper <drepper@redhat.com>
4100 * po/nl.po: Update from translation team.
4102 * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
4103 provided through st_blksize, try the default size before giving up.
4105 2008-03-29 Ulrich Drepper <drepper@redhat.com>
4107 * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
4110 * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
4112 * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
4113 error message. POSIX today does not require the messages to be in
4114 a specific form. Suggested by Jim Meyering <jim@meyering.net>.
4117 * sunrpc/auth_unix.c: Unify printed strings.
4118 * sunrpc/clnt_tcp.c: Likewise.
4119 * sunrpc/clnt_udp.c: Likewise.
4120 * sunrpc/clnt_unix.c: Likewise.
4121 * sunrpc/svc_tcp.c: Likewise.
4122 * sunrpc/svc_udp.c: Likewise.
4123 * sunrpc/svc_unix.c: Likewise.
4124 * sunrpc/xdr.c: Likewise.
4125 * sunrpc/xdr_array.c: Likewise.
4126 * sunrpc/xdr_rec.c: Likewise.
4127 * sunrpc/xdr_ref.c: Likewise.
4128 * locale/programs/ld-time.c (time_finish): Unify messages.
4129 * locale/programs/locfile.c (handle_copy): Fix typo.
4130 * nscd/nscd.c (options): Fix typo.
4133 * stdlib/strtod_l.c: Use correct sign for result in one more
4135 Patch by Eric Blake <ebb9@byu.net>.
4137 2008-03-27 Jakub Jelinek <jakub@redhat.com>
4139 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
4140 and creat system calls.
4141 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
4143 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
4145 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
4146 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4147 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4149 2008-03-27 Ulrich Drepper <drepper@redhat.com>
4151 * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
4152 <linux/limits.h> has defined it.
4153 * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
4154 ARG_MAX value and prevent ARG_MAX from being defined by the kernel
4156 * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
4157 it instead of ARG_MAX.
4159 2008-03-25 Jakub Jelinek <jakub@redhat.com>
4161 * posix/gai.conf: Fix comment for scope nullbits.
4162 * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
4163 default to 128 bits for v4 mapped addresses.
4165 2008-03-07 Martin Schwidefsky <schwidefsky@de.ibm.com>
4167 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
4168 ptrace call to get the ieee_instruction_pointer from the kernel.
4169 * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
4170 ptrace call to set the ieee_instructtion_pointer.
4171 * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
4172 Add comment that ieee_instruction_pointer is always 0.
4174 2008-03-09 Andreas Jaeger <aj@suse.de>
4177 * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
4178 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
4179 Patch by Mark Elliott <mark.h.elliott@lmco.com>.
4181 * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
4182 (rint_test): Likewise.
4184 2008-03-24 Ulrich Drepper <drepper@redhat.com>
4186 * nis/nis_call.c (nis_server_cache_search): Save errno around stat
4188 (__nisfind_server): Similar for open readColdStartFile call.
4189 Patch partially by Jim Meyering.
4190 * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
4191 around internal_setent call.
4193 * po/vi.po: New Vietnamese translation.
4195 * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
4198 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
4199 remove CLONE_STOPPED.
4201 2008-02-10 Jim Meyering <meyering@redhat.com>
4203 Remove useless "if" before "free":
4204 * elf/ldconfig.c (parse_conf_include): Likewise.
4205 * gmon/gmon.c (weak_alias): Likewise.
4206 * iconv/gconv_conf.c (__gconv_get_path): Likewise.
4207 * inet/rcmd.c (__validuser2_sa): Likewise.
4208 * intl/bindtextdom.c (set_binding_values): Likewise.
4209 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
4210 * libio/genops.c (save_for_backup): Likewise.
4211 * libio/wgenops.c (save_for_wbackup): Likewise.
4212 * locale/programs/ld-collate.c (collate_read): Likewise.
4213 * locale/programs/linereader.c (get_string): Likewise.
4214 * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
4215 * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
4216 * resolv/res_debug.c (do_section): Likewise.
4217 * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
4218 * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
4219 * sysdeps/posix/sprofil.c (__sprofil): Likewise.
4220 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
4221 * time/tzset.c (tzset_internal): Likewise.
4223 2008-03-18 Jakub Jelinek <jakub@redhat.com>
4225 * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
4228 2008-03-11 Ulrich Drepper <drepper@redhat.com>
4231 * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
4232 not stream for output file. Open output file here.
4233 * iconv/iconv_prog.c (process_lock): Take pointer to output stream
4234 and output file name.
4235 (process_fd): Likewise.
4236 (process_file): Likewise.
4237 (main): Adjust callers of changed functions.
4238 * iconv/iconv_prog.h: Adjust prototype.
4240 2008-03-09 Andreas Jaeger <aj@suse.de>
4243 * sysdeps/ia64/ieee754.h: Use protected namespace
4244 __BIG_ENDIAN/__LITTLE_ENDIAN.
4245 * sysdeps/ieee754/ieee754.h: Likewise.
4246 Patch by Aurelien Jarno <aurelien@aurel32.net>.
4248 2008-03-08 Roland McGrath <roland@frob.com>
4250 * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
4251 ignore a signal that came from a machine exception, treat it as a
4252 fatal core-dump signal instead.
4253 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4255 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
4256 Clear DF bit in thread state's eflags.
4257 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4259 2008-03-08 Ulrich Drepper <drepper@redhat.com>
4262 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
4263 of NAN(...) sequence.
4264 * stdlib/Makefile (tests): Add tst-strtod6.
4265 * stdlib/tst-strtod6.c: New file.
4267 * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
4270 * posix/getopt.c (_getopt_internal_r): Clarify error message by
4271 putting offending option character in quotes. Clean up error
4273 * po/be.po: Adjust msgstr in translation file.
4274 * po/bg.po: Likewise.
4275 * po/ca.po: Likewise.
4276 * po/cs.po: Likewise.
4277 * po/da.po: Likewise.
4278 * po/de.po: Likewise.
4279 * po/es.po: Likewise.
4280 * po/fr.po: Likewise.
4281 * po/hr.po: Likewise.
4282 * po/ko.po: Likewise.
4283 * po/nl.po: Likewise.
4284 * po/rw.po: Likewise.
4285 * po/sk.po: Likewise.
4286 * po/sv.po: Likewise.
4287 * po/tr.po: Likewise.
4288 * po/zh_CN.po: Likewise.
4289 * po/zh_TW.po: Likewise.
4292 * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
4293 Patch by Roland Bless <roland@bless.de>.
4295 * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
4297 * elf/Makefile (routines): Add dl-sysdep.
4298 (elide-routines.os): Likewise.
4300 2008-03-07 Ulrich Drepper <drepper@redhat.com>
4303 * elf/dl-sysdep.c: Undefine ROUND after use.
4304 * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
4305 (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
4306 * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
4307 * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
4309 * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
4310 * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
4312 * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
4314 * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
4315 _dl_tls_get_addr_soft element.
4316 * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
4317 * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
4318 * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
4320 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
4321 * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
4322 of internal_function.
4324 * stdlib/Makefile (aux): Add tens_in_limb.
4325 * stdlib/strtod_l.c: Move _tens_in_limb definition to...
4326 * stdlib/tens_in_limb.c: ...here. New file.
4329 * sysdeps/unix/sysv/linux/pathconf.h: Declare
4330 __statfs_chown_restricted.
4331 * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
4332 for _PC_CHOWN_RESTRICTED.
4333 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
4334 Implement __statfs_chown_restricted.
4335 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
4336 _POSIX_CHOWN_RESTRICTED value to zero.
4337 * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
4340 * sysdeps/x86_64/rtld-memset.c: New file.
4342 2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
4344 * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
4346 * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
4347 Barcelona machine. Make default fall through branch of
4348 __x86_64_preferred_memory_instruction check as the integer code path.
4350 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
4352 * sysdeps/x86_64/cacheinfo.c
4353 (__x86_64_preferred_memory_instruction): New variable.
4354 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
4356 * sysdeps/x86_64/memset.S: Rewrite.
4358 2008-03-04 Jakub Jelinek <jakub@redhat.com>
4360 * include/stdio.h (__asprintf_chk, __dprintf_chk,
4361 __obstack_printf_chk): New prototypes.
4362 (__vasprintf_chk, __vdprintf_chk,
4363 __obstack_vprintf_chk): Likewise.
4364 Add libc_hidden_proto.
4366 (_IO_obstack_jumps): No longer static, add attribute_hidden.
4367 * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
4368 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
4369 __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
4370 * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
4371 __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
4372 __obstack_vprintf_chk): New prototypes.
4373 (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
4374 obstack_vprintf): New inlines.
4375 * debug/dprintf_chk.c: New file.
4376 * debug/vdprintf_chk.c: New file.
4377 * debug/asprintf_chk.c: New file.
4378 * debug/vasprintf_chk.c: New file.
4379 * debug/obprintf_chk.c: New file.
4380 * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
4381 * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
4382 __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
4384 * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
4385 vdprintf_chk and obprintf_chk, set CFLAGS for them.
4386 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
4387 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
4389 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
4390 __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
4391 * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
4392 __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
4393 __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
4395 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
4396 vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
4397 obstack_vprintf_chk.
4398 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
4399 * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
4400 * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
4401 * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
4402 * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
4403 * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
4405 2008-03-04 Ulrich Drepper <drepper@redhat.com>
4408 * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
4409 Patch by Roy Marples <roy@marples.name>.
4412 * malloc/malloc.c: Fix typo in comment.
4415 * locale/iso-639.def: Add Shuswap.
4417 2008-02-25 Jakub Jelinek <jakub@redhat.com>
4420 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
4421 overwrite *h_errnop/*errnop values from getanswer_r in case of
4424 2008-03-03 Ulrich Drepper <drepper@redhat.com>
4427 * nscd/connections.c (dbs): Add initializers for .suggested_module.
4428 (verify_persistent_db): Remove one unnecessary test and add a new one
4429 for bad configuration.
4430 (nscd_init): Improve error reported when persistent database cannot
4432 * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
4433 * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
4434 .suggested_module and .max_db_size and case config file says the
4436 * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
4439 * nis/ypclnt.c (yp_order): Fix handling of return value of
4441 Patch by Jeff Moyer <jmoyer@redhat.com>.
4443 * po/fr.po: Update from translation team.
4445 2008-02-22 Andreas Jaeger <aj@suse.de>,
4446 Carlos O'Donell <carlos@systemhalted.org>
4449 * FAQ.in: Describe why glibc needs to be compiled with
4452 2008-02-19 Roland McGrath <roland@redhat.com>
4454 * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
4456 2008-02-15 Ulrich Drepper <drepper@redhat.com>
4459 * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
4460 __USE_MISC is defined.
4462 2008-02-10 Ulrich Drepper <drepper@redhat.com>
4464 * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
4465 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
4467 * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
4468 timerfd_gettime, timerfd_settime.
4469 * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
4470 timerfd_gettime, timerfd_settime for GLIBC_2.8.
4472 2008-02-08 Roland McGrath <roland@redhat.com>
4474 * elf/elf.h (NT_PPC_SPE): New macro.
4476 2008-02-06 Roland McGrath <roland@redhat.com>
4478 * Makerules ($(common-objpfx)sysd-rules):
4479 Depend on $(sysdep-makeconfigs).
4481 2008-01-31 Roland McGrath <roland@redhat.com>
4484 * configure.in: Use -print-file-name if it yields a directory,
4485 for each of include and include-fixed.
4486 * configure: Regenerated.
4488 * Makeconfig (sysd-rules-targets): New variable.
4489 * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
4490 * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
4492 2008-01-30 Roland McGrath <roland@redhat.com>
4494 * manual/libc.texinfo: Update back-cover text.
4496 * elf/elf.h (NT_386_TLS): New macro.
4498 2008-01-29 Roland McGrath <roland@redhat.com>
4500 * Makeconfig (sysd-rules-patterns): New variable.
4501 * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
4502 (check-inhibit-asm): New canned sequence, replaces ...
4503 (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
4504 * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
4505 (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
4506 (CFLAGS-rtld): Variable removed.
4508 2008-01-24 Roland McGrath <roland@redhat.com>
4510 * configure.in: Let configure fragments set base_os.
4511 * configure: Regenerated.
4513 2008-01-22 Ulrich Drepper <drepper@redhat.com>
4515 * po/ko.po: Update from translation team.
4517 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
4519 * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
4521 2008-01-12 Andreas Jaeger <aj@suse.de>
4524 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
4527 2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
4529 * hurd/hurdsock.c (_hurd_socket_server): Return the standard
4530 error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
4531 * sunrpc/bindrsvprt.c (bindresvport): Likewise.
4533 2007-10-23 Alexandre Oliva <aoliva@redhat.com>
4535 * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
4536 * elf/dl-close.c (_dl_close): Check for it.
4537 * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
4538 (_dl_allocate_static_tls): Likewise.
4539 * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
4540 (__tls_get_addr): Protect from race conditions in setting l_tls_offset
4542 * elf/tst-tls16.c: New file.
4543 * elf/tst-tlsmod16a.c: New file.
4544 * elf/tst-tlsmod16b.c: New file.
4545 * elf/Makefile: Add rules to build and run tst-tls16.
4547 2008-01-16 Ulrich Drepper <drepper@redhat.com>
4550 * bits/shm.h: Fix comment describing shmid_ds.
4551 * sysdeps/gnu/bits/shm.h: Likewise.
4552 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
4553 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
4554 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
4555 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
4556 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
4557 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
4558 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
4559 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
4560 Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
4563 * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
4565 * conform/data/limits.h-data: Adjust limits changed in v6 and add
4566 additional suffixes.
4567 * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
4568 Add optional functions mq_timedreceive and mq_timedsend.
4569 * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
4570 * conform/data/pthread.h-data: Fix prototype of
4571 pthread_condattr_setclock. pthread_sigmask is not required in v6.
4572 * conform/data/semaphore.h-data: Allow time.h definitions.
4573 * conform/data/signal.h-data: Likewise.
4574 * conform/data/stdio.h-data: getw and putw are not required in v6.
4575 * conform/data/stdlib.h-data: Change setstate prototype.
4576 * conform/data/string.h-data: Fix strerror_r prototype.
4577 * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
4578 * conform/data/unistd.h-data: pthread_atfork not required in v6.
4579 Fix readlink prototype.
4580 * conform/data/netinet/in.h-data: Add const to in6addr_any and
4582 * inet/netinet/in.h: Cleanup namespace.
4583 * posix/regex.h: Likewise.
4584 * resolv/netdb.h: Likewise.
4585 * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
4586 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4587 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
4588 * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
4589 of names of in in6_addr.
4590 (default_precedence): Likewise.
4591 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
4594 2008-01-15 Ulrich Drepper <drepper@redhat.com>
4596 * conform/data/fmtmsg.h-data: Add missing allows.
4597 * conform/data/ftw.h-data: Likewise.
4598 * conform/data/inttypes.h-data: Likewise.
4599 * conform/data/math.h-data: Likewise.
4600 * conform/data/signal.h-data: Likewise.
4601 * conform/data/net/if.h-data: Likewise.
4602 * conform/data/netinet/in.h-data: Likewise.
4603 * conform/data/sys/socket.h-data: Likewise.
4606 * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
4607 (__strtok_r): Simplify.
4608 * string/tester.c (test_strtok_r): Add test case for futile search
4609 with single-character seach string.
4611 2008-01-12 Ulrich Drepper <drepper@redhat.com>
4613 * po/ko.po: Update from translation team.
4615 2008-01-11 Andreas Jaeger <aj@suse.de>
4618 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
4619 signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
4622 2008-01-10 Ulrich Drepper <drepper@redhat.com>
4624 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
4625 native interface lookup in all the relevant places.
4627 2008-01-10 Jakub Jelinek <jakub@redhat.com>
4628 Ulrich Drepper <drepper@redhat.com>
4630 * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
4631 field. Use sockaddr_in6 for source_addr.
4632 (get_scope): Change type of parameter to sockaddr_in6. Adjust.
4633 (match_prefix): Likewise.
4634 (get_label): Likewise.
4635 (get_precedence): Likewise.
4636 (rfc3484_sort): Change to use indirect access to results array.
4637 Adjust to use of sockaddr_in6. Replace service_order test with
4638 simple index comparison.
4639 (getaddrinfo): Define order array. Initialize it. Don't initialize
4640 service_order field. Adjust qsort_t calls. Access sorted result
4641 array indirectly through order array.
4642 * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
4643 * posix/tst-rfc3484-2.c: Likewise.
4644 * posix/tst-rfc3484-3.c: Likewise.
4646 2008-01-09 Ulrich Drepper <drepper@redhat.com>
4649 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
4651 Patch by André Cruz.
4654 * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
4655 (clnt_spcreateerror): Likewise.
4658 * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
4659 (public_mEMALIGn): Likewise.
4660 Patch mostly by Daniel Jacobowitz.
4662 2008-01-09 Jakub Jelinek <jakub@redhat.com>
4664 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
4665 clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
4666 * stdlib/Makefile: Add rules to build and run tst-makecontext2.
4667 * stdlib/tst-makecontext2.c: New test.
4669 2008-01-08 Jakub Jelinek <jakub@redhat.com>
4671 * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
4673 (REINIT_PARAMS): Likewise. Undefine before end of file.
4674 (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
4675 transliteration hooks and REINIT_PARAMS afterwards.
4676 * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
4678 (REINIT_PARAMS): Define.
4679 * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
4680 * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
4681 * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
4682 * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
4683 * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
4684 * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
4685 * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
4686 * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
4687 * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
4688 * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
4689 * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
4690 * iconvdata/tst-iconv7.c: New test.
4692 2008-01-07 Ulrich Drepper <drepper@redhat.com>
4694 * libio/stdio.h (vscanf): Fix definition for loser compilers.
4696 2008-01-05 Jakub Jelinek <jakub@redhat.com>
4699 * nscd/connections.c (restart): Fix condition.
4701 2008-01-03 Jakub Jelinek <jakub@redhat.com>
4703 * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
4704 __ctype_toupper_loc): Add __THROW.
4706 2008-01-02 Ulrich Drepper <drepper@redhat.com>
4708 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
4709 recognition of interface family.
4711 * posix/getconf.c: Update copyright year.
4712 * nss/getent.c: Likewise.
4713 * iconv/iconvconfig.c: Likewise.
4714 * iconv/iconv_prog.c: Likewise.
4715 * elf/ldconfig.c: Likewise.
4716 * catgets/gencat.c: Likewise.
4717 * csu/version.c: Likewise.
4718 * elf/ldd.bash.in: Likewise.
4719 * elf/sprof.c (print_version): Likewise.
4720 * locale/programs/locale.c: Likewise.
4721 * locale/programs/localedef.c: Likewise.
4722 * nscd/nscd.c (print_version): Likewise.
4723 * debug/xtrace.sh: Likewise.
4724 * malloc/memusage.sh: Likewise.
4725 * malloc/mtrace.pl: Likewise.
4726 * debug/catchsegv.sh: Likewise.
4728 2007-12-26 Ulrich Drepper <drepper@redhat.com>
4730 * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
4733 2007-12-23 Ulrich Drepper <drepper@redhat.com>
4735 * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
4736 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4738 2007-12-17 Roland McGrath <roland@redhat.com>
4740 * inet/ether_line.c (ether_line): Remove unused variable.
4742 2007-12-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
4744 * login/forkpty.c (forkpty): Add const qualifier to parameters termp
4746 * login/openpty.c (openpty): Likewise.
4747 * login/pty.h (openpty, forkpty): Likewise.
4748 * manual/terminal.texi (openpty, forkpty): Likewise.
4750 2007-12-17 Ulrich Drepper <drepper@redhat.com>
4752 * malloc/malloc.c (public_cALLOc): For arenas other than
4753 main_arena, count all bytes inside the mprotect_size range of the
4754 heap as uninitialized.
4756 2007-12-16 Ulrich Drepper <drepper@redhat.com>
4758 * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
4761 * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
4762 mTRIm for all of them.
4763 (mTRIm): Additionally iterate over all free blocks and use madvise
4764 to free memory for all those blocks which contain at least one
4766 * malloc/tst-trim1.c: New file.
4767 * malloc/Makefile (tests): Add tst-trim1.
4769 * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
4771 2007-12-14 Ulrich Drepper <drepper@redhat.com>
4773 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
4774 First cast argument to long
4775 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
4777 (__vdso_clock_gettime): Likewise.
4778 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
4781 2007-12-13 Ulrich Drepper <drepper@redhat.com>
4783 * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
4784 * locale/nl_langinfo_l.c: Real implementation, copied from
4786 * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
4788 2007-12-01 Jim Meyering <meyering@redhat.com>
4790 * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
4791 that would inhibit utf8-optimization of a regexp containing line-
4792 or buffer-anchors, e.g., `^', `$'.
4794 2007-12-12 Ulrich Drepper <drepper@redhat.com>
4796 * time/bug-getdate1.c (do_test): Don't use century values which
4797 aren't valid on 32-bit systems.
4799 2007-12-12 Jakub Jelinek <jakub@redhat.com>
4801 * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
4802 (memmove): Rename to __memmove_g, with __asm__ ("memmove").
4803 * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
4804 __strcat_g, __strncat_g): Add __asm__.
4806 2007-12-12 Ulrich Drepper <drepper@redhat.com>
4809 * io/fchmodat.c: Fix typo in stub_warning use.
4810 Patch by Petr Salinger.
4812 2007-12-11 Ulrich Drepper <drepper@redhat.com>
4814 * iconvdata/hp-thai8.c: New file.
4815 * iconvdata/Makefile: Add rules for hp-thai8.c.
4816 * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
4817 * iconvdata/gconv-modules: Likewise.
4820 * iconvdata/hp-greek8.c: New file.
4821 * iconvdata/Makefile: Add rules for hp-greek8.c.
4822 * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
4823 * iconvdata/gconv-modules: Likewise.
4826 * iconvdata/hp-turkish8.c: New file.
4827 * iconvdata/Makefile: Add rules for hp-turkish8.c.
4828 * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
4829 * iconvdata/gconv-modules: Likewise.
4831 * malloc/arena.c (grow_heap): Split out code to shrink heap into...
4832 (shrink_heap): ... this new function.
4833 (heap_trim): Call shrink_heap instead of grow_heap.
4835 * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
4836 case don't call alloc_perturb.
4838 2007-12-10 Ulrich Drepper <drepper@redhat.com>
4840 * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
4842 * sysdeps/unix/sysv/linux/kernel-features.h
4843 (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
4844 * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
4846 2007-12-08 Ulrich Drepper <drepper@redhat.com>
4849 * stdio-common/vfprintf.c: Do not overflow when adding to done.
4850 * stdio-common/Makefile (tests): Add bug22.
4851 * stdio-common/bug22.c: New file.
4854 * time/getdate.c: Fix filling in default values.
4855 * time/bug-getdate1.c: New file.
4856 * time/Makefile: Add rules to build and run bug-getdate1.
4858 * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
4859 * iconvdata/ebcdic-es.c: Likewise.
4860 * iconvdata/ebcdic-es-a.c: Likewise.
4861 * iconvdata/ebcdic-uk.c: Likewise.
4862 * iconvdata/iso8859-16.c: Likewise.
4863 * iconvdata/viscii.c: Likewise.
4864 * iconvdata/iso8859-9e.c: Likewise.
4865 * iconvdata/Makefile: Adjust appropriately.
4868 * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
4871 2007-12-07 Ulrich Drepper <drepper@redhat.com>
4874 * iconvdata/hp-roman9.c: New file.
4875 * iconvdata/Makefile: Add rules for hp-roman9.c.
4876 * iconvdata/tst-tables.sh: Add HP-ROMAN9.
4877 * iconvdata/gconv-modules: Likewise.
4879 * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
4880 * iconvdata/Makefile: Adjust appropriately.
4883 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
4884 structure, it's allocated with alloca.
4885 * stdio-common/Makefile (tests): Add bug21.
4886 * stdio-common/bug21.c: New file.
4888 2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
4891 * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
4892 keyword for gcc's braced-groups.
4894 2007-12-07 Ulrich Drepper <drepper@redhat.com>
4897 * inet/ether_line.c: Strip hostname of whitespaces.
4898 * inet/Makefile (tests): Add tst-ether_line.
4899 * inet/tst-ether_line.c: New file.
4901 2007-12-03 Ulrich Drepper <drepper@redhat.com>
4904 * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
4907 * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
4909 * stdlib/tst-setcontext.c: Catch the case where the links gets
4910 messed up and we do not reach main again.
4912 * po/ca.po: Update from translation team.
4914 2007-11-26 Ulrich Drepper <drepper@redhat.com>
4916 * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
4917 * posix/regex.h (REG_ENOSYS): Likewise.
4918 * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
4920 2007-11-25 Ulrich Drepper <drepper@redhat.com>
4922 * nscd/nscd.h (MAX_STACK_USE): Define.
4923 * nscd/mem.c (MAX_STACK_USE): Remove definition here.
4924 (gc): Initialize stack_used based on allocation in prune_cache.
4925 * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
4926 Clear array before use.
4928 * nscd/aicache.c (addhstaiX): Update statistics counter in case
4929 memory allocation failed.
4930 * nscd/hstcache.c (cache_addhst): Likewise.
4931 * nscd/grpcache.c (cache_addgr): Likewise.
4932 * nscd/servicescache.c (cache_addserv): Likewise.
4933 * nscd/pwdcache.c (cache_addpw): Likewise.
4934 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4936 2007-11-23 Ulrich Drepper <drepper@redhat.com>
4938 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
4939 and creat system calls.
4941 * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
4943 2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
4945 * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
4947 * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
4948 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
4950 * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
4951 * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
4952 * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
4954 2007-11-22 Martin Schwidefsky <schwidefsky@de.ibm.com>
4956 * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
4957 strncat): Define as macros to avoid compile errors.
4959 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open and
4962 2007-11-22 Ulrich Drepper <drepper@redhat.com>
4965 * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
4966 * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
4967 * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
4969 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4971 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
4972 Return zero in case the thread library is not NPTL.
4975 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
4976 initializing interface list.
4979 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
4980 use result of nss_getgrgid_r if nothing was found. For other
4981 error return with a failure.
4982 Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4984 * locale/programs/ld-collate.c (collate_read): Fix loop to match
4987 2007-11-19 Ulrich Drepper <drepper@redhat.com>
4989 * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
4990 (get_scope): For IPv4 scope, use scopes table.
4991 (fini): Free scopes table if necessary.
4992 (free_scopelist): New function.
4993 (scopecmp): New function.
4994 (gaiconf_init): Also handle scopev4 entries.
4995 * posix/tst-rfc3484.c (do_test): Initialize scopes.
4996 * posix/tst-rfc3484-2.c (do_test): Likewise.
4997 * posix/gai.conf: Document scopev4 defaults.
4998 * posix/Makefile (tests): Add tst-rfc3484-3.
4999 * posix/tst-rfc3484-3.c: New file.
5001 * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
5003 * posix/gai.conf: Update for current default tables.
5005 2007-11-19 Ulrich Drepper <drepper@redhat.com>
5007 * po/tr.po: Update from translation team.
5009 2007-11-18 Roland McGrath <roland@frob.com>
5011 * manual/arith.texi (Remainder Functions): Spelling fix.
5012 From Shaun Silk <genix@mysoul.com.au>.
5014 * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
5016 2007-11-17 Ulrich Drepper <drepper@redhat.com>
5018 * po/zh_CN.po: Update from translation team.
5020 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
5021 Add sys/signalfd.h and sys/eventfd.h.
5023 2007-11-15 Bruno Haible <bruno@clisp.org>
5026 * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
5028 (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
5029 (DCIGETTEXT): Change the allocation of the 'search' variable so that
5030 it needs only fixed stack space. Delay the initialization of
5031 msgid_len until it is needed.
5033 2007-11-15 Andreas Jaeger <aj@suse.de>
5035 * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
5036 Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
5038 2007-11-15 Ulrich Drepper <drepper@redhat.com>
5040 * po/ko.po: Update from translation team.
5042 2007-11-14 Ulrich Drepper <drepper@redhat.com>
5044 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
5045 significantly. The device type is also part of the ifinfomsg data.
5047 * po/sv.po: Update from translation team.
5048 * po/nl.po: Likewise.
5050 * nscd/cache.c (prune_cache): If cache is empty, instruct caller
5051 to wake up in 24 hours.
5053 * nscd/gai.c (__ioctl): Define. Include check_native.c.
5055 2007-11-13 Ulrich Drepper <drepper@redhat.com>
5057 * po/cs.po: Update from translation team.
5058 * po/pl.po: Likewise.
5060 * include/ifaddrs.h: Remove in6ai_temporary.
5061 (struct in6addrinfo): Add index element.
5062 Declare __check_native.
5063 * inet/Makefile (aux): Add check_native.
5064 * sysdeps/unix/sysv/linux/check_native.c: New file.
5065 * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
5066 IFA_F_TEMPORARY. Pass back ifa_index.
5067 * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
5068 (rfc3484_sort): Add new parameter. Implement rule 7 correctly:
5069 call __check_native if necessary.
5070 (getaddrinfo): Fill in index field. Use qsort_r instead of qsort
5071 to sort addresses. Pass information about the results.
5072 * posix/tst-rfc3484.c: Adjust for addition of index field and change
5073 of rfc3484_sort interface.
5074 * posix/tst-rfc3484-2.c: Likewise.
5076 * stdlib/stdlib.h: Define __compar_d_fn_t. Declare qsort_r.
5077 * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
5079 * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
5080 (qsort_r): Renamed from qsort. Take additional parameter and pass it
5081 on as third parameter to compare function and _quicksort.
5082 * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
5083 to the compare function.
5084 * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
5085 * Versions.def: Add GLIBC_2.8 for libc.
5087 * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
5088 * posix/tst-rfc3484-2.c: Likewise.
5090 * include/kernel-features.h: Moved to...
5091 * sysdeps/mach/hurd/kernel-features.h: ...here.
5093 2007-09-13 H.J. Lu <hongjiu.lu@intel.com>
5095 * sysdeps/i386/i586/memcpy_chk.S: New file.
5096 * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
5097 * sysdeps/i386/i586/memset_chk.S: Likewise.
5099 2007-11-12 Ulrich Drepper <drepper@redhat.com>
5101 * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
5102 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
5103 list of interfaces. Also store prefix length.
5104 * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
5105 (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
5106 prefix if source and destination address are in the same subnet.
5107 (getaddrinfo): Always call __check_pf. Fill in prefixlen field.
5108 Always look for matching record in in6ai list.
5109 Correct source_addr_len value for IPv6->IPv4 converted records.
5111 2007-11-11 Roland McGrath <roland@frob.com>
5113 * include/kernel-features.h: New file.
5115 2007-11-10 Ulrich Drepper <drepper@redhat.com>
5117 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
5118 complications for 64-bit platforms.
5120 * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
5121 * sysdeps/unix/sysv/linux/open64_2.c: ...here. New file.
5122 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
5124 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
5126 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5127 * sysdeps/wordsize-64/alphasort.c: New file.
5128 * sysdeps/wordsize-64/alphasort64.c: New file.
5129 * sysdeps/wordsize-64/fseeko.c: New file.
5130 * sysdeps/wordsize-64/fseeko64.c: New file.
5131 * sysdeps/wordsize-64/ftello.c: New file.
5132 * sysdeps/wordsize-64/ftello64.c: New file.
5133 * sysdeps/wordsize-64/ftw.c: New file.
5134 * sysdeps/wordsize-64/ftw64.c: New file.
5135 * sysdeps/wordsize-64/iofgetpos.c: New file.
5136 * sysdeps/wordsize-64/iofgetpos64.c: New file.
5137 * sysdeps/wordsize-64/iofopen.c: New file.
5138 * sysdeps/wordsize-64/iofopen64.c: New file.
5139 * sysdeps/wordsize-64/iofsetpos.c: New file.
5140 * sysdeps/wordsize-64/iofsetpos64.c: New file.
5141 * sysdeps/wordsize-64/lockf.c: New file.
5142 * sysdeps/wordsize-64/lockf64.c: New file.
5143 * sysdeps/wordsize-64/mkostemp.c: New file.
5144 * sysdeps/wordsize-64/mkostemp64.c: New file.
5145 * sysdeps/wordsize-64/mkstemp.c: New file.
5146 * sysdeps/wordsize-64/mkstemp64.c: New file.
5147 * sysdeps/wordsize-64/scandir.c: New file.
5148 * sysdeps/wordsize-64/scandir64.c: New file.
5149 * sysdeps/wordsize-64/tmpfile.c: New file.
5150 * sysdeps/wordsize-64/tmpfile64.c: New file.
5151 * sysdeps/wordsize-64/versionsort.c: New file.
5152 * sysdeps/wordsize-64/versionsort64.c: New file.
5153 * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
5154 * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
5155 * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
5156 * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
5157 * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
5158 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
5159 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
5160 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
5161 * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
5162 * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
5163 * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
5164 * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
5166 * crypt/sha256-crypt.c: Fix a comment.
5167 * crypt/sha512-crypt.c: Likewise.
5169 2007-11-07 H.J. Lu <hongjiu.lu@intel.com>
5171 * sysdeps/x86_64/memset.S: Add sfence after movnti.
5173 2007-11-07 Ulrich Drepper <drepper@redhat.com>
5176 * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
5177 because output buffer is too small break, don't loop.
5178 * iconvdata/Makefile (tests): Add bug-iconv6.
5179 * iconvdata/bug-iconv6.c: New file.
5181 2007-11-06 Ulrich Drepper <drepper@redhat.com>
5183 * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
5185 * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
5186 size_t. Add casts where needed.
5188 * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
5189 old headers, don't call avc_has_perm if we don't have the
5190 permission information.
5192 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
5194 * elf/rtld.c (dl_main): Use the page size to find the map start.
5196 2007-11-05 Ulrich Drepper <drepper@redhat.com>
5198 * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
5199 Patch by Szymon Siwek <sls@poczta.wp.pl>.
5201 * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
5202 when the lookup call failed.
5204 * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
5205 Add prune_cond and wakeup_time.
5206 (CACHE_PRUNE_INTERNAL): Define.
5207 Update declarations of prune_cache and setup_thread.
5208 * nscd/connections.c (dbs): Update initializers.
5209 (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
5210 (nscd_init): Default number of threads is now 4.
5211 (invalidate_cache): Take lock before calling prune_cache.
5212 (handle_request): If SELinux forbids the request, say so.
5213 (readylist_cond): Use static initializer.
5214 (nscd_run_prune): New function. Used only by pruning threads.
5215 (nscd_run_worder): Renamed from nscd_run. Remove support for pruning
5217 (fd_ready): Update nscd_run reference.
5218 (start_threads): No need to initialize readylist_cond.
5219 Start pruning threads separately.
5220 * nscd/nscd_setup_thread.c: Change return value type to int and always
5222 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
5223 to int and return nonzero value if we can use the TID address hack.
5224 * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
5225 the database is later than the new entry's timeout, update the
5226 wakeup time and wake the cleanup thread.
5227 (prune_cache): Return seconds the next entry in the database is still
5228 valid. Remove locking for pruning here.
5229 * nscd/nscd.conf: Document default number of threads.
5231 2007-10-31 Ulrich Drepper <drepper@redhat.com>
5233 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
5234 stack is properly aligned for the target function.
5235 Correct unwind info.
5237 * elf/rtld.c (dl_main): Initialize stack and pointer guard early
5238 when using auditing libraries.
5240 2007-10-29 Ulrich Drepper <drepper@redhat.com>
5242 * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
5243 _nss_dns_getnetbyaddr2_r.
5244 * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r. Pass
5245 extra parameter to getanswer_r.
5246 (_nss_dns_getnetbyaddr_r): Now a wrapper around
5247 _nss_dns_getnetbyaddr2_r.
5249 * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
5251 * nscd/gethstbynm2_r.c: Remove.
5252 * nscd/gethstbynm3_r.c: New file.
5253 * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
5255 * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function. Define
5256 __gethostbyaddr_r compatibility wrapper.
5257 * nscd/hstcache.c (cache_addhst): Add ttl parameter. Use it when
5258 determining timeout of entry.
5259 (lookup): Take new parameter and pass it to __gethostbyname3_r and
5261 (addhstbyX): Pass reference to variable for TTL to lookup and
5263 * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
5264 __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
5265 and __nss_next2. Remove __nss_services_lookup.
5266 * nss/XXX-lookup.c: Name function now *_lookup2. Add new parameter.
5268 * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
5270 * nss/getXXent_r.c: Likewise.
5271 * nss/getnssent_r.c: Likewise.
5272 * nss/nsswitch.c (__nss_lookup): Add new parameter. If first function
5273 does not exist in module, try the optional second name.
5274 (__nss_next2): New function.
5275 (__nss_next): Now wrapper around __nss_next2.
5276 * nss/nsswitch.h: Adjust __nss_lookup prototype.
5277 Declare __nss_next2.
5278 Adjust definition of db_lookup_function type.
5279 * nss/service-lookup.c: Define NO_COMPAT.
5280 * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
5281 * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
5282 * inet/ether_ntoh.c: Likewise.
5283 * sunrpc/netname.c: Likewise.
5284 * sunrpc/publickey.c: Likewise.
5285 * inet/getnetgrent.c: Likewise. Adjust calls to __nss_lookup.
5286 * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
5287 * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
5288 * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
5289 * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
5291 * nscd/aicache.c (addhstaiX): Fix default TTL handling.
5293 * inet/getnetgrent_r.c (setup): Encrypt static pointer.
5295 2007-10-28 Ulrich Drepper <drepper@redhat.com>
5298 * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
5299 * crypt/sha512c-test.c: Likewise.
5302 * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
5303 to keep track of end of %[ format string element.
5304 * stdio-common/Makefile (tests): Add bug20.
5305 * stdio-common/bug20.c: New file.
5308 * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
5309 path elements in counting mode.
5311 2007-10-27 Andreas Jaeger <aj@suse.de>
5314 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
5317 * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
5318 (__cleanup): Free shared library when exiting.
5319 * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
5320 (__cleanup): Free shared library when exiting.
5322 2006-04-14 H.J. Lu <hongjiu.lu@intel.com>
5325 * math/libm-test.inc (check_float_internal): Support
5326 denormalized return.
5328 2007-10-23 Andreas Jaeger <aj@suse.de>
5331 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
5332 __LONG_LONG_PAIR to handle little endian byte order.
5333 Suggested by abhishekrai@google.com
5335 2007-10-27 Ulrich Drepper <drepper@redhat.com>
5337 * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
5339 2007-10-26 Ulrich Drepper <drepper@redhat.com>
5341 * nscd/cache.c (prune_cache): Move test for modified file outside
5344 2007-10-21 Andreas Jaeger <aj@suse.de>
5346 * manual/texinfo.tex: Update to latest version.
5348 * manual/sysinfo.texi (System Parameters): Fix Formatting.
5350 * manual/arith.texi (Status bit operations): Fix formatting.
5352 * manual/errno.texi (Error Messages): Fix formatting.
5354 * manual/sysinfo.texi (System Parameters): Fix formatting.
5356 * manual/libc.texinfo: Update VERSION and UPDATED.
5358 2007-10-19 Roland McGrath <roland@redhat.com>
5360 * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
5362 2007-10-06 David S. Miller <davem@davemloft.net>
5364 * configure.in: Add sparcv9v2 and sparc64v2.
5365 * scripts/config.sub: Likewise.
5366 * configure: Regenerate.
5367 * elf/elf.h (HWCAP_SPARC_N2): New.
5368 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
5369 * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
5370 (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
5371 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
5372 * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
5373 * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
5374 * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
5376 2007-10-18 Ulrich Drepper <drepper@redhat.com>
5378 * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
5379 even if the poll result indicates there is data to read.
5380 Patch by Jeff Moyer <jmoyer@redhat.com>.
5382 2007-10-18 Roland McGrath <roland@redhat.com>
5384 * elf/elf.h (NT_PPC_VMX): New macro.
5386 2007-10-17 Ulrich Drepper <drepper@redhat.com>
5388 * version.h (VERSION): Set to 2.7.90.
5390 2007-10-17 Jakub Jelinek <jakub@redhat.com>
5392 * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add
5395 2007-10-17 Roland McGrath <roland@frob.com>
5397 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
5398 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
5400 2007-10-17 Ulrich Drepper <drepper@redhat.com>
5402 * version.h (VERSION): Bump to 2.7.
5403 * include/features.h (__GLIBC_MINOR__): Bump to 7.
5406 * time/tzset.c (__tz_convert): Don't force testing for a change of
5407 TZ if not called from localtime. But then also see whether the
5408 file changed, in case __use_tzfile is set.
5410 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
5411 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5412 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5413 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5414 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5415 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5416 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5417 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5419 2007-10-17 Jakub Jelinek <jakub@redhat.com>
5421 * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
5422 and admin selects to be able to replace the gai.conf file, lock
5423 data structures around the qsort call.
5425 2007-10-17 Ulrich Drepper <drepper@redhat.com>
5427 * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
5429 * sysdeps/x86_64/memset.S: Revert to old version for now. The cost is
5430 too high for the improvements. Implement bzero unconditionally for
5433 2007-10-17 Ulrich Drepper <drepper@redhat.com>
5434 Jakub Jelinek <jakub@redhat.com>
5436 * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
5437 even when time_t is 32-bit.
5438 (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
5439 timezone data read by __tzfile_default. Ensure __tzname[0] is
5440 always set after the search.
5442 2007-10-16 Ulrich Drepper <drepper@redhat.com>
5444 * time/tzfile.c (__tzfile_read): Help the compiler recognize
5445 unreachable code on 32-bit machines.
5447 2007-10-16 Jakub Jelinek <jakub@redhat.com>
5450 * time/strftime_l.c: Include stdbool.h.
5451 (my_strftime): New wrapper, old function renamed to...
5452 (__strftime_internal): ... new function. Add tzset_called
5453 argument, pass it down to recursive calls, don't call tzset ()
5454 if already true, set to true after call to tzset ().
5456 2007-10-16 Ulrich Drepper <drepper@redhat.com>
5458 * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
5459 into account when copying TZ string.
5461 2007-10-16 Jakub Jelinek <jakub@redhat.com>
5463 * time/tzfile.c (__tzfile_compute): For use_last case set i to
5464 num_transition rather than num_transitions - 1.
5466 2007-10-16 Jakub Jelinek <jakub@redhat.com>
5468 * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
5471 * sysdeps/x86_64/memset.S: Jump from bzero to memset using
5472 a local label rather than HIDDEN_JUMPTARGET.
5474 2007-10-15 Ulrich Drepper <drepper@redhat.com>
5476 * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
5477 (init_cacheinfo): Initialize it.
5478 * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
5479 Always define bzero.
5480 Remove non-glibc code.
5481 * sysdeps/x86_64/bzero.S: Make an empty file.
5483 2007-10-15 H.J. Lu <hongjiu.lu@intel.com>
5485 * sysdeps/x86_64/cacheinfo.c
5486 (__x86_64_preferred_memory_instruction): New.
5487 (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
5489 * sysdeps/x86_64/memset.S: Rewrite.
5491 2007-10-15 Roland McGrath <roland@redhat.com>
5493 * po/libc.pot: Regenerated.
5495 2007-10-15 Ulrich Drepper <drepper@redhat.com>
5497 * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
5501 * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
5502 NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
5503 address record to T_A/T_AAAA requests.
5505 2007-10-14 Ulrich Drepper <drepper@redhat.com>
5507 * posix/glob.c: Reimplement link_exists_p to use fstatat64.
5509 * posix/glob.c: Add some branch prediction throughout.
5511 * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
5514 * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
5516 (rfc3484_sort): Make sure that even if qsort doesn't support
5517 stable sorting out sorting here is stable by comparing service_order.
5518 (getaddrinfo): Initialize service_order.
5519 * posix/tst-rfc3484.c (do_test): Adjust for addition of
5520 service_order field to sorting structure.
5521 * posix/tst-rfc3484-2.c (do_test): Likewise.
5523 * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
5524 * time/tzset.c (tzset_internal): Break TZ string parsing out into
5525 __tzset_parse_tz and updating of daylight, timezone, tzname into
5527 (__tz_compute): Renamed from tz_compute. Take additional parameters.
5528 (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
5529 happens in __tz_compute.
5530 * time/tzfile.c (__tzfile_read): Also read TZ string.
5531 (find_transition): Fold into __tzfile_compute.
5532 (__tzfile_compute): For times beyond the last transition try to
5534 * timezone/tst-timezone.c: Information in daylight and tzname does
5535 change for Asia/Tokyo timezone with more concrete information.
5538 * include/stdio.h: Add libc_hidden_proto for ftello.
5539 * libio/ftello.c: Add libc_hidden_def.
5542 * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
5543 on the specified time and not the last entries in the file. Move
5544 code to determine tzname[] to...
5545 (find_transition): ...here. Add ugly guess for times before the
5548 2007-10-13 Ulrich Drepper <drepper@redhat.com>
5551 * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
5553 * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
5554 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
5555 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
5556 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
5558 * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
5559 read mechanism when there are no group members and avoid no-op
5560 read syscall in this case.
5563 * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
5564 (__readall): If reading failed due to EAGAIN error wait a bit
5565 and possibly try again.
5566 (__readvall): Likewise.
5568 2007-10-13 Bruno Haible <bruno@clisp.org>
5570 * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
5571 when we cannot recode the message.
5573 2007-10-13 Ulrich Drepper <drepper@redhat.com>
5576 * libio/__freading.c (__freading): Don't return true for
5577 write-only streams. For read/write streams, check whether we
5578 performed a read operation already.
5579 * libio/Makefile (tests): Add tst-ext2.
5580 * libio/tst-ext2.c: New file.
5582 2007-10-12 Ulrich Drepper <drepper@redhat.com>
5584 * locale/programs/repertoire.c (repertoire_read): Always free
5585 memory for repertoire file name [Coverity CID 270].
5587 * elf/cache.c (save_aux_cache): Free memory allocated for
5588 temporary file name [Coverity CID 267].
5590 2007-10-12 Jakub Jelinek <jakub@redhat.com>
5592 * misc/Makefile (headers): Add bits/error.h.
5594 2007-10-12 Ulrich Drepper <drepper@redhat.com>
5596 * posix/fnmatch_loop.c: Take rule index returned as part of
5597 findidx return value into account when accessing weights.
5598 * posix/regcomp.c: Likewise.
5599 * posix/regexec.c: Likewise.
5601 * locale/programs/ld-collate.c (collate_read): Optimize a bit.
5602 (skip_to): Fix problems with parameter of elifdef/elifndef.
5604 2007-10-11 Ulrich Drepper <drepper@redhat.com>
5606 * iconv/gconv_simple.c: Add some branch prediction.
5608 2007-10-12 Jakub Jelinek <jakub@redhat.com>
5610 * locale/programs/ld-collate.c (collate_read): If ignore_content
5611 and nowtok is tok_define, eat any tok_eol tokens.
5613 2007-10-11 Jakub Jelinek <jakub@redhat.com>
5615 * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
5616 (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
5618 * inet/netinet/in.h: Don't include bits/socket.h.
5619 * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
5621 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
5623 2007-10-10 Ulrich Drepper <drepper@redhat.com>
5625 * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
5627 * locale/programs/locfile-kw.gperf: Likewise.
5628 * locale/programs/ld-collate.c: Implement primitive preprocessor.
5630 2007-10-10 Jakub Jelinek <jakub@redhat.com>
5632 * stdio-common/printf-parse.h: Include string.h and wchar.h.
5633 (__find_specwc): Change into __extern_always_inline function.
5634 (__find_specmb): Likewise. Remove ps argument. Use __strchrnul.
5635 (__parse_one_specmb): Remove ps argument.
5636 * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
5637 Adjust __find_specmb and __parse_one_specmb callers.
5638 * stdio-common/printf-prs.c (parse_printf_format): Likewise.
5639 * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
5641 (__parse_one_specmb): Remove ps argument, adjust __find_specmb
5644 2007-10-09 Ulrich Drepper <drepper@redhat.com>
5646 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
5647 with some Pentium Ds.
5649 2007-10-08 Ulrich Drepper <drepper@redhat.com>
5651 * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
5653 * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
5656 2007-10-07 Ulrich Drepper <drepper@redhat.com>
5659 * locale/C-time.c: Set week_1stday data to 19971201.
5660 * locale/programs/ld-time.c (time_finish): Default for
5661 first_workday is Monday.
5664 * wcsmbs/wchar.h: Move many C99 functions into std namespace.
5667 * posix/glob.c (glob): Recognize patterns starting \/.
5668 * posix/tst-gnuglob.c (find_file): Handle absolute path names.
5669 (main): Add test for pattern starting \/.
5671 * misc/error.h: Use __const instead of const.
5672 * misc/bits/error.h: Likewise.
5674 2007-10-07 Andreas Jaeger <aj@suse.de>
5676 * include/bits/error.h: New file.
5678 * misc/bits/error.h (error_at_line): Fix prototype.
5680 2007-10-06 Ulrich Drepper <drepper@redhat.com>
5683 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
5684 more little bugs in creating the stack frame when pltexit has to
5687 * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
5688 * nscd/connections.c (verify_persistent_db): Recognize circular lists.
5691 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
5692 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
5693 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
5694 * math/libm-test.inc: Add test for this case.
5697 * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
5698 (svc_register): Initialize sc_mapped. Set to TRUE if call to
5699 map service succeeded.
5700 (svc_is_mapped): New function.
5701 (svc_unregister): Use it before trying to unmap service.
5703 2007-10-05 Ulrich Drepper <drepper@redhat.com>
5705 * timezone/zic.c: Update from tzcode2007h.
5708 * timezone/africa: Update from tzdata2007h.
5709 * timezone/antarctica: Likewise.
5710 * timezone/asia: Likewise.
5711 * timezone/australasia: Likewise.
5712 * timezone/europe: Likewise.
5713 * timezone/leapseconds: Likewise.
5714 * timezone/northamerica: Likewise.
5715 * timezone/southamerica: Likewise.
5716 * timzeone/zone.tab: Likewise.
5719 * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
5722 * string/bits/string2.h (__strdup): Cast parameters to calloc to
5723 avoid warning with -Wconversion.
5724 (__strndup): Likewise.
5725 Half the patch by Christian Iseli <christian.iseli@licr.org>.
5728 * nscd/connections.c (restart): Don't resync if database is
5729 disabled. Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
5731 * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
5732 struct tcp_md5sig. Extend struct tcp_info according to recent kernels.
5734 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
5735 evetnfd_read, eventfd_write.
5736 * sysdeps/unix/sysv/linux/eventfd.c: New file.
5737 * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
5738 * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
5739 * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
5740 * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
5741 eventfd_write for GLIBC_2.7.
5743 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
5744 * sysdeps/unix/sysv/linux/signalfd.c: New file.
5745 * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
5746 * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
5748 2007-10-04 Jakub Jelinek <jakub@redhat.com>
5750 * stdlib/msort.c: Include stdint.h.
5751 (struct msort_param): New type.
5752 (msort_with_tmp): Use struct msort_param pointer for unchanging
5753 parameters. Add optimized handling for several common sizes
5754 and indirect sorting mode.
5755 (qsort): Adjust msort_with_tmp callers. For big S use indirect
5757 Suggested by Belazougui Djamel .
5759 * stdlib/Makefile (tests): Add tst-qsort2.
5760 * stdlib/tst-qsort2.c: New test.
5762 2007-10-04 Ulrich Drepper <drepper@redhat.com>
5764 * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
5765 for dup2 in case another thread races with the current one. Retry
5768 * misc/error.h: Remove support for use outside of libc. We have to
5769 include <features.h> now. Include <bits/error.h> if possible.
5770 * misc/bits/error.h: New file.
5772 2007-10-03 Jakub Jelinek <jakub@redhat.com>
5774 * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
5775 bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
5776 __extern_always_inline functions unconditionally, drop macros.
5778 * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
5779 * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
5780 __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
5782 * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
5783 add __artificial__ attribute.
5785 2007-10-02 Ulrich Drepper <drepper@redhat.com>
5787 * string/strcoll_l.c (STRCOLL): Correct handling of switching from
5788 backward to forward direction.
5790 * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
5793 * locale/programs/ld-collate.c (collate_finish): Compare against last
5794 used section which is known to have rules defined.
5795 (collate_read): After order_start, correctly record order of sections
5796 and queue sections up.
5798 2007-10-01 Ulrich Drepper <drepper@redhat.com>
5801 * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
5802 the same number of pages.
5803 Patch by Tomash Brechko <tomash.brechko@gmail.com>.
5805 * locale/programs/ld-collate.c (collate_read): After initial copy
5806 statement, continue in state 0.
5808 * include/stdio_ext.h (__fsetlocking): Define as macro.
5810 2007-09-30 Ulrich Drepper <drepper@redhat.com>
5812 * locale/programs/ld-collate.c (collate_finish): Compare all bytes
5815 * po/pt_BR.po: Fix typo.
5817 2007-09-29 Ulrich Drepper <drepper@redhat.com>
5819 * iconvdata/Makefile (modules): Add ISO8859-9E.
5820 (distribute): Add iso8859-9e.c.
5821 (gen-8bit-gap-modules): Add iso8859-9e.
5822 * iconvdata/iso8859-9e.c: New file.
5823 * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
5824 * iconvdata/TESTS: Likewise.
5825 * iconvdata/tst-tables.sh: Likewise.
5827 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5829 * locale/iso-639.def: Add several new entries.
5831 2007-09-24 Jakub Jelinek <jakub@redhat.com>
5833 * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
5834 void * pointers instead of struct link_map **.
5835 (_dl_scope_free): Change argument type to void *.
5836 * include/link.h (struct link_map): Change type of l_reldeps
5837 to struct link_map_reldeps, move l_reldepsact into that
5839 * elf/dl-deps.c: Include atomic.h.
5840 (_dl_map_object_deps): Only change l->l_initfini when it is
5841 fully populated, use _dl_scope_free for freeing it. Optimize
5842 removal of libs from reldeps by using l_reserved flag, when
5843 some removal is needed, allocate a new list instead of
5844 reallocating and free the old with _dl_scope_free. Adjust
5845 for l_reldeps and l_reldepsact changes.
5846 * elf/dl-lookup.c (add_dependency): Likewise. Reorganize to allow
5847 searching in l_initfini and l_reldeps without holding dl_load_lock.
5848 * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
5849 l_reldepsact changes.
5850 * elf/dl-close.c (_dl_close_worker): Likewise.
5851 * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
5853 2007-09-28 Ulrich Drepper <drepper@redhat.com>
5855 * iconvdata/Makefile (modules): Add KOI8-RU.
5856 (distribute): Add koi8-ru.c.
5857 (gen-8bit-gap-modules): Add koi8-ru.
5858 * iconvdata/koi8-ru.c: New file.
5859 * iconvdata/gconv-modules: Add entries for KOI8-RU.
5860 * iconvdata/TESTS: Likewise.
5861 * iconvdata/tst-tables.sh: Likewise.
5863 * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5865 2007-09-26 Jakub Jelinek <jakub@redhat.com>
5867 * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
5868 with __warning__/__error__ attributes.
5869 (__warnattr): Define.
5870 * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
5871 __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
5873 (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
5874 of __*_chk if compile time detectable overflow is found.
5875 * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
5876 __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
5878 (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
5879 instead of __*_chk if compile time detectable overflow is found.
5880 (__gets_alias): Rename to...
5881 (__gets_warn): ... this. Add __warnattr.
5882 (gets): Call __gets_warn instead of __gets_alias.
5883 * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
5884 aliases with __warnattr.
5885 (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
5886 time detectable overflow is found.
5887 * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
5888 __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
5889 __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
5890 __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
5891 __getdomainname_chk_warn): New aliases with __warnattr.
5892 (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
5893 getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
5894 __*_chk_warn instead of __*_chk if compile time detectable overflow
5896 (__getgroups_chk): Rename argument to __listlen from listlen.
5897 (__getwd_alias): Rename to...
5898 (__getwd_warn): ... this. Add __warnattr.
5899 (getwd): Call __getwd_warn instead of __getwd_alias.
5900 * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
5901 __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
5902 __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
5903 __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
5904 __wcsnrtombs_chk_warn): New aliases with __warnattr.
5905 (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
5906 mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
5907 compile time detectable overflow is found.
5908 (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether
5909 to use __*_chk or not.
5910 (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
5911 in comparisons which function should be called and in __*_chk*
5912 arguments. Call __*_chk_warn instead of __*_chk if compile time
5913 detectable overflow is found.
5914 (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
5916 * debug/tst-chk1.c (do_test): Add a few more tests.
5918 2007-09-24 Ulrich Drepper <drepper@redhat.com>
5921 * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
5922 * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
5923 (_nl_unload_domain): Finalize conversions_lock.
5924 * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
5925 handling table of known conversions.
5927 2007-09-24 Jakub Jelinek <jakub@redhat.com>
5929 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
5930 close_not_cancel_no_status instead of close.
5932 2007-09-13 Aurelien Jarno <aurelien@aurel32.net>
5935 * posix/regcomp.c (lookup_collation_sequence_value): Check that
5936 nrules != 0 for multibyte chars.
5938 2007-09-23 Ulrich Drepper <drepper@redhat.com>
5940 * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
5941 Provide better error message in case the type is unknown.
5944 * wcsmbs/wcsnlen.c: Don't reference before checking the length.
5945 * string/stratcliff.c: Make usable to test wide char functions.
5946 * wcsmbs/wcsatcliff.c: New file.
5947 * wcsmbs/Makefiel (tests): Add wcsatcliff.
5950 * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
5951 (distribute): Add mac-centraleurope.c.
5952 (gen-8bit-gap-modules): Add mac-centraleurope.
5953 * iconvdata/mac-centraleurope.c: New file.
5954 * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
5955 * iconvdata/TESTS: Likewise.
5956 * iconvdata/tst-tables.sh: Likewise.
5959 * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
5961 2007-09-21 Ulrich Drepper <drepper@redhat.com>
5963 * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
5964 from __x86_64_core_cache_size_half.
5965 (init_cacheinfo): Compute shared cache size for AMD processors with
5966 shared L3 correctly.
5967 * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
5969 Patch in large parts by Evandro Menezes.
5971 2007-09-19 Ulrich Drepper <drepper@redhat.com>
5973 * elf/dl-lookup.c (add_dependency): Handle failing memory
5974 allocation for dependency list. Remove unnecessary check.
5976 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
5977 open/close when determining source addresses.
5979 * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
5980 sha512-crypt, and sha512.
5981 (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
5982 (distribute): Add sha256.h and sha512.h.
5983 * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
5984 and call the appropriate code.
5985 * crypt/sha256-crypt.c: New file.
5986 * crypt/sha256.c: New file.
5987 * crypt/sha256.h: New file.
5988 * crypt/sha256c-test.c: New file.
5989 * crypt/sha256test.c: New file.
5990 * crypt/sha512-crypt.c: New file.
5991 * crypt/sha512.c: New file.
5992 * crypt/sha512.h: New file.
5993 * crypt/sha512c-test.c: New file.
5994 * crypt/sha512test.c: New file.
5996 2007-09-19 Jakub Jelinek <jakub@redhat.com>
5998 * misc/bits/syslog.h (syslog): Remove extraneous argument from
5999 the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
6002 2007-09-18 Jakub Jelinek <jakub@redhat.com>
6004 * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
6005 %as in fscanf format strings.
6007 * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
6008 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
6009 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
6011 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
6014 * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
6015 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
6016 DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
6017 * elf/dl-sym.c (do_sym): Likewise.
6018 * include/link.h (struct link_map): Add l_serial field.
6019 * elf/dl-object.c (_dl_new_object): Initialize l_serial.
6020 * elf/dl-lookup.c (add_dependency): Add flags argument.
6021 Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
6022 flags, use THREAD_GSCOPE_RESET_FLAG before and
6023 THREAD_GSCOPE_SET_FLAG after
6024 __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
6025 Don't dereference map until it has been found on some list.
6026 If map->l_serial changed, return -1.
6028 2007-09-17 Jakub Jelinek <jakub@redhat.com>
6030 * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
6031 __isoc99_sscanf, __isoc99_vscanf): New prototypes.
6032 (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
6034 * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
6035 __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
6036 (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
6037 add libc_hidden_proto.
6038 * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
6039 vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
6040 conformance requested.
6041 * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
6042 vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
6043 conformance requested.
6044 * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
6045 vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
6046 conformance requested.
6047 * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
6048 vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
6049 ISO C99 or POSIX conformance requested.
6050 * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
6051 __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
6052 __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
6053 and __isoc99_vsscanf@@GLIBC_2.7.
6054 * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
6055 isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
6056 (tests): Add scanf14.
6057 (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
6058 CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
6059 CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
6060 CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
6061 CFLAGS-isoc99_scanf.c): Add $(exceptions).
6062 (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
6063 from using internal headers.
6064 * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
6065 __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
6066 __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
6067 and __isoc99_vswscanf@@GLIBC_2.7.
6068 * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
6069 isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
6070 (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
6071 CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
6072 (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
6073 * stdio-common/isoc99_scanf.c: New file.
6074 * stdio-common/isoc99_vsscanf.c: New file.
6075 * stdio-common/isoc99_vscanf.c: New file.
6076 * stdio-common/isoc99_vfscanf.c: New file.
6077 * stdio-common/isoc99_fscanf.c: New file.
6078 * stdio-common/isoc99_sscanf.c: New file.
6079 * wcsmbs/isoc99_fwscanf.c: New file.
6080 * wcsmbs/isoc99_vswscanf.c: New file.
6081 * wcsmbs/isoc99_swscanf.c: New file.
6082 * wcsmbs/isoc99_wscanf.c: New file.
6083 * wcsmbs/isoc99_vwscanf.c: New file.
6084 * wcsmbs/isoc99_vfwscanf.c: New file.
6085 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
6086 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
6087 clear _IO_FLAGS2_SCANF_STD bit from _flags2.
6088 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
6089 handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
6090 * stdio-common/scanf14.c: New test.
6091 * stdio-common/scanf15.c: New test.
6092 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
6093 isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
6094 isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
6095 isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
6096 isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
6097 * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
6098 __nldbl___isoc99_scanf@@GLIBC_2.7,
6099 __nldbl___isoc99_fscanf@@GLIBC_2.7,
6100 __nldbl___isoc99_sscanf@@GLIBC_2.7,
6101 __nldbl___isoc99_vscanf@@GLIBC_2.7,
6102 __nldbl___isoc99_vfscanf@@GLIBC_2.7,
6103 __nldbl___isoc99_vsscanf@@GLIBC_2.7,
6104 __nldbl___isoc99_wscanf@@GLIBC_2.7,
6105 __nldbl___isoc99_fwscanf@@GLIBC_2.7,
6106 __nldbl___isoc99_swscanf@@GLIBC_2.7,
6107 __nldbl___isoc99_vwscanf@@GLIBC_2.7,
6108 __nldbl___isoc99_vfwscanf@@GLIBC_2.7
6109 and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
6110 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
6111 __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
6112 __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
6113 __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
6114 __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
6115 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6116 (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
6117 __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
6118 __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
6119 __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
6120 __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
6121 __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
6123 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
6124 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
6125 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
6126 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
6127 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
6128 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
6129 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
6130 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
6131 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
6132 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
6133 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
6134 * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
6136 * stdio-common/Makefile (tests): Add scanf13.
6138 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
6139 m modifier followed by l.
6140 (STRING_ARG): Add width argument.
6141 (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
6142 <case L_('C')>: Handle %mlc and %mC.
6143 <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
6145 * stdio-common/scanf13.c: New test.
6147 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
6148 the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
6150 2007-09-18 Ulrich Drepper <drepper@redhat.com>
6152 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
6153 type and __THROW marker of splice, vmsplice, and tee.
6154 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6155 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6156 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6157 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6158 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6159 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6160 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6161 * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
6162 as cancellation points.
6164 2003-11-01 Daniel Jacobowitz <dan@debian.org>
6166 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
6167 parse more than three parts of the version number.
6169 2007-09-15 Ulrich Drepper <drepper@redhat.com>
6171 * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
6172 modifier. Patch by Jakub Jelinek.
6174 2007-08-26 Jakub Jelinek <jakub@redhat.com>
6176 * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
6177 call_fallocate in misc subdir.
6178 * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
6179 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
6180 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
6181 instead of __fallocate64.
6182 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
6184 2007-09-15 Jakub Jelinek <jakub@redhat.com>
6186 * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
6187 * rt/Makefile (headers): Add bits/mqueue2.h.
6188 * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
6189 optimizing with GCC and __va_arg_pack_len is defined.
6190 * rt/bits/mqueue2.h: New file.
6191 * rt/mq_open.c (__mq_open): Renamed from mq_open.
6192 (mq_open): New strong_alias.
6193 (__mq_open_2): New function.
6194 * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
6195 (mq_open): New strong_alias.
6196 (__mq_open_2): New function.
6197 * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
6198 * Versions.def (librt): Add GLIBC_2.7 version.
6199 * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
6200 * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
6202 * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
6203 * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
6204 is defined rather than when not C++.
6205 * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
6206 __openat64_alias): New redirects.
6207 (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
6208 __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
6209 __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
6210 (open, open64, openat, openat64): Rewrite as __extern_always_inline
6211 functions instead of function-like macros.
6213 2007-09-14 H.J. Lu <hongjiu.lu@intel.com>
6215 * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
6216 * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
6217 * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
6219 2007-09-15 Mike Frysinger <vapier@gentoo.org>
6221 * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
6222 * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
6224 2007-09-14 Mike Frysinger <vapier@gentoo.org>
6226 * inet/tst-network.c: Increment ERRORS for failing tests.
6228 2007-09-07 Jakub Jelinek <jakub@redhat.com>
6230 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
6231 * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
6232 implement as __extern_always_inline function.
6233 (vsyslog): Define as __extern_always_inline function unconditionally.
6234 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
6235 When __va_arg_pack is defined, implement as __extern_always_inline
6237 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
6238 __extern_always_inline functions unconditionally.
6239 * libio/bits/stdio.h (vprintf): Ifdef out the inline when
6240 bits/stdio2.h will be included.
6241 * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
6242 (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
6243 implement as __extern_always_inline functions.
6244 (vswprintf, vwprintf, vfwprintf): Define as
6245 __extern_always_inline functions unconditionally.
6246 * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
6248 2007-09-03 Jakub Jelinek <jakub@redhat.com>
6250 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
6251 define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
6253 * include/features.h (__USE_EXTERN_INLINES): Define only when
6254 __extern_inline is defined.
6255 * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
6256 is defined instead of when not __cplusplus.
6257 * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
6258 is defined instead of when not __cplusplus.
6259 * socket/sys/socket.h: Include bits/socket2.h when
6260 __extern_always_inline is defined instead of when not __cplusplus.
6261 * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
6262 is defined instead of when not __cplusplus.
6263 * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
6264 is defined instead of when not __cplusplus.
6265 * string/string.h: Include bits/string3.h when __extern_always_inline
6266 is defined instead of when not __cplusplus.
6267 * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
6268 is defined instead of when not __cplusplus.
6269 (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
6270 * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
6272 * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
6273 defined __extern_always_inline instead of !defined __cplusplus.
6274 * libio/bits/stdio-ldbl.h: Likewise.
6275 * wcsmbs/bits/wchar-ldbl.h: Likewise.
6276 * misc/bits/syslog.h (syslog): Don't define for C++.
6277 (vsyslog): Use __extern_always_inline function for C++ instead of
6279 * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
6280 whenever that macro is defined.
6281 (vprintf): Don't provide the inline for C++.
6282 (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
6283 * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
6284 define the macros for C++.
6285 (vsprintf, vsnprintf, vprintf, vfprintf): Define as
6286 __extern_always_inline functions for C++.
6287 * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
6288 stat64, lstat64, fstat64, fstatat64): Don't define if not
6289 __USE_EXTERN_INLINES.
6290 * wcsmbs/bits/wchar2.h: Fix #error message.
6291 (swprintf, wprintf, fwprintf): Don't define the macros for C++.
6292 (vswprintf, vwprintf, vfwprintf): Define using
6293 __extern_always_inline functions for C++.
6294 * string/bits/string3.h: Don't #undef macros if __cplusplus.
6295 (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
6296 strncpy, strcat, strncat): Define as __extern_always_inline
6297 functions instead of macros for C++.
6298 * math/bits/cmathcalls.h: Guard __extern_inline routines with
6299 defined __extern_inline.
6300 * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
6301 to __extern_inline whenever that macro is defined.
6302 * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6303 * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6304 * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
6305 * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
6306 * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6307 * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6308 * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6309 * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
6310 * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
6311 gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
6312 prototypes. Only provide __extern_inline routines if
6313 __USE_EXTERN_INLINES.
6314 * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
6316 * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
6317 For now avoid some *printf tests in C++. Skip all testing
6318 if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
6320 * debug/tst-chk4.cc: New file.
6321 * debug/tst-chk5.cc: New file.
6322 * debug/tst-chk6.cc: New file.
6323 * debug/tst-lfschk4.cc: New file.
6324 * debug/tst-lfschk5.cc: New file.
6325 * debug/tst-lfschk6.cc: New file.
6326 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
6328 * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
6329 __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
6330 __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
6332 2007-09-13 Ulrich Drepper <drepper@redhat.com>
6334 * po/cs.po: Update from translation team.
6336 2007-09-11 Roland McGrath <roland@redhat.com>
6338 * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
6341 2007-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
6343 * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
6345 2007-09-05 Roland McGrath <roland@redhat.com>
6347 * manual/signal.texi (Signaling Another Process): Typo fix.
6348 From Karl Berry <karl@freefriends.org>.
6350 2007-08-29 Ulrich Drepper <drepper@redhat.com>
6352 * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
6353 zero if not defined.
6354 (make_request): Recognize optimistic addresses and treat them like
6355 deprecated addresses.
6356 Reported by Neil Horman <nhorman@redhat.com>.
6358 2007-08-28 Ulrich Drepper <drepper@redhat.com>
6360 * nscd/connections.c (send_ro_fd): Also transfer file size.
6361 * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
6362 file size don't call fstat.
6364 * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
6365 ahead and map the file. This should always be correct and we can
6366 catch problems later.
6368 2007-08-28 Jakub Jelinek <jakub@redhat.com>
6370 * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
6372 (__fread_alias, __fread_unlocked_alias): New aliases.
6373 (fread): New extern inline.
6374 (fread_unlocked): Likewise. Undef macro before definition of
6375 the inline function.
6376 * debug/Makefile (routines): Add fread_chk and fread_u_chk.
6377 (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
6378 * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
6379 and __fread_unlocked_chk@@GLIBC_2.7.
6380 * debug/fread_chk.c: New file.
6381 * debug/fread_u_chk.c: New file.
6382 * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
6384 2007-08-27 Jakub Jelinek <jakub@redhat.com>
6386 * sysdeps/unix/sysv/linux/syscalls.list
6387 (personality): Change caller to EXTRA.
6389 2007-08-25 Ulrich Drepper <drepper@redhat.com>
6391 * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
6393 * iconvdata/iso-2022-cn.c (BODY): Likewise.
6395 * locale/programs/ld-collate.c (collate_output): Avoid warning if
6398 * Makerules: Use -p option with mkdir.
6400 * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
6401 * nis/nis_xdr.c (_xdr_nis_server): Likewise.
6402 (_xdr_directory_obj): Likewise.
6403 (xdr_entry_obj): Likewise.
6404 (xdr_group_obj): Likewise.
6405 (xdr_link_obj): Likewise.
6406 (xdr_table_obj): Likewise.
6407 (_xdr_nis_result): Likewise.
6408 (_xdr_ns_request): Likewise.
6409 (_xdr_ib_request): Likewise.
6410 (_xdr_nis_taglist): Likewise.
6411 (xdr_cback_data): Likewise.
6412 * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
6413 (xdr_ypresp_maplist): Likewise.
6415 * stdio-common/Makefile: Avoid format string warning for tst-sprint.
6417 * posix/regex_internal.h: Prevent some declarations and definitions
6418 to be seen when used in tests.
6420 * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
6421 * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
6423 * debug/Makefile: Disable format checking when compiling tst-chk?.c.
6425 * config.make.in (datarootdir): Add to shut up configure.
6427 * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
6428 associativity for fully-associative caches.
6430 * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
6431 requests. Fill on more associativity values for L2.
6432 Patch mostly by Evandro Menezes.
6434 2007-08-24 Ulrich Drepper <drepper@redhat.com>
6436 * sysdeps/unix/sysv/linux/x86_64/init-first.c
6437 (_libc_vdso_platform_setup): Avoid using exported variable by using
6440 * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
6442 * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
6443 fallocate64 as EXTRA. It is not referenced if the symbol isn't
6446 2007-08-23 Ulrich Drepper <drepper@redhat.com>
6448 * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
6449 align stack for call if pltexit is to be used.
6452 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
6453 align for function call in case pltexit has to be called later.
6455 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
6456 implicit atomic operation when storing function pointer.
6457 (_dl_runtime_profile): Likewise.
6459 2007-08-17 Jakub Jelinek <jakub@redhat.com>
6461 * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
6464 2007-08-21 Ulrich Drepper <drepper@redhat.com>
6467 * string/strtok.c: Fix typo in comment.
6470 * debug/segfault.c: Fix typos in comments.
6473 * stdio-common/tempnam.c: Fix comment, it is not checked that
6474 TMPDIR points to a writable directory.
6477 * resolv/res_send.c (__libc_res_nsend): Initialize all of the
6478 memory allocated for the name server address.
6481 * nscd/connections.c (handle_request): Using sendfile always
6482 requires that mmap is used for the database.
6483 Patch by Petr Baudis <pasky@suse.cz>.
6486 * nscd/hstcache.c (cache_addhst): When reloading an entry which
6487 suddenly has two or more addresses, ignore it and remove the old
6491 * resolv/res_hconf.c: Prepare for compiling outside libc.
6492 * nscd/res_hconf.c: New file.
6493 * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build
6495 * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
6496 * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
6498 * nscd/hstcache.c (cache_addhst): Minimal optimization.
6501 * debug/pcprofiledump.c: Turn on internationalization by calling
6502 setlocale. Patch mostly by Benno Schulenberg.
6505 * iconv/gconv.c (__gconv): If flush was successful, clear rest of
6507 * iconvdata/Makefile: Add rules to build and run bug-iconv5.
6508 * iconvdata/bug-iconv5.c: New file.
6510 2007-08-04 Carlos O'Donell <carlos@systemhalted.org>
6513 * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
6514 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
6515 R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
6516 R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
6517 R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
6518 R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
6519 R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
6520 R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
6522 2007-08-21 Ulrich Drepper <drepper@redhat.com>
6525 * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
6526 lookup loop. Suggested by John Reiser.
6528 2007-08-21 Jakub Jelinek <jakub@redhat.com>
6530 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
6532 2007-08-20 Ulrich Drepper <drepper@redhat.com>
6534 * csu/libc-start.c: Don't handle VDSO_SETUP here.
6535 * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
6536 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
6537 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this. New file.
6538 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
6540 * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here. New file.
6542 2007-08-18 Ulrich Drepper <drepper@redhat.com>
6544 * po/nl.po: Update from translation team.
6546 2007-08-16 Andreas Jaeger <aj@suse.de>
6548 * locale/localeinfo.h: Make _nl_category_name_idxs extern.
6549 Reported by Peter Festner <peter.festner@ewetel.net>.
6551 2007-08-17 Jakub Jelinek <jakub@redhat.com>
6553 * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
6555 2007-08-16 Jakub Jelinek <jakub@redhat.com>
6557 * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
6558 to check for undefined symbols.
6560 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
6561 If the syscall fails, set errno to the actual returned error number
6563 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
6564 arguments are incorrect, set errno to EINVAL, if the syscall
6565 fails, set errno to the actual returned error number.
6567 * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
6568 * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
6570 * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
6571 * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here. New
6573 (ASI_PNF, ASI_BLK_P): Don't define.
6574 * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
6575 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here. New
6577 * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
6578 * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here. New
6581 2007-08-15 Jakub Jelinek <jakub@redhat.com>
6583 * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
6584 FE_UNDERFLOW on Niagara CPUs.
6586 * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
6589 2007-08-14 Jakub Jelinek <jakub@redhat.com>
6591 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
6592 need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
6593 (sparc_fixup_plt): Add do_flush argument instead of figuring whether
6594 flush should be used or not inside of the function.
6595 (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
6597 * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
6598 __thread_start): Use HIDDEN_JUMPTARGET.
6599 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
6600 __thread_start): Likewise.
6601 * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
6603 * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
6604 Add libc_hidden_proto.
6605 (STRTOF): Add libc_hidden_proto.
6606 (___new_strtold_l, ___new_wcstold_l): New weak aliases.
6607 (strtold_l, wcstold_l): Use them as second argument for
6610 2007-08-14 Ulrich Drepper <drepper@redhat.com>
6612 * elf/dl-misc.c: Undo last change. The kernel won't allow it.
6614 2007-08-13 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6616 * stdlib/strtold_l.c: Include wchar.h if needed. Add libc_hidden_def.
6618 2007-08-14 Ulrich Drepper <drepper@redhat.com>
6620 * po/bg.po: New file. From the translation team.
6622 2007-08-13 Jakub Jelinek <jakub@redhat.com>
6624 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
6625 __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
6626 __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
6627 when each feature was introduced.
6629 * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
6630 * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
6631 (CHECK_HASH): New macro.
6632 (PREPARE_VERSION): Use it.
6634 * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
6635 prototype if not __ASSUME_PSELECT.
6636 * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
6637 prototype if not __ASSUME_PPOLL.
6639 * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
6641 * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
6642 hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
6645 2007-08-13 Ulrich Drepper <drepper@redhat.com>
6647 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6648 (_libc_vdso_platform_setup): If vDSO is not available point
6649 __vdso_gettimeofday to the vsyscall.
6650 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
6651 __vdso_gettimeofday instead of vsyscall.
6653 2007-08-13 Jakub Jelinek <jakub@redhat.com>
6655 * nscd/servicescache.c: Include kernel-features.h.
6656 * nscd/gai.c: Likewise.
6657 * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
6658 * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
6659 * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
6660 * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
6661 * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
6662 * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
6663 * sysdeps/unix/sysv/linux/if_index.c: Likewise.
6664 * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
6665 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6667 2007-08-12 Ulrich Drepper <drepper@redhat.com>
6669 * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
6670 and _dl_get_origin defines anymore.
6672 * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
6673 Build fix for systems which might lack POSIX timer support.
6675 * sysdeps/unix/sysv/linux/x86_64/libc-start.c
6676 (_libc_vdso_platform_setup): Mangle function pointers before storing
6678 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
6679 Demangle vdso pointer before use.
6680 (INTERNAL_VSYSCALL): Likewise.
6682 * elf/cache.c (primes): Mark as const.
6683 Noted by Roland McGrath.
6685 2007-08-01 Andreas Jaeger <aj@suse.de>
6686 Jakub Jelinek <jakub@redhat.com>
6688 * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
6689 (options): Add option.
6690 (parse_opt): Handle option.
6691 (manual_link): Adjust process_file caller. Call implicit_soname.
6692 (search_dir): Formatting. Use and populate auxiliary cache.
6693 (main): Load and save auxiliary cache.
6694 * elf/readlib.c (process_file): Add stat_buf argument. Pass struct
6695 stat64 from fstat64 to caller.
6696 (implicit_soname): New function.
6697 * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
6698 leave *soname as NULL.
6699 * elf/cache.c: Include libgen.h.
6700 (print_entry, print_cache, compare, save_cache, add_to_cache):
6701 Formatting and cleanups.
6702 (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
6703 aux_cache_file): New structures.
6704 (AUX_CACHEMAGIC): Define.
6705 (primes): New array.
6706 (aux_hash_size, aux_hash): New variables.
6707 (aux_cache_entry_id_hash, nextprime, init_aux_cache,
6708 search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
6709 load_aux_cache, save_aux_cache): New functions.
6710 * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
6711 (init_aux_cache, search_aux_cache, add_to_aux_cache,
6712 load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
6713 (process_file): Adjust prototype.
6715 2007-08-12 Jakub Jelinek <jakub@redhat.com>
6717 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
6720 2007-08-12 Ulrich Drepper <drepper@redhat.com>
6722 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
6723 r_found_version structure as second parameter.
6724 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
6725 (_dl_vdso_vsym): Change type of second parameter accordingly.
6726 * sysdeps/unix/sysv/linux/x86-64/libc-start.c
6727 (_libc_vdso_platform_setup): Adjust.
6728 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6729 (_libc_vdso_platform_setup): Likewise.
6731 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
6732 * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
6733 * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
6734 * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
6735 * csu/libc-start.c: Pretty printing.
6736 Use VDSO_SETUP if defined.
6737 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
6738 and let generic code call into _libc_vdso_platform_setup.
6739 * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
6740 * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
6741 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
6742 Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
6743 * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
6745 * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
6746 (sysdep_rountines): Add dl-vdso.
6748 * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
6751 * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
6752 attribute_hidden to __vdso_gettimeofday prototype.
6754 2007-08-12 Roland McGrath <roland@redhat.com>
6756 * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
6757 From: Karl Berry <karl@freefriends.org>.
6759 2007-08-11 Ulrich Drepper <drepper@redhat.com>
6761 * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
6762 an atime update for the files we read.
6764 2007-08-10 Ulrich Drepper <drepper@redhat.com>
6766 * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
6768 * nscd/connections.c: Use O_CLOEXEC if possible. Use mkostemp
6771 * misc/Makefile (routines): Add mkostemp and mkostemp64.
6772 * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
6773 * misc/mkostemp.c: New file.
6774 * misc/mkostemp64.c: New file.
6775 * stdlib/stdlib.h: Declare the new functions.
6776 * sysdeps/posix/tempname.c: Add new parameter which is added to
6777 the flags for open. Remove __GT_BIGFILE handling.
6778 * stdio-common/tempname.c: Likewise.
6779 * include/stdio.h: Adjust __gen_tempname prototype.
6780 Renumber __GT_* constants.
6781 * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
6782 * misc/mkdtemp.c: Likewise.
6783 * misc/mkstemp.c: Likewise.
6784 * misc/mkstemp64.c: Likewise.
6785 * misc/mktemp.c: Likewise.
6786 * stdio-common/tempnam.c: Likewise.
6787 * stdio-common/tmpfile.c: Likewise.
6788 * stdio-common/tmpfile64.c: Likewise.
6789 * stdio-common/tmpnam.c: Likewise.
6790 * stdio-common/tmpnam_r.c: Likewise.
6792 2007-08-10 Roland McGrath <roland@frob.com>
6794 * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
6796 (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
6797 Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6799 2007-08-10 Ulrich Drepper <drepper@redhat.com>
6801 * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
6803 * nss/nss_files/files-alias.c (internal_setent): Likewise.
6804 * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
6805 * nss/nss_files/files-have_o_cloexec.c: New file.
6807 * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
6810 2007-08-10 Jakub Jelinek <jakub@redhat.com>
6812 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
6813 ___new_wcstold_l): New weak aliases.
6814 (strtold_l, wcstold_l): Use them as second argument for
6817 2007-08-09 Ulrich Drepper <drepper@redhat.com>
6819 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
6820 register in test for error.
6822 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
6823 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
6825 * po/sv.po: Update from translation team.
6827 2007-08-06 Roland McGrath <roland@redhat.com>
6829 * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
6830 Remove __strto*_l inlines.
6831 * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
6832 * stdlib/strtod.c: Add libc_hidden_def.
6833 * stdlib/strtod_l.c: Likewise.
6834 * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
6835 for __new_strtold and __new_wcstold.
6836 * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
6838 * stdlib/strtol.c: Add libc_hidden_def.
6839 * stdlib/strtol_l.c: Likewise.
6840 * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
6843 * scripts/data/localplt-powerpc-linux-gnu.data: New file.
6845 * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
6846 * scripts/data/localplt-generic.data: ... here.
6847 * elf/Makefile (check-data): Get generic file if no other.
6848 ($(objpfx)check-localplt.out): Make target unconditional.
6850 * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
6853 2007-08-05 Ulrich Drepper <drepper@redhat.com>
6855 * po/zh_CN.po: Updated translation from translation team.
6857 2007-08-05 Jakub Jelinek <jakub@redhat.com>
6859 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
6860 Don't use CGOTSETUP and CGOTRESTORE macros.
6862 2007-08-04 Roland McGrath <roland@redhat.com>
6864 * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
6866 2007-08-04 Jakub Jelinek <jakub@redhat.com>
6868 * io/bits/fcntl2.h (open, open64, openat, openat64): Add
6869 __extension__ around the whole statement expression.
6871 2007-08-04 Ulrich Drepper <drepper@redhat.com>
6873 * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
6874 elements during initialization.
6876 * po/pl.po: Updated translation from translation team.
6877 * po/tr.po: Likewise.
6878 * po/nl.po: Likewise.
6880 2007-08-03 Ulrich Drepper <drepper@redhat.com>
6882 * rt/aio.h: Add __nonnull attributes.
6884 2007-08-03 Jakub Jelinek <jakub@redhat.com>
6886 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
6887 * stdlib/Makefile (tests): Add tst-strtod5.
6888 (tst-strtod5-ENV): New.
6889 * stdlib/tst-strtod5.c: New file.
6891 * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
6893 * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
6896 * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
6899 2007-08-03 Jakub Jelinek <jakub@redhat.com>
6901 * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
6904 2007-08-02 Ulrich Drepper <drepper@redhat.com>
6906 * io/Makefile (aux): Add have_o_cloexec.
6907 * include/fcntl.h: Declare __have_o_cloexec.
6908 * io/have_o_cloexec.c: New file.
6909 * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
6910 (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
6911 fcntl call if not necessary.
6912 * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
6915 * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
6916 Avoid memset, add explicit initialization.
6917 * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
6918 to the end and change into zero-sized array.
6919 Move lock member to fill a hole on 64-bit platforms.
6921 * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
6923 * include/stdlib.h: Add __strto*_internal prototypes here.
6924 * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
6926 * include/wchar.h: Add __wcsto*_internal prototypes.
6927 * sysdeps/generic/inttypes.h: No need to protect the declaration
6928 of the __strto*_internal and __wcsto*_internal members here.
6930 * rt/mqueue.h: Change const to __const and add nonnull attributes.
6932 2007-08-02 Roland McGrath <roland@redhat.com>
6934 * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
6935 $(inst_bindir)/getconf if possible.
6937 * posix/Makefile ($(objpfx)getconf.speclist): New target.
6938 (generated): Add it.
6939 ($(inst_libexecdir)/getconf): Use it.
6941 2007-08-01 Ulrich Drepper <drepper@redhat.com>
6943 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
6944 /proc is faster and sufficient. /sys is still needed for
6947 2007-08-01 Jakub Jelinek <jakub@redhat.com>
6949 * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
6950 syscall as __fallocate64.
6951 * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
6952 * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
6954 2007-07-30 Jakub Jelinek <jakub@redhat.com>
6956 * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
6959 * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
6960 if off_t is different rank from size_t.
6962 * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
6963 uw_frame_state_for): Avoid type punning warnings.
6964 * sysdeps/generic/unwind-dw2-fde-glibc.c
6965 (_Unwind_IteratePhdrCallback): Likewise.
6966 * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
6967 (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
6968 get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
6971 2007-07-31 Ulrich Drepper <drepper@redhat.com>
6973 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
6974 total processors using sysfs.
6975 (__get_nprocs): Use sysfs to determine which processors are online.
6977 2007-07-31 Jakub Jelinek <jakub@redhat.com>
6979 * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
6980 syscall arguments count.
6982 * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
6984 2007-07-30 Roland McGrath <roland@redhat.com>
6986 * manual/libc.texinfo: Update copyrights, formatting magic, and
6987 @dircategory. From Karl Berry <karl@freefriends.org>.
6989 2007-07-29 Ulrich Drepper <drepper@redhat.com>
6992 * io/Makefile (headers): Add bits/fcntl2.h.
6994 * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
6996 (__CPU_EQUAL_S): Likewise.
6998 * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
6999 (tests): Add tst-cpuset.
7000 * posix/sched_cpualloc.c: New file.
7001 * posix/sched_cpufree.c: New file.
7002 * posix/tst-cpuset.c: New file.
7003 * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
7005 * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
7006 * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
7007 macros. Define CPU_*_S macros.
7009 2007-07-28 Ulrich Drepper <drepper@redhat.com>
7011 * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
7015 * stdio-common/printf_fp.c (___printf_fp): Fix special case of
7016 #.0g and value rounded to 1.0.
7017 * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
7019 2007-07-26 Jakub Jelinek <jakub@redhat.com>
7021 * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
7022 for int_frac_digits and frac_digits.
7024 * login/logout.c (logout): Avoid aliasing violation.
7025 * login/logwtmp.c (logwtmp): Likewise.
7027 * libio/genops.c (_IO_un_link): Avoid aliasing violation.
7029 * nscd/selinux.c (preserve_capabilities): Initialize new_caps
7031 * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
7033 * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
7035 * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
7038 * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
7040 * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
7042 * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
7043 char * to avoid warning.
7044 * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
7046 * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
7048 * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
7049 allocate_arrays): Cast second argument to charmap_find_symbol
7050 to char * to avoid warnings.
7052 * locale/programs/repertoire.c (repertoire_new_char): Change
7053 from_nr, to_nr and cnt to unsigned long, adjust printf format
7056 * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
7057 Cast second argument to new_element to char * to avoid warnings.
7059 * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
7061 * intl/gettextP.h (struct loaded_domain): Change plural to const
7062 struct expression *.
7063 * intl/plural-eval.c (plural_eval): Change first argument to
7064 const struct expression *.
7065 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
7066 argument to const struct expression **.
7067 * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
7069 * intl/loadmsgcat (_nl_unload_domain): Cast away const
7070 in call to __gettext_free_exp.
7072 * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
7073 unitialized wstring/wpattern var warnings.
7075 * posix/runtests.c (struct a_test): Make data field const char *.
7077 * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
7078 vars if not LDBL_MANT_DIG >= 106.
7080 * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
7082 * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
7083 __find_specmb to avoid warning.
7085 * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
7087 * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
7090 * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
7093 * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
7094 tv var when it will be actually used.
7096 * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
7099 * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
7100 char array resp. pointer.
7101 * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
7103 * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
7104 to const unsigned char **.
7105 (ucs4_to_cns11643): Change second argument to unsigned char *.
7106 * iconvdata/euc-tw.c (BODY): Change endp type to
7107 const unsigned char *.
7108 * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
7110 * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
7111 * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
7112 * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
7113 types to unsigned char pointers/arrays instead of char.
7114 * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
7116 * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
7117 * iconvdata/jis0212.h: Include assert.h.
7118 (ucs4_to_jisx0212): Change second argument to unsigned char *.
7119 assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
7120 of trying to handle that.
7121 * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
7123 * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
7124 from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
7125 two dimensional const unsigned char arrays.
7126 (BODY): Cast "" to (const unsigned char *) for assignment to cp.
7127 Initialize endp to inptr to shut up a warning.
7129 2007-07-20 Jakub Jelinek <jakub@redhat.com>
7132 * time/strptime_l.c (__strptime_internal): Silently ignore
7133 strftime modifiers and field width in recursive calls.
7135 * include/time.h (enum ptime_locale_status): Remove.
7136 (__strptime_internal): Remove decided and era_cnt arguments,
7137 add statep argument.
7138 * time/strptime_l.c (__strptime_internal): Remove decided
7139 and era_cnt arguments, add statep argument. Don't recompute
7140 any fields in recursive calls, only update caller's tm
7141 and state, if recursive call fails, don't change tm nor
7143 (get_alt_number): Adjust.
7144 (recursive): Adjust caller.
7145 (strptime): Likewise.
7146 * time/strptime.c (strptime): Likewise.
7148 2007-07-19 Jakub Jelinek <jakub@redhat.com>
7150 * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
7151 * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
7152 if from and to charsets are the same.
7153 * iconv/gconv_db.c (__gconv_find_transform): Likewise.
7154 * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
7155 returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
7157 2007-07-17 Jakub Jelinek <jakub@redhat.com>
7159 * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
7160 Don't define wint_t when __need_mbstate_t unless it
7162 (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
7163 in the typedef if possible.
7164 * wctype/wctype.h (wint_t): Define by including
7165 wchar.h with __need_wint_t instead of including stddef.h
7166 with __need_wint_t and as fallback definining it ourselves.
7167 * iconv/gconv.h (__need_wint_t): Define before including
7169 * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
7170 or _GLIBCPP_USE_WCHAR_T.
7171 (__need_wchar_t): Don't define
7172 if not _LIBC or _GLIBCPP_USE_WCHAR_T.
7173 (__need_wint_t): Don't define before including stddef.h,
7174 define before including wchar.h only if _LIBC or
7175 _GLIBCPP_USE_WCHAR_T.
7176 (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
7177 * sysdeps/mach/hurd/_G_config.h: Likewise.
7178 * sysdeps/generic/_G_config.h: Likewise.
7179 * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
7180 prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
7181 (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
7182 if _LIBC or _GLIBCPP_USE_WCHAR_T.
7184 2007-07-28 Ulrich Drepper <drepper@redhat.com>
7186 * sysdeps/posix/posix_fallocate64.c: Undefine
7187 __posix_fallocate64_l64 before alias handling.
7188 * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
7189 * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
7190 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
7191 * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
7193 * io/tst-posix_fallocate.c: Include <fcntl.h>.
7195 2007-07-23 Jakub Jelinek <jakub@redhat.com>
7197 * locale/programs/ld-collate.c (atwc): New variable.
7198 (add_to_tablewc): New toplevel function, moved from collate_output.
7199 (collate_output): Remove add_to_tablewc nested function.
7201 * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
7202 (name_insert): New function.
7203 (write_output): Remove hash_table and hash_size vars and name_insert
7206 2007-07-24 Roland McGrath <roland@redhat.com>
7208 * Makerules (install-others-programs-nosubdir): New target.
7209 (install-no-libc.a-nosubdir): Depend on it.
7211 * iconv/Makefile (install-others-programs): Set this instead of
7213 * login/Makefile (install-others-programs): Likewise.
7214 * posix/Makefile (install-others-programs): Likewise.
7216 * Makerules (install-no-libc.a-nosubdir): Clean up conditional
7219 2007-07-23 Ulrich Drepper <drepper@redhat.com>
7221 * io/Makefile (tests): Add tst-posix_fallocate.
7222 * io/tst-posix_fallocate.c: New file.
7224 * sysdeps/unix/sysv/linux/kernel-features.h: Define
7227 2007-07-22 Roland McGrath <roland@frob.com>
7229 * hurd/getdport.c: Add missing copyright year update.
7231 * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
7232 * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
7234 2007-07-22 Ulrich Drepper <drepper@redhat.com>
7236 * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
7238 * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
7239 O_CLOEXEC is needed.
7240 * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
7241 Avoid additional fcntl to set O_CLOEXEC if not needed.
7242 * nis/nss_compat/compat-initgroups.c: Likewise.
7243 * nis/nss_compat/compat-pwd.c: Likewise.
7244 * nis/nss_compat/compat-spwd.c: Likewise.
7246 2007-07-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
7249 * manual/errno.texi: Change ECANCELED value to 119.
7252 * mach/lock-intern.h: Include <sys/cdefs.h>.
7255 * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
7259 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
7262 * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
7264 2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
7266 * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
7268 * sysdeps/mach/hurd/i386/tls.h: Likewise.
7270 2007-07-21 Ulrich Drepper <drepper@redhat.com>
7272 * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
7273 descriptor received from nscd.
7275 * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
7277 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
7278 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
7279 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
7280 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
7281 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
7282 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
7284 2007-07-20 Jakub Jelinek <jakub@redhat.com>
7287 * manual/signal.texi (Non-atomic Example): Make memory var volatile.
7290 * login/forkpty.c (forkpty): Close master and slave fds on
7291 fork failure. Patch by
7292 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
7294 2007-07-18 Jakub Jelinek <jakub@redhat.com>
7296 * include/features.h (__USE_ISOC95): New define.
7297 * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
7298 swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
7299 for -std=iso9899:199409.
7300 * CONFORMANCE: Remove comments about unsupported AMD1.
7302 2007-07-17 Jakub Jelinek <jakub@redhat.com>
7304 * sysdeps/ia64/sched_cpucount.c: New file.
7305 * sysdeps/powerpc/sched_cpucount.c: New file.
7307 * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
7308 __BEGIN_DECLS/__END_DECLS around the prototype.
7309 * bits/sched.h (__sched_cpucount): Likewise. Make second argument
7310 pointer to const cpu_set_t.
7312 * bits/types.h: Don't include stddef.h, don't define __need_size_t.
7313 * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
7314 __need_size_t and include stddef.h.
7315 * sysvipc/sys/msg.h: Likewise.
7316 * posix/sched.h: Likewise.
7317 * hurd/hurd/signal.h (__need_size_t): Define.
7319 * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
7320 neither does signal.h in pedantic ISO C namespaces. stdio.h
7321 no longer defines wint_t or wchar_t.
7323 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
7324 * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
7325 _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
7326 * debug/vprintf_chk.c (__vprintf_chk): Likewise.
7327 * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
7328 * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
7329 * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
7330 * debug/printf_chk.c (__printf_chk): Likewise.
7331 * debug/fprintf_chk.c (__fprintf_chk): Likewise.
7332 * debug/wprintf_chk.c (__wprintf_chk): Likewise.
7334 * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
7337 * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
7338 * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
7340 2007-07-16 Jakub Jelinek <jakub@redhat.com>
7343 * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
7344 * malloc/malloc.h (realloc): Likewise.
7346 * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
7347 if one of proc_file_chain streams has that fileno.
7348 * stdio-common/Makefile (tests): Add tst-popen2.
7349 * stdio-common/tst-popen2.c: New test.
7351 2007-07-14 Jakub Jelinek <jakub@redhat.com>
7353 * elf/ldconfig.c: Allow GPLv2 or any later version.
7354 * elf/readlib.c: Likewise.
7355 * elf/chroot_canon.c: Likewise.
7356 * elf/cache.c: Likewise.
7357 * nscd/mem.c: Likewise.
7358 * nscd/getpwuid_r.c: Likewise.
7359 * nscd/grpcache.c: Likewise.
7360 * nscd/aicache.c: Likewise.
7361 * nscd/getsrvbynm_r.c: Likewise.
7362 * nscd/nscd.c: Likewise.
7363 * nscd/servicescache.c: Likewise.
7364 * nscd/getsrvbypt_r.c: Likewise.
7365 * nscd/initgrcache.c: Likewise.
7366 * nscd/gethstbyad_r.c: Likewise.
7367 * nscd/gethstbynm2_r.c: Likewise.
7368 * nscd/getgrnam_r.c: Likewise.
7369 * nscd/nscd_setup_thread.c: Likewise.
7370 * nscd/getpwnam_r.c: Likewise.
7371 * nscd/gai.c: Likewise.
7372 * nscd/connections.c: Likewise.
7373 * nscd/dbg_log.c: Likewise.
7374 * nscd/cache.c: Likewise.
7375 * nscd/hstcache.c: Likewise.
7376 * nscd/nscd_conf.c: Likewise.
7377 * nscd/getgrgid_r.c: Likewise.
7378 * nscd/pwdcache.c: Likewise.
7379 * catgets/gencat.c: Likewise.
7380 * locale/programs/linereader.h: Likewise.
7381 * locale/programs/locarchive.c: Likewise.
7382 * locale/programs/ld-paper.c: Likewise.
7383 * locale/programs/locfile-kw.h: Likewise.
7384 * locale/programs/ld-address.c: Likewise.
7385 * locale/programs/xmalloc.c: Likewise.
7386 * locale/programs/ld-time.c: Likewise.
7387 * locale/programs/localedef.c: Likewise.
7388 * locale/programs/simple-hash.c: Likewise.
7389 * locale/programs/xstrdup.c: Likewise.
7390 * locale/programs/ld-numeric.c: Likewise.
7391 * locale/programs/locfile-kw.gperf: Likewise.
7392 * locale/programs/ld-collate.c: Likewise.
7393 * locale/programs/charmap-kw.gperf: Likewise.
7394 * locale/programs/charmap.h: Likewise.
7395 * locale/programs/charmap-kw.h: Likewise.
7396 * locale/programs/config.h: Likewise.
7397 * locale/programs/locfile.c: Likewise.
7398 * locale/programs/ld-ctype.c: Likewise.
7399 * locale/programs/charmap.c: Likewise.
7400 * locale/programs/ld-messages.c: Likewise.
7401 * locale/programs/repertoire.h: Likewise.
7402 * locale/programs/locale.c: Likewise.
7403 * locale/programs/ld-name.c: Likewise.
7404 * locale/programs/linereader.c: Likewise.
7405 * locale/programs/locfile.h: Likewise.
7406 * locale/programs/3level.h: Likewise.
7407 * locale/programs/ld-monetary.c: Likewise.
7408 * locale/programs/ld-measurement.c: Likewise.
7409 * locale/programs/charmap-dir.c: Likewise.
7410 * locale/programs/ld-identification.c: Likewise.
7411 * locale/programs/localedef.h: Likewise.
7412 * locale/programs/charmap-dir.h: Likewise.
7413 * locale/programs/repertoire.c: Likewise.
7414 * locale/programs/simple-hash.h: Likewise.
7415 * locale/programs/ld-telephone.c: Likewise.
7416 * locale/programs/locale-spec.c: Likewise.
7417 * locale/programs/locfile-token.h: Likewise.
7418 * posix/getconf.c: Likewise.
7419 * iconv/dummy-repertoire.c: Likewise.
7420 * iconv/iconv_charmap.c: Likewise.
7421 * iconv/iconvconfig.c: Likewise.
7422 * iconv/iconv_prog.c: Likewise.
7423 * malloc/memusagestat.c: Likewise.
7424 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
7426 2007-07-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7428 * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
7429 * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
7430 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
7431 check for the first argument.
7433 2007-07-12 Jakub Jelinek <jakub@redhat.com>
7436 * math/tgmath.h (__tgmath_real_type_sub): Formatting.
7437 (__tgmath_real_type): Fix if expr is const int or other const
7438 qualified integral type.
7439 (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
7440 expressions and handle const qualified arguments.
7441 (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
7442 __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
7443 (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
7444 statement expressions.
7445 (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
7446 __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
7447 (__TGMATH_UNARY_IMAG): Define.
7448 (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
7449 * math/Makefile (tests): Add test-tgmath2.
7450 (CFLAGS-test-tgmath2.c): Add.
7451 * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
7452 count_cfloat, count_cldouble): New variables.
7454 (main): Check number of complex calls as well.
7455 (F(compile_test)): Add complex tests and tests with const qualified
7457 (y, z, ccount): Define.
7458 (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
7459 F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
7460 F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
7461 F(cproj)): New functions.
7462 * math/test-tgmath2.c: New test.
7464 2007-07-11 Jakub Jelinek <jakub@redhat.com>
7467 * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
7468 RPATH etc. as "/" rather than "", don't segfault on empty paths,
7470 * dlfcn/Makefile (distribute): Add glreflib3.c.
7471 (module-names): Add glreflib3.
7472 ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
7474 (LDFLAGS_glreflib3.so): New.
7475 * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
7477 * dlfcn/glreflib3.c: New file.
7479 * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
7480 returned -1, return NULL.
7481 * intl/explodename.c (_nl_explode_name): Return -1 if
7482 _nl_normalize_codeset failed.
7484 2007-07-07 Steven Munroe <sjmunroe@us.ibm.com>
7486 * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
7487 Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
7488 and avoid branch misspredicts for > 31 bytes memset case.
7489 * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
7490 Remove toc ref to __cache_line_size.
7492 * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
7493 to get ISA-V2.0 branch hints.
7494 * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
7495 * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
7496 * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
7497 * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
7498 * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
7499 * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
7500 Remove toc ref to __cache_line_size.
7502 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
7503 Include math_ldbl_opt.h.
7505 2007-07-10 Ulrich Drepper <drepper@redhat.com>
7508 * time/strptime_l.c (__strptime_internal): Implement greedy
7509 matching of weekday and month names.
7511 2007-07-09 Roland McGrath <roland@redhat.com>
7513 * elf/elf.h (NT_GNU_ABI_TAG): New macro.
7514 (ELF_NOTE_ABI): Use it.
7515 (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
7517 2007-07-09 Ulrich Drepper <drepper@redhat.com>
7519 * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
7520 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
7522 2007-07-07 Ulrich Drepper <drepper@redhat.com>
7525 * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
7526 in loop to look for conversion specifier to avoid testing of
7528 * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
7529 * stdio-common/bug18.c: New file.
7530 * stdio-common/bug18a.c: New file.
7531 * stdio-common/bug19.c: New file.
7532 * stdio-common/bug19a.c: New file.
7534 2007-07-05 Mike Frysinger <vapier@gentoo.org>
7536 * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
7539 2007-07-01 Jakub Jelinek <jakub@redhat.com>
7541 * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
7542 * elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
7543 Return NULL if mmap failed instead of asserting it does not.
7544 (calloc): Check for integer overflow.
7546 * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
7549 2007-07-03 Jakub Jelinek <jakub@redhat.com>
7552 * nis/nss-default.c: Include errno.h.
7553 (init): Preserve errno.
7555 2007-07-02 Ulrich Drepper <drepper@redhat.com>
7557 * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
7559 2007-06-30 Ulrich Drepper <drepper@redhat.com>
7561 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
7563 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
7565 * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
7567 2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
7569 * sysdeps/s390/dl-procinfo.c: New file.
7570 * sysdeps/s390/dl-procinfo.h: New file.
7571 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
7573 2007-06-29 Jakub Jelinek <jakub@redhat.com>
7575 * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
7576 in PT_NOTE segments with multiple notes.
7577 * elf/readelflib.c (process_elf_file): Likewise.
7579 2007-06-22 Ulrich Drepper <drepper@redhat.com>
7581 * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
7584 2007-06-19 Ulrich Drepper <drepper@redhat.com>
7586 * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
7588 2007-06-13 Jakub Jelinek <jakub@redhat.com>
7590 * include/link.h: Don't include rtld-lowlevel.h.
7591 (struct link_map): Remove l_scope_lock.
7592 * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
7593 (_dl_scope_free_list): New field (variable) in _rtld_global.
7594 (DL_LOOKUP_SCOPE_LOCK): Remove.
7595 (_dl_scope_free): New prototype.
7596 * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
7597 Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
7598 (_dl_profile_fixup): Likewise.
7599 * elf/dl-sym.c (do_sym): Likewise. Use wrapped _dl_lookup_symbol_x
7600 whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
7601 THREAD_GSCOPE_RESET_FLAG around it.
7602 * elf/dl-close.c (_dl_close_worker): Don't use
7603 __rtld_mrlock_{change,done}. Call _dl_scope_free on the old
7604 scope. Make sure THREAD_GSCOPE_WAIT () happens if any old
7605 scopes were queued or if l_scope_mem has been abandoned.
7606 * elf/dl-open.c (_dl_scope_free): New function.
7607 (dl_open_worker): Use it. Don't use __rtld_mrlock_{change,done}.
7608 * elf/dl-support.c (_dl_scope_free_list): New variable.
7609 * elf/dl-lookup.c (add_dependency): Remove flags argument.
7610 Remove DL_LOOKUP_SCOPE_LOCK handling.
7611 (_dl_lookup_symbol_x): Adjust caller. Remove DL_LOOKUP_SCOPE_LOCK
7613 * elf/dl-object.c (_dl_new_object): Don't use
7614 __rtld_mrlock_initialize.
7616 2007-06-19 Ulrich Drepper <drepper@redhat.com>
7618 * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
7620 (rtld_global_ro): Likewise.
7622 2007-06-18 Jakub Jelinek <jakub@redhat.com>
7624 * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
7625 Move PT_LOAD checking to...
7626 (_dl_addr_inside_object): ... here, new function.
7627 * elf/dl-sym.c (do_sym): If not l_contiguous,
7628 call _dl_addr_inside_object.
7629 * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
7630 * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
7631 * elf/dl-open.c (dl_open_worker): Likewise.
7632 (_dl_addr_inside_object): New function if IS_IN_rtld.
7633 * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
7634 holes are present or are PROT_NONE protected.
7635 * include/link.h (struct link_map): Add l_contiguous field.
7636 * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
7638 2007-06-18 Jakub Jelinek <jakub@redhat.com>
7639 Tomas Janousek <tjanouse@redhat.com>
7640 Ulrich Drepper <drepper@redhat.com>
7643 * resolv/res_send.c (send_dg): Remove socket_pf. Use ipv6_unavail
7644 member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
7646 * resolv/resolv.h (__res_state): Add ipv6_unavail member. Make
7647 unused member a bitmap.
7648 * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
7649 servers are configured.
7651 2007-06-18 Jakub Jelinek <jakub@redhat.com>
7653 * elf/rtld.c (dl_main): Don't call init_tls more than once.
7655 2007-06-17 Andreas Schwab <schwab@suse.de>
7657 * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
7659 2007-06-16 Andreas Jaeger <aj@suse.de>
7662 * sysdeps/unix/sysv/linux/sys/ptrace.h
7663 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
7664 PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
7665 PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
7666 PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
7667 PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
7669 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7670 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7671 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7672 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7674 2007-06-16 Ulrich Drepper <drepper@redhat.com>
7677 * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
7678 determining whether there are IPv4/IPv6 addresses, ignore loopback
7681 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
7683 * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
7684 * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
7685 as the return type. Change type of "r" variable to CMPtype.
7686 * soft-fp/eqsf2.c (__eqsf2): Likewise.
7687 * soft-fp/eqtf2.c (__eqtf2): Likewise.
7688 * soft-fp/gedf2.c (__gedf2): Likewise.
7689 * soft-fp/gesf2.c (__gesf2): Likewise.
7690 * soft-fp/getf2.c (__getf2): Likewise.
7691 * soft-fp/ledf2.c (__ledf2): Likewise.
7692 * soft-fp/lesf2.c (__lesf2): Likewise.
7693 * soft-fp/letf2.c (__letf2): Likewise.
7694 * soft-fp/unorddf2 (__unorddf2): Likewise.
7695 * soft-fp/unordsf2 (__unordsf2): Likewise.
7696 * soft-fp/unordtf2 (__unordtf2): Likewise.
7698 2007-06-09 Ulrich Drepper <drepper@redhat.com>
7700 * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
7701 make sure gcc doesn't mess around with this.
7703 2007-06-08 Ulrich Drepper <drepper@redhat.com>
7705 * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
7707 2007-06-08 Jakub Jelinek <jakub@redhat.com>
7709 * elf/dl-close.c (_dl_close_worker): Remove all to be removed
7710 libraries from the global scope at once and call THREAD_GSCOPE_WAIT
7711 at most once per _dl_close_worker.
7713 2007-06-08 Ulrich Drepper <drepper@redhat.com>
7715 * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
7716 __sched_cpucount as const.
7717 * posix/sched_cpucount.c: Adjust.
7719 * posix/sched_cpucount.c (__sched_cpucount): Allow using special
7720 instruction for counting bits.
7721 * sysdeps/x86_64/sched_cpucount.c: New file.
7723 2007-06-07 Ulrich Drepper <drepper@redhat.com>
7725 * configure.in: Avoid variable named BASH.
7726 * config.make.in: Likewise.
7727 Patch in part by Mike Frysinger.
7729 2007-06-06 Jakub Jelinek <jakub@redhat.com>
7732 * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
7733 pseudo-zeros as zero.
7734 * sysdeps/x86_64/ldbl2mpn.c: New file.
7735 * sysdeps/ia64/ldbl2mpn.c: New file.
7737 2007-06-04 Jakub Jelinek <jakub@redhat.com>
7739 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
7740 unused ily variable. Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
7741 Remove unreachable code at the end.
7743 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
7745 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
7746 ldbl-128ibm in comment.
7747 (fpclassifyl): Correct classification of denormals.
7748 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
7749 return value for MIN denormal. Rewrite using long double math too
7750 correctly handle denormals and canonicalize the results.
7752 2007-06-05 Jakub Jelinek <jakub@redhat.com>
7754 * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
7755 (__mpn_construct_long_double): Fix conversion where result ought
7756 to be smaller than __LDBL_MIN__, or the low double should be
7757 denormal. Fix decision where to negate low double - honor round
7759 * stdio-common/tst-sprintf2.c: Include string.h.
7760 (COMPARE_LDBL): Define.
7761 (TEST): Also test whether a string hexadecimal float representation
7762 can be parsed back to the number.
7763 (main): Add a couple of further tests.
7765 2007-06-04 Jakub Jelinek <jakub@redhat.com>
7767 * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
7768 (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
7769 is non-zero, but smaller than 2 * __DBL_MIN__.
7770 * stdio-common/tst-sprintf2.c: New test.
7771 * stdio-common/Makefile (tests): Add tst-sprintf2.
7773 * math/test-misc.c (main): Don't run last batch of tests with
7774 IBM long double format.
7776 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7778 * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
7779 * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
7780 * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
7781 * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
7782 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7783 * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
7784 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
7785 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
7786 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
7787 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7788 * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
7789 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
7791 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
7793 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
7795 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
7797 * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
7799 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
7800 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
7802 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
7804 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
7806 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
7808 * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
7811 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7813 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
7814 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
7815 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
7816 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
7817 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
7818 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
7819 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
7820 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
7822 2007-05-22 Steven Munroe <sjmunroe@us.ibm.com>
7824 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
7825 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7826 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
7827 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7828 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
7829 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7830 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
7831 (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7833 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
7835 * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
7836 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
7837 * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
7838 * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
7840 2007-03-15 Steven Munroe <sjmunroe@us.ibm.com>
7842 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
7843 [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
7845 2006-02-13 Steven Munroe <sjmunroe@us.ibm.com>
7847 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
7848 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
7849 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
7850 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
7852 2006-10-20 Steven Munroe <sjmunroe@us.ibm.com>
7854 * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
7855 * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
7857 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
7859 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
7860 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
7862 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
7863 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
7864 * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
7865 * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
7867 2006-09-29 Steven Munroe <sjmunroe@us.ibm.com>
7869 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
7870 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
7871 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
7872 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
7874 2006-09-28 Steven Munroe <sjmunroe@us.ibm.com>
7876 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
7877 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
7878 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
7879 * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7880 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
7881 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7883 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
7885 * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
7886 * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
7887 * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
7888 * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
7890 2006-06-15 Steven Munroe <sjmunroe@us.ibm.com>
7892 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
7893 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
7894 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
7895 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
7896 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
7897 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
7898 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
7899 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
7900 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
7901 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
7902 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
7903 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
7904 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
7905 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
7906 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
7907 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
7909 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
7911 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
7912 * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
7914 2007-06-01 Steven Munroe <sjmunroe@us.ibm.com>
7916 * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
7917 * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
7919 2007-05-31 Steven Munroe <sjmunroe@us.ibm.com>
7921 * sysdeps/powerpc/powerpc32/970/Implies: New file.
7922 * sysdeps/powerpc/powerpc32/power5/Implies: New file.
7923 * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
7924 * sysdeps/powerpc/powerpc32/power6/Implies: New file.
7925 * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
7926 * sysdeps/powerpc/powerpc64/970/Implies: New file.
7927 * sysdeps/powerpc/powerpc64/power5/Implies: New file.
7928 * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
7929 * sysdeps/powerpc/powerpc64/power6/Implies: New file.
7930 * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
7932 2007-05-21 Steven Munroe <sjmunroe@us.ibm.com>
7934 * sysdeps/powerpc/powerpc32/power4/memset.S: New file
7936 2007-03-13 Steven Munroe <sjmunroe@us.ibm.com>
7938 * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
7939 branch miss-predicts. Ensure that cache line crossing does not impact
7942 2006-12-13 Steven Munroe <sjmunroe@us.ibm.com>
7944 * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
7945 "../../powerpc32/power4/memcopy.h".
7946 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
7947 "../../powerpc32/power4/wordcopy.c".
7949 2006-10-03 Steven Munroe <sjmunroe@us.ibm.com>
7951 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
7952 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
7953 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
7954 * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
7955 * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
7956 * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
7958 2006-09-10 Steven Munroe <sjmunroe@us.ibm.com>
7960 * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
7962 2006-08-31 Steven Munroe <sjmunroe@us.ibm.com>
7964 * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
7965 * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
7966 * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
7967 * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
7968 * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
7969 * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
7970 * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
7971 * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
7973 2006-07-06 Steven Munroe <sjmunroe@us.ibm.com>
7975 * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
7977 2006-03-20 Steven Munroe <sjmunroe@us.ibm.com>
7979 * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
7980 * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
7981 * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
7982 * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
7983 * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
7984 * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
7985 * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
7987 2007-05-29 Roland McGrath <roland@redhat.com>
7989 * po/Makefile (po-sed-cmd): New variable.
7990 (libc.pot.files): Move sed command text in there, avoid \ inside ''.
7992 2007-05-29 Ulrich Drepper <drepper@redhat.com>
7994 * crypt/md5-crypt.c: Fix comment.
7996 * nscd/nscd_helper.c (get_mapping): Handle short replies instead
7997 of crashing. When this is the case or if the reply is malformed,
7998 don't try to close the new file descriptor since it does not
8000 Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
8002 2007-05-28 Jakub Jelinek <jakub@redhat.com>
8004 * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
8005 if __NR_utimensat is not defined.
8007 2007-05-26 Ulrich Drepper <drepper@redhat.com>
8009 * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
8011 2007-05-25 Jakub Jelinek <jakub@redhat.com>
8013 * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
8014 (open): Fix comment typos. Don't call __open_2 if flags
8015 is a compile time constant without O_CREAT.
8016 (__open64_2): Add nonnull attribute.
8017 (open64): Fix comment typos. Don't call __open64_2 if flags
8018 is a compile time constant without O_CREAT.
8019 (__openat_2): Add nonnull attribute, fix nonnull attribute
8021 (openat): Fix comment typos. Don't call __openat_2 if flags
8022 is a compile time constant without O_CREAT.
8023 (__openat64_2): Add nonnull attribute, fix nonnull attribute
8025 (openat64): Fix comment typos. Don't call __openat64_2 if flags
8026 is a compile time constant without O_CREAT.
8028 2007-05-24 Ulrich Drepper <drepper@redhat.com>
8030 * Makerules (sysd-rules): Define PTW for ptw-* files.
8031 * Versions: Define GLIBC_2.7 for libc.
8032 * include/stdio.h: Declare __fortify_fail.
8033 * debug/fortify_fail.c: New file.
8034 * debug/Makefile (routines): Add fortify_fail.
8035 * debug/chk_fail.c: Use __fortify_fail.
8036 * debug/stack_chk_fail.c: Likewise.
8037 * io/Versions: Export __open_2, __open64_2, __openat_2, and
8038 __openat64_2 for GLIBC_2.7.
8039 * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
8040 * io/open.c: Define *_2 variant of function which checks for O_CREAT
8041 and fails if necessary.
8042 * io/open64.c: Likewise.
8043 * io/openat.c: Likewise.
8044 * io/openat64.c: Likewise.
8045 * sysdeps/unix/sysv/linux/open64.c: Likewise.
8046 * sysdeps/unix/sysv/linux/openat.c: Likewise.
8047 * sysdeps/unix/sysv/linux/openat64.c: Likewise.
8048 * io/bits/fcntl2.h: New file.
8049 * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
8051 * include/bits/fcntl2.h: New file.
8052 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8054 * sysdeps/unix/sysv/linux/open_2.c: New file.
8056 2007-05-21 Ulrich Drepper <drepper@redhat.com>
8058 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
8059 as second parameter to handle_intel.
8061 * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
8064 * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
8066 * sysdeps/x86_64/cacheinfo.c: ... here. New file.
8067 * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
8069 * sysdeps/x86_64/memcpy.S: Complete rewrite.
8070 * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
8071 Patch by Evandro Menezes <evandro.menezes@amd.com>.
8073 * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
8075 2007-05-21 Jakub Jelinek <jakub@redhat.com>
8078 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
8079 * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
8080 * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
8082 * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
8085 * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
8086 reinitialize workend at the start of each do_positional format spec
8087 loop, free workstart before do_positional loops.
8088 (printf_unknown): Fix size of work_buffer.
8089 * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
8091 * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
8092 (public_sET_STATe): If ms->version < 3, put all chunks into
8093 unsorted chunks and clear {fd,bk}_nextsize fields of largebin
8096 * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
8097 * malloc/hooks.c: Likewise.
8098 * malloc/arena.c: Likewise.
8099 * malloc/malloc.c (do_check_malloc_state): Don't assert
8100 n_mmaps is not greater than n_mmaps_max. This removes the need
8101 for the previous change.
8103 * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
8106 2007-05-19 Ulrich Drepper <drepper@redhat.com>
8108 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
8109 Define for kernel >= 2.6.22.
8111 2007-05-18 Ulrich Drepper <drepper@redhat.com>
8113 * elf/dl-close.c (_dl_close_worker): When removing object from
8114 global scope, wait for all lookups to finish afterwards.
8115 * elf/dl-open.c (add_to_global): When global scope array must
8116 grow, allocate a new one and free old array only after all
8118 * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
8119 (_dl_lookup_symbol_x): Likewise.
8120 * elf/dl-support.c: Define _dl_wait_lookup_done.
8121 * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
8122 _dl_wait_lookup_done.
8124 * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
8125 not overlapping with arena.
8127 * malloc/mcheck.c (reallochook): If size==0, free the block.
8129 * rt/tst-shm.c: Use fstat64 instead of fstat.
8131 * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
8132 __NR_sync_file_range is not defined.
8134 2007-05-17 Ulrich Drepper <drepper@redhat.com>
8136 Dummy files to prevent stub versions from being used.
8137 * sysdeps/x86_64/fpu/k_cosl.c: New file.
8138 * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
8139 * sysdeps/x86_64/fpu/k_sinl.c: New file.
8140 * sysdeps/x86_64/fpu/k_tanl.c: New file.
8142 * version.h (VERSION): Set to 2.6.90.
8144 2007-05-14 Ulrich Drepper <drepper@redhat.com>
8146 * version.h (VERSION): Define to 2.6.
8147 * include/features.h (__GLIBC_MINOR__): Define to 6.
8149 * malloc/malloc.c: Use all small bin slots on 64-bit archs.
8151 * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
8154 2007-05-13 Ulrich Drepper <drepper@redhat.com>
8156 * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
8157 number of mmaps. n_mmaps_max is the target.
8158 * malloc/hooks.c: Likewise.
8159 * malloc/arena.c: Likewise.
8161 2007-05-12 Andreas Jaeger <aj@suse.de>
8163 * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
8166 2007-05-11 Ulrich Drepper <drepper@redhat.com>
8168 * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
8169 adding new variables.
8171 * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
8172 optimize. Completely extend global scope array before making the
8173 new entries visible.
8175 2007-05-10 Ulrich Drepper <drepper@redhat.com>
8177 * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
8178 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
8181 * include/link.h: Move l_version and l_nversion members around to
8184 * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
8186 * sysdeps/unix/sysv/linux/sched_setaffinity.c
8187 (__sched_setaffinity_new): If syscall was successful and
8188 RESET_VGETCPU_CACHE is defined, use it before returning.
8189 * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
8191 * io/sys/stat.h: Make sure struct timespec is defined for
8194 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
8196 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
8197 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
8198 * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
8199 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
8200 * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
8201 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
8202 * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
8203 * io/sys/stat.h: Declare utimensat, futimens.
8204 * io/utimensat.c: New file.
8205 * io/futimens.c: New file.
8206 * sysdeps/unix/sysv/linux/utimensat.c: New file.
8207 * sysdeps/unix/sysv/linux/futimens.c: New file.
8208 * io/Makefile (routines): Add utimensat, futimens.
8209 * io/Versions: Add utimensat, futimens to GLIBC_2.6.
8210 * sysdeps/unix/sysv/linux/lutimes.c: New file.
8211 * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
8214 * include/sys/cdefs.h: Redefine __nonnull so that test for
8215 incorrect parameters in the libc code itself are not omitted.
8217 2007-05-09 Jakub Jelinek <jakub@redhat.com>
8219 * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
8220 exception in addition to inexact when asked to raise only FE_INEXACT.
8223 * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
8226 2007-05-07 Ulrich Drepper <drepper@redhat.com>
8229 * string/strfry.c (strfry): Make result more random.
8231 2007-05-07 Richard Henderson <rth@redhat.com>
8233 * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
8234 if __NO_LONG_DOUBLE_MATH.
8235 * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
8236 available in the compiler, add .arch directive to the assembly.
8238 2007-05-07 Jakub Jelinek <jakub@redhat.com>
8240 * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
8241 compat_symbol to GLIBC_2_1.
8242 * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
8243 * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
8244 * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
8245 * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
8246 * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
8247 * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
8248 * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
8250 (__isnanl): New compat_symbol.
8252 2007-05-07 Ulrich Drepper <drepper@redhat.com>
8253 Jakub Jelinek <jakub@redhat.com>
8255 * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
8256 (new_heap): Initialize mprotect_size.
8257 (grow_heap): When growing, only mprotect from mprotect_size till
8258 new_size if mprotect_size is smaller. When shrinking, use PROT_NONE
8259 MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
8261 2007-04-30 Steven Munroe <sjmunroe@us.ibm.com>
8262 Peter Bergner <bergner@us.ibm.com>
8264 * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
8265 Define FE_NOMASK_ENV as FE_EANBLED_ENV. Define FE_MASK_ENV.
8266 * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
8267 * sysdeps/powerpc/fpu/fe_mask.c: New file.
8268 * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
8269 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
8270 Call __fe_mask_env() if all FP exceptions disabled.
8271 * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
8272 from old FPSCR to new fenv to propagate DFP rounding modes.
8273 Call __fe_mask_env() if FP exceptions previously enabled.
8274 * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
8275 exceptions from env. Use __fe_nomask_env() or __fe_mask_env() when
8276 transitioning from all exceptions disabled to any exception enabled
8278 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
8279 merge exceptions from env. Call __fe_nomask_env or __fe_mask_env
8280 when transitioning from all exceptions disabled to any exception
8281 enabled or visa versa.
8282 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
8283 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
8284 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
8285 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
8286 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
8287 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
8289 2007-05-06 Ulrich Drepper <drepper@redhat.com>
8292 * posix/unistd.h: Remove __THROW from fdatasync.
8294 2007-05-06 Mike Frysinger <vapier@gentoo.org>
8297 * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
8299 2007-05-06 Ulrich Drepper <drepper@redhat.com>
8301 * stdio-common/vfprintf.c (process_string_arg): Optimize
8302 ridiculous precision in wide char code printing multi-byte string.
8303 Reported by Jim Meyering <jim@meyering.net>.
8306 * elf/dl-addr.c (_dl_addr): Compare address with actual segment
8307 boundaries to work around systems with overlapping binary loading.
8308 Based on a patch by Suzuki <suzuki@in.ibm.com>.
8310 2007-05-04 Ulrich Drepper <drepper@redhat.com>
8312 * stdio-common/vfprintf.c (process_string_arg): Adjust call to
8313 __mbsnrtowcs after last change.
8315 * locale/programs/linereader.c (get_symname): Fix adding final NUL.
8316 (get_ident): Likewise.
8318 2007-05-03 Jakub Jelinek <jakub@redhat.com>
8320 * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
8321 with setting the sticky bit.
8322 * math/test-misc.c (main): Add more truncation tests.
8324 2007-04-14 Uros Bizjak <ubizjak@gmail.com>
8326 * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
8327 double in the function declaration.
8328 * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
8329 double in the function declaration.
8330 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
8331 float in the function declaration.
8332 * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
8333 float in the function declaration.
8335 * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
8336 denormal operands. Do not generate FP_EX_DENORM exception.
8337 (FP_UNPACK_RAW_EP): Ditto.
8338 (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
8339 undefined _FP_UNPACK_RAW_E.
8340 (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
8341 undefined _FP_UNPACK_RAW_EP.
8342 (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
8343 undefined _FP_PACK_RAW_E.
8344 (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
8345 undefined _FP_PACK_RAW_EP.
8347 * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
8349 * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
8352 2007-04-16 Uros Bizjak <ubizjak@gmail.com>
8353 Jakub Jelinek <jakub@redhat.com>
8355 * soft-fp/op-common.h (FP_EXTEND): Do not abort when
8356 _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs. Handle denormals for
8358 * soft-fp/op-common.h (FP_TRUNC): Ditto.
8360 2007-05-03 Jakub Jelinek <jakub@redhat.com>
8362 * math/test-misc.c (main): Add tests for rounding long double
8363 values close to smallest double denormalized value to double.
8365 2007-04-30 Joseph Myers <joseph@codesourcery.com>
8367 * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
8368 condition for truncating to 0. Set sticky bit for such
8371 2007-05-02 Jakub Jelinek <jakub@redhat.com>
8373 * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
8374 fixed length array for ignore.
8376 2007-04-30 Ulrich Drepper <drepper@redhat.com>
8379 * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
8380 stack for large precisions.
8381 * stdio-common/test-vfprintf.c (main): Add test for large
8384 2007-04-30 Jakub Jelinek <jakub@redhat.com>
8386 * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
8388 * stdio-common/tfformat.c (sprint_doubles): Add a new test.
8391 * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
8392 account in the size check.
8393 * resolv/tst-inet_ntop.c: New test.
8394 * resolv/Makefile (tests): Add tst-inet_ntop.
8396 2007-04-30 Ulrich Drepper <drepper@redhat.com>
8397 Jakub Jelinek <jakub@redhat.com>
8400 * malloc/malloc.c: Keep separate list for first blocks on the bin
8401 lists with a given size. This helps skipping over list elements
8402 we know won't fit in two places.
8403 Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
8405 2007-04-28 Ulrich Drepper <drepper@redhat.com>
8408 * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
8409 label to Teredo tunnel addresses 2001://32.
8411 2007-04-27 Ulrich Drepper <drepper@redhat.com>
8413 * locale/programs/ld-collate.c (collate_read): Allow order_start
8416 * locale/programs/ld-collate.c (collate_read): Fix printing of
8420 * locale/C-translit.h.in: Add entry for U2044.
8423 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
8424 hexa-decimal floats without exponent.
8425 * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
8427 2007-04-25 Ulrich Drepper <drepper@redhat.com>
8429 * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
8430 * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
8431 * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
8432 * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
8434 * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
8437 2007-04-25 Jakub Jelinek <jakub@redhat.com>
8439 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
8440 of 0 after the out_fail label.
8442 2007-04-25 Ulrich Drepper <drepper@redhat.com>
8445 * iconv/gconv_charset.h (strip): Allow ':'.
8446 * iconv/iconv_open.c (iconv_open): Adjust comment.
8448 2007-04-25 Jakub Jelinek <jakub@redhat.com>
8450 * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
8453 2007-04-23 Jakub Jelinek <jakub@redhat.com>
8456 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
8457 alignment of buffer and tmp_buffer.
8458 * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
8459 internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
8460 alignment of buffer.
8461 * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise. Handle buflen
8462 bigger than INT_MAX.
8463 * resolv/nss_dns/dns-network.c (getanswer_r): Likewise. Add errnop and
8464 h_errnop arguments. Fail if buflen is too small.
8465 (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
8467 2007-04-23 Jakub Jelinek <jakub@redhat.com>
8470 * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
8471 name. Patch by Aurelien Jarno <aurelien@aurel32.net>.
8473 2007-04-22 Roland McGrath <roland@redhat.com>
8475 * elf/elf.h (NT_PRXFPREG): New macro.
8477 2007-04-19 Andreas Jaeger <aj@suse.de>
8480 * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
8481 IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
8484 2007-04-19 Ulrich Drepper <drepper@redhat.com>
8486 * include/sys/mman.h: Mark madvise hidden.
8487 * misc/madvise.c: Add libc_hidden_def.
8489 2007-04-06 Jakub Jelinek <jakub@redhat.com>
8491 * nis/nis_domain_of.c (__nis_domain_of): New function.
8492 * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
8493 * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
8494 * nis/nis_call.c (rec_dirsearch): Likewise.
8495 (first_shoot): Likewise. Remove search_parent_first argument.
8496 (struct nis_server_cache): Rename search_parent_first field
8498 (nis_server_cache_search, nis_server_cache_add): Rename
8499 search_parent_first argument to search_parent.
8500 (__nisfind_server): Likewise. If search_parent, call
8503 2007-04-18 Ulrich Drepper <drepper@redhat.com>
8505 * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
8507 2007-04-17 Ulrich Drepper <drepper@redhat.com>
8510 * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
8512 2007-04-16 Ulrich Drepper <drepper@redhat.com>
8515 * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
8517 2007-04-15 Jakub Jelinek <jakub@redhat.com>
8519 * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
8520 INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
8521 current number of locales in SUPPORTED.
8522 (create_archive): Initialize serial.
8523 (enlarge_archive): Preserve aliases rather than duplicating
8526 2007-04-13 Jakub Jelinek <jakub@redhat.com>
8528 * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
8529 after _IO_un_link, not before it.
8531 * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
8532 special case handling when wcp == wstartp + 1. Fix a comment typo.
8533 * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
8535 2007-03-30 Jakub Jelinek <jakub@redhat.com>
8537 * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
8538 __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
8539 _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
8541 * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
8542 _IO_file_xsgetn_maybe_mmap): Likewise.
8543 * libio/oldfileops.c (old_do_write): Likewise.
8544 * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
8545 _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
8546 _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
8547 _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
8548 _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
8549 _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
8550 _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
8551 _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
8552 _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
8553 _IO_file_underflow, _IO_file_underflow_mmap,
8554 _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
8555 _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
8556 _IO_file_sync, _IO_file_close_it, _IO_file_finish,
8557 _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
8558 _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
8559 _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
8560 _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
8561 _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
8562 _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
8563 _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
8564 _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
8565 _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
8566 _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
8567 _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
8568 _IO_adjust_column_internal, _IO_default_uflow_internal,
8569 _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
8570 _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
8571 _IO_file_setbuf_internal, _IO_file_seekoff_internal,
8572 _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
8573 _IO_file_close_it_internal, _IO_file_underflow_internal,
8574 _IO_file_overflow_internal, _IO_file_attach_internal,
8575 _IO_file_fopen_internal, _IO_file_sync_internal,
8576 _IO_file_finish_internal, _IO_wfile_xsputn_internal,
8577 _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
8578 _IO_switch_to_wget_mode_internal, _IO_padn_internal,
8579 _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
8580 _IO_seekpos_unlocked): Likewise.
8581 (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
8582 _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
8584 2007-04-16 Jakub Jelinek <jakub@redhat.com>
8586 * locale/programs/locarchive.c (show_archive_content): Fix sizeof
8587 argument in xmalloc size computation.
8589 2007-04-01 Jakub Jelinek <jakub@redhat.com>
8591 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
8592 math_opt_barrier and math_force_eval macros.
8594 2007-03-27 Jakub Jelinek <jakub@redhat.com>
8597 * math/math_private.h (math_opt_barrier, math_force_eval): Define.
8598 * sysdeps/i386/fpu/math_private.h: New file.
8599 * sysdeps/x86_64/fpu/math_private.h: New file.
8600 * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
8601 math_force_eval macros. Use "+m" constraint on asm rather than
8603 * math/s_nextafter.c (__nextafter): Likewise.
8604 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
8606 * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
8607 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
8608 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8609 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
8610 math_opt_barrier and math_force_eval macros.
8611 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
8612 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
8613 * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
8614 (__nexttoward): Use math_opt_barrier and
8615 math_force_eval macros. Use "+m" constraint on asm rather than
8616 "=m" and "m". Only use asm to force double result if
8617 FLT_EVAL_METHOD is 2.
8618 * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
8619 (__nexttowardf): Use math_opt_barrier and
8620 math_force_eval macros. Use "+m" constraint on asm rather than
8621 "=m" and "m". Only use asm to force double result if
8622 FLT_EVAL_METHOD is not 0.
8623 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
8624 (__nexttowardf): Use math_opt_barrier and
8625 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
8626 x to float using asm.
8627 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
8628 (__nldbl_nexttowardf): Use math_opt_barrier and
8629 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
8630 x to float using asm.
8631 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
8632 (__nexttowardf): Use math_opt_barrier and math_force_eval
8633 macros. If FLT_EVAL_METHOD is not 0, force x to float using asm.
8634 * math/bug-nextafter.c (zero, inf): New variables.
8635 (main): Add new tests.
8636 * math/bug-nexttoward.c (zero, inf): New variables.
8637 (main): Add new tests.
8639 2007-03-22 Jakub Jelinek <jakub@redhat.com>
8642 * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
8643 exceptions both in SW and MXCSR.
8644 * sysdeps/x86_64/fpu/feupdateenv.c: New file.
8645 * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
8646 * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
8647 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8648 in MXCSR if SSE is available.
8649 * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
8651 (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
8653 * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
8654 Return 0 rather than 1.
8655 * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
8656 Remove incorrect part of a comment. Fix argument to feraiseexcept.
8657 * math/test-fenv.c (feholdexcept_tests): New function.
8660 2007-01-05 Richard B. Kreckel <kreckel@ginac.de>
8663 * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
8666 2007-04-13 Jakub Jelinek <jakub@redhat.com>
8669 * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
8670 Reported by David Anderson <davea42@earthlink.net>.
8672 2007-04-07 Ulrich Drepper <drepper@redhat.com>
8674 * posix/sys/wait.h: Remove unnecessary forward declaration.
8676 2007-04-05 Jakub Jelinek <jakub@redhat.com>
8678 * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
8679 with obj->do_servers after first_shoot.
8681 2007-04-03 Ulrich Drepper <drepper@redhat.com>
8683 * posix/Makefile (routines): Add sched_cpucount.
8684 (tests): Add tst-cpucount.
8685 * posix/sched_cpucount.c: New file.
8686 * posix/tst-cpucount.c: New file.
8687 * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
8688 * bits/sched.h: Define __CPU_COUNT. Declare __sched_cpucount.
8689 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
8690 * posix/sched.h: Define CPU_COUNT.
8692 2007-03-27 Jakub Jelinek <jakub@redhat.com>
8694 * posix/fnmatch.c (STRUCT): Define.
8695 (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
8696 * posix/fnmatch_loop.c (struct STRUCT): New type.
8697 (FCT): Add ends argument. If ends != NULL and normal * is
8698 seen in the pattern, store current pattern and string pointers
8699 and return. Adjust recursive calls.
8700 (EXT): Adjust FCT callers.
8701 (STRUCT): Undef at the end of the file.
8702 * posix/Makefile (tests): Add tst-fnmatch2.
8703 * posix/tst-fnmatch2.c: New test.
8705 2007-04-01 Jakub Jelinek <jakub@redhat.com>
8707 * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
8710 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
8711 Change last argument to unsigned int.
8713 2007-03-23 Jakub Jelinek <jakub@redhat.com>
8715 * scripts/check-local-headers.sh: Filter out sys/capability.h.
8717 2007-03-22 Jakub Jelinek <jakub@redhat.com>
8719 * config.h.in (HAVE_LIBCAP): Add.
8720 * nscd/selinux.h: Include sys/capability.h rather than non-existent
8722 * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
8723 free_caps. Cast away const from 4th cap_set_flag argument.
8725 2007-03-26 Ulrich Drepper <drepper@redhat.com>
8727 * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
8729 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8730 Add sync_file_range.
8731 Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
8733 2007-03-19 Steven Munroe <sjmunroe@us.ibm.com>
8735 * sysdeps/powerpc/bits/atomic.h
8736 [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
8737 [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
8738 (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8739 (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
8740 (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8741 (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
8742 * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
8743 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8744 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8745 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8746 * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
8747 Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8748 (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8749 (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8750 (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8751 (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
8752 (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8753 (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
8754 (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8755 (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
8757 2007-03-20 Jakub Jelinek <jakub@redhat.com>
8759 * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8760 (__cache_line_size): Define the variable here. Add
8761 attribute_hidden, remove weak_extern.
8762 (__libc_start_main): Set __cache_line_size
8764 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
8765 (__cache_line_size): Define the variable here. Add
8766 attribute_hidden, remove weak_extern.
8767 (DL_PLATFORM_AUXV): Set __cache_line_size
8769 * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
8770 weak_extern, add attribute_hidden.
8771 (__elf_machine_runtime_setup): Assume __cache_line_size is always
8773 * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
8775 * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
8777 2007-03-26 Jakub Jelinek <jakub@redhat.com>
8780 * timezone/africa: Update from tzdata2007d.
8781 * timezone/asia: Likewise.
8782 * timezone/australasia: Likewise.
8783 * timezone/backward: Likewise.
8784 * timezone/europe: Likewise.
8785 * timezone/iso3166.tab: Likewise.
8786 * timezone/leapseconds: Likewise.
8787 * timezone/northamerica: Likewise.
8788 * timezone/southamerica: Likewise.
8789 * timezone/zone.tab: Likewise.
8791 * timezone/private.h: Update from tzcode2007d.
8792 * timezone/zdump.c: Likewise.
8793 * timezone/zic.c: Likewise.
8795 2007-03-21 Jakub Jelinek <jakub@redhat.com>
8797 * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
8798 (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
8800 (nis_server_cache_search, nis_server_cache_add): New functions.
8801 (__nisfind_server): Use them. Add dbp and flags argument, if
8802 call __nisbind_create.
8803 (__nisbind_create): Add server_used and current_ep arguments,
8804 only call __nis_findfastest if server_used is ~0.
8805 (__do_niscall2, __prepare_niscall): Adjust callers.
8806 (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
8807 ckey_cache_euid, ckey_cache_lock): New variables.
8808 (get_ckey): New function.
8809 (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
8810 __pmap_getnisport. Save __pmap_getnisport result in
8811 dbp->addr.sin_port if non-zero. Use get_ckey to create conversation
8813 * nis/nis_lookup.c (nis_lookup): Likewise.
8814 * nis/nis_table.c (nis_list): Likewise.
8815 * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
8818 * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
8819 _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
8820 * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
8821 _nss_nisplus_getservbyport_r): Likewise.
8822 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
8823 _nss_nisplus_getnetbyaddr_r): Likewise.
8824 * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
8825 * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
8826 _nss_nisplus_getntohost_r): Likewise.
8827 * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
8828 _nss_nisplus_getrpcbynumber_r): Likewise.
8830 2007-03-20 Jakub Jelinek <jakub@redhat.com>
8832 * configure.in (libc_cv_gnu89_inline): Only do compile test.
8833 * configure: Rebuilt.
8835 * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
8837 * soft-fp/extended.h (_FP_UNION_E): Likewise.
8839 2006-06-07 Joseph Myers <joseph@codesourcery.com>
8842 * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
8845 2007-03-18 Jakub Jelinek <jakub@redhat.com>
8847 * nscd/gai.c: Include alloca.h.
8848 (__libc_use_alloca): Define.
8850 2007-03-16 Jakub Jelinek <jakub@redhat.com>
8852 * elf/dl-open.c (dl_open_worker): Declare l in 2 different
8854 * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
8855 (DL_DST_REQUIRED): Adjust user.
8857 * include/dlfcn.h (struct link_map): New forward decl.
8859 * inet/getnameinfo.c: Include stddef.h.
8860 (getnameinfo): Use offsetof.
8862 * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
8864 * stdio-common/vfprintf.c (_itoa): Undef before redefining.
8866 * string/strerror_l.c: Include stdlib.h.
8868 * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
8869 * config.make.in (gnu89-inline-CFLAGS): New variable.
8870 * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
8872 * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
8873 * argp/argp.h: Use it.
8874 * bits/mathinline.h: Likewise.
8875 * bits/sigset.h: Likewise.
8876 * bits/string.h: Likewise.
8877 * ctype/ctype.h: Likewise.
8878 * hurd/hurd.h: Likewise.
8879 * hurd/hurd/fd.h: Likewise.
8880 * hurd/hurd/port.h: Likewise.
8881 * hurd/hurd/signal.h: Likewise.
8882 * hurd/hurd/threadvar.h: Likewise.
8883 * hurd/hurd/userlink.h: Likewise.
8884 * io/sys/stat.h: Likewise.
8885 * libio/bits/stdio.h: Likewise.
8886 * libio/bits/stdio2.h: Likewise.
8887 * mach/lock-intern.h: Likewise.
8888 * mach/mach/mig_support.h: Likewise.
8889 * math/bits/cmathcalls.h: Likewise.
8890 * posix/bits/unistd.h: Likewise.
8891 * socket/bits/socket2.h: Likewise.
8892 * stdlib/bits/stdlib.h: Likewise.
8893 * stdlib/stdlib.h: Likewise.
8894 * string/argz.h: Likewise.
8895 * string/bits/string2.h: Likewise.
8896 * string/bits/string3.h: Likewise.
8897 * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
8898 * sysdeps/generic/inttypes.h: Likewise.
8899 * sysdeps/generic/machine-lock.h: Likewise.
8900 * sysdeps/generic/machine-sp.h: Likewise.
8901 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8902 * sysdeps/i386/i486/bits/string.h: Likewise.
8903 * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
8904 * sysdeps/mach/alpha/machine-lock.h: Likewise.
8905 * sysdeps/mach/alpha/machine-sp.h: Likewise.
8906 * sysdeps/mach/i386/machine-lock.h: Likewise.
8907 * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8908 * sysdeps/mach/powerpc/machine-sp.h: Likewise.
8909 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
8910 * sysdeps/s390/bits/string.h: Likewise.
8911 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
8912 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8913 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8914 * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
8915 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8916 * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
8917 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
8918 * wcsmbs/bits/wchar2.h: Likewise.
8919 * wcsmbs/wchar.h: Likewise.
8920 * stdlib/gmp.h: Likewise. Include <features.h> to get
8921 __extern_inline definition.
8923 2007-03-15 Jakub Jelinek <jakub@redhat.com>
8925 * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
8929 * math/libm-test.inc (log_test): Test -Inf and NaN.
8930 (log10_test, log1p_test, log2_test): Test -Inf.
8931 * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
8932 FE_INVALID when argument is qNaN.
8933 * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
8934 * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
8935 * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
8936 * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
8937 andb $1, %ah with testb $1, %ah, don't test for parity, instead
8938 testb $4, %ah and jump if non-zero.
8939 * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
8940 * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
8943 * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
8944 ancestors with the same depths.
8945 Patch by Niels Moeller <nisse@lysator.liu.se>.
8946 (filter_doc): Don't crash if argp is NULL.
8947 * argp/Makefile (tests): Add tst-argp2.
8948 * argp/tst-argp2.c: New test.
8951 * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
8953 (updwtmp_file): Likewise.
8956 * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
8957 (inet6_opt_append): Don't check extlen is big enough if extbuf
8959 (inet6_opt_finish): Likewise.
8960 * inet/Makefile (tests): Add test-inet6_opt.
8961 * inet/test-inet6_opt.c: New test.
8963 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
8964 reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
8965 NLMSG_ERR. Instead use a page sized buffer.
8966 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
8969 2007-03-14 Richard Henderson <rth@redhat.com>
8971 * sysdeps/alpha/fpu/s_llround.c: New file.
8972 * sysdeps/alpha/fpu/s_llroundf.c: New file.
8973 * sysdeps/alpha/fpu/s_lround.c: New file.
8974 * sysdeps/alpha/fpu/s_lroundf.c: New file.
8975 * sysdeps/alpha/fpu/s_round.c: New file.
8976 * sysdeps/alpha/fpu/s_roundf.c: New file.
8977 * sysdeps/alpha/fpu/s_trunc.c: New file.
8978 * sysdeps/alpha/fpu/s_truncf.c: New file.
8980 * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
8981 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
8982 * sysdeps/alpha/fpu/s_floor.c: Likewise.
8983 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
8984 * sysdeps/alpha/fpu/s_rint.c: Likewise.
8985 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
8987 * sysdeps/alpha/fpu/s_fmax.S: New file.
8988 * sysdeps/alpha/fpu/s_fmaxf.S: New file.
8989 * sysdeps/alpha/fpu/s_fmin.S: New file.
8990 * sysdeps/alpha/fpu/s_fminf.S: New file.
8991 * sysdeps/alpha/fpu/s_isnan.c: New file.
8992 * sysdeps/alpha/fpu/s_isnanf.c: New file.
8993 * sysdeps/alpha/fpu/s_llrint.c: New file.
8994 * sysdeps/alpha/fpu/s_llrintf.c: New file.
8995 * sysdeps/alpha/fpu/s_lrint.c: New file.
8996 * sysdeps/alpha/fpu/s_lrintf.c: New file.
8997 * sysdeps/alpha/fpu/s_nearbyint.c: New file.
8998 * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
9000 * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
9001 (__fdimf, fdimf, __fdim, fdim): Remove.
9002 (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
9003 (__isnanf, __isnan, __isnanl): New.
9005 2007-03-13 Richard Henderson <rth@redhat.com>
9007 * sysdeps/ieee754/ldbl-128/Makefile: New file.
9009 2007-03-13 Richard Henderson <rth@redhat.com>
9011 * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
9012 * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
9013 * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
9014 * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
9015 * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
9016 * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
9018 2007-03-13 Richard Henderson <rth@redhat.com>
9020 * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
9021 * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
9022 * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
9023 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
9024 Move to dl-auxv.h; initialize instead of extern weak.
9025 (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
9027 * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
9028 Extern instead of initialized.
9030 2007-03-13 Richard Henderson <rth@redhat.com>
9032 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
9033 __sigsuspend_nocancel.
9035 2007-03-06 Ulrich Drepper <drepper@redhat.com>
9037 * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
9038 172.16/12 address range.
9040 2007-03-02 Jakub Jelinek <jakub@redhat.com>
9042 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
9043 a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
9046 2007-03-01 Jakub Jelinek <jakub@redhat.com>
9049 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
9051 * math/libm-test.inc (pow_test): Add more tests involving NaNs.
9053 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
9054 for x qNaN and y either +-inf or non-integer value.
9055 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
9056 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
9057 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9059 2007-02-10 Mike Frysinger <vapier@gentoo.org>
9061 * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
9062 from sysdep_headers.
9064 2007-02-28 Jakub Jelinek <jakub@redhat.com>
9066 * time/tzfile.c (find_transition): Instead of a linear search try to
9067 guess the transition index, use a linear search if the result is at
9068 most 10 transitions away from the guess or binary search otherwise.
9070 2007-02-27 Jakub Jelinek <jakub@redhat.com>
9072 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
9073 memory reallocation.
9075 2007-02-21 Ulrich Drepper <drepper@redhat.com>
9077 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
9079 Optimize use of TOLOWER.
9082 * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
9083 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
9084 * sysdeps/i386/fpu/e_fmod.S: Likewise.
9087 * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
9088 * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
9091 * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
9092 (open_dir_stream): Likewise.
9093 * io/Makefile (tests): Add bug-ftw5.
9094 * io/bug-ftw5.c: New file.
9096 * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
9097 * nscd/servicescache.c (cache_addserv): Likewise.
9099 * nscd/grpcache.c (cache_addgr): In case a record changed on
9100 refresh, adjust key_copy.
9103 * nscd/pwdcache.c (cache_addpw): In case a record changed on
9104 refresh, adjust key_copy.
9107 * stdio-common/printf_fp.c (___printf_fp): Handle a few more
9109 * stdio-common/tfformat.c (sprint_doubles): Some more tests.
9111 2007-02-19 Ulrich Drepper <drepper@redhat.com>
9113 * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
9116 * stdio-common/vfscanf.c: Small cleanups throughout.
9118 2007-02-18 Ulrich Drepper <drepper@redhat.com>
9121 * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
9122 * sysdeps/i386/fpu/e_fmodl.c: Likewise.
9123 * sysdeps/i386/fpu/e_fmod.S: Likewise.
9124 Patch by Jared Casper <jaredcasper@gmail.com>.
9126 * sysdeps/unix/closedir.c: Outside libc don't use locking.
9127 * sysdeps/unix/opendir.c: Likewise.
9128 * sysdeps/unix/readdir.c: Likewise.
9131 * stdio-common/vfscanf.c: Handle localized digits etc for floating
9133 Patch mostly by Hamed Malek <hamed@farsiweb.info>.
9135 * stdio-common/vfscanf.c: Fix problems in width accounting.
9136 * stdio-common/tst-sscanf.c (double_tests): New tests.
9137 (main): Hook them up.
9139 * stdio-common/vfscanf.c: Remove unused WIDTH handling.
9140 More simplifications of floating-point reader.
9142 * stdio-common/Makefile (tests): Add tst-swscanf.
9143 * stdio-common/tst-sscanf.c: Make tests usable for swscanf
9145 * stdio-common/tst-swscanf.c: New file.
9147 2007-02-17 Ulrich Drepper <drepper@redhat.com>
9150 * libio/stdio.h: Define struct _IO_FILE in global namespace.
9151 * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
9152 Remove using for __jmp_buf_tag.
9153 * locale/locale.h (struct lconv): Also define in std namespace.
9154 * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
9157 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
9158 using __libc_enable_secure.
9161 * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
9164 * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
9165 of names for ellipsises.
9168 * malloc/memusage.sh: Cleanups.
9169 * debug/xtrace.sh: Quoting and trap changes.
9171 2007-02-16 Ulrich Drepper <drepper@redhat.com>
9173 * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
9175 * locale/iso-3166.def: Update entry for Serbia.
9176 * locale/iso-4217.def: Define RSD, remove CSD.
9178 * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
9179 and 64-bit operations.
9182 * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
9185 * nscd/nscd.c (parse_opt): One more conversion to use send instead
9188 2007-02-15 Ulrich Drepper <drepper@redhat.com>
9191 * assert/assert.h (assert): Simplify.
9192 (assert_perror): Likewise.
9193 Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
9195 * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
9198 * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
9199 change: don't pass NULL in place of an integer.
9201 2007-02-02 Bruno Haible <bruno@clisp.org>
9204 * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
9205 Add mapping for U+327E.
9206 * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
9207 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
9208 mapping of 0xD9 0xE8.
9209 * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
9211 Reported by Jungshik Shin <jungshik@google.com>.
9214 * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
9215 mapping of 0xD9 0xE6 and of 0xD9 0xE7.
9216 Reported by Jungshik Shin <jungshik@google.com>.
9218 2007-02-14 Ulrich Drepper <drepper@redhat.com>
9220 * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
9224 * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
9225 byte variants. Patch mostly be tom@tommay.net.
9227 2007-02-14 Jakub Jelinek <jakub@redhat.com>
9230 * posix/glob.c (attribute_hidden): Define if not defined.
9231 (glob): Unescape dirname, filename or username when needed and not
9232 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
9233 is NULL. Handle unescaped [ in pattern without closing ].
9234 Don't pass GLOB_CHECK down to recursive glob for directories.
9235 (__glob_pattern_type): New function.
9236 (__glob_pattern_p): Implement using __glob_pattern_type.
9237 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
9238 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
9239 Remove unreachable code.
9240 * posix/globtest.sh: Add a couple of new tests.
9242 2007-02-13 Ulrich Drepper <drepper@redhat.com>
9244 * po/ru.po: Update from translation team.
9246 2007-02-12 Jakub Jelinek <jakub@redhat.com>
9248 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
9249 to the list of i486+ CPUs.
9250 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
9252 2007-02-12 Ulrich Drepper <drepper@redhat.com>
9254 * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
9255 * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
9258 2007-02-09 Ulrich Drepper <drepper@redhat.com>
9260 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
9262 * resolv/res_init.c (res_setoptions): Recognize edns0 option.
9263 * resolv/res_mkquery.c: Define __res_nopt.
9264 * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
9265 try adding EDNS0 record.
9266 * resolv/res_send.c (send_dg): If request failed with FORMERR and
9267 EDNS0 record was send make sure we don't try it again.
9268 * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
9269 * include/resolv.h: Declare __res_nopt.
9271 2007-02-08 Jakub Jelinek <jakub@redhat.com>
9274 * time/strptime_l.c (__strptime_internal): Set have_mon for
9275 %b/%B/%h. Set have_mon and have_mday if tm_mon and tm_mday
9276 have been computed from tm_yday and tm_year. Don't crash
9277 in day_of_the_week or day_of_the_year if not have_mon
9278 and tm_mon contains bogus value.
9279 * time/Makefile (tests): Add tst-strptime3.
9280 * time/tst-strptime3.c: New test.
9282 2007-02-05 Jakub Jelinek <jakub@redhat.com>
9285 * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
9286 bit for RE_HAT_LISTS_NOT_NEWLINE.
9287 (build_charclass_op): Remove bogus comment.
9288 * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
9289 * posix/bug-regex27.c: New test.
9290 * posix/bug-regex28.c: New test.
9292 2007-02-03 Ulrich Drepper <drepper@redhat.com>
9294 * po/sv.po: Update from translation team.
9296 2007-02-02 Ulrich Drepper <drepper@redhat.com>
9298 * nscd/nscd_helper.c (open_socket): Minor size optimization.
9300 2007-02-02 Jakub Jelinek <jakub@redhat.com>
9302 * include/locale.h (__uselocale): Add libc_hidden_proto.
9303 * locale/uselocale.c (__uselocale): Add libc_hidden_def.
9305 * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
9308 2007-02-01 Ulrich Drepper <drepper@redhat.com>
9310 * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
9312 (PTR_DEMANGLE): Real definition now that it's not the same as
9314 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9316 * string/strerror_l.c: New file.
9317 * string/Makefile (routines): Add strerror_l.
9318 * string/string.h: Declare strerror_l.
9319 * string/Versions: Export strerror_l for GLIBC_2.6.
9321 2007-01-31 Ulrich Drepper <drepper@redhat.com>
9323 * nscd/nscd_helper.c (open_socket): Now takes request type and key
9324 as parameter. Construct request record. Try sending request
9325 before the first poll use, it usually succeeds. Adjust all
9327 * nscd/nscd-client.h: Define MAXKEYLEN.
9328 * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
9330 2007-01-31 Jakub Jelinek <jakub@redhat.com>
9332 * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
9334 * nscd/nscd_helper.c: Include string.h.
9335 (__nscd_cache_search): Remove const qualifier from return value.
9336 On strict alignment architectures check hash entry and data head
9338 * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
9339 mmapped data during GC cycle contains garbage. If
9340 __nscd_drop_map_ref fails, decrement mapped->counter when returning
9341 error or if retrying with NO_MAPPING, only __nscd_unmap if counter
9343 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
9344 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
9345 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
9346 * nscd/nscd_getai.c (__nscd_getai): Likewise.
9347 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
9349 2007-01-30 Ulrich Drepper <drepper@redhat.com>
9351 * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
9353 2007-01-26 Ulrich Drepper <drepper@redhat.com>
9355 * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
9356 names not numbers in cfi_*.
9358 2007-01-26 Andreas Jaeger <aj@suse.de>
9360 * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
9361 ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
9362 Correct values of PER_HPUX and PER_OSF4.
9364 2007-01-24 Ulrich Drepper <drepper@redhat.com>
9366 * elf/dl-minimal.c: Undefine _itoa first.
9367 * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
9368 * malloc/mtrace.c: Revert last change.
9369 * posix/wordexp.c: Likewise.
9371 2007-01-24 Jakub Jelinek <jakub@redhat.com>
9373 * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
9374 and __geode__ to the list of i486+ CPUs.
9375 * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
9377 2007-01-23 Ulrich Drepper <drepper@redhat.com>
9379 * stdio-common/_itoa.c: Include <limits.h>.
9380 * stdio-common/_itowa.c: Likewise.
9382 2007-01-22 Ulrich Drepper <drepper@redhat.com>
9384 * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
9386 * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
9388 * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
9390 * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
9394 * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
9395 * stdio-common/Makefile (tests): Add bug17.
9396 * stdio-common/bug17.c: New file.
9398 2007-01-19 Ulrich Drepper <drepper@redhat.com>
9400 * iconvdata/brf.c: New file.
9401 * iconvdata/testdata/BRF: New file.
9402 * iconvdata/testdata/BRF..UTF8: New file.
9403 Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
9404 * iconvdata/Makefile: Add rules to build BRF.
9405 * iconvdata/TESTS: Add BRF entry.
9406 * iconvdata/gconv-modules: Likewise.
9407 * iconvdata/tst-tables.sh: Likewise.
9409 2007-01-18 Anton Nikishaev <anton.nik@gmail.com>
9411 * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
9412 type `long long int', not `long int'.
9415 2007-01-18 Ulrich Drepper <drepper@redhat.com>
9417 * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
9418 of values on 64-bit platforms which are too large.
9420 2007-01-12 Steven Munroe <sjmunroe@us.ibm.com>
9421 Joe Kerian <jkerian@us.us.ibm.com>
9424 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
9425 <math_ldbl_opt.h>. Remove weak_alias. Use long_double_symbol macro.
9426 (__copysignl): Use signbit() for comparison.
9427 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
9428 SET_LDOUBLE_WORDS64.
9431 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
9432 (__ceill): Remove calls to fegetround(), fesetround().
9433 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9434 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
9435 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9437 2007-01-17 Jakub Jelinek <jakub@redhat.com>
9439 * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
9441 * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
9443 2007-01-17 Ulrich Drepper <drepper@redhat.com>
9445 * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
9447 * csu/libc-start.c: Likewise.
9449 2007-01-16 Ulrich Drepper <drepper@redhat.com>
9451 * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
9454 2007-01-15 Ulrich Drepper <drepper@redhat.com>
9456 * nscd/connections.c (servinfo): Renamed to reqinfo. Change all
9458 (handle_request): Remove unnecessary tests.
9460 * nscd/cache.c (cache_add): Record the failure to add to the cache.
9462 2007-01-15 Jakub Jelinek <jakub@redhat.com>
9464 * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
9465 workbits in semi-raw fraction.
9467 * math/test-misc.c: Add new tests.
9469 2007-01-14 Steven Munroe <sjmunroe@us.ibm.com>
9471 * math/basic-test.c: Include test-skeleton.c.
9472 (TEST_TRUNC): Define.
9473 (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
9474 (main): Rename to ...
9475 (do_test): ...this. Run new tests.
9476 (TEST_FUNCTION): Define.
9478 2006-10-05 Steven Munroe <sjmunroe@us.ibm.com>
9479 Joe Kerian <jkerian@us.us.ibm.com>
9482 * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
9483 handling for high words.
9484 * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
9485 and overflow for infinity.
9487 2007-01-15 Ulrich Drepper <drepper@redhat.com>
9489 * nscd/connections.c (handle_request): Add a __builtin_expect.
9491 * nscd/connections.c (serv2db): Change type into structure which
9492 also says whether this is a request for data. Renamed to
9493 servinfo. All users changed.
9494 (handle_request): Much simpler test whether we should search the cache.
9496 * nscd/connections.c (handle_request): Fix thinko in selinux test
9499 * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
9500 * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
9501 it before getting dl_load_lock and then relock.
9502 (_dl_lookup_symbol_x): Pass flags to add_dependency.
9503 When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
9504 case we unlocked the scope.
9505 * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
9506 _dl_lookup_symbol_x in case we locked the scope.
9507 (_dl_profile_fixup): Likewise.
9508 * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
9509 set DL_LOOKUP_SCOPE_LOCK.
9511 2007-01-13 Ulrich Drepper <drepper@redhat.com>
9513 * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
9514 CFLAGS-getsrvbynpt_r.c.
9515 * nscd/getsrvbynm_r.c: New file.
9516 * nscd/getsrvbypt_r.c: New file.
9517 * nscd/nscd_getserv_r.c: New file.
9518 * nscd/servicescache.c: New file.
9519 * nscd/Makefile (routines): Add nscd_getserv_r.
9520 (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
9521 Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
9522 CFLAGS-getsrvbypt_r.c.
9523 * nscd/cache.c (prune_cache): Rewrite to get re-add function from
9524 table. Add entries for services database.
9525 * nscd/connections.c (serv2str): Mark as const. Add entries for
9527 (dbs): Add .reset_res and servdb initialization.
9528 (serv2db): Add entries for services database.
9529 (verify_persistent_db): Accept dbnr == servdb.
9530 (invalidate_cache): Rewrite database name recognition to use a table.
9531 Call res_init() if .reset_res is set for database.
9532 (handle_request): Add code to handle services database.
9533 * nscd/gai.c: Don't define __getservbyname_r.
9534 * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
9535 GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
9536 (serv_response_header): Define.
9537 (struct datahead): Add serv_response_header member.
9538 * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
9540 * nscd/nscd.conf: Add entries for services database.
9541 * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
9542 Declare serv_iov_disabled.
9543 Declare addservbyname, readdservbyname, addservbyport, and
9545 * nscd/nscd_conf.c (dbnames): Mark as const. Add services entry.
9546 (find_db): Fix error message.
9547 * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
9548 __nscd_getservbyname_r, and __nscd_getservbyport_r.
9549 * nscd/selinux.c (perms): Add entries for services database.
9550 * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
9551 * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
9553 * nscd/grpcache.c: Remove obsolete code. Cleanups.
9554 * nscd/hstcache.c: Likewise.
9555 * nscd/pwdcache.c: Likewise.
9557 * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
9558 computation of keylen.
9560 * include/string.h: Only redefine strndupa if this is really for
9563 2007-01-12 Ulrich Drepper <drepper@redhat.com>
9565 * nscd/nscd_gethst_r.c: Minor cleanups.
9567 * nscd/connections.c (handle_request): Check selinux permissions
9568 for all non-admin commands.
9570 * sysdeps/i386/i486/bits/atomic.h: Define
9571 atomic_compare_and_exchange_val_acq,
9572 atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
9573 using __sync_* built-ins for gcc >= 4.1.
9574 * sysdeps/x86_64/bits/atomic.h: Likewise.
9577 * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
9580 2007-01-05 Steven Munroe <sjmunroe@us.ibm.com>
9582 * stdlib/tst-makecontext.c: Include errno.h. Change main()
9583 to do_test(). Define TEST_FUNCTION. Include test-skeleton.c.
9584 (do_test): Check errno and exit(0) if ENOSYS.
9586 2007-01-11 Jakub Jelinek <jakub@redhat.com>
9588 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
9589 thousands separators.
9590 * stdlib/Makefile: Add rules to build and run tst-strtod4.
9591 * stdlib/tst-strtod4.c: New test.
9594 * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
9595 hexadecimal digit should accept just the initial 0.
9596 * stdlib/tst-strtod2.c (tests): New variable.
9597 (do_test): Run several tests rather than just one.
9599 2007-01-11 Jakub Jelinek <jakub@redhat.com>
9601 * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
9602 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
9604 2007-01-10 Ulrich Drepper <drepper@redhat.com>
9606 * io/fts.c: Make sure fts_cur is always valid after return from
9608 Patch by Miloslav Trmac <mitr@redhat.com>.
9610 2006-10-27 Richard Sandiford <richard@codesourcery.com>
9612 * elf/elf.h (R_MIPS_GLOB_DAT): Define.
9613 (R_MIPS_NUM): Bump by 1.
9615 2007-01-03 Jakub Jelinek <jakub@redhat.com>
9617 * posix/execvp.c: Include alloca.h.
9618 (allocate_scripts_argv): Renamed to...
9619 (scripts_argv): ... this. Don't allocate buffer here nor count
9621 (execvp): Use alloca if possible.
9622 * posix/Makefile: Add rules to build and run tst-vfork3 test.
9623 * posix/tst-vfork3.c: New test.
9625 2007-01-03 Ulrich Drepper <drepper@redhat.com>
9627 * string/Makefile (tst-strxfrm2-ENV): Define.
9628 * stdlib/Makefile (tst-strtod3-ENV): Define.
9630 2007-01-02 Ulrich Drepper <drepper@redhat.com>
9632 * posix/getconf.c: Update copyright year.
9633 * nss/getent.c: Likewise.
9634 * iconv/iconvconfig.c: Likewise.
9635 * iconv/iconv_prog.c: Likewise.
9636 * elf/ldconfig.c: Likewise.
9637 * catgets/gencat.c: Likewise.
9638 * csu/version.c: Likewise.
9639 * elf/ldd.bash.in: Likewise.
9640 * elf/sprof.c (print_version): Likewise.
9641 * locale/programs/locale.c: Likewise.
9642 * locale/programs/localedef.c: Likewise.
9643 * nscd/nscd.c (print_version): Likewise.
9644 * debug/xtrace.sh: Likewise.
9645 * malloc/memusage.sh: Likewise.
9646 * malloc/mtrace.pl: Likewise.
9647 * debug/catchsegv.sh: Likewise.
9649 2006-12-24 Ulrich Drepper <drepper@redhat.com>
9651 * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
9654 2006-12-23 Ulrich Drepper <drepper@redhat.com>
9656 * posix/wordexp.c: Remove some unnecessary tests.
9658 2006-12-22 Gavin Romig-Koch <gavin@redhat.com>
9660 * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
9661 blacklist the group till after we look it up.
9663 2006-12-21 Ulrich Drepper <drepper@redhat.com>
9665 * include/atomic.h (atomic_forced_read): New macro.
9667 2006-12-20 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
9669 * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
9671 2006-12-19 Jakub Jelinek <jakub@redhat.com>
9673 * nss/getXXbyYY_r.c: Include atomic.h.
9674 (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
9675 add atomic_write_barrier () in between.
9677 * stdlib/Makefile (tests): Add tst-makecontext.
9678 * stdlib/tst-makecontext.c: New test.
9680 * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
9681 (__makecontext): Don't realign uc_mcontext.uc_regs.
9683 2006-11-28 Jakub Jelinek <jakub@redhat.com>
9685 * elf/dl-support.c: Include dl-procinfo.h.
9686 * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
9687 PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
9688 PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
9690 (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
9691 hardcoded constants.
9692 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
9693 PPC_PLATFORM_* macros for array designators.
9695 2006-11-11 Steven Munroe <sjmunroe@us.ibm.com>
9697 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
9698 names to the beginning.
9699 (_dl_powerpc_platforms): Add "power6x".
9700 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9701 (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
9702 (_DL_PLATFORMS_COUNT): Increase.
9703 (_dl_string_platform): Handle power6x case.
9704 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
9705 PPC_FEATURE_POWER6_EXT): Define.
9706 (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
9708 2006-12-18 Jakub Jelinek <jakub@redhat.com>
9711 * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
9712 [-2^31 .. 2^31) range.
9713 * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
9715 * stdlib/tst-rand48-2.c: New test.
9716 * stdlib/Makefile (tests): Add tst-rand48-2.
9718 2006-12-14 Jakub Jelinek <jakub@redhat.com>
9720 * misc/tst-pselect.c (do_test): Fix sigblock argument.
9722 2006-12-14 Ulrich Drepper <drepper@redhat.com>
9724 * misc/tst-pselect.c (do_test): Make sure the helper process is
9725 terminating when the test is aborted.
9727 2006-12-13 Ulrich Drepper <drepper@redhat.com>
9729 * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
9730 * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
9731 Handle relatime mount option.
9734 * libio/Makefile (tests): Add tst-setvbuf1.
9735 * libio/tst-setvbuf1.c: New file.
9737 2006-12-08 Jakub Jelinek <jakub@redhat.com>
9740 * libio/genops.c (__uflow): Fix a typo.
9741 * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
9742 nor set _IO_LINE_BUF bit here. Size the wide buffer based on
9743 the narrow buffer size.
9745 2006-11-24 Jakub Jelinek <jakub@redhat.com>
9748 * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
9749 * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
9750 _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
9752 * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
9753 _IO_wstr_finish): Likewise.
9754 * libio/wmemstream.c (open_wmemstream): Likewise.
9755 * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
9756 even for wide streams.
9758 2006-12-13 Jakub Jelinek <jakub@redhat.com>
9760 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
9763 2006-12-11 Ulrich Drepper <drepper@redhat.com>
9765 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
9766 separators also if no non-zero digits found.
9767 * stdlib/Makefile (tests): Add tst-strtod3.
9769 2006-12-09 Ulrich Drepper <drepper@redhat.com>
9772 * include/features.h: Fix comment about default value for
9776 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
9777 empty parsed strings.
9778 * stdlib/Makefile (tests): Add tst-strtod2.
9779 * stdlib/tst-strtod2.c: New file.
9782 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
9784 * stdlib/Makefile (tests): Add tst-atof2.
9785 * stdlib/tst-atof2.c: New file.
9788 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
9789 correctly if removing trailing zero of hex-float.
9790 * stdlib/Makefile (tests): Add tst-atof1.
9791 * stdlib/tst-atof1.c: New file.
9793 2006-12-09 Jakub Jelinek <jakub@redhat.com>
9795 * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
9796 Start searching for next comma at p rather than rest.
9797 * misc/Makefile (tests): Add tst-mntent2.
9798 * misc/tst-mntent2.c: New test.
9800 * misc/getusershell.c (initshells): Check for integer overflows.
9801 Make strings buffer one bigger as fgets always succeeds when second
9802 argument is 1. Don't use calloc for shells array. Disallow
9805 2006-12-08 Ulrich Drepper <drepper@redhat.com>
9807 * malloc/memusage.c: Handle realloc with new size of zero and
9808 non-NULL pointer correctly.
9809 (me): Really write first record twice.
9810 (struct entry): Make format bi-arch safe.
9811 (dest): Write out more realloc statistics.
9812 * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
9814 2006-12-05 Jakub Jelinek <jakub@redhat.com>
9816 * nis/nis_subr.c (nis_getnames): Revert last change.
9818 2006-12-04 Jakub Jelinek <jakub@redhat.com>
9820 * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
9821 (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
9822 * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
9823 (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
9825 * io/Makefile: Add rules to build and run tst-ttyname_r test.
9826 * io/tst-ttyname_r.c: New test.
9828 2006-12-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9830 * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
9832 2006-11-30 H.J. Lu <hongjiu.lu@intel.com>
9834 * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
9837 2006-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
9839 * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
9840 `clone' function to ensure proper unwinding stop of gdb.
9841 * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
9843 2006-12-01 Ulrich Drepper <drepper@redhat.com>
9845 * nscd/nscd.init: Remove obsolete and commented-out -S option
9848 2006-11-23 Jakub Jelinek <jakub@redhat.com>
9851 * manual/string.texi (strncmp): Fix pastos from wcscmp description.
9854 * manual/string.texi (strtok): Remove duplicate paragraph.
9856 2006-12-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9858 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
9859 libgcc not supporting `rflags' unwinding (register # >= 17).
9861 2006-11-30 Jakub Jelinek <jakub@redhat.com>
9863 * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
9866 2006-11-29 Daniel Jacobowitz <dan@codesourcery.com>
9867 Jakub Jelinek <jakub@redhat.com>
9868 Jan Kratochvil <jan.kratochvil@redhat.com>
9870 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
9872 * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
9873 'restore_rt' even in the 'signal' directory.
9874 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
9876 2006-11-27 Jakub Jelinek <jakub@redhat.com>
9879 * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
9880 malloc crashed. Don't allocate memory unnecessarily in each
9883 2006-10-21 Jakub Jelinek <jakub@redhat.com>
9885 * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
9887 2006-11-20 Ulrich Drepper <drepper@redhat.com>
9889 * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
9891 2006-11-18 Bruno Haible <bruno@clisp.org>
9893 * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
9894 __sysconf only after having tried to call getgroups32.
9896 2006-11-19 Ulrich Drepper <drepper@redhat.com>
9898 * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
9899 addresses for IPv4 queries if they can be mapped.
9901 2006-11-16 Jakub Jelinek <jakub@redhat.com>
9903 * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
9904 * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
9905 (signmask): Add .size directive.
9906 (othermask): Add .type directive.
9908 2006-11-14 Ulrich Drepper <drepper@redhat.com>
9910 * po/nl.po: Update from translation team.
9912 * timezone/zdump.c: Redo fix for BZ #3137.
9914 2006-11-14 Jakub Jelinek <jakub@redhat.com>
9916 * nss/nss_files/files-alias.c (get_next_alias): Set line back
9917 to first_unused after parsing :include: file.
9919 2006-11-10 Ulrich Drepper <drepper@redhat.com>
9921 * timezone/africa: Update from tzdata2006o.
9922 * timezone/antarctica: Likewise.
9923 * timezone/asia: Likewise.
9924 * timezone/australasia: Likewise.
9925 * timezone/backward: Likewise.
9926 * timezone/europe: Likewise.
9927 * timezone/iso3166.tab: Likewise.
9928 * timezone/northamerica: Likewise.
9929 * timezone/southamerica: Likewise.
9930 * timezone/zone.tab: Likewise.
9932 * time/tzfile.c (__tzfile_read): Extend to handle new file format
9933 on machines with 64-bit time_t.
9935 * timezone/checktab.awk: Update from tzcode2006o.
9936 * timezone/ialloc.c: Likewise.
9937 * timezone/private.h: Likewise.
9938 * timezone/scheck.c: Likewise.
9939 * timezone/tzfile.h: Likewise.
9940 * timezone/tzselect.ksh: Likewise.
9941 * timezone/zdump.c: Likewise.
9942 * timezone/zic.c: Likewise.
9945 * elf/ldconfig.c (main): Call setlocale and textdomain.
9946 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9949 * manual/argp.texi: Fix typos.
9950 * manual/charset.texi: Likewise.
9951 * manual/errno.texi: Likewise.
9952 * manual/filesys.texi: Likewise.
9953 * manual/lang.texi: Likewise.
9954 * manual/maint.texi: Likewise.
9955 * manual/memory.texi: Likewise.
9956 * manual/message.texi: Likewise.
9957 * manual/resource.texi: Likewise.
9958 * manual/search.texi: Likewise.
9959 * manual/signal.texi: Likewise.
9960 * manual/startup.texi: Likewise.
9961 * manual/stdio.texi: Likewise.
9962 * manual/sysinfo.texi: Likewise.
9963 * manual/syslog.texi: Likewise.
9964 * manual/time.texi: Likewise.
9965 Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9968 * sunrpc/clnt_raw.c: Minimal message improvements.
9969 * sunrpc/pm_getmaps.c: Likewise.
9970 * nis/nss_nisplus/nisplus-publickey.c: Likewise.
9971 * nis/nis_print_group_entry.c: Likewise.
9972 * locale/programs/repertoire.c: Likewise.
9973 * locale/programs/charmap.c: Likewise.
9974 * malloc/memusage.sh: Likewise.
9975 * elf/dl-deps.c: Likewise.
9976 * locale/programs/ld-collate.c: Likewise.
9977 * libio/vswprintf.c: Likewise.
9978 * malloc/memusagestat.c: Likewise.
9979 * sunrpc/auth_unix.c: Likewise.
9980 * sunrpc/rpc_main.c: Likewise.
9981 * nscd/cache.c: Likewise.
9982 * locale/programs/repertoire.c: Unify output messages.
9983 * locale/programs/charmap.c: Likewise.
9984 * locale/programs/ld-ctype.c: Likewise.
9985 * locale/programs/ld-monetary.c: Likewise.
9986 * locale/programs/ld-numeric.c: Likewise.
9987 * locale/programs/ld-time.c: Likewise.
9988 * elf/ldconfig.c: Likewise.
9989 * nscd/selinux.c: Likewise.
9990 * elf/cache.c: Likewise.
9991 Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9994 * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
9998 2006-11-10 Jakub Jelinek <jakub@redhat.com>
10000 * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
10001 if N is one bigger than return value.
10002 * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
10003 and l1 last arguments, if buf is defined, verify the return value
10004 equals to strlen (buf) and verify no byte beyond passed length
10007 2006-11-10 Ulrich Drepper <drepper@redhat.com>
10009 * po/sv.po: Update from translation team.
10011 2006-11-09 Ulrich Drepper <drepper@redhat.com>
10013 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
10014 noinline attribute.
10016 2006-11-10 Jakub Jelinek <jakub@redhat.com>
10018 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
10019 noinline attribute.
10021 * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
10022 Use __new_sys_siglist instead of _sys_siglist_internal as
10023 second macro argument.
10024 (_old_sys_siglist): Use declare_symbol_alias macro instead of
10027 2006-11-09 Ulrich Drepper <drepper@redhat.com>
10030 * posix/unistd.h (sysconf): Remove const attribute.
10032 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
10033 temporary or deprecated addresses.
10034 Patch by Sridhar Samudrala <sri@us.ibm.com>.
10036 * string/Makefile (tests): Add tst-strxfrm2.
10037 * string/tst-strxfrm2.c: New file.
10039 2006-10-09 Jakub Jelinek <jakub@redhat.com>
10041 * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
10042 rather than r->r_brk.
10044 2006-11-08 Jakub Jelinek <jakub@redhat.com>
10046 * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
10047 optimization even if needed > n.
10049 * elf/dl-load.c (decompose_rpath): Return bool rather than void.
10050 If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
10051 return false, otherwise return true.
10052 (cache_rpath): Return decompose_rpath return value.
10054 2006-11-07 Jakub Jelinek <jakub@redhat.com>
10056 * include/libc-symbols.h (declare_symbol): Rename to...
10057 (declare_symbol_alias): ... this. Add ORIGINAL argument, imply
10058 strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
10060 * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
10062 * sysdeps/gnu/siglist.c: Likewise.
10064 2006-11-03 Steven Munroe <sjmunroe@us.ibm.com>
10066 * sysdeps/powerpc/fpu/bits/mathinline.h
10067 [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
10068 * sysdeps/powerpc/fpu/math_private.h: ...here. New file.
10070 2006-11-05 Ulrich Drepper <drepper@redhat.com>
10072 * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
10073 Update handling of cache descriptor 0x49 for new models.
10074 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
10077 2006-11-02 Jakub Jelinek <jakub@redhat.com>
10079 * malloc/memusage.c (dest): Reset not_me back to false after
10080 printing statistics.
10082 2006-11-02 Ulrich Drepper <drepper@redhat.com>
10084 * configure.in: Work around ld --help change and avoid -z relro
10085 test completely if the architecture doesn't care about security.
10087 2006-11-01 Ulrich Drepper <drepper@redhat.com>
10089 * po/sv.po: Update from translation team.
10091 2006-10-31 Ulrich Drepper <drepper@redhat.com>
10093 * stdlib/atexit.c (atexit): Don't mark as hidden when used to
10094 generate compatibility version.
10096 2006-10-29 Ulrich Drepper <drepper@redhat.com>
10098 * configure.in: Relax -z relro requirement a bit.
10100 * po/sv.po: Update from translation team.
10102 2006-10-29 Jakub Jelinek <jakub@redhat.com>
10104 * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
10105 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
10106 * elf/dl-close.c (_dl_close_worker): Likewise.
10107 * elf/dl-open.c (_dl_open_worker): Likewise.
10108 * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
10110 2006-10-27 Ulrich Drepper <drepper@redhat.com>
10112 * configure.in: Require assembler support for visibility, compiler
10113 support for visibility and aliases, linker support for various -z
10115 * Makeconfig: Remove conditional code which now is unnecessary.
10116 * config.h.in: Likewise.
10117 * config.make.in: Likewise.
10118 * dlfcn/Makefile: Likewise.
10119 * elf/Makefile: Likewise.
10120 * elf/dl-load.c: Likewise.
10121 * elf/rtld.c: Likewise.
10122 * include/libc-symbols.h: Likewise.
10123 * include/stdio.h: Likewise.
10124 * io/Makefile: Likewise.
10125 * io/fstat.c: Likewise.
10126 * io/fstat64.c: Likewise.
10127 * io/fstatat.c: Likewise.
10128 * io/fstatat64.c: Likewise.
10129 * io/lstat.c: Likewise.
10130 * io/lstat64.c: Likewise.
10131 * io/mknod.c: Likewise.
10132 * io/mknodat.c: Likewise.
10133 * io/stat.c: Likewise.
10134 * io/stat64.c: Likewise.
10135 * libio/stdio.c: Likewise.
10136 * nscd/Makefile: Likewise.
10137 * stdlib/Makefile: Likewise.
10138 * stdlib/atexit.c: Likewise.
10139 * sysdeps/generic/ldsodefs.h: Likewise.
10140 * sysdeps/i386/dl-machine.h: Likewise.
10141 * sysdeps/i386/sysdep.h: Likewise.
10142 * sysdeps/i386/i686/memcmp.S: Likewise.
10143 * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
10144 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
10145 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
10147 * Makerules: USE_TLS support is now default.
10148 * tls.make.c: Likewise.
10149 * csu/Versions: Likewise.
10150 * csu/libc-start.c: Likewise.
10151 * csu/libc-tls.c: Likewise.
10152 * csu/version.c: Likewise.
10153 * dlfcn/dlinfo.c: Likewise.
10154 * elf/dl-addr.c: Likewise.
10155 * elf/dl-cache.c: Likewise.
10156 * elf/dl-close.c: Likewise.
10157 * elf/dl-iteratephdr.c: Likewise.
10158 * elf/dl-load.c: Likewise.
10159 * elf/dl-lookup.c: Likewise.
10160 * elf/dl-object.c: Likewise.
10161 * elf/dl-open.c: Likewise.
10162 * elf/dl-reloc.c: Likewise.
10163 * elf/dl-support.c: Likewise.
10164 * elf/dl-sym.c: Likewise.
10165 * elf/dl-sysdep.c: Likewise.
10166 * elf/dl-tls.c: Likewise.
10167 * elf/ldconfig.c: Likewise.
10168 * elf/rtld.c: Likewise.
10169 * elf/tst-tls-dlinfo.c: Likewise.
10170 * elf/tst-tls1.c: Likewise.
10171 * elf/tst-tls10.h: Likewise.
10172 * elf/tst-tls14.c: Likewise.
10173 * elf/tst-tls2.c: Likewise.
10174 * elf/tst-tls3.c: Likewise.
10175 * elf/tst-tls4.c: Likewise.
10176 * elf/tst-tls5.c: Likewise.
10177 * elf/tst-tls6.c: Likewise.
10178 * elf/tst-tls7.c: Likewise.
10179 * elf/tst-tls8.c: Likewise.
10180 * elf/tst-tls9.c: Likewise.
10181 * elf/tst-tlsmod1.c: Likewise.
10182 * elf/tst-tlsmod13.c: Likewise.
10183 * elf/tst-tlsmod13a.c: Likewise.
10184 * elf/tst-tlsmod14a.c: Likewise.
10185 * elf/tst-tlsmod2.c: Likewise.
10186 * elf/tst-tlsmod3.c: Likewise.
10187 * elf/tst-tlsmod4.c: Likewise.
10188 * elf/tst-tlsmod5.c: Likewise.
10189 * elf/tst-tlsmod6.c: Likewise.
10190 * include/errno.h: Likewise.
10191 * include/link.h: Likewise.
10192 * include/tls.h: Likewise.
10193 * locale/global-locale.c: Likewise.
10194 * locale/localeinfo.h: Likewise.
10195 * malloc/arena.c: Likewise.
10196 * malloc/hooks.c: Likewise.
10197 * malloc/malloc.c: Likewise.
10198 * resolv/Versions: Likewise.
10199 * sysdeps/alpha/dl-machine.h: Likewise.
10200 * sysdeps/alpha/libc-tls.c: Likewise.
10201 * sysdeps/generic/ldsodefs.h: Likewise.
10202 * sysdeps/generic/tls.h: Likewise.
10203 * sysdeps/i386/dl-machine.h: Likewise.
10204 * sysdeps/ia64/dl-machine.h: Likewise.
10205 * sysdeps/ia64/libc-tls.c: Likewise.
10206 * sysdeps/mach/hurd/fork.c: Likewise.
10207 * sysdeps/mach/hurd/i386/tls.h: Likewise.
10208 * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
10209 * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
10210 * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
10211 * sysdeps/s390/libc-tls.c: Likewise.
10212 * sysdeps/s390/s390-32/dl-machine.h: Likewise.
10213 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10214 * sysdeps/sh/dl-machine.h: Likewise.
10215 * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10216 * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10217 * sysdeps/x86_64/dl-machine.h: Likewise.
10219 * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
10220 split out locking and parameter checking.
10221 (_dl_close): Call _dl_close_worker after locking and checking.
10222 * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
10224 * elf/Makefile: Add rules to build and run tst-thrlock.
10225 * elf/tst-thrlock.c: New file.
10228 * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
10232 * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
10233 we are sure we do not need it anymore for _dl_close. Also move
10234 the asserts inside the lock region.
10235 Patch mostly by Suzuki <suzuki@in.ibm.com>.
10237 2006-10-27 Jakub Jelinek <jakub@redhat.com>
10239 * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
10241 (_dl_lookup_symbol_x): Adjust caller.
10243 * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
10245 * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
10247 * elf/dl-libc.c: Revert l_scope name changes.
10248 * elf/dl-load.c: Likewise.
10249 * elf/dl-object.c: Likewise.
10250 * elf/rtld.c: Likewise.
10251 * elf/dl-close.c (_dl_close): Likewise.
10252 * elf/dl-open.c (dl_open_worker): Likewise. If not SINGLE_THREAD_P,
10253 always use __rtld_mrlock_{change,done}. Always free old scope list
10254 here if not l_scope_mem.
10255 * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
10256 change. Never free scope list here. Just __rtld_mrlock_lock before
10257 the lookup and __rtld_mrlock_unlock it after the lookup.
10258 * elf/dl-sym.c: Likewise.
10259 * include/link.h (struct r_scoperec): Remove.
10260 (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
10261 with l_scope_mem and l_scoperec_lock with l_scope_lock.
10263 2006-10-25 Ulrich Drepper <drepper@redhat.com>
10265 * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
10267 2006-10-18 Ulrich Drepper <drepper@redhat.com>
10269 * configure.in: Disable building profile libraries by default.
10271 2006-10-17 Jakub Jelinek <jakub@redhat.com>
10273 * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
10274 as signed longs, check for x_base + pos overflow.
10275 * sunrpc/Makefile (tests): Add tst-xdrmem2.
10276 * sunrpc/tst-xdrmem2.c: New test.
10278 2006-10-18 Ulrich Drepper <drepper@redhat.com>
10280 * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
10281 _dl_lookup_symbol_x code.
10283 2006-10-17 Jakub Jelinek <jakub@redhat.com>
10285 * elf/dl-runtime.c: Include sysdep-cancel.h.
10286 (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
10287 scoperec->nusers only if !SINGLE_THREAD_P. Use atomic_*
10288 instead of catomic_* macros.
10289 * elf/dl-sym.c: Include sysdep-cancel.h.
10290 (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
10291 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
10292 * elf/dl-close.c: Include sysdep-cancel.h.
10293 (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
10294 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
10295 * elf/dl-open.c: Include sysdep-cancel.h.
10296 (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
10297 if !SINGLE_THREAD_P. Use atomic_* instead of catomic_* macros.
10299 2006-10-17 Jakub Jelinek <jakub@redhat.com>
10302 * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
10303 fastbin rather than end of fastbin array.
10305 2006-10-18 Ulrich Drepper <drepper@redhat.com>
10307 * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
10309 * sysdeps/x86_64/bits/atomic.h
10310 (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
10311 (catomic_decrement): Use correct body macro.
10313 2006-10-17 Jakub Jelinek <jakub@redhat.com>
10315 * include/atomic.h: Add a unique prefix to all local variables
10317 * csu/tst-atomic.c (do_test): Test also catomic_* macros.
10319 2006-10-16 Ulrich Drepper <drepper@redhat.com>
10322 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
10325 2006-10-14 Ulrich Drepper <drepper@redhat.com>
10327 * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
10329 2006-10-13 Ulrich Drepper <drepper@redhat.com>
10332 * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
10333 determine highest fast bin to consolidate, always look into all of
10335 (do_check_malloc_state): Only require for empty bins for large
10336 sizes in main arena.
10338 * libio/stdio.h: Add more __wur attributes.
10340 * elf/dl-minimal.c (realloc): Optimize last patch.
10342 2006-10-12 Richard Sandiford <richard@codesourcery.com>
10345 * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
10346 and use memcpy() if it does.
10348 2006-11-12 Andreas Jaeger <aj@suse.de>
10351 * manual/search.texi (Hash Search Function): Clarify.
10352 (Array Search Function): Clarify.
10354 2006-11-12 Joseph Myers <joseph@codesourcery.com>
10357 * math/atest-exp.c (main): Cast hex value to mp_limb_t before
10359 * math/atest-exp2.c (read_mpn_hex): Likewise.
10360 * math/atest-sincos.c (main): Likewise.
10362 2006-10-11 Ulrich Drepper <drepper@redhat.com>
10364 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
10365 * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
10366 * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
10368 * Versions.def: Add GLIBC_2.6 for libc.
10370 * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
10372 * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
10374 2006-10-11 Jakub Jelinek <jakub@redhat.com>
10376 * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
10378 * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
10380 * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
10381 * sysdeps/generic/unsecvars.h: Add NIS_PATH.
10383 2006-10-11 Ulrich Drepper <drepper@redhat.com>
10385 * include/atomic.c: Define catomic_* operations.
10386 * sysdeps/x86_64/bits/atomic.h: Likewise. Fix a few minor problems.
10387 * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
10388 * malloc/memusage.c: Likewise.
10389 * gmon/mcount.c: Likewise.
10390 * elf/dl-close.c: Likewise.
10391 * elf/dl-open.c: Likewise.
10392 * elf/dl-profile.c: Likewise.
10393 * elf/dl-sym.c: Likewise.
10394 * elf/dl-runtime.c: Likewise.
10395 * elf/dl-fptr.c: Likewise.
10396 * resolv/res_libc.c: Likewise.
10398 2006-10-10 Ulrich Drepper <drepper@redhat.com>
10400 * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
10401 components which lack them.
10403 * nis/nis_subr.c (nis_getnames): Make sure that we always return
10404 at least one entry consisting of the parameter concatenated with
10407 2006-10-10 Roland McGrath <roland@frob.com>
10409 * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
10410 * sysdeps/mach/hurd/futimes.c: Likewise.
10411 * sysdeps/mach/hurd/lutimes.c: Likewise.
10413 2006-10-09 Ulrich Drepper <drepper@redhat.com>
10414 Jakub Jelinek <jakub@redhat.com>
10416 Implement reference counting of scope records.
10417 * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
10418 from the list in objects which remain. Always allocate new scope
10420 * elf/dl-open.c (dl_open_worker): When growing array for scopes,
10421 don't resize, allocate a new one.
10422 * elf/dl-runtime.c: Update reference counters before using a scope
10424 * elf/dl-sym.c: Likewise.
10425 * elf/dl-libc.c: Adjust for l_scope name change.
10426 * elf/dl-load.c: Likewise.
10427 * elf/dl-object.c: Likewise.
10428 * elf/rtld.c: Likewise.
10429 * include/link.h: Include <rtld-lowlevel.h>. Define struct
10430 r_scoperec. Replace r_scope with pointer to r_scoperec structure.
10431 Add l_scoperec_lock.
10432 * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
10433 * sysdeps/generic/rtld-lowlevel.h: New file.
10435 * include/atomic.h: Rename atomic_and to atomic_and_val and
10436 atomic_or to atomic_or_val. Define new macros atomic_and and
10437 atomic_or which do not return values.
10438 * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
10440 * sysdeps/i386/i486/bits/atomic.h: Likewise.
10442 * po/sv.po: Update from translation team.
10444 2006-10-07 Ulrich Drepper <drepper@redhat.com>
10446 * Versions.def: Add GLIBC_2.6 to libpthread.
10448 * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
10449 (versioned_symbol): Likewise.
10450 (compat_symbol): Likewise.
10452 * po/tr.po: Update from translation team.
10454 2006-10-06 Ulrich Drepper <drepper@redhat.com>
10456 * nis/Banner: Removed. It's been integral part forever and the
10457 author info is incomplete anyway.
10458 * libio/Banner: Likewise.
10460 * nis/nis_table.c (nis_list): If __follow_path fails in the new
10461 code, make sure the nis_freeresult call doesn't crash and that the
10462 result is reported correctly.
10464 2006-09-27 Jakub Jelinek <jakub@redhat.com>
10466 * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
10467 when callback is NULL.
10469 * nis/Versions (libnss_nisplus): Add
10470 _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
10471 * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
10472 * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
10473 _nss_create_tablename): Rename to...
10474 (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
10475 ... these. No longer static.
10476 (internal_setgrent): Adjust users.
10477 (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
10478 Don't use locking around _nss_grp_create_tablename call.
10479 * nis/nss_nisplus/nisplus-initgroups.c: New file.
10481 2006-10-06 Ulrich Drepper <drepper@redhat.com>
10483 * version.h (VERSION): Bump to 2.5.90 for new development tree.
10485 2006-10-06 Andreas Jaeger <aj@suse.de>
10487 * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
10489 2006-10-06 Ulrich Drepper <drepper@redhat.com>
10491 * po/pl.po: Update from translation team.
10493 * nscd/nscd.c (main): Fix typo in message.
10494 Patch by Jakub Bogsz <qboosh@pld-linux.org>.
10496 2006-10-02 Jakub Jelinek <jakub@redhat.com>
10499 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
10500 errno.h, signal.h, unistd.h and sysdep-cancel.h.
10501 (__sigprocmask): Define.
10503 2006-10-02 Ulrich Drepper <drepper@redhat.com>
10505 * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
10508 2006-10-02 Jakub Jelinek <jakub@redhat.com>
10510 * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
10511 in oldtotal and newtotal calculation.
10512 * nscd/nscd-client.h (struct mapped_database): Add datasize
10514 * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
10515 (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
10517 (__nscd_cache_search): Add checks to make sure we never reference
10518 data beyond the current mapping.
10520 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
10522 * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
10523 variables const to avoid compiler warnings.
10525 * io/fts.c (fts_close): Remove redundant checks.
10526 (fts_build): Likewise.
10527 (fts_palloc): Likewise.
10529 * manual/message.texi (Advanced gettext functions,
10530 Using gettextized software): Fix typos.
10532 2006-09-30 Ulrich Drepper <drepper@redhat.com>
10534 * posix/glob.c (glob_in_dir): Add some comments and asserts to
10535 explain why there are no leaks.
10537 2006-09-29 Ulrich Drepper <drepper@redhat.com>
10539 * libio/wmemstream.c: Include <wchar.h>.
10540 * libio/bug-wmemstream1.c: Likewise.
10541 * libio/tst-wmemstream1.c: Likewise.
10542 * libio/tst-wmemstream2.c: Likewise.
10544 * version.h (RELEASE): Bump to 2.5.
10545 * README: Regenerated.
10547 * locale/iso-3166.def: Add Aaland Islands and Montenegro.
10550 * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
10551 found no group members.
10552 Patch by Petr Baudis.
10554 2006-09-29 Jakub Jelinek <jakub@redhat.com>
10556 * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
10557 assert bootstrap_map.l_tls_modid is zero.
10558 (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
10561 2006-09-27 Ulrich Drepper <drepper@redhat.com>
10563 * libio/stdio.h: Move open_wmemstream prototype to ...
10564 * wcsmbs/wchar.h: ... here.
10566 2006-09-25 Jakub Jelinek <jakub@redhat.com>
10569 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
10570 fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
10571 __{,l}chown to handle the rest.
10572 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
10573 fchownat syscall and __ASSUME_32BITUIDS case inline, call
10574 __{,l}chown to handle the rest.
10575 * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
10577 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
10578 * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
10581 * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
10582 time, rather allocate increasingly bigger arrays of pointers, if
10583 possible with alloca, if too large with malloc.
10585 2006-09-24 Jakub Jelinek <jakub@redhat.com>
10587 * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
10589 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
10591 2006-09-24 Ulrich Drepper <drepper@redhat.com>
10593 * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
10595 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
10596 IFA_F_HOMEADDRESS flag for interfaces.
10597 * include/ifaddrs.h (struct in6addrinfo): Define
10600 2006-09-21 Jakub Jelinek <jakub@redhat.com>
10603 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
10604 PTR_DEMANGLE3): Define.
10605 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
10606 PTR_DEMANGLE3): Likewise.
10607 * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
10608 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
10610 * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
10612 2006-09-20 Jakub Jelinek <jakub@redhat.com>
10614 * po/libc.pot: Regenerated.
10615 * po/be.po: Updated.
10616 * po/ca.po: Likewise.
10617 * po/cs.po: Likewise.
10618 * po/da.po: Likewise.
10619 * po/de.po: Likewise.
10620 * po/el.po: Likewise.
10621 * po/en_GB.po: Likewise.
10622 * po/es.po: Likewise.
10623 * po/fi.po: Likewise.
10624 * po/fr.po: Likewise.
10625 * po/gl.po: Likewise.
10626 * po/hr.po: Likewise.
10627 * po/hu.po: Likewise.
10628 * po/ja.po: Likewise.
10629 * po/ko.po: Likewise.
10630 * po/nb.po: Likewise.
10631 * po/nl.po: Likewise.
10632 * po/pl.po: Likewise.
10633 * po/pt_BR.po: Likewise.
10634 * po/ru.po: Likewise.
10635 * po/rw.po: Likewise.
10636 * po/sk.po: Likewise.
10637 * po/sv.po: Likewise.
10638 * po/tr.po: Likewise.
10639 * po/zh_CN.po: Likewise.
10640 * po/zh_TW.po: Likewise.
10643 * iconv/iconv_prog.c (main): Fix spelling in error message.
10644 * iconv/iconvconfig.c (main): Likewise.
10645 * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
10646 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
10647 * locale/programs/localedef.c (main): Likewise.
10648 * locale/programs/repertoire.c (repertoire_read): Likewise.
10649 * timezone/zdump.c (main): Likewise.
10650 * nscd/connections.c (handle_request): Fix spelling in log message.
10651 Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
10653 2006-09-20 Ulrich Drepper <drepper@redhat.com>
10655 * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
10658 2006-09-20 Andreas Jaeger <aj@suse.de>
10660 * math/libm-test.inc (lrint_test_upward): Fix typo.
10662 2006-06-17 Joseph S. Myers <joseph@codesourcery.com>
10665 * math/libm-test.inc (lrint_test_tonearest): New function.
10666 (lrint_test_towardzero): New function.
10667 (lrint_test_downward): New function.
10668 (lrint_test_upward): New function.
10669 (main): Run these new tests.
10670 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
10671 of values near to 0.
10672 (two52): Use double not long double.
10673 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
10674 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
10675 (two23): Use float not double.
10676 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
10677 (two23): Use float not double.
10678 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
10679 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
10680 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
10681 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
10683 2006-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
10685 * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
10686 Cast sp to unsigned long to avoid compiler warning.
10687 Use __makecontext_ret function instead of a trampoline on the stack.
10688 (__makecontext_ret): New function.
10689 * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
10691 2006-09-19 Jakub Jelinek <jakub@redhat.com>
10693 * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
10694 platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
10697 2006-09-19 Ulrich Drepper <drepper@redhat.com>
10699 * elf/dl-close.c (_dl_close): If dependency is not unloaded make
10700 sure no reference to the unloaded map's search list remains in the
10701 dependency's scope.
10703 2006-09-16 Jakub Jelinek <jakub@redhat.com>
10705 * elf/Makefile: Add rules to build and run unload7 test.
10706 * elf/unload7.c: New test.
10707 * elf/unload7mod1.c: New file.
10708 * elf/unload7mod2.c: New file.
10710 2006-09-18 Jakub Jelinek <jakub@redhat.com>
10712 * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
10713 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
10714 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10715 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
10716 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10717 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
10718 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10719 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
10720 PTRACE_GETEVENTMSG): Likewise.
10721 (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
10724 2006-09-17 Mike Frysinger <vapier@gentoo.org>
10726 * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
10727 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10728 * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
10729 PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
10731 2006-09-16 Jakub Jelinek <jakub@redhat.com>
10733 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
10734 write '\0' to the fd.
10735 * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
10736 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
10737 Change regs to unsigned long pointer from unsigned int, fix fscr
10740 2006-09-14 Jakub Jelinek <jakub@redhat.com>
10742 * io/Makefile (CFLAGS-fstatat.c): Set.
10743 (CFLAGS-fstatat64.c): Likewise.
10744 (CFLAGS-mknodat.c): Likewise.
10746 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
10747 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10748 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
10749 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
10751 2006-09-14 Jakub Jelinek <jakub@redhat.com>
10752 Steven Munroe <sjmunroe@us.ibm.com>
10754 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
10755 names to the beginning. Rename "cell" to "cellbe".
10756 (_dl_powerpc_platforms): New.
10757 * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10758 (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
10759 (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
10760 (_DL_HWCAP_PLATFORM): Define to new mask.
10761 (_dl_platform_string, _dl_string_platform): New functions.
10762 * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
10763 PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
10765 2006-09-12 Jakub Jelinek <jakub@redhat.com>
10768 * README.libm: Fix a thinko in sqrt algorithm description.
10771 * manual/string.texi (argz_delete): Fix prototype.
10772 Patch by <alpt@freaknet.org>.
10774 2006-08-26 Joseph Myers <joseph@codesourcery.com>
10777 * io/test-lfs.c (do_prepare): Give name_len type size_t.
10778 * io/tst-fcntl.c (do_prepare): Likewise.
10779 * posix/tst-exec.c (do_prepare): Likewise.
10780 * posix/tst-preadwrite.c (do_prepare): Likewise.
10781 * posix/tst-spawn.c (do_prepare): Likewise.
10782 * posix/tst-truncate.c (do_prepare): Likewise.
10783 * rt/tst-aio.c (do_prepare): Likewise.
10784 * rt/tst-aio64.c (do_prepare): Likewise.
10785 * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
10788 2006-09-09 Ulrich Drepper <drepper@redhat.com>
10791 * time/mktime.c (guess_time_tm): Fix overflow detection.
10792 * time/Makefile (tests): Add bug-mktime1.
10793 * time/bug-mktime1.c: New file.
10796 * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
10797 (mremap): Likewise.
10799 2006-09-07 Jakub Jelinek <jakub@redhat.com>
10802 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
10803 Ensure relocation doesn't clobber any bits outside of the
10804 immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
10805 R_SPARC_HI22 and R_SPARC_H44.
10808 * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
10809 (long) (MINSIZE + nb - old_size) is positive.
10811 * malloc/arena.c (grow_heap): When growing bail even if new_size
10815 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
10818 2006-09-06 Jakub Jelinek <jakub@redhat.com>
10820 * posix/regex_internal.c (re_string_reconstruct): Handle
10821 offset < pstr->valid_raw_len && pstr->offsets_needed case.
10822 Ensure no bytes read before raw_mbs array. Pass a saved copy of
10823 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
10824 re_string_context_at.
10825 * posix/Makefile: Add rules to build and run bug-regex26 test.
10826 * posix/bug-regex26.c: New test.
10828 * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
10829 rather than col_sym_free. Move seqp declaration earlier.
10831 * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
10833 2006-09-05 Jakub Jelinek <jakub@redhat.com>
10835 * nscd/initgrcache.c (addinitgroupsX): Move any_success
10836 decl before first goto out.
10838 2006-09-04 Jakub Jelinek <jakub@redhat.com>
10840 * Makerules (shlib.lds): If have-hash-style, put .hash section
10841 at the end of the RO segment.
10843 2006-09-04 Ulrich Drepper <drepper@redhat.com>
10845 * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
10846 style hash table format is used.
10848 2006-09-04 Jakub Jelinek <jakub@redhat.com>
10850 * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
10851 randomization rather than before.
10852 * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
10854 2006-08-31 Jakub Jelinek <jakub@redhat.com>
10856 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
10858 * malloc/malloc.c (_int_malloc): Use full list insert and not
10859 shortcut which assumes the list is empty for large requests
10862 * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
10864 2006-08-30 Jakub Jelinek <jakub@redhat.com>
10866 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
10867 and offout arguments to the prototype.
10868 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
10869 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
10870 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
10871 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
10872 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
10873 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
10874 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
10875 * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
10877 2006-08-28 Ulrich Drepper <drepper@redhat.com>
10879 * elf/dl-load.c (_dl_init_paths): Expand DSTs.
10881 * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
10884 2006-08-28 Jakub Jelinek <jakub@redhat.com>
10886 * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
10887 only if herrno is NETDB_INTERNAL. Handle errors other than
10888 ERANGE outside of the loops, handle TRY_AGAIN.
10890 * locale/programs/ld-ctype.c (translit_flatten): Issue error
10891 if other's ctype category was missing.
10892 * locale/programs/ld-collate.c (collate_read): Return if
10893 copy_locale's collate category is missing.
10895 2006-08-27 Ulrich Drepper <drepper@redhat.com>
10898 * malloc/malloc.c (public_rEALLOc): Try harder by using other
10899 arenas if allocation failed.
10900 Patch mostly by Jan Edler <jan.edler@indexengines.com>.
10902 2006-08-26 Ulrich Drepper <drepper@redhat.com>
10904 * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
10906 (malloc_state): Reduce bins size by 2.
10907 (_int_malloc): Fix test for large enough buffer for early termination.
10908 When no unsorted block matches perfectly and an exiting block has
10909 to be split, use full list insert and not shortcut which assumes
10912 * locale/programs/ld-ctype.c (ctype_read): Better patch for read
10915 2006-08-24 Ulrich Drepper <drepper@redhat.com>
10917 * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
10920 * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
10921 symbol require exact match (these are PLTs).
10922 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
10923 (_dl_ppc64_addr_sym_match): Likewise.
10926 * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
10927 If symbol has a value use it.
10928 * elf/tst-dladdr1.c: New file.
10929 * elf/Makefile: Add rules to build and run tst-addr1.
10931 2006-08-24 Jakub Jelinek <jakub@redhat.com>
10933 * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
10934 keeps failing and heap growth or new heap creation isn't
10936 * malloc/tst-malloc.c (main): Add new tests.
10938 2006-08-24 Ulrich Drepper <drepper@redhat.com>
10941 * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
10942 as in the x86-64 code to use bswap.
10944 2006-05-21 Joseph S. Myers <joseph@codesourcery.com>
10947 * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
10949 * posix/bits/unistd.h: Likewise.
10951 2006-05-15 Mike Frysinger <vapier@gentoo.org>
10954 * string/strchr.c: Add cast to avoid warning.
10956 2006-08-21 Ulrich Drepper <drepper@redhat.com>
10958 * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
10959 platforms define as 512K. For 64-bit platforms as 32MB. The lower
10960 limit is needed to avoid the exploding of the address space
10961 requirement for secondary heaps.
10962 * malloc/arena.c (HEAP_MAX_SIZE): Define using
10963 DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
10965 2006-07-30 Joseph S. Myers <joseph@codesourcery.com>
10968 * Makerules (depfiles): Handle extra-test-objs the same as
10970 (common-mostlyclean): Likewise.
10971 * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
10973 * elf/Makefile (extra-objs): Likewise.
10974 * stdlib/Makefile (extra-objs): Likewise.
10976 2006-08-14 Eric Blake <ebb9@byu.net>
10979 * misc/error.h: Assume C89 or better.
10980 * misc/error.c: Likewise.
10982 2006-08-21 Ulrich Drepper <drepper@redhat.com>
10985 * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
10986 __ASSUME_ATFCTS is defined.
10988 2006-08-19 Ulrich Drepper <drepper@redhat.com>
10990 * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
10991 to sort in each call.
10993 * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
10994 is empty simply return and use next service.
10995 * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
10997 * locale/programs/charmap.c (charmap_read): Add new parameter. It
10998 tells us when not finding a charmap file is an error.
10999 * locale/programs/charmap.h: Adjust charmap_read prototype.
11000 * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
11001 cannot find a charmap.
11002 * locale/programs/localedef.c (main): Adjust charmap_read call.
11004 2006-08-15 Jakub Jelinek <jakub@redhat.com>
11006 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
11007 sysdeps/posix/pause.c implementation instead.
11009 2006-08-09 Jakub Jelinek <jakub@redhat.com>
11011 * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
11014 2006-08-13 Andreas Schwab <schwab@suse.de>
11016 * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
11017 Don't clobber caller's LRSAVE.
11018 (_dl_prof_resolve): Likewise.
11020 2006-08-14 Ulrich Drepper <drepper@redhat.com>
11023 * libio/memstream.c (open_memstream): Allocate initial buffer with
11025 * libio/wmemstream.c (open_wmemstream): Likewise.
11026 * libio/strops.c: Pretty printing.
11027 (_IO_str_overflow): Clear uninitialized part of the new buffer.
11028 (enlarge_userbuf): New function.
11029 (_IO_str_seekoff): Call it if seek position is larger than current
11031 * libio/wstrops.c: Likewise.
11032 * libio/vasprintf.c: Add comment as to why we do not have to use
11033 calloc instead of malloc to allocate initial buffer.
11034 * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
11035 * libio/bug-memstream1.c: New file.
11036 * libio/bug-wmemstream1.c: New file.
11038 2006-08-13 Ulrich Drepper <drepper@redhat.com>
11040 * libio/wstrops.c: Remove dead macro definitions and comments.
11041 * libio/strops.c: Likewise.
11044 * login/utmpname.c (__utmpname): Remove unnecessary test.
11046 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org>
11049 * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
11052 2006-08-13 Ulrich Drepper <drepper@redhat.com>
11055 * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
11057 * sysdeps/unix/clock_settime.c: Add support for platform-specific
11058 setting of CPU clocks.
11060 2006-06-23 Paul Eggert <eggert@cs.ucla.edu>
11063 * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
11064 since C99 requires the result to promote to 'int' when uint_least8_t
11065 and uint_least16_t promote to 'int'.
11067 2006-08-12 Ulrich Drepper <drepper@redhat.com>
11070 * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
11071 lenght of one output field, correct bitmask creation.
11072 * locale/programs/ld-time.c: Add alignment.
11075 * misc/error.c: Add space between program name and message if file
11078 2006-08-03 Eric Blake <ebb9@byu.net>
11081 * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
11083 2006-08-09 Ulrich Drepper <drepper@redhat.com>
11085 * malloc/memusagestat.c: Silence warnings.
11087 * malloc/malloc.c: Dynamically size mmap treshold if the program
11088 frees mmaped blocks.
11089 Patch by Valerie Henson and Arjan van de Ven.
11091 2006-08-08 Jakub Jelinek <jakub@redhat.com>
11093 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
11096 * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
11097 __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
11098 (DEF): Don't put the var into .gnu.linkonce.r.* section.
11099 Only provide var definitions in strtol_l (or for *ull*
11102 * stdio-common/bug16.c (tests): New array.
11103 (do_tests): Allow the first hexadecimal digit
11104 to be 1, 2, 4 or 8. Do 3 additional tests.
11106 * sysdeps/s390/fpu/libm-test-ulps: Update.
11108 * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
11109 fchownat syscall if available.
11110 * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
11111 * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
11112 * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
11114 2006-08-07 Ulrich Drepper <drepper@redhat.com>
11116 * nis/nis_xdr.c: Avoid some function calls.
11118 2006-08-07 Jakub Jelinek <jakub@redhat.com>
11119 Ulrich Drepper <drepper@redhat.com>
11121 * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
11122 short cut if only one name component is stripped away.
11124 2006-08-07 Ulrich Drepper <drepper@redhat.com>
11126 * nis/nis_call.c: Minor cleanups throughout.
11127 (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
11128 (first_shoot): Add search_parent_first parameter. Only if it is set
11129 search parent server first.
11130 If directory for table found through cold start cache is not the same
11131 as referenced in the cache, don't use it.
11132 (__nisfind_server): Take additional parameter. Pass it on to
11134 (__prepare_niscall): Adjust __nisfind_server call.
11135 * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
11136 * nis/nis_table.c: Adjust __nisfind_server call.
11137 * nis/nis_lookup.c: Likewise.
11138 (nis_lookup): Don't loop endlessly if name is reduced to ".".
11140 2006-08-03 Ulrich Drepper <drepper@redhat.com>
11143 * math/s_cacosh.c: Return values from positive branch.
11144 * math/s_cacoshf.c: Likewise.
11145 * math/s_cacoshl.c: Likewise.
11148 * sysvipc/sys/msg.h: Change return value to ssize_t.
11149 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
11150 * sysvipc/msgrcv.c: Likewise.
11151 * include/sys/msg.h: Likewise.
11153 * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
11154 test introduced in patch for bz #661.
11155 (getgrouplist): Simplify code a bit. Don't allocate one additional
11156 element for NEWGROUPS.
11159 * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
11160 'f', use '1' as leading digit not '\1'.
11161 * stdio-common/Makefile (tests): Add bug16.
11162 * stdio-common/bug16.c: New file.
11165 * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
11166 and don't try to open it. The patch introducing the macro
11167 contained a bug and used the same file name as the new file
11168 instead of using /var/adm/hostid. Nobody complaint so I'm taking
11169 this out completely.
11172 * assert/assert.h: Move cast to void inside ?: to quiet gcc.
11173 Patch by Jerry James <Jerry.James@usu.edu>.
11175 * rt/Makefile (tests): Add tst-clock2.
11176 * rt/tst-clock2.c: New file.
11179 * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
11180 function and its parameters and pass it to new thread.
11181 (__gai_notify): Add support for alternative waiting for completion.
11182 * resolv/gai_suspend.c (gai_suspend): Add support for alternative
11183 waiting for completion.
11184 * resolv/getaddrinfo_a.c: Likewise.
11185 * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
11186 waiting for completion is used.
11187 * resolv/gai_misc.c: Allow overwriting code to start helper thread.
11188 * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
11189 * resolv/gai_error.c: Likewise.
11190 * resolv/gai_sigqueue.c: Likewise.
11192 2006-08-02 Thomas Schwinge <tschwinge@gnu.org>
11194 * hurd/getdport.c (__getdport): Don't return EBADF; instead set
11195 errno to EBADF and return MACH_PORT_NULL.
11197 2006-06-23 Joseph Myers <joseph@codesourcery.com>
11200 * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
11202 2006-08-02 Ulrich Drepper <drepper@redhat.com>
11204 * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
11205 walk them instead of the symbol table.
11207 2006-08-01 Ulrich Drepper <drepper@redhat.com>
11210 * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
11211 status of NSS calls, not the number of returned entries.
11213 * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
11214 request_key, keyctl.
11216 2006-07-31 Ulrich Drepper <drepper@redhat.com>
11218 * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
11220 2006-07-16 Jeff Bailey <jbailey@ubuntu.com>
11222 * elf/tst-auditmod1.c: Fix typo in #error.
11224 2006-07-31 Ulrich Drepper <drepper@redhat.com>
11226 * elf/tst-auditmod1.c: Remove code for unsupported architectures.
11228 * iconvdata/run-iconv-test.sh: Run cmp in C locale.
11230 2006-07-20 Adam Nemet <anemet@caviumnetworks.com>
11232 * stdlib/test-canon.c (do_test): Close fd before unlinking file so
11233 that the directory is empty even on non-POSIX filesystems.
11235 2006-07-31 Ulrich Drepper <drepper@redhat.com>
11237 * elf/dl-open.c (dl_open_worker): Add branch prediction.
11239 * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
11240 the backend NSS module. If backend setgrent call failed, don't have
11241 internal_setgrent fail. Just remember this until it is needed.
11242 * nis/nss_compat/compat-pwd.c: Likewise.
11243 * nis/nss_compat/compat-spwd.c: Likewise.
11245 2006-07-30 Roland McGrath <roland@redhat.com>
11247 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
11248 * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
11249 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
11250 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
11252 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
11253 (nanosleep_not_cancel): New macro.
11254 (sigsuspend_not_cancel): new macro.
11255 * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
11256 (do_sigsuspend): Define as inline.
11257 (__sigsuspend): Always use do_sigsuspend.
11258 [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
11259 * include/signal.h: Declare __sigsuspend_nocancel.
11260 * sysdeps/posix/pause.c
11261 [! NO_CANCELLATION] (__pause_nocancel): New function.
11263 * include/unistd.h (__pause_nocancel): Add attribute_hidden.
11264 * include/time.h (__nanosleep_nocancel): Likewise.
11266 2006-07-30 Ulrich Drepper <drepper@redhat.com>
11268 * locale/programs/localedef.c (add_to_readlist): Rename local
11269 variables to avoid confusion.
11271 * locale/programs/charmap.c (charmap_read): Emit error message if
11272 charmap couldn't be found or read.
11274 2006-07-28 Ulrich Drepper <drepper@redhat.com>
11276 * sysdeps/unix/sysv/linux/kernel-features.h: Define
11277 __ASSUME_FUTEX_LOCK_PI.
11278 * include/time.h: Declare __nanosleep_nocancel.
11279 * include/unistd.h: Declare __pause_nocancel.
11281 * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
11282 LDFLAGS. Add -lgcc_eh and libc_nonshared (again) to make sure we
11283 get the __stack_chk_fail_local definition when it's needed.
11285 2006-07-26 Ulrich Drepper <drepper@redhat.com>
11287 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
11288 * dlfcn/bug-atexit3.c: New file.
11289 * dlfcn/bug-atexit3-lib.cc: New file.
11291 * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
11292 used when the namespace is not the base namespace.
11294 2006-07-26 Gavin Romig-Koch <gavin@redhat.com>
11296 * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
11297 (__new_exitfn): Bump it in every successful call.
11298 * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
11299 more exit handlers, call them right away.
11300 * stdlib/exit.h: Declare __new_exitfn_called.
11302 2006-07-25 Ulrich Drepper <drepper@redhat.com>
11304 * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
11305 calling registered handler.
11307 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
11308 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11309 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11310 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11311 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11312 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11313 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11314 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11316 2006-07-10 Ulrich Drepper <drepper@redhat.com>
11318 * elf/dl-lookup.c (dl_new_hash): New functions.
11319 (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
11320 value here. Compute new-style hash value. Pass new hash value
11321 and reference to variable with the old value to do_lookup_x.
11322 (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
11323 old-style hash table.
11324 (_dl_debug_bindings): Pass new hash value and reference to variable
11325 with the old value to do_lookup_x.
11326 * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
11327 new-style hash value and change old-style hash value parameter to
11328 be a reference. Reoganize functions to determine whether
11329 new-style hash table is available. Only fall back on old-style
11330 table. If old-style hash value is needed, compute it here.
11331 * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
11333 * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
11334 DT_TLSDEC_GOT. Adjust DT_ADDRNUM.
11335 * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
11336 l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
11337 * Makeconfig: If linker supports --hash-style option add it to all
11338 linker command lines to build DSOs.
11339 * config.make.in: Define have-hash-style.
11340 * configure.in: Test whether linker supports --hash-style option.
11342 * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
11343 * sysdeps/generic/ldsodefs.h: Adjust prototype.
11345 2006-06-27 Ulrich Drepper <drepper@redhat.com>
11347 * elf/dl-load.c (open_path): Fix test to determine whether DSO is
11350 * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
11351 RPATH of main map twice.
11353 2006-06-22 Ulrich Drepper <drepper@redhat.com>
11355 * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
11356 look further, return original strings.
11357 (_nl_find_msg): Do not return found translation if the conversion
11358 failed. Either signal the string is unusable or that something went
11359 wrong and the original should be used.
11361 2006-06-21 Ulrich Drepper <drepper@redhat.com>
11363 * string/_strerror.c (__strerror_r): Add __builtin_expect.
11365 2006-06-14 Jakub Jelinek <jakub@redhat.com>
11368 * misc/insremque.c (insque): Handle prev == NULL.
11369 * misc/Makefile (tests): Add tst-insremque.
11370 * misc/tst-insremque.c: New test.
11372 2006-06-17 Ulrich Drepper <drepper@redhat.com>
11375 * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
11376 conflict with DL_DST_REQUIRED.
11378 2006-06-16 Ulrich Drepper <drepper@redhat.com>
11380 * nis/nis_subr.c (nis_getnames): Fix the implementation to better
11381 match what Solaris does.
11383 2006-06-04 Ulrich Drepper <drepper@redhat.com>
11385 * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
11386 local_setegid instead of seteuid and setegid.
11387 * sysdeps/generic/local-setxid.h: New file.
11388 * sysdeps/unix/sysv/linux/local-setxid.h: New file.
11390 * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
11392 * string/Makefile (tests): Add bug-envz1.
11393 * string/bug-envz1.c: New file.
11395 2006-06-02 Jakub Jelinek <jakub@redhat.com>
11397 * posix/regex_internal.c (re_string_skip_chars): If no character has
11398 been converted at all, set *last_wc to WEOF. If mbrtowc failed, set wc
11399 to the byte which couldn't be converted.
11400 (re_string_reconstruct): Don't clear valid_raw_len before calling
11401 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
11402 tip_context using re_string_context_at.
11403 * posix/Makefile: Add rules to build and run bug-regex25 test.
11404 * posix/bug-regex25.c: New test.
11406 2006-06-02 Ryan S. Arnold <rsa@us.ibm.com>
11409 * string/envz.c (envz_strip): Correct erroneously reversed src
11410 and dest parameters to memmove() invocation.
11412 2006-05-30 Jakub Jelinek <jakub@redhat.com>
11414 * nscd/nscd.h (prune_cache): Add fd argument to prototype.
11415 * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
11416 to make sure the database has been already invalidated.
11417 * nscd/cache.c (prune_cache): Add fd argument. Write response to fd
11418 after the cache has been invalidated. Use pthread_mutex_lock rather
11419 than pthread_mutex_trylock if fd != -1.
11420 * nscd/connections.c (invalidate_cache): Add fd argument, write
11421 response to fd if not calling prune_cache, pass fd to prune_cache.
11422 (handle_request): Adjust invalidate_cache caller.
11423 (nscd_run): Pass -1 as fd to prune_cache.
11425 2006-05-30 Ulrich Drepper <drepper@redhat.com>
11427 * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
11430 2006-05-29 Ulrich Drepper <drepper@redhat.com>
11432 * nscd/nscd.h (struct database_dyn): Add prunelock field.
11433 * nscd/cache.c (prune_cache): Take prunelock before starting the
11434 work. Just return in case it is already taken.
11435 * nscd/connections.c (dbs): Initialize .prunelock.
11437 2006-05-25 Ulrich Drepper <drepper@redhat.com>
11439 * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
11440 copying. No need to allocate new array for group members. Just
11441 move the pointers and update the size.
11443 * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
11444 Avoid memory leak in case realloc fails. Simplification for
11445 better code generation.
11447 Avoid deprecation warning because of libc_hidden_proto for
11448 inet6_option_alloc.
11449 * inet/inet6_option.c (option_alloc): Renamed from
11450 inet6_option_alloc. Made static.
11451 (inet6_option_alloc): Now a simple wrapper around option_alloc.
11452 (inet6_option_append): Call option_alloc.
11453 * include/netinet/in.h: Remove libc_hidden_proto for
11454 inet6_option_alloc.
11456 * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
11457 for cleanup when cb!=NULL [Coverity CID 233].
11459 2006-05-24 Ulrich Drepper <drepper@redhat.com>
11462 * inet/Makefile (routines): Add inet6_opt and inet6_rth.
11463 * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
11464 inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
11465 inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
11466 inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
11467 and inet6_rth_getaddr.
11468 * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
11470 * inet/netinet/in.h (struct ip6_mtuinfo): Define.
11471 Mark inet6_option_* interfaces as deprecated.
11472 Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
11473 inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
11474 inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
11475 inet6_rth_segments, and inet6_rth_getaddr.
11476 * inet/inet6_opt.c: New file.
11477 * inet/inet6_rth.c: New file.
11479 * inet/netinet/icmp6.h: Pretty printing.
11482 * elf/dl-addr.c (_dl_addr): Don't match undefined references.
11484 2006-05-23 Ulrich Drepper <drepper@redhat.com>
11486 * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
11487 doing it all here. When server does not know the answer do not
11488 fail immediate, try parent first.
11490 * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
11493 2006-05-20 Ulrich Drepper <drepper@redhat.com>
11495 * nis/nis_call.c (__prepare_niscall): New function. Split out
11497 * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
11499 (__follow_path): New function. Split out from nis_list.
11500 * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
11502 * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
11504 * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
11506 * nis/Versions: Export __prepare_niscall, __create_ib_request,
11507 __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
11508 from libnsl for version GLIBC_PRIVATE.
11509 * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
11510 Remove entry parameter from _nss_nisplus_parse_pwent and
11511 _nss_nisplus_parse_grent.
11512 * nis/nss_nisplus/nisplus-parser.c: Likewise.
11513 * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
11514 again. Rewrite getpwent handling to not use nis_first_entry and
11515 nis_next_entry. Roll out own niscall handling.
11516 * nis/nss_nisplus/nisplus-grp.c: Likewise.
11518 * sunrpc/xdr_rec.c: Fix typo in comment.
11520 2006-05-19 Ulrich Drepper <drepper@redhat.com>
11522 * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
11525 * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
11526 to allocate memory for my_pollfd. Better initialization of
11527 cb_is_running. Use TEMP_FAILURE_RETRY.
11529 * malloc/memusage.sh (memusageso): Add quotes.
11530 (memusagestat): Likewise.
11531 * debug/xtrace.sh (pcprofileso): Likewise.
11532 (pcprofiledump): Likewise.
11533 * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
11535 * malloc/Makefile ($(objpfx)memusage): Likewise.
11537 * nis/nis_callback.c (__nis_create_callback): Calls to
11538 svcudp_bufcreate and svctcp_create can fail. Free ->xprt if
11539 asprintf call fails.
11541 * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
11542 no uninitialized memory is passed to sendto.
11544 2006-05-18 Ulrich Drepper <drepper@redhat.com>
11546 * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
11547 of snprintf+strdup. Handle OOM.
11548 * nis/nis_callback.c (__nis_create_callback): Allocate cb and
11549 cb->serv together. Remove now obsolete free calls.
11550 (__nis_destroy_callback): Remove now obsolete free call.
11552 2006-05-18 David Woodhouse <dwmw2@redhat.com>
11554 * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
11555 RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
11556 and ULA respectively). Set precedence for IPv4 address to 10 as
11557 defined in RFC3484 for preferring IPv6.
11558 * posix/gai.conf: Update to match the new default tables.
11560 2006-05-18 Jakub Jelinek <jakub@redhat.com>
11562 * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
11563 returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
11564 * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
11565 * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
11567 * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
11569 (init_nss_interface): Remove initialization of these variables.
11571 2006-05-18 Ulrich Drepper <drepper@redhat.com>
11573 * nis/nis_call.c (rec_dirsearch): Little optimization: pull
11574 nis_free_directory forward to avoid duplication.
11576 2006-05-17 Ulrich Drepper <drepper@redhat.com>
11578 * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
11579 rec_dirsearch returning NULL.
11580 (first_shoot): Handle __nis_finddirectory returning NULL.
11581 (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
11583 * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
11584 IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
11586 2006-05-17 Jakub Jelinek <jakub@redhat.com>
11588 * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
11591 2006-05-15 Ulrich Drepper <drepper@redhat.com>
11593 * include/rpc/pmap_prot.h: Mark all functions as hidden.
11595 * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
11596 * nscd/nscd_getgr_r.c: Likewise.
11598 * include/rpc/pmap_rmt.h: Mark all functions as hidden.
11600 * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
11601 * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
11603 * stdlib/longlong.h (__clz_tab): Mark as hidden.
11605 * iconv/gconv_int.h: Mark __gconv_lock as hidden.
11607 * include/rpc/key_prot.h: Mark all _internal functions as hidden.
11609 * include/rpc/auth.h: Mark xdr_des_block_internal and
11610 xdr_opaque_auth_internal as hidden.
11612 * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
11615 * include/rpc/xdr.h: Mark all _internal functions as hidden.
11617 * misc/getusershell.c (okshells): Don't use static initializers,
11620 * stdlib/fmtmsg.c (keywords): Change type of len element to
11621 uint32_t to not waste space on 64bit machines.
11623 * locale/setlocale.c: Change _nl_category_names into a string.
11624 Add new _nl_category_name_idxs. Change all users.
11625 * locale/localeinfo.h: Adjust declaration of _nl_category_names.
11626 Declare _nl_category_name_idxs.
11627 * locale/findlocale.c: Adjust for _nl_category_names change.
11628 * locale/loadlocale.c: Likewise.
11629 * locale/newlocale.c: Likewise.
11630 * intl/dcigettext.c: Likewise.
11632 * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
11633 (add_alias2): ...here. New function.
11634 (__gconv_read_conf): Simplify builtin alias handling.
11635 (builtin_aliases): Convert to string to avoid relocations.
11636 * iconv/gconv_builtin.h: Add comment about correct formatting.
11638 2006-05-15 Jakub Jelinek <jakub@redhat.com>
11640 * resolv/res_debug.c (loc_ntoa): Make error const.
11642 2006-05-14 Andreas Schwab <schwab@suse.de>
11644 * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
11646 2006-05-12 Jakub Jelinek <jakub@redhat.com>
11648 * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
11649 (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
11650 sizeof (cpu_set_t).
11652 2006-05-11 Ulrich Drepper <drepper@redhat.com>
11654 * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
11656 * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
11658 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
11659 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
11661 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
11662 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
11664 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
11665 * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
11668 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
11669 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11672 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
11673 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
11675 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
11676 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
11678 * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
11679 * include/rpcsvc/nis_callback.h: New file.
11681 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
11682 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
11684 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11685 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11687 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
11688 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
11690 * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
11691 * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
11693 * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
11694 * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
11697 * nis/nis_xdr.h: Mark all functions as hidden. Remove
11698 __BEGIN_DECLS and __END_DECLS, the header is not installed.
11700 * nis/nis_error.c: Remove table of strings. Use position
11701 independent mechanism.
11702 * nis/nis_error.h: New file.
11704 2006-05-11 Jakub Jelinek <jakub@redhat.com>
11706 * locale/programs/ld-time.c (time_finish): If wide era name or
11707 format aren't provided, set both wname and wformat to L"".
11709 2006-05-10 Ulrich Drepper <drepper@redhat.com>
11711 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
11712 results if the call was succesful.
11714 * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
11716 * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
11719 2006-05-10 Jakub Jelinek <jakub@redhat.com>
11721 * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
11723 2006-05-10 Ulrich Drepper <drepper@redhat.com>
11725 * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
11726 caller makes sure this is not the case.
11727 (wordexp): Simplify ifs_white creation. [Coverity CID 231]
11729 2006-05-09 Ulrich Drepper <drepper@redhat.com>
11731 * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
11734 * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
11735 [Coverity CID 229, 230]
11737 * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
11739 (hol_help): Likewise. [Coverity CID 226, 227]
11741 * string/argz-replace.c (__argz_replace): Unconditionally call
11742 free on SRC. [Coverity CID 225]
11744 * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
11745 the return value of __nis_default_owner and __nis_default_group,
11746 it has been especially allocated. [Coverity CID 224]
11748 * nis/nis_defaults.c (searchXYX): New functions. Used by both
11749 searchgroup and searchowner. Significantly simplified.
11750 (__nis_default_owner): Remove duplication. Do not locally copy the
11751 string before duplicating it.
11752 (__nis_default_group): Likewise.
11754 * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
11755 we must clear the variable before calling __nisfind_server.
11757 * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
11758 nis_getnames. [Coverity CID 223]
11760 * locale/programs/locfile.c (locfile_read): Use alloca instead of
11761 xmalloc to allocate local repertoire name. [Coverity CID 222]
11763 * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
11764 allocate memory for the input to add_bytes. [Coverity CID 221]
11766 * posix/wordexp.c (w_addword): Free word if realloc fails and it
11767 was allocated here. [Coverity CID 219, 220]
11769 * posix/getconf.c (print_all): Free confstr data after printing.
11772 * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
11773 list allocation fails. [Coverity CID 215]
11775 * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
11778 * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
11779 string is NULL. [Coverity CID 212]
11780 * argp/Makefile: Add rules to build and run bug-argp1.
11781 * argp/bug-argp1.c: New file.
11783 * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
11785 * stdlib/canonicalize.c (__realpath): Likewise.
11787 * locale/programs/ld-time.c (time_finish): Don't dereference NULL
11788 pointer. [Coverity CID 206]
11790 * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
11791 in statically linked code.
11792 * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
11793 statically built code, be prepared to have no link map.
11796 * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
11797 dgettext calls. [Coverity CID 204]
11799 * argp/argp-help.c (struct uparams): Remove valid member. Change
11801 (uparam_names): Reduce size. Avoid relative relocations.
11802 Moved to read-only segment.
11803 (fill_in_uparams): Update for new layout.
11805 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
11806 assumed to always be != NULL. [Coverity CID 202]
11808 * argp/argp-help.c (hol_entry_help): Remove some dead code
11809 [Coverity CID 200].
11811 * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
11812 away a few more unconditional yperr2nss calls.
11813 (_nss_nis_getservbyname_r): Likewise.
11815 2006-05-06 Ulrich Drepper <drepper@redhat.com>
11817 * sysdeps/generic/ldsodefs.h: Remove support for non-core
11820 * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
11821 that unused memory passed to sendto is nevertheless initialized.
11824 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
11825 possibly unaligned memory accesses.
11827 * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
11828 * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
11829 and __putlong respectively. Correct buffer overflow check for
11832 * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
11834 * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
11835 (send_dg): Rewrite error handling to be more compact and avoid
11836 double recomputation of timeouts. Pass MSG_NOSIGNAL to send.
11838 * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
11840 * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
11841 instead of ns_get16.
11842 (res_queriesmatch): Likewise. Minor optimization.
11845 * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
11846 __libc_res_nsend might reallocate the buffer for the answer. In
11847 this case we have to reload the HP pointer.
11849 2006-05-05 Ulrich Drepper <drepper@redhat.com>
11851 * stdio-common/vfscanf.c (memory_error): Remove definition. Add
11852 some branch prediction hints.
11854 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
11855 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11856 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11857 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11858 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11859 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11860 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11861 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11863 2006-05-05 Martin Schwidefsky <schwidefsky@de.ibm.com>
11865 * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
11866 by a GOT relocation to make Scrt1.o position independent.
11867 * sysdeps/s390/s390-64/elf/start.S: Likewise.
11869 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
11870 six system call parameters.
11871 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
11873 2006-05-05 Ulrich Drepper <drepper@redhat.com>
11875 * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
11878 * sunrpc/svc_udp.c (BZERO): Remove definition.
11880 (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
11882 * sunrpc/des_impl.c: Remove ALT_ECB support. We never used it.
11883 (des_SPtrans): Use uint32_t type.
11884 (des_skb): Likewise.
11886 * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
11888 2006-05-05 Jakub Jelinek <jakub@redhat.com>
11891 * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
11894 2006-05-05 Ulrich Drepper <drepper@redhat.com>
11896 * locale/programs/ld-address.c (address_finish): Fix one more
11897 place where the iso639 array might be accessed beyond the limits.
11899 2006-05-04 Ulrich Drepper <drepper@redhat.com>
11901 * nis/nis_table.c (nis_list): Avoid clearing res twice before
11902 filling it for the first time.
11904 * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
11905 Adjust all callers.
11906 Free res object content before returning.
11908 * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
11910 * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
11913 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
11914 cleanup for initial thread, just the free call on TVP.
11916 * nscd/gai.c (__getline): Define.
11919 See ChangeLog.16 for earlier changes.