(RESERVE_MMAP_SIZE): Define.
[glibc/history.git] / ChangeLog
blob72fe497397e6e9fa94da9b7d45bb1997870d2d39
1 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3         * stdio-common/psiginfo.c: Include <errno.h>.
5 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
7         [BZ #9920]
8         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
9         to get consistency between 32 and 64 bit architectures.
11         [BZ #10052]
12         * sysdeps/unix/make-syscalls.sh: Add rule to create target
13         directory for dummy syscall rules.
14         Patch by Chris Steinbroner <hesh@pobox.com>.
16 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
18         [BZ #10092]
19         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
20         MNT_EXPIRE.
22 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
24         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
25         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
27 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
29         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
30         data from vector to temporary buffer and call PWRITEV after it
31         instead of vice versa.
32         * sysdeps/posix/preadv.c: Fix up comment.
33         * misc/preadv.c: Likewise.
34         * misc/preadv64.c: Likewise.
35         * misc/pwritev.c: Likewise.
36         * misc/pwritev64.c: Likewise.
37         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
39 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
41         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
43         * shadow/Makefile (tests): Add tst-shadow.
44         * shadow/tst-shadow.c: New file.
46         [BZ #9955]
47         * gshadow/Makefile: New file.
48         * gshadow/Versions: New file.
49         * gshadow/fgetsgent.c: New file.
50         * gshadow/fgetsgent_r.c: New file.
51         * gshadow/getsgent.c: New file.
52         * gshadow/getsgent_r.c: New file.
53         * gshadow/getsgnam.c: New file.
54         * gshadow/getsgnam_r.c: New file.
55         * gshadow/gshadow.h: New file.
56         * gshadow/putsgent.c: New file.
57         * gshadow/sgetsgent.c: New file.
58         * gshadow/sgetsgent_r.c: New file.
59         * gshadow/tst-gshadow.c: New file.
60         * include/gshadow.h: New file.
61         * Makeconfig (all-subdirs): Add gshadow.
62         * Makefile (installed-headers): Add gshadow/gshadow.h.
63         * nss/Makefile (databases): Add sgrp.
64         * nss/Versions: Add gshadow functions as private exports.
65         * nss/nsswitch.conf: Add gshadow entry.
66         * nss/sgrp-lookup.c: New file.
67         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
68         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
69         * nss/nss_files/files-sgrp.c: New file.
70         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
71         * sysdeps/unix/sysv/linux/paths.h: Likewise.
73 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
75         * stdio-common/printf.h: Add missing const to register_printf_modifier.
76         * stdio-common/reg-modifier.c: Likewise.
78 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
80         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
81         is no FPU.
83 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
85         [BZ #10086]
86         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
87         headers up to 2.6.30.
89         * po/ca.po: Update from translation team.
91 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
93         [BZ #10069]
94         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
95         an object that uses static TLS if the TLS modid is higher than the
96         reserve we always allocate.  At least for multi-threaded code.
98 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
100         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
101         Numerically stable check for valid width.
103         * locale/programs/locarchive.c (open_archive): Map the entire file
104         and not just the administrative data.
105         (add_locale): When we find a hash sum match compare the content
106         to be sure.
108         * malloc/malloc.c (malloc_info): Output address space information.
110 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
112         * malloc/malloc.c (malloc_info): Also output system memory information.
114         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
115         architectures have preadv/pwritev in 2.6.30.
117         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
118         * sysdeps/posix/readv.c: Likewise.
119         Reported by Markus Armbruster <armbru@redhat.com>.
121         * malloc/hooks.c (top_check): Force hook value into register.
123 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
125         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
126         calls to _dl_relocate_object.
128 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
130         [BZ #9957]
131         * malloc/malloc.c (force_reg): Define.
132         (sYSMALLOc): Load hook variable into variable
133         before test and force into register.
134         (sYSTRIm): Likewise.
135         (public_mALLOc): Force hook value into register.
136         (public_fREe): Likewise.
137         (public_rEALLOc): Likewise.
138         (public_mEMALIGn): Likewise.
139         (public_vALLOc): Likewise.
140         (public_pVALLOc): Likewise.
141         (public_cALLOc): Likewise.
142         (__posix_memalign): Likewise.
143         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
144         before test and force into register.
145         * malloc/hooks.c (top_check): Likewise.
146         (public_sET_STATe): Pretty printing.
148         * resolv/res_send.c (send_dg): Don't just ignore the result we got
149         in case we only receive one reply in single-request mode.
151 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
153         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
154         are dlopened in statically linked program even for __LM_ID_CALLER.
156 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
158         * resolv/res_send.c (send_dg): Don't switch into single-request
159         mode if we already are in it.
161 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
163         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
164         are always at least 4 bytes in the returned line.
166 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
168         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
169         __libc_use_alloca (8192), if the stack is too small use 512 bytes
170         instead of 8K.  Stop searching in /proc/stat after hitting first
171         line not starting with cpu.
172         (next_line): Truncate too long
173         lines at buffer size * 3/4 instead of pretending there were line
174         breaks inside of large lines.
176 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
178         * sysdeps/x86_64/mp_clz_tab.c: New file.
180 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
181             Ulrich Drepper  <drepper@redhat.com>
183         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
184         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
185         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
187 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
189         * sysdeps/sh/libc-tls.c: New file.
191         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
193 2009-04-14  Roland McGrath  <roland@redhat.com>
195         * elf/elf.h: Add various missing ARM constants, to match binutils.
197 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
199         Optimizations from GMP.
200         * sysdeps/x86_64/add_n.S: New file.
201         * sysdeps/x86_64/addmul_1.S: New file.
202         * sysdeps/x86_64/lshift.S: New file.
203         * sysdeps/x86_64/mul_1.S: New file.
204         * sysdeps/x86_64/rshift.S: New file.
205         * sysdeps/x86_64/sub_n.S: New file.
206         * sysdeps/x86_64/submul_1.S: New file.
208 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
210         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
211         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
212         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
213         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
215 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
217         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
218         preadv/pwritev.
220 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
222         * sysdeps/x86-64/strrchr.S: New file.
224 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
226         * stdio-common/printf.h (struct printf_info): Add user element.
227         New types printf_arginfo_size_function, printf_va_arg_function.
228         Declare register_printf_specifier, register_printf_modifier,
229         register_printf_type.
230         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
231         (union printf_arg): Add pa_user element.
232         Adjust __printf_arginfo_table type.
233         Add __printf_va_arg_table, __printf_modifier_table,
234         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
235         declarations.
236         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
237         If registered arginfo call failed try normal specifier.
238         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
239         function.
240         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
241         * stdio-common/Versions: Export register_printf_modifier,
242         register_printf_type, and register_printf_specifier for GLIBC_2.10.
243         * stdio-common/reg-modifier.c: New file.
244         * stdio-common/reg-type.c: New file.
245         * stdio-common/reg-printf.c (__register_printf_specifier): New
246         function.  Mostly the old __register_printf_function function but
247         uses locking and type of third parameter changed.
248         (__register_printf_function): Implement using
249         __register_printf_specifier.
250         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
251         calls to arginfo functions.  Allocate enough memory for user-defined
252         types.  Call new va_arg functions to get user-defined types.
253         Try installed handlers even for existing format specifiers first.
255 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
257         * sysdeps/x86_64/rawmemchr.S: New file.
259         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
260         Simplified code and possible copy problem fixed.
262         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
263         function if it is not defined.  Add some necessary casts.
264         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
266         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
267         have preadv/pwritev in 2.6.30.
269 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
271         * malloc/malloc.c (malloc_info): New function.
272         * malloc/malloc.h: Declare it.
273         * malloc/Versions: Export malloc_info for GLIBC_2.10.
275         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
276         to avoid PLT slot.
278         * malloc/malloc.c (_int_realloc): Add parameter with old block
279         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
280         Adjust all callers.
281         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
283 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
285         * sysdeps/x86_64/strchrnul.S: New file.
287         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
288         depending libcrypt on -lfreebl3.
290         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
291         preadv/pwritev in 2.6.30.
293         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
294         instead of __strcasecmp.
296         * string/stratcliff.c (do_test): Add memchr tests..
297         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
298         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
299         first read quad word.
301 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
303         * string/strverscmp.c (__strverscmp): Fix last cleanups.
304         * string/tst-svc.input: Add new test case.
305         * string/tst-svc.expect: Adjust.
306         * string/Makefile: Don't ignore tst-svc error.
308         * sysdeps/x86_64/memchr.S: New file.
310         * resolv/resolv.h (RES_SNGLKUP): Define.
311         * resolv/res_init.c (res_setoptions): Recognize single-request option.
312         * resolv/res_send.c (send_dg): If we sent two requests at once and
313         only get one reply before timeout switch to mode where we send the
314         second request only after the first answer has been received.
316 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
318         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
319         * sysdeps/x86_64/strchr.S: Likewise.
321 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
323         * configure.in: We need to test for the compiler earlier.
325         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
326         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
327         GLIBC_2.10.
328         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
329         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
330         and pwritev.
331         * misc/preadv.c: New file.
332         * misc/preadv64.c: New file.
333         * misc/pwritev.c: New file.
334         * misc/pwritev64.c: New file.
335         * sysdeps/posx/preadv.c: New file.
336         * sysdeps/posx/preadv64.c: New file.
337         * sysdeps/posx/pwritev.c: New file.
338         * sysdeps/posx/pwritev64.c: New file.
339         * sysdeps/unix/sysv/linux/preadv.c: New file.
340         * sysdeps/unix/sysv/linux/preadv64.c: New file.
341         * sysdeps/unix/sysv/linux/pwritev.c: New file.
342         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
343         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
344         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
346         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
347         compatibility code.
348         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
350         * sysdeps/unix/sysv/linux/kernel-features.h: Define
351         __ASSUME_COMPLETE_READV_WRITEV.
352         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
353         with modern kernels.
354         * sysdeps/unix/sysv/linux/writev.c: Likewise.
356         * sysdeps/posix/readv.c: Since read is a cancellation point we have
357         to free a possible malloced buffer in case of cancellation.
358         * sysdeps/posix/writev.c: Likewise for write.
360 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
362         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
364         * configure.in: Recognize --enable-nss-crypt.
365         * config.make.in: Add nss-crypt entry.
366         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
367         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
368         and include path for NSS directory to compiler for md5-crypt,
369         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
370         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
371         function implementation, use NSS.  Introduce wrappers around the
372         hash function calls.  Little code size optimization.
373         * crypt/sha256-crypt.c: Likewise.
374         * crypt/sha512-crypt.c: Likewise.
375         * scripts/check-local-headers.sh: Ignore nss3 directory.
377         * configure.in: Rename pic_default to libc_cv_pic_default.
378         * config.make.in: Likewise.
380 2009-04-01  Roland McGrath  <roland@redhat.com>
382         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
383         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
384         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
385         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
386         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
387         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
388         (R_SPARC_NUM): Update.
389         From Dave Miller <davem@davemloft.net>.
391 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
393         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
395 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
397         * elf/dl-open.c: Keep track of used name spaces and only iterate over
398         those which are used.
399         * elf/dl-addr.c: Likewise.
400         * elf/dl-caller.c: Likewise.
401         * elf/dl-fini.c: Likewise.
402         * elf/dl-iteratephdr.c: Likewise.
403         * elf/dl-libc.c: Likewise.
404         * elf/dl-load.c: Likewise.
405         * elf/dl-support.c: Likewise.
406         * elf/dl-sym.c: Likewise.
407         * elf/rtld.c: Likewise.
408         * sysdeps/generic/ldsodefs.h: Likewise.
410         * elf/dl-load.c: Remove support for systems without MAP_ANON.
411         * elf/dl-minimal.c: Likewise.
412         * elf/dl-misc.c: Likewise.
413         * elf/rtld.c: Likewise.
414         * sysdeps/generic/ldsodefs.h: Likewise.
416 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
418         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
419         Avoid reuse of complex expression.
421         * po/fr.po: Update from translation team.
423 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
425         * include/dirent.h: Yet more changes to match sort function type
426         change.
427         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
428         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
429         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
431 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
433         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
435 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
437         * nscd/connections.c (restart): Try to preserve the process name
438         by reading the /proc/self/exe symlink and using the return name.
439         Patch by Jeff Bastian <jbastian@redhat.com>.
441 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
443         [BZ #9733]
444         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
445         if we are not loading a new audit library.
446         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
447         Only use profiling trampoline for auditing if we are not relocating
448         an audit library.
449         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
450         * elf/rtld.c: Likewise.
451         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
453         * elf/rtld.c (dl_main): Extend help message for --audit option.
455         [BZ #9759]
456         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
457         alphasort64, versionsort, and versionsort64 to POSIX 2008.
458         * dirent/alphasort.c: Adjust implementation to type change.
459         * dirent/alphasort64.c: Likewise.
460         * dirent/scandir.c: Likewise.
461         * dirent/versionsort.c: Likewise.
462         * dirent/versionsort64.c: Likewise.
463         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
464         declaration.
465         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
466         declaration.
468         [BZ #9880]
469         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
470         correctly.  Set segleft member in output as required.
471         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
472         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
474         [BZ #9881]
475         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
476         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
477         * inet/Makefile (tests): Add tst-inet6_rth.
478         * inet/tst-inet6_rth.c: New file.
480         [BZ #5807]
481         * string/strlen.c (strlen): Fix omission in the expression to test
482         for NUL bytes.
484 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
486         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
488         * elf/dl-runtime.c (reloc_offset): Define.
489         (reloc_index): Define.
490         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
491         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
492         computing index from reloc_offset.
493         (_dl_call_pltexit): Likewise.
494         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
495         the relocation index to _dl_fixup.
496         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
497         _dl_call_pltexit.
498         * sysdeps/x86_64/dl-runtime.c: New file.
500         [BZ #9893]
501         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
502         alignment of La_x86_64_regs.  Store xmm parameters.
503         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
505         [BZ #9913]
506         * string/strverscmp.c (__strverscmp): Fix case of different digits
507         in fractional part of string.
508         Patch by Jingyu Liu <jyliu@fortinet.com>.
509         * string/Makefile (tests): Add tst-svc2.
510         * string/tst-svc2.c: New file.
512         * string/strverscmp.c (__strverscmp): Optimize size of tables.
514         * locale/iso-639.def: Add Min Nan.
516 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
518         [BZ #9948]
519         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
521 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
523         * elf/dl-sysdep.c (auxvars): Compress data structure.
525         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
526         STT_GNU_IFUNC handling.
527         (elf_machine_rela): Likewise.
529 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
531         * config.h.in (USE_MULTIARCH): Define.
532         * configure.in: Handle --enable-multi-arch.
533         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
534         (_dl_fixup_profile): Likewise.
535         * elf/do-lookup.c (dl_lookup_x): Likewise.
536         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
537         * elf/elf.h (STT_GNU_IFUNC): Define.
538         * include/libc-symbols.h (libc_ifunc): Define.
539         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
540         framework in init-arch.h to get CPUID values.
541         * sysdeps/x86_64/multiarch/Makefile: New file.
542         * sysdeps/x86_64/multiarch/init-arch.c: New file.
543         * sysdeps/x86_64/multiarch/init-arch.h: New file.
544         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
546         * config.make.in (experimental-malloc): Define.
547         * configure.in: Handle --enable-experimental-malloc.
548         * malloc/Makefile: Handle experimental-malloc flag.
549         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
550         * malloc/arena.c: Likewise.
551         * malloc/hooks.c: Likewise.
552         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
554 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
556         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
557         prediction.  A few size optimizations.
559 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
561         * time/tzset.c: Optimize a bit for size.
563 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
565         * include/stdio.h (fmemopen): Add libc_hidden_proto.
566         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
568         * elf/sprof.c: Avoid warning about multi-line comment.
570 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
572         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
573         DST name.
574         * time/tst-posixtz.c: Add tests for quoted timezone names.
576 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
578         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
579         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
580         200809L instead of 200112L.
581         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
582         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
584         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
585         instead of __quick_exit_funcs to __run_exit_handlers.
586         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
587         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
588         (__cxa_at_quick_exit): Remove attribute_hidden.
589         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
590         to __run_exit_handlers.
591         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
592         attribute_hidden.
594 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
596         * po/id.po: Update from translation team.
598 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
600         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
601         .machine push; .machine "power6" and .machine pop around mtfsf
602         insns outside of _ARCH_PWR6 define.
603         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
604         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
605         Likewise.
606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
607         Likewise.
608         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
609         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
610         relax_fenv_state): Likewise.
612 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
614         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
615         cxa_at_quick_exit.
616         (static-only-routines): Add at_quick_exit.
617         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
618         GLIBC_2.10.
619         * stdlib/quick_exit.c: New file.
620         * stdlib/at_quick_exit.c: New file.
621         * stdlib/cxa_at_quick_exit.c: New file.
622         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
623         it appropriately.
624         (__internal_atexit): New function.
625         (__new_exitfn): Now takes parameter to point to the list to use.
626         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
627         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
628         (exit): ...here.  Just call __run_exit_handlers appropriately.
629         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
630         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
631         * stdlib/on_exit.c: Adjust call to __new_exitfn.
632         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
634         * po/id.po: Update from translation team.
636 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
638         * po/ru.po: Update from translation team.
640 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
642         * po/nl.po: Update from translation team.
644 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
646         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
647         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
648         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
649         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
650         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
651         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
652         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
654         * po/pl.po: Update from translation team.
656 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
658         [BZ #7083]
659         * sysdeps/unix/sysv/linux/fallocate.c: New file.
660         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
661         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
662         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
663         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
664         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
665         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
666         for GLIBC_2.10.
667         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
668         Add fallocate and fallocate64.
670         * io/fcntl.h: Pretty printing.
672 2009-03-02  Richard Guenther  <rguenther@suse.de>
674         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
675         attribute also for non-C99 inline semantics variant.
677 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
679         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
680         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
681         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
682         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
683         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
684         Likewise.
685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
686         Likewise.
688 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
690         * po/cs.po: Update from translation team.
692 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
694         * po/bg.po: Update from translation team.
695         * po/sv.po: Likewise.
696         * po/fi.po: Likewise.
697         * po/vi.po: Likewise.
699 2009-02-27  Roland McGrath  <roland@redhat.com>
701         * Makeconfig (%.v.i): Depend on Makeconfig.
702         Exclude % lines from initial #-comment removal.
704 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
706         * po/ko.po: Update from translation team.
708 2009-02-26  Roland McGrath  <roland@redhat.com>
710         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
711         avoids unused warning.
713 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
714             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
716         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
717         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
718         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
719         and asm/user.h.  Include asm/ptrace.h.
720         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
721         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
722         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
723         Undefine.
724         (start_thread): Don't undefine.
725         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
726         Define.
728 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
730         * wctype/wctype.h: The *_l functions are in POSIX 2008.
731         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
732         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
733         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
734         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
735         200112L to 200809L.
736         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
737         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
738         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
739         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
740         _SC_THREAD_ROBUST_PRIO_PROTECT.
741         * posix/unistd.h: fexecve is in POSIX 2008.
742         * time/time.h: strftime_l is in POSIX 2008.
743         * io/sys/stat.h: futimens is in POSIX 2008.
744         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
745         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
746         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
747         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
748         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
749         open_memstream, and vdprintf are in POSIX 2008.
751 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
753         * include/features.h: Define macros for XPG7/POSIX 2008.
754         * ctype/ctype.h: The *_l functions are in POSIX 2008.
755         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
756         POSIX 2008.
757         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
758         * locale/xlocale.h: Define locale_t type.
759         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
760         in POSIX 2008.  Don't define locale_t here.
761         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
762         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
763         UTIME_OMIT only with __USE_ATFILE.
764         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
765         * stdio-common/psiginfo.c: New file.
766         * stdio-common/psiginfo-data.h: New file.
767         * stdio-common/psiginfo-define.h: New file.
768         * stdio-common/Makefile (routines): Add psiginfo.
769         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
770         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
771         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
772         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
773         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
774         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
775         * io/sys/stat.h: Move mknodat definition into same conditional as
776         mknod.
777         * time/sys/time.h: futimesat is not among the functions accepted
778         into the POSIX standard.
780         * include/features.h: If no feature selection given and we select
781         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
782         * posix/Versions: Export __posix_getopt.
783         * posix/getopt.c (_getopt_initialize): Take additional parameter.
784         Use it to alternatively initialize __posixly_correct.
785         (_getopt_internal_r): Take addition parameter.  Pass on to
786         _getopt_initialize.
787         (_getopt_internal): Take addition parameter.  Pass on to
788         _getopt_internal_r.
789         (getopt): Pass additional zero to _getopt_internal.
790         (__posix_getopt): New function.
791         * posix/getopt.h: Add redirection for getopt.
792         * posix/getopt1.c (getopt_long): Pass additional zero to
793         _getopt_internal.
794         (getopt_long_only): Likewise.
795         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
796         (_getopt_long_only_r): Likewise.
797         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
798         _getopt_internal_r.
800 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
802         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
803         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
804         * sysdeps/posix/sysconf.c (__sysconf): Handle
805         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
806         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
808 2009-02-24  Roland McGrath  <roland@redhat.com>
810         [BZ #9895]
811         * README.template: Reworded not to use substituted version number.
812         Renamed to ...
813         * README: ... here (no longer generated).
814         * Makefile (README): Target removed.
816 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
818         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
819         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
820         instead.
822         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
824         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
826 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
828         * po/bg.po: Update from translation team.
830 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
832         * stdlib/monetary.h: Uglify function parameter names.
833         * sunrpc/rpc/pmap_clnt.h: Likewise.
834         * sunrpc/rpc/svc.h: Likewise.
835         * sunrpc/rpc/xdr.h: Likewise.
836         * sunrpc/rpc/clnt.h: Likewise.
837         * resolv/netdb.h: Likewise.
838         * resolv/arpa/nameser.h: Likewise.
839         * resolv/resolv.h: Likewise.
840         * argp/argp.h: Likewise.
841         * locale/langinfo.h: Likewise.
842         * io/sys/stat.h: Likewise.
843         * posix/spawn.h: Likewise.
844         * nis/rpcsvc/nislib.h: Likewise.
845         * malloc/obstack.h: Likewise.
846         * sysdeps/ia64/bits/link.h: Likewise.
847         * sysdeps/i386/bits/link.h: Likewise.
848         * sysdeps/s390/bits/link.h: Likewise.
849         * sysdeps/powerpc/bits/link.h: Likewise.
850         * sysdeps/x86_64/bits/link.h: Likewise.
851         * sysdeps/sparc/bits/link.h: Likewise.
852         * sysdeps/sh/bits/link.h: Likewise.
853         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
854         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
855         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
856         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
858 2008-12-01  Fredrik Unger  <fred@tree.se>
860         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
861         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
862         _FP_UNPACK_RAW_2, fix up first argument.
864 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
866         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
867         (GET_NPROCS_PARSER): Change parameters and use next_line.
868         (__get_nprocs): Rewrite to not use stdio routines.
869         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
870         Change parameters and use next_line.
872 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
874         [BZ #5381]
875         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
876         Change mempool_alloc prototype.
877         * nscd/mem.c (gc): Don't handle mem_in_flight.
878         (mempool_alloc): Third parameter now only indicates whether this is the
879         first call (to allocate data) or not.  If it is, get db rdlock.
880         Release it on error.  Don't handle mem_in_flight.
881         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
882         Adjust third parameter of mempool_alloc calls.
883         Nothing to do here in case mempool_alloc fails.
884         Avoid local variable shadowing parameter.  No need to get db rdlock
885         before calling cache_add.
886         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
887         no mem_in_flight array anymore.
888         * nscd/connections.c: Remove definition and handling of mem_in_flight.
889         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
890         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
891         in case mempool_alloc fails. No need to get db rdlock before calling
892         cache_add.
893         * nscd/hstcache.c (cache_addhst): Likewise.
894         * nscd/initgrcache.c (addinitgroupsX): Likewise.
895         * nscd/servicescache.c (cache_addserv): Likewise.
896         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
898 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
900         * po/lt.po: Update from translation team.
902 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
904         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
905         defined, allow additional data to be added using the optional
906         MORE_ELF_HEADER_DATA macro.
907         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
908         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
910 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
912         * include/atomic.h: Define catomic_and if not already defined.
913         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
914         * sysdeps/i386/i486/bits/atomic.h: Likewise.
916 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
918         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
919         Change all callers.
920         (_int_realloc): Likewise.  Third argument is now padded size
921         All _int_* functions are now static.
923         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
924         * malloc/arena.c: Likewise.
925         * include/malloc.h: Remove now unnecessary declarations of the _int_*
926         functions.
928         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
929         easily.
931         * malloc/malloc.c: Add branch prediction for use of the hooks.
933         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
935 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
937         [BZ #7095]
938         * bits/confname.h: Add SUSv7 macros for getconf environments.
939         * bits/environments.h: Likewise.
940         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
941         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
942         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
943         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
944         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
945         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
946         * posix/getconf.c: Likewise.
947         * posix/sysconf.c: Likewise.
948         * sysdeps/posix/sysconf.c: Likewise.
949         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
950         environments.
952 2009-01-16  Petr Baudis  <pasky@suse.cz>
954         [BZ #9753]
955         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
956         even if we currently have zero nscount.
958 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
960         [BZ #9781]
961         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
962         the input line is too long.
964         * po/Makefile (libc.pot): Add f_print as function taking c-format
965         parameter.
967         * debug/xtrace.sh: Unify translatable messages.
968         * elf/ldd.bash.in: Likewise.
969         * elf/sprof.c: Likewise.
970         * locale/programs/locale.c: Likewise.
971         * malloc/memusage.sh: Likewise.
972         * nss/getent.c: Likewise.
974 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
976         * debug/pcprofiledump.c (print_version,
977         argp_program_version_hook): New function.
978         * elf/ldconfig.c (more_help): New function.
979         (argp): Use it.
980         * elf/sln.c (usage): New function.
981         (main): Support --help and --version.
982         * malloc/memusagestat.c (print_version): New function.
983         (argp_program_version_hook): New variable.
984         * nscd/nscd.c (more_help): New function.
985         (argp): Use it.
986         * posix/getconf.c (main): Send --version output to stdout.
987         Support --help.
988         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
989         arguments.  All callers changed.
990         (print_version): New function.
991         (parseargs): Support --help and --version.
992         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
993         changed.
994         (print_version): New function.
995         (main): Use getopt_long.  Support --help and --version.
996         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
997         --version.
999 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
1001         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
1002         (update_data): Fix handling of wrapping back
1003         to the beginning of the buffer.
1005         [BZ #9823]
1006         * stdio-common/psignal.c (psignal): Fix test for empty string.
1008 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
1010         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
1011         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
1012         move _null_auth to .rodata.
1014         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
1015         value of 24.
1017         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
1019         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
1020         today than when the original code was written.  Use larger
1021         buffers.  This also makes it unnecessary to have stat information,
1022         if this causes extra efforts.
1023         (__opendir): In case O_DIRECTORY works, don't call fstat just for
1024         __alloc_dir.
1026 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
1028         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
1029         is set.
1030         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
1031         * sysdeps/sh/sh4/__longjmp.S: Likewise.
1032         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
1033         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
1034         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
1035         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
1037 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
1039         * po/ru.po: Update from translation team.
1041 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
1043         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
1044         Add _tid slot to maintain consistency with kernel.
1046 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
1048         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
1049         incomplete characters at end of input buffer.
1050         * libio/Makefile (tests): Add tst-fgetwc.
1051         * libio/tst-fgetwc.c: New file.
1052         * libio/tst-fgetwc.input: New file.
1054 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
1056         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
1058 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
1060         [BZ #9793]
1061         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
1062         *OUTBUFSTART unless the whole output fit into the buffer.
1063         * iconv/Makefile (tests): Add tst-iconv4.
1064         * iconv/tst-iconv4.c: New file.
1066 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
1068         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
1069         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
1071 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
1073         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
1074         newer linker scripts.
1076 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
1078         [BZ #7040]
1079         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
1080         inotify_rm_watch should have type int.
1082 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
1084         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
1085         Make aligned_restore_vmx a local symbol.
1086         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
1087         Likewise.
1089 2009-01-30  Andreas Jaeger  <aj@suse.de>
1091         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
1092         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
1093         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
1094         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
1095         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
1096         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
1097         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
1099 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
1101         [BZ #9726]
1102         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
1103         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
1105 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
1107         [BZ #9726]
1108         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1109         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1110         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1111         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1113 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
1115         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
1116         memcpy instead of memcmp.
1117         (_dl_setup_pointer_guard): Likewise.
1119 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
1121         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
1122         manipulated brk, use malloc_printerr.
1123         * misc/sbrk.c (__sbrk): Better error handling for nonsense
1124         requests.
1126 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
1128         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
1129         rindex): For C++ add inlines so that they can be recognized as
1130         builtins.
1131         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
1133 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
1134             Jakub Jelinek  <jakub@redhat.com>
1136         * string/string.h: Define correct C++ prototypes for gcc 4.4.
1137         * wcsmbs/wchar.h: Likewise.
1139 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
1141         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
1142         (stackinfo_sub_sp): Define.
1144 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
1146         [BZ #9750]
1147         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
1148         * include/alloca.h (alloca_account): Define.
1149         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
1150         (stackinfo_sub_sp): Define.
1152         * nscd/connections.c (nscd_init): If database file access fails
1153         check whether this is due to permission problems and bail in that
1154         case.
1156         [BZ #9741]
1157         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
1158         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
1160 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1162         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
1163         Add "t" to clobber list.
1164         (INTERNAL_SYSCALL_NCS): Likewise.
1166 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
1168         * nss/getent.c (print_networks): Don't print comma between aliases.
1170 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
1172         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
1174         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
1175         the hash table.
1176         * misc/Makefile (tests): Add bug-hsearch1.
1177         * misc/bug-hsearch1.c: New file.
1179 2009-01-22  Roland McGrath  <roland@redhat.com>
1181         * Makeconfig (%.v.i): Strip trailing # comments,
1182         not only whole-line comments.
1184 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
1186         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
1187         one parameter.  If non-NULL use it to initialize return value.
1188         (_dl_setup_pointer_guard): New function.
1189         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
1190         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
1191         * elf/rtld.c (security_init): Pass _dl_random to
1192         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
1193         pointer_chk_guard.
1194         * elf/dl-sysdep.c (_dl_random): New variable.
1195         (_dl_sysdep_start): Handle AT_RANDOM.
1196         (_dl_show_auxv): Likewise.
1197         * elf/dl-support.c (_dl_random): New variable.
1198         (_dl_aux_init): Handle AT_RANDOM.
1199         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
1200         to _dl_setup_stack_chk_guard.
1202         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
1204 2009-01-10  Roland McGrath  <roland@redhat.com>
1206         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
1208 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
1210         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
1212         [BZ #9706]
1213         * nss/nss_files/files-parse.c (strtou32): New function.
1214         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
1215         across 32-bit and 64-bit platforms.
1216         (INT_FIELD_MAYBE_NULL): Likewise.
1218 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
1220         [BZ #9720]
1221         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
1222         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
1223         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
1224         Likewise.
1226 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
1228         [BZ #697]
1229         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
1230         being NULL also if there are no backreferences.
1231         * posix/rxspencer/tests: Add testcases.
1233 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
1235         [BZ #9697]
1236         * posix/bug-regex17.c: Add testcases.
1237         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
1238         handling.
1240 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1242         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
1243         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
1244         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
1245         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
1246         for elf subdir.
1247         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
1248         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
1249         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
1250         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
1251         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
1252         * sysdeps/unix/sysv/linux/s390/Versions: New file.
1254 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
1256         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
1257         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
1258         re_string_skip_chars, re_string_reconstruct): Likewise.
1259         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
1261 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
1263         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
1264         adjust the buffer alignment.
1266 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1268         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
1269         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
1270         net/route.h.
1272         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
1273         flavor to description only when flavor is not NULL.
1275         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
1276         mutex after SIGIO/SIGURG lookup loop.
1278 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1280         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
1282 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
1284         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
1285         handling.
1287 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
1289         * sysdeps/unix/sysv/linux/kernel-features.h
1290         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
1292         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
1293         if no output is written.
1295         * version.h: Bump to 2.10 development.
1297         * posix/getconf.c: Update copyright year.
1298         * nss/getent.c: Likewise.
1299         * iconv/iconvconfig.c: Likewise.
1300         * iconv/iconv_prog.c: Likewise.
1301         * elf/ldconfig.c: Likewise.
1302         * catgets/gencat.c: Likewise.
1303         * csu/version.c: Likewise.
1304         * elf/ldd.bash.in: Likewise.
1305         * elf/sprof.c (print_version): Likewise.
1306         * locale/programs/locale.c: Likewise.
1307         * locale/programs/localedef.c: Likewise.
1308         * nscd/nscd.c (print_version): Likewise.
1309         * debug/xtrace.sh: Likewise.
1310         * malloc/memusage.sh: Likewise.
1311         * malloc/mtrace.pl: Likewise.
1312         * debug/catchsegv.sh: Likewise.
1314 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
1316         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
1317         script.
1319 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
1321         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
1322         gethostbyname4_r function call succeeded, just leave the loop.
1324         [BZ #9694]
1325         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
1326         very end.
1327         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
1328         * wctype/Makefile (tests): Add bug-wctypeh.
1329         * wctype/bug-wctypeh.c: New file.
1331         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
1332         LOCALDOMAIN is defined.
1333         * nscd/nscd_getai.c (__nscd_getai): Likewise.
1335         * sysdeps/x86_64/bits/select.h: New file.
1337         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
1339 2008-12-21  Bruno Haible  <bruno@clisp.org>
1341         [BZ #9677]
1342         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
1343         if no output is written.
1345 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
1347         * login/utmp_file.c (pututline_file): Replace call to dup2 with
1348         libc internal symbol __dup2 to avoid access through the PLT.
1350 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
1352         [BZ #6545]
1353         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
1354         available only for __USE_GNU.
1356         * inet/Makefile (tests): Add tst-getni2.
1357         * inet/tst-getni2.c: New file.
1359         [BZ #7080]
1360         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
1361         NULL when NI_NAMEREQD is set.
1362         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1363         * inet/Makefile (tests): Add tst-getni1.
1364         * inet/tst-getni1.c: New file.
1366 2008-12-03  Petr Baudis  <pasky@suse.cz>
1368         [BZ #7067]
1369         * nscd/connections.c (invalidate_cache): Use prune_run_lock
1370         instead of prune_lock.
1371         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
1372         * nscd/nscd.h (database_dyn): Add prune_run_cache.
1374 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
1376         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
1377         use.
1379         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
1380         handling.
1382         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
1383         after reading name server list.
1385         [BZ #7058]
1386         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
1387         handling for host name aliases.
1389 2008-11-24  Arkadiusz MiÅ›kiewicz  <arekm@maven.pl>
1391         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
1392         instead of doing things manually.
1394 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
1396         * posix/regex_internal.h (build_wcs_upper_buffer):
1397         Return type is reg_error_t.
1399 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
1401         * posix/globtest.sh: Use mktemp to create temporary file and
1402         directory.
1404         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
1405         sets correctly.
1406         (__CPU_CLR_S): Likewise.
1407         (__CPU_ISSET_S): Likewise.
1409 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
1410             Ulrich Drepper  <drepper@redhat.com>
1412         * scripts/firstversion.awk: Use custom comparison function to compare
1413         version numbers.
1414         * scripts/versions.awk: Use sort invocation which can handle
1415         multi-digit sub-version numbers.
1417 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
1419         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
1420         * locale/iso-639.def: Add Chhattisgarhi entry.
1422 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
1424         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
1425         ESRCH return value.
1426         (_nss_dns_gethostbyname4_r): Likewise.
1427         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
1428         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
1429         gethostbyname4_r, we don't have a separate IPv6 status, so copy
1430         the no_data variable.
1432         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
1433         information at the correct index.
1435         * socket/sys/socket.h: Declare accept4.
1436         * socket/accept4.c: New file.
1437         * sysdeps/unix/sysv/linux/accept4.c: New file.
1438         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
1439         * socket/Makefile (routines): Add accept4.
1440         * socket/Versions: Export accept4 with version GLIBC_2.10.
1441         * socket/paccept.c: Removed.
1442         * sysdeps/unix/sysv/linux/paccept.c: Removed.
1443         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
1444         * Versions.def: Define GLIBC_2.10 for libc.
1445         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
1447         * nscd/connections.c: Use accept4.
1449         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
1451 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
1453         * resolv/res_send.c (send_dg): Create sockets with non-blocking
1454         flag already set.
1456         * stdlib/setenv.c (unsetenv): Don't search environment if it does
1457         not exist.
1458         * stdlib/Makefile (tests): Add tst-unsetenv1.
1459         * stdlib/tst-unsetenv1.c: New file.
1461 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
1463         * login/utmp_file.c (file_writable): New variable.
1464         (setutent_file): Don't try to open file for writing.
1465         (pututline_file): Before writing, make descriptor writable if
1466         necessary.
1468 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
1470         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
1471         to IPv4 or IPv6 if an interface has been found.
1473 2008-11-26  Roland McGrath  <roland@redhat.com>
1475         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
1476         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
1478         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
1479         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
1480         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
1482         * elf/elf.h (NT_386_IOPERM): New macro.
1483         (NT_PPC_VSX): New macro.
1485 2008-11-25  Roland McGrath  <roland@redhat.com>
1487         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
1488         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
1489         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
1490         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
1491         Subdirectories moved to ports repository.
1492         * configure.in (base_machine): Remove alpha case.
1494 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
1496         * sysdeps/mach/strerror_l.c: New file.
1498 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
1500         [BZ #6411]
1501         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
1502         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
1503         magic numbers.
1504         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
1505         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
1506         (relax_fenv_state): Same as above.
1507         (FPSCR_29): Reserve bit in ISA 2.05.
1508         (FPSCR_NI): Provide define for compat.
1509         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
1510         magic numbers.
1511         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
1512         magic numbers.
1513         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
1514         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
1515         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
1516         access to hwcap to account for hwcap size increase to uint64_t.
1517         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
1518         Likewise.
1519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
1520         (*setcontext): Likewise.
1521         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1522         New file.
1523         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1524         New file.
1525         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1526         (*setcontext): dynamically select mtfsf insn based on
1527         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
1528         increase to uint64_t.
1529         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1530         (*swapcontext): dynamically select mtfsf insn based on
1531         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
1532         increase to uint64_t.
1533         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1534         New file.
1535         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1536         New file.
1537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1538         (*setcontext): dynamically select mtfsf insn based on
1539         PPC_FEATURE_HAS_DFP.
1540         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1541         (*swapcontext): dynamically select mtfsf insn based on
1542         PPC_FEATURE_HAS_DFP.
1544 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
1546         * version.h: Bump for 2.9 release.
1547         * include/features.h (__GLIBC_MINOR__): Bump to 9.
1549         [BZ #7029]
1550         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
1551         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
1552         all the rounding.
1554 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
1556         [BZ #7009]
1557         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
1558         unknown request types for now.
1560 2008-11-11  Roland McGrath  <roland@redhat.com>
1562         * sysdeps/x86_64/configure: New file.
1564         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
1565         * configure: Regenerated.
1567 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1569         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
1570         correct instruction to remove the stack frame.
1572 2008-11-03  Michael Matz  <matz@suse.de>
1574         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
1575         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
1577 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
1579         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
1580         Remove.
1582         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
1583         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
1584         of the thread variable instead of void *.
1585         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
1586         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
1587         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
1588         __libc_tsd_define arguments.
1589         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
1590         __libc_tsd_address arguments.  Remove union hack.
1591         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
1592         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
1593         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
1594         Adjust __libc_tsd_{set,get} arguments.
1595         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
1596         __libc_tsd_define arguments.
1597         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
1598         arguments.
1599         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1600         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
1601         (LOCALE): Adjust __libc_tsd_define arguments.
1602         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
1603         arguments.
1604         (LOCALE): Adjust __libc_tsd_define arguments.
1605         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
1606         arguments.
1607         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
1608         arguments.
1610 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
1612         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
1613         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
1615 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
1617         [BZ #6966]
1618         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
1620 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
1621             Ulrich Drepper  <drepper@redhat.com>
1623         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
1624         definition for GCC 3.1 and later.
1626 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
1628         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
1629         refetch dtv, as it might have changed.
1630         * elf/Makefile: Add rules to build and run tst-tls18.
1631         * elf/tst-tls18.c: New test.
1632         * elf/tst-tlsmod18a.c: New file.
1634 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
1636         [BZ #6875]
1637         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
1639 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
1641         [BZ #6867]
1642         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
1644         [BZ #6919]
1645         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
1646         Fix length of copy operation.
1648 2008-10-02  Pierre Habouzit <madcoder@debian.org>
1650         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
1651         and fix its calling convention.
1653 2008-10-07  Andreas Schwab  <schwab@suse.de>
1655         [BZ #6942]
1656         * resolv/res_send.c (send_vc): Fix last change.
1657         (send_dg): Align here as well.
1659 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
1661         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
1662         return value in case rlimit is RLIM_INFINITY.
1664         [BZ #6947]
1665         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
1666         for UL_SETFSIZE.
1667         * resource/Makefile (tests): Add bug-ulimit1.
1668         * resource/bug-ulimit1.c: New file.
1670         [BZ #6974]
1671         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
1672         without dot.  Properly terminate the string with a null byte.
1673         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
1675         [BZ #6980]
1676         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
1677         negative sizees.
1678         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
1679         negative __size.
1681         [BZ #6995]
1682         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
1684 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
1686         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
1687         abort if there is no initgroups_dyn function.
1689         * resolv/res_send.c (send_dg): On timeout, only return nonzero
1690         result if any of the queries really provided an answer.
1692 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
1694         * po/lt.po: Update from translation team.
1696 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
1698         * po/id.po: Update from translation team.
1700 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
1702         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
1703         Fix tests for existence of second reply.
1705 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
1707         * po/id.po: New file.
1708         Contributed by the Indonesian translation team.
1710 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
1712         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
1713         initialization.
1715 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
1717         * elf/Makefile: Add rules to build and run tst-tls17.
1718         * elf/tst-tls17.c: New test.
1719         * elf/tst-tlsmod17a.c: New file.
1720         * elf/tst-tlsmod17b.c: Likewise.
1722 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
1724         * stdlib/divmod_1.c: Use correct type for dummy variable.
1725         * stdlib/mod_1.c: Likewise.
1727 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
1729         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
1731 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
1733         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
1734         __nonnull order for C++.
1735         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
1736         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
1738 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
1740         * stdlib/longlong.h: Update from GCC.
1742 2008-10-09  Jakub Jelinek <jakub@redhat.com>
1743             David S. Miller  <davem@davemloft.net>
1745         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
1746         make sure any registers used with 64-bit 'branch-on-register'
1747         instructions have their top 32-bits clear.
1748         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
1749         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
1751 2008-09-18  Andreas Schwab  <schwab@suse.de>
1753         [BZ #6942]
1754         * resolv/res_send.c (send_vc): Fix use of unaligned address.
1755         Properly handle partial reads.
1757 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
1759         * elf/elf.h (STO_MIPS_PLT): New.
1760         (R_MIPS_COPY): New.
1761         (R_MIPS_JUMP_SLOT): New.
1762         (R_MIPS_NUM): Redefine to 128.
1763         (DT_MIPS_PLTGOT): New.
1764         (DT_MIPS_RWPLT): New.
1765         (DT_MIPS_NUM): Redefine to 0x35.
1767 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
1769         * timezone/africa: Update from tzdata2008f.
1770         * timezone/asia: Likewise.
1771         * timezone/australasia: Likewise.
1772         * timezone/europe: Likewise.
1773         * timezone/leapseconds: Likewise.
1774         * timezone/northamerica: Likewise.
1775         * timezone/southamerica: Likewise.
1776         * timezone/zone.tab: Likewise.
1778 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
1780         * nscd/connections.c: Disable use of paccept for now.
1782 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
1784         * socket/Versions: Remove paccept export for GLIBC_2.9.
1785         * socket/Makefile (routines): Remove paccept.
1786         * socket/sys/socket.h: Remove paccept declaration.
1788         * po/sv.po: Update from translation team.
1790 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
1792         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
1793         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
1795 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
1797         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
1798         Patch by Olivier Fourdan <ofourdan@redhat.com>.
1800 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
1802         * sunrpc/rpc/svc.h: Declare svcfd_create.
1803         Patch by Michael Solberg <msolberg@redhat.com>.
1805 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
1806             Ulrich Drepper  <drepper@redhat.com>
1808         * malloc/malloc.c (public_vALLOc): Try other arenas in case
1809         _int_valloc fails.
1810         (public_pVALLOc): Likewise.
1812 2008-09-02  Andreas Jaeger  <aj@suse.de>
1814         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
1815         commit.
1817 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
1819         [BZ #6860]
1820         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
1822 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
1824         * Makefile (check-data): Check data directory in add-ons.
1825         * elf/Makefile (check-data): Likewise.
1827 2008-08-18  Roland McGrath  <roland@redhat.com>
1829         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
1830         * configure: Regenerated.
1831         * config.make.in (cflags-cpu): New substituted variable.
1832         (with-cpu): Variable removed.
1833         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
1835 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
1837         [BZ #6845]
1838         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
1839         __signbitl definition and __LONG_DOUBLE_128__ guard from:
1840         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
1841         redundant.  Functions which call floating point assembler operations
1842         should go into a sysdeps powerpc/fpu directory.
1844 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
1846         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
1847         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1849 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
1851         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
1853         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
1854         change related to AT_EXECFN.  We cannot use that string.
1855         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
1856         _dl_execfn member.
1857         * elf/dl-support.c: Remove _dl_execfn variable.
1858         (_dl_aux_init): Remove handling of AT_EXECFN.
1859         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
1860         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
1862 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
1864         [BZ #6544]
1865         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
1866         byte gets added to writes and seeks from the end use the length of
1867         the buffer and not the currently terminating NUL byte.
1869         [BZ #6634]
1870         * login/utmp_file.c (getutent_r_file): Take additional parameter.
1871         Set to true if locking failed.
1872         (getutid_r_file): Adjust caller.
1873         (pututline_file): Likewise.  Return NULL in this case.
1874         Patch mostly by halesh.s@gmail.com.
1876 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
1878         [BZ #6589]
1879         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
1880         Define.
1881         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
1883 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
1885         [BZ #6839]
1886         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
1887         macro since it is now available in elf/dynamic-link.h.
1889 2008-08-12  Roland McGrath  <roland@frob.com>
1891         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
1892         in case used outside of libc.
1893         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
1895 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
1897         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
1898         directly instead of going through dn_comp.
1900 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
1902         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
1903         Fix asm constraints.
1905 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
1907         [BZ #6790]
1908         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
1909         (IPV6_PMTUDISC_PROBE): Likewise.
1911 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
1913         [BZ #6791]
1914         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
1916 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
1917             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
1919         [BZ #6817]
1920         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
1921         Added the members 'vsx' and 'arch_2_06'.
1922         (_dl_powerpc_platforms): Add the member 'power7'.
1923         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
1924         to reflect the changes required by VSX and ISA 2.06.
1925         Modify _DL_PLATFORMS_COUNT to reflect the addition of
1926         'power7'.
1927         Defined PPC_PLATFORM_POWER7.
1928         (_dl_string_platform): Add support for POWER7.
1929         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
1930         capability and ISA 2.06.
1932 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
1934         [BZ #6824]
1935         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
1936         macro to detect use of 128 bit long double.
1937         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
1939 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
1941         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
1943         [BZ #5794]
1944         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
1945         parameters.
1946         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
1947         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
1949 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
1951         * nscd/connections.c (main_loop_poll): Pass a buffer which is
1952         guaranteed to be large enough to read inotify event.  Ignore
1953         EAGAIN error.  Better error message.  Add branch predicition.
1954         (main_loop_epoll): Likewise.
1956 2008-08-02  Roland McGrath  <roland@frob.com>
1958         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
1959         Add memory clobbers.
1961 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
1963         * manual/arith.texi: Avoid @strong{Note:}.
1964         * manual/creature.texi: Likewise.
1965         * manual/filesys.texi: Likewise.
1966         * manual/math.texi: Likewise.
1967         * manual/memory.texi: Likewise.
1968         * manual/resource.texi: Likewise.
1969         * manual/syslog.texi: Likewise.
1970         * manual/time.texi: Likewise.
1972         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
1973         to prevent warning.
1975 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
1977         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
1978         new epoll_create1 interface.
1979         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1980         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
1981         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
1983         * include/arpa/nameser.h (NS_GET16): Use const pointer.
1984         (NS_GET32): Likewise.
1986         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
1987         syscalls, too.
1989         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
1990         use the AT_EXECFN value if it is no absolute path.
1991         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
1992         __ASSUME_AT_EXECFN.
1994         * Versions.def: Add GLIBC_2.9 to libresolv.
1995         * include/resolv.h: Remove hidden proto declarations for __ns_*
1996         functions.  Add them for __dn_count_labels and __p_secstodate.
1997         * include/arpa/nameser.h: Add a number of hidden proto declarations.
1998         Define ns_msg_getflags macro here.
1999         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
2000         and __p_secstodate.
2001         * resolv/Versions: Export functions from <arpa/nameser.h> from
2002         libresolv in version GLIBC_2.9.
2003         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
2004         hidden definitions.
2005         * resolv/ns_netint.c: Likewise.
2006         * resolv/ns_parse.c: Likewise.
2007         * resolv/ns_print.c: Likewise.
2008         * resolv/ns_samedomain.c: Likewise.
2009         * resolv/ns_ttl.c: Likewise.
2010         * resolv/arpa/nameser_compat.h: Likewise.
2011         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
2012         function calls.
2013         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
2014         instead of ns_get16.
2015         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
2016         __ns_get32 instead of ns_get16 and ns_get32 respectively.
2017         (gaih_getanswer_slice): Likewise.
2018         * resolv/Makefile (libresolv-routines): Add ns_date.
2019         * resolv/ns_date.c: New file.
2021         * elf/Makefile (check-localplt.out): Also check libresolv and
2022         libcrypt.
2024 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
2026         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2027         __ASSUME_O_CLOEXEC.
2029 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
2031         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
2032         buffer passed to NSS functions.
2034         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
2036         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
2037         Define.
2039         * misc/syslog.c (openlog_internal): Fix compile problem.
2041 2008-07-28  Roland McGrath  <roland@redhat.com>
2043         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
2045 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
2047         * io/ftw.c (add_object): Remove inline to avoid warning.
2049         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
2051         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
2052         Use it instead of locally defined resplen2 variable.
2053         (res_nsend): Adjust for __libc_res_nsend interface change.
2054         (send_vc): Initialize *resplen2 if necessary.  Read length of
2055         package into an appropriately aligned variable.  Store converted length
2056         in new variable and use it appropriately.
2057         Add branch prediction help.
2058         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
2059         and pass it on to __libc_res_nsend.  Adjust all callers.
2060         (__libc_res_nsearch): Likewise.
2061         (__libc_res_nqeurydomain): Likewise.
2062         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
2063         change.
2064         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
2065         Define resplen2 variable and pass it to __libc_res_nsearch and then
2066         to gaih_getanswer.
2067         (getanswer_r): In case of incorrect DNS data don't overread buffer.
2068         Add branch prediction.
2069         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
2070         (gaih_getanswer): Don't decode second slice if first one failed due
2071         to a too small buffer.  Don't let not found status of second
2072         decoder shadow results of the first.
2073         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
2074         and __libc_res_nquery interface changes
2075         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
2076         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
2077         __libc_res_nsearch, and __libc_res_nsend.
2078         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
2079         change.
2080         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
2081         __libc_res_nsearch interface changes.
2083 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
2085         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
2087         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
2088         file descriptors with close-on-exec set.
2089         (exec_comm_child): Fix the case where the write end of the pipe is
2090         STDOUT_FILENO already.  In case it is, clear close-on-exec.
2092         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
2093         * io/pipe2.c: Likewise.
2094         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
2095         instead of __ASSUME_PACCEPT.
2096         * include/unistd.h: Declare __have_pipe2.
2097         * libio/iopopen.c: Implement "e" flag.
2098         * libio/Makefile (tests): Add tst-popen1.
2099         * libio/tst-popen1.c: New file.
2101         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
2102         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2104 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
2106         [BZ #6771]
2107         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
2108         success call of _IO_SEEKOFF or calls which failed because the
2109         descriptor is for a pipe.
2111         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
2112         magic number.
2114         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
2116         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
2117         F_SETFD use if we know fopen set the flag.
2119         * login/utmp_file.c (setutent_file): Minor optimization in case
2120         O_CLOEXEC is available.
2122 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
2124         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
2125         * elf/Makefile: Use pie-ccflag variable.
2126         * nscd/Makefile: Likewise.
2127         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
2129 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
2131         [BZ #6724]
2132         * Versions.def: Add GLIBC_2.9 version tag for libutil.
2133         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
2134         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
2135         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
2136         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
2137         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
2138         utmp32, utmpx32 and login32.
2139         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
2140         versions of struct utmp functions to libc and libutil.
2141         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
2142         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
2143         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
2144         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
2145         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
2146         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
2147         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
2148         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
2149         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
2150         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
2151         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
2152         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
2153         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
2154         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
2155         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
2156         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
2157         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
2158         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
2159         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
2160         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
2161         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
2162         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
2164 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
2166         * scripts/gen-as-const.awk: Generate more widely usable code by
2167         using 64-bit arithmetic.
2169         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
2170         the same treatment as narrow output code in last patch.
2172         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
2174         [BZ #6763]
2175         * elf/dl-load.c (local_strdup): Remove inline.
2176         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
2177         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
2178         part of the object.
2180         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
2182 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
2184         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
2185         the new syscalls, too.
2187         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
2188         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
2190         [BZ #6698]
2191         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
2192         parameter for end of buffer.  If temporary copy is too large use
2193         malloc.
2194         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
2195         interface change.
2196         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
2197         string rewrite when allocating buffer.
2199         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
2200         syscalls, too.
2202         * nscd/connections.c (nscd_init): Clean up fcntl call.
2204         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
2205         SOCK_NONBLOCK if possible.
2207         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
2208         SOCK_CLOEXEC if available.
2210         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
2211         __libc_clntudp_bufcreate_internal.
2212         * include/sys/socket.h: Declare __have_sock_cloexec.
2213         * socket/Makefile (aux): Add have_sock_cloexec.
2214         * socket/have_sock_cloexec.c: New file.
2215         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
2216         __libc_clntudp_bufcreate.
2217         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
2218         which takes an additional parameter.  Create socket with non-blocking
2219         mode and close-on-exec flag set, if wanted.
2220         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
2221         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
2222         instead of clntudp_create.  The socket has already the close-on-exec
2223         flag set if SOCK_CLOEXEC is defined.
2225 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
2227         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2228         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
2229         appropriate.
2230         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
2231         non-blocking mode by using socket, paccept, and inotify_init1.
2233         * Versions.def (glibc): Add GLIBC_2.9.
2234         * io/Makefile (routines): Add dup3 and pipe2.
2235         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
2236         * io/dup3.c: New file.
2237         * io/pipe2.c: New file.
2238         * posix/unistd.h: Declare dup3 and pipe2.
2239         * socket/Makefile (routines): Add paccept.
2240         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
2241         * socket/paccept.c: New file.
2242         * socket/sys/socket.h: Declare paccept.
2243         * sysdeps/unix/syscalls.list: Add entry for dup3.
2244         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
2245         epoll_create2 and inotify_init1.
2246         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
2247         * sysdeps/unix/sysv/linux/paccept.c: New file.
2248         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
2249         possible.
2250         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
2251         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
2252         inotify_init1, and pipe2 entries.
2253         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
2254         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
2255         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
2256         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
2257         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
2258         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
2259         SOCK_NONBLOCK.
2260         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
2261         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
2262         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
2263         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
2264         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
2265         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
2266         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
2267         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
2268         EPOLL_NONBLOCK.  Declare epoll_create2.
2269         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
2270         EFD_NONBLOCK.
2271         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
2272         IN_NONBLOCK.  Declare inotify_init1.
2273         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
2274         SFD_NONBLOCK.
2275         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
2276         TFD_NONBLOCK.
2278         * elf/elf.h: Define AT_EXECFN.
2279         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
2280         LD_ORIGIN_PATH.
2281         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
2282         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
2283         if __ASSUME_AT_EXECFN is defined.
2284         (_dl_aux_init): Handle AT_EXECFN.
2285         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
2286         for 2.6.27 and up.
2287         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
2288         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
2289         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
2290         _dl_execfn if available and avoid compatibility code if
2291         __ASSUME_AT_EXECFN is defined.
2293         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
2294         _dl_discover_osversion only for older kernels.
2296 2008-07-22  Roland McGrath  <roland@frob.com>
2298         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
2300 2008-07-21  Roland McGrath  <roland@frob.com>
2302         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
2303         returned too much data out of line.
2305 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
2307         * locale/setlocale.c (setname): Remove inline to avoid compiler
2308         warning.
2310         [BZ #6712]
2311         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
2313 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
2315         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
2316         doesn't manage to write anything, fail.
2318         * malloc/hooks.c (__malloc_check_init): Remove printf.
2320 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2322         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
2324 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
2326         * nscd/connections.c (main_loop_poll): Fix handling of read errors
2327         from inotify.
2328         (main_loop_epoll): Likewise.
2330 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
2332         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
2334         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
2335         if DEBUG is defined.
2337         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
2338         query.  Adjust buffer size computation for padding.
2340 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
2342         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
2343         * stdio-common/tst-setvbuf1.c: New file.
2344         * stdio-common/tst-setvbuf1.expect: New file.
2346         [BZ #6719]
2347         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
2348         when selecting fully-buffered stream.
2349         Patch by Wang Xin <wxinee@gmail.com>.
2351 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2353         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
2354         (__open_2): New function.
2355         (__open64_2): New alias to __open_2.
2356         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
2357         (__openat_2): New function.
2358         (__openat64_2): New alias to __openat_2.
2360 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
2362         [BZ #6723]
2363         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
2365 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2367         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
2368         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
2369         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
2370         __hurd_dfail.
2371         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2372         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2373         * sysdeps/mach/hurd/send.c (__send): Likewise.
2374         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
2375         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
2377 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2379         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
2380         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2381         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2382         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
2383         * hurd/get-host.c (_hurd_get_host_config): Likewise.
2384         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
2386 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
2388         [BZ #6657]
2389         * time/strptime_l.c: Don't clear s.era_cnt after successful match
2390         of %EY.
2391         Patch by Petr Baudis.
2393 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
2395         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
2396         Patch by Peter Jones <pjones@redhat.com>.
2398 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
2400         [BZ #6654]
2401         * stdlib/canonicalize.c (__realpath): readlink can write too much
2402         into the buffer on platforms without PATH_MAX.
2404 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
2406         [BZ #6653]
2407         * posix/tst-regex.c (main): Rename to...
2408         (do_test): ... this. Remove cmdline option processing.
2409         (TIMEOUT): Define.
2410         (TEST_FUNCTION): Define.
2411         (CMDLINE_OPTIONS): Define.
2413 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
2415         [BZ #5210]
2416         * configure.in: Add -Werror to -fstack-protector test to catch
2417         unsupported architectures.
2418         Patch by Gilles Esponasse <g.esp@free.fr>.
2420 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
2422         * stdlib/tst-setcontext.c: Set back_in_main before exit if
2423         getcontext returns ENOSYS.
2425 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
2427         * nscd/connections.c (main_loop_poll): Fix test for read error.
2428         (main_loop_epoll): Likewise.
2430 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
2432         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
2433         better place so it is not called when nscd is used.
2435         * nscd/connections.c: Also recognize and handle changes to the
2436         resolver configuration file.
2438 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
2440         * time/strftime.c: Pass reference to tzset_called around to handle
2441         recursive calls.
2443         [BZ #6612]
2444         * time/strftime.c (__strftime_internal): Call tzset() only
2445         when printing timezone-dependent values.
2446         Based on a patch by Petr Baudis <pasky@suse.cz>.
2448         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
2449         unconditionally use second gaih_getanswer_slice result.
2451         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
2452         (getaddrinfo): RES must always be non-NULL.
2454 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
2456         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
2457         cr[34] registers.
2458         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2459         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2460         Likewise.
2461         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
2462         register.
2464 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
2466         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
2467         fields.
2468         * nscd/connections.c (inotify_fd): New variable.
2469         (nscd_init): Try to open an inotify descriptor.
2470         If successful, watch files for databases using inotify instead of
2471         having prune threads stat the files.
2472         (nscd_run_prune): Recognize clear_cache flag being set and call
2473         prune_cache appropriately.
2474         (main_loop_poll): Add inotify descriptor to wait set and handle the
2475         reported changes.
2476         (main_loop_epoll): Likewise.
2477         * nscd/cache.c (prune_cache): Don't stat files for databases if
2478         inotify is used.
2479         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
2480         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
2482         * nscd/grpcache.c (cache_addgr): Correctly compute size of
2483         fixed-size portion of the record.
2484         * nscd/servicescache.c (cache_addserv): Likewise.
2485         * nscd/pwdcache.c (cache_addpw): Likewise.
2486         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2488 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
2490         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
2491         out we don't use uninitialized memory.
2493         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
2494         the client.
2496 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
2498         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
2499         ignore T_DNAME messages.
2500         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
2502 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
2504         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
2505         Avoid segfault if first GETC returns eof/'\0'/'\n'.
2507 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
2509         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
2510         instead of portstr to nscd_getserv_r.  Patch by
2511         Roman Kagan <rkagan@mail.ru>.
2513 2008-05-26  Jim Meyering  <meyering@redhat.com>
2515         Remove more useless "if" tests before "free".
2516         * include/inline-hashtab.h (htab_delete): Likewise.
2517         * libio/freopen.c (freopen): Likewise.
2518         * libio/freopen64.c (freopen64): Likewise.
2519         * locale/programs/ld-collate.c (collate_read): Likewise.
2520         * misc/fstab.c (libc_freeres_fn): Likewise.
2521         * posix/glob.c (globfree): Likewise.
2523 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
2525         * string/Makefile (strop-tests): Add memmem.
2526         * string/test-memmem.c: New file.
2527         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
2528         (test_init): Size buf1 according to BUF1PAGES.
2530 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
2532         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
2533         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
2534         (CFLAGS-scanf17.c): New.
2535         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
2536         * stdio-common/scanf15.c (main): Likewise.
2537         * stdio-common/scanf16.c: New file.
2538         * stdio-common/scanf17.c: New file.
2540 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
2542         * resolv/res_send.c (send_dg): If we already have one of two
2543         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
2544         use the one answer insted of failing.
2546 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
2548         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
2549         being executed on PowerPC as the expected result exceeds IBM
2550         long double 128 __LDBL_MAX__.
2552 2008-05-21  Roland McGrath  <roland@redhat.com>
2554         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
2556         * Makefile (check-data): Use $(abi-name) before other guesses.
2557         Look in $(add-ons) dirs before scripts/data/.
2558         * elf/Makefile (check-data): Likewise.
2560         * scripts/soversions.awk: Grok ABI line.
2561         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
2562         Emit definition for abi-name variable.
2564 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
2566         * string/endian.h: Define new fixed-size hto* and *toh macros only
2567         if [__USE_BSD].
2569         * iconvdata/Depend: Add localedata.
2571 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2573         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
2575 2008-05-08  David S. Miller  <davem@davemloft.net>
2577         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
2578         HIDDEN_JUMPTARGET.
2579         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2580         (__SYSCALL_CLOBBERS): Remove %g* registers.
2581         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2582         (__SYSCALL_CLOBBERS): Likewise.
2583         * scripts/data/localplt-sparc-linux-gnu.data: New file.
2584         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
2586 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
2588         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2589         (CALL_ERRNO_LOCATION): Define.
2590         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
2591         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2592         (CALL_ERRNO_LOCATION): Define.
2593         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
2594         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
2595         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
2597 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
2599         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
2600         variable.
2602 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
2604         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
2605         (FIRST_FRAME_POINTER): Define.
2607 2008-05-09  David S. Miller  <davem@davemloft.net>
2609         * sysdeps/sparc/sparc64/backtrace.c: New file.
2611 2008-05-14  David S. Miller  <davem@davemloft.net>
2613         * sysdeps/sparc/machine-gmon.h: New file.
2614         * sysdeps/sparc/sparc-mcount.S: Likewise.
2615         * sysdeps/sparc/Makefile: Add sparc-mcount target to
2616         sysdep_routines in gmon directory.
2618 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
2620         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
2622 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
2624         * resolv/res_query.c (__libc_res_nquery): In case one of two
2625         answer was too short don't try to read that answer's header.
2627         * resolv/res_send.c (send_dg): In case of timeout and there are
2628         two queries and one has been answered, return value indicating
2629         success.
2631 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
2633         * nscd/cache.c (cache_add): Take additional parameter specifying
2634         whether this is in response of a cache refill.  Check alignment
2635         of package data.  Revamp waking of pruning thread.
2636         (prune_cache): Small optimization.
2637         * nscd/nscd.h: Adjust cache_add prototypes.
2638         * nscd/aicache.c: Adjust cache_add calls.
2639         * nscd/grpcache.c: Likewise.
2640         * nscd/hstcache.c: Likewise.
2641         * nscd/initgrcache.c: Likewise.
2642         * nscd/pwdcache.c: Likewise.
2643         * nscd/servicescache.c: Likewise.
2644         * nscd/connections.c (restart): Really disable cache use before
2645         exec attempt.  If it fails, reenable cache.
2646         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
2647         time to max to be able to notice concurrent cache additions.  Unlock
2648         prune_lock while performing gc.  Afterwards compute wakeup time with
2649         current wakeup_time value in mind.
2651 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
2653         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
2655         * nscd/mem.c (gc): Correctly determine highest used array element
2656         in mark.
2658         * nscd/mem.c (markrange): Add assert to check entries are all
2659         aligned.  Small cleanup in bitmap use.
2661         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
2662         blockoff of type nscd_ssize_t.
2663         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
2664         (mempoll_alloc): Record block offset and not address.
2666         * nscd/mem.c (gc): Fix test for stack overuse.
2668         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
2669         more asserts.
2671         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
2672         entry is available, believe it.
2674         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
2675         no answers return NSS_STATUS_NOTFOUND.
2676         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
2677         buffer does not have any content.
2679 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
2681         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
2683         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
2684         lookup, don't assign canon unconditionally.
2686 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
2688         * string/Makefile (distribute): Add str-two-way.h.
2690 2008-03-29  Eric Blake  <ebb9@byu.net>
2692         Rewrite string searches to O(n) rather than O(n^2).
2693         * string/str-two-way.h: New file.  For linear fixed-allocation
2694         string searching.
2695         * string/memmem.c: New implementation.
2696         * string/strstr.c: New implementation.
2697         * string/strcasestr.c: New implementation.
2699 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
2701         * posix/regcomp.c (optimize_utf8): Add a note on why we test
2702         opr.ctx_type.
2703         (calc_first): Initialize constraint field.
2704         (duplicate_node_closure): Use it instead of special casing ANCHORS.
2705         Use search_duplicated_node to avoid loops.  Fix grammar.
2706         (duplicate_node): Merge constraint field for all node types.
2707         (calc_eclosure_iter): Look at constraint field for all node types.
2708         * posix/regex_internal.c (create_cd_newstate): Don't look at
2709         create_cd_newstate.
2711 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
2713         [BZ #6428]
2714         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
2716         [BZ #6442]
2717         * string/endian.h: Add macros for fixed-size endian conversion.
2718         * bits/byteswap.h: Allow inclusion from <endian.h>.
2719         * sysdeps/i386/bits/byteswap.h: Likewise.
2720         * sysdeps/ia64/bits/byteswap.h: Likewise.
2721         * sysdeps/s390/bits/byteswap.h: Likewise.
2722         * sysdeps/x86_64/bits/byteswap.h: Likewise.
2723         * string/Makefile (tests): Add tst-endian.
2724         * string/tst-endian.c: New file.
2726         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
2727         Patch by Reuben Thomas.
2729 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
2731         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
2733 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
2735         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
2737         [BZ #6461]
2738         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
2739         Add missing braces.
2740         (BODY for __gconv_transform_internal_ascii): Likewise.
2742         [BZ #6472]
2743         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
2744         to be treated like link-local addresses.
2745         (match_prefix): Don't treat IPv4 loopback address special when
2746         converting to v4 mapped addressed.
2748         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
2749         if necessary.
2750         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
2751         * posix/tst-rfc3484-2.c: Likewise.
2752         * posix/tst-rfc3484-3.c: Likewise.
2754         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
2755         and SCTP.
2757         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
2759         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
2761         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
2763 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
2765         * po/lt.po: New file.  From Lituanian translation team.
2767 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
2769         Introduce TLS descriptors for i386 and x86_64.
2770         * include/inline-hashtab.h: New file, copied from 2005's
2771         libiberty, with fix for memory leak imported afterwards by
2772         Glauber de Oliveira Costa.
2773         * elf/tlsdeschtab.h: New file.
2774         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
2775         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
2776         (CHECK_STATIC_TLS): Move to...
2777         * elf/dynamic-link.h: ... this file.
2778         (TRY_STATIC_TLS): New macro.
2779         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
2780         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
2781         R_386_TLS_DESC): Define.
2782         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
2783         binutils.
2784         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
2785         R_X86_64_TLSDESC): Define.
2786         (R_386_NUM, R_X86_64_NUM): Adjust.
2787         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
2788         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
2789         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
2790         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
2791         release tlsdesc_table.
2792         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
2793         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
2794         (elf_machine_rel): Handle R_386_TLS_DESC.
2795         (elf_machine_rela): Likewise.
2796         (elf_machine_lazy_rel): Likewise.
2797         (elf_machine_lazy_rela): Likewise.
2798         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
2799         * sysdeps/i386/dl-tlsdesc.S: New file.
2800         * sysdeps/i386/dl-tlsdesc.h: New file.
2801         * sysdeps/i386/tlsdesc.c: New file.
2802         * sysdeps/i386/tlsdesc.sym: New file.
2803         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
2804         tlsdesc_table.
2805         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
2806         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
2807         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
2808         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
2809         release tlsdesc_table.
2810         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
2811         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
2812         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
2813         (elf_machine_rel): Handle R_X86_64_TLSDESC.
2814         (elf_machine_rela): Likewise.
2815         (elf_machine_lazy_rel): Likewise.
2816         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
2817         (__tls_get_addr): Do not declare for non-shared compiles.
2818         * sysdeps/x86_64/dl-tlsdesc.S: New file.
2819         * sysdeps/x86_64/dl-tlsdesc.h: New file.
2820         * sysdeps/x86_64/tlsdesc.c: New file.
2821         * sysdeps/x86_64/tlsdesc.sym: New file.
2822         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
2823         tlsdesc_table for both 32- and 64-bit structs.
2825 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
2827         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
2828         its own function.  This reduces the frame setup costs and more.
2830 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
2832         [BZ #3406]
2833         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
2834         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
2836 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
2838         * io/openat.c (__openat_2): Also pass fd to __openat.
2839         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
2840         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
2842         * string/tester.c (test_memcmp): Add a few more tests.
2843         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
2845 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
2847         * nscd/cache.c (cache_add): Before returning with failure and this
2848         is the first use of the record, mark it as unusable.
2849         * nscd/aicache.c: Don't touch the dataset after cache_add returns
2850         reporting a failure.
2851         * nscd/grpcache.c: Likewise
2852         * nscd/hstcache.c: Likewise.
2853         * nscd/initgrcache.c: Likewise.
2854         * nscd/pwdcache.c: Likewise.
2855         * nscd/servicescache.c: Likewise.
2857 2008-05-10  Roland McGrath  <roland@redhat.com>
2859         [BZ #6505]
2860         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
2862 2008-05-08  David S. Miller  <davem@davemloft.net>
2864         * misc/truncate64.c (truncate64): Use __truncate not truncate.
2866         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
2867         (__ieee754_y0l): Likewise.
2868         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
2869         (__ieee754_y1l): Likewise.
2870         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
2871         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
2872         frexpl and ldexpl.  math_private.h provides them and the latter
2873         is not even used.
2874         (__log1pl): Use __frexpl.
2876 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
2878         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
2879         prototypes.
2880         * include/arpa/nameser_compat.h: Define T_UNSPEC.
2881         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
2882         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
2883         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
2884         af==AF_UNSPEC.
2885         (_nss_nis_gethostbyname4_r): New function.
2886         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
2887         Change to also handle af==AF_UNSPEC.
2888         (get_tablename): New function.  Use it to avoid duplication.
2889         (_nss_nisplus_gethostbyname4_r): New function.
2890         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
2891         available.
2892         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
2893         * nss/nss.h: Define struct gaih_addrtuple.
2894         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
2895         af==AF_UNSPEC.
2896         (_nss_files_gethostbyname4_r): New function.
2897         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
2898         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
2899         calls.
2900         * resolv/res_query.c (__libc_res_nquery): Take two additional
2901         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
2902         look up IPv4 and IPv6.
2903         Change all callers.
2904         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
2905         for an additional query and answer buffer.  Pass to send_vc and
2906         send_dg.
2907         (send_vc): Send possibly two requests and receive two answers.
2908         (send_dg): Likewise.
2909         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
2910         __libc_res_nquery.
2911         (_nss_dns_gethostbyname4_r): New function.
2912         (gaih_getanswer_slice): Likewise.
2913         (gaih_getanswer): Likewise.
2914         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
2915         __libc_res_nquery call.
2916         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
2917         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
2918         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
2919         available.
2921 2008-05-05  David S. Miller  <davem@davemloft.net>
2923         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
2924         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
2926 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2928         Fix termios bit macros.
2929         Move *DLY definitions where they belong, in termios.h.
2930         Add *[0-3] definitions.
2931         Fixes confusion between VT and FF.
2932         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
2933         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
2934         are already defined to avoid collision with termios.h.
2935         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
2936         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
2937         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
2938         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
2939         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
2940         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
2941         VTDLY, VT0, VT1): New macros.
2942         [__USE_GNU] (OLCUC): Change value of macro.
2943         [__USE_XOPEN] (OFILL): New macro.
2944         [__USE_BSD] (CRTSCTS): Change value.
2945         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
2946         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
2947         (B7200, B14400, B28800, B76800): New macros.
2949 2008-05-01  David S. Miller  <davem@davemloft.net>
2951         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
2952         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
2953         (gen-as-const-headers): Add it.
2954         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
2955         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
2956         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
2957         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
2959         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
2960         six system call parameters.
2961         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
2963 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
2965         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
2966         RUSAGE_LWP.
2967         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
2968         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
2970 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
2972         * stdlib/tst-setcontext.c: Include unistd.h.
2974 2008-04-25  David S. Miller  <davem@davemloft.net>
2976         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
2977         Pass "union semun" properly in to sys_ipc, it must be passed
2978         by value, not by reference.
2980 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
2982         * nscd/Makefile (nscd-cflags): Set back to -fpie.
2983         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
2984         * nscd/connections.c (mem_in_flight): Likewise.
2986         * nscd/nscd.h (dbs): Make hidden.
2988         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
2989         Avoid returning -1, return 0 instead.
2991 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
2993         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
2995 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
2997         [BZ #5209]
2998         * sysdeps/unix/sysv/linux/times.c: New file.
3000         [BZ #5381]
3001         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
3002         mem_in_flight_list variables.  Add new parameter to mempool_alloc
3003         prototype.
3004         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
3005         appropriate mem_in_flight element.
3006         (gc): Take allocations which have not yet been committed to the
3007         database into account.
3008         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
3009         Reset mem_in_flight before returning.
3010         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
3011         cue it up in mem_in_flight_list.
3012         * nscd/aicache.c: Adjust mempool_alloc call.
3013         * nscd/grpcache.c: Likewise.
3014         * nscd/hstcache.c: Likewise.
3015         * nscd/initgrcache.c: Likewise.
3016         * nscd/pwdcache.c: Likewise.
3017         * nscd/servicescache.c: Likewise.
3018         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
3019         of -fpie.
3021         * nscd/connections.c (handle_request): Provide better error message
3022         in case SELinux forbids the service.
3024         * version.h (VERSION): Bump to 2.8.90.
3026 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
3028         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
3030 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
3032         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
3033         Also use for 32-bit.
3034         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
3035         __nextafter instead of nextafter to avoid local PLT.
3036         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
3037         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3039         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
3041         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
3042         __fe_nomask_env.
3043         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
3044         <fenv_libc.h> instead of <fenv.h>.
3045         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
3046         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
3048         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
3050         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
3051         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
3052         function from fegetexcept and make old name weak alias.
3053         * include/fenv.h: Declare __fegetexcept.
3054         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
3055         fegetexcept.
3056         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
3057         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
3058         to fetestexcept.
3059         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
3060         instead of frexpl to avoid local PLT.
3061         * math/s_significandl.c (__significandl): Use __ilogbl instead of
3062         ilogbl to avoid local PLT.
3063         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
3064         instead of ldexpl to avoid local PLT.
3065         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
3066         __roundl not roundl to avoid local PLT.
3067         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
3068         local PLTs.  Use __sincosl instead of separate sinl and cosl
3069         calls.
3070         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3072         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
3073         version for ppc64 to 2.4.21 since without it makecontext will fail.
3075         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
3076         to the ABI in use.
3077         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
3078         .__tls_get_addr.
3079         [__powerpc64__] (TLS_GD): Likewise.
3081 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
3083         [BZ #4997]
3084         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
3085         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
3086         mantissa.
3087         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3088         Likewise.  Also account for when x is an odd number between 2^52
3089         and 2^53-1.
3090         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
3091         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3092         * math/libm-test.inc (lround_test, llround_test): Added test cases to
3093         detect aforementioned erroneous conditions.
3095 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
3097         * configure.in: Check for -fno-section-anchors in addition to
3098         -fno-toplevel-reorder.
3100 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
3102         * include/features.h (__GLIBC_MINOR__): Bump to 8.
3104         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
3105         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
3106         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
3107         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3108         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3109         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3111 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
3113         [BZ #5443]
3114         * time/era.c: Transform __libc_setlocale_lock into rwlock.
3115         * time/alt_digit.c: Likewise.
3116         * wcsmbs/wcsmbsload.c: Likewise.
3118 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
3120         * version.h (VERSION): Bump to 2.8.
3122         * timzeone/asia: Update from tzdata2008b.
3123         * timezone/backward: Likewise.
3124         * timezone/europe: Likewise.
3125         * timezone/northamerica: Likewise.
3126         * timezone/southamerica: Likewise.
3127         * timezone/iso3166.tab: Likewise.
3128         * timezone/leapseconds: Likewise.
3129         * timezone/zone.tab: Likewise.
3130         * timezone/private.h: Update from tzcode2008a.
3131         * timezone/zdump.c: Likewise.
3132         * timezone/zic.c: Likewise.
3134 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
3136         [BZ #5741]
3137         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
3138         Define additonal Data Cache Block instruction macros.
3139         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
3140         Replace dcbst with dcbf and sync with sync/isync.
3142 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
3144         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
3145         Always set ELF_RTYPE_CLASS_PLT.
3146         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
3148 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
3150         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
3151         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
3152         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
3153         For ISA 2.01 and later replace mftb with mfspr 268.
3155 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
3157         [BZ #5768]
3158         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
3159         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
3161 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
3163         [BZ #5768]
3164         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
3165         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
3166         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
3167         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
3169 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
3171         * stdlib/tst-makecontext.c (othervar): New variable.
3172         (cf): Test sign extending the argument to long.
3174 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
3176         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
3177         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
3178         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
3179         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
3180         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
3181         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
3182         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
3184 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
3186         * elf/Makefile (tests): Substitute tests-vis-yes here.
3187         (tests-vis-yes): Delete.
3188         (modules-name, modules-vis-yes): Similarly.
3190 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
3192         [BZ #4407]
3193         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
3194         Preserve sign in signgamp when x is zero.
3196 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
3198         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
3199         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
3200         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
3201         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
3202         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
3203         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
3205 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
3207         [BZ #4314]
3208         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
3209         buffers.
3211         [BZ #5209]
3212         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
3213         a reserved error value.
3215         * stdlib/tst-makecontext.c: Change parameter to cf to negative
3216         value to check for correct sign extension.
3218         [BZ #5436]
3219         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3220         Copy 64-bit parameter values even though this is not required in
3221         the standard.
3223         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
3224         PC save.
3226 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
3228         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
3229         PC save.
3231 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
3233         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
3235 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
3237         [BZ #5998]
3238         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
3239         in line-buffered stream failed.
3240         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3242 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
3244         [BZ #6024]
3245         * scripts/abi-versions.awk: If the version specified by
3246         --enable-oldest-abi is older than the first version for this
3247         architecture, use the default version.
3249         * locale/programs/ld-collate.c (collate_read): Ignore script lines
3250         as well when ignoring the whole category.
3252 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
3254         [BZ #6042]
3255         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
3256         ETHERTYPE_* definitions.
3257         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
3259 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
3261         * stdlib/mbtowc.c (__no_r_state): Remove.
3262         (mbtowc): New static state variable.  Use it instead of
3263         __no_r_state.
3264         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
3265         (__wctomb_state): New hidden variable.
3266         (wctomb): Use __wctomb_state instead of __no_r_state.
3267         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
3268         (__wctomb_state): New extern decl.
3269         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
3271 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
3273         [BZ #5475]
3274         * resolv/res_init.c: Handle scope IDs in resolv.conf.
3276 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
3278         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
3280 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
3282         * po/nl.po: Update from translation team.
3284 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
3286         [BZ #6007]
3287         * string/strfry.c: Handle empty strings again.
3289 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
3291         [BZ #5443]
3292         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
3293         before looking for translation.
3294         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
3295         * locale/freelocale.c: Likewise.
3296         * locale/newlocale.c: Likewise.
3297         * locale/setlocale.c: Likewise.
3298         Based partially on a patch by ryo@np.css.fujitsu.com.
3300 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
3302         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
3303         acquiring wrlock.  Do conv_tab allocation while holding lock.
3304         * intl/Makefile: Add rules to build and run tst-gettext6.
3305         * intl/tst-gettext6.c: New test.
3306         * intl/tst-gettext6.sh: New file.
3308 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
3310         * po/nl.po: Update from translation team.
3312         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
3313         provided through st_blksize, try the default size before giving up.
3315 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
3317         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
3319         [BZ #5939]
3320         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
3322         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
3323         error message.  POSIX today does not require the messages to be in
3324         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
3326         [BZ #5979]
3327         * sunrpc/auth_unix.c: Unify printed strings.
3328         * sunrpc/clnt_tcp.c: Likewise.
3329         * sunrpc/clnt_udp.c: Likewise.
3330         * sunrpc/clnt_unix.c: Likewise.
3331         * sunrpc/svc_tcp.c: Likewise.
3332         * sunrpc/svc_udp.c: Likewise.
3333         * sunrpc/svc_unix.c: Likewise.
3334         * sunrpc/xdr.c: Likewise.
3335         * sunrpc/xdr_array.c: Likewise.
3336         * sunrpc/xdr_rec.c: Likewise.
3337         * sunrpc/xdr_ref.c: Likewise.
3338         * locale/programs/ld-time.c (time_finish): Unify messages.
3339         * locale/programs/locfile.c (handle_copy): Fix typo.
3340         * nscd/nscd.c (options): Fix typo.
3342         [BZ #5995]
3343         * stdlib/strtod_l.c: Use correct sign for result in one more
3344         underflow case.
3345         Patch by Eric Blake <ebb9@byu.net>.
3347 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
3349         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
3350         and creat system calls.
3351         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
3352         call.
3353         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
3354         system calls.
3355         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
3356         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3357         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3359 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
3361         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
3362         <linux/limits.h> has defined it.
3363         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
3364         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
3365         headers.
3366         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
3367         it instead of ARG_MAX.
3369 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
3371         * posix/gai.conf: Fix comment for scope nullbits.
3372         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
3373         default to 128 bits for v4 mapped addresses.
3375 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3377         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
3378         ptrace call to get the ieee_instruction_pointer from the kernel.
3379         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
3380         ptrace call to set the ieee_instructtion_pointer.
3381         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
3382         Add comment that ieee_instruction_pointer is always 0.
3384 2008-03-09  Andreas Jaeger  <aj@suse.de>
3386         [BZ #5857]
3387         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
3388         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
3389         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
3391         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
3392         (rint_test): Likewise.
3394 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
3396         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
3397         call.
3398         (__nisfind_server): Similar for open readColdStartFile call.
3399         Patch partially by Jim Meyering.
3400         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
3401         around internal_setent call.
3403         * po/vi.po: New Vietnamese translation.
3405         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
3406         ADJ_OFFSET_SS_READ.
3408         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
3409         remove CLONE_STOPPED.
3411 2008-02-10  Jim Meyering  <meyering@redhat.com>
3413         Remove useless "if" before "free":
3414         * elf/ldconfig.c (parse_conf_include): Likewise.
3415         * gmon/gmon.c (weak_alias): Likewise.
3416         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
3417         * inet/rcmd.c (__validuser2_sa): Likewise.
3418         * intl/bindtextdom.c (set_binding_values): Likewise.
3419         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
3420         * libio/genops.c (save_for_backup): Likewise.
3421         * libio/wgenops.c (save_for_wbackup): Likewise.
3422         * locale/programs/ld-collate.c (collate_read): Likewise.
3423         * locale/programs/linereader.c (get_string): Likewise.
3424         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
3425         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
3426         * resolv/res_debug.c (do_section): Likewise.
3427         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
3428         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
3429         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3430         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
3431         * time/tzset.c (tzset_internal): Likewise.
3433 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
3435         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
3436         of ASSEMBLER.
3438 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
3440         [BZ #5903]
3441         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
3442         not stream for output file.  Open output file here.
3443         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
3444         and output file name.
3445         (process_fd): Likewise.
3446         (process_file): Likewise.
3447         (main): Adjust callers of changed functions.
3448         * iconv/iconv_prog.h: Adjust prototype.
3450 2008-03-09  Andreas Jaeger  <aj@suse.de>
3452         [BZ #5753]
3453         * sysdeps/ia64/ieee754.h: Use protected namespace
3454         __BIG_ENDIAN/__LITTLE_ENDIAN.
3455         * sysdeps/ieee754/ieee754.h: Likewise.
3456         Patch by Aurelien Jarno <aurelien@aurel32.net>.
3458 2008-03-08  Roland McGrath  <roland@frob.com>
3460         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
3461         ignore a signal that came from a machine exception, treat it as a
3462         fatal core-dump signal instead.
3463         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3465         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
3466         Clear DF bit in thread state's eflags.
3467         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3469 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
3471         [BZ #5774]
3472         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
3473         of NAN(...) sequence.
3474         * stdlib/Makefile (tests): Add tst-strtod6.
3475         * stdlib/tst-strtod6.c: New file.
3477         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
3479         [BZ #5762]
3480         * posix/getopt.c (_getopt_internal_r): Clarify error message by
3481         putting offending option character in quotes.  Clean up error
3482         messages.
3483         * po/be.po: Adjust msgstr in translation file.
3484         * po/bg.po: Likewise.
3485         * po/ca.po: Likewise.
3486         * po/cs.po: Likewise.
3487         * po/da.po: Likewise.
3488         * po/de.po: Likewise.
3489         * po/es.po: Likewise.
3490         * po/fr.po: Likewise.
3491         * po/hr.po: Likewise.
3492         * po/ko.po: Likewise.
3493         * po/nl.po: Likewise.
3494         * po/rw.po: Likewise.
3495         * po/sk.po: Likewise.
3496         * po/sv.po: Likewise.
3497         * po/tr.po: Likewise.
3498         * po/zh_CN.po: Likewise.
3499         * po/zh_TW.po: Likewise.
3501         [BZ #5760]
3502         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
3503         Patch by Roland Bless <roland@bless.de>.
3505         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
3506         .o file.
3507         * elf/Makefile (routines): Add dl-sysdep.
3508         (elide-routines.os): Likewise.
3510 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
3512         [BZ #5786]
3513         * elf/dl-sysdep.c: Undefine ROUND after use.
3514         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
3515         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
3516         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
3517         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
3518         to ...
3519         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
3520         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
3521         if necessary.
3522         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
3524         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
3525         _dl_tls_get_addr_soft element.
3526         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
3527         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
3528         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
3529         GLRO.
3530         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
3531         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
3532         of internal_function.
3534         * stdlib/Makefile (aux): Add tens_in_limb.
3535         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
3536         * stdlib/tens_in_limb.c: ...here.  New file.
3538         [BZ #5778]
3539         * sysdeps/unix/sysv/linux/pathconf.h: Declare
3540         __statfs_chown_restricted.
3541         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
3542         for _PC_CHOWN_RESTRICTED.
3543         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
3544         Implement __statfs_chown_restricted.
3545         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
3546         _POSIX_CHOWN_RESTRICTED value to zero.
3547         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
3548         defined to zero.
3550         * sysdeps/x86_64/rtld-memset.c: New file.
3552 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
3554         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
3556         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
3557         Barcelona machine.  Make default fall through branch of
3558         __x86_64_preferred_memory_instruction check as the integer code path.
3560 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
3562         * sysdeps/x86_64/cacheinfo.c
3563         (__x86_64_preferred_memory_instruction): New variable.
3564         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3566         * sysdeps/x86_64/memset.S: Rewrite.
3568 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
3570         * include/stdio.h (__asprintf_chk, __dprintf_chk,
3571         __obstack_printf_chk): New prototypes.
3572         (__vasprintf_chk, __vdprintf_chk,
3573         __obstack_vprintf_chk): Likewise.
3574         Add libc_hidden_proto.
3575         * libio/obprintf.c
3576         (_IO_obstack_jumps): No longer static, add attribute_hidden.
3577         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
3578         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
3579         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
3580         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
3581         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
3582         __obstack_vprintf_chk): New prototypes.
3583         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
3584         obstack_vprintf): New inlines.
3585         * debug/dprintf_chk.c: New file.
3586         * debug/vdprintf_chk.c: New file.
3587         * debug/asprintf_chk.c: New file.
3588         * debug/vasprintf_chk.c: New file.
3589         * debug/obprintf_chk.c: New file.
3590         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
3591         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
3592         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
3593         @@GLIBC_2.8.
3594         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
3595         vdprintf_chk and obprintf_chk, set CFLAGS for them.
3596         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
3597         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
3598         libc_hidden_proto.
3599         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
3600         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
3601         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
3602         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
3603         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
3604         @@GLIBC_2.8.
3605         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
3606         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
3607         obstack_vprintf_chk.
3608         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
3609         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
3610         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
3611         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
3612         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
3613         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
3615 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
3617         [BZ #5779]
3618         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
3619         Patch by Roy Marples <roy@marples.name>.
3621         [BZ #5736]
3622         * malloc/malloc.c: Fix typo in comment.
3624         [BZ #5627]
3625         * locale/iso-639.def: Add Shuswap.
3627 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
3629         [BZ #5790]
3630         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
3631         overwrite *h_errnop/*errnop values from getanswer_r in case of
3632         failure.
3634 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
3636         [BZ #5818]
3637         * nscd/connections.c (dbs): Add initializers for .suggested_module.
3638         (verify_persistent_db): Remove one unnecessary test and add a new one
3639         for bad configuration.
3640         (nscd_init): Improve error reported when persistent database cannot
3641         be reused.
3642         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
3643         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
3644         .suggested_module and .max_db_size and case config file says the
3645         values are zero.
3646         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
3648         [BZ #5854]
3649         * nis/ypclnt.c (yp_order): Fix handling of return value of
3650         do_ypcall_tr call.
3651         Patch by Jeff Moyer <jmoyer@redhat.com>.
3653         * po/fr.po: Update from translation team.
3655 2008-02-22  Andreas Jaeger  <aj@suse.de>,
3656             Carlos O'Donell <carlos@systemhalted.org>
3658         [BZ #5012]
3659         * FAQ.in: Describe why glibc needs to be compiled with
3660         optimization.
3662 2008-02-19  Roland McGrath  <roland@redhat.com>
3664         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
3666 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
3668         [BZ #5737]
3669         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
3670         __USE_MISC is defined.
3672 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
3674         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
3675         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
3676         sys/timerfd.h.
3677         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
3678         timerfd_gettime, timerfd_settime.
3679         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
3680         timerfd_gettime, timerfd_settime for GLIBC_2.8.
3682 2008-02-08  Roland McGrath  <roland@redhat.com>
3684         * elf/elf.h (NT_PPC_SPE): New macro.
3686 2008-02-06  Roland McGrath  <roland@redhat.com>
3688         * Makerules ($(common-objpfx)sysd-rules):
3689         Depend on $(sysdep-makeconfigs).
3691 2008-01-31  Roland McGrath  <roland@redhat.com>
3693         [BZ #5442]
3694         * configure.in: Use -print-file-name if it yields a directory,
3695         for each of include and include-fixed.
3696         * configure: Regenerated.
3698         * Makeconfig (sysd-rules-targets): New variable.
3699         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
3700         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
3702 2008-01-30  Roland McGrath  <roland@redhat.com>
3704         * manual/libc.texinfo: Update back-cover text.
3706         * elf/elf.h (NT_386_TLS): New macro.
3708 2008-01-29  Roland McGrath  <roland@redhat.com>
3710         * Makeconfig (sysd-rules-patterns): New variable.
3711         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
3712         (check-inhibit-asm): New canned sequence, replaces ...
3713         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
3714         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
3715         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
3716         (CFLAGS-rtld): Variable removed.
3718 2008-01-24  Roland McGrath  <roland@redhat.com>
3720         * configure.in: Let configure fragments set base_os.
3721         * configure: Regenerated.
3723 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
3725         * po/ko.po: Update from translation team.
3727 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
3729         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
3731 2008-01-12  Andreas Jaeger  <aj@suse.de>
3733         [BZ #5040]
3734         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
3735         Add EPOLLRDHUP.
3737 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3739         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
3740         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
3741         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
3743 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
3745         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
3746         * elf/dl-close.c (_dl_close): Check for it.
3747         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
3748         (_dl_allocate_static_tls): Likewise.
3749         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
3750         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
3751         to it.
3752         * elf/tst-tls16.c: New file.
3753         * elf/tst-tlsmod16a.c: New file.
3754         * elf/tst-tlsmod16b.c: New file.
3755         * elf/Makefile: Add rules to build and run tst-tls16.
3757 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
3759         [BZ #5628]
3760         * bits/shm.h: Fix comment describing shmid_ds.
3761         * sysdeps/gnu/bits/shm.h: Likewise.
3762         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
3763         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
3764         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
3765         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
3766         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
3767         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
3768         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
3769         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
3770         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
3772         [BZ #5607]
3773         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
3774         prototypes.
3775         * conform/data/limits.h-data: Adjust limits changed in v6 and add
3776         additional suffixes.
3777         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
3778         Add optional functions mq_timedreceive and mq_timedsend.
3779         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
3780         * conform/data/pthread.h-data: Fix prototype of
3781         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
3782         * conform/data/semaphore.h-data: Allow time.h definitions.
3783         * conform/data/signal.h-data: Likewise.
3784         * conform/data/stdio.h-data: getw and putw are not required in v6.
3785         * conform/data/stdlib.h-data: Change setstate prototype.
3786         * conform/data/string.h-data: Fix strerror_r prototype.
3787         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
3788         * conform/data/unistd.h-data: pthread_atfork not required in v6.
3789         Fix readlink prototype.
3790         * conform/data/netinet/in.h-data: Add const to in6addr_any and
3791         in6addr_loopback.
3792         * inet/netinet/in.h: Cleanup namespace.
3793         * posix/regex.h: Likewise.
3794         * resolv/netdb.h: Likewise.
3795         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
3796         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
3797         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3798         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
3799         of names of in in6_addr.
3800         (default_precedence): Likewise.
3801         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
3802         NULL definition.
3804 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
3806         * conform/data/fmtmsg.h-data: Add missing allows.
3807         * conform/data/ftw.h-data: Likewise.
3808         * conform/data/inttypes.h-data: Likewise.
3809         * conform/data/math.h-data: Likewise.
3810         * conform/data/signal.h-data: Likewise.
3811         * conform/data/net/if.h-data: Likewise.
3812         * conform/data/netinet/in.h-data: Likewise.
3813         * conform/data/sys/socket.h-data: Likewise.
3815         [BZ #5614]
3816         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
3817         (__strtok_r): Simplify.
3818         * string/tester.c (test_strtok_r): Add test case for futile search
3819         with single-character seach string.
3821 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
3823         * po/ko.po: Update from translation team.
3825 2008-01-11  Andreas Jaeger  <aj@suse.de>
3827         [BZ #5600]
3828         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
3829         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
3830         kernel header.
3832 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
3834         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
3835         native interface lookup in all the relevant places.
3837 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
3838             Ulrich Drepper  <drepper@redhat.com>
3840         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
3841         field.  Use sockaddr_in6 for source_addr.
3842         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
3843         (match_prefix): Likewise.
3844         (get_label): Likewise.
3845         (get_precedence): Likewise.
3846         (rfc3484_sort): Change to use indirect access to results array.
3847         Adjust to use of sockaddr_in6.  Replace service_order test with
3848         simple index comparison.
3849         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
3850         service_order field.  Adjust qsort_t calls.  Access sorted result
3851         array indirectly through order array.
3852         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
3853         * posix/tst-rfc3484-2.c: Likewise.
3854         * posix/tst-rfc3484-3.c: Likewise.
3856 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
3858         [BZ #5541]
3859         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
3860         pollfd structures.
3861         Patch by André Cruz.
3863         [BZ #5545]
3864         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
3865         (clnt_spcreateerror): Likewise.
3867         [BZ #5553]
3868         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
3869         (public_mEMALIGn): Likewise.
3870         Patch mostly by Daniel Jacobowitz.
3872 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
3874         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
3875         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
3876         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
3877         * stdlib/tst-makecontext2.c: New test.
3879 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
3881         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
3882         defined.
3883         (REINIT_PARAMS): Likewise.  Undefine before end of file.
3884         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
3885         transliteration hooks and REINIT_PARAMS afterwards.
3886         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
3887         status.
3888         (REINIT_PARAMS): Define.
3889         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
3890         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
3891         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
3892         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
3893         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
3894         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
3895         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
3896         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
3897         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
3898         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
3899         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
3900         * iconvdata/tst-iconv7.c: New test.
3902 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
3904         * libio/stdio.h (vscanf): Fix definition for loser compilers.
3906 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
3908         [BZ #5112]
3909         * nscd/connections.c (restart): Fix condition.
3911 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
3913         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
3914         __ctype_toupper_loc): Add __THROW.
3916 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
3918         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
3919         recognition of interface family.
3921         * posix/getconf.c: Update copyright year.
3922         * nss/getent.c: Likewise.
3923         * iconv/iconvconfig.c: Likewise.
3924         * iconv/iconv_prog.c: Likewise.
3925         * elf/ldconfig.c: Likewise.
3926         * catgets/gencat.c: Likewise.
3927         * csu/version.c: Likewise.
3928         * elf/ldd.bash.in: Likewise.
3929         * elf/sprof.c (print_version): Likewise.
3930         * locale/programs/locale.c: Likewise.
3931         * locale/programs/localedef.c: Likewise.
3932         * nscd/nscd.c (print_version): Likewise.
3933         * debug/xtrace.sh: Likewise.
3934         * malloc/memusage.sh: Likewise.
3935         * malloc/mtrace.pl: Likewise.
3936         * debug/catchsegv.sh: Likewise.
3938 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
3940         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
3941         second lookup.
3943 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
3945         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
3946         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3948 2007-12-17  Roland McGrath  <roland@redhat.com>
3950         * inet/ether_line.c (ether_line): Remove unused variable.
3952 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3954         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
3955         and winp.
3956         * login/openpty.c (openpty): Likewise.
3957         * login/pty.h (openpty, forkpty): Likewise.
3958         * manual/terminal.texi (openpty, forkpty): Likewise.
3960 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
3962         * malloc/malloc.c (public_cALLOc): For arenas other than
3963         main_arena, count all bytes inside the mprotect_size range of the
3964         heap as uninitialized.
3966 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
3968         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
3969         executable stacks.
3971         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
3972         mTRIm for all of them.
3973         (mTRIm): Additionally iterate over all free blocks and use madvise
3974         to free memory for all those blocks which contain at least one
3975         memory page.
3976         * malloc/tst-trim1.c: New file.
3977         * malloc/Makefile (tests): Add tst-trim1.
3979         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
3981 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
3983         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
3984         First cast argument to long
3985         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
3986         Return long.
3987         (__vdso_clock_gettime): Likewise.
3988         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
3989         return long.
3991 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
3993         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
3994         * locale/nl_langinfo_l.c: Real implementation, copied from
3995         nl_langinfo.c.
3996         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
3998 2007-12-01  Jim Meyering  <meyering@redhat.com>
4000         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
4001         that would inhibit utf8-optimization of a regexp containing line-
4002         or buffer-anchors, e.g., `^', `$'.
4004 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
4006         * time/bug-getdate1.c (do_test): Don't use century values which
4007         aren't valid on 32-bit systems.
4009 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
4011         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
4012         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
4013         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
4014         __strcat_g, __strncat_g): Add __asm__.
4016 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
4018         [BZ #5477]
4019         * io/fchmodat.c: Fix typo in stub_warning use.
4020         Patch by Petr Salinger.
4022 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
4024         * iconvdata/hp-thai8.c: New file.
4025         * iconvdata/Makefile: Add rules for hp-thai8.c.
4026         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
4027         * iconvdata/gconv-modules: Likewise.
4029         [BZ #5464]
4030         * iconvdata/hp-greek8.c: New file.
4031         * iconvdata/Makefile: Add rules for hp-greek8.c.
4032         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
4033         * iconvdata/gconv-modules: Likewise.
4035         [BZ #5463]
4036         * iconvdata/hp-turkish8.c: New file.
4037         * iconvdata/Makefile: Add rules for hp-turkish8.c.
4038         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
4039         * iconvdata/gconv-modules: Likewise.
4041         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
4042         (shrink_heap): ... this new function.
4043         (heap_trim): Call shrink_heap instead of grow_heap.
4045         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
4046         case don't call alloc_perturb.
4048 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
4050         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
4051         possible.
4052         * sysdeps/unix/sysv/linux/kernel-features.h
4053         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
4054         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
4056 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
4058         [BZ #5424]
4059         * stdio-common/vfprintf.c: Do not overflow when adding to done.
4060         * stdio-common/Makefile (tests): Add bug22.
4061         * stdio-common/bug22.c: New file.
4063         [BZ #5451]
4064         * time/getdate.c: Fix filling in default values.
4065         * time/bug-getdate1.c: New file.
4066         * time/Makefile: Add rules to build and run bug-getdate1.
4068         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
4069         * iconvdata/ebcdic-es.c: Likewise.
4070         * iconvdata/ebcdic-es-a.c: Likewise.
4071         * iconvdata/ebcdic-uk.c: Likewise.
4072         * iconvdata/iso8859-16.c: Likewise.
4073         * iconvdata/viscii.c: Likewise.
4074         * iconvdata/iso8859-9e.c: Likewise.
4075         * iconvdata/Makefile: Adjust appropriately.
4077         [BZ #5428]
4078         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
4079         __need_wint_t.
4081 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
4083         [BZ #5427]
4084         * iconvdata/hp-roman9.c: New file.
4085         * iconvdata/Makefile: Add rules for hp-roman9.c.
4086         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
4087         * iconvdata/gconv-modules: Likewise.
4089         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
4090         * iconvdata/Makefile: Adjust appropriately.
4092         [BZ #5441]
4093         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
4094         structure, it's allocated with alloca.
4095         * stdio-common/Makefile (tests): Add bug21.
4096         * stdio-common/bug21.c: New file.
4098 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
4100         [BZ #5452]
4101         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
4102         keyword for gcc's braced-groups.
4104 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
4106         [BZ #5454]
4107         * inet/ether_line.c: Strip hostname of whitespaces.
4108         * inet/Makefile (tests): Add tst-ether_line.
4109         * inet/tst-ether_line.c: New file.
4111 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
4113         [BZ #5439]
4114         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
4116         [BZ #5435]
4117         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
4119         * stdlib/tst-setcontext.c: Catch the case where the links gets
4120         messed up and we do not reach main again.
4122         * po/ca.po: Update from translation team.
4124 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
4126         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
4127         * posix/regex.h (REG_ENOSYS): Likewise.
4128         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
4130 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
4132         * nscd/nscd.h (MAX_STACK_USE): Define.
4133         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
4134         (gc): Initialize stack_used based on allocation in prune_cache.
4135         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
4136         Clear array before use.
4138         * nscd/aicache.c (addhstaiX): Update statistics counter in case
4139         memory allocation failed.
4140         * nscd/hstcache.c (cache_addhst): Likewise.
4141         * nscd/grpcache.c (cache_addgr): Likewise.
4142         * nscd/servicescache.c (cache_addserv): Likewise.
4143         * nscd/pwdcache.c (cache_addpw): Likewise.
4144         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4146 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
4148         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
4149         and creat system calls.
4151         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
4153 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4155         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
4156         Add netiucv/iucv.h.
4157         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
4158         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
4159         protocol.
4160         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
4161         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
4162         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
4164 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4166         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
4167         strncat): Define as macros to avoid compile errors.
4169         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
4170         creat entries.
4172 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
4174         [BZ #5382]
4175         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
4176         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
4177         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
4178         overflow it.
4179         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4181         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
4182         Return zero in case the thread library is not NPTL.
4184         [BZ #5375]
4185         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
4186         initializing interface list.
4188         [BZ #5378]
4189         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
4190         use result of nss_getgrgid_r if nothing was found.  For other
4191         error return with a failure.
4192         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4194         * locale/programs/ld-collate.c (collate_read): Fix loop to match
4195         macro name.
4197 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
4199         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
4200         (get_scope): For IPv4 scope, use scopes table.
4201         (fini): Free scopes table if necessary.
4202         (free_scopelist): New function.
4203         (scopecmp): New function.
4204         (gaiconf_init): Also handle scopev4 entries.
4205         * posix/tst-rfc3484.c (do_test): Initialize scopes.
4206         * posix/tst-rfc3484-2.c (do_test): Likewise.
4207         * posix/gai.conf: Document scopev4 defaults.
4208         * posix/Makefile (tests): Add tst-rfc3484-3.
4209         * posix/tst-rfc3484-3.c: New file.
4211         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
4212         Teredo tunnels.
4213         * posix/gai.conf: Update for current default tables.
4215 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
4217         * po/tr.po: Update from translation team.
4219 2007-11-18  Roland McGrath  <roland@frob.com>
4221         * manual/arith.texi (Remainder Functions): Spelling fix.
4222         From Shaun Silk <genix@mysoul.com.au>.
4224         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
4226 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
4228         * po/zh_CN.po: Update from translation team.
4230         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
4231         Add sys/signalfd.h and sys/eventfd.h.
4233 2007-11-15  Bruno Haible  <bruno@clisp.org>
4235         [BZ #5346]
4236         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
4237         union.
4238         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
4239         (DCIGETTEXT): Change the allocation of the 'search' variable so that
4240         it needs only fixed stack space. Delay the initialization of
4241         msgid_len until it is needed.
4243 2007-11-15  Andreas Jaeger  <aj@suse.de>
4245         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
4246         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
4248 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
4250         * po/ko.po: Update from translation team.
4252 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
4254         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
4255         significantly.  The device type is also part of the ifinfomsg data.
4257         * po/sv.po: Update from translation team.
4258         * po/nl.po: Likewise.
4260         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
4261         to wake up in 24 hours.
4263         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
4265 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
4267         * po/cs.po: Update from translation team.
4268         * po/pl.po: Likewise.
4270         * include/ifaddrs.h: Remove in6ai_temporary.
4271         (struct in6addrinfo): Add index element.
4272         Declare __check_native.
4273         * inet/Makefile (aux): Add check_native.
4274         * sysdeps/unix/sysv/linux/check_native.c: New file.
4275         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
4276         IFA_F_TEMPORARY.  Pass back ifa_index.
4277         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
4278         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
4279         call __check_native if necessary.
4280         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
4281         to sort addresses.  Pass information about the results.
4282         * posix/tst-rfc3484.c: Adjust for addition of index field and change
4283         of rfc3484_sort interface.
4284         * posix/tst-rfc3484-2.c: Likewise.
4286         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
4287         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
4288         for _quicksort.
4289         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
4290         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
4291         on as third parameter to compare function and _quicksort.
4292         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
4293         to the compare function.
4294         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
4295         * Versions.def: Add GLIBC_2.8 for libc.
4297         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
4298         * posix/tst-rfc3484-2.c: Likewise.
4300         * include/kernel-features.h: Moved to...
4301         * sysdeps/mach/hurd/kernel-features.h: ...here.
4303 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
4305         * sysdeps/i386/i586/memcpy_chk.S: New file.
4306         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
4307         * sysdeps/i386/i586/memset_chk.S: Likewise.
4309 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
4311         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
4312         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
4313         list of interfaces.  Also store prefix length.
4314         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
4315         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
4316         prefix if source and destination address are in the same subnet.
4317         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
4318         Always look for matching record in in6ai list.
4319         Correct source_addr_len value for IPv6->IPv4 converted records.
4321 2007-11-11  Roland McGrath  <roland@frob.com>
4323         * include/kernel-features.h: New file.
4325 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
4327         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
4328         complications for 64-bit platforms.
4330         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
4331         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
4332         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
4333         open64_2.
4334         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
4335         entries.
4336         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4337         * sysdeps/wordsize-64/alphasort.c: New file.
4338         * sysdeps/wordsize-64/alphasort64.c: New file.
4339         * sysdeps/wordsize-64/fseeko.c: New file.
4340         * sysdeps/wordsize-64/fseeko64.c: New file.
4341         * sysdeps/wordsize-64/ftello.c: New file.
4342         * sysdeps/wordsize-64/ftello64.c: New file.
4343         * sysdeps/wordsize-64/ftw.c: New file.
4344         * sysdeps/wordsize-64/ftw64.c: New file.
4345         * sysdeps/wordsize-64/iofgetpos.c: New file.
4346         * sysdeps/wordsize-64/iofgetpos64.c: New file.
4347         * sysdeps/wordsize-64/iofopen.c: New file.
4348         * sysdeps/wordsize-64/iofopen64.c: New file.
4349         * sysdeps/wordsize-64/iofsetpos.c: New file.
4350         * sysdeps/wordsize-64/iofsetpos64.c: New file.
4351         * sysdeps/wordsize-64/lockf.c: New file.
4352         * sysdeps/wordsize-64/lockf64.c: New file.
4353         * sysdeps/wordsize-64/mkostemp.c: New file.
4354         * sysdeps/wordsize-64/mkostemp64.c: New file.
4355         * sysdeps/wordsize-64/mkstemp.c: New file.
4356         * sysdeps/wordsize-64/mkstemp64.c: New file.
4357         * sysdeps/wordsize-64/scandir.c: New file.
4358         * sysdeps/wordsize-64/scandir64.c: New file.
4359         * sysdeps/wordsize-64/tmpfile.c: New file.
4360         * sysdeps/wordsize-64/tmpfile64.c: New file.
4361         * sysdeps/wordsize-64/versionsort.c: New file.
4362         * sysdeps/wordsize-64/versionsort64.c: New file.
4363         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
4364         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
4365         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
4366         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
4367         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
4368         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
4369         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
4370         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
4371         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
4372         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
4373         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
4374         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
4376         * crypt/sha256-crypt.c: Fix a comment.
4377         * crypt/sha512-crypt.c: Likewise.
4379 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
4381         * sysdeps/x86_64/memset.S: Add sfence after movnti.
4383 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
4385         [BZ #5277]
4386         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
4387         because output buffer is too small break, don't loop.
4388         * iconvdata/Makefile (tests): Add bug-iconv6.
4389         * iconvdata/bug-iconv6.c: New file.
4391 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
4393         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
4394         with size_t type.
4395         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
4396         size_t.  Add casts where needed.
4398         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
4399         old headers, don't call avc_has_perm if we don't have the
4400         permission information.
4402 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
4404         * elf/rtld.c (dl_main): Use the page size to find the map start.
4406 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
4408         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
4409         Patch by Szymon Siwek <sls@poczta.wp.pl>.
4411         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
4412         when the lookup call failed.
4414         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
4415         Add prune_cond and wakeup_time.
4416         (CACHE_PRUNE_INTERNAL): Define.
4417         Update declarations of prune_cache and setup_thread.
4418         * nscd/connections.c (dbs): Update initializers.
4419         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
4420         (nscd_init): Default number of threads is now 4.
4421         (invalidate_cache): Take lock before calling prune_cache.
4422         (handle_request): If SELinux forbids the request, say so.
4423         (readylist_cond): Use static initializer.
4424         (nscd_run_prune): New function.  Used only by pruning threads.
4425         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
4426         here.
4427         (fd_ready): Update nscd_run reference.
4428         (start_threads): No need to initialize readylist_cond.
4429         Start pruning threads separately.
4430         * nscd/nscd_setup_thread.c: Change return value type to int and always
4431         return 0.
4432         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
4433         to int and return nonzero value if we can use the TID address hack.
4434         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
4435         the database is later than the new entry's timeout, update the
4436         wakeup time and wake the cleanup thread.
4437         (prune_cache): Return seconds the next entry in the database is still
4438         valid.  Remove locking for pruning here.
4439         * nscd/nscd.conf: Document default number of threads.
4441 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
4443         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
4444         stack is properly aligned for the target function.
4445         Correct unwind info.
4447         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
4448         when using auditing libraries.
4450 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
4452         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
4453         _nss_dns_getnetbyaddr2_r.
4454         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
4455         extra parameter to getanswer_r.
4456         (_nss_dns_getnetbyaddr_r): Now a wrapper around
4457         _nss_dns_getnetbyaddr2_r.
4459         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
4460         gethstbynm3_r.
4461         * nscd/gethstbynm2_r.c: Remove.
4462         * nscd/gethstbynm3_r.c: New file.
4463         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
4464         __gethostbyaddr_r.
4465         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
4466         __gethostbyaddr_r compatibility wrapper.
4467         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
4468         determining timeout of entry.
4469         (lookup): Take new parameter and pass it to __gethostbyname3_r and
4470         __gethostbyaddr2_r.
4471         (addhstbyX): Pass reference to variable for TTL to lookup and
4472         cache_addhst.
4473         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
4474         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
4475         and __nss_next2.  Remove __nss_services_lookup.
4476         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
4477         Add compat wrapper.
4478         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
4479         __nss_next2.
4480         * nss/getXXent_r.c: Likewise.
4481         * nss/getnssent_r.c: Likewise.
4482         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
4483         does not exist in module, try the optional second name.
4484         (__nss_next2): New function.
4485         (__nss_next): Now wrapper around __nss_next2.
4486         * nss/nsswitch.h: Adjust __nss_lookup prototype.
4487         Declare __nss_next2.
4488         Adjust definition of db_lookup_function type.
4489         * nss/service-lookup.c: Define NO_COMPAT.
4490         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
4491         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
4492         * inet/ether_ntoh.c: Likewise.
4493         * sunrpc/netname.c: Likewise.
4494         * sunrpc/publickey.c: Likewise.
4495         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
4496         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
4497         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4498         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4499         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4501         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
4503         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
4505 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
4507         [BZ #5204]
4508         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
4509         * crypt/sha512c-test.c: Likewise.
4511         [BZ #5225]
4512         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
4513         to keep track of end of %[ format string element.
4514         * stdio-common/Makefile (tests): Add bug20.
4515         * stdio-common/bug20.c: New file.
4517         [BZ #5222]
4518         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
4519         path elements in counting mode.
4521 2007-10-27  Andreas Jaeger  <aj@suse.de>
4523         [BZ #5040]
4524         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
4526         [BZ #3112]
4527         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
4528         (__cleanup): Free shared library when exiting.
4529         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
4530         (__cleanup): Free shared library when exiting.
4532 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
4534         [BZ #2549]
4535         * math/libm-test.inc (check_float_internal): Support
4536         denormalized return.
4538 2007-10-23  Andreas Jaeger  <aj@suse.de>
4540         [BZ #5208]
4541         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
4542         __LONG_LONG_PAIR to handle little endian byte order.
4543         Suggested by abhishekrai@google.com
4545 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
4547         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
4549 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
4551         * nscd/cache.c (prune_cache): Move test for modified file outside
4552         of locking.
4554 2007-10-21  Andreas Jaeger  <aj@suse.de>
4556         * manual/texinfo.tex: Update to latest version.
4558         * manual/sysinfo.texi (System Parameters): Fix Formatting.
4560         * manual/arith.texi (Status bit operations): Fix formatting.
4562         * manual/errno.texi (Error Messages): Fix formatting.
4564         * manual/sysinfo.texi (System Parameters): Fix formatting.
4566         * manual/libc.texinfo: Update VERSION and UPDATED.
4568 2007-10-19  Roland McGrath  <roland@redhat.com>
4570         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
4572 2007-10-06  David S. Miller  <davem@davemloft.net>
4574         * configure.in: Add sparcv9v2 and sparc64v2.
4575         * scripts/config.sub: Likewise.
4576         * configure: Regenerate.
4577         * elf/elf.h (HWCAP_SPARC_N2): New.
4578         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
4579         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
4580         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
4581         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
4582         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
4583         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
4584         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
4586 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
4588         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
4589         even if the poll result indicates there is data to read.
4590         Patch by Jeff Moyer <jmoyer@redhat.com>.
4592 2007-10-18  Roland McGrath  <roland@redhat.com>
4594         * elf/elf.h (NT_PPC_VMX): New macro.
4596 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
4598         * version.h (VERSION): Set to 2.7.90.
4600 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
4602         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
4603         weak_alias.
4605 2007-10-17  Roland McGrath  <roland@frob.com>
4607         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
4608         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
4610 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
4612         * version.h (VERSION): Bump to 2.7.
4613         * include/features.h (__GLIBC_MINOR__): Bump to 7.
4615         [BZ #5186]
4616         * time/tzset.c (__tz_convert): Don't force testing for a change of
4617         TZ if not called from localtime.  But then also see whether the
4618         file changed, in case __use_tzfile is set.
4620         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
4621         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4622         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4623         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4624         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4625         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4626         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
4627         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4629 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
4631         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
4632         and admin selects to be able to replace the gai.conf file, lock
4633         data structures around the qsort call.
4635 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
4637         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
4638         new memset.
4639         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
4640         too high for the improvements.  Implement bzero unconditionally for
4641         use in libc.
4643 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
4644             Jakub Jelinek  <jakub@redhat.com>
4646         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
4647         even when time_t is 32-bit.
4648         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
4649         timezone data read by __tzfile_default.  Ensure __tzname[0] is
4650         always set after the search.
4652 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
4654         * time/tzfile.c (__tzfile_read): Help the compiler recognize
4655         unreachable code on 32-bit machines.
4657 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
4659         [BZ #5184]
4660         * time/strftime_l.c: Include stdbool.h.
4661         (my_strftime): New wrapper, old function renamed to...
4662         (__strftime_internal): ... new function.  Add tzset_called
4663         argument, pass it down to recursive calls, don't call tzset ()
4664         if already true, set to true after call to tzset ().
4666 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
4668         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
4669         into account when copying TZ string.
4671 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
4673         * time/tzfile.c (__tzfile_compute): For use_last case set i to
4674         num_transition rather than num_transitions - 1.
4676 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
4678         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
4679         PIC indirect jump.
4681         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
4682         a local label rather than HIDDEN_JUMPTARGET.
4684 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
4686         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
4687         (init_cacheinfo): Initialize it.
4688         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
4689         Always define bzero.
4690         Remove non-glibc code.
4691         * sysdeps/x86_64/bzero.S: Make an empty file.
4693 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
4695         * sysdeps/x86_64/cacheinfo.c
4696         (__x86_64_preferred_memory_instruction): New.
4697         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
4699         * sysdeps/x86_64/memset.S: Rewrite.
4701 2007-10-15  Roland McGrath  <roland@redhat.com>
4703         * po/libc.pot: Regenerated.
4705 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
4707         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
4708         pointers.
4710         [BZ #3425]
4711         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
4712         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
4713         address record to T_A/T_AAAA requests.
4715 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
4717         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
4719         * posix/glob.c: Add some branch prediction throughout.
4721         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
4722         read from nscd.
4724         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
4725         service_order.
4726         (rfc3484_sort): Make sure that even if qsort doesn't support
4727         stable sorting out sorting here is stable by comparing service_order.
4728         (getaddrinfo): Initialize service_order.
4729         * posix/tst-rfc3484.c (do_test): Adjust for addition of
4730         service_order field to sorting structure.
4731         * posix/tst-rfc3484-2.c (do_test): Likewise.
4733         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
4734         * time/tzset.c (tzset_internal): Break TZ string parsing out into
4735         __tzset_parse_tz and updating of daylight, timezone, tzname into
4736         update_vars.
4737         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
4738         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
4739         happens in __tz_compute.
4740         * time/tzfile.c (__tzfile_read): Also read TZ string.
4741         (find_transition): Fold into __tzfile_compute.
4742         (__tzfile_compute): For times beyond the last transition try to
4743         use the TZ string.
4744         * timezone/tst-timezone.c: Information in daylight and tzname does
4745         change for Asia/Tokyo timezone with more concrete information.
4746         Remove the test.
4748         * include/stdio.h: Add libc_hidden_proto for ftello.
4749         * libio/ftello.c: Add libc_hidden_def.
4751         [BZ #1140]
4752         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
4753         on the specified time and not the last entries in the file.  Move
4754         code to determine tzname[] to...
4755         (find_transition): ...here.  Add ugly guess for times before the
4756         first transition.
4758 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
4760         [BZ #3195]
4761         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
4762         no entry.
4763         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
4764         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
4765         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
4766         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
4768         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
4769         read mechanism when there are no group members and avoid no-op
4770         read syscall in this case.
4772         [BZ #3242]
4773         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
4774         (__readall): If reading failed due to EAGAIN error wait a bit
4775         and possibly try again.
4776         (__readvall): Likewise.
4778 2007-10-13  Bruno Haible  <bruno@clisp.org>
4780         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
4781         when we cannot recode the message.
4783 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
4785         [BZ #4359]
4786         * libio/__freading.c (__freading): Don't return true for
4787         write-only streams.  For read/write streams, check whether we
4788         performed a read operation already.
4789         * libio/Makefile (tests): Add tst-ext2.
4790         * libio/tst-ext2.c: New file.
4792 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
4794         * locale/programs/repertoire.c (repertoire_read): Always free
4795         memory for repertoire file name [Coverity CID 270].
4797         * elf/cache.c (save_aux_cache): Free memory allocated for
4798         temporary file name [Coverity CID 267].
4800 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
4802         * misc/Makefile (headers): Add bits/error.h.
4804 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
4806         * posix/fnmatch_loop.c: Take rule index returned as part of
4807         findidx return value into account when accessing weights.
4808         * posix/regcomp.c: Likewise.
4809         * posix/regexec.c: Likewise.
4811         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
4812         (skip_to): Fix problems with parameter of elifdef/elifndef.
4814 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
4816         * iconv/gconv_simple.c: Add some branch prediction.
4818 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
4820         * locale/programs/ld-collate.c (collate_read): If ignore_content
4821         and nowtok is tok_define, eat any tok_eol tokens.
4823 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
4825         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
4826         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
4828         * inet/netinet/in.h: Don't include bits/socket.h.
4829         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
4830         macro.
4831         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
4833 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
4835         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
4836         and tok_elifndef.
4837         * locale/programs/locfile-kw.gperf: Likewise.
4838         * locale/programs/ld-collate.c: Implement primitive preprocessor.
4840 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
4842         * stdio-common/printf-parse.h: Include string.h and wchar.h.
4843         (__find_specwc): Change into __extern_always_inline function.
4844         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
4845         (__parse_one_specmb): Remove ps argument.
4846         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
4847         Adjust __find_specmb and __parse_one_specmb callers.
4848         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
4849         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
4850         Removed.
4851         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
4852         caller.
4854 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
4856         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
4857         with some Pentium Ds.
4859 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
4861         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
4862         __read not read.
4863         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
4864         __write not write.
4866 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
4868         [BZ #181]
4869         * locale/C-time.c: Set week_1stday data to 19971201.
4870         * locale/programs/ld-time.c (time_finish): Default for
4871         first_workday is Monday.
4873         [BZ #2633]
4874         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
4876         [BZ #5103]
4877         * posix/glob.c (glob): Recognize patterns starting \/.
4878         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
4879         (main): Add test for pattern starting \/.
4881         * misc/error.h: Use __const instead of const.
4882         * misc/bits/error.h: Likewise.
4884 2007-10-07  Andreas Jaeger  <aj@suse.de>
4886         * include/bits/error.h: New file.
4888         * misc/bits/error.h (error_at_line): Fix prototype.
4890 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
4892         [BZ #3924]
4893         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
4894         more little bugs in creating the stack frame when pltexit has to
4895         be called.
4897         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
4898         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
4900         [BZ #4407]
4901         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
4902         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
4903         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
4904         * math/libm-test.inc: Add test for this case.
4906         [BZ #5010]
4907         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
4908         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
4909         map service succeeded.
4910         (svc_is_mapped): New function.
4911         (svc_unregister): Use it before trying to unmap service.
4913 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
4915         * timezone/zic.c: Update from tzcode2007h.
4917         [BZ #5063]
4918         * timezone/africa: Update from tzdata2007h.
4919         * timezone/antarctica: Likewise.
4920         * timezone/asia: Likewise.
4921         * timezone/australasia: Likewise.
4922         * timezone/europe: Likewise.
4923         * timezone/leapseconds: Likewise.
4924         * timezone/northamerica: Likewise.
4925         * timezone/southamerica: Likewise.
4926         * timzeone/zone.tab: Likewise.
4928         [BZ #5104]
4929         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
4931         [BZ #5113]
4932         * string/bits/string2.h (__strdup): Cast parameters to calloc to
4933         avoid warning with -Wconversion.
4934         (__strndup): Likewise.
4935         Half the patch by Christian Iseli <christian.iseli@licr.org>.
4937         [BZ #5112]
4938         * nscd/connections.c (restart): Don't resync if database is
4939         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
4941         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
4942         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
4944         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
4945         evetnfd_read, eventfd_write.
4946         * sysdeps/unix/sysv/linux/eventfd.c: New file.
4947         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
4948         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
4949         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
4950         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
4951         eventfd_write for GLIBC_2.7.
4953         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
4954         * sysdeps/unix/sysv/linux/signalfd.c: New file.
4955         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
4956         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
4958 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
4960         * stdlib/msort.c: Include stdint.h.
4961         (struct msort_param): New type.
4962         (msort_with_tmp): Use struct msort_param pointer for unchanging
4963         parameters.  Add optimized handling for several common sizes
4964         and indirect sorting mode.
4965         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
4966         sorting.
4967         Suggested by Belazougui Djamel .
4969         * stdlib/Makefile (tests): Add tst-qsort2.
4970         * stdlib/tst-qsort2.c: New test.
4972 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
4974         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
4975         for dup2 in case another thread races with the current one.  Retry
4976         in this case.
4978         * misc/error.h: Remove support for use outside of libc.  We have to
4979         include <features.h> now.  Include <bits/error.h> if possible.
4980         * misc/bits/error.h: New file.
4982 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
4984         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
4985         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
4986         __extern_always_inline functions unconditionally, drop macros.
4988         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
4989         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
4990         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
4992         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
4993         add __artificial__ attribute.
4995 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
4997         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
4998         backward to forward direction.
5000         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
5002         [BZ #645]
5003         * locale/programs/ld-collate.c (collate_finish): Compare against last
5004         used section which is known to have rules defined.
5005         (collate_read): After order_start, correctly record order of sections
5006         and queue sections up.
5008 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
5010         [BZ #5071]
5011         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
5012         the same number of pages.
5013         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
5015         * locale/programs/ld-collate.c (collate_read): After initial copy
5016         statement, continue in state 0.
5018         * include/stdio_ext.h (__fsetlocking): Define as macro.
5020 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
5022         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
5023         of section order.
5025         * po/pt_BR.po: Fix typo.
5027 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
5029         * iconvdata/Makefile (modules): Add ISO8859-9E.
5030         (distribute): Add iso8859-9e.c.
5031         (gen-8bit-gap-modules): Add iso8859-9e.
5032         * iconvdata/iso8859-9e.c: New file.
5033         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
5034         * iconvdata/TESTS: Likewise.
5035         * iconvdata/tst-tables.sh: Likewise.
5037         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5039         * locale/iso-639.def: Add several new entries.
5041 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
5043         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
5044         void * pointers instead of struct link_map **.
5045         (_dl_scope_free): Change argument type to void *.
5046         * include/link.h (struct link_map): Change type of l_reldeps
5047         to struct link_map_reldeps, move l_reldepsact into that
5048         struct too.
5049         * elf/dl-deps.c: Include atomic.h.
5050         (_dl_map_object_deps): Only change l->l_initfini when it is
5051         fully populated, use _dl_scope_free for freeing it.  Optimize
5052         removal of libs from reldeps by using l_reserved flag, when
5053         some removal is needed, allocate a new list instead of
5054         reallocating and free the old with _dl_scope_free.  Adjust
5055         for l_reldeps and l_reldepsact changes.
5056         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
5057         searching in l_initfini and l_reldeps without holding dl_load_lock.
5058         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
5059         l_reldepsact changes.
5060         * elf/dl-close.c (_dl_close_worker): Likewise.
5061         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
5063 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
5065         * iconvdata/Makefile (modules): Add KOI8-RU.
5066         (distribute): Add koi8-ru.c.
5067         (gen-8bit-gap-modules): Add koi8-ru.
5068         * iconvdata/koi8-ru.c: New file.
5069         * iconvdata/gconv-modules: Add entries for KOI8-RU.
5070         * iconvdata/TESTS: Likewise.
5071         * iconvdata/tst-tables.sh: Likewise.
5073         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5075 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
5077         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
5078         with __warning__/__error__ attributes.
5079         (__warnattr): Define.
5080         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
5081         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
5082         __warnattr.
5083         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
5084         of __*_chk if compile time detectable overflow is found.
5085         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
5086         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
5087         with __warnattr.
5088         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
5089         instead of __*_chk if compile time detectable overflow is found.
5090         (__gets_alias): Rename to...
5091         (__gets_warn): ... this.  Add __warnattr.
5092         (gets): Call __gets_warn instead of __gets_alias.
5093         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
5094         aliases with __warnattr.
5095         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
5096         time detectable overflow is found.
5097         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
5098         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
5099         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
5100         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
5101         __getdomainname_chk_warn): New aliases with __warnattr.
5102         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
5103         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
5104         __*_chk_warn instead of __*_chk if compile time detectable overflow
5105         is found.
5106         (__getgroups_chk): Rename argument to __listlen from listlen.
5107         (__getwd_alias): Rename to...
5108         (__getwd_warn): ... this.  Add __warnattr.
5109         (getwd): Call __getwd_warn instead of __getwd_alias.
5110         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
5111         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
5112         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
5113         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
5114         __wcsnrtombs_chk_warn): New aliases with __warnattr.
5115         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
5116         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
5117         compile time detectable overflow is found.
5118         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
5119         to use __*_chk or not.
5120         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
5121         in comparisons which function should be called and in __*_chk*
5122         arguments.  Call __*_chk_warn instead of __*_chk if compile time
5123         detectable overflow is found.
5124         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
5125         __*_chk argument.
5126         * debug/tst-chk1.c (do_test): Add a few more tests.
5128 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
5130         [BZ #5058]
5131         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
5132         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
5133         (_nl_unload_domain): Finalize conversions_lock.
5134         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
5135         handling table of known conversions.
5137 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
5139         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
5140         close_not_cancel_no_status instead of close.
5142 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
5144         [BZ #5028]
5145         * posix/regcomp.c (lookup_collation_sequence_value): Check that
5146         nrules != 0 for multibyte chars.
5148 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
5150         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
5151         Provide better error message in case the type is unknown.
5153         [BZ #4963]
5154         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
5155         * string/stratcliff.c: Make usable to test wide char functions.
5156         * wcsmbs/wcsatcliff.c: New file.
5157         * wcsmbs/Makefiel (tests): Add wcsatcliff.
5159         [BZ #4972]
5160         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
5161         (distribute): Add mac-centraleurope.c.
5162         (gen-8bit-gap-modules): Add mac-centraleurope.
5163         * iconvdata/mac-centraleurope.c: New file.
5164         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
5165         * iconvdata/TESTS: Likewise.
5166         * iconvdata/tst-tables.sh: Likewise.
5168         [BZ #5043]
5169         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
5171 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
5173         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
5174         from __x86_64_core_cache_size_half.
5175         (init_cacheinfo): Compute shared cache size for AMD processors with
5176         shared L3 correctly.
5177         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
5178         name change.
5179         Patch in large parts by Evandro Menezes.
5181 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
5183         * elf/dl-lookup.c (add_dependency): Handle failing memory
5184         allocation for dependency list.  Remove unnecessary check.
5186         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
5187         open/close when determining source addresses.
5189         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
5190         sha512-crypt, and sha512.
5191         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
5192         (distribute): Add sha256.h and sha512.h.
5193         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
5194         and call the appropriate code.
5195         * crypt/sha256-crypt.c: New file.
5196         * crypt/sha256.c: New file.
5197         * crypt/sha256.h: New file.
5198         * crypt/sha256c-test.c: New file.
5199         * crypt/sha256test.c: New file.
5200         * crypt/sha512-crypt.c: New file.
5201         * crypt/sha512.c: New file.
5202         * crypt/sha512.h: New file.
5203         * crypt/sha512c-test.c: New file.
5204         * crypt/sha512test.c: New file.
5206 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
5208         * misc/bits/syslog.h (syslog): Remove extraneous argument from
5209         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
5210         __syslog_chk.
5212 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
5214         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
5215         %as in fscanf format strings.
5217         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
5218         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
5219         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
5220         Likewise.
5221         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
5222         Likewise.
5224         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
5225         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
5226         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
5227         * elf/dl-sym.c (do_sym): Likewise.
5228         * include/link.h (struct link_map): Add l_serial field.
5229         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
5230         * elf/dl-lookup.c (add_dependency): Add flags argument.
5231         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
5232         flags, use THREAD_GSCOPE_RESET_FLAG before and
5233         THREAD_GSCOPE_SET_FLAG after
5234         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
5235         Don't dereference map until it has been found on some list.
5236         If map->l_serial changed, return -1.
5238 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
5240         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
5241         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
5242         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
5243         libc_hidden_proto.
5244         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
5245         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
5246         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
5247         add libc_hidden_proto.
5248         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5249         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5250         conformance requested.
5251         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
5252         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5253         conformance requested.
5254         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5255         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
5256         conformance requested.
5257         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
5258         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
5259         ISO C99 or POSIX conformance requested.
5260         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
5261         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
5262         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
5263         and __isoc99_vsscanf@@GLIBC_2.7.
5264         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
5265         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
5266         (tests): Add scanf14.
5267         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
5268         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
5269         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
5270         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
5271         CFLAGS-isoc99_scanf.c): Add $(exceptions).
5272         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
5273         from using internal headers.
5274         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
5275         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
5276         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
5277         and __isoc99_vswscanf@@GLIBC_2.7.
5278         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
5279         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
5280         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
5281         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
5282         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
5283         * stdio-common/isoc99_scanf.c: New file.
5284         * stdio-common/isoc99_vsscanf.c: New file.
5285         * stdio-common/isoc99_vscanf.c: New file.
5286         * stdio-common/isoc99_vfscanf.c: New file.
5287         * stdio-common/isoc99_fscanf.c: New file.
5288         * stdio-common/isoc99_sscanf.c: New file.
5289         * wcsmbs/isoc99_fwscanf.c: New file.
5290         * wcsmbs/isoc99_vswscanf.c: New file.
5291         * wcsmbs/isoc99_swscanf.c: New file.
5292         * wcsmbs/isoc99_wscanf.c: New file.
5293         * wcsmbs/isoc99_vwscanf.c: New file.
5294         * wcsmbs/isoc99_vfwscanf.c: New file.
5295         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
5296         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
5297         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
5298         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
5299         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
5300         * stdio-common/scanf14.c: New test.
5301         * stdio-common/scanf15.c: New test.
5302         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
5303         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
5304         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
5305         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
5306         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
5307         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
5308         __nldbl___isoc99_scanf@@GLIBC_2.7,
5309         __nldbl___isoc99_fscanf@@GLIBC_2.7,
5310         __nldbl___isoc99_sscanf@@GLIBC_2.7,
5311         __nldbl___isoc99_vscanf@@GLIBC_2.7,
5312         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
5313         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
5314         __nldbl___isoc99_wscanf@@GLIBC_2.7,
5315         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
5316         __nldbl___isoc99_swscanf@@GLIBC_2.7,
5317         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
5318         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
5319         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
5320         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
5321         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
5322         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
5323         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
5324         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
5325         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5326         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
5327         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
5328         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
5329         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
5330         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
5331         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
5332         functions.
5333         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
5334         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
5335         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
5336         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
5337         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
5338         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
5339         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
5340         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
5341         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
5342         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
5343         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
5344         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
5346         * stdio-common/Makefile (tests): Add scanf13.
5347         (scanf13-ENV): New.
5348         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
5349         m modifier followed by l.
5350         (STRING_ARG): Add width argument.
5351         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
5352         <case L_('C')>: Handle %mlc and %mC.
5353         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
5354         arguments.
5355         * stdio-common/scanf13.c: New test.
5357         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
5358         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
5360 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
5362         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
5363         type and __THROW marker of splice, vmsplice, and tee.
5364         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5365         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5366         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5367         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5368         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5369         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5370         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5371         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
5372         as cancellation points.
5374 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
5376         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
5377         parse more than three parts of the version number.
5379 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
5381         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
5382         modifier.  Patch by Jakub Jelinek.
5384 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
5386         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
5387         call_fallocate in misc subdir.
5388         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
5389         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
5390         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
5391         instead of __fallocate64.
5392         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
5394 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
5396         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
5397         * rt/Makefile (headers): Add bits/mqueue2.h.
5398         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
5399         optimizing with GCC and __va_arg_pack_len is defined.
5400         * rt/bits/mqueue2.h: New file.
5401         * rt/mq_open.c (__mq_open): Renamed from mq_open.
5402         (mq_open): New strong_alias.
5403         (__mq_open_2): New function.
5404         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
5405         (mq_open): New strong_alias.
5406         (__mq_open_2): New function.
5407         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
5408         * Versions.def (librt): Add GLIBC_2.7 version.
5409         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
5410         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
5412         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
5413         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
5414         is defined rather than when not C++.
5415         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
5416         __openat64_alias): New redirects.
5417         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
5418         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
5419         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
5420         (open, open64, openat, openat64): Rewrite as __extern_always_inline
5421         functions instead of function-like macros.
5423 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
5425         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
5426         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
5427         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
5429 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
5431         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
5432         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
5434 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
5436         * inet/tst-network.c: Increment ERRORS for failing tests.
5438 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
5440         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
5441         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
5442         implement as __extern_always_inline function.
5443         (vsyslog): Define as __extern_always_inline function unconditionally.
5444         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
5445         When __va_arg_pack is defined, implement as __extern_always_inline
5446         functions.
5447         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5448         __extern_always_inline functions unconditionally.
5449         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
5450         bits/stdio2.h will be included.
5451         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
5452         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
5453         implement as __extern_always_inline functions.
5454         (vswprintf, vwprintf, vfwprintf): Define as
5455         __extern_always_inline functions unconditionally.
5456         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
5458 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
5460         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
5461         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
5462         attribute.
5463         * include/features.h (__USE_EXTERN_INLINES): Define only when
5464         __extern_inline is defined.
5465         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
5466         is defined instead of when not __cplusplus.
5467         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
5468         is defined instead of when not __cplusplus.
5469         * socket/sys/socket.h: Include bits/socket2.h when
5470         __extern_always_inline is defined instead of when not __cplusplus.
5471         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
5472         is defined instead of when not __cplusplus.
5473         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
5474         is defined instead of when not __cplusplus.
5475         * string/string.h: Include bits/string3.h when __extern_always_inline
5476         is defined instead of when not __cplusplus.
5477         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
5478         is defined instead of when not __cplusplus.
5479         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
5480         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
5481         is not defined.
5482         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
5483         defined __extern_always_inline instead of !defined __cplusplus.
5484         * libio/bits/stdio-ldbl.h: Likewise.
5485         * wcsmbs/bits/wchar-ldbl.h: Likewise.
5486         * misc/bits/syslog.h (syslog): Don't define for C++.
5487         (vsyslog): Use __extern_always_inline function for C++ instead of
5488         a macro.
5489         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
5490         whenever that macro is defined.
5491         (vprintf): Don't provide the inline for C++.
5492         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
5493         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
5494         define the macros for C++.
5495         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5496         __extern_always_inline functions for C++.
5497         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
5498         stat64, lstat64, fstat64, fstatat64): Don't define if not
5499         __USE_EXTERN_INLINES.
5500         * wcsmbs/bits/wchar2.h: Fix #error message.
5501         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
5502         (vswprintf, vwprintf, vfwprintf): Define using
5503         __extern_always_inline functions for C++.
5504         * string/bits/string3.h: Don't #undef macros if __cplusplus.
5505         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
5506         strncpy, strcat, strncat): Define as __extern_always_inline
5507         functions instead of macros for C++.
5508         * math/bits/cmathcalls.h: Guard __extern_inline routines with
5509         defined __extern_inline.
5510         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
5511         to __extern_inline whenever that macro is defined.
5512         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5513         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5514         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
5515         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
5516         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5517         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5518         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5519         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5520         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
5521         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
5522         prototypes.  Only provide __extern_inline routines if
5523         __USE_EXTERN_INLINES.
5524         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
5525         tests.
5526         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
5527         For now avoid some *printf tests in C++.  Skip all testing
5528         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
5529         is not.
5530         * debug/tst-chk4.cc: New file.
5531         * debug/tst-chk5.cc: New file.
5532         * debug/tst-chk6.cc: New file.
5533         * debug/tst-lfschk4.cc: New file.
5534         * debug/tst-lfschk5.cc: New file.
5535         * debug/tst-lfschk6.cc: New file.
5536         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
5537         prototypes in C++.
5538         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
5539         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
5540         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
5542 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
5544         * po/cs.po: Update from translation team.
5546 2007-09-11  Roland McGrath  <roland@redhat.com>
5548         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
5549         compiling.
5551 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5553         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
5555 2007-09-05  Roland McGrath  <roland@redhat.com>
5557         * manual/signal.texi (Signaling Another Process): Typo fix.
5558         From Karl Berry <karl@freefriends.org>.
5560 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
5562         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
5563         zero if not defined.
5564         (make_request): Recognize optimistic addresses and treat them like
5565         deprecated addresses.
5566         Reported by Neil Horman <nhorman@redhat.com>.
5568 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
5570         * nscd/connections.c (send_ro_fd): Also transfer file size.
5571         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
5572         file size don't call fstat.
5574         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
5575         ahead and map the file.  This should always be correct and we can
5576         catch problems later.
5578 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
5580         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
5581         prototypes.
5582         (__fread_alias, __fread_unlocked_alias): New aliases.
5583         (fread): New extern inline.
5584         (fread_unlocked): Likewise.  Undef macro before definition of
5585         the inline function.
5586         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
5587         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
5588         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
5589         and __fread_unlocked_chk@@GLIBC_2.7.
5590         * debug/fread_chk.c: New file.
5591         * debug/fread_u_chk.c: New file.
5592         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
5594 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
5596         * sysdeps/unix/sysv/linux/syscalls.list
5597         (personality): Change caller to EXTRA.
5599 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
5601         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
5602         to keep gcc quiet.
5603         * iconvdata/iso-2022-cn.c (BODY): Likewise.
5605         * locale/programs/ld-collate.c (collate_output): Avoid warning if
5606         NDEBUG is defined.
5608         * Makerules: Use -p option with mkdir.
5610         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
5611         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
5612         (_xdr_directory_obj): Likewise.
5613         (xdr_entry_obj): Likewise.
5614         (xdr_group_obj): Likewise.
5615         (xdr_link_obj): Likewise.
5616         (xdr_table_obj): Likewise.
5617         (_xdr_nis_result): Likewise.
5618         (_xdr_ns_request): Likewise.
5619         (_xdr_ib_request): Likewise.
5620         (_xdr_nis_taglist): Likewise.
5621         (xdr_cback_data): Likewise.
5622         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
5623         (xdr_ypresp_maplist): Likewise.
5625         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
5627         * posix/regex_internal.h: Prevent some declarations and definitions
5628         to be seen when used in tests.
5630         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
5631         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
5633         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
5635         * config.make.in (datarootdir): Add to shut up configure.
5637         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
5638         associativity for fully-associative caches.
5640         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
5641         requests.  Fill on more associativity values for L2.
5642         Patch mostly by Evandro Menezes.
5644 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
5646         * sysdeps/unix/sysv/linux/x86_64/init-first.c
5647         (_libc_vdso_platform_setup): Avoid using exported variable by using
5648         alias.
5650         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
5652         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
5653         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
5654         defined.
5656 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
5658         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
5659         align stack for call if pltexit is to be used.
5661         [BZ #3924]
5662         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
5663         align for function call in case pltexit has to be called later.
5665         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
5666         implicit atomic operation when storing function pointer.
5667         (_dl_runtime_profile): Likewise.
5669 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
5671         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
5672         NIS_NOTFOUND.
5674 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
5676         [BZ #4566]
5677         * string/strtok.c: Fix typo in comment.
5679         [BZ #4582]
5680         * debug/segfault.c: Fix typos in comments.
5682         [BZ #4588]
5683         * stdio-common/tempnam.c: Fix comment, it is not checked that
5684         TMPDIR points to a writable directory.
5686         [BZ #4726]
5687         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
5688         memory allocated for the name server address.
5690         [BZ #4946]
5691         * nscd/connections.c (handle_request): Using sendfile always
5692         requires that mmap is used for the database.
5693         Patch by Petr Baudis <pasky@suse.cz>.
5695         [BZ #4905]
5696         * nscd/hstcache.c (cache_addhst): When reloading an entry which
5697         suddenly has two or more addresses, ignore it and remove the old
5698         entry.
5700         [BZ #4814]
5701         * resolv/res_hconf.c: Prepare for compiling outside libc.
5702         * nscd/res_hconf.c: New file.
5703         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
5704         the new file.
5705         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
5706         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
5708         * nscd/hstcache.c (cache_addhst): Minimal optimization.
5710         [BZ #4925]
5711         * debug/pcprofiledump.c: Turn on internationalization by calling
5712         setlocale.  Patch mostly by Benno Schulenberg.
5714         [BZ #4936]
5715         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
5716         the state.
5717         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
5718         * iconvdata/bug-iconv5.c: New file.
5720 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
5722         [BZ #4896]
5723         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
5724         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
5725         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
5726         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
5727         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
5728         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
5729         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
5730         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
5732 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
5734         [BZ #4937]
5735         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
5736         lookup loop.  Suggested by John Reiser.
5738 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
5740         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
5742 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
5744         * csu/libc-start.c: Don't handle VDSO_SETUP here.
5745         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
5746         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
5747         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
5748         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
5749         to...
5750         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
5752 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
5754         * po/nl.po: Update from translation team.
5756 2007-08-16  Andreas Jaeger  <aj@suse.de>
5758         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
5759         Reported by Peter Festner <peter.festner@ewetel.net>.
5761 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
5763         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
5765 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
5767         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
5768         to check for undefined symbols.
5770         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
5771         If the syscall fails, set errno to the actual returned error number
5772         rather than EINVAL.
5773         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
5774         arguments are incorrect, set errno to EINVAL, if the syscall
5775         fails, set errno to the actual returned error number.
5777         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
5778         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
5780         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
5781         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
5782         file.
5783         (ASI_PNF, ASI_BLK_P): Don't define.
5784         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
5785         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
5786         file.
5787         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
5788         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
5789         file.
5791 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
5793         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
5794         FE_UNDERFLOW on Niagara CPUs.
5796         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
5797         exceptions.
5799 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
5801         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
5802         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
5803         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
5804         flush should be used or not inside of the function.
5805         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
5807         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
5808         __thread_start): Use HIDDEN_JUMPTARGET.
5809         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
5810         __thread_start): Likewise.
5811         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
5813         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
5814         Add libc_hidden_proto.
5815         (STRTOF): Add libc_hidden_proto.
5816         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
5817         (strtold_l, wcstold_l): Use them as second argument for
5818         long_double_symbol.
5820 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
5822         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
5824 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5826         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
5828 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
5830         * po/bg.po: New file.  From the translation team.
5832 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
5834         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
5835         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
5836         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
5837         when each feature was introduced.
5839         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
5840         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
5841         (CHECK_HASH): New macro.
5842         (PREPARE_VERSION): Use it.
5844         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
5845         prototype if not __ASSUME_PSELECT.
5846         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
5847         prototype if not __ASSUME_PPOLL.
5849         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
5851         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
5852         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
5853         is defined.
5855 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
5857         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
5858         (_libc_vdso_platform_setup): If vDSO is not available point
5859         __vdso_gettimeofday to the vsyscall.
5860         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
5861         __vdso_gettimeofday instead of vsyscall.
5863 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
5865         * nscd/servicescache.c: Include kernel-features.h.
5866         * nscd/gai.c: Likewise.
5867         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
5868         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
5869         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
5870         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
5871         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
5872         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
5873         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
5874         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
5875         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
5877 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
5879         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
5880         and _dl_get_origin defines anymore.
5882         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
5883         Build fix for systems which might lack POSIX timer support.
5885         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
5886         (_libc_vdso_platform_setup): Mangle function pointers before storing
5887         them.
5888         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
5889         Demangle vdso pointer before use.
5890         (INTERNAL_VSYSCALL): Likewise.
5892         * elf/cache.c (primes): Mark as const.
5893         Noted by Roland McGrath.
5895 2007-08-01  Andreas Jaeger  <aj@suse.de>
5896             Jakub Jelinek  <jakub@redhat.com>
5898         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
5899         (options): Add option.
5900         (parse_opt): Handle option.
5901         (manual_link): Adjust process_file caller.  Call implicit_soname.
5902         (search_dir): Formatting.  Use and populate auxiliary cache.
5903         (main): Load and save auxiliary cache.
5904         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
5905         stat64 from fstat64 to caller.
5906         (implicit_soname): New function.
5907         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
5908         leave *soname as NULL.
5909         * elf/cache.c: Include libgen.h.
5910         (print_entry, print_cache, compare, save_cache, add_to_cache):
5911         Formatting and cleanups.
5912         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
5913         aux_cache_file): New structures.
5914         (AUX_CACHEMAGIC): Define.
5915         (primes): New array.
5916         (aux_hash_size, aux_hash): New variables.
5917         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
5918         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
5919         load_aux_cache, save_aux_cache): New functions.
5920         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
5921         (init_aux_cache, search_aux_cache, add_to_aux_cache,
5922         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
5923         (process_file): Adjust prototype.
5925 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
5927         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
5928         with __need_size_t.
5930 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
5932         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
5933         r_found_version structure as second parameter.
5934         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
5935         (_dl_vdso_vsym): Change type of second parameter accordingly.
5936         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
5937         (_libc_vdso_platform_setup): Adjust.
5938         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
5939         (_libc_vdso_platform_setup): Likewise.
5941         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
5942         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
5943         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
5944         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
5945         * csu/libc-start.c: Pretty printing.
5946         Use VDSO_SETUP if defined.
5947         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
5948         and let generic code call into _libc_vdso_platform_setup.
5949         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
5950         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
5951         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
5952         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
5953         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
5954         for GLIBC_PRIVATE.
5955         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
5956         (sysdep_rountines): Add dl-vdso.
5958         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
5959         of routines.
5961         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
5962         attribute_hidden to __vdso_gettimeofday prototype.
5964 2007-08-12  Roland McGrath  <roland@redhat.com>
5966         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
5967         From: Karl Berry <karl@freefriends.org>.
5969 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
5971         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
5972         an atime update for the files we read.
5974 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
5976         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
5978         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
5979         instead of mkstemp.
5981         * misc/Makefile (routines): Add mkostemp and mkostemp64.
5982         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
5983         * misc/mkostemp.c: New file.
5984         * misc/mkostemp64.c: New file.
5985         * stdlib/stdlib.h: Declare the new functions.
5986         * sysdeps/posix/tempname.c: Add new parameter which is added to
5987         the flags for open.  Remove __GT_BIGFILE handling.
5988         * stdio-common/tempname.c: Likewise.
5989         * include/stdio.h: Adjust __gen_tempname prototype.
5990         Renumber __GT_* constants.
5991         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
5992         * misc/mkdtemp.c: Likewise.
5993         * misc/mkstemp.c: Likewise.
5994         * misc/mkstemp64.c: Likewise.
5995         * misc/mktemp.c: Likewise.
5996         * stdio-common/tempnam.c: Likewise.
5997         * stdio-common/tmpfile.c: Likewise.
5998         * stdio-common/tmpfile64.c: Likewise.
5999         * stdio-common/tmpnam.c: Likewise.
6000         * stdio-common/tmpnam_r.c: Likewise.
6002 2007-08-10  Roland McGrath  <roland@frob.com>
6004         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
6005         New macros.
6006         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
6007         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6009 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
6011         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
6012         possible.
6013         * nss/nss_files/files-alias.c (internal_setent): Likewise.
6014         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
6015         * nss/nss_files/files-have_o_cloexec.c: New file.
6017         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
6018         available.
6020 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
6022         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
6023         ___new_wcstold_l): New weak aliases.
6024         (strtold_l, wcstold_l): Use them as second argument for
6025         long_double_symbol.
6027 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
6029         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
6030         register in test for error.
6032         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
6033         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
6035         * po/sv.po: Update from translation team.
6037 2007-08-06  Roland McGrath  <roland@redhat.com>
6039         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
6040         Remove __strto*_l inlines.
6041         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
6042         * stdlib/strtod.c: Add libc_hidden_def.
6043         * stdlib/strtod_l.c: Likewise.
6044         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
6045         for __new_strtold and __new_wcstold.
6046         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
6047         __STRTOF, STRTOF.
6048         * stdlib/strtol.c: Add libc_hidden_def.
6049         * stdlib/strtol_l.c: Likewise.
6050         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
6051         strtoq.
6053         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
6055         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
6056         * scripts/data/localplt-generic.data: ... here.
6057         * elf/Makefile (check-data): Get generic file if no other.
6058         ($(objpfx)check-localplt.out): Make target unconditional.
6060         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
6061         Use ElfW(Nhdr).
6063 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
6065         * po/zh_CN.po: Updated translation from translation team.
6067 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
6069         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
6070         Don't use CGOTSETUP and CGOTRESTORE macros.
6072 2007-08-04  Roland McGrath  <roland@redhat.com>
6074         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
6076 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
6078         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
6079         __extension__ around the whole statement expression.
6081 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
6083         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
6084         elements during initialization.
6086         * po/pl.po: Updated translation from translation team.
6087         * po/tr.po: Likewise.
6088         * po/nl.po: Likewise.
6090 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
6092         * rt/aio.h: Add __nonnull attributes.
6094 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
6096         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
6097         * stdlib/Makefile (tests): Add tst-strtod5.
6098         (tst-strtod5-ENV): New.
6099         * stdlib/tst-strtod5.c: New file.
6101         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
6102         failed.
6103         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
6104         on failure.
6106         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
6107         allocated.
6109 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
6111         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
6112         numbers.
6114 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
6116         * io/Makefile (aux): Add have_o_cloexec.
6117         * include/fcntl.h: Declare __have_o_cloexec.
6118         * io/have_o_cloexec.c: New file.
6119         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
6120         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
6121         fcntl call if not necessary.
6122         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
6123         of local variable.
6125         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
6126         Avoid memset, add explicit initialization.
6127         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
6128         to the end and change into zero-sized array.
6129         Move lock member to fill a hole on 64-bit platforms.
6131         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
6132         inline functions.
6133         * include/stdlib.h: Add __strto*_internal prototypes here.
6134         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
6135         inline functions.
6136         * include/wchar.h: Add __wcsto*_internal prototypes.
6137         * sysdeps/generic/inttypes.h: No need to protect the declaration
6138         of the __strto*_internal and __wcsto*_internal members here.
6140         * rt/mqueue.h: Change const to __const and add nonnull attributes.
6142 2007-08-02  Roland McGrath  <roland@redhat.com>
6144         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
6145         $(inst_bindir)/getconf if possible.
6147         * posix/Makefile ($(objpfx)getconf.speclist): New target.
6148         (generated): Add it.
6149         ($(inst_libexecdir)/getconf): Use it.
6151 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
6153         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
6154         /proc is faster and sufficient.  /sys is still needed for
6155         __get_nprocs_conf.
6157 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
6159         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
6160         syscall as __fallocate64.
6161         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
6162         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
6164 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
6166         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
6167         value.
6169         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
6170         if off_t is different rank from size_t.
6172         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
6173         uw_frame_state_for): Avoid type punning warnings.
6174         * sysdeps/generic/unwind-dw2-fde-glibc.c
6175         (_Unwind_IteratePhdrCallback): Likewise.
6176         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
6177         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
6178         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
6179         pointers.
6181 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
6183         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
6184         total processors using sysfs.
6185         (__get_nprocs): Use sysfs to determine which processors are online.
6187 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
6189         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
6190         syscall arguments count.
6192         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
6194 2007-07-30  Roland McGrath  <roland@redhat.com>
6196         * manual/libc.texinfo: Update copyrights, formatting magic, and
6197         @dircategory.  From Karl Berry <karl@freefriends.org>.
6199 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
6201         [BZ #4860]
6202         * io/Makefile (headers): Add bits/fcntl2.h.
6204         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
6205         using gcc builtin.
6206         (__CPU_EQUAL_S): Likewise.
6208         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
6209         (tests): Add tst-cpuset.
6210         * posix/sched_cpualloc.c: New file.
6211         * posix/sched_cpufree.c: New file.
6212         * posix/tst-cpuset.c: New file.
6213         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
6214         GLIBC_2.7.
6215         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
6216         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
6217         macros.  Define CPU_*_S macros.
6219 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
6221         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
6222         entry.
6224         [BZ #4858]
6225         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
6226         #.0g and value rounded to 1.0.
6227         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
6229 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
6231         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
6232         for int_frac_digits and frac_digits.
6234         * login/logout.c (logout): Avoid aliasing violation.
6235         * login/logwtmp.c (logwtmp): Likewise.
6237         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
6239         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
6240         to avoid warning.
6241         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
6242         warning.
6243         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
6244         warning.
6245         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
6246         to avoid warnings.
6248         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
6249         void **.
6250         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
6252         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
6253         char * to avoid warning.
6254         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
6256         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
6258         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
6259         allocate_arrays): Cast second argument to charmap_find_symbol
6260         to char * to avoid warnings.
6262         * locale/programs/repertoire.c (repertoire_new_char): Change
6263         from_nr, to_nr and cnt to unsigned long, adjust printf format
6264         string.
6266         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
6267         Cast second argument to new_element to char * to avoid warnings.
6269         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
6271         * intl/gettextP.h (struct loaded_domain): Change plural to const
6272         struct expression *.
6273         * intl/plural-eval.c (plural_eval): Change first argument to
6274         const struct expression *.
6275         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
6276         argument to const struct expression **.
6277         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
6278         prototypes.
6279         * intl/loadmsgcat (_nl_unload_domain): Cast away const
6280         in call to __gettext_free_exp.
6282         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
6283         unitialized wstring/wpattern var warnings.
6285         * posix/runtests.c (struct a_test): Make data field const char *.
6287         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
6288         vars if not LDBL_MANT_DIG >= 106.
6290         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
6292         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
6293         __find_specmb to avoid warning.
6295         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
6297         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
6298         to avoid warnings.
6300         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
6301         initializer.
6303         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
6304         tv var when it will be actually used.
6306         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
6307         to avoid warnings.
6309         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
6310         char array resp. pointer.
6311         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
6312         char array.
6313         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
6314         to const unsigned char **.
6315         (ucs4_to_cns11643): Change second argument to unsigned char *.
6316         * iconvdata/euc-tw.c (BODY): Change endp type to
6317         const unsigned char *.
6318         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
6319         to unsigned char *.
6320         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
6321         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
6322         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
6323         types to unsigned char pointers/arrays instead of char.
6324         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
6325         to unsigned char *.
6326         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
6327         * iconvdata/jis0212.h: Include assert.h.
6328         (ucs4_to_jisx0212): Change second argument to unsigned char *.
6329         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
6330         of trying to handle that.
6331         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
6332         shut up a warning.
6333         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
6334         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
6335         two dimensional const unsigned char arrays.
6336         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
6337         Initialize endp to inptr to shut up a warning.
6339 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
6341         [BZ #4772]
6342         * time/strptime_l.c (__strptime_internal): Silently ignore
6343         strftime modifiers and field width in recursive calls.
6345         * include/time.h (enum ptime_locale_status): Remove.
6346         (__strptime_internal): Remove decided and era_cnt arguments,
6347         add statep argument.
6348         * time/strptime_l.c (__strptime_internal): Remove decided
6349         and era_cnt arguments, add statep argument.  Don't recompute
6350         any fields in recursive calls, only update caller's tm
6351         and state, if recursive call fails, don't change tm nor
6352         any state.
6353         (get_alt_number): Adjust.
6354         (recursive): Adjust caller.
6355         (strptime): Likewise.
6356         * time/strptime.c (strptime): Likewise.
6358 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
6360         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
6361         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
6362         if from and to charsets are the same.
6363         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
6364         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
6365         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
6367 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
6369         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
6370         Don't define wint_t when __need_mbstate_t unless it
6371         is necessary.
6372         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
6373         in the typedef if possible.
6374         * wctype/wctype.h (wint_t): Define by including
6375         wchar.h with __need_wint_t instead of including stddef.h
6376         with __need_wint_t and as fallback definining it ourselves.
6377         * iconv/gconv.h (__need_wint_t): Define before including
6378         wchar.h.
6379         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
6380         or _GLIBCPP_USE_WCHAR_T.
6381         (__need_wchar_t): Don't define
6382         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6383         (__need_wint_t): Don't define before including stddef.h,
6384         define before including wchar.h only if _LIBC or
6385         _GLIBCPP_USE_WCHAR_T.
6386         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6387         * sysdeps/mach/hurd/_G_config.h: Likewise.
6388         * sysdeps/generic/_G_config.h: Likewise.
6389         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
6390         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
6391         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
6392         if _LIBC or _GLIBCPP_USE_WCHAR_T.
6394 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
6396         * sysdeps/posix/posix_fallocate64.c: Undefine
6397         __posix_fallocate64_l64 before alias handling.
6398         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
6399         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
6400         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
6401         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
6403         * io/tst-posix_fallocate.c: Include <fcntl.h>.
6405 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
6407         * locale/programs/ld-collate.c (atwc): New variable.
6408         (add_to_tablewc): New toplevel function, moved from collate_output.
6409         (collate_output): Remove add_to_tablewc nested function.
6411         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
6412         (name_insert): New function.
6413         (write_output): Remove hash_table and hash_size vars and name_insert
6414         nested function.
6416 2007-07-24  Roland McGrath  <roland@redhat.com>
6418         * Makerules (install-others-programs-nosubdir): New target.
6419         (install-no-libc.a-nosubdir): Depend on it.
6421         * iconv/Makefile (install-others-programs): Set this instead of
6422         install-others.
6423         * login/Makefile (install-others-programs): Likewise.
6424         * posix/Makefile (install-others-programs): Likewise.
6426         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
6427         dependencies.
6429 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
6431         * io/Makefile (tests): Add tst-posix_fallocate.
6432         * io/tst-posix_fallocate.c: New file.
6434         * sysdeps/unix/sysv/linux/kernel-features.h: Define
6435         __ASSUME_FALLOCATE.
6437 2007-07-22  Roland McGrath  <roland@frob.com>
6439         * hurd/getdport.c: Add missing copyright year update.
6441         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
6442         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
6444 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
6446         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
6448         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
6449         O_CLOEXEC is needed.
6450         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
6451         Avoid additional fcntl to set O_CLOEXEC if not needed.
6452         * nis/nss_compat/compat-initgroups.c: Likewise.
6453         * nis/nss_compat/compat-pwd.c: Likewise.
6454         * nis/nss_compat/compat-spwd.c: Likewise.
6456 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6458         [BZ #3665]
6459         * manual/errno.texi: Change ECANCELED value to 119.
6461         [BZ #4610]
6462         * mach/lock-intern.h: Include <sys/cdefs.h>.
6464         [BZ #4178]
6465         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
6466         reading A.
6468         [BZ #4126]
6469         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
6470         to __sigsuspend.
6472         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
6474 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
6476         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
6477         `__ASSEMBLER__'.
6478         * sysdeps/mach/hurd/i386/tls.h: Likewise.
6480 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
6482         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
6483         descriptor received from nscd.
6485         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
6487         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
6488         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6489         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6490         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6491         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6492         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6494 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
6496         [BZ #4816]
6497         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
6499         [BZ #4813]
6500         * login/forkpty.c (forkpty): Close master and slave fds on
6501         fork failure.  Patch by
6502         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
6504 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
6506         * include/features.h (__USE_ISOC95): New define.
6507         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
6508         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
6509         for -std=iso9899:199409.
6510         * CONFORMANCE: Remove comments about unsupported AMD1.
6512 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
6514         * sysdeps/ia64/sched_cpucount.c: New file.
6515         * sysdeps/powerpc/sched_cpucount.c: New file.
6517         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
6518         __BEGIN_DECLS/__END_DECLS around the prototype.
6519         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
6520         pointer to const cpu_set_t.
6522         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
6523         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
6524         __need_size_t and include stddef.h.
6525         * sysvipc/sys/msg.h: Likewise.
6526         * posix/sched.h: Likewise.
6527         * hurd/hurd/signal.h (__need_size_t): Define.
6529         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
6530         neither does signal.h in pedantic ISO C namespaces.  stdio.h
6531         no longer defines wint_t or wchar_t.
6533         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
6534         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
6535         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
6536         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
6537         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
6538         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
6539         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
6540         * debug/printf_chk.c (__printf_chk): Likewise.
6541         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
6542         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
6544         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
6545         Define.
6547         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
6548         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
6550 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
6552         [BZ #4792]
6553         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
6554         * malloc/malloc.h (realloc): Likewise.
6556         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
6557         if one of proc_file_chain streams has that fileno.
6558         * stdio-common/Makefile (tests): Add tst-popen2.
6559         * stdio-common/tst-popen2.c: New test.
6561 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
6563         * elf/ldconfig.c: Allow GPLv2 or any later version.
6564         * elf/readlib.c: Likewise.
6565         * elf/chroot_canon.c: Likewise.
6566         * elf/cache.c: Likewise.
6567         * nscd/mem.c: Likewise.
6568         * nscd/getpwuid_r.c: Likewise.
6569         * nscd/grpcache.c: Likewise.
6570         * nscd/aicache.c: Likewise.
6571         * nscd/getsrvbynm_r.c: Likewise.
6572         * nscd/nscd.c: Likewise.
6573         * nscd/servicescache.c: Likewise.
6574         * nscd/getsrvbypt_r.c: Likewise.
6575         * nscd/initgrcache.c: Likewise.
6576         * nscd/gethstbyad_r.c: Likewise.
6577         * nscd/gethstbynm2_r.c: Likewise.
6578         * nscd/getgrnam_r.c: Likewise.
6579         * nscd/nscd_setup_thread.c: Likewise.
6580         * nscd/getpwnam_r.c: Likewise.
6581         * nscd/gai.c: Likewise.
6582         * nscd/connections.c: Likewise.
6583         * nscd/dbg_log.c: Likewise.
6584         * nscd/cache.c: Likewise.
6585         * nscd/hstcache.c: Likewise.
6586         * nscd/nscd_conf.c: Likewise.
6587         * nscd/getgrgid_r.c: Likewise.
6588         * nscd/pwdcache.c: Likewise.
6589         * catgets/gencat.c: Likewise.
6590         * locale/programs/linereader.h: Likewise.
6591         * locale/programs/locarchive.c: Likewise.
6592         * locale/programs/ld-paper.c: Likewise.
6593         * locale/programs/locfile-kw.h: Likewise.
6594         * locale/programs/ld-address.c: Likewise.
6595         * locale/programs/xmalloc.c: Likewise.
6596         * locale/programs/ld-time.c: Likewise.
6597         * locale/programs/localedef.c: Likewise.
6598         * locale/programs/simple-hash.c: Likewise.
6599         * locale/programs/xstrdup.c: Likewise.
6600         * locale/programs/ld-numeric.c: Likewise.
6601         * locale/programs/locfile-kw.gperf: Likewise.
6602         * locale/programs/ld-collate.c: Likewise.
6603         * locale/programs/charmap-kw.gperf: Likewise.
6604         * locale/programs/charmap.h: Likewise.
6605         * locale/programs/charmap-kw.h: Likewise.
6606         * locale/programs/config.h: Likewise.
6607         * locale/programs/locfile.c: Likewise.
6608         * locale/programs/ld-ctype.c: Likewise.
6609         * locale/programs/charmap.c: Likewise.
6610         * locale/programs/ld-messages.c: Likewise.
6611         * locale/programs/repertoire.h: Likewise.
6612         * locale/programs/locale.c: Likewise.
6613         * locale/programs/ld-name.c: Likewise.
6614         * locale/programs/linereader.c: Likewise.
6615         * locale/programs/locfile.h: Likewise.
6616         * locale/programs/3level.h: Likewise.
6617         * locale/programs/ld-monetary.c: Likewise.
6618         * locale/programs/ld-measurement.c: Likewise.
6619         * locale/programs/charmap-dir.c: Likewise.
6620         * locale/programs/ld-identification.c: Likewise.
6621         * locale/programs/localedef.h: Likewise.
6622         * locale/programs/charmap-dir.h: Likewise.
6623         * locale/programs/repertoire.c: Likewise.
6624         * locale/programs/simple-hash.h: Likewise.
6625         * locale/programs/ld-telephone.c: Likewise.
6626         * locale/programs/locale-spec.c: Likewise.
6627         * locale/programs/locfile-token.h: Likewise.
6628         * posix/getconf.c: Likewise.
6629         * iconv/dummy-repertoire.c: Likewise.
6630         * iconv/iconv_charmap.c: Likewise.
6631         * iconv/iconvconfig.c: Likewise.
6632         * iconv/iconv_prog.c: Likewise.
6633         * malloc/memusagestat.c: Likewise.
6634         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
6636 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6638         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
6639         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
6640         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
6641         check for the first argument.
6643 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
6645         [BZ #4775]
6646         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
6647         (__tgmath_real_type): Fix if expr is const int or other const
6648         qualified integral type.
6649         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
6650         expressions and handle const qualified arguments.
6651         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
6652         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
6653         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
6654         statement expressions.
6655         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
6656         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
6657         (__TGMATH_UNARY_IMAG): Define.
6658         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
6659         * math/Makefile (tests): Add test-tgmath2.
6660         (CFLAGS-test-tgmath2.c): Add.
6661         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
6662         count_cfloat, count_cldouble): New variables.
6663         (NCCALLS): Define.
6664         (main): Check number of complex calls as well.
6665         (F(compile_test)): Add complex tests and tests with const qualified
6666         arguments.
6667         (y, z, ccount): Define.
6668         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
6669         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
6670         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
6671         F(cproj)): New functions.
6672         * math/test-tgmath2.c: New test.
6674 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
6676         [BZ #4776]
6677         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
6678         RPATH etc. as "/" rather than "", don't segfault on empty paths,
6679         instead output ".".
6680         * dlfcn/Makefile (distribute): Add glreflib3.c.
6681         (module-names): Add glreflib3.
6682         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
6683         glreflib1.so.
6684         (LDFLAGS_glreflib3.so): New.
6685         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
6686         glreflib1.so.
6687         * dlfcn/glreflib3.c: New file.
6689         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
6690         returned -1, return NULL.
6691         * intl/explodename.c (_nl_explode_name): Return -1 if
6692         _nl_normalize_codeset failed.
6694 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
6696         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
6697         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
6698         and avoid branch misspredicts for > 31 bytes memset case.
6699         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
6700         Remove toc ref to __cache_line_size.
6702         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
6703         to get ISA-V2.0 branch hints.
6704         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
6705         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
6706         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
6707         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
6708         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
6709         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
6710         Remove toc ref to __cache_line_size.
6712         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
6713         Include math_ldbl_opt.h.
6715 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
6717         [BZ #4773]
6718         * time/strptime_l.c (__strptime_internal): Implement greedy
6719         matching of weekday and month names.
6721 2007-07-09  Roland McGrath  <roland@redhat.com>
6723         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
6724         (ELF_NOTE_ABI): Use it.
6725         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
6727 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
6729         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
6730         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6732 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
6734         [BZ #4745]
6735         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
6736         in loop to look for conversion specifier to avoid testing of
6737         wrong errno value.
6738         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
6739         * stdio-common/bug18.c: New file.
6740         * stdio-common/bug18a.c: New file.
6741         * stdio-common/bug19.c: New file.
6742         * stdio-common/bug19a.c: New file.
6744 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
6746         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
6747         running awk script.
6749 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
6751         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
6752         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
6753         Return NULL if mmap failed instead of asserting it does not.
6754         (calloc): Check for integer overflow.
6756         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
6757         than LONG_MAX / 10.
6759 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
6761         [BZ #4702]
6762         * nis/nss-default.c: Include errno.h.
6763         (init): Preserve errno.
6765 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
6767         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
6769 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
6771         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
6773 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6775         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
6777 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6779         * sysdeps/s390/dl-procinfo.c: New file.
6780         * sysdeps/s390/dl-procinfo.h: New file.
6781         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
6783 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
6785         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
6786         in PT_NOTE segments with multiple notes.
6787         * elf/readelflib.c (process_elf_file): Likewise.
6789 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
6791         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
6792         ISO C compliant.
6794 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
6796         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
6798 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
6800         * include/link.h: Don't include rtld-lowlevel.h.
6801         (struct link_map): Remove l_scope_lock.
6802         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
6803         (_dl_scope_free_list): New field (variable) in _rtld_global.
6804         (DL_LOOKUP_SCOPE_LOCK): Remove.
6805         (_dl_scope_free): New prototype.
6806         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
6807         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
6808         (_dl_profile_fixup): Likewise.
6809         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
6810         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
6811         THREAD_GSCOPE_RESET_FLAG around it.
6812         * elf/dl-close.c (_dl_close_worker): Don't use
6813         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
6814         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
6815         scopes were queued or if l_scope_mem has been abandoned.
6816         * elf/dl-open.c (_dl_scope_free): New function.
6817         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
6818         * elf/dl-support.c (_dl_scope_free_list): New variable.
6819         * elf/dl-lookup.c (add_dependency): Remove flags argument.
6820         Remove DL_LOOKUP_SCOPE_LOCK handling.
6821         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
6822         handling.
6823         * elf/dl-object.c (_dl_new_object): Don't use
6824         __rtld_mrlock_initialize.
6826 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
6828         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
6829         to fill in holes
6830         (rtld_global_ro): Likewise.
6832 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
6834         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
6835         Move PT_LOAD checking to...
6836         (_dl_addr_inside_object): ... here, new function.
6837         * elf/dl-sym.c (do_sym): If not l_contiguous,
6838         call _dl_addr_inside_object.
6839         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6840         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
6841         * elf/dl-open.c (dl_open_worker): Likewise.
6842         (_dl_addr_inside_object): New function if IS_IN_rtld.
6843         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
6844         holes are present or are PROT_NONE protected.
6845         * include/link.h (struct link_map): Add l_contiguous field.
6846         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
6848 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
6849             Tomas Janousek  <tjanouse@redhat.com>
6850             Ulrich Drepper  <drepper@redhat.com>
6852         [BZ #4647]
6853         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
6854         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
6855         socket.
6856         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
6857         unused member a bitmap.
6858         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
6859         servers are configured.
6861 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
6863         * elf/rtld.c (dl_main): Don't call init_tls more than once.
6865 2007-06-17  Andreas Schwab  <schwab@suse.de>
6867         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
6869 2007-06-16  Andreas Jaeger  <aj@suse.de>
6871         [BZ #4125]
6872         * sysdeps/unix/sysv/linux/sys/ptrace.h
6873         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
6874         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
6875         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
6876         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
6877         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
6878         Define.
6879         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
6880         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
6881         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
6882         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
6884 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
6886         [BZ #4599]
6887         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
6888         determining whether there are IPv4/IPv6 addresses, ignore loopback
6889         addresses.
6891 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
6893         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
6894         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
6895         as the return type.  Change type of "r" variable to CMPtype.
6896         * soft-fp/eqsf2.c (__eqsf2): Likewise.
6897         * soft-fp/eqtf2.c (__eqtf2): Likewise.
6898         * soft-fp/gedf2.c (__gedf2): Likewise.
6899         * soft-fp/gesf2.c (__gesf2): Likewise.
6900         * soft-fp/getf2.c (__getf2): Likewise.
6901         * soft-fp/ledf2.c (__ledf2): Likewise.
6902         * soft-fp/lesf2.c (__lesf2): Likewise.
6903         * soft-fp/letf2.c (__letf2): Likewise.
6904         * soft-fp/unorddf2 (__unorddf2): Likewise.
6905         * soft-fp/unordsf2 (__unordsf2): Likewise.
6906         * soft-fp/unordtf2 (__unordtf2): Likewise.
6908 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
6910         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
6911         make sure gcc doesn't mess around with this.
6913 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
6915         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
6917 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
6919         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
6920         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
6921         at most once per _dl_close_worker.
6923 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
6925         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
6926         __sched_cpucount as const.
6927         * posix/sched_cpucount.c: Adjust.
6929         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
6930         instruction for counting bits.
6931         * sysdeps/x86_64/sched_cpucount.c: New file.
6933 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
6935         * configure.in: Avoid variable named BASH.
6936         * config.make.in: Likewise.
6937         Patch in part by Mike Frysinger.
6939 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
6941         [BZ #4586]
6942         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
6943         pseudo-zeros as zero.
6944         * sysdeps/x86_64/ldbl2mpn.c: New file.
6945         * sysdeps/ia64/ldbl2mpn.c: New file.
6947 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
6949         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
6950         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
6951         Remove unreachable code at the end.
6953 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
6955         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
6956         ldbl-128ibm in comment.
6957         (fpclassifyl): Correct classification of denormals.
6958         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
6959         return value for MIN denormal. Rewrite using long double math too
6960         correctly handle denormals and canonicalize the results.
6962 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
6964         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
6965         (__mpn_construct_long_double): Fix conversion where result ought
6966         to be smaller than __LDBL_MIN__, or the low double should be
6967         denormal.  Fix decision where to negate low double - honor round
6968         to even rules.
6969         * stdio-common/tst-sprintf2.c: Include string.h.
6970         (COMPARE_LDBL): Define.
6971         (TEST): Also test whether a string hexadecimal float representation
6972         can be parsed back to the number.
6973         (main): Add a couple of further tests.
6975 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
6977         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
6978         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
6979         is non-zero, but smaller than 2 * __DBL_MIN__.
6980         * stdio-common/tst-sprintf2.c: New test.
6981         * stdio-common/Makefile (tests): Add tst-sprintf2.
6983         * math/test-misc.c (main): Don't run last batch of tests with
6984         IBM long double format.
6986 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
6988         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
6989         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
6990         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
6991         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
6992         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
6993         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
6994         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
6995         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
6996         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
6997         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
6998         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
6999         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
7000         New file.
7001         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
7002         New file.
7003         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
7004         New file.
7005         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
7006         New file.
7007         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
7008         New file.
7009         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
7010         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
7011         New file.
7012         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
7013         New file.
7014         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
7015         New file.
7016         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
7017         New file.
7018         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
7019         New file.
7021 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
7023         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
7024         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
7025         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
7026         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
7027         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
7028         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
7029         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
7030         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
7032 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
7034         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
7035         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7036         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
7037         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7038         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
7039         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7040         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
7041         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7043 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
7045         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
7046         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
7047         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
7048         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
7050 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
7052         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
7053         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
7055 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
7057         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
7058         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
7059         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
7060         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
7062 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
7064         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
7065         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
7067 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
7069         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
7070         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
7072         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
7073         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
7074         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
7075         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
7077 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
7079         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
7080         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
7081         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
7082         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
7084 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
7086         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
7087         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
7088         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
7089         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7090         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
7091         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7093 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
7095         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
7096         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
7097         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
7098         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
7100 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
7102         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
7103         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
7104         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
7105         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
7106         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
7107         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
7108         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
7109         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
7110         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
7111         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
7112         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
7113         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
7114         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
7115         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
7116         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
7117         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
7119 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
7121         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
7122         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
7124 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
7126         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
7127         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
7129 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
7131         * sysdeps/powerpc/powerpc32/970/Implies: New file.
7132         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
7133         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
7134         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
7135         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
7136         * sysdeps/powerpc/powerpc64/970/Implies: New file.
7137         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
7138         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
7139         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
7140         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
7142 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
7144         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
7146 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
7148         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
7149         branch miss-predicts. Ensure that cache line crossing does not impact
7150         dispatch grouping.
7152 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
7154         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
7155         "../../powerpc32/power4/memcopy.h".
7156         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
7157         "../../powerpc32/power4/wordcopy.c".
7159 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
7161         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
7162         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
7163         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
7164         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
7165         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
7166         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
7168 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
7170         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
7172 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
7174         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
7175         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
7176         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
7177         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
7178         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
7179         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
7180         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
7181         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
7183 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
7185         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
7187 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
7189         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
7190         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
7191         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
7192         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
7193         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
7194         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
7195         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
7197 2007-05-29  Roland McGrath  <roland@redhat.com>
7199         * po/Makefile (po-sed-cmd): New variable.
7200         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
7202 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
7204         * crypt/md5-crypt.c: Fix comment.
7206         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
7207         of crashing.  When this is the case or if the reply is malformed,
7208         don't try to close the new file descriptor since it does not
7209         exist.
7210         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
7212 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
7214         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
7215         if __NR_utimensat is not defined.
7217 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
7219         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
7221 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
7223         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
7224         (open): Fix comment typos.  Don't call __open_2 if flags
7225         is a compile time constant without O_CREAT.
7226         (__open64_2): Add nonnull attribute.
7227         (open64): Fix comment typos.  Don't call __open64_2 if flags
7228         is a compile time constant without O_CREAT.
7229         (__openat_2): Add nonnull attribute, fix nonnull attribute
7230         on redirect.
7231         (openat): Fix comment typos.  Don't call __openat_2 if flags
7232         is a compile time constant without O_CREAT.
7233         (__openat64_2): Add nonnull attribute, fix nonnull attribute
7234         on redirect.
7235         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
7236         is a compile time constant without O_CREAT.
7238 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
7240         * Makerules (sysd-rules): Define PTW for ptw-* files.
7241         * Versions: Define GLIBC_2.7 for libc.
7242         * include/stdio.h: Declare __fortify_fail.
7243         * debug/fortify_fail.c: New file.
7244         * debug/Makefile (routines): Add fortify_fail.
7245         * debug/chk_fail.c: Use __fortify_fail.
7246         * debug/stack_chk_fail.c: Likewise.
7247         * io/Versions: Export __open_2, __open64_2, __openat_2, and
7248         __openat64_2 for GLIBC_2.7.
7249         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
7250         * io/open.c: Define *_2 variant of function which checks for O_CREAT
7251         and fails if necessary.
7252         * io/open64.c: Likewise.
7253         * io/openat.c: Likewise.
7254         * io/openat64.c: Likewise.
7255         * sysdeps/unix/sysv/linux/open64.c: Likewise.
7256         * sysdeps/unix/sysv/linux/openat.c: Likewise.
7257         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
7258         * io/bits/fcntl2.h: New file.
7259         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
7260         __openat64_2.
7261         * include/bits/fcntl2.h: New file.
7262         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7263         Add open_2.
7264         * sysdeps/unix/sysv/linux/open_2.c: New file.
7266 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
7268         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
7269         as second parameter to handle_intel.
7271         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
7272         the entry.
7274         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
7275         handling to ...
7276         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
7277         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
7278         cacheinfo.
7279         * sysdeps/x86_64/memcpy.S: Complete rewrite.
7280         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
7281         Patch by Evandro Menezes <evandro.menezes@amd.com>.
7283         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
7285 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
7287         [BZ #4525]
7288         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
7289         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
7290         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
7292         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
7294         [BZ #4514]
7295         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
7296         reinitialize workend at the start of each do_positional format spec
7297         loop, free workstart before do_positional loops.
7298         (printf_unknown): Fix size of work_buffer.
7299         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
7301         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
7302         (public_sET_STATe): If ms->version < 3, put all chunks into
7303         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
7304         chunks.
7306         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
7307         * malloc/hooks.c: Likewise.
7308         * malloc/arena.c: Likewise.
7309         * malloc/malloc.c (do_check_malloc_state): Don't assert
7310         n_mmaps is not greater than n_mmaps_max.  This removes the need
7311         for the previous change.
7313         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
7314         2007-05-07 commit.
7316 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
7318         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
7319         Define for kernel >= 2.6.22.
7321 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
7323         * elf/dl-close.c (_dl_close_worker): When removing object from
7324         global scope, wait for all lookups to finish afterwards.
7325         * elf/dl-open.c (add_to_global): When global scope array must
7326         grow, allocate a new one and free old array only after all
7327         lookups finish.
7328         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
7329         (_dl_lookup_symbol_x): Likewise.
7330         * elf/dl-support.c: Define _dl_wait_lookup_done.
7331         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
7332         _dl_wait_lookup_done.
7334         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
7335         not overlapping with arena.
7337         * malloc/mcheck.c (reallochook): If size==0, free the block.
7339         * rt/tst-shm.c: Use fstat64 instead of fstat.
7341         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
7342         __NR_sync_file_range is not defined.
7344 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
7346         Dummy files to prevent stub versions from being used.
7347         * sysdeps/x86_64/fpu/k_cosl.c: New file.
7348         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
7349         * sysdeps/x86_64/fpu/k_sinl.c: New file.
7350         * sysdeps/x86_64/fpu/k_tanl.c: New file.
7352         * version.h (VERSION): Set to 2.6.90.
7354 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
7356         * version.h (VERSION): Define to 2.6.
7357         * include/features.h (__GLIBC_MINOR__): Define to 6.
7359         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
7361         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
7362         sizes.
7364 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
7366         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
7367         number of mmaps.  n_mmaps_max is the target.
7368         * malloc/hooks.c: Likewise.
7369         * malloc/arena.c: Likewise.
7371 2007-05-12  Andreas Jaeger  <aj@suse.de>
7373         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
7374         getpid.
7376 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
7378         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
7379         adding new variables.
7381         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
7382         optimize.  Completely extend global scope array before making the
7383         new entries visible.
7385 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
7387         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
7388         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
7389         tst-getcpu.
7391         * include/link.h: Move l_version and l_nversion members around to
7392         fill gaps.
7394         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
7396         * sysdeps/unix/sysv/linux/sched_setaffinity.c
7397         (__sched_setaffinity_new): If syscall was successful and
7398         RESET_VGETCPU_CACHE is defined, use it before returning.
7399         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
7401         * io/sys/stat.h: Make sure struct timespec is defined for
7402         __USE_ATFILE.
7404         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
7405         UTIME_OMIT.
7406         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7407         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
7408         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
7409         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7410         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
7411         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
7412         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
7413         * io/sys/stat.h: Declare utimensat, futimens.
7414         * io/utimensat.c: New file.
7415         * io/futimens.c: New file.
7416         * sysdeps/unix/sysv/linux/utimensat.c: New file.
7417         * sysdeps/unix/sysv/linux/futimens.c: New file.
7418         * io/Makefile (routines): Add utimensat, futimens.
7419         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
7420         * sysdeps/unix/sysv/linux/lutimes.c: New file.
7421         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
7422         available.
7424         * include/sys/cdefs.h: Redefine __nonnull so that test for
7425         incorrect parameters in the libc code itself are not omitted.
7427 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
7429         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
7430         exception in addition to inexact when asked to raise only FE_INEXACT.
7432         [BZ #3427]
7433         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
7434         in *envp.
7436 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
7438         [BZ #4403]
7439         * string/strfry.c (strfry): Make result more random.
7441 2007-05-07  Richard Henderson  <rth@redhat.com>
7443         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
7444         if __NO_LONG_DOUBLE_MATH.
7445         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
7446         available in the compiler, add .arch directive to the assembly.
7448 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
7450         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
7451         compat_symbol to GLIBC_2_1.
7452         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
7453         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
7454         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
7455         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
7456         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
7457         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
7458         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
7459         libc, not libm.
7460         (__isnanl): New compat_symbol.
7462 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
7463             Jakub Jelinek  <jakub@redhat.com>
7465         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
7466         (new_heap): Initialize mprotect_size.
7467         (grow_heap): When growing, only mprotect from mprotect_size till
7468         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
7469         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
7471 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
7472             Peter Bergner  <bergner@us.ibm.com>
7474         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
7475         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
7476         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
7477         * sysdeps/powerpc/fpu/fe_mask.c: New file.
7478         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
7479         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
7480         Call __fe_mask_env() if all FP exceptions disabled.
7481         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
7482         from old FPSCR to new fenv to propagate DFP rounding modes.
7483         Call __fe_mask_env() if FP exceptions previously enabled.
7484         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
7485         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
7486         transitioning from all exceptions disabled to any exception enabled
7487         or visa versa.
7488         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
7489         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
7490         when transitioning from all exceptions disabled to any exception
7491         enabled or visa versa.
7492         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
7493         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
7494         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
7495         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
7496         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
7497         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
7499 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
7501         [BZ #4465]
7502         * posix/unistd.h: Remove __THROW from fdatasync.
7504 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
7506         [BZ #4465]
7507         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
7509 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
7511         * stdio-common/vfprintf.c (process_string_arg): Optimize
7512         ridiculous precision in wide char code printing multi-byte string.
7513         Reported by Jim Meyering <jim@meyering.net>.
7515         [BZ #4131]
7516         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
7517         boundaries to work around systems with overlapping binary loading.
7518         Based on a patch by Suzuki <suzuki@in.ibm.com>.
7520 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
7522         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
7523         __mbsnrtowcs after last change.
7525         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
7526         (get_ident): Likewise.
7528 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
7530         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
7531         with setting the sticky bit.
7532         * math/test-misc.c (main): Add more truncation tests.
7534 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
7536         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
7537         double in the function declaration.
7538         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
7539         double in the function declaration.
7540         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7541         float in the function declaration.
7542         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7543         float in the function declaration.
7545         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
7546         denormal operands.  Do not generate FP_EX_DENORM exception.
7547         (FP_UNPACK_RAW_EP): Ditto.
7548         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
7549         undefined _FP_UNPACK_RAW_E.
7550         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
7551         undefined _FP_UNPACK_RAW_EP.
7552         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
7553         undefined _FP_PACK_RAW_E.
7554         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
7555         undefined _FP_PACK_RAW_EP.
7557         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
7558         _FP_FRAC_COPY_2.
7559         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
7560         _FP_FRAC_COPY_4.
7562 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
7563             Jakub Jelinek  <jakub@redhat.com>
7565         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
7566         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
7567         this case.
7568         * soft-fp/op-common.h (FP_TRUNC): Ditto.
7570 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
7572         * math/test-misc.c (main): Add tests for rounding long double
7573         values close to smallest double denormalized value to double.
7575 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
7577         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
7578         condition for truncating to 0.  Set sticky bit for such
7579         truncation.
7581 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
7583         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
7584         fixed length array for ignore.
7586 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
7588         [BZ #4438]
7589         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
7590         stack for large precisions.
7591         * stdio-common/test-vfprintf.c (main): Add test for large
7592         precision.
7594 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
7596         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
7597         for exponent 0.
7598         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
7600         [BZ #4439]
7601         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
7602         account in the size check.
7603         * resolv/tst-inet_ntop.c: New test.
7604         * resolv/Makefile (tests): Add tst-inet_ntop.
7606 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
7607             Jakub Jelinek  <jakub@redhat.com>
7609         [BZ #4349]
7610         * malloc/malloc.c: Keep separate list for first blocks on the bin
7611         lists with a given size.  This helps skipping over list elements
7612         we know won't fit in two places.
7613         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
7615 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
7617         [BZ #4102]
7618         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
7619         label to Teredo tunnel addresses 2001://32.
7621 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
7623         * locale/programs/ld-collate.c (collate_read): Allow order_start
7624         after copy.
7626         * locale/programs/ld-collate.c (collate_read): Fix printing of
7627         error message.
7629         [BZ #3213]
7630         * locale/C-translit.h.in: Add entry for U2044.
7632         [BZ #4342]
7633         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
7634         hexa-decimal floats without exponent.
7635         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
7637 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
7639         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
7640         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
7641         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
7642         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
7643         GLIBC_2.6.
7644         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
7645         Add sched_getcpu.
7647 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
7649         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
7650         of 0 after the out_fail label.
7652 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
7654         [BZ #4406]
7655         * iconv/gconv_charset.h (strip): Allow ':'.
7656         * iconv/iconv_open.c (iconv_open): Adjust comment.
7658 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
7660         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
7661         version.
7663 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
7665         [BZ #4381]
7666         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
7667         alignment of buffer and tmp_buffer.
7668         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
7669         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
7670         alignment of buffer.
7671         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
7672         bigger than INT_MAX.
7673         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
7674         h_errnop arguments.  Fail if buflen is too small.
7675         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
7677 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
7679         [BZ #4405]
7680         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
7681         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
7683 2007-04-22  Roland McGrath  <roland@redhat.com>
7685         * elf/elf.h (NT_PRXFPREG): New macro.
7687 2007-04-19  Andreas Jaeger  <aj@suse.de>
7689         [BZ #3905]
7690         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
7691         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
7692         Added.
7694 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
7696         * include/sys/mman.h: Mark madvise hidden.
7697         * misc/madvise.c: Add libc_hidden_def.
7699 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
7701         * nis/nis_domain_of.c (__nis_domain_of): New function.
7702         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
7703         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
7704         * nis/nis_call.c (rec_dirsearch): Likewise.
7705         (first_shoot): Likewise.  Remove search_parent_first argument.
7706         (struct nis_server_cache): Rename search_parent_first field
7707         to search_parent.
7708         (nis_server_cache_search, nis_server_cache_add): Rename
7709         search_parent_first argument to search_parent.
7710         (__nisfind_server): Likewise.  If search_parent, call
7711         __nis_domain_of.
7713 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
7715         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
7717 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
7719         [BZ #4368]
7720         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
7722 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
7724         [BZ #4364]
7725         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
7727 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
7729         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
7730         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
7731         current number of locales in SUPPORTED.
7732         (create_archive): Initialize serial.
7733         (enlarge_archive): Preserve aliases rather than duplicating
7734         their locrecs.
7736 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
7738         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
7739         after _IO_un_link, not before it.
7741         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
7742         special case handling when wcp == wstartp + 1.  Fix a comment typo.
7743         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
7745 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
7747         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
7748         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
7749         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
7750         Remove __THROW.
7751         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
7752         _IO_file_xsgetn_maybe_mmap): Likewise.
7753         * libio/oldfileops.c (old_do_write): Likewise.
7754         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
7755         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
7756         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
7757         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
7758         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
7759         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
7760         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
7761         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
7762         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
7763         _IO_file_underflow, _IO_file_underflow_mmap,
7764         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
7765         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
7766         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
7767         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
7768         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
7769         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
7770         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
7771         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
7772         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
7773         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
7774         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
7775         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
7776         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
7777         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
7778         _IO_adjust_column_internal, _IO_default_uflow_internal,
7779         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
7780         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
7781         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
7782         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
7783         _IO_file_close_it_internal, _IO_file_underflow_internal,
7784         _IO_file_overflow_internal, _IO_file_attach_internal,
7785         _IO_file_fopen_internal, _IO_file_sync_internal,
7786         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
7787         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
7788         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
7789         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
7790         _IO_seekpos_unlocked): Likewise.
7791         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
7792         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
7794 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
7796         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
7797         argument in xmalloc size computation.
7799 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
7801         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
7802         math_opt_barrier and math_force_eval macros.
7804 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
7806         [BZ #3306]
7807         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
7808         * sysdeps/i386/fpu/math_private.h: New file.
7809         * sysdeps/x86_64/fpu/math_private.h: New file.
7810         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
7811         math_force_eval macros.  Use "+m" constraint on asm rather than
7812         "=m" and "m".
7813         * math/s_nextafter.c (__nextafter): Likewise.
7814         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
7815         Likewise.
7816         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
7817         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
7818         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7819         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
7820         math_opt_barrier and math_force_eval macros.
7821         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
7822         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
7823         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
7824         (__nexttoward): Use math_opt_barrier and
7825         math_force_eval macros.  Use "+m" constraint on asm rather than
7826         "=m" and "m".  Only use asm to force double result if
7827         FLT_EVAL_METHOD is 2.
7828         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
7829         (__nexttowardf): Use math_opt_barrier and
7830         math_force_eval macros.  Use "+m" constraint on asm rather than
7831         "=m" and "m".  Only use asm to force double result if
7832         FLT_EVAL_METHOD is not 0.
7833         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
7834         (__nexttowardf): Use math_opt_barrier and
7835         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
7836         x to float using asm.
7837         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
7838         (__nldbl_nexttowardf): Use math_opt_barrier and
7839         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
7840         x to float using asm.
7841         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
7842         (__nexttowardf): Use math_opt_barrier and math_force_eval
7843         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
7844         * math/bug-nextafter.c (zero, inf): New variables.
7845         (main): Add new tests.
7846         * math/bug-nexttoward.c (zero, inf): New variables.
7847         (main): Add new tests.
7849 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
7851         [BZ #3427]
7852         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
7853         exceptions both in SW and MXCSR.
7854         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
7855         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
7856         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
7857         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
7858         in MXCSR if SSE is available.
7859         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
7860         and ldsodefs.h.
7861         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
7862         Fix comment typo.
7863         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
7864         Return 0 rather than 1.
7865         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
7866         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
7867         * math/test-fenv.c (feholdexcept_tests): New function.
7868         (main): Call it.
7870 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
7872         [BZ #3427]
7873         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
7874         in SW.
7876 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
7878         [BZ #4344]
7879         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
7880         Reported by David Anderson <davea42@earthlink.net>.
7882 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
7884         * posix/sys/wait.h: Remove unnecessary forward declaration.
7886 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
7888         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
7889         with obj->do_servers after first_shoot.
7891 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
7893         * posix/Makefile (routines): Add sched_cpucount.
7894         (tests): Add tst-cpucount.
7895         * posix/sched_cpucount.c: New file.
7896         * posix/tst-cpucount.c: New file.
7897         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
7898         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
7899         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
7900         * posix/sched.h: Define CPU_COUNT.
7902 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
7904         * posix/fnmatch.c (STRUCT): Define.
7905         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
7906         * posix/fnmatch_loop.c (struct STRUCT): New type.
7907         (FCT): Add ends argument.  If ends != NULL and normal * is
7908         seen in the pattern, store current pattern and string pointers
7909         and return.  Adjust recursive calls.
7910         (EXT): Adjust FCT callers.
7911         (STRUCT): Undef at the end of the file.
7912         * posix/Makefile (tests): Add tst-fnmatch2.
7913         * posix/tst-fnmatch2.c: New test.
7915 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
7917         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
7918         and 1 on failure.
7920         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
7921         Change last argument to unsigned int.
7923 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
7925         * scripts/check-local-headers.sh: Filter out sys/capability.h.
7927 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
7929         * config.h.in (HAVE_LIBCAP): Add.
7930         * nscd/selinux.h: Include sys/capability.h rather than non-existent
7931         sys/capabilities.h.
7932         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
7933         free_caps.  Cast away const from 4th cap_set_flag argument.
7935 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
7937         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
7938         GLIBC_2.6.
7939         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7940         Add sync_file_range.
7941         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
7943 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
7945         * sysdeps/powerpc/bits/atomic.h
7946         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
7947         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
7948         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7949         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
7950         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7951         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
7952         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
7953         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
7954         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7955         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
7956         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
7957         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
7958         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
7959         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
7960         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7961         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
7962         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7963         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
7964         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
7965         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
7967 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
7969         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
7970         (__cache_line_size): Define the variable here.  Add
7971         attribute_hidden, remove weak_extern.
7972         (__libc_start_main): Set __cache_line_size
7973         unconditionally.
7974         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
7975         (__cache_line_size): Define the variable here.  Add
7976         attribute_hidden, remove weak_extern.
7977         (DL_PLATFORM_AUXV): Set __cache_line_size
7978         unconditionally.
7979         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
7980         weak_extern, add attribute_hidden.
7981         (__elf_machine_runtime_setup): Assume __cache_line_size is always
7982         defined in ld.so.
7983         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
7984         definition.
7985         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
7987 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
7989         [BZ #4276]
7990         * timezone/africa: Update from tzdata2007d.
7991         * timezone/asia: Likewise.
7992         * timezone/australasia: Likewise.
7993         * timezone/backward: Likewise.
7994         * timezone/europe: Likewise.
7995         * timezone/iso3166.tab: Likewise.
7996         * timezone/leapseconds: Likewise.
7997         * timezone/northamerica: Likewise.
7998         * timezone/southamerica: Likewise.
7999         * timezone/zone.tab: Likewise.
8001         * timezone/private.h: Update from tzcode2007d.
8002         * timezone/zdump.c: Likewise.
8003         * timezone/zic.c: Likewise.
8005 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
8007         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
8008         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
8009         variables.
8010         (nis_server_cache_search, nis_server_cache_add): New functions.
8011         (__nisfind_server): Use them.  Add dbp and flags argument, if
8012         call __nisbind_create.
8013         (__nisbind_create): Add server_used and current_ep arguments,
8014         only call __nis_findfastest if server_used is ~0.
8015         (__do_niscall2, __prepare_niscall): Adjust callers.
8016         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
8017         ckey_cache_euid, ckey_cache_lock): New variables.
8018         (get_ckey): New function.
8019         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
8020         __pmap_getnisport.  Save __pmap_getnisport result in
8021         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
8022         key.
8023         * nis/nis_lookup.c (nis_lookup): Likewise.
8024         * nis/nis_table.c (nis_list): Likewise.
8025         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
8026         prototypes.
8028         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
8029         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
8030         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
8031         _nss_nisplus_getservbyport_r): Likewise.
8032         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
8033         _nss_nisplus_getnetbyaddr_r): Likewise.
8034         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
8035         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
8036         _nss_nisplus_getntohost_r): Likewise.
8037         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
8038         _nss_nisplus_getrpcbynumber_r): Likewise.
8040 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
8042         * configure.in (libc_cv_gnu89_inline): Only do compile test.
8043         * configure: Rebuilt.
8045         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
8046         bit-fields.
8047         * soft-fp/extended.h (_FP_UNION_E): Likewise.
8049 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
8051         [BZ #2831]
8052         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
8053         bit-fields.
8055 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
8057         * nscd/gai.c: Include alloca.h.
8058         (__libc_use_alloca): Define.
8060 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
8062         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
8063         smaller scopes.
8064         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
8065         (DL_DST_REQUIRED): Adjust user.
8067         * include/dlfcn.h (struct link_map): New forward decl.
8069         * inet/getnameinfo.c: Include stddef.h.
8070         (getnameinfo): Use offsetof.
8072         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
8074         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
8076         * string/strerror_l.c: Include stdlib.h.
8078         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
8079         * config.make.in (gnu89-inline-CFLAGS): New variable.
8080         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
8081         -std=gnu99.
8082         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
8083         * argp/argp.h: Use it.
8084         * bits/mathinline.h: Likewise.
8085         * bits/sigset.h: Likewise.
8086         * bits/string.h: Likewise.
8087         * ctype/ctype.h: Likewise.
8088         * hurd/hurd.h: Likewise.
8089         * hurd/hurd/fd.h: Likewise.
8090         * hurd/hurd/port.h: Likewise.
8091         * hurd/hurd/signal.h: Likewise.
8092         * hurd/hurd/threadvar.h: Likewise.
8093         * hurd/hurd/userlink.h: Likewise.
8094         * io/sys/stat.h: Likewise.
8095         * libio/bits/stdio.h: Likewise.
8096         * libio/bits/stdio2.h: Likewise.
8097         * mach/lock-intern.h: Likewise.
8098         * mach/mach/mig_support.h: Likewise.
8099         * math/bits/cmathcalls.h: Likewise.
8100         * posix/bits/unistd.h: Likewise.
8101         * socket/bits/socket2.h: Likewise.
8102         * stdlib/bits/stdlib.h: Likewise.
8103         * stdlib/stdlib.h: Likewise.
8104         * string/argz.h: Likewise.
8105         * string/bits/string2.h: Likewise.
8106         * string/bits/string3.h: Likewise.
8107         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
8108         * sysdeps/generic/inttypes.h: Likewise.
8109         * sysdeps/generic/machine-lock.h: Likewise.
8110         * sysdeps/generic/machine-sp.h: Likewise.
8111         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8112         * sysdeps/i386/i486/bits/string.h: Likewise.
8113         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
8114         * sysdeps/mach/alpha/machine-lock.h: Likewise.
8115         * sysdeps/mach/alpha/machine-sp.h: Likewise.
8116         * sysdeps/mach/i386/machine-lock.h: Likewise.
8117         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8118         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
8119         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
8120         * sysdeps/s390/bits/string.h: Likewise.
8121         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
8122         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8123         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8124         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
8125         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8126         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
8127         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
8128         * wcsmbs/bits/wchar2.h: Likewise.
8129         * wcsmbs/wchar.h: Likewise.
8130         * stdlib/gmp.h: Likewise.  Include <features.h> to get
8131         __extern_inline definition.
8133 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
8135         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
8136         NULL.
8138         [BZ #3919]
8139         * math/libm-test.inc (log_test): Test -Inf and NaN.
8140         (log10_test, log1p_test, log2_test): Test -Inf.
8141         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
8142         FE_INVALID when argument is qNaN.
8143         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
8144         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
8145         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
8146         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
8147         andb $1, %ah with testb $1, %ah, don't test for parity, instead
8148         testb $4, %ah and jump if non-zero.
8149         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
8150         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
8152         [BZ #4101]
8153         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
8154         ancestors with the same depths.
8155         Patch by Niels Moeller <nisse@lysator.liu.se>.
8156         (filter_doc): Don't crash if argp is NULL.
8157         * argp/Makefile (tests): Add tst-argp2.
8158         * argp/tst-argp2.c: New test.
8160         [BZ #4130]
8161         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
8162         open_not_cancel_2.
8163         (updwtmp_file): Likewise.
8165         [BZ #4181]
8166         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
8167         (inet6_opt_append): Don't check extlen is big enough if extbuf
8168         is NULL.
8169         (inet6_opt_finish): Likewise.
8170         * inet/Makefile (tests): Add test-inet6_opt.
8171         * inet/test-inet6_opt.c: New test.
8173         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
8174         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
8175         NLMSG_ERR.  Instead use a page sized buffer.
8176         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
8177         buffer.
8179 2007-03-14  Richard Henderson  <rth@redhat.com>
8181         * sysdeps/alpha/fpu/s_llround.c: New file.
8182         * sysdeps/alpha/fpu/s_llroundf.c: New file.
8183         * sysdeps/alpha/fpu/s_lround.c: New file.
8184         * sysdeps/alpha/fpu/s_lroundf.c: New file.
8185         * sysdeps/alpha/fpu/s_round.c: New file.
8186         * sysdeps/alpha/fpu/s_roundf.c: New file.
8187         * sysdeps/alpha/fpu/s_trunc.c: New file.
8188         * sysdeps/alpha/fpu/s_truncf.c: New file.
8190         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
8191         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
8192         * sysdeps/alpha/fpu/s_floor.c: Likewise.
8193         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
8194         * sysdeps/alpha/fpu/s_rint.c: Likewise.
8195         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
8197         * sysdeps/alpha/fpu/s_fmax.S: New file.
8198         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
8199         * sysdeps/alpha/fpu/s_fmin.S: New file.
8200         * sysdeps/alpha/fpu/s_fminf.S: New file.
8201         * sysdeps/alpha/fpu/s_isnan.c: New file.
8202         * sysdeps/alpha/fpu/s_isnanf.c: New file.
8203         * sysdeps/alpha/fpu/s_llrint.c: New file.
8204         * sysdeps/alpha/fpu/s_llrintf.c: New file.
8205         * sysdeps/alpha/fpu/s_lrint.c: New file.
8206         * sysdeps/alpha/fpu/s_lrintf.c: New file.
8207         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
8208         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
8210         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
8211         (__fdimf, fdimf, __fdim, fdim): Remove.
8212         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
8213         (__isnanf, __isnan, __isnanl): New.
8215 2007-03-13  Richard Henderson  <rth@redhat.com>
8217         * sysdeps/ieee754/ldbl-128/Makefile: New file.
8219 2007-03-13  Richard Henderson  <rth@redhat.com>
8221         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
8222         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
8223         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
8224         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
8225         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
8226         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
8228 2007-03-13  Richard Henderson  <rth@redhat.com>
8230         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
8231         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
8232         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
8233         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
8234         Move to dl-auxv.h; initialize instead of extern weak.
8235         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
8236         weak symbol.
8237         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
8238         Extern instead of initialized.
8240 2007-03-13  Richard Henderson  <rth@redhat.com>
8242         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
8243         __sigsuspend_nocancel.
8245 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
8247         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
8248         172.16/12 address range.
8250 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
8252         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
8253         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
8254         message.
8256 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
8258         [BZ #4069]
8259         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
8260         earlier.
8261         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
8263         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
8264         for x qNaN and y either +-inf or non-integer value.
8265         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
8266         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
8267         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8269 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
8271         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
8272         from sysdep_headers.
8274 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
8276         * time/tzfile.c (find_transition): Instead of a linear search try to
8277         guess the transition index, use a linear search if the result is at
8278         most 10 transitions away from the guess or binary search otherwise.
8280 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
8282         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
8283         memory reallocation.
8285 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
8287         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
8288         and fix some typos.
8289         Optimize use of TOLOWER.
8291         [BZ #3325]
8292         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
8293         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8294         * sysdeps/i386/fpu/e_fmod.S: Likewise.
8296         [BZ #3458]
8297         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
8298         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
8300         [BZ #4076]
8301         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
8302         (open_dir_stream): Likewise.
8303         * io/Makefile (tests): Add bug-ftw5.
8304         * io/bug-ftw5.c: New file.
8306         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
8307         * nscd/servicescache.c (cache_addserv): Likewise.
8309         * nscd/grpcache.c (cache_addgr): In case a record changed on
8310         refresh, adjust key_copy.
8312         [BZ #4074]
8313         * nscd/pwdcache.c (cache_addpw): In case a record changed on
8314         refresh, adjust key_copy.
8316         [BZ #4070]
8317         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
8318         special cases.
8319         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
8321 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
8323         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
8324         optimization.
8326         * stdio-common/vfscanf.c: Small cleanups throughout.
8328 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
8330         [BZ #3325]
8331         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
8332         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8333         * sysdeps/i386/fpu/e_fmod.S: Likewise.
8334         Patch by Jared Casper <jaredcasper@gmail.com>.
8336         * sysdeps/unix/closedir.c: Outside libc don't use locking.
8337         * sysdeps/unix/opendir.c: Likewise.
8338         * sysdeps/unix/readdir.c: Likewise.
8340         [BZ #2211]
8341         * stdio-common/vfscanf.c: Handle localized digits etc for floating
8342         point numbers.
8343         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
8345         * stdio-common/vfscanf.c: Fix problems in width accounting.
8346         * stdio-common/tst-sscanf.c (double_tests): New tests.
8347         (main): Hook them up.
8349         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
8350         More simplifications of floating-point reader.
8352         * stdio-common/Makefile (tests): Add tst-swscanf.
8353         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
8354         testing.
8355         * stdio-common/tst-swscanf.c: New file.
8357 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
8359         [BZ #2633]
8360         * libio/stdio.h: Define struct _IO_FILE in global namespace.
8361         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
8362         Remove using for __jmp_buf_tag.
8363         * locale/locale.h (struct lconv): Also define in std namespace.
8364         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
8366         [BZ #3842]
8367         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
8368         using __libc_enable_secure.
8370         [BZ #3818]
8371         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
8373         [BZ #3745]
8374         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
8375         of names for ellipsises.
8377         [BZ #3348]
8378         * malloc/memusage.sh: Cleanups.
8379         * debug/xtrace.sh: Quoting and trap changes.
8381 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
8383         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
8385         * locale/iso-3166.def: Update entry for Serbia.
8386         * locale/iso-4217.def: Define RSD, remove CSD.
8388         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
8389         and 64-bit operations.
8391         [BZ #4040]
8392         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
8393         16-bit operations.
8395         * nscd/nscd.c (parse_opt): One more conversion to use send instead
8396         of writev.
8398 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
8400         [BZ #3991]
8401         * assert/assert.h (assert): Simplify.
8402         (assert_perror): Likewise.
8403         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
8405         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
8406         reqdata.
8408         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
8409         change: don't pass NULL in place of an integer.
8411 2007-02-02  Bruno Haible  <bruno@clisp.org>
8413         [BZ #3954]
8414         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
8415         Add mapping for U+327E.
8416         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
8417         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8418         mapping of 0xD9 0xE8.
8419         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
8420         mapping of U+327E.
8421         Reported by Jungshik Shin <jungshik@google.com>.
8423         [BZ #3955]
8424         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8425         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
8426         Reported by Jungshik Shin <jungshik@google.com>.
8428 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
8430         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
8431         byte variants.
8433         [BZ #4040]
8434         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
8435         byte variants.  Patch mostly be tom@tommay.net.
8437 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
8439         [BZ #3996]
8440         * posix/glob.c (attribute_hidden): Define if not defined.
8441         (glob): Unescape dirname, filename or username when needed and not
8442         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
8443         is NULL.  Handle unescaped [ in pattern without closing ].
8444         Don't pass GLOB_CHECK down to recursive glob for directories.
8445         (__glob_pattern_type): New function.
8446         (__glob_pattern_p): Implement using __glob_pattern_type.
8447         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
8448         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
8449         Remove unreachable code.
8450         * posix/globtest.sh: Add a couple of new tests.
8452 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
8454         * po/ru.po: Update from translation team.
8456 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
8458         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
8459         to the list of i486+ CPUs.
8460         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8462 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
8464         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
8465         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
8466         references.
8468 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
8470         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
8472         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
8473         * resolv/res_mkquery.c: Define __res_nopt.
8474         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
8475         try adding EDNS0 record.
8476         * resolv/res_send.c (send_dg): If request failed with FORMERR and
8477         EDNS0 record was send make sure we don't try it again.
8478         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
8479         * include/resolv.h: Declare __res_nopt.
8481 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
8483         [BZ #3944]
8484         * time/strptime_l.c (__strptime_internal): Set have_mon for
8485         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
8486         have been computed from tm_yday and tm_year.  Don't crash
8487         in day_of_the_week or day_of_the_year if not have_mon
8488         and tm_mon contains bogus value.
8489         * time/Makefile (tests): Add tst-strptime3.
8490         * time/tst-strptime3.c: New test.
8492 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
8494         [BZ #3957]
8495         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
8496         bit for RE_HAT_LISTS_NOT_NEWLINE.
8497         (build_charclass_op): Remove bogus comment.
8498         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
8499         * posix/bug-regex27.c: New test.
8500         * posix/bug-regex28.c: New test.
8502 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
8504         * po/sv.po: Update from translation team.
8506 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
8508         * nscd/nscd_helper.c (open_socket): Minor size optimization.
8510 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
8512         * include/locale.h (__uselocale): Add libc_hidden_proto.
8513         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
8515         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
8516         gettimeofday.
8518 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
8520         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
8521         returning.
8522         (PTR_DEMANGLE): Real definition now that it's not the same as
8523         PRT_MANGLE anymore.
8524         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8526         * string/strerror_l.c: New file.
8527         * string/Makefile (routines): Add strerror_l.
8528         * string/string.h: Declare strerror_l.
8529         * string/Versions: Export strerror_l for GLIBC_2.6.
8531 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
8533         * nscd/nscd_helper.c (open_socket): Now takes request type and key
8534         as parameter.  Construct request record.  Try sending request
8535         before the first poll use, it usually succeeds.  Adjust all
8536         callers.
8537         * nscd/nscd-client.h: Define MAXKEYLEN.
8538         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
8540 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
8542         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
8543         from return value.
8544         * nscd/nscd_helper.c: Include string.h.
8545         (__nscd_cache_search): Remove const qualifier from return value.
8546         On strict alignment architectures check hash entry and data head
8547         alignment.
8548         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
8549         mmapped data during GC cycle contains garbage.  If
8550         __nscd_drop_map_ref fails, decrement mapped->counter when returning
8551         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
8552         dropped to 0.
8553         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8554         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8555         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8556         * nscd/nscd_getai.c (__nscd_getai): Likewise.
8557         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8559 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
8561         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
8563 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
8565         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
8566         names not numbers in cfi_*.
8568 2007-01-26  Andreas Jaeger  <aj@suse.de>
8570         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
8571         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
8572         Correct values of PER_HPUX and PER_OSF4.
8574 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
8576         * elf/dl-minimal.c: Undefine _itoa first.
8577         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
8578         * malloc/mtrace.c: Revert last change.
8579         * posix/wordexp.c: Likewise.
8581 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
8583         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
8584         and __geode__ to the list of i486+ CPUs.
8585         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8587 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
8589         * stdio-common/_itoa.c: Include <limits.h>.
8590         * stdio-common/_itowa.c: Likewise.
8592 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
8594         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
8595         platforms.
8596         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
8597         64-bit platforms.
8598         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
8599         possible.
8600         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
8601         if possible.
8603         [BZ #3902]
8604         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
8605         * stdio-common/Makefile (tests): Add bug17.
8606         * stdio-common/bug17.c: New file.
8608 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
8610         * iconvdata/brf.c: New file.
8611         * iconvdata/testdata/BRF: New file.
8612         * iconvdata/testdata/BRF..UTF8: New file.
8613         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
8614         * iconvdata/Makefile: Add rules to build BRF.
8615         * iconvdata/TESTS: Add BRF entry.
8616         * iconvdata/gconv-modules: Likewise.
8617         * iconvdata/tst-tables.sh: Likewise.
8619 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
8621         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
8622         type `long long int', not `long int'.
8623         (wcstoq): Likewise.
8625 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
8627         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
8628         of values on 64-bit platforms which are too large.
8630 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
8631             Joe Kerian  <jkerian@us.us.ibm.com>
8633         [BZ #2749]
8634         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
8635         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
8636         (__copysignl): Use signbit() for comparison.
8637         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
8638         SET_LDOUBLE_WORDS64.
8640         [BZ #2423, #2749]
8641         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
8642         (__ceill): Remove calls to fegetround(), fesetround().
8643         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
8644         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8645         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
8647 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
8649         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
8651         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
8653 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
8655         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
8656         demangle pointer.
8657         * csu/libc-start.c: Likewise.
8659 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
8661         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
8662         really work anyway.
8664 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
8666         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
8667         users.
8668         (handle_request): Remove unnecessary tests.
8670         * nscd/cache.c (cache_add): Record the failure to add to the cache.
8672 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
8674         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
8675         workbits in semi-raw fraction.
8677         * math/test-misc.c: Add new tests.
8679 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
8681         * math/basic-test.c: Include test-skeleton.c.
8682         (TEST_TRUNC): Define.
8683         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
8684         (main): Rename to ...
8685         (do_test): ...this.  Run new tests.
8686         (TEST_FUNCTION): Define.
8688 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
8689             Joe Kerian  <jkerian@us.us.ibm.com>
8691         [BZ #2749]
8692         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
8693         handling for high words.
8694         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
8695         and overflow for infinity.
8697 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
8699         * nscd/connections.c (handle_request): Add a __builtin_expect.
8701         * nscd/connections.c (serv2db): Change type into structure which
8702         also says whether this is a request for data.  Renamed to
8703         servinfo.  All users changed.
8704         (handle_request): Much simpler test whether we should search the cache.
8706         * nscd/connections.c (handle_request): Fix thinko in selinux test
8707         invocation.
8709         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
8710         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
8711         it before getting dl_load_lock and then relock.
8712         (_dl_lookup_symbol_x): Pass flags to add_dependency.
8713         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
8714         case we unlocked the scope.
8715         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
8716         _dl_lookup_symbol_x in case we locked the scope.
8717         (_dl_profile_fixup): Likewise.
8718         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
8719         set DL_LOOKUP_SCOPE_LOCK.
8721 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
8723         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
8724         CFLAGS-getsrvbynpt_r.c.
8725         * nscd/getsrvbynm_r.c: New file.
8726         * nscd/getsrvbypt_r.c: New file.
8727         * nscd/nscd_getserv_r.c: New file.
8728         * nscd/servicescache.c: New file.
8729         * nscd/Makefile (routines): Add nscd_getserv_r.
8730         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
8731         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
8732         CFLAGS-getsrvbypt_r.c.
8733         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
8734         table.  Add entries for services database.
8735         * nscd/connections.c (serv2str): Mark as const.  Add entries for
8736         services database.
8737         (dbs): Add .reset_res and servdb initialization.
8738         (serv2db): Add entries for services database.
8739         (verify_persistent_db): Accept dbnr == servdb.
8740         (invalidate_cache): Rewrite database name recognition to use a table.
8741         Call res_init() if .reset_res is set for database.
8742         (handle_request): Add code to handle services database.
8743         * nscd/gai.c: Don't define __getservbyname_r.
8744         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
8745         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
8746         (serv_response_header): Define.
8747         (struct datahead): Add serv_response_header member.
8748         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
8749         using table.
8750         * nscd/nscd.conf: Add entries for services database.
8751         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
8752         Declare serv_iov_disabled.
8753         Declare addservbyname, readdservbyname, addservbyport, and
8754         readdservbyport.
8755         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
8756         (find_db): Fix error message.
8757         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
8758         __nscd_getservbyname_r, and __nscd_getservbyport_r.
8759         * nscd/selinux.c (perms): Add entries for services database.
8760         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
8761         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
8763         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
8764         * nscd/hstcache.c: Likewise.
8765         * nscd/pwdcache.c: Likewise.
8767         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
8768         computation of keylen.
8770         * include/string.h: Only redefine strndupa if this is really for
8771         libc code.
8773 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
8775         * nscd/nscd_gethst_r.c: Minor cleanups.
8777         * nscd/connections.c (handle_request): Check selinux permissions
8778         for all non-admin commands.
8780         * sysdeps/i386/i486/bits/atomic.h: Define
8781         atomic_compare_and_exchange_val_acq,
8782         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
8783         using __sync_* built-ins for gcc >= 4.1.
8784         * sysdeps/x86_64/bits/atomic.h: Likewise.
8786         [BZ #3840]
8787         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
8788         and .oS.d files.
8790 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
8792         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
8793         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
8794         (do_test): Check errno and exit(0) if ENOSYS.
8796 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
8798         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
8799         thousands separators.
8800         * stdlib/Makefile: Add rules to build and run tst-strtod4.
8801         * stdlib/tst-strtod4.c: New test.
8803         [BZ #3855]
8804         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
8805         hexadecimal digit should accept just the initial 0.
8806         * stdlib/tst-strtod2.c (tests): New variable.
8807         (do_test): Run several tests rather than just one.
8809 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
8811         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
8812         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
8814 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
8816         * io/fts.c: Make sure fts_cur is always valid after return from
8817         fts_read.
8818         Patch by Miloslav Trmac <mitr@redhat.com>.
8820 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
8822         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
8823         (R_MIPS_NUM): Bump by 1.
8825 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
8827         * posix/execvp.c: Include alloca.h.
8828         (allocate_scripts_argv): Renamed to...
8829         (scripts_argv): ... this.  Don't allocate buffer here nor count
8830         arguments.
8831         (execvp): Use alloca if possible.
8832         * posix/Makefile: Add rules to build and run tst-vfork3 test.
8833         * posix/tst-vfork3.c: New test.
8835 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
8837         * string/Makefile (tst-strxfrm2-ENV): Define.
8838         * stdlib/Makefile (tst-strtod3-ENV): Define.
8840 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
8842         * posix/getconf.c: Update copyright year.
8843         * nss/getent.c: Likewise.
8844         * iconv/iconvconfig.c: Likewise.
8845         * iconv/iconv_prog.c: Likewise.
8846         * elf/ldconfig.c: Likewise.
8847         * catgets/gencat.c: Likewise.
8848         * csu/version.c: Likewise.
8849         * elf/ldd.bash.in: Likewise.
8850         * elf/sprof.c (print_version): Likewise.
8851         * locale/programs/locale.c: Likewise.
8852         * locale/programs/localedef.c: Likewise.
8853         * nscd/nscd.c (print_version): Likewise.
8854         * debug/xtrace.sh: Likewise.
8855         * malloc/memusage.sh: Likewise.
8856         * malloc/mtrace.pl: Likewise.
8857         * debug/catchsegv.sh: Likewise.
8859 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
8861         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
8862         attempts.
8864 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
8866         * posix/wordexp.c: Remove some unnecessary tests.
8868 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
8870         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
8871         blacklist the group till after we look it up.
8873 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
8875         * include/atomic.h (atomic_forced_read): New macro.
8877 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
8879         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
8881 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
8883         * nss/getXXbyYY_r.c: Include atomic.h.
8884         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
8885         add atomic_write_barrier () in between.
8887         * stdlib/Makefile (tests): Add tst-makecontext.
8888         * stdlib/tst-makecontext.c: New test.
8890         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
8891         (__makecontext): Don't realign uc_mcontext.uc_regs.
8893 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
8895         * elf/dl-support.c: Include dl-procinfo.h.
8896         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
8897         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
8898         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
8899         Define.
8900         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
8901         hardcoded constants.
8902         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
8903         PPC_PLATFORM_* macros for array designators.
8905 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
8907         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
8908         names to the beginning.
8909         (_dl_powerpc_platforms): Add "power6x".
8910         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
8911         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
8912         (_DL_PLATFORMS_COUNT): Increase.
8913         (_dl_string_platform): Handle power6x case.
8914         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
8915         PPC_FEATURE_POWER6_EXT): Define.
8916         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
8918 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
8920         [BZ #3747]
8921         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
8922         [-2^31 .. 2^31) range.
8923         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
8924         targets.
8925         * stdlib/tst-rand48-2.c: New test.
8926         * stdlib/Makefile (tests): Add tst-rand48-2.
8928 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
8930         * misc/tst-pselect.c (do_test): Fix sigblock argument.
8932 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
8934         * misc/tst-pselect.c (do_test): Make sure the helper process is
8935         terminating when the test is aborted.
8937 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
8939         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
8940         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
8941         Handle relatime mount option.
8943         [BZ #2337]
8944         * libio/Makefile (tests): Add tst-setvbuf1.
8945         * libio/tst-setvbuf1.c: New file.
8947 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
8949         [BZ #2337]
8950         * libio/genops.c (__uflow): Fix a typo.
8951         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
8952         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
8953         the narrow buffer size.
8955 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
8957         [BZ #2337]
8958         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
8959         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
8960         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
8961         in _flags.
8962         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
8963         _IO_wstr_finish): Likewise.
8964         * libio/wmemstream.c (open_wmemstream): Likewise.
8965         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
8966         even for wide streams.
8968 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
8970         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
8971         kernel-features.h.
8973 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
8975         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
8976         separators also if no non-zero digits found.
8977         * stdlib/Makefile (tests): Add tst-strtod3.
8979 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
8981         [BZ #3632]
8982         * include/features.h: Fix comment about default value for
8983         _POSIX_C_SOURCE.
8985         [BZ #3664]
8986         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
8987         empty parsed strings.
8988         * stdlib/Makefile (tests): Add tst-strtod2.
8989         * stdlib/tst-strtod2.c: New file.
8991         [BZ #3673]
8992         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
8993         computation.
8994         * stdlib/Makefile (tests): Add tst-atof2.
8995         * stdlib/tst-atof2.c: New file.
8997         [BZ #3674]
8998         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
8999         correctly if removing trailing zero of hex-float.
9000         * stdlib/Makefile (tests): Add tst-atof1.
9001         * stdlib/tst-atof1.c: New file.
9003 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
9005         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
9006         Start searching for next comma at p rather than rest.
9007         * misc/Makefile (tests): Add tst-mntent2.
9008         * misc/tst-mntent2.c: New test.
9010         * misc/getusershell.c (initshells): Check for integer overflows.
9011         Make strings buffer one bigger as fgets always succeeds when second
9012         argument is 1.  Don't use calloc for shells array.  Disallow
9013         / as shell.
9015 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
9017         * malloc/memusage.c: Handle realloc with new size of zero and
9018         non-NULL pointer correctly.
9019         (me): Really write first record twice.
9020         (struct entry): Make format bi-arch safe.
9021         (dest): Write out more realloc statistics.
9022         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
9024 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
9026         * nis/nis_subr.c (nis_getnames): Revert last change.
9028 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
9030         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
9031         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
9032         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
9033         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
9034         ENOTTY.
9035         * io/Makefile: Add rules to build and run tst-ttyname_r test.
9036         * io/tst-ttyname_r.c: New test.
9038 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9040         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
9042 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
9044         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
9045         jump table entries.
9047 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
9049         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
9050         `clone' function to ensure proper unwinding stop of gdb.
9051         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
9053 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
9055         * nscd/nscd.init: Remove obsolete and commented-out -S option
9056         handling.
9058 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
9060         [BZ #3514]
9061         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
9063         [BZ #3515]
9064         * manual/string.texi (strtok): Remove duplicate paragraph.
9066 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
9068         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
9069         libgcc not supporting `rflags' unwinding (register # >= 17).
9071 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
9073         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
9074         succeeded.
9076 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
9077             Jakub Jelinek  <jakub@redhat.com>
9078             Jan Kratochvil  <jan.kratochvil@redhat.com>
9080         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
9081         unwind information.
9082         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
9083         'restore_rt' even in the 'signal' directory.
9084         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
9086 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
9088         [BZ #3559]
9089         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
9090         malloc crashed.  Don't allocate memory unnecessarily in each
9091         loop.
9093 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
9095         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
9097 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
9099         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
9101 2006-11-18  Bruno Haible  <bruno@clisp.org>
9103         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
9104         __sysconf only after having tried to call getgroups32.
9106 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
9108         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
9109         addresses for IPv4 queries if they can be mapped.
9111 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
9113         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
9114         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
9115         (signmask): Add .size directive.
9116         (othermask): Add .type directive.
9118 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
9120         * po/nl.po: Update from translation team.
9122         * timezone/zdump.c: Redo fix for BZ #3137.
9124 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
9126         * nss/nss_files/files-alias.c (get_next_alias): Set line back
9127         to first_unused after parsing :include: file.
9129 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
9131         * timezone/africa: Update from tzdata2006o.
9132         * timezone/antarctica: Likewise.
9133         * timezone/asia: Likewise.
9134         * timezone/australasia: Likewise.
9135         * timezone/backward: Likewise.
9136         * timezone/europe: Likewise.
9137         * timezone/iso3166.tab: Likewise.
9138         * timezone/northamerica: Likewise.
9139         * timezone/southamerica: Likewise.
9140         * timezone/zone.tab: Likewise.
9142         * time/tzfile.c (__tzfile_read): Extend to handle new file format
9143         on machines with 64-bit time_t.
9145         * timezone/checktab.awk: Update from tzcode2006o.
9146         * timezone/ialloc.c: Likewise.
9147         * timezone/private.h: Likewise.
9148         * timezone/scheck.c: Likewise.
9149         * timezone/tzfile.h: Likewise.
9150         * timezone/tzselect.ksh: Likewise.
9151         * timezone/zdump.c: Likewise.
9152         * timezone/zic.c: Likewise.
9154         [BZ #3483]
9155         * elf/ldconfig.c (main): Call setlocale and textdomain.
9156         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9158         [BZ #3480]
9159         * manual/argp.texi: Fix typos.
9160         * manual/charset.texi: Likewise.
9161         * manual/errno.texi: Likewise.
9162         * manual/filesys.texi: Likewise.
9163         * manual/lang.texi: Likewise.
9164         * manual/maint.texi: Likewise.
9165         * manual/memory.texi: Likewise.
9166         * manual/message.texi: Likewise.
9167         * manual/resource.texi: Likewise.
9168         * manual/search.texi: Likewise.
9169         * manual/signal.texi: Likewise.
9170         * manual/startup.texi: Likewise.
9171         * manual/stdio.texi: Likewise.
9172         * manual/sysinfo.texi: Likewise.
9173         * manual/syslog.texi: Likewise.
9174         * manual/time.texi: Likewise.
9175         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9177         [BZ #3465]
9178         * sunrpc/clnt_raw.c: Minimal message improvements.
9179         * sunrpc/pm_getmaps.c: Likewise.
9180         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
9181         * nis/nis_print_group_entry.c: Likewise.
9182         * locale/programs/repertoire.c: Likewise.
9183         * locale/programs/charmap.c: Likewise.
9184         * malloc/memusage.sh: Likewise.
9185         * elf/dl-deps.c: Likewise.
9186         * locale/programs/ld-collate.c: Likewise.
9187         * libio/vswprintf.c: Likewise.
9188         * malloc/memusagestat.c: Likewise.
9189         * sunrpc/auth_unix.c: Likewise.
9190         * sunrpc/rpc_main.c: Likewise.
9191         * nscd/cache.c: Likewise.
9192         * locale/programs/repertoire.c: Unify output messages.
9193         * locale/programs/charmap.c: Likewise.
9194         * locale/programs/ld-ctype.c: Likewise.
9195         * locale/programs/ld-monetary.c: Likewise.
9196         * locale/programs/ld-numeric.c: Likewise.
9197         * locale/programs/ld-time.c: Likewise.
9198         * elf/ldconfig.c: Likewise.
9199         * nscd/selinux.c: Likewise.
9200         * elf/cache.c: Likewise.
9201         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9203         [BZ #3451]
9204         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
9205         change atomic.
9206         (ceil): Likewise.
9208 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
9210         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
9211         if N is one bigger than return value.
9212         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
9213         and l1 last arguments, if buf is defined, verify the return value
9214         equals to strlen (buf) and verify no byte beyond passed length
9215         is modified.
9217 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
9219         * po/sv.po: Update from translation team.
9221 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
9223         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
9224         noinline attribute.
9226 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
9228         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
9229         noinline attribute.
9231         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
9232         Use __new_sys_siglist instead of _sys_siglist_internal as
9233         second macro argument.
9234         (_old_sys_siglist): Use declare_symbol_alias macro instead of
9235         strong_alias.
9237 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
9239         [BZ #3493]
9240         * posix/unistd.h (sysconf): Remove const attribute.
9242         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
9243         temporary or deprecated addresses.
9244         Patch by Sridhar Samudrala <sri@us.ibm.com>.
9246         * string/Makefile (tests): Add tst-strxfrm2.
9247         * string/tst-strxfrm2.c: New file.
9249 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
9251         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
9252         rather than r->r_brk.
9254 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
9256         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
9257         optimization even if needed > n.
9259         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
9260         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
9261         return false, otherwise return true.
9262         (cache_rpath): Return decompose_rpath return value.
9264 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
9266         * include/libc-symbols.h (declare_symbol): Rename to...
9267         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
9268         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
9269         .size directive.
9270         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
9271         changes.
9272         * sysdeps/gnu/siglist.c: Likewise.
9274 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
9276         * sysdeps/powerpc/fpu/bits/mathinline.h
9277         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
9278         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
9280 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
9282         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
9283         Update handling of cache descriptor 0x49 for new models.
9284         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
9285         Likewise.
9287 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
9289         * malloc/memusage.c (dest): Reset not_me back to false after
9290         printing statistics.
9292 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
9294         * configure.in: Work around ld --help change and avoid -z relro
9295         test completely if the architecture doesn't care about security.
9297 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
9299         * po/sv.po: Update from translation team.
9301 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
9303         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
9304         generate compatibility version.
9306 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
9308         * configure.in: Relax -z relro requirement a bit.
9310         * po/sv.po: Update from translation team.
9312 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
9314         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
9315         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
9316         * elf/dl-close.c (_dl_close_worker): Likewise.
9317         * elf/dl-open.c (_dl_open_worker): Likewise.
9318         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
9320 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
9322         * configure.in: Require assembler support for visibility, compiler
9323         support for visibility and aliases, linker support for various -z
9324         options.
9325         * Makeconfig: Remove conditional code which now is unnecessary.
9326         * config.h.in: Likewise.
9327         * config.make.in: Likewise.
9328         * dlfcn/Makefile: Likewise.
9329         * elf/Makefile: Likewise.
9330         * elf/dl-load.c: Likewise.
9331         * elf/rtld.c: Likewise.
9332         * include/libc-symbols.h: Likewise.
9333         * include/stdio.h: Likewise.
9334         * io/Makefile: Likewise.
9335         * io/fstat.c: Likewise.
9336         * io/fstat64.c: Likewise.
9337         * io/fstatat.c: Likewise.
9338         * io/fstatat64.c: Likewise.
9339         * io/lstat.c: Likewise.
9340         * io/lstat64.c: Likewise.
9341         * io/mknod.c: Likewise.
9342         * io/mknodat.c: Likewise.
9343         * io/stat.c: Likewise.
9344         * io/stat64.c: Likewise.
9345         * libio/stdio.c: Likewise.
9346         * nscd/Makefile: Likewise.
9347         * stdlib/Makefile: Likewise.
9348         * stdlib/atexit.c: Likewise.
9349         * sysdeps/generic/ldsodefs.h: Likewise.
9350         * sysdeps/i386/dl-machine.h: Likewise.
9351         * sysdeps/i386/sysdep.h: Likewise.
9352         * sysdeps/i386/i686/memcmp.S: Likewise.
9353         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
9354         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9355         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
9357         * Makerules: USE_TLS support is now default.
9358         * tls.make.c: Likewise.
9359         * csu/Versions: Likewise.
9360         * csu/libc-start.c: Likewise.
9361         * csu/libc-tls.c: Likewise.
9362         * csu/version.c: Likewise.
9363         * dlfcn/dlinfo.c: Likewise.
9364         * elf/dl-addr.c: Likewise.
9365         * elf/dl-cache.c: Likewise.
9366         * elf/dl-close.c: Likewise.
9367         * elf/dl-iteratephdr.c: Likewise.
9368         * elf/dl-load.c: Likewise.
9369         * elf/dl-lookup.c: Likewise.
9370         * elf/dl-object.c: Likewise.
9371         * elf/dl-open.c: Likewise.
9372         * elf/dl-reloc.c: Likewise.
9373         * elf/dl-support.c: Likewise.
9374         * elf/dl-sym.c: Likewise.
9375         * elf/dl-sysdep.c: Likewise.
9376         * elf/dl-tls.c: Likewise.
9377         * elf/ldconfig.c: Likewise.
9378         * elf/rtld.c: Likewise.
9379         * elf/tst-tls-dlinfo.c: Likewise.
9380         * elf/tst-tls1.c: Likewise.
9381         * elf/tst-tls10.h: Likewise.
9382         * elf/tst-tls14.c: Likewise.
9383         * elf/tst-tls2.c: Likewise.
9384         * elf/tst-tls3.c: Likewise.
9385         * elf/tst-tls4.c: Likewise.
9386         * elf/tst-tls5.c: Likewise.
9387         * elf/tst-tls6.c: Likewise.
9388         * elf/tst-tls7.c: Likewise.
9389         * elf/tst-tls8.c: Likewise.
9390         * elf/tst-tls9.c: Likewise.
9391         * elf/tst-tlsmod1.c: Likewise.
9392         * elf/tst-tlsmod13.c: Likewise.
9393         * elf/tst-tlsmod13a.c: Likewise.
9394         * elf/tst-tlsmod14a.c: Likewise.
9395         * elf/tst-tlsmod2.c: Likewise.
9396         * elf/tst-tlsmod3.c: Likewise.
9397         * elf/tst-tlsmod4.c: Likewise.
9398         * elf/tst-tlsmod5.c: Likewise.
9399         * elf/tst-tlsmod6.c: Likewise.
9400         * include/errno.h: Likewise.
9401         * include/link.h: Likewise.
9402         * include/tls.h: Likewise.
9403         * locale/global-locale.c: Likewise.
9404         * locale/localeinfo.h: Likewise.
9405         * malloc/arena.c: Likewise.
9406         * malloc/hooks.c: Likewise.
9407         * malloc/malloc.c: Likewise.
9408         * resolv/Versions: Likewise.
9409         * sysdeps/alpha/dl-machine.h: Likewise.
9410         * sysdeps/alpha/libc-tls.c: Likewise.
9411         * sysdeps/generic/ldsodefs.h: Likewise.
9412         * sysdeps/generic/tls.h: Likewise.
9413         * sysdeps/i386/dl-machine.h: Likewise.
9414         * sysdeps/ia64/dl-machine.h: Likewise.
9415         * sysdeps/ia64/libc-tls.c: Likewise.
9416         * sysdeps/mach/hurd/fork.c: Likewise.
9417         * sysdeps/mach/hurd/i386/tls.h: Likewise.
9418         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
9419         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
9420         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
9421         * sysdeps/s390/libc-tls.c: Likewise.
9422         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9423         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9424         * sysdeps/sh/dl-machine.h: Likewise.
9425         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9426         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9427         * sysdeps/x86_64/dl-machine.h: Likewise.
9429         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
9430         split out locking and parameter checking.
9431         (_dl_close): Call _dl_close_worker after locking and checking.
9432         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
9433         _dl_close.
9434         * elf/Makefile: Add rules to build and run tst-thrlock.
9435         * elf/tst-thrlock.c:  New file.
9437         [BZ #3426]
9438         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
9439         reality.
9441         [BZ #3429]
9442         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
9443         we are sure we do not need it anymore for _dl_close.  Also move
9444         the asserts inside the lock region.
9445         Patch mostly by Suzuki <suzuki@in.ibm.com>.
9447 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
9449         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
9450         argument.
9451         (_dl_lookup_symbol_x): Adjust caller.
9453         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
9454         _ns_global_scope.
9455         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
9457         * elf/dl-libc.c: Revert l_scope name changes.
9458         * elf/dl-load.c: Likewise.
9459         * elf/dl-object.c: Likewise.
9460         * elf/rtld.c: Likewise.
9461         * elf/dl-close.c (_dl_close): Likewise.
9462         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
9463         always use __rtld_mrlock_{change,done}.  Always free old scope list
9464         here if not l_scope_mem.
9465         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
9466         change.  Never free scope list here.  Just __rtld_mrlock_lock before
9467         the lookup and __rtld_mrlock_unlock it after the lookup.
9468         * elf/dl-sym.c: Likewise.
9469         * include/link.h (struct r_scoperec): Remove.
9470         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
9471         with l_scope_mem and l_scoperec_lock with l_scope_lock.
9473 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
9475         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
9477 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
9479         * configure.in: Disable building profile libraries by default.
9481 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9483         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
9484         as signed longs, check for x_base + pos overflow.
9485         * sunrpc/Makefile (tests): Add tst-xdrmem2.
9486         * sunrpc/tst-xdrmem2.c: New test.
9488 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
9490         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
9491         _dl_lookup_symbol_x code.
9493 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9495         * elf/dl-runtime.c: Include sysdep-cancel.h.
9496         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
9497         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
9498         instead of catomic_* macros.
9499         * elf/dl-sym.c: Include sysdep-cancel.h.
9500         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
9501         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
9502         * elf/dl-close.c: Include sysdep-cancel.h.
9503         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
9504         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
9505         * elf/dl-open.c: Include sysdep-cancel.h.
9506         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
9507         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
9509 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9511         [BZ #3313]
9512         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
9513         fastbin rather than end of fastbin array.
9515 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
9517         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
9518         body macro.
9519         * sysdeps/x86_64/bits/atomic.h
9520         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
9521         (catomic_decrement): Use correct body macro.
9523 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9525         * include/atomic.h: Add a unique prefix to all local variables
9526         in macros.
9527         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
9529 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
9531         [BZ #3369]
9532         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
9533         and 7.
9535 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
9537         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
9539 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
9541         [BZ #3313]
9542         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
9543         determine highest fast bin to consolidate, always look into all of
9544         them.
9545         (do_check_malloc_state): Only require for empty bins for large
9546         sizes in main arena.
9548         * libio/stdio.h: Add more __wur attributes.
9550         * elf/dl-minimal.c (realloc): Optimize last patch.
9552 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
9554         [BZ #3352]
9555         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
9556         and use memcpy() if it does.
9558 2006-11-12  Andreas Jaeger  <aj@suse.de>
9560         [BZ #2510]
9561         * manual/search.texi (Hash Search Function): Clarify.
9562         (Array Search Function): Clarify.
9564 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
9566         [BZ #2830]
9567         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
9568         shifting.
9569         * math/atest-exp2.c (read_mpn_hex): Likewise.
9570         * math/atest-sincos.c (main): Likewise.
9572 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
9574         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
9575         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
9576         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
9577         version GLIBC_2.6.
9578         * Versions.def: Add GLIBC_2.6 for libc.
9580         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
9582         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
9584 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
9586         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
9588         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
9590         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
9591         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
9593 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
9595         * include/atomic.c: Define catomic_* operations.
9596         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
9597         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
9598         * malloc/memusage.c: Likewise.
9599         * gmon/mcount.c: Likewise.
9600         * elf/dl-close.c: Likewise.
9601         * elf/dl-open.c: Likewise.
9602         * elf/dl-profile.c: Likewise.
9603         * elf/dl-sym.c: Likewise.
9604         * elf/dl-runtime.c: Likewise.
9605         * elf/dl-fptr.c: Likewise.
9606         * resolv/res_libc.c: Likewise.
9608 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
9610         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
9611         components which lack them.
9613         * nis/nis_subr.c (nis_getnames): Make sure that we always return
9614         at least one entry consisting of the parameter concatenated with
9615         the domain.
9617 2006-10-10  Roland McGrath  <roland@frob.com>
9619         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
9620         * sysdeps/mach/hurd/futimes.c: Likewise.
9621         * sysdeps/mach/hurd/lutimes.c: Likewise.
9623 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
9624             Jakub Jelinek  <jakub@redhat.com>
9626         Implement reference counting of scope records.
9627         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
9628         from the list in objects which remain.  Always allocate new scope
9629         record.
9630         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
9631         don't resize, allocate a new one.
9632         * elf/dl-runtime.c: Update reference counters before using a scope
9633         array.
9634         * elf/dl-sym.c: Likewise.
9635         * elf/dl-libc.c: Adjust for l_scope name change.
9636         * elf/dl-load.c: Likewise.
9637         * elf/dl-object.c: Likewise.
9638         * elf/rtld.c: Likewise.
9639         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
9640         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
9641         Add l_scoperec_lock.
9642         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
9643         * sysdeps/generic/rtld-lowlevel.h: New file.
9645         * include/atomic.h: Rename atomic_and to atomic_and_val and
9646         atomic_or to atomic_or_val.  Define new macros atomic_and and
9647         atomic_or which do not return values.
9648         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
9649         Various cleanups.
9650         * sysdeps/i386/i486/bits/atomic.h: Likewise.
9652         * po/sv.po: Update from translation team.
9654 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
9656         * Versions.def: Add GLIBC_2.6 to libpthread.
9658         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
9659         (versioned_symbol): Likewise.
9660         (compat_symbol): Likewise.
9662         * po/tr.po: Update from translation team.
9664 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
9666         * nis/Banner: Removed.  It's been integral part forever and the
9667         author info is incomplete anyway.
9668         * libio/Banner: Likewise.
9670         * nis/nis_table.c (nis_list): If __follow_path fails in the new
9671         code, make sure the nis_freeresult call doesn't crash and that the
9672         result is reported correctly.
9674 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
9676         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
9677         when callback is NULL.
9679         * nis/Versions (libnss_nisplus): Add
9680         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
9681         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
9682         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
9683         _nss_create_tablename): Rename to...
9684         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
9685         ... these.  No longer static.
9686         (internal_setgrent): Adjust users.
9687         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
9688         Don't use locking around _nss_grp_create_tablename call.
9689         * nis/nss_nisplus/nisplus-initgroups.c: New file.
9691 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
9693         * version.h (VERSION): Bump to 2.5.90 for new development tree.
9695 2006-10-06  Andreas Jaeger  <aj@suse.de>
9697         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
9699 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
9701         * po/pl.po: Update from translation team.
9703         * nscd/nscd.c (main): Fix typo in message.
9704         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
9706 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
9708         [BZ #3291]
9709         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
9710         errno.h, signal.h, unistd.h and sysdep-cancel.h.
9711         (__sigprocmask): Define.
9713 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
9715         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
9716         used.
9718 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
9720         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
9721         in oldtotal and newtotal calculation.
9722         * nscd/nscd-client.h (struct mapped_database): Add datasize
9723         field.
9724         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
9725         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
9726         increased.
9727         (__nscd_cache_search): Add checks to make sure we never reference
9728         data beyond the current mapping.
9730 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
9732         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
9733         variables const to avoid compiler warnings.
9735         * io/fts.c (fts_close): Remove redundant checks.
9736         (fts_build): Likewise.
9737         (fts_palloc): Likewise.
9739         * manual/message.texi (Advanced gettext functions,
9740         Using gettextized software): Fix typos.
9742 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
9744         * posix/glob.c (glob_in_dir): Add some comments and asserts to
9745         explain why there are no leaks.
9747 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
9749         * libio/wmemstream.c: Include <wchar.h>.
9750         * libio/bug-wmemstream1.c: Likewise.
9751         * libio/tst-wmemstream1.c: Likewise.
9752         * libio/tst-wmemstream2.c: Likewise.
9754         * version.h (RELEASE): Bump to 2.5.
9755         * README: Regenerated.
9757         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
9759         [BZ #3273]
9760         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
9761         found no group members.
9762         Patch by Petr Baudis.
9764 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
9766         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
9767         assert bootstrap_map.l_tls_modid is zero.
9768         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
9769         if USE___THREAD.
9771 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
9773         * libio/stdio.h: Move open_wmemstream prototype to ...
9774         * wcsmbs/wchar.h: ... here.
9776 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
9778         [BZ #3252]
9779         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
9780         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
9781         __{,l}chown to handle the rest.
9782         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
9783         fchownat syscall and __ASSUME_32BITUIDS case inline, call
9784         __{,l}chown to handle the rest.
9785         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
9786         i386/fchownat.c.
9787         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
9788         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
9790         [BZ #3253]
9791         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
9792         time, rather allocate increasingly bigger arrays of pointers, if
9793         possible with alloca, if too large with malloc.
9795 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
9797         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
9799         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
9801 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
9803         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
9804         home addresses.
9805         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
9806         IFA_F_HOMEADDRESS flag for interfaces.
9807         * include/ifaddrs.h (struct in6addrinfo): Define
9808         in6ai_homeaddress.
9810 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
9812         [BZ #3225]
9813         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
9814         PTR_DEMANGLE3): Define.
9815         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
9816         PTR_DEMANGLE3): Likewise.
9817         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
9818         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
9819         Likewise.
9820         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
9822 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
9824         * po/libc.pot: Regenerated.
9825         * po/be.po: Updated.
9826         * po/ca.po: Likewise.
9827         * po/cs.po: Likewise.
9828         * po/da.po: Likewise.
9829         * po/de.po: Likewise.
9830         * po/el.po: Likewise.
9831         * po/en_GB.po: Likewise.
9832         * po/es.po: Likewise.
9833         * po/fi.po: Likewise.
9834         * po/fr.po: Likewise.
9835         * po/gl.po: Likewise.
9836         * po/hr.po: Likewise.
9837         * po/hu.po: Likewise.
9838         * po/ja.po: Likewise.
9839         * po/ko.po: Likewise.
9840         * po/nb.po: Likewise.
9841         * po/nl.po: Likewise.
9842         * po/pl.po: Likewise.
9843         * po/pt_BR.po: Likewise.
9844         * po/ru.po: Likewise.
9845         * po/rw.po: Likewise.
9846         * po/sk.po: Likewise.
9847         * po/sv.po: Likewise.
9848         * po/tr.po: Likewise.
9849         * po/zh_CN.po: Likewise.
9850         * po/zh_TW.po: Likewise.
9852         [BZ #3137]
9853         * iconv/iconv_prog.c (main): Fix spelling in error message.
9854         * iconv/iconvconfig.c (main): Likewise.
9855         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
9856         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
9857         * locale/programs/localedef.c (main): Likewise.
9858         * locale/programs/repertoire.c (repertoire_read): Likewise.
9859         * timezone/zdump.c (main): Likewise.
9860         * nscd/connections.c (handle_request): Fix spelling in log message.
9861         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
9863 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
9865         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
9866         interfaces.
9868 2006-09-20  Andreas Jaeger  <aj@suse.de>
9870         * math/libm-test.inc (lrint_test_upward): Fix typo.
9872 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
9874         [BZ #2592]
9875         * math/libm-test.inc (lrint_test_tonearest): New function.
9876         (lrint_test_towardzero): New function.
9877         (lrint_test_downward): New function.
9878         (lrint_test_upward): New function.
9879         (main): Run these new tests.
9880         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
9881         of values near to 0.
9882         (two52): Use double not long double.
9883         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
9884         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
9885         (two23): Use float not double.
9886         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
9887         (two23): Use float not double.
9888         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
9889         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
9890         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
9891         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
9893 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9895         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
9896         Cast sp to unsigned long to avoid compiler warning.
9897         Use __makecontext_ret function instead of a trampoline on the stack.
9898         (__makecontext_ret): New function.
9899         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
9901 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
9903         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
9904         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
9905         bits.
9907 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
9909         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
9910         sure no reference to the unloaded map's search list remains in the
9911         dependency's scope.
9913 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
9915         * elf/Makefile: Add rules to build and run unload7 test.
9916         * elf/unload7.c: New test.
9917         * elf/unload7mod1.c: New file.
9918         * elf/unload7mod2.c: New file.
9920 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
9922         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
9923         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
9924         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
9925         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
9926         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
9927         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
9928         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
9929         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
9930         PTRACE_GETEVENTMSG): Likewise.
9931         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
9932         values.
9934 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
9936         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
9937         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
9938         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
9939         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
9941 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
9943         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
9944         write '\0' to the fd.
9945         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
9946         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
9947         Change regs to unsigned long pointer from unsigned int, fix fscr
9948         offset.
9950 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
9952         * io/Makefile (CFLAGS-fstatat.c): Set.
9953         (CFLAGS-fstatat64.c): Likewise.
9954         (CFLAGS-mknodat.c): Likewise.
9956         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
9957         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9958         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
9959         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
9961 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
9962             Steven Munroe  <sjmunroe@us.ibm.com>
9964         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
9965         names to the beginning.  Rename "cell" to "cellbe".
9966         (_dl_powerpc_platforms): New.
9967         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
9968         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
9969         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
9970         (_DL_HWCAP_PLATFORM): Define to new mask.
9971         (_dl_platform_string, _dl_string_platform): New functions.
9972         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
9973         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
9975 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
9977         [BZ #2526]
9978         * README.libm: Fix a thinko in sqrt algorithm description.
9980         [BZ #3143]
9981         * manual/string.texi (argz_delete): Fix prototype.
9982         Patch by <alpt@freaknet.org>.
9984 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
9986         [BZ #3138]
9987         * io/test-lfs.c (do_prepare): Give name_len type size_t.
9988         * io/tst-fcntl.c (do_prepare): Likewise.
9989         * posix/tst-exec.c (do_prepare): Likewise.
9990         * posix/tst-preadwrite.c (do_prepare): Likewise.
9991         * posix/tst-spawn.c (do_prepare): Likewise.
9992         * posix/tst-truncate.c (do_prepare): Likewise.
9993         * rt/tst-aio.c (do_prepare): Likewise.
9994         * rt/tst-aio64.c (do_prepare): Likewise.
9995         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
9996         size_t.
9998 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
10000         [BZ #2821]
10001         * time/mktime.c (guess_time_tm): Fix overflow detection.
10002         * time/Makefile (tests): Add bug-mktime1.
10003         * time/bug-mktime1.c: New file.
10005         [BZ #3189, #3188]
10006         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
10007         (mremap): Likewise.
10009 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
10011         [BZ #1006]
10012         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
10013         Ensure relocation doesn't clobber any bits outside of the
10014         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
10015         R_SPARC_HI22 and R_SPARC_H44.
10017         [BZ #2775]
10018         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
10019         (long) (MINSIZE + nb - old_size) is positive.
10021         * malloc/arena.c (grow_heap): When growing bail even if new_size
10022         is negative.
10024         [BZ #3155]
10025         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
10026         stack below r1.
10028 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
10030         * posix/regex_internal.c (re_string_reconstruct): Handle
10031         offset < pstr->valid_raw_len && pstr->offsets_needed case.
10032         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
10033         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
10034         re_string_context_at.
10035         * posix/Makefile: Add rules to build and run bug-regex26 test.
10036         * posix/bug-regex26.c: New test.
10038         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
10039         rather than col_sym_free.  Move seqp declaration earlier.
10041         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
10043 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
10045         * nscd/initgrcache.c (addinitgroupsX): Move any_success
10046         decl before first goto out.
10048 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
10050         * Makerules (shlib.lds): If have-hash-style, put .hash section
10051         at the end of the RO segment.
10053 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
10055         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
10056         style hash table format is used.
10058 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
10060         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
10061         randomization rather than before.
10062         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
10064 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
10066         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
10068         * malloc/malloc.c (_int_malloc): Use full list insert and not
10069         shortcut which assumes the list is empty for large requests
10070         too.
10072         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
10074 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
10076         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
10077         and offout arguments to the prototype.
10078         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
10079         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
10080         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
10081         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
10082         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
10083         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
10084         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
10085         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
10087 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
10089         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
10091         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
10092         dlopen parameters.
10094 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
10096         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
10097         only if herrno is NETDB_INTERNAL.  Handle errors other than
10098         ERANGE outside of the loops, handle TRY_AGAIN.
10100         * locale/programs/ld-ctype.c (translit_flatten): Issue error
10101         if other's ctype category was missing.
10102         * locale/programs/ld-collate.c (collate_read): Return if
10103         copy_locale's collate category is missing.
10105 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
10107         [BZ #2684]
10108         * malloc/malloc.c (public_rEALLOc): Try harder by using other
10109         arenas if allocation failed.
10110         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
10112 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
10114         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
10115         waste bins[0..1].
10116         (malloc_state): Reduce bins size by 2.
10117         (_int_malloc): Fix test for large enough buffer for early termination.
10118         When no unsorted block matches perfectly and an exiting block has
10119         to be split, use full list insert and not shortcut which assumes
10120         the list is empty.
10122         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
10123         failure.
10125 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
10127         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
10128         do anything.
10130         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
10131         symbol require exact match (these are PLTs).
10132         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
10133         (_dl_ppc64_addr_sym_match): Likewise.
10135         [BZ #2683]
10136         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
10137         If symbol has a value use it.
10138         * elf/tst-dladdr1.c: New file.
10139         * elf/Makefile: Add rules to build and run tst-addr1.
10141 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
10143         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
10144         keeps failing and heap growth or new heap creation isn't
10145         successful either.
10146         * malloc/tst-malloc.c (main): Add new tests.
10148 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
10150         [BZ #2734]
10151         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
10152         as in the x86-64 code to use bswap.
10154 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
10156         [BZ #2680]
10157         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
10158         __USE_UNIX98.
10159         * posix/bits/unistd.h: Likewise.
10161 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
10163         [BZ #2751]
10164         * string/strchr.c: Add cast to avoid warning.
10166 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
10168         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
10169         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
10170         limit is needed to avoid the exploding of the address space
10171         requirement for secondary heaps.
10172         * malloc/arena.c (HEAP_MAX_SIZE): Define using
10173         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
10175 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
10177         [BZ #3018]
10178         * Makerules (depfiles): Handle extra-test-objs the same as
10179         extra-objs.
10180         (common-mostlyclean): Likewise.
10181         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
10182         instead.
10183         * elf/Makefile (extra-objs): Likewise.
10184         * stdlib/Makefile (extra-objs): Likewise.
10186 2006-08-14  Eric Blake  <ebb9@byu.net>
10188         [BZ #3044]
10189         * misc/error.h: Assume C89 or better.
10190         * misc/error.c: Likewise.
10192 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
10194         [BZ #3040]
10195         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
10196         __ASSUME_ATFCTS is defined.
10198 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
10200         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
10201         to sort in each call.
10203         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
10204         is empty simply return and use next service.
10205         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
10207         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
10208         tells us when not finding a charmap file is an error.
10209         * locale/programs/charmap.h: Adjust charmap_read prototype.
10210         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
10211         cannot find a charmap.
10212         * locale/programs/localedef.c (main): Adjust charmap_read call.
10214 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
10216         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
10217         sysdeps/posix/pause.c implementation instead.
10219 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
10221         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
10222         to EPERM.
10224 2006-08-13  Andreas Schwab  <schwab@suse.de>
10226         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
10227         Don't clobber caller's LRSAVE.
10228         (_dl_prof_resolve): Likewise.
10230 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
10232         [BZ #1996]
10233         * libio/memstream.c (open_memstream): Allocate initial buffer with
10234         calloc.
10235         * libio/wmemstream.c (open_wmemstream): Likewise.
10236         * libio/strops.c: Pretty printing.
10237         (_IO_str_overflow): Clear uninitialized part of the new buffer.
10238         (enlarge_userbuf): New function.
10239         (_IO_str_seekoff): Call it if seek position is larger than current
10240         buffer.
10241         * libio/wstrops.c: Likewise.
10242         * libio/vasprintf.c: Add comment as to why we do not have to use
10243         calloc instead of malloc to allocate initial buffer.
10244         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
10245         * libio/bug-memstream1.c: New file.
10246         * libio/bug-wmemstream1.c: New file.
10248 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
10250         * libio/wstrops.c: Remove dead macro definitions and comments.
10251         * libio/strops.c: Likewise.
10253         [BZ #2764]
10254         * login/utmpname.c (__utmpname): Remove unnecessary test.
10256 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
10258         [BZ #2832]
10259         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
10260         0s from integers.
10262 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
10264         [BZ #2987]
10265         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
10266         for CPU clocks.
10267         * sysdeps/unix/clock_settime.c: Add support for platform-specific
10268         setting of CPU clocks.
10270 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10272         [BZ #2841]
10273         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
10274         since C99 requires the result to promote to 'int' when uint_least8_t
10275         and uint_least16_t promote to 'int'.
10277 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
10279         [BZ #3013]
10280         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
10281         lenght of one output field, correct bitmask creation.
10282         * locale/programs/ld-time.c: Add alignment.
10284         [BZ #2997]
10285         * misc/error.c: Add space between program name and message if file
10286         name is missing.
10288 2006-08-03  Eric Blake  <ebb9@byu.net>
10290         [BZ #2998]
10291         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
10293 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
10295         * malloc/memusagestat.c: Silence warnings.
10297         * malloc/malloc.c: Dynamically size mmap treshold if the program
10298         frees mmaped blocks.
10299         Patch by Valerie Henson and Arjan van de Ven.
10301 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
10303         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
10304         __USE_GNU.
10306         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
10307         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
10308         (DEF): Don't put the var into .gnu.linkonce.r.* section.
10309         Only provide var definitions in strtol_l (or for *ull*
10310         in strtoll_l).
10312         * stdio-common/bug16.c (tests): New array.
10313         (do_tests): Allow the first hexadecimal digit
10314         to be 1, 2, 4 or 8.  Do 3 additional tests.
10316         * sysdeps/s390/fpu/libm-test-ulps: Update.
10318         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
10319         fchownat syscall if available.
10320         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
10321         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
10322         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
10324 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
10326         * nis/nis_xdr.c: Avoid some function calls.
10328 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
10329             Ulrich Drepper  <drepper@redhat.com>
10331         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
10332         short cut if only one name component is stripped away.
10334 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
10336         * nis/nis_call.c: Minor cleanups throughout.
10337         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
10338         (first_shoot): Add search_parent_first parameter.  Only if it is set
10339         search parent server first.
10340         If directory for table found through cold start cache is not the same
10341         as referenced in the cache, don't use it.
10342         (__nisfind_server): Take additional parameter.  Pass it on to
10343         first_shoot.
10344         (__prepare_niscall): Adjust __nisfind_server call.
10345         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
10346         * nis/nis_table.c: Adjust __nisfind_server call.
10347         * nis/nis_lookup.c: Likewise.
10348         (nis_lookup): Don't loop endlessly if name is reduced to ".".
10350 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
10352         [BZ #2182]
10353         * math/s_cacosh.c: Return values from positive branch.
10354         * math/s_cacoshf.c: Likewise.
10355         * math/s_cacoshl.c: Likewise.
10357         [BZ #2883]
10358         * sysvipc/sys/msg.h: Change return value to ssize_t.
10359         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
10360         * sysvipc/msgrcv.c: Likewise.
10361         * include/sys/msg.h: Likewise.
10363         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
10364         test introduced in patch for bz #661.
10365         (getgrouplist): Simplify code a bit.  Don't allocate one additional
10366         element for NEWGROUPS.
10368         [BZ #2908]
10369         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
10370         'f', use '1' as leading digit not '\1'.
10371         * stdio-common/Makefile (tests): Add bug16.
10372         * stdio-common/bug16.c: New file.
10374         [BZ #2914]
10375         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
10376         and don't try to open it.  The patch introducing the macro
10377         contained a bug and used the same file name as the new file
10378         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
10379         this out completely.
10381         [BZ #2926]
10382         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
10383         Patch by Jerry James <Jerry.James@usu.edu>.
10385         * rt/Makefile (tests): Add tst-clock2.
10386         * rt/tst-clock2.c: New file.
10388         [BZ #2978]
10389         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
10390         function and its parameters and pass it to new thread.
10391         (__gai_notify): Add support for alternative waiting for completion.
10392         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
10393         waiting for completion.
10394         * resolv/getaddrinfo_a.c: Likewise.
10395         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
10396         waiting for completion is used.
10397         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
10398         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
10399         * resolv/gai_error.c: Likewise.
10400         * resolv/gai_sigqueue.c: Likewise.
10402 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
10404         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
10405         errno to EBADF and return MACH_PORT_NULL.
10407 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
10409         [BZ #2980]
10410         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
10412 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
10414         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
10415         walk them instead of the symbol table.
10417 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
10419         [BZ #2098]
10420         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
10421         status of NSS calls, not the number of returned entries.
10423         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
10424         request_key, keyctl.
10426 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
10428         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
10430 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
10432         * elf/tst-auditmod1.c: Fix typo in #error.
10434 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
10436         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
10438         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
10440 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
10442         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
10443         that the directory is empty even on non-POSIX filesystems.
10445 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
10447         * elf/dl-open.c (dl_open_worker): Add branch prediction.
10449         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
10450         the backend NSS module.  If backend setgrent call failed, don't have
10451         internal_setgrent fail.  Just remember this until it is needed.
10452         * nis/nss_compat/compat-pwd.c: Likewise.
10453         * nis/nss_compat/compat-spwd.c: Likewise.
10455 2006-07-30  Roland McGrath  <roland@redhat.com>
10457         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
10458         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
10459         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
10460         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
10462         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
10463         (nanosleep_not_cancel): New macro.
10464         (sigsuspend_not_cancel): new macro.
10465         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
10466         (do_sigsuspend): Define as inline.
10467         (__sigsuspend): Always use do_sigsuspend.
10468         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
10469         * include/signal.h: Declare __sigsuspend_nocancel.
10470         * sysdeps/posix/pause.c
10471         [! NO_CANCELLATION] (__pause_nocancel): New function.
10473         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
10474         * include/time.h (__nanosleep_nocancel): Likewise.
10476 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
10478         * locale/programs/localedef.c (add_to_readlist): Rename local
10479         variables to avoid confusion.
10481         * locale/programs/charmap.c (charmap_read): Emit error message if
10482         charmap couldn't be found or read.
10484 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
10486         * sysdeps/unix/sysv/linux/kernel-features.h: Define
10487         __ASSUME_FUTEX_LOCK_PI.
10488         * include/time.h: Declare __nanosleep_nocancel.
10489         * include/unistd.h: Declare __pause_nocancel.
10491         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
10492         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
10493         get the __stack_chk_fail_local definition when it's needed.
10495 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
10497         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
10498         * dlfcn/bug-atexit3.c: New file.
10499         * dlfcn/bug-atexit3-lib.cc: New file.
10501         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
10502         used when the namespace is not the base namespace.
10504 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
10506         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
10507         (__new_exitfn): Bump it in every successful call.
10508         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
10509         more exit handlers, call them right away.
10510         * stdlib/exit.h: Declare __new_exitfn_called.
10512 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
10514         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
10515         calling registered handler.
10517         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
10518         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10519         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10520         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10521         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10522         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10523         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10524         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10526 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
10528         * elf/dl-lookup.c (dl_new_hash): New functions.
10529         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
10530         value here.  Compute new-style hash value.  Pass new hash value
10531         and reference to variable with the old value to do_lookup_x.
10532         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
10533         old-style hash table.
10534         (_dl_debug_bindings): Pass new hash value and reference to variable
10535         with the old value to do_lookup_x.
10536         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
10537         new-style hash value and change old-style hash value parameter to
10538         be a reference.  Reoganize functions to determine whether
10539         new-style hash table is available.  Only fall back on old-style
10540         table.  If old-style hash value is needed, compute it here.
10541         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
10542         entry.
10543         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
10544         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
10545         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
10546         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
10547         * Makeconfig: If linker supports --hash-style option add it to all
10548         linker command lines to build DSOs.
10549         * config.make.in: Define have-hash-style.
10550         * configure.in: Test whether linker supports --hash-style option.
10552         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
10553         * sysdeps/generic/ldsodefs.h: Adjust prototype.
10555 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
10557         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
10558         auditing.
10560         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
10561         RPATH of main map twice.
10563 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
10565         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
10566         look further, return original strings.
10567         (_nl_find_msg): Do not return found translation if the conversion
10568         failed.  Either signal the string is unusable or that something went
10569         wrong and the original should be used.
10571 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
10573         * string/_strerror.c (__strerror_r): Add __builtin_expect.
10575 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
10577         [BZ #2766]
10578         * misc/insremque.c (insque): Handle prev == NULL.
10579         * misc/Makefile (tests): Add tst-insremque.
10580         * misc/tst-insremque.c: New test.
10582 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
10584         [BZ #2792]
10585         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
10586         conflict with DL_DST_REQUIRED.
10588 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
10590         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
10591         match what Solaris does.
10593 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
10595         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
10596         local_setegid instead of seteuid and setegid.
10597         * sysdeps/generic/local-setxid.h: New file.
10598         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
10600         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
10602         * string/Makefile (tests): Add bug-envz1.
10603         * string/bug-envz1.c: New file.
10605 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
10607         * posix/regex_internal.c (re_string_skip_chars): If no character has
10608         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
10609         to the byte which couldn't be converted.
10610         (re_string_reconstruct): Don't clear valid_raw_len before calling
10611         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
10612         tip_context using re_string_context_at.
10613         * posix/Makefile: Add rules to build and run bug-regex25 test.
10614         * posix/bug-regex25.c: New test.
10616 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
10618         [BZ #2703]
10619         * string/envz.c (envz_strip): Correct erroneously reversed src
10620         and dest parameters to memmove() invocation.
10622 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
10624         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
10625         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
10626         to make sure the database has been already invalidated.
10627         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
10628         after the cache has been invalidated.  Use pthread_mutex_lock rather
10629         than pthread_mutex_trylock if fd != -1.
10630         * nscd/connections.c (invalidate_cache): Add fd argument, write
10631         response to fd if not calling prune_cache, pass fd to prune_cache.
10632         (handle_request): Adjust invalidate_cache caller.
10633         (nscd_run): Pass -1 as fd to prune_cache.
10635 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
10637         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
10638         the correct place.
10640 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
10642         * nscd/nscd.h (struct database_dyn): Add prunelock field.
10643         * nscd/cache.c (prune_cache): Take prunelock before starting the
10644         work.  Just return in case it is already taken.
10645         * nscd/connections.c (dbs): Initialize .prunelock.
10647 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
10649         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
10650         copying.  No need to allocate new array for group members.  Just
10651         move the pointers and update the size.
10653         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
10654         Avoid memory leak in case realloc fails.  Simplification for
10655         better code generation.
10657         Avoid deprecation warning because of libc_hidden_proto for
10658         inet6_option_alloc.
10659         * inet/inet6_option.c (option_alloc): Renamed from
10660         inet6_option_alloc.  Made static.
10661         (inet6_option_alloc): Now a simple wrapper around option_alloc.
10662         (inet6_option_append): Call option_alloc.
10663         * include/netinet/in.h: Remove libc_hidden_proto for
10664         inet6_option_alloc.
10666         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
10667         for cleanup when cb!=NULL [Coverity CID 233].
10669 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
10671         [BZ #2693]
10672         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
10673         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
10674         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
10675         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
10676         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
10677         and inet6_rth_getaddr.
10678         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
10679         array.
10680         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
10681         Mark inet6_option_* interfaces as deprecated.
10682         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
10683         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
10684         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
10685         inet6_rth_segments, and inet6_rth_getaddr.
10686         * inet/inet6_opt.c: New file.
10687         * inet/inet6_rth.c: New file.
10689         * inet/netinet/icmp6.h: Pretty printing.
10691         [BZ #2683]
10692         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
10694 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
10696         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
10697         doing it all here.  When server does not know the answer do not
10698         fail immediate, try parent first.
10700         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
10701         overflow test.
10703 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
10705         * nis/nis_call.c (__prepare_niscall): New function.  Split out
10706         from __do_niscall.
10707         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
10708         and exported.
10709         (__follow_path): New function.  Split out from nis_list.
10710         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
10711         _xdr_nis_result.
10712         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
10713         _xdr_nis_result.
10714         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
10715         and __follow_path.
10716         * nis/Versions: Export __prepare_niscall, __create_ib_request,
10717         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
10718         from libnsl for version GLIBC_PRIVATE.
10719         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
10720         Remove entry parameter from _nss_nisplus_parse_pwent and
10721         _nss_nisplus_parse_grent.
10722         * nis/nss_nisplus/nisplus-parser.c: Likewise.
10723         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
10724         again.  Rewrite getpwent handling to not use nis_first_entry and
10725         nis_next_entry.  Roll out own niscall handling.
10726         * nis/nss_nisplus/nisplus-grp.c: Likewise.
10728         * sunrpc/xdr_rec.c: Fix typo in comment.
10730 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
10732         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
10733         handling.
10735         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
10736         to allocate memory for my_pollfd.  Better initialization of
10737         cb_is_running.  Use TEMP_FAILURE_RETRY.
10739         * malloc/memusage.sh (memusageso): Add quotes.
10740         (memusagestat): Likewise.
10741         * debug/xtrace.sh (pcprofileso): Likewise.
10742         (pcprofiledump): Likewise.
10743         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
10744         replacement.
10745         * malloc/Makefile ($(objpfx)memusage): Likewise.
10747         * nis/nis_callback.c (__nis_create_callback): Calls to
10748         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
10749         asprintf call fails.
10751         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
10752         no uninitialized memory is passed to sendto.
10754 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
10756         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
10757         of snprintf+strdup.  Handle OOM.
10758         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
10759         cb->serv together.  Remove now obsolete free calls.
10760         (__nis_destroy_callback): Remove now obsolete free call.
10762 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
10764         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
10765         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
10766         and ULA respectively). Set precedence for IPv4 address to 10 as
10767         defined in RFC3484 for preferring IPv6.
10768         * posix/gai.conf: Update to match the new default tables.
10770 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
10772         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
10773         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
10774         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
10775         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
10777         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
10778         Removed.
10779         (init_nss_interface): Remove initialization of these variables.
10781 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
10783         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
10784         nis_free_directory forward to avoid duplication.
10786 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
10788         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
10789         rec_dirsearch returning NULL.
10790         (first_shoot): Handle __nis_finddirectory returning NULL.
10791         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
10793         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
10794         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
10796 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
10798         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
10799         pid changed.
10801 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
10803         * include/rpc/pmap_prot.h: Mark all functions as hidden.
10805         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
10806         * nscd/nscd_getgr_r.c: Likewise.
10808         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
10810         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
10811         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
10813         * stdlib/longlong.h (__clz_tab): Mark as hidden.
10815         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
10817         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
10819         * include/rpc/auth.h: Mark xdr_des_block_internal and
10820         xdr_opaque_auth_internal as hidden.
10822         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
10823         hidden.
10825         * include/rpc/xdr.h: Mark all _internal functions as hidden.
10827         * misc/getusershell.c (okshells): Don't use static initializers,
10828         do it dynamically.
10830         * stdlib/fmtmsg.c (keywords): Change type of len element to
10831         uint32_t to not waste space on 64bit machines.
10833         * locale/setlocale.c: Change _nl_category_names into a string.
10834         Add new _nl_category_name_idxs.  Change all users.
10835         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
10836         Declare _nl_category_name_idxs.
10837         * locale/findlocale.c: Adjust for _nl_category_names change.
10838         * locale/loadlocale.c: Likewise.
10839         * locale/newlocale.c: Likewise.
10840         * intl/dcigettext.c: Likewise.
10842         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
10843         (add_alias2): ...here.  New function.
10844         (__gconv_read_conf): Simplify builtin alias handling.
10845         (builtin_aliases): Convert to string to avoid relocations.
10846         * iconv/gconv_builtin.h: Add comment about correct formatting.
10848 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
10850         * resolv/res_debug.c (loc_ntoa): Make error const.
10852 2006-05-14  Andreas Schwab  <schwab@suse.de>
10854         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
10856 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
10858         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
10859         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
10860         sizeof (cpu_set_t).
10862 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
10864         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
10866         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
10868         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
10869         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
10871         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
10872         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
10874         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
10875         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
10876         xdr_cback_data.
10878         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
10879         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
10880         xdr_ypupdate_args.
10882         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
10883         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
10885         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
10886         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
10888         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
10889         * include/rpcsvc/nis_callback.h: New file.
10891         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
10892         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
10894         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
10895         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
10897         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
10898         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
10900         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
10901         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
10903         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
10904         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
10905         xdr_ypdelete_args.
10907         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
10908         __BEGIN_DECLS and __END_DECLS, the header is not installed.
10910         * nis/nis_error.c: Remove table of strings.  Use position
10911         independent mechanism.
10912         * nis/nis_error.h: New file.
10914 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
10916         * locale/programs/ld-time.c (time_finish): If wide era name or
10917         format aren't provided, set both wname and wformat to L"".
10919 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
10921         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
10922         results if the call was succesful.
10924         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
10926         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
10927         as hidden.
10929 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
10931         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
10933 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
10935         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
10936         caller makes sure this is not the case.
10937         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
10939 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
10941         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
10942         calls.
10944         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
10945         [Coverity CID 229, 230]
10947         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
10948         DGETTEXT calls.
10949         (hol_help): Likewise.  [Coverity CID 226, 227]
10951         * string/argz-replace.c (__argz_replace): Unconditionally call
10952         free on SRC.  [Coverity CID 225]
10954         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
10955         the return value of __nis_default_owner and __nis_default_group,
10956         it has been especially allocated.  [Coverity CID 224]
10958         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
10959         searchgroup and searchowner.  Significantly simplified.
10960         (__nis_default_owner): Remove duplication.  Do not locally copy the
10961         string before duplicating it.
10962         (__nis_default_group): Likewise.
10964         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
10965         we must clear the variable before calling __nisfind_server.
10967         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
10968         nis_getnames.  [Coverity CID 223]
10970         * locale/programs/locfile.c (locfile_read): Use alloca instead of
10971         xmalloc to allocate local repertoire name.  [Coverity CID 222]
10973         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
10974         allocate memory for the input to add_bytes.  [Coverity CID 221]
10976         * posix/wordexp.c (w_addword): Free word if realloc fails and it
10977         was allocated here.  [Coverity CID 219, 220]
10979         * posix/getconf.c (print_all): Free confstr data after printing.
10980         [Coverity CID 218]
10982         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
10983         list allocation fails.  [Coverity CID 215]
10985         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
10986         [Coverity CID 213]
10988         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
10989         string is NULL.  [Coverity CID 212]
10990         * argp/Makefile: Add rules to build and run bug-argp1.
10991         * argp/bug-argp1.c: New file.
10993         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
10994         end of string.
10995         * stdlib/canonicalize.c (__realpath): Likewise.
10997         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
10998         pointer.  [Coverity CID 206]
11000         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
11001         in statically linked code.
11002         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
11003         statically built code, be prepared to have no link map.
11004         [Coverity CID 205]
11006         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
11007         dgettext calls. [Coverity CID 204]
11009         * argp/argp-help.c (struct uparams): Remove valid member.  Change
11010         the one user.
11011         (uparam_names): Reduce size.  Avoid relative relocations.
11012         Moved to read-only segment.
11013         (fill_in_uparams): Update for new layout.
11015         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
11016         assumed to always be != NULL. [Coverity CID 202]
11018         * argp/argp-help.c (hol_entry_help): Remove some dead code
11019         [Coverity CID 200].
11021         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
11022         away a few more unconditional yperr2nss calls.
11023         (_nss_nis_getservbyname_r): Likewise.
11025 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
11027         * sysdeps/generic/ldsodefs.h: Remove support for non-core
11028         architectures.
11030         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
11031         that unused memory passed to sendto is nevertheless initialized.
11033         [BZ #2499]
11034         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
11035         possibly unaligned memory accesses.
11037         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
11038         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
11039         and __putlong respectively.  Correct buffer overflow check for
11040         NS_NOTIFY_OP.
11042         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
11044         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
11045         (send_dg): Rewrite error handling to be more compact and avoid
11046         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
11048         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
11050         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
11051         instead of ns_get16.
11052         (res_queriesmatch): Likewise.  Minor optimization.
11054         [BZ #2499]
11055         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
11056         __libc_res_nsend might reallocate the buffer for the answer.  In
11057         this case we have to reload the HP pointer.
11059 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
11061         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
11062         some branch prediction hints.
11064         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
11065         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11066         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11067         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11068         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11069         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11070         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11071         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11073 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11075         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
11076         by a GOT relocation to make Scrt1.o position independent.
11077         * sysdeps/s390/s390-64/elf/start.S: Likewise.
11079         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
11080         six system call parameters.
11081         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
11083 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
11085         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
11086         malloc&bzero.
11088         * sunrpc/svc_udp.c (BZERO): Remove definition.
11089         (CALLOC): Define.
11090         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
11092         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
11093         (des_SPtrans): Use uint32_t type.
11094         (des_skb): Likewise.
11096         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
11098 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
11100         [BZ #2509]
11101         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
11102         on 32-bit arches.
11104 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
11106         * locale/programs/ld-address.c (address_finish): Fix one more
11107         place where the iso639 array might be accessed beyond the limits.
11109 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
11111         * nis/nis_table.c (nis_list): Avoid clearing res twice before
11112         filling it for the first time.
11114         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
11115         Adjust all callers.
11116         Free res object content before returning.
11118         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
11120         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
11121         client->cl_auth.
11123         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
11124         cleanup for initial thread, just the free call on TVP.
11126         * nscd/gai.c (__getline): Define.
11129 See ChangeLog.16 for earlier changes.