* sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
[glibc.git] / ChangeLog
blob3019b4b7abd485c957a538bd1b20989e1665e662
1 2009-04-25  Ulrich Drepper  <drepper@redhat.com>
3         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use correct
4         errno value vor pow(+-0,neg).
5         * math/libm-test.inc (pow_test): Add tests for errno value for
6         pole errors.
8         * math/w_fmod.c: Also handle x=±Inf as error.
9         * math/w_fmodf.c: Likewise.
10         * math/w_fmodl.c: Likewise.
11         * math/libm-test.inc (fmod_test): Add tests for errno after calls for
12         x=±Inf or y=0.
14         * sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.
15         * sysdeps/i386/fpu/s_cosf.S: Likewise.
16         * sysdeps/i386/fpu/s_cosl.S: Likewise.
17         * sysdeps/i386/fpu/s_sin.S: Likewise.
18         * sysdeps/i386/fpu/s_sinf.S: Likewise.
19         * sysdeps/i386/fpu/s_sinl.S: Likewise.
20         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
21         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
22         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
23         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
24         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
25         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
26         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
27         * math/libm-test.inc: Add tests for errno after sin/cos calls with
28         ±Inf.
30         * stdlib/strtod_l.c (round_and_return): We have to set errno to
31         ERANGE for underflows.
32         * stdlib/tst-strtod.c (tests): Two tests should set errno to ERANGE.
34         * stdio-common/stdio_lim.h.in (L_cuserid): Not part of POSIX since
35         the 2001 revision.
37         * libio/tst-widetext.input: Remove surrogates.
39         * include/features.h: _POSIX_C_SOURCE >= 200112L implies C99.
41         * sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors
42         for lgamma should set errno to ERANGE, not EDOM.
43         * math/libm-test.inc (lgamma_test): Check errno for pole errors.
45 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
47         [BZ #10093]
48         * iconv/gconv_simple.c (BODY for UTF-8 to INTERNAL): Don't accept
49         UTF-16 surrogates.
51         * locale/programs/locarchive.c (enlarge_archive): Conserve address
52         space when temporarily mapping the whole content of the old file.
54         [BZ #10100]
55         * misc/hsearch_r.c (hsearch_r): Add back ensurance that hval is
56         not zero.
58 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
60         * iconvdata/sjis.c (BODY): Don't advance inptr before
61         STANDARD_FROM_LOOP_ERR_HANDLER (2) for 2 byte invalid input.
62         Use STANDARD_FROM_LOOP_ERR_HANDLER with 2 instead of 1 for
63         two byte chars.
65 2009-04-24  Ulrich Drepper  <drepper@redhat.com>
67         * locale/locarchive.h (struct locarhandle): Rename len field to
68         mmaped and add new reserved field.
69         * locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
70         (create_archive): Reserve address space and then map file into it.
71         (open_archive): Likewise.
72         (file_data_available_p): New function.
73         (compare_from_file): New function.
74         (close_archive): Adjust to member name changes.
75         (add_locale): Before comparing locale data, check it is mapped.
76         Otherwise fall back to reading from the file.
78 2009-04-23  H.J. Lu  <hongjiu.lu@intel.com>
80         * stdio-common/psiginfo.c: Include <errno.h>.
82 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
84         [BZ #9920]
85         * stdlib/random_r.c (__srandom_r): Change type of word to int32_t
86         to get consistency between 32 and 64 bit architectures.
88         [BZ #10052]
89         * sysdeps/unix/make-syscalls.sh: Add rule to create target
90         directory for dummy syscall rules.
91         Patch by Chris Steinbroner <hesh@pobox.com>.
93 2009-04-23  Aurelien Jarno  <aurelien@aurel32.net>
95         [BZ #10092]
96         * sysdeps/unix/sysv/linux/sys/mount.h: Define MNT_DETACH and
97         MNT_EXPIRE.
99 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
101         * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed.  Adjust.
102         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
104 2009-04-23  Jakub Jelinek  <jakub@redhat.com>
106         * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment.  Copy
107         data from vector to temporary buffer and call PWRITEV after it
108         instead of vice versa.
109         * sysdeps/posix/preadv.c: Fix up comment.
110         * misc/preadv.c: Likewise.
111         * misc/preadv64.c: Likewise.
112         * misc/pwritev.c: Likewise.
113         * misc/pwritev64.c: Likewise.
114         * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise.
116 2009-04-23  Ulrich Drepper  <drepper@redhat.com>
118         * shadow/sgetspent_r.c (__sgetspent_r): Recognize too small buffers.
120         * shadow/Makefile (tests): Add tst-shadow.
121         * shadow/tst-shadow.c: New file.
123         [BZ #9955]
124         * gshadow/Makefile: New file.
125         * gshadow/Versions: New file.
126         * gshadow/fgetsgent.c: New file.
127         * gshadow/fgetsgent_r.c: New file.
128         * gshadow/getsgent.c: New file.
129         * gshadow/getsgent_r.c: New file.
130         * gshadow/getsgnam.c: New file.
131         * gshadow/getsgnam_r.c: New file.
132         * gshadow/gshadow.h: New file.
133         * gshadow/putsgent.c: New file.
134         * gshadow/sgetsgent.c: New file.
135         * gshadow/sgetsgent_r.c: New file.
136         * gshadow/tst-gshadow.c: New file.
137         * include/gshadow.h: New file.
138         * Makeconfig (all-subdirs): Add gshadow.
139         * Makefile (installed-headers): Add gshadow/gshadow.h.
140         * nss/Makefile (databases): Add sgrp.
141         * nss/Versions: Add gshadow functions as private exports.
142         * nss/nsswitch.conf: Add gshadow entry.
143         * nss/sgrp-lookup.c: New file.
144         * nss/nss_files/files-parse.c: Add STRING_LIST macro.  Rewrite
145         parse_list to handle STRING_LIST and TRAILING_LIST_PARSER.
146         * nss/nss_files/files-sgrp.c: New file.
147         * sysdeps/generic/paths.h: Add _PATH_GSHADOW.
148         * sysdeps/unix/sysv/linux/paths.h: Likewise.
150 2009-04-22  Ulrich Drepper  <drepper@redhat.com>
152         * stdio-common/printf.h: Add missing const to register_printf_modifier.
153         * stdio-common/reg-modifier.c: Likewise.
155 2009-04-22  Andrew Stubbs  <ams@codesourcery.com>
157         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there
158         is no FPU.
160 2009-04-20  Ulrich Drepper  <drepper@redhat.com>
162         [BZ #10086]
163         * sysdeps/unix/sysv/linux/sys/timex.h: Add definitions from kernel
164         headers up to 2.6.30.
166         * po/ca.po: Update from translation team.
168 2009-04-19  Ulrich Drepper  <drepper@redhat.com>
170         [BZ #10069]
171         * elf/dl-open.c (dl_open_worker): We cannot guarantee that we can load
172         an object that uses static TLS if the TLS modid is higher than the
173         reserve we always allocate.  At least for multi-threaded code.
175 2009-04-18  Ulrich Drepper  <drepper@redhat.com>
177         * stdlib/strfmon_l.c (__vstrfmon_l): Don't wrap when computing width.
178         Numerically stable check for valid width.
180         * locale/programs/locarchive.c (open_archive): Map the entire file
181         and not just the administrative data.
182         (add_locale): When we find a hash sum match compare the content
183         to be sure.
185         * malloc/malloc.c (malloc_info): Output address space information.
187 2009-04-17  Ulrich Drepper  <drepper@redhat.com>
189         * malloc/malloc.c (malloc_info): Also output system memory information.
191         * sysdeps/unix/sysv/linux/kernel-features.h: All supported
192         architectures have preadv/pwritev in 2.6.30.
194         * sysdeps/posix/preadv.c: Reading of zero bytes is no error.
195         * sysdeps/posix/readv.c: Likewise.
196         Reported by Markus Armbruster <armbru@redhat.com>.
198         * malloc/hooks.c (top_check): Force hook value into register.
200 2009-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
202         * elf/rtld.c (dl_main): Really call _dl_sysdep_start_cleanup after all
203         calls to _dl_relocate_object.
205 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
207         [BZ #9957]
208         * malloc/malloc.c (force_reg): Define.
209         (sYSMALLOc): Load hook variable into variable
210         before test and force into register.
211         (sYSTRIm): Likewise.
212         (public_mALLOc): Force hook value into register.
213         (public_fREe): Likewise.
214         (public_rEALLOc): Likewise.
215         (public_mEMALIGn): Likewise.
216         (public_vALLOc): Likewise.
217         (public_pVALLOc): Likewise.
218         (public_cALLOc): Likewise.
219         (__posix_memalign): Likewise.
220         * malloc/arena.c (ptmalloc_init): Load hook variable into variable
221         before test and force into register.
222         * malloc/hooks.c (top_check): Likewise.
223         (public_sET_STATe): Pretty printing.
225         * resolv/res_send.c (send_dg): Don't just ignore the result we got
226         in case we only receive one reply in single-request mode.
228 2009-04-16  Jakub Jelinek  <jakub@redhat.com>
230         * elf/dl-open.c (_dl_open): Bump GL(dl_nns) to 1 if no libraries
231         are dlopened in statically linked program even for __LM_ID_CALLER.
233 2009-04-16  Ulrich Drepper  <drepper@redhat.com>
235         * resolv/res_send.c (send_dg): Don't switch into single-request
236         mode if we already are in it.
238 2009-04-15  Ulrich Drepper  <drepper@redhat.com>
240         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Make sure there
241         are always at least 4 bytes in the returned line.
243 2009-04-15  Jakub Jelinek  <jakub@redhat.com>
245         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Check
246         __libc_use_alloca (8192), if the stack is too small use 512 bytes
247         instead of 8K.  Stop searching in /proc/stat after hitting first
248         line not starting with cpu.
249         (next_line): Truncate too long
250         lines at buffer size * 3/4 instead of pretending there were line
251         breaks inside of large lines.
253 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
255         * sysdeps/x86_64/mp_clz_tab.c: New file.
257 2009-03-17  Ryan S. Arnold  <rsa@us.ibm.com>
258             Ulrich Drepper  <drepper@redhat.com>
260         * sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
261         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
262         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
264 2009-03-25  Andrew Stubbs  <ams@codesourcery.com>
266         * sysdeps/sh/libc-tls.c: New file.
268         * sysdeps/sh/bits/setjmp.h (__jmp_buf): Give name to structure type.
270 2009-04-14  Roland McGrath  <roland@redhat.com>
272         * elf/elf.h: Add various missing ARM constants, to match binutils.
274 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
276         Optimizations from GMP.
277         * sysdeps/x86_64/add_n.S: New file.
278         * sysdeps/x86_64/addmul_1.S: New file.
279         * sysdeps/x86_64/lshift.S: New file.
280         * sysdeps/x86_64/mul_1.S: New file.
281         * sysdeps/x86_64/rshift.S: New file.
282         * sysdeps/x86_64/sub_n.S: New file.
283         * sysdeps/x86_64/submul_1.S: New file.
285 2009-04-14  Jakub Jelinek  <jakub@redhat.com>
287         * sysdeps/powerpc/powerpc32/elf/start.S: Ensure .data is non-empty.
288         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
289         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
290         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
292 2009-04-14  Ulrich Drepper  <drepper@redhat.com>
294         * sysdeps/unix/sysv/linux/kernel-features.h: SH also has
295         preadv/pwritev.
297 2009-04-13  Ulrich Drepper  <drepper@redhat.com>
299         * sysdeps/x86-64/strrchr.S: New file.
301 2009-04-10  Ulrich Drepper  <drepper@redhat.com>
303         * stdio-common/printf.h (struct printf_info): Add user element.
304         New types printf_arginfo_size_function, printf_va_arg_function.
305         Declare register_printf_specifier, register_printf_modifier,
306         register_printf_type.
307         * stdio-common/printf-parse.h (struct printf_spec): Add size element.
308         (union printf_arg): Add pa_user element.
309         Adjust __printf_arginfo_table type.
310         Add __printf_va_arg_table, __printf_modifier_table,
311         __handle_registered_modifier_mb, and __handle_registered_modifier_wc
312         declarations.
313         * stdio-common/printf-parsemb.c: Recognize registered modifiers.
314         If registered arginfo call failed try normal specifier.
315         * stdio-common/printf-prs.c: Pass additional parameter to arginfo
316         function.
317         * stdio-common/Makefile (routines): Add reg-modifier and reg-type.
318         * stdio-common/Versions: Export register_printf_modifier,
319         register_printf_type, and register_printf_specifier for GLIBC_2.10.
320         * stdio-common/reg-modifier.c: New file.
321         * stdio-common/reg-type.c: New file.
322         * stdio-common/reg-printf.c (__register_printf_specifier): New
323         function.  Mostly the old __register_printf_function function but
324         uses locking and type of third parameter changed.
325         (__register_printf_function): Implement using
326         __register_printf_specifier.
327         * stdio-common/vfprintf.c (vfprintf): Collect argument sizes in
328         calls to arginfo functions.  Allocate enough memory for user-defined
329         types.  Call new va_arg functions to get user-defined types.
330         Try installed handlers even for existing format specifiers first.
332 2009-04-09  Ulrich Drepper  <drepper@redhat.com>
334         * sysdeps/x86_64/rawmemchr.S: New file.
336         * stdio-common/vfprintf.c (vfprintf): Slightly more compact code.
337         Simplified code and possible copy problem fixed.
339         * sysdeps/unix/sysv/linux/preadv.c: Avoid prototype for static
340         function if it is not defined.  Add some necessary casts.
341         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
343         * sysdeps/unix/sysv/linux/kernel-features.h: SPARC and IA64 also
344         have preadv/pwritev in 2.6.30.
346 2009-04-08  Ulrich Drepper  <drepper@redhat.com>
348         * malloc/malloc.c (malloc_info): New function.
349         * malloc/malloc.h: Declare it.
350         * malloc/Versions: Export malloc_info for GLIBC_2.10.
352         * sysdeps/unix/sysv/linux/preadv64.c (PREAD): Use __libc_pread64
353         to avoid PLT slot.
355         * malloc/malloc.c (_int_realloc): Add parameter with old block
356         size.  Remove duplicated test.  Don't handle mmap'ed blocks here.
357         Adjust all callers.
358         * malloc/hooks.c (realloc_check): Adjust _int_realloc call.
360 2009-04-07  Ulrich Drepper  <drepper@redhat.com>
362         * sysdeps/x86_64/strchrnul.S: New file.
364         * crypt/Makefile (LDLIBS-crypt.so): Use this variable instead of
365         depending libcrypt on -lfreebl3.
367         * sysdeps/unix/sysv/linux/kernel-features.h: Power also has
368         preadv/pwritev in 2.6.30.
370         * resolv/nss_dns/dns-host.c (getanswer_r): Use strcasecmp
371         instead of __strcasecmp.
373         * string/stratcliff.c (do_test): Add memchr tests..
374         * wcsmbs/wcsatcliff.c (MEMCHR): Define.
375         * sysdeps/x86_64/memchr.S: Fix handling of end of buffer after
376         first read quad word.
378 2009-04-06  Ulrich Drepper  <drepper@redhat.com>
380         * string/strverscmp.c (__strverscmp): Fix last cleanups.
381         * string/tst-svc.input: Add new test case.
382         * string/tst-svc.expect: Adjust.
383         * string/Makefile: Don't ignore tst-svc error.
385         * sysdeps/x86_64/memchr.S: New file.
387         * resolv/resolv.h (RES_SNGLKUP): Define.
388         * resolv/res_init.c (res_setoptions): Recognize single-request option.
389         * resolv/res_send.c (send_dg): If we sent two requests at once and
390         only get one reply before timeout switch to mode where we send the
391         second request only after the first answer has been received.
393 2009-04-05  Ulrich Drepper  <drepper@redhat.com>
395         * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions.
396         * sysdeps/x86_64/strchr.S: Likewise.
398 2009-04-03  Ulrich Drepper  <drepper@redhat.com>
400         * configure.in: We need to test for the compiler earlier.
402         * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
403         * misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for
404         GLIBC_2.10.
405         * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64.
406         * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv
407         and pwritev.
408         * misc/preadv.c: New file.
409         * misc/preadv64.c: New file.
410         * misc/pwritev.c: New file.
411         * misc/pwritev64.c: New file.
412         * sysdeps/posx/preadv.c: New file.
413         * sysdeps/posx/preadv64.c: New file.
414         * sysdeps/posx/pwritev.c: New file.
415         * sysdeps/posx/pwritev64.c: New file.
416         * sysdeps/unix/sysv/linux/preadv.c: New file.
417         * sysdeps/unix/sysv/linux/preadv64.c: New file.
418         * sysdeps/unix/sysv/linux/pwritev.c: New file.
419         * sysdeps/unix/sysv/linux/pwritev64.c: New file.
420         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file.
421         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
423         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Fix calling of
424         compatibility code.
425         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
427         * sysdeps/unix/sysv/linux/kernel-features.h: Define
428         __ASSUME_COMPLETE_READV_WRITEV.
429         * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback
430         with modern kernels.
431         * sysdeps/unix/sysv/linux/writev.c: Likewise.
433         * sysdeps/posix/readv.c: Since read is a cancellation point we have
434         to free a possible malloced buffer in case of cancellation.
435         * sysdeps/posix/writev.c: Likewise for write.
437 2009-04-02  Ulrich Drepper  <drepper@redhat.com>
439         * sysdeps/unix/sysv/linux/bits/socket.h: Add missing protocol numbers.
441         * configure.in: Recognize --enable-nss-crypt.
442         * config.make.in: Add nss-crypt entry.
443         * crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
444         sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
445         and include path for NSS directory to compiler for md5-crypt,
446         sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
447         * crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
448         function implementation, use NSS.  Introduce wrappers around the
449         hash function calls.  Little code size optimization.
450         * crypt/sha256-crypt.c: Likewise.
451         * crypt/sha512-crypt.c: Likewise.
452         * scripts/check-local-headers.sh: Ignore nss3 directory.
454         * configure.in: Rename pic_default to libc_cv_pic_default.
455         * config.make.in: Likewise.
457 2009-04-01  Roland McGrath  <roland@redhat.com>
459         * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
460         (R_SPARC_GOTDATA_HIX22, R_SPARC_GOTDATA_LOX10): New macros.
461         (R_SPARC_GOTDATA_OP_HIX22, R_SPARC_GOTDATA_OP_LOX10): Likewise.
462         (R_SPARC_GOTDATA_OP, R_SPARC_H34): Likewise.
463         (R_SPARC_SIZE32, R_SPARC_SIZE64): Likewise.
464         (R_SPARC_GNU_VTINHERIT, R_SPARC_GNU_VTENTRY, R_SPARC_REV32): Likewise.
465         (R_SPARC_NUM): Update.
466         From Dave Miller <davem@davemloft.net>.
468 2009-04-01  Ulrich Drepper  <drepper@redhat.com>
470         * sysdeps/unix/sysv/linux/sys/eventfd.h (EFD_SEMAPHORE): Define.
472 2009-03-31  Ulrich Drepper  <drepper@redhat.com>
474         * elf/dl-open.c: Keep track of used name spaces and only iterate over
475         those which are used.
476         * elf/dl-addr.c: Likewise.
477         * elf/dl-caller.c: Likewise.
478         * elf/dl-fini.c: Likewise.
479         * elf/dl-iteratephdr.c: Likewise.
480         * elf/dl-libc.c: Likewise.
481         * elf/dl-load.c: Likewise.
482         * elf/dl-support.c: Likewise.
483         * elf/dl-sym.c: Likewise.
484         * elf/rtld.c: Likewise.
485         * sysdeps/generic/ldsodefs.h: Likewise.
487         * elf/dl-load.c: Remove support for systems without MAP_ANON.
488         * elf/dl-minimal.c: Likewise.
489         * elf/dl-misc.c: Likewise.
490         * elf/rtld.c: Likewise.
491         * sysdeps/generic/ldsodefs.h: Likewise.
493 2009-03-30  Ulrich Drepper  <drepper@redhat.com>
495         * elf/do-lookup.h (do_lookup_x): Minor optimization and cleanup.
496         Avoid reuse of complex expression.
498         * po/fr.po: Update from translation team.
500 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
502         * include/dirent.h: Yet more changes to match sort function type
503         change.
504         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
505         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
506         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
508 2009-03-16  Thomas Schwinge  <tschwinge@gnu.org>
510         * dirent/scandir64.c (scandir64): Adjust declaration to type change.
512 2009-03-16  Ulrich Drepper  <drepper@redhat.com>
514         * nscd/connections.c (restart): Try to preserve the process name
515         by reading the /proc/self/exe symlink and using the return name.
516         Patch by Jeff Bastian <jbastian@redhat.com>.
518 2009-03-15  Ulrich Drepper  <drepper@redhat.com>
520         [BZ #9733]
521         * elf/dl-load.c (_dl_map_object_from_fd): Only call audit hooks
522         if we are not loading a new audit library.
523         * elf/dl-reloc (_dl_relocate_object): Third parameter is now a bitmask.
524         Only use profiling trampoline for auditing if we are not relocating
525         an audit library.
526         * elf/dl-open.c (dl_open_worker): Adjust _dl_relocate_object call.
527         * elf/rtld.c: Likewise.
528         * sysdeps/generic/ldsodefs.h: Adjust _dl_relocate_object prototype.
530         * elf/rtld.c (dl_main): Extend help message for --audit option.
532         [BZ #9759]
533         * dirent/dirent.h: Adjust prototypes of scandir, scandir64, alphasort,
534         alphasort64, versionsort, and versionsort64 to POSIX 2008.
535         * dirent/alphasort.c: Adjust implementation to type change.
536         * dirent/alphasort64.c: Likewise.
537         * dirent/scandir.c: Likewise.
538         * dirent/versionsort.c: Likewise.
539         * dirent/versionsort64.c: Likewise.
540         * sysdeps/wordsize-64/alphasort.c: Add hack to hide alphasort64
541         declaration.
542         * sysdeps/wordsize-64/versionsort.c: Add hack to hide versionsort64
543         declaration.
545         [BZ #9880]
546         * inet/inet6_rth.c (inet6_rth_reverse): Compute number of segments
547         correctly.  Set segleft member in output as required.
548         Patch partly by Yang Hongyang <yanghy@cn.fujitsu.com>.
549         * inet/tst-inet6_rth.c (do_test): Add tests for inet6_rth_reverse.
551         [BZ #9881]
552         * inet/inet6_rth.c (inet6_rth_add): Add some error checking.
553         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
554         * inet/Makefile (tests): Add tst-inet6_rth.
555         * inet/tst-inet6_rth.c: New file.
557         [BZ #5807]
558         * string/strlen.c (strlen): Fix omission in the expression to test
559         for NUL bytes.
561 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
563         * crypt/sha256test.c (main): Perform 100,000 'a' test in a second way.
565         * elf/dl-runtime.c (reloc_offset): Define.
566         (reloc_index): Define.
567         (_dl_fixup): Rename reloc_offset parameter to reloc_arg.
568         (_dl_fixup_profile): Likewise.  Use reloc_index instead of
569         computing index from reloc_offset.
570         (_dl_call_pltexit): Likewise.
571         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Just pass
572         the relocation index to _dl_fixup.
573         (_dl_runtime_profile): Likewise for _dl_fixup_profile and
574         _dl_call_pltexit.
575         * sysdeps/x86_64/dl-runtime.c: New file.
577         [BZ #9893]
578         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
579         alignment of La_x86_64_regs.  Store xmm parameters.
580         Patch mostly by Jiri Olsa <olsajiri@gmail.com>.
582         [BZ #9913]
583         * string/strverscmp.c (__strverscmp): Fix case of different digits
584         in fractional part of string.
585         Patch by Jingyu Liu <jyliu@fortinet.com>.
586         * string/Makefile (tests): Add tst-svc2.
587         * string/tst-svc2.c: New file.
589         * string/strverscmp.c (__strverscmp): Optimize size of tables.
591         * locale/iso-639.def: Add Min Nan.
593 2009-03-11  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
595         [BZ #9948]
596         * elf/dl-sysdep.c (_dl_show_auxv): Add support for AT_BASE_PLATFORM.
598 2009-03-14  Ulrich Drepper  <drepper@redhat.com>
600         * elf/dl-sysdep.c (auxvars): Compress data structure.
602         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement
603         STT_GNU_IFUNC handling.
604         (elf_machine_rela): Likewise.
606 2009-03-13  Ulrich Drepper  <drepper@redhat.com>
608         * config.h.in (USE_MULTIARCH): Define.
609         * configure.in: Handle --enable-multi-arch.
610         * elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
611         (_dl_fixup_profile): Likewise.
612         * elf/do-lookup.c (dl_lookup_x): Likewise.
613         * sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
614         * elf/elf.h (STT_GNU_IFUNC): Define.
615         * include/libc-symbols.h (libc_ifunc): Define.
616         * sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
617         framework in init-arch.h to get CPUID values.
618         * sysdeps/x86_64/multiarch/Makefile: New file.
619         * sysdeps/x86_64/multiarch/init-arch.c: New file.
620         * sysdeps/x86_64/multiarch/init-arch.h: New file.
621         * sysdeps/x86_64/multiarch/sched_cpucount.c: New file.
623         * config.make.in (experimental-malloc): Define.
624         * configure.in: Handle --enable-experimental-malloc.
625         * malloc/Makefile: Handle experimental-malloc flag.
626         * malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
627         * malloc/arena.c: Likewise.
628         * malloc/hooks.c: Likewise.
629         * malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
631 2009-03-11  Ulrich Drepper  <drepper@redhat.com>
633         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Add branch
634         prediction.  A few size optimizations.
636 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
638         * time/tzset.c: Optimize a bit for size.
640 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
642         * include/stdio.h (fmemopen): Add libc_hidden_proto.
643         * libio/fmemopen.c (fmemopen): Add libc_hidden_def.
645         * elf/sprof.c: Avoid warning about multi-line comment.
647 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
649         * time/tzset.c (__tzset_parse_tz): Use correct string when parsing
650         DST name.
651         * time/tst-posixtz.c: Add tests for quoted timezone names.
653 2009-03-10  Jakub Jelinek  <jakub@redhat.com>
655         * posix/unistd.h (_POSIX_VERSION, _POSIX2_VERSION, _POSIX2_C_BIND,
656         _POSIX2_C_DEV, _POSIX2_SW_DEV, _POSIX2_LOCALEDEF): Define to
657         200809L instead of 200112L.
658         (_XOPEN_VERSION): For __USE_XOPEN2K8 define to 700.
659         * posix/tst-sysconf.c (STDVER): Define to 200809L instead of 200112L.
661         * stdlib/quick_exit.c (quick_exit): Pass &__quick_exit_funcs
662         instead of __quick_exit_funcs to __run_exit_handlers.
663         * stdlib/at_quick_exit.c (at_quick_exit): Add attribute_hidden.
664         * stdlib/exit.h (__run_exit_handlers): Add noreturn attribute.
665         (__cxa_at_quick_exit): Remove attribute_hidden.
666         * stdlib/exit.c (exit): Pass &__exit_funcs instead of __exit_funcs
667         to __run_exit_handlers.
668         * stdlib/cxa_at_quick_exit.c (__cxa_at_quick_exit): Remove
669         attribute_hidden.
671 2009-03-10  Ulrich Drepper  <drepper@redhat.com>
673         * po/id.po: Update from translation team.
675 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
677         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Use
678         .machine push; .machine "power6" and .machine pop around mtfsf
679         insns outside of _ARCH_PWR6 define.
680         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
681         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
682         Likewise.
683         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
684         Likewise.
685         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR): Likewise.
686         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register,
687         relax_fenv_state): Likewise.
689 2009-03-08  Ulrich Drepper  <drepper@redhat.com>
691         * stdlib/Makefile (routines): Add quick_exit, at_quick_exit, and
692         cxa_at_quick_exit.
693         (static-only-routines): Add at_quick_exit.
694         * stdlib/Versions: Export quick_exit and __cxa_at_quick_exit for
695         GLIBC_2.10.
696         * stdlib/quick_exit.c: New file.
697         * stdlib/at_quick_exit.c: New file.
698         * stdlib/cxa_at_quick_exit.c: New file.
699         * stdlib/cxa_atexit.c (__cxa_atexit): Move body to new function.  Call
700         it appropriately.
701         (__internal_atexit): New function.
702         (__new_exitfn): Now takes parameter to point to the list to use.
703         * stdlib/cxa_finalize.c: Remove quick_exit handlers, don't call them.
704         * stdlib/exit.c (__run_exit_handlers): New function.  Split from...
705         (exit): ...here.  Just call __run_exit_handlers appropriately.
706         * stdlib/exit.h: Declare __quick_exit_funcs, __run_exit_handlers,
707         __internal_atexit, __cxa_at_quick_exit.  Adjust __new_exitfn.
708         * stdlib/on_exit.c: Adjust call to __new_exitfn.
709         * stdlib/stdlib.h: Declare at_quick_exit and quick_exit.
711         * po/id.po: Update from translation team.
713 2009-03-07  Ulrich Drepper  <drepper@redhat.com>
715         * po/ru.po: Update from translation team.
717 2009-03-04  Ulrich Drepper  <drepper@redhat.com>
719         * po/nl.po: Update from translation team.
721 2009-03-03  Ulrich Drepper  <drepper@redhat.com>
723         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
724         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
725         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
726         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
727         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
728         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
729         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
731         * po/pl.po: Update from translation team.
733 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
735         [BZ #7083]
736         * sysdeps/unix/sysv/linux/fallocate.c: New file.
737         * sysdeps/unix/sysv/linux/fallocate64.c: New file.
738         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
739         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
740         * sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
741         * sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
742         * sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
743         for GLIBC_2.10.
744         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
745         Add fallocate and fallocate64.
747         * io/fcntl.h: Pretty printing.
749 2009-03-02  Richard Guenther  <rguenther@suse.de>
751         * misc/sys/cdefs.h (__extern_always_inline): Add __artificial__
752         attribute also for non-C99 inline semantics variant.
754 2009-02-12  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
756         * sysdeps/powerpc/powerpc32/power7/fpu/Implies: New file.
757         * sysdeps/powerpc/powerpc32/power7/Implies: Likewise.
758         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
759         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
760         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies:
761         Likewise.
762         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies:
763         Likewise.
765 2009-03-02  Ulrich Drepper  <drepper@redhat.com>
767         * po/cs.po: Update from translation team.
769 2009-02-28  Ulrich Drepper  <drepper@redhat.com>
771         * po/bg.po: Update from translation team.
772         * po/sv.po: Likewise.
773         * po/fi.po: Likewise.
774         * po/vi.po: Likewise.
776 2009-02-27  Roland McGrath  <roland@redhat.com>
778         * Makeconfig (%.v.i): Depend on Makeconfig.
779         Exclude % lines from initial #-comment removal.
781 2009-02-27  Ulrich Drepper  <drepper@redhat.com>
783         * po/ko.po: Update from translation team.
785 2009-02-26  Roland McGrath  <roland@redhat.com>
787         * shadow/lckpwdf.c (__lckpwdf): Move FLAGS inside block using it,
788         avoids unused warning.
790 2009-02-26  Andrew Stubbs  <ams@codesourcery.com>
791             SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
793         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
794         sys/ucontext.h and asm/elf.h.  Include sys/user.h.
795         * sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h
796         and asm/user.h.  Include asm/ptrace.h.
797         (PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS,
798         PTRACE_SETFPREGS, PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
799         PTRACE_GETFDPIC_INTERP, PTRACE_GETDSPREGS, PTRACE_SETDSPREGS):
800         Undefine.
801         (start_thread): Don't undefine.
802         (elf_greg_t, ELF_NGREG, elf_fpregset_t, user_fpu_struct, user):
803         Define.
805 2009-02-26  Ulrich Drepper  <drepper@redhat.com>
807         * wctype/wctype.h: The *_l functions are in POSIX 2008.
808         * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy,
809         wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs,
810         wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l.
811         * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from
812         200112L to 200809L.
813         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
814         * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and
815         _SC_THREAD_ROBUST_PRIO_PROTECT entries.
816         * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and
817         _SC_THREAD_ROBUST_PRIO_PROTECT.
818         * posix/unistd.h: fexecve is in POSIX 2008.
819         * time/time.h: strftime_l is in POSIX 2008.
820         * io/sys/stat.h: futimens is in POSIX 2008.
821         * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008.
822         * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal,
823         strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008.
824         * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
825         * libio/stdio.h: dprintf, fmemopen, getdelim, getline,
826         open_memstream, and vdprintf are in POSIX 2008.
828 2009-02-25  Ulrich Drepper  <drepper@redhat.com>
830         * include/features.h: Define macros for XPG7/POSIX 2008.
831         * ctype/ctype.h: The *_l functions are in POSIX 2008.
832         * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in
833         POSIX 2008.
834         * locale/langinfo.h: nl_langinfo_l is in POSIX 2008.
835         * locale/xlocale.h: Define locale_t type.
836         * locale/locale.h: duplocale, freelocale, newlocale, uselocale are
837         in POSIX 2008.  Don't define locale_t here.
838         * stdlib/monetary.h: strfmon_l is in POSIX 2008.
839         * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and
840         UTIME_OMIT only with __USE_ATFILE.
841         * signal/signal.h: Declare psignal and psiginfo for POSIX 2008.
842         * stdio-common/psiginfo.c: New file.
843         * stdio-common/psiginfo-data.h: New file.
844         * stdio-common/psiginfo-define.h: New file.
845         * stdio-common/Makefile (routines): Add psiginfo.
846         * stdio-common/Versions: Export psiginfo for GLIBC_2.10.
847         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
848         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
849         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
850         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
851         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
852         * io/sys/stat.h: Move mknodat definition into same conditional as
853         mknod.
854         * time/sys/time.h: futimesat is not among the functions accepted
855         into the POSIX standard.
857         * include/features.h: If no feature selection given and we select
858         by default a POSIX mode, also define __USE_POSIX_IMPLICITLY.
859         * posix/Versions: Export __posix_getopt.
860         * posix/getopt.c (_getopt_initialize): Take additional parameter.
861         Use it to alternatively initialize __posixly_correct.
862         (_getopt_internal_r): Take addition parameter.  Pass on to
863         _getopt_initialize.
864         (_getopt_internal): Take addition parameter.  Pass on to
865         _getopt_internal_r.
866         (getopt): Pass additional zero to _getopt_internal.
867         (__posix_getopt): New function.
868         * posix/getopt.h: Add redirection for getopt.
869         * posix/getopt1.c (getopt_long): Pass additional zero to
870         _getopt_internal.
871         (getopt_long_only): Likewise.
872         (_getopt_long_r): Pass additional zero to _getopt_internal_r.
873         (_getopt_long_only_r): Likewise.
874         * posix/getopt_int.h: Adjust declarations of _getopt_internal and
875         _getopt_internal_r.
877 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
879         * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX,
880         _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
881         * sysdeps/posix/sysconf.c (__sysconf): Handle
882         _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX,
883         _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
885 2009-02-24  Roland McGrath  <roland@redhat.com>
887         [BZ #9895]
888         * README.template: Reworded not to use substituted version number.
889         Renamed to ...
890         * README: ... here (no longer generated).
891         * Makefile (README): Target removed.
893 2009-02-24  Ulrich Drepper  <drepper@redhat.com>
895         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf):
896         /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit
897         instead.
899         * io/sys/stat.h: The lstat functions have been mandatory since 2001.
901         * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.
903 2009-02-22  Ulrich Drepper  <drepper@redhat.com>
905         * po/bg.po: Update from translation team.
907 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
909         * stdlib/monetary.h: Uglify function parameter names.
910         * sunrpc/rpc/pmap_clnt.h: Likewise.
911         * sunrpc/rpc/svc.h: Likewise.
912         * sunrpc/rpc/xdr.h: Likewise.
913         * sunrpc/rpc/clnt.h: Likewise.
914         * resolv/netdb.h: Likewise.
915         * resolv/arpa/nameser.h: Likewise.
916         * resolv/resolv.h: Likewise.
917         * argp/argp.h: Likewise.
918         * locale/langinfo.h: Likewise.
919         * io/sys/stat.h: Likewise.
920         * posix/spawn.h: Likewise.
921         * nis/rpcsvc/nislib.h: Likewise.
922         * malloc/obstack.h: Likewise.
923         * sysdeps/ia64/bits/link.h: Likewise.
924         * sysdeps/i386/bits/link.h: Likewise.
925         * sysdeps/s390/bits/link.h: Likewise.
926         * sysdeps/powerpc/bits/link.h: Likewise.
927         * sysdeps/x86_64/bits/link.h: Likewise.
928         * sysdeps/sparc/bits/link.h: Likewise.
929         * sysdeps/sh/bits/link.h: Likewise.
930         * sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
931         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
932         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
933         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
935 2008-12-01  Fredrik Unger  <fred@tree.se>
937         * soft-fp/double.h [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D,
938         FP_UNPACK_SEMIRAW_DP): Use _FP_UNPACK_RAW_1 instead of
939         _FP_UNPACK_RAW_2, fix up first argument.
941 2009-02-15  Ulrich Drepper  <drepper@redhat.com>
943         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): New function.
944         (GET_NPROCS_PARSER): Change parameters and use next_line.
945         (__get_nprocs): Rewrite to not use stdio routines.
946         * sysdeps/unix/sysv/linux/sparc/getsysstats.c (GET_NPROCS_PARSER):
947         Change parameters and use next_line.
949 2009-02-13  Ulrich Drepper  <drepper@redhat.com>
951         [BZ #5381]
952         * nscd/nscd.h: Remove definitions and declarations for mem_in_flight.
953         Change mempool_alloc prototype.
954         * nscd/mem.c (gc): Don't handle mem_in_flight.
955         (mempool_alloc): Third parameter now only indicates whether this is the
956         first call (to allocate data) or not.  If it is, get db rdlock.
957         Release it on error.  Don't handle mem_in_flight.
958         * nscd/aicache.c (addhstaiX): Mark he parameter as const.
959         Adjust third parameter of mempool_alloc calls.
960         Nothing to do here in case mempool_alloc fails.
961         Avoid local variable shadowing parameter.  No need to get db rdlock
962         before calling cache_add.
963         * nscd/cache.c (cache_add): Adjust call to mempool_alloc.  There is
964         no mem_in_flight array anymore.
965         * nscd/connections.c: Remove definition and handling of mem_in_flight.
966         * nscd/grpcache.c (cache_addgr): Adjust third parameter of
967         mempool_alloc calls.  Mark he parameter as const.  Nothing to do here
968         in case mempool_alloc fails. No need to get db rdlock before calling
969         cache_add.
970         * nscd/hstcache.c (cache_addhst): Likewise.
971         * nscd/initgrcache.c (addinitgroupsX): Likewise.
972         * nscd/servicescache.c (cache_addserv): Likewise.
973         * nscd/pwdcache.c (cache_addpw): Likewise.  Remove some debugging code.
975 2009-02-11  Ulrich Drepper  <drepper@redhat.com>
977         * po/lt.po: Update from translation team.
979 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
981         * elf/dl-load.c (open_verify): In case VALID_ELF_HEADER is
982         defined, allow additional data to be added using the optional
983         MORE_ELF_HEADER_DATA macro.
984         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER,
985         VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Define.
987 2009-02-08  Ulrich Drepper  <drepper@redhat.com>
989         * include/atomic.h: Define catomic_and if not already defined.
990         * sysdeps/x86_64/bits/atomic.h: Define catomic_and.
991         * sysdeps/i386/i486/bits/atomic.h: Likewise.
993 2009-02-07  Ulrich Drepper  <drepper@redhat.com>
995         * malloc/malloc.c (_int_free): Second argument is now mchunkptr.
996         Change all callers.
997         (_int_realloc): Likewise.  Third argument is now padded size
998         All _int_* functions are now static.
1000         * malloc/hooks.c: Change all callers to _int_free and _int_realloc.
1001         * malloc/arena.c: Likewise.
1002         * include/malloc.h: Remove now unnecessary declarations of the _int_*
1003         functions.
1005         * sunrpc/rpc_common.c: We cannot move _null_auth into .rodata that
1006         easily.
1008         * malloc/malloc.c: Add branch prediction for use of the hooks.
1010         * grp/compat-initgroups.c [NOT_IN_libc] (__libc_use_alloca): Define.
1012 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
1014         [BZ #7095]
1015         * bits/confname.h: Add SUSv7 macros for getconf environments.
1016         * bits/environments.h: Likewise.
1017         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
1018         * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
1019         * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
1020         * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
1021         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
1022         * posix/confstr.c: Handle SUSv5 and SUSv7 environments.
1023         * posix/getconf.c: Likewise.
1024         * posix/sysconf.c: Likewise.
1025         * sysdeps/posix/sysconf.c: Likewise.
1026         * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
1027         environments.
1029 2009-01-16  Petr Baudis  <pasky@suse.cz>
1031         [BZ #9753]
1032         * resolv/res_libc.c (__res_maybe_init): Call __res_vinit()
1033         even if we currently have zero nscount.
1035 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
1037         [BZ #9781]
1038         * grp/compat-initgroups.c (compat_call): Switch to use malloc when
1039         the input line is too long.
1041         * po/Makefile (libc.pot): Add f_print as function taking c-format
1042         parameter.
1044         * debug/xtrace.sh: Unify translatable messages.
1045         * elf/ldd.bash.in: Likewise.
1046         * elf/sprof.c: Likewise.
1047         * locale/programs/locale.c: Likewise.
1048         * malloc/memusage.sh: Likewise.
1049         * nss/getent.c: Likewise.
1051 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
1053         * debug/pcprofiledump.c (print_version,
1054         argp_program_version_hook): New function.
1055         * elf/ldconfig.c (more_help): New function.
1056         (argp): Use it.
1057         * elf/sln.c (usage): New function.
1058         (main): Support --help and --version.
1059         * malloc/memusagestat.c (print_version): New function.
1060         (argp_program_version_hook): New variable.
1061         * nscd/nscd.c (more_help): New function.
1062         (argp): Use it.
1063         * posix/getconf.c (main): Send --version output to stdout.
1064         Support --help.
1065         * sunrpc/rpc_main.c (usage, options_usage): Take STREAM and STATUS
1066         arguments.  All callers changed.
1067         (print_version): New function.
1068         (parseargs): Support --help and --version.
1069         * sunrpc/rpcinfo.c (usage): Take STREAM argument.  All callers
1070         changed.
1071         (print_version): New function.
1072         (main): Use getopt_long.  Support --help and --version.
1073         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Support --help and
1074         --version.
1076 2009-02-06  Ulrich Drepper  <drepper@redhat.com>
1078         * malloc/memusage.c (DEFAULT_BUFFER_SIZE): Change to 32768.
1079         (update_data): Fix handling of wrapping back
1080         to the beginning of the buffer.
1082         [BZ #9823]
1083         * stdio-common/psignal.c (psignal): Fix test for empty string.
1085 2009-02-05  Ulrich Drepper  <drepper@redhat.com>
1087         * include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
1088         * sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth.  Also
1089         move _null_auth to .rodata.
1091         * time/tzset.c (__tzset_parse_tz): DST offset must also allow hour
1092         value of 24.
1094         * intl/dcigettext.c (DCIGETTEXT): Avoid some code duplication.
1096         * sysdeps/unix/opendir.c (__alloc_dir): We have a lot more memory
1097         today than when the original code was written.  Use larger
1098         buffers.  This also makes it unnecessary to have stat information,
1099         if this causes extra efforts.
1100         (__opendir): In case O_DIRECTORY works, don't call fstat just for
1101         __alloc_dir.
1103 2009-02-03  Andrew Stubbs  <ams@codesourcery.com>
1105         * sysdeps/sh/sh4/dl-trampoline.S: Only set HAVE_FPU if __SH_FPU_ANY__
1106         is set.
1107         * sysdeps/sh/sh4/setjmp.S: Support SH4-NOFPU.
1108         * sysdeps/sh/sh4/__longjmp.S: Likewise.
1109         * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: Likewise.
1110         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: Likewise.
1111         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: Likewise.
1112         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
1114 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
1116         * po/ru.po: Update from translation team.
1118 2008-11-17  Nathan Sidwell  <nathan@codesourcery.com>
1120         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):
1121         Add _tid slot to maintain consistency with kernel.
1123 2009-02-04  Ulrich Drepper  <drepper@redhat.com>
1125         * libio/wfileops.c (_IO_wfile_underflow): Fix handling of
1126         incomplete characters at end of input buffer.
1127         * libio/Makefile (tests): Add tst-fgetwc.
1128         * libio/tst-fgetwc.c: New file.
1129         * libio/tst-fgetwc.input: New file.
1131 2009-02-02  Andrew Stubbs  <ams@codesourcery.com>
1133         * sysdeps/unix/sysv/linux/sh/Makefile (libm.so-no-z-defs): Define.
1135 2009-02-02  Ulrich Drepper  <drepper@redhat.com>
1137         [BZ #9793]
1138         * iconv/gconv_trans.c (__gconv_transliterate): Don't change
1139         *OUTBUFSTART unless the whole output fit into the buffer.
1140         * iconv/Makefile (tests): Add tst-iconv4.
1141         * iconv/tst-iconv4.c: New file.
1143 2009-02-01  Ulrich Drepper  <drepper@redhat.com>
1145         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
1146         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
1148 2009-01-29  Andrew Stubbs  <ams@codesourcery.com>
1150         * elf/Makefile (ld.so): Adjust the sed script to insert _begin in to
1151         newer linker scripts.
1153 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
1155         [BZ #7040]
1156         * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
1157         inotify_rm_watch should have type int.
1159 2009-01-06  Steven Munroe  <sjmunroe@us.ibm.com>
1161         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
1162         Make aligned_restore_vmx a local symbol.
1163         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp):
1164         Likewise.
1166 2009-01-30  Andreas Jaeger  <aj@suse.de>
1168         * sysdeps/unix/sysv/linux/bits/shm.h (SHM_EXEC): Define.
1169         * sysdeps/unix/sysv/linux/ia64/bits/shm.h (SHM_EXEC): Define.
1170         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (SHM_EXEC): Define.
1171         * sysdeps/unix/sysv/linux/s390/bits/shm.h (SHM_EXEC): Define.
1172         * sysdeps/unix/sysv/linux/sh/bits/shm.h (SHM_EXEC): Define.
1173         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHM_EXEC): Define.
1174         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (SHM_EXEC): Define.
1176 2009-01-11  Ryan S. Arnold  <rsa@us.ibm.com>
1178         [BZ #9726]
1179         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_SET_DI_FPSCR,
1180         _SET_SI_FPSCR): Clobber fp0 to prevent erroneous test-case passes.
1182 2009-01-08  Ryan S. Arnold  <rsa@us.ibm.com>
1184         [BZ #9726]
1185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1186         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1187         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1188         (__CONTEXT_FUNC_NAME): Fix mtfsf to use fp31 instead of fp0.
1190 2009-01-11  Thomas Schwinge  <tschwinge@gnu.org>
1192         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Use
1193         memcpy instead of memcmp.
1194         (_dl_setup_pointer_guard): Likewise.
1196 2009-01-30  Ulrich Drepper  <drepper@redhat.com>
1198         * malloc/malloc.c (sYSMALLOc): Don't use assert when detecting
1199         manipulated brk, use malloc_printerr.
1200         * misc/sbrk.c (__sbrk): Better error handling for nonsense
1201         requests.
1203 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
1205         * string/string.h (memchr, strchr, strrchr, strpbrk, strstr, index,
1206         rindex): For C++ add inlines so that they can be recognized as
1207         builtins.
1208         * string/strings.h: Define correct C++ prototypes for gcc 4.4.
1210 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
1211             Jakub Jelinek  <jakub@redhat.com>
1213         * string/string.h: Define correct C++ prototypes for gcc 4.4.
1214         * wcsmbs/wchar.h: Likewise.
1216 2009-01-29  Ulrich Drepper  <drepper@redhat.com>
1218         * sysdeps/i386/stackinfo.h (stackinfo_get_sp): Define.
1219         (stackinfo_sub_sp): Define.
1221 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
1223         [BZ #9750]
1224         * nscd/mem.c (gc): Use alloca_count to get the real stack usage.
1225         * include/alloca.h (alloca_account): Define.
1226         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Define.
1227         (stackinfo_sub_sp): Define.
1229         * nscd/connections.c (nscd_init): If database file access fails
1230         check whether this is due to permission problems and bail in that
1231         case.
1233         [BZ #9741]
1234         * nscd/mem.c (gc): Fix assignment of he_data in case malloc is used.
1235         Reported by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>.
1237 2009-01-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1239         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL):
1240         Add "t" to clobber list.
1241         (INTERNAL_SYSCALL_NCS): Likewise.
1243 2009-01-28  Ulrich Drepper  <drepper@redhat.com>
1245         * nss/getent.c (print_networks): Don't print comma between aliases.
1247 2009-01-23  Ulrich Drepper  <drepper@redhat.com>
1249         * sysdeps/unix/sysv/linux/tst-clone.c (do_test): Avoid warning.
1251         * misc/hsearch_r.c (hcreate_r): We need at least three elements in
1252         the hash table.
1253         * misc/Makefile (tests): Add bug-hsearch1.
1254         * misc/bug-hsearch1.c: New file.
1256 2009-01-22  Roland McGrath  <roland@redhat.com>
1258         * Makeconfig (%.v.i): Strip trailing # comments,
1259         not only whole-line comments.
1261 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
1263         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
1264         one parameter.  If non-NULL use it to initialize return value.
1265         (_dl_setup_pointer_guard): New function.
1266         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
1267         * sysdeps/generic/ldsodefs.h: Declare _dl_random.
1268         * elf/rtld.c (security_init): Pass _dl_random to
1269         _dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
1270         pointer_chk_guard.
1271         * elf/dl-sysdep.c (_dl_random): New variable.
1272         (_dl_sysdep_start): Handle AT_RANDOM.
1273         (_dl_show_auxv): Likewise.
1274         * elf/dl-support.c (_dl_random): New variable.
1275         (_dl_aux_init): Handle AT_RANDOM.
1276         * csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
1277         to _dl_setup_stack_chk_guard.
1279         * elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
1281 2009-01-10  Roland McGrath  <roland@redhat.com>
1283         * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
1285 2009-01-08  Ulrich Drepper  <drepper@redhat.com>
1287         * sysdeps/i386/fpu/libm-test-ulps: Adjust expm1 errors.
1289         [BZ #9706]
1290         * nss/nss_files/files-parse.c (strtou32): New function.
1291         (INT_FIELD): Use strotu32 instead of strtoul to unify behavior
1292         across 32-bit and 64-bit platforms.
1293         (INT_FIELD_MAYBE_NULL): Likewise.
1295 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
1297         [BZ #9720]
1298         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid
1299         comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE.
1300         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who):
1301         Likewise.
1303 2009-01-05  Paolo Bonzini  <bonzini@gnu.org>
1305         [BZ #697]
1306         * posix/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
1307         being NULL also if there are no backreferences.
1308         * posix/rxspencer/tests: Add testcases.
1310 2009-01-04  Paolo Bonzini  <bonzini@gnu.org>
1312         [BZ #9697]
1313         * posix/bug-regex17.c: Add testcases.
1314         * posix/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
1315         handling.
1317 2009-01-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1319         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: New file.
1320         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: New file.
1321         * sysdeps/unix/sysv/linux/s390/init-first.c: New file.
1322         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines): Add dl-vdso
1323         for elf subdir.
1324         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL,
1325         INTERNAL_VSYSCALL, INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK,
1326         INTERNAL_SYSCALL_NCS, HAVE_CLOCK_GETRES_VSYSCALL and
1327         HAVE_CLOCK_GETTIME_VSYSCALL: Define.
1328         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
1329         * sysdeps/unix/sysv/linux/s390/Versions: New file.
1331 2008-12-31  Paolo Bonzini  <bonzini@gnu.org>
1333         * posix/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
1334         * posix/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
1335         re_string_skip_chars, re_string_reconstruct): Likewise.
1336         * posix/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
1338 2008-12-31  Rafael Avila de Espindola  <espindola@google.com>
1340         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Check and
1341         adjust the buffer alignment.
1343 2009-01-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1345         * sysdeps/mach/hurd/Makefile (sysdep_headers) [subdir=socket]:
1346         Add net/ethernet.h net/if_arp.h net/if_ether.h net/if_ppp.h
1347         net/route.h.
1349         * hurd/report-wait.c (describe_number): Use __stpcpy to prepend
1350         flavor to description only when flavor is not NULL.
1352         * hurd/hurdsig.c (signal_allowed): Unlock _hurd_dtable_lock
1353         mutex after SIGIO/SIGURG lookup loop.
1355 2009-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1357         * bits/resource.h (PRIO_PROCESS, PRIO_PGRP, PRIO_USER): Add macros.
1359 2009-01-03  Ulrich Drepper  <drepper@redhat.com>
1361         * sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
1362         handling.
1364 2009-01-02  Ulrich Drepper  <drepper@redhat.com>
1366         * sysdeps/unix/sysv/linux/kernel-features.h
1367         (__ASSUME_FUTEX_CLOCK_REALTIME): Define.
1369         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
1370         if no output is written.
1372         * version.h: Bump to 2.10 development.
1374         * posix/getconf.c: Update copyright year.
1375         * nss/getent.c: Likewise.
1376         * iconv/iconvconfig.c: Likewise.
1377         * iconv/iconv_prog.c: Likewise.
1378         * elf/ldconfig.c: Likewise.
1379         * catgets/gencat.c: Likewise.
1380         * csu/version.c: Likewise.
1381         * elf/ldd.bash.in: Likewise.
1382         * elf/sprof.c (print_version): Likewise.
1383         * locale/programs/locale.c: Likewise.
1384         * locale/programs/localedef.c: Likewise.
1385         * nscd/nscd.c (print_version): Likewise.
1386         * debug/xtrace.sh: Likewise.
1387         * malloc/memusage.sh: Likewise.
1388         * malloc/mtrace.pl: Likewise.
1389         * debug/catchsegv.sh: Likewise.
1391 2008-12-29  Mike Frysinger  <vapier@gentoo.org>
1393         * iconvdata/Makefile (iconv-rules): Use LC_ALL=C when running awk
1394         script.
1396 2008-12-29  Ulrich Drepper  <drepper@redhat.com>
1398         * sysdeps/posix/getaddrinfo.c (gaih_inet): When the
1399         gethostbyname4_r function call succeeded, just leave the loop.
1401         [BZ #9694]
1402         * wcsmbs/wchar.h: Move undefs for local __need_* constants to the
1403         very end.
1404         * wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
1405         * wctype/Makefile (tests): Add bug-wctypeh.
1406         * wctype/bug-wctypeh.c: New file.
1408         * nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
1409         LOCALDOMAIN is defined.
1410         * nscd/nscd_getai.c (__nscd_getai): Likewise.
1412         * sysdeps/x86_64/bits/select.h: New file.
1414         * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
1416 2008-12-21  Bruno Haible  <bruno@clisp.org>
1418         [BZ #9677]
1419         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Create temporary state object
1420         if no output is written.
1422 2008-12-13  Klaus Dittrich  <kladit@arcor.de>
1424         * login/utmp_file.c (pututline_file): Replace call to dup2 with
1425         libc internal symbol __dup2 to avoid access through the PLT.
1427 2008-12-08  Ulrich Drepper  <drepper@redhat.com>
1429         [BZ #6545]
1430         * sysdeps/unix/sysv/linux/bits/socket.h (SCM_CREDENTIALS): Make
1431         available only for __USE_GNU.
1433         * inet/Makefile (tests): Add tst-getni2.
1434         * inet/tst-getni2.c: New file.
1436         [BZ #7080]
1437         * inet/getnameinfo.c (getnameinfo): Check for output buffers being
1438         NULL when NI_NAMEREQD is set.
1439         Patch mostly by Yang Hongyang <yanghy@cn.fujitsu.com>.
1440         * inet/Makefile (tests): Add tst-getni1.
1441         * inet/tst-getni1.c: New file.
1443 2008-12-03  Petr Baudis  <pasky@suse.cz>
1445         [BZ #7067]
1446         * nscd/connections.c (invalidate_cache): Use prune_run_lock
1447         instead of prune_lock.
1448         (nscd_run_prune): Before calling prune_cache, take prune_run_lock.
1449         * nscd/nscd.h (database_dyn): Add prune_run_cache.
1451 2008-12-07  Ulrich Drepper  <drepper@redhat.com>
1453         * resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
1454         use.
1456         * sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
1457         handling.
1459         * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
1460         after reading name server list.
1462         [BZ #7058]
1463         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyname4_r): Fix memory
1464         handling for host name aliases.
1466 2008-11-24  Arkadiusz Miśkiewicz  <arekm@maven.pl>
1468         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG
1469         instead of doing things manually.
1471 2008-11-26  Chris Steel  <chris.steel.lnx@googlemail.com>
1473         * posix/regex_internal.h (build_wcs_upper_buffer):
1474         Return type is reg_error_t.
1476 2008-12-05  Ulrich Drepper  <drepper@redhat.com>
1478         * posix/globtest.sh: Use mktemp to create temporary file and
1479         directory.
1481         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S): Handle large
1482         sets correctly.
1483         (__CPU_CLR_S): Likewise.
1484         (__CPU_ISSET_S): Likewise.
1486 2008-12-05  Joseph Myers  <joseph@codesourcery.com>
1487             Ulrich Drepper  <drepper@redhat.com>
1489         * scripts/firstversion.awk: Use custom comparison function to compare
1490         version numbers.
1491         * scripts/versions.awk: Use sort invocation which can handle
1492         multi-digit sub-version numbers.
1494 2008-12-04  Ulrich Drepper  <drepper@redhat.com>
1496         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE2): Define.
1497         * locale/iso-639.def: Add Chhattisgarhi entry.
1499 2008-12-02  Ulrich Drepper  <drepper@redhat.com>
1501         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Recognize
1502         ESRCH return value.
1503         (_nss_dns_gethostbyname4_r): Likewise.
1504         * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
1505         * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use
1506         gethostbyname4_r, we don't have a separate IPv6 status, so copy
1507         the no_data variable.
1509         * resolv/res_init.c (__res_vinit): Fill in IPv4 name server
1510         information at the correct index.
1512         * socket/sys/socket.h: Declare accept4.
1513         * socket/accept4.c: New file.
1514         * sysdeps/unix/sysv/linux/accept4.c: New file.
1515         * sysdeps/unix/sysv/linux/i386/accept4.S: New file.
1516         * socket/Makefile (routines): Add accept4.
1517         * socket/Versions: Export accept4 with version GLIBC_2.10.
1518         * socket/paccept.c: Removed.
1519         * sysdeps/unix/sysv/linux/paccept.c: Removed.
1520         * sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
1521         * Versions.def: Define GLIBC_2.10 for libc.
1522         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
1524         * nscd/connections.c: Use accept4.
1526         * sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
1528 2008-12-01  Ulrich Drepper  <drepper@redhat.com>
1530         * resolv/res_send.c (send_dg): Create sockets with non-blocking
1531         flag already set.
1533         * stdlib/setenv.c (unsetenv): Don't search environment if it does
1534         not exist.
1535         * stdlib/Makefile (tests): Add tst-unsetenv1.
1536         * stdlib/tst-unsetenv1.c: New file.
1538 2008-11-29  Ulrich Drepper  <drepper@redhat.com>
1540         * login/utmp_file.c (file_writable): New variable.
1541         (setutent_file): Don't try to open file for writing.
1542         (pututline_file): Before writing, make descriptor writable if
1543         necessary.
1545 2008-11-26  Ulrich Drepper  <drepper@redhat.com>
1547         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict search
1548         to IPv4 or IPv6 if an interface has been found.
1550 2008-11-26  Roland McGrath  <roland@redhat.com>
1552         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Renamed to ...
1553         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: ... here.
1555         * sysdeps/unix/sysv/linux/alpha/wordexp.c: Renamed to ...
1556         * sysdeps/unix/sysv/linux/ia64/wordexp.c: ... here.
1557         * sysdeps/unix/sysv/linux/sparc/sparc64/wordexp.c: Change #include.
1559         * elf/elf.h (NT_386_IOPERM): New macro.
1560         (NT_PPC_VSX): New macro.
1562 2008-11-25  Roland McGrath  <roland@redhat.com>
1564         * sysdeps/alpha, sysdeps/unix/bsd/osf/alpha,
1565         sysdeps/unix/bsd/Attic/osf1/alpha, sysdeps/unix/sysv/linux/alpha,
1566         sysdeps/unix/sysv/linux/alpha/alpha, sysdeps/unix/alpha,
1567         sysdeps/mach/alpha, sysdeps/mach/hurd/alpha:
1568         Subdirectories moved to ports repository.
1569         * configure.in (base_machine): Remove alpha case.
1571 2008-11-25  Thomas Schwinge  <tschwinge@gnu.org>
1573         * sysdeps/mach/strerror_l.c: New file.
1575 2008-11-13  Ryan S. Arnold  <rsa@us.ibm.com>
1577         [BZ #6411]
1578         * sysdeps/powerpc/fpu/Makefile: Added test case tst-setcontext-fpscr.
1579         * sysdeps/powerpc/fpu/feholdexcpt.c (_FPU_MASK_ALL): Define to replace
1580         magic numbers.
1581         * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_register): Dynamically
1582         choose mtfsf insn based on PPC_FEATURE_HAS_DFP.
1583         (relax_fenv_state): Same as above.
1584         (FPSCR_29): Reserve bit in ISA 2.05.
1585         (FPSCR_NI): Provide define for compat.
1586         * sysdeps/powerpc/fpu/fesetenv.c (_FPU_MASK_ALL): Define to replace
1587         magic numbers.
1588         * sysdeps/powerpc/fpu/feupdateenv.c (_FPU_MASK_ALL): Define to replace
1589         magic numbers.
1590         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: New file.  Test case to
1591         test setcontext and swapcontext with dynamic 64-bit FPSCR detection.
1592         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Adjust
1593         access to hwcap to account for hwcap size increase to uint64_t.
1594         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp ):
1595         Likewise.
1596         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
1597         (*setcontext): Likewise.
1598         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/setcontext.S:
1599         New file.
1600         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/swapcontext.S:
1601         New file.
1602         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1603         (*setcontext): dynamically select mtfsf insn based on
1604         PPC_FEATURE_HAS_DFP. Adjust access to hwcap to account for hwcap size
1605         increase to uint64_t.
1606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1607         (*swapcontext): dynamically select mtfsf insn based on
1608         PPC_FEATURE_HAS_DFP.  Adjust access to hwcap to account for hwcap size
1609         increase to uint64_t.
1610         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/setcontext.S:
1611         New file.
1612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/swapcontext.S:
1613         New file.
1614         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1615         (*setcontext): dynamically select mtfsf insn based on
1616         PPC_FEATURE_HAS_DFP.
1617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1618         (*swapcontext): dynamically select mtfsf insn based on
1619         PPC_FEATURE_HAS_DFP.
1621 2008-11-13  Ulrich Drepper  <drepper@redhat.com>
1623         * version.h: Bump for 2.9 release.
1624         * include/features.h (__GLIBC_MINOR__): Bump to 9.
1626         [BZ #7029]
1627         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ALLOC_SIZE):
1628         Multiply with sizeof of __cpu_mask, not 8 unconditionally after
1629         all the rounding.
1631 2008-11-11  Ulrich Drepper  <drepper@redhat.com>
1633         [BZ #7009]
1634         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Don't abort for
1635         unknown request types for now.
1637 2008-11-11  Roland McGrath  <roland@redhat.com>
1639         * sysdeps/x86_64/configure: New file.
1641         * configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
1642         * configure: Regenerated.
1644 2008-11-03  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1646         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_profile): Use the
1647         correct instruction to remove the stack frame.
1649 2008-11-03  Michael Matz  <matz@suse.de>
1651         * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_32_acq,
1652         __arch_compare_and_exchange_val_64_acq): Add "memory" clobber.
1654 2008-11-07  Jakub Jelinek  <jakub@redhat.com>
1656         * include/stdio.h (__builtin_fwrite, __builtin_fwrite_unlocked):
1657         Remove.
1659         * bits/libc-tsd.h (__libc_tsd_define, __libc_tsd_address,
1660         __libc_tsd_get, __libc_tsd_set): Add TYPE argument, use it as the type
1661         of the thread variable instead of void *.
1662         * sysdeps/mach/hurd/bits/libc-tsd.h (__libc_tsd_define,
1663         __libc_tsd_address, __libc_tsd_get, __libc_tsd_set): Likewise.
1664         * include/ctype.h (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
1665         __libc_tsd_define arguments.
1666         (__ctype_b_loc, __ctype_toupper_loc, __ctype_tolower_loc): Adjust
1667         __libc_tsd_address arguments.  Remove union hack.
1668         * include/rpc/rpc.h (RPC_VARS): Adjust __libc_tsd_define arguments.
1669         * sunrpc/rpc_thread.c (RPC_VARS): Likewise.
1670         (__rpc_thread_destroy, rpc_thread_multi, __rpc_thread_variables):
1671         Adjust __libc_tsd_{set,get} arguments.
1672         * ctype/ctype-info.c (CTYPE_B, CTYPE_TOUPPER, CTYPE_TOLOWER): Adjust
1673         __libc_tsd_define arguments.
1674         * locale/uselocale.c (__uselocale): Adjust __libc_tsd_{set,get}
1675         arguments.
1676         * locale/lc-ctype.c (_nl_postload_ctype): Likewise.
1677         * locale/global-locale.c (__libc_tsd_LOCALE): Adjust type.
1678         (LOCALE): Adjust __libc_tsd_define arguments.
1679         * locale/localeinfo.h (_NL_CURRENT_LOCALE): Adjust __libc_tsd_get
1680         arguments.
1681         (LOCALE): Adjust __libc_tsd_define arguments.
1682         * sysdeps/mach/hurd/malloc-machine.h (MALLOC): Adjust __libc_tsd_define
1683         arguments.
1684         (tsd_setspecific, tsd_getspecific): Adjust __libc_tsd_{set,get}
1685         arguments.
1687 2008-11-02  Ulrich Drepper  <drepper@redhat.com>
1689         * malloc/malloc.c (public_rEALLOc): When new arena is used, copy
1690         really all bytes.  Patch by Denys Vlasenko <dvlasenk@redhat.com>.
1692 2008-11-01  Ulrich Drepper  <drepper@redhat.com>
1694         [BZ #6966]
1695         * misc/hsearch_r.c (hsearch_r): Fix secondary hash function.
1697 2008-10-24  Joseph Myers  <joseph@codesourcery.com>
1698             Ulrich Drepper  <drepper@redhat.com>
1700         * math/tgmath.h (__floating_type): Use __builtin_classify_type in
1701         definition for GCC 3.1 and later.
1703 2008-10-31  Jakub Jelinek  <jakub@redhat.com>
1705         * elf/dl-tls.c (__tls_get_addr): After calling _dl_update_slotinfo
1706         refetch dtv, as it might have changed.
1707         * elf/Makefile: Add rules to build and run tst-tls18.
1708         * elf/tst-tls18.c: New test.
1709         * elf/tst-tlsmod18a.c: New file.
1711 2008-09-09  Aurelien Jarno  <aurelien@aurel32.net>
1713         [BZ #6875]
1714         * iconvdata/gconv-modules: Add LATIN9 as an alias to ISO-8859-15.
1716 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
1718         [BZ #6867]
1719         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Fix typo.
1721         [BZ #6919]
1722         * posix/spawnattr_getschedparam.c (posix_spawnattr_getschedparam):
1723         Fix length of copy operation.
1725 2008-10-02  Pierre Habouzit <madcoder@debian.org>
1727         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Use the eventfd2 syscall
1728         and fix its calling convention.
1730 2008-10-07  Andreas Schwab  <schwab@suse.de>
1732         [BZ #6942]
1733         * resolv/res_send.c (send_vc): Fix last change.
1734         (send_dg): Align here as well.
1736 2008-10-31  Ulrich Drepper  <drepper@redhat.com>
1738         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle UL_GETFSIZE
1739         return value in case rlimit is RLIM_INFINITY.
1741         [BZ #6947]
1742         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
1743         for UL_SETFSIZE.
1744         * resource/Makefile (tests): Add bug-ulimit1.
1745         * resource/bug-ulimit1.c: New file.
1747         [BZ #6974]
1748         * sunrpc/rpc_main.c (mkfile_output): Properly handle filename
1749         without dot.  Properly terminate the string with a null byte.
1750         Based on a patch by Aurelien Jarno <aurelien@aurel32.net>.
1752         [BZ #6980]
1753         * debug/getgroups_chk.c (__getgroups_chk): Return EINVAL error for
1754         negative sizees.
1755         * posix/bits/unistd.h (getgroups): Call __getgroups_chk for
1756         negative __size.
1758         [BZ #6995]
1759         * sysdeps/powerpc/powerpc32/dl-machine.c: Fix typo in message.
1761 2008-10-30  Ulrich Drepper  <drepper@redhat.com>
1763         * grp/initgroups.c (internal_getgrouplist): Don't prematurely
1764         abort if there is no initgroups_dyn function.
1766         * resolv/res_send.c (send_dg): On timeout, only return nonzero
1767         result if any of the queries really provided an answer.
1769 2008-10-28  Ulrich Drepper  <drepper@redhat.com>
1771         * po/lt.po: Update from translation team.
1773 2008-10-26  Ulrich Drepper  <drepper@redhat.com>
1775         * po/id.po: Update from translation team.
1777 2008-10-24  Ulrich Drepper  <drepper@redhat.com>
1779         * resolv/res_query.c (__libc_res_nquery): Add a few casts.
1780         Fix tests for existence of second reply.
1782 2008-10-23  Ulrich Drepper  <drepper@redhat.com>
1784         * po/id.po: New file.
1785         Contributed by the Indonesian translation team.
1787 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
1789         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
1790         initialization.
1792 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
1794         * elf/Makefile: Add rules to build and run tst-tls17.
1795         * elf/tst-tls17.c: New test.
1796         * elf/tst-tlsmod17a.c: New file.
1797         * elf/tst-tlsmod17b.c: Likewise.
1799 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
1801         * stdlib/divmod_1.c: Use correct type for dummy variable.
1802         * stdlib/mod_1.c: Likewise.
1804 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
1806         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
1808 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
1810         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
1811         __nonnull order for C++.
1812         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
1813         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
1815 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
1817         * stdlib/longlong.h: Update from GCC.
1819 2008-10-09  Jakub Jelinek <jakub@redhat.com>
1820             David S. Miller  <davem@davemloft.net>
1822         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
1823         make sure any registers used with 64-bit 'branch-on-register'
1824         instructions have their top 32-bits clear.
1825         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
1826         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
1828 2008-09-18  Andreas Schwab  <schwab@suse.de>
1830         [BZ #6942]
1831         * resolv/res_send.c (send_vc): Fix use of unaligned address.
1832         Properly handle partial reads.
1834 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
1836         * elf/elf.h (STO_MIPS_PLT): New.
1837         (R_MIPS_COPY): New.
1838         (R_MIPS_JUMP_SLOT): New.
1839         (R_MIPS_NUM): Redefine to 128.
1840         (DT_MIPS_PLTGOT): New.
1841         (DT_MIPS_RWPLT): New.
1842         (DT_MIPS_NUM): Redefine to 0x35.
1844 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
1846         * timezone/africa: Update from tzdata2008f.
1847         * timezone/asia: Likewise.
1848         * timezone/australasia: Likewise.
1849         * timezone/europe: Likewise.
1850         * timezone/leapseconds: Likewise.
1851         * timezone/northamerica: Likewise.
1852         * timezone/southamerica: Likewise.
1853         * timezone/zone.tab: Likewise.
1855 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
1857         * nscd/connections.c: Disable use of paccept for now.
1859 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
1861         * socket/Versions: Remove paccept export for GLIBC_2.9.
1862         * socket/Makefile (routines): Remove paccept.
1863         * socket/sys/socket.h: Remove paccept declaration.
1865         * po/sv.po: Update from translation team.
1867 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
1869         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
1870         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
1872 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
1874         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
1875         Patch by Olivier Fourdan <ofourdan@redhat.com>.
1877 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
1879         * sunrpc/rpc/svc.h: Declare svcfd_create.
1880         Patch by Michael Solberg <msolberg@redhat.com>.
1882 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
1883             Ulrich Drepper  <drepper@redhat.com>
1885         * malloc/malloc.c (public_vALLOc): Try other arenas in case
1886         _int_valloc fails.
1887         (public_pVALLOc): Likewise.
1889 2008-09-02  Andreas Jaeger  <aj@suse.de>
1891         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
1892         commit.
1894 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
1896         [BZ #6860]
1897         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
1899 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
1901         * Makefile (check-data): Check data directory in add-ons.
1902         * elf/Makefile (check-data): Likewise.
1904 2008-08-18  Roland McGrath  <roland@redhat.com>
1906         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
1907         * configure: Regenerated.
1908         * config.make.in (cflags-cpu): New substituted variable.
1909         (with-cpu): Variable removed.
1910         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
1912 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
1914         [BZ #6845]
1915         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
1916         __signbitl definition and __LONG_DOUBLE_128__ guard from:
1917         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
1918         redundant.  Functions which call floating point assembler operations
1919         should go into a sysdeps powerpc/fpu directory.
1921 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
1923         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
1924         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
1926 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
1928         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
1930         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
1931         change related to AT_EXECFN.  We cannot use that string.
1932         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
1933         _dl_execfn member.
1934         * elf/dl-support.c: Remove _dl_execfn variable.
1935         (_dl_aux_init): Remove handling of AT_EXECFN.
1936         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
1937         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
1939 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
1941         [BZ #6544]
1942         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
1943         byte gets added to writes and seeks from the end use the length of
1944         the buffer and not the currently terminating NUL byte.
1946         [BZ #6634]
1947         * login/utmp_file.c (getutent_r_file): Take additional parameter.
1948         Set to true if locking failed.
1949         (getutid_r_file): Adjust caller.
1950         (pututline_file): Likewise.  Return NULL in this case.
1951         Patch mostly by halesh.s@gmail.com.
1953 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
1955         [BZ #6589]
1956         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
1957         Define.
1958         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
1960 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
1962         [BZ #6839]
1963         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
1964         macro since it is now available in elf/dynamic-link.h.
1966 2008-08-12  Roland McGrath  <roland@frob.com>
1968         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
1969         in case used outside of libc.
1970         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
1972 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
1974         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
1975         directly instead of going through dn_comp.
1977 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
1979         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
1980         Fix asm constraints.
1982 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
1984         [BZ #6790]
1985         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
1986         (IPV6_PMTUDISC_PROBE): Likewise.
1988 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
1990         [BZ #6791]
1991         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
1993 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
1994             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
1996         [BZ #6817]
1997         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
1998         Added the members 'vsx' and 'arch_2_06'.
1999         (_dl_powerpc_platforms): Add the member 'power7'.
2000         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
2001         to reflect the changes required by VSX and ISA 2.06.
2002         Modify _DL_PLATFORMS_COUNT to reflect the addition of
2003         'power7'.
2004         Defined PPC_PLATFORM_POWER7.
2005         (_dl_string_platform): Add support for POWER7.
2006         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
2007         capability and ISA 2.06.
2009 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
2011         [BZ #6824]
2012         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
2013         macro to detect use of 128 bit long double.
2014         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
2016 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
2018         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
2020         [BZ #5794]
2021         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
2022         parameters.
2023         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2024         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
2026 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
2028         * nscd/connections.c (main_loop_poll): Pass a buffer which is
2029         guaranteed to be large enough to read inotify event.  Ignore
2030         EAGAIN error.  Better error message.  Add branch predicition.
2031         (main_loop_epoll): Likewise.
2033 2008-08-02  Roland McGrath  <roland@frob.com>
2035         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
2036         Add memory clobbers.
2038 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
2040         * manual/arith.texi: Avoid @strong{Note:}.
2041         * manual/creature.texi: Likewise.
2042         * manual/filesys.texi: Likewise.
2043         * manual/math.texi: Likewise.
2044         * manual/memory.texi: Likewise.
2045         * manual/resource.texi: Likewise.
2046         * manual/syslog.texi: Likewise.
2047         * manual/time.texi: Likewise.
2049         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
2050         to prevent warning.
2052 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
2054         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
2055         new epoll_create1 interface.
2056         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2057         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
2058         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
2060         * include/arpa/nameser.h (NS_GET16): Use const pointer.
2061         (NS_GET32): Likewise.
2063         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
2064         syscalls, too.
2066         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
2067         use the AT_EXECFN value if it is no absolute path.
2068         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
2069         __ASSUME_AT_EXECFN.
2071         * Versions.def: Add GLIBC_2.9 to libresolv.
2072         * include/resolv.h: Remove hidden proto declarations for __ns_*
2073         functions.  Add them for __dn_count_labels and __p_secstodate.
2074         * include/arpa/nameser.h: Add a number of hidden proto declarations.
2075         Define ns_msg_getflags macro here.
2076         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
2077         and __p_secstodate.
2078         * resolv/Versions: Export functions from <arpa/nameser.h> from
2079         libresolv in version GLIBC_2.9.
2080         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
2081         hidden definitions.
2082         * resolv/ns_netint.c: Likewise.
2083         * resolv/ns_parse.c: Likewise.
2084         * resolv/ns_print.c: Likewise.
2085         * resolv/ns_samedomain.c: Likewise.
2086         * resolv/ns_ttl.c: Likewise.
2087         * resolv/arpa/nameser_compat.h: Likewise.
2088         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
2089         function calls.
2090         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
2091         instead of ns_get16.
2092         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
2093         __ns_get32 instead of ns_get16 and ns_get32 respectively.
2094         (gaih_getanswer_slice): Likewise.
2095         * resolv/Makefile (libresolv-routines): Add ns_date.
2096         * resolv/ns_date.c: New file.
2098         * elf/Makefile (check-localplt.out): Also check libresolv and
2099         libcrypt.
2101 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
2103         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2104         __ASSUME_O_CLOEXEC.
2106 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
2108         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
2109         buffer passed to NSS functions.
2111         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
2113         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
2114         Define.
2116         * misc/syslog.c (openlog_internal): Fix compile problem.
2118 2008-07-28  Roland McGrath  <roland@redhat.com>
2120         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
2122 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
2124         * io/ftw.c (add_object): Remove inline to avoid warning.
2126         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
2128         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
2129         Use it instead of locally defined resplen2 variable.
2130         (res_nsend): Adjust for __libc_res_nsend interface change.
2131         (send_vc): Initialize *resplen2 if necessary.  Read length of
2132         package into an appropriately aligned variable.  Store converted length
2133         in new variable and use it appropriately.
2134         Add branch prediction help.
2135         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
2136         and pass it on to __libc_res_nsend.  Adjust all callers.
2137         (__libc_res_nsearch): Likewise.
2138         (__libc_res_nqeurydomain): Likewise.
2139         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
2140         change.
2141         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
2142         Define resplen2 variable and pass it to __libc_res_nsearch and then
2143         to gaih_getanswer.
2144         (getanswer_r): In case of incorrect DNS data don't overread buffer.
2145         Add branch prediction.
2146         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
2147         (gaih_getanswer): Don't decode second slice if first one failed due
2148         to a too small buffer.  Don't let not found status of second
2149         decoder shadow results of the first.
2150         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
2151         and __libc_res_nquery interface changes
2152         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
2153         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
2154         __libc_res_nsearch, and __libc_res_nsend.
2155         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
2156         change.
2157         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
2158         __libc_res_nsearch interface changes.
2160 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
2162         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
2164         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
2165         file descriptors with close-on-exec set.
2166         (exec_comm_child): Fix the case where the write end of the pipe is
2167         STDOUT_FILENO already.  In case it is, clear close-on-exec.
2169         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
2170         * io/pipe2.c: Likewise.
2171         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
2172         instead of __ASSUME_PACCEPT.
2173         * include/unistd.h: Declare __have_pipe2.
2174         * libio/iopopen.c: Implement "e" flag.
2175         * libio/Makefile (tests): Add tst-popen1.
2176         * libio/tst-popen1.c: New file.
2178         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
2179         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2181 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
2183         [BZ #6771]
2184         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
2185         success call of _IO_SEEKOFF or calls which failed because the
2186         descriptor is for a pipe.
2188         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
2189         magic number.
2191         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
2193         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
2194         F_SETFD use if we know fopen set the flag.
2196         * login/utmp_file.c (setutent_file): Minor optimization in case
2197         O_CLOEXEC is available.
2199 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
2201         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
2202         * elf/Makefile: Use pie-ccflag variable.
2203         * nscd/Makefile: Likewise.
2204         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
2206 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
2208         [BZ #6724]
2209         * Versions.def: Add GLIBC_2.9 version tag for libutil.
2210         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
2211         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
2212         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
2213         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
2214         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
2215         utmp32, utmpx32 and login32.
2216         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
2217         versions of struct utmp functions to libc and libutil.
2218         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
2219         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
2220         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
2221         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
2222         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
2223         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
2224         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
2225         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
2226         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
2227         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
2228         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
2229         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
2230         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
2231         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
2232         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
2233         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
2234         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
2235         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
2236         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
2237         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
2238         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
2239         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
2241 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
2243         * scripts/gen-as-const.awk: Generate more widely usable code by
2244         using 64-bit arithmetic.
2246         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
2247         the same treatment as narrow output code in last patch.
2249         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
2251         [BZ #6763]
2252         * elf/dl-load.c (local_strdup): Remove inline.
2253         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
2254         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
2255         part of the object.
2257         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
2259 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
2261         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
2262         the new syscalls, too.
2264         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
2265         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
2267         [BZ #6698]
2268         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
2269         parameter for end of buffer.  If temporary copy is too large use
2270         malloc.
2271         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
2272         interface change.
2273         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
2274         string rewrite when allocating buffer.
2276         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
2277         syscalls, too.
2279         * nscd/connections.c (nscd_init): Clean up fcntl call.
2281         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
2282         SOCK_NONBLOCK if possible.
2284         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
2285         SOCK_CLOEXEC if available.
2287         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
2288         __libc_clntudp_bufcreate_internal.
2289         * include/sys/socket.h: Declare __have_sock_cloexec.
2290         * socket/Makefile (aux): Add have_sock_cloexec.
2291         * socket/have_sock_cloexec.c: New file.
2292         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
2293         __libc_clntudp_bufcreate.
2294         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
2295         which takes an additional parameter.  Create socket with non-blocking
2296         mode and close-on-exec flag set, if wanted.
2297         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
2298         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
2299         instead of clntudp_create.  The socket has already the close-on-exec
2300         flag set if SOCK_CLOEXEC is defined.
2302 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
2304         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2305         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
2306         appropriate.
2307         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
2308         non-blocking mode by using socket, paccept, and inotify_init1.
2310         * Versions.def (glibc): Add GLIBC_2.9.
2311         * io/Makefile (routines): Add dup3 and pipe2.
2312         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
2313         * io/dup3.c: New file.
2314         * io/pipe2.c: New file.
2315         * posix/unistd.h: Declare dup3 and pipe2.
2316         * socket/Makefile (routines): Add paccept.
2317         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
2318         * socket/paccept.c: New file.
2319         * socket/sys/socket.h: Declare paccept.
2320         * sysdeps/unix/syscalls.list: Add entry for dup3.
2321         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
2322         epoll_create2 and inotify_init1.
2323         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
2324         * sysdeps/unix/sysv/linux/paccept.c: New file.
2325         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
2326         possible.
2327         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
2328         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
2329         inotify_init1, and pipe2 entries.
2330         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
2331         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
2332         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
2333         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
2334         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
2335         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
2336         SOCK_NONBLOCK.
2337         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
2338         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
2339         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
2340         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
2341         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
2342         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
2343         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
2344         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
2345         EPOLL_NONBLOCK.  Declare epoll_create2.
2346         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
2347         EFD_NONBLOCK.
2348         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
2349         IN_NONBLOCK.  Declare inotify_init1.
2350         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
2351         SFD_NONBLOCK.
2352         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
2353         TFD_NONBLOCK.
2355         * elf/elf.h: Define AT_EXECFN.
2356         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
2357         LD_ORIGIN_PATH.
2358         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
2359         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
2360         if __ASSUME_AT_EXECFN is defined.
2361         (_dl_aux_init): Handle AT_EXECFN.
2362         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
2363         for 2.6.27 and up.
2364         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
2365         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
2366         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
2367         _dl_execfn if available and avoid compatibility code if
2368         __ASSUME_AT_EXECFN is defined.
2370         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
2371         _dl_discover_osversion only for older kernels.
2373 2008-07-22  Roland McGrath  <roland@frob.com>
2375         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
2377 2008-07-21  Roland McGrath  <roland@frob.com>
2379         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
2380         returned too much data out of line.
2382 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
2384         * locale/setlocale.c (setname): Remove inline to avoid compiler
2385         warning.
2387         [BZ #6712]
2388         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
2390 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
2392         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
2393         doesn't manage to write anything, fail.
2395         * malloc/hooks.c (__malloc_check_init): Remove printf.
2397 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2399         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
2401 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
2403         * nscd/connections.c (main_loop_poll): Fix handling of read errors
2404         from inotify.
2405         (main_loop_epoll): Likewise.
2407 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
2409         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
2411         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
2412         if DEBUG is defined.
2414         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
2415         query.  Adjust buffer size computation for padding.
2417 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
2419         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
2420         * stdio-common/tst-setvbuf1.c: New file.
2421         * stdio-common/tst-setvbuf1.expect: New file.
2423         [BZ #6719]
2424         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
2425         when selecting fully-buffered stream.
2426         Patch by Wang Xin <wxinee@gmail.com>.
2428 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2430         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
2431         (__open_2): New function.
2432         (__open64_2): New alias to __open_2.
2433         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
2434         (__openat_2): New function.
2435         (__openat64_2): New alias to __openat_2.
2437 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
2439         [BZ #6723]
2440         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
2442 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2444         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
2445         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
2446         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
2447         __hurd_dfail.
2448         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2449         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2450         * sysdeps/mach/hurd/send.c (__send): Likewise.
2451         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
2452         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
2454 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2456         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
2457         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
2458         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
2459         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
2460         * hurd/get-host.c (_hurd_get_host_config): Likewise.
2461         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
2463 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
2465         [BZ #6657]
2466         * time/strptime_l.c: Don't clear s.era_cnt after successful match
2467         of %EY.
2468         Patch by Petr Baudis.
2470 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
2472         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
2473         Patch by Peter Jones <pjones@redhat.com>.
2475 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
2477         [BZ #6654]
2478         * stdlib/canonicalize.c (__realpath): readlink can write too much
2479         into the buffer on platforms without PATH_MAX.
2481 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
2483         [BZ #6653]
2484         * posix/tst-regex.c (main): Rename to...
2485         (do_test): ... this. Remove cmdline option processing.
2486         (TIMEOUT): Define.
2487         (TEST_FUNCTION): Define.
2488         (CMDLINE_OPTIONS): Define.
2490 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
2492         [BZ #5210]
2493         * configure.in: Add -Werror to -fstack-protector test to catch
2494         unsupported architectures.
2495         Patch by Gilles Esponasse <g.esp@free.fr>.
2497 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
2499         * stdlib/tst-setcontext.c: Set back_in_main before exit if
2500         getcontext returns ENOSYS.
2502 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
2504         * nscd/connections.c (main_loop_poll): Fix test for read error.
2505         (main_loop_epoll): Likewise.
2507 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
2509         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
2510         better place so it is not called when nscd is used.
2512         * nscd/connections.c: Also recognize and handle changes to the
2513         resolver configuration file.
2515 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
2517         * time/strftime.c: Pass reference to tzset_called around to handle
2518         recursive calls.
2520         [BZ #6612]
2521         * time/strftime.c (__strftime_internal): Call tzset() only
2522         when printing timezone-dependent values.
2523         Based on a patch by Petr Baudis <pasky@suse.cz>.
2525         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
2526         unconditionally use second gaih_getanswer_slice result.
2528         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
2529         (getaddrinfo): RES must always be non-NULL.
2531 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
2533         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
2534         cr[34] registers.
2535         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
2536         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
2537         Likewise.
2538         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
2539         register.
2541 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
2543         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
2544         fields.
2545         * nscd/connections.c (inotify_fd): New variable.
2546         (nscd_init): Try to open an inotify descriptor.
2547         If successful, watch files for databases using inotify instead of
2548         having prune threads stat the files.
2549         (nscd_run_prune): Recognize clear_cache flag being set and call
2550         prune_cache appropriately.
2551         (main_loop_poll): Add inotify descriptor to wait set and handle the
2552         reported changes.
2553         (main_loop_epoll): Likewise.
2554         * nscd/cache.c (prune_cache): Don't stat files for databases if
2555         inotify is used.
2556         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
2557         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
2559         * nscd/grpcache.c (cache_addgr): Correctly compute size of
2560         fixed-size portion of the record.
2561         * nscd/servicescache.c (cache_addserv): Likewise.
2562         * nscd/pwdcache.c (cache_addpw): Likewise.
2563         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2565 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
2567         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
2568         out we don't use uninitialized memory.
2570         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
2571         the client.
2573 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
2575         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
2576         ignore T_DNAME messages.
2577         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
2579 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
2581         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
2582         Avoid segfault if first GETC returns eof/'\0'/'\n'.
2584 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
2586         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
2587         instead of portstr to nscd_getserv_r.  Patch by
2588         Roman Kagan <rkagan@mail.ru>.
2590 2008-05-26  Jim Meyering  <meyering@redhat.com>
2592         Remove more useless "if" tests before "free".
2593         * include/inline-hashtab.h (htab_delete): Likewise.
2594         * libio/freopen.c (freopen): Likewise.
2595         * libio/freopen64.c (freopen64): Likewise.
2596         * locale/programs/ld-collate.c (collate_read): Likewise.
2597         * misc/fstab.c (libc_freeres_fn): Likewise.
2598         * posix/glob.c (globfree): Likewise.
2600 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
2602         * string/Makefile (strop-tests): Add memmem.
2603         * string/test-memmem.c: New file.
2604         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
2605         (test_init): Size buf1 according to BUF1PAGES.
2607 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
2609         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
2610         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
2611         (CFLAGS-scanf17.c): New.
2612         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
2613         * stdio-common/scanf15.c (main): Likewise.
2614         * stdio-common/scanf16.c: New file.
2615         * stdio-common/scanf17.c: New file.
2617 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
2619         * resolv/res_send.c (send_dg): If we already have one of two
2620         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
2621         use the one answer insted of failing.
2623 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
2625         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
2626         being executed on PowerPC as the expected result exceeds IBM
2627         long double 128 __LDBL_MAX__.
2629 2008-05-21  Roland McGrath  <roland@redhat.com>
2631         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
2633         * Makefile (check-data): Use $(abi-name) before other guesses.
2634         Look in $(add-ons) dirs before scripts/data/.
2635         * elf/Makefile (check-data): Likewise.
2637         * scripts/soversions.awk: Grok ABI line.
2638         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
2639         Emit definition for abi-name variable.
2641 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
2643         * string/endian.h: Define new fixed-size hto* and *toh macros only
2644         if [__USE_BSD].
2646         * iconvdata/Depend: Add localedata.
2648 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2650         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
2652 2008-05-08  David S. Miller  <davem@davemloft.net>
2654         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
2655         HIDDEN_JUMPTARGET.
2656         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2657         (__SYSCALL_CLOBBERS): Remove %g* registers.
2658         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2659         (__SYSCALL_CLOBBERS): Likewise.
2660         * scripts/data/localplt-sparc-linux-gnu.data: New file.
2661         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
2663 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
2665         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2666         (CALL_ERRNO_LOCATION): Define.
2667         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
2668         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
2669         (CALL_ERRNO_LOCATION): Define.
2670         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
2671         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
2672         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
2674 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
2676         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
2677         variable.
2679 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
2681         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
2682         (FIRST_FRAME_POINTER): Define.
2684 2008-05-09  David S. Miller  <davem@davemloft.net>
2686         * sysdeps/sparc/sparc64/backtrace.c: New file.
2688 2008-05-14  David S. Miller  <davem@davemloft.net>
2690         * sysdeps/sparc/machine-gmon.h: New file.
2691         * sysdeps/sparc/sparc-mcount.S: Likewise.
2692         * sysdeps/sparc/Makefile: Add sparc-mcount target to
2693         sysdep_routines in gmon directory.
2695 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
2697         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
2699 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
2701         * resolv/res_query.c (__libc_res_nquery): In case one of two
2702         answer was too short don't try to read that answer's header.
2704         * resolv/res_send.c (send_dg): In case of timeout and there are
2705         two queries and one has been answered, return value indicating
2706         success.
2708 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
2710         * nscd/cache.c (cache_add): Take additional parameter specifying
2711         whether this is in response of a cache refill.  Check alignment
2712         of package data.  Revamp waking of pruning thread.
2713         (prune_cache): Small optimization.
2714         * nscd/nscd.h: Adjust cache_add prototypes.
2715         * nscd/aicache.c: Adjust cache_add calls.
2716         * nscd/grpcache.c: Likewise.
2717         * nscd/hstcache.c: Likewise.
2718         * nscd/initgrcache.c: Likewise.
2719         * nscd/pwdcache.c: Likewise.
2720         * nscd/servicescache.c: Likewise.
2721         * nscd/connections.c (restart): Really disable cache use before
2722         exec attempt.  If it fails, reenable cache.
2723         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
2724         time to max to be able to notice concurrent cache additions.  Unlock
2725         prune_lock while performing gc.  Afterwards compute wakeup time with
2726         current wakeup_time value in mind.
2728 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
2730         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
2732         * nscd/mem.c (gc): Correctly determine highest used array element
2733         in mark.
2735         * nscd/mem.c (markrange): Add assert to check entries are all
2736         aligned.  Small cleanup in bitmap use.
2738         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
2739         blockoff of type nscd_ssize_t.
2740         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
2741         (mempoll_alloc): Record block offset and not address.
2743         * nscd/mem.c (gc): Fix test for stack overuse.
2745         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
2746         more asserts.
2748         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
2749         entry is available, believe it.
2751         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
2752         no answers return NSS_STATUS_NOTFOUND.
2753         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
2754         buffer does not have any content.
2756 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
2758         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
2760         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
2761         lookup, don't assign canon unconditionally.
2763 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
2765         * string/Makefile (distribute): Add str-two-way.h.
2767 2008-03-29  Eric Blake  <ebb9@byu.net>
2769         Rewrite string searches to O(n) rather than O(n^2).
2770         * string/str-two-way.h: New file.  For linear fixed-allocation
2771         string searching.
2772         * string/memmem.c: New implementation.
2773         * string/strstr.c: New implementation.
2774         * string/strcasestr.c: New implementation.
2776 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
2778         * posix/regcomp.c (optimize_utf8): Add a note on why we test
2779         opr.ctx_type.
2780         (calc_first): Initialize constraint field.
2781         (duplicate_node_closure): Use it instead of special casing ANCHORS.
2782         Use search_duplicated_node to avoid loops.  Fix grammar.
2783         (duplicate_node): Merge constraint field for all node types.
2784         (calc_eclosure_iter): Look at constraint field for all node types.
2785         * posix/regex_internal.c (create_cd_newstate): Don't look at
2786         create_cd_newstate.
2788 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
2790         [BZ #6428]
2791         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
2793         [BZ #6442]
2794         * string/endian.h: Add macros for fixed-size endian conversion.
2795         * bits/byteswap.h: Allow inclusion from <endian.h>.
2796         * sysdeps/i386/bits/byteswap.h: Likewise.
2797         * sysdeps/ia64/bits/byteswap.h: Likewise.
2798         * sysdeps/s390/bits/byteswap.h: Likewise.
2799         * sysdeps/x86_64/bits/byteswap.h: Likewise.
2800         * string/Makefile (tests): Add tst-endian.
2801         * string/tst-endian.c: New file.
2803         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
2804         Patch by Reuben Thomas.
2806 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
2808         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
2810 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
2812         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
2814         [BZ #6461]
2815         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
2816         Add missing braces.
2817         (BODY for __gconv_transform_internal_ascii): Likewise.
2819         [BZ #6472]
2820         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
2821         to be treated like link-local addresses.
2822         (match_prefix): Don't treat IPv4 loopback address special when
2823         converting to v4 mapped addressed.
2825         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
2826         if necessary.
2827         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
2828         * posix/tst-rfc3484-2.c: Likewise.
2829         * posix/tst-rfc3484-3.c: Likewise.
2831         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
2832         and SCTP.
2834         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
2836         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
2838         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
2840 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
2842         * po/lt.po: New file.  From Lituanian translation team.
2844 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
2846         Introduce TLS descriptors for i386 and x86_64.
2847         * include/inline-hashtab.h: New file, copied from 2005's
2848         libiberty, with fix for memory leak imported afterwards by
2849         Glauber de Oliveira Costa.
2850         * elf/tlsdeschtab.h: New file.
2851         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
2852         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
2853         (CHECK_STATIC_TLS): Move to...
2854         * elf/dynamic-link.h: ... this file.
2855         (TRY_STATIC_TLS): New macro.
2856         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
2857         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
2858         R_386_TLS_DESC): Define.
2859         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
2860         binutils.
2861         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
2862         R_X86_64_TLSDESC): Define.
2863         (R_386_NUM, R_X86_64_NUM): Adjust.
2864         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
2865         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
2866         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
2867         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
2868         release tlsdesc_table.
2869         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
2870         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
2871         (elf_machine_rel): Handle R_386_TLS_DESC.
2872         (elf_machine_rela): Likewise.
2873         (elf_machine_lazy_rel): Likewise.
2874         (elf_machine_lazy_rela): Likewise.
2875         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
2876         * sysdeps/i386/dl-tlsdesc.S: New file.
2877         * sysdeps/i386/dl-tlsdesc.h: New file.
2878         * sysdeps/i386/tlsdesc.c: New file.
2879         * sysdeps/i386/tlsdesc.sym: New file.
2880         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
2881         tlsdesc_table.
2882         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
2883         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
2884         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
2885         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
2886         release tlsdesc_table.
2887         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
2888         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
2889         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
2890         (elf_machine_rel): Handle R_X86_64_TLSDESC.
2891         (elf_machine_rela): Likewise.
2892         (elf_machine_lazy_rel): Likewise.
2893         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
2894         (__tls_get_addr): Do not declare for non-shared compiles.
2895         * sysdeps/x86_64/dl-tlsdesc.S: New file.
2896         * sysdeps/x86_64/dl-tlsdesc.h: New file.
2897         * sysdeps/x86_64/tlsdesc.c: New file.
2898         * sysdeps/x86_64/tlsdesc.sym: New file.
2899         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
2900         tlsdesc_table for both 32- and 64-bit structs.
2902 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
2904         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
2905         its own function.  This reduces the frame setup costs and more.
2907 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
2909         [BZ #3406]
2910         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
2911         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
2913 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
2915         * io/openat.c (__openat_2): Also pass fd to __openat.
2916         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
2917         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
2919         * string/tester.c (test_memcmp): Add a few more tests.
2920         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
2922 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
2924         * nscd/cache.c (cache_add): Before returning with failure and this
2925         is the first use of the record, mark it as unusable.
2926         * nscd/aicache.c: Don't touch the dataset after cache_add returns
2927         reporting a failure.
2928         * nscd/grpcache.c: Likewise
2929         * nscd/hstcache.c: Likewise.
2930         * nscd/initgrcache.c: Likewise.
2931         * nscd/pwdcache.c: Likewise.
2932         * nscd/servicescache.c: Likewise.
2934 2008-05-10  Roland McGrath  <roland@redhat.com>
2936         [BZ #6505]
2937         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
2939 2008-05-08  David S. Miller  <davem@davemloft.net>
2941         * misc/truncate64.c (truncate64): Use __truncate not truncate.
2943         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
2944         (__ieee754_y0l): Likewise.
2945         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
2946         (__ieee754_y1l): Likewise.
2947         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
2948         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
2949         frexpl and ldexpl.  math_private.h provides them and the latter
2950         is not even used.
2951         (__log1pl): Use __frexpl.
2953 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
2955         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
2956         prototypes.
2957         * include/arpa/nameser_compat.h: Define T_UNSPEC.
2958         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
2959         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
2960         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
2961         af==AF_UNSPEC.
2962         (_nss_nis_gethostbyname4_r): New function.
2963         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
2964         Change to also handle af==AF_UNSPEC.
2965         (get_tablename): New function.  Use it to avoid duplication.
2966         (_nss_nisplus_gethostbyname4_r): New function.
2967         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
2968         available.
2969         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
2970         * nss/nss.h: Define struct gaih_addrtuple.
2971         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
2972         af==AF_UNSPEC.
2973         (_nss_files_gethostbyname4_r): New function.
2974         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
2975         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
2976         calls.
2977         * resolv/res_query.c (__libc_res_nquery): Take two additional
2978         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
2979         look up IPv4 and IPv6.
2980         Change all callers.
2981         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
2982         for an additional query and answer buffer.  Pass to send_vc and
2983         send_dg.
2984         (send_vc): Send possibly two requests and receive two answers.
2985         (send_dg): Likewise.
2986         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
2987         __libc_res_nquery.
2988         (_nss_dns_gethostbyname4_r): New function.
2989         (gaih_getanswer_slice): Likewise.
2990         (gaih_getanswer): Likewise.
2991         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
2992         __libc_res_nquery call.
2993         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
2994         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
2995         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
2996         available.
2998 2008-05-05  David S. Miller  <davem@davemloft.net>
3000         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
3001         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
3003 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3005         Fix termios bit macros.
3006         Move *DLY definitions where they belong, in termios.h.
3007         Add *[0-3] definitions.
3008         Fixes confusion between VT and FF.
3009         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
3010         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
3011         are already defined to avoid collision with termios.h.
3012         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
3013         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
3014         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
3015         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
3016         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
3017         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
3018         VTDLY, VT0, VT1): New macros.
3019         [__USE_GNU] (OLCUC): Change value of macro.
3020         [__USE_XOPEN] (OFILL): New macro.
3021         [__USE_BSD] (CRTSCTS): Change value.
3022         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
3023         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
3024         (B7200, B14400, B28800, B76800): New macros.
3026 2008-05-01  David S. Miller  <davem@davemloft.net>
3028         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
3029         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
3030         (gen-as-const-headers): Add it.
3031         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
3032         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
3033         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
3034         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
3036         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
3037         six system call parameters.
3038         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
3040 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
3042         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
3043         RUSAGE_LWP.
3044         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
3045         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
3047 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
3049         * stdlib/tst-setcontext.c: Include unistd.h.
3051 2008-04-25  David S. Miller  <davem@davemloft.net>
3053         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
3054         Pass "union semun" properly in to sys_ipc, it must be passed
3055         by value, not by reference.
3057 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
3059         * nscd/Makefile (nscd-cflags): Set back to -fpie.
3060         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
3061         * nscd/connections.c (mem_in_flight): Likewise.
3063         * nscd/nscd.h (dbs): Make hidden.
3065         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
3066         Avoid returning -1, return 0 instead.
3068 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
3070         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
3072 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
3074         [BZ #5209]
3075         * sysdeps/unix/sysv/linux/times.c: New file.
3077         [BZ #5381]
3078         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
3079         mem_in_flight_list variables.  Add new parameter to mempool_alloc
3080         prototype.
3081         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
3082         appropriate mem_in_flight element.
3083         (gc): Take allocations which have not yet been committed to the
3084         database into account.
3085         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
3086         Reset mem_in_flight before returning.
3087         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
3088         cue it up in mem_in_flight_list.
3089         * nscd/aicache.c: Adjust mempool_alloc call.
3090         * nscd/grpcache.c: Likewise.
3091         * nscd/hstcache.c: Likewise.
3092         * nscd/initgrcache.c: Likewise.
3093         * nscd/pwdcache.c: Likewise.
3094         * nscd/servicescache.c: Likewise.
3095         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
3096         of -fpie.
3098         * nscd/connections.c (handle_request): Provide better error message
3099         in case SELinux forbids the service.
3101         * version.h (VERSION): Bump to 2.8.90.
3103 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
3105         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
3107 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
3109         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
3110         Also use for 32-bit.
3111         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
3112         __nextafter instead of nextafter to avoid local PLT.
3113         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
3114         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3116         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
3118         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
3119         __fe_nomask_env.
3120         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
3121         <fenv_libc.h> instead of <fenv.h>.
3122         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
3123         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
3125         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
3127         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
3128         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
3129         function from fegetexcept and make old name weak alias.
3130         * include/fenv.h: Declare __fegetexcept.
3131         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
3132         fegetexcept.
3133         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
3134         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
3135         to fetestexcept.
3136         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
3137         instead of frexpl to avoid local PLT.
3138         * math/s_significandl.c (__significandl): Use __ilogbl instead of
3139         ilogbl to avoid local PLT.
3140         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
3141         instead of ldexpl to avoid local PLT.
3142         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
3143         __roundl not roundl to avoid local PLT.
3144         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
3145         local PLTs.  Use __sincosl instead of separate sinl and cosl
3146         calls.
3147         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3149         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
3150         version for ppc64 to 2.4.21 since without it makecontext will fail.
3152         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
3153         to the ABI in use.
3154         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
3155         .__tls_get_addr.
3156         [__powerpc64__] (TLS_GD): Likewise.
3158 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
3160         [BZ #4997]
3161         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
3162         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
3163         mantissa.
3164         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3165         Likewise.  Also account for when x is an odd number between 2^52
3166         and 2^53-1.
3167         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
3168         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
3169         * math/libm-test.inc (lround_test, llround_test): Added test cases to
3170         detect aforementioned erroneous conditions.
3172 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
3174         * configure.in: Check for -fno-section-anchors in addition to
3175         -fno-toplevel-reorder.
3177 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
3179         * include/features.h (__GLIBC_MINOR__): Bump to 8.
3181         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
3182         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
3183         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
3184         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3185         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3186         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3188 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
3190         [BZ #5443]
3191         * time/era.c: Transform __libc_setlocale_lock into rwlock.
3192         * time/alt_digit.c: Likewise.
3193         * wcsmbs/wcsmbsload.c: Likewise.
3195 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
3197         * version.h (VERSION): Bump to 2.8.
3199         * timzeone/asia: Update from tzdata2008b.
3200         * timezone/backward: Likewise.
3201         * timezone/europe: Likewise.
3202         * timezone/northamerica: Likewise.
3203         * timezone/southamerica: Likewise.
3204         * timezone/iso3166.tab: Likewise.
3205         * timezone/leapseconds: Likewise.
3206         * timezone/zone.tab: Likewise.
3207         * timezone/private.h: Update from tzcode2008a.
3208         * timezone/zdump.c: Likewise.
3209         * timezone/zic.c: Likewise.
3211 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
3213         [BZ #5741]
3214         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
3215         Define additonal Data Cache Block instruction macros.
3216         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
3217         Replace dcbst with dcbf and sync with sync/isync.
3219 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
3221         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
3222         Always set ELF_RTYPE_CLASS_PLT.
3223         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
3225 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
3227         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
3228         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
3229         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
3230         For ISA 2.01 and later replace mftb with mfspr 268.
3232 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
3234         [BZ #5768]
3235         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
3236         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
3238 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
3240         [BZ #5768]
3241         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
3242         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
3243         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
3244         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
3246 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
3248         * stdlib/tst-makecontext.c (othervar): New variable.
3249         (cf): Test sign extending the argument to long.
3251 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
3253         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
3254         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
3255         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
3256         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
3257         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
3258         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
3259         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
3261 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
3263         * elf/Makefile (tests): Substitute tests-vis-yes here.
3264         (tests-vis-yes): Delete.
3265         (modules-name, modules-vis-yes): Similarly.
3267 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
3269         [BZ #4407]
3270         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
3271         Preserve sign in signgamp when x is zero.
3273 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
3275         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
3276         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
3277         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
3278         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
3279         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
3280         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
3282 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
3284         [BZ #4314]
3285         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
3286         buffers.
3288         [BZ #5209]
3289         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
3290         a reserved error value.
3292         * stdlib/tst-makecontext.c: Change parameter to cf to negative
3293         value to check for correct sign extension.
3295         [BZ #5436]
3296         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3297         Copy 64-bit parameter values even though this is not required in
3298         the standard.
3300         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
3301         PC save.
3303 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
3305         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
3306         PC save.
3308 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
3310         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
3312 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
3314         [BZ #5998]
3315         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
3316         in line-buffered stream failed.
3317         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3319 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
3321         [BZ #6024]
3322         * scripts/abi-versions.awk: If the version specified by
3323         --enable-oldest-abi is older than the first version for this
3324         architecture, use the default version.
3326         * locale/programs/ld-collate.c (collate_read): Ignore script lines
3327         as well when ignoring the whole category.
3329 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
3331         [BZ #6042]
3332         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
3333         ETHERTYPE_* definitions.
3334         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
3336 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
3338         * stdlib/mbtowc.c (__no_r_state): Remove.
3339         (mbtowc): New static state variable.  Use it instead of
3340         __no_r_state.
3341         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
3342         (__wctomb_state): New hidden variable.
3343         (wctomb): Use __wctomb_state instead of __no_r_state.
3344         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
3345         (__wctomb_state): New extern decl.
3346         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
3348 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
3350         [BZ #5475]
3351         * resolv/res_init.c: Handle scope IDs in resolv.conf.
3353 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
3355         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
3357 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
3359         * po/nl.po: Update from translation team.
3361 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
3363         [BZ #6007]
3364         * string/strfry.c: Handle empty strings again.
3366 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
3368         [BZ #5443]
3369         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
3370         before looking for translation.
3371         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
3372         * locale/freelocale.c: Likewise.
3373         * locale/newlocale.c: Likewise.
3374         * locale/setlocale.c: Likewise.
3375         Based partially on a patch by ryo@np.css.fujitsu.com.
3377 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
3379         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
3380         acquiring wrlock.  Do conv_tab allocation while holding lock.
3381         * intl/Makefile: Add rules to build and run tst-gettext6.
3382         * intl/tst-gettext6.c: New test.
3383         * intl/tst-gettext6.sh: New file.
3385 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
3387         * po/nl.po: Update from translation team.
3389         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
3390         provided through st_blksize, try the default size before giving up.
3392 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
3394         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
3396         [BZ #5939]
3397         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
3399         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
3400         error message.  POSIX today does not require the messages to be in
3401         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
3403         [BZ #5979]
3404         * sunrpc/auth_unix.c: Unify printed strings.
3405         * sunrpc/clnt_tcp.c: Likewise.
3406         * sunrpc/clnt_udp.c: Likewise.
3407         * sunrpc/clnt_unix.c: Likewise.
3408         * sunrpc/svc_tcp.c: Likewise.
3409         * sunrpc/svc_udp.c: Likewise.
3410         * sunrpc/svc_unix.c: Likewise.
3411         * sunrpc/xdr.c: Likewise.
3412         * sunrpc/xdr_array.c: Likewise.
3413         * sunrpc/xdr_rec.c: Likewise.
3414         * sunrpc/xdr_ref.c: Likewise.
3415         * locale/programs/ld-time.c (time_finish): Unify messages.
3416         * locale/programs/locfile.c (handle_copy): Fix typo.
3417         * nscd/nscd.c (options): Fix typo.
3419         [BZ #5995]
3420         * stdlib/strtod_l.c: Use correct sign for result in one more
3421         underflow case.
3422         Patch by Eric Blake <ebb9@byu.net>.
3424 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
3426         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
3427         and creat system calls.
3428         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
3429         call.
3430         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
3431         system calls.
3432         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
3433         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3434         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3436 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
3438         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
3439         <linux/limits.h> has defined it.
3440         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
3441         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
3442         headers.
3443         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
3444         it instead of ARG_MAX.
3446 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
3448         * posix/gai.conf: Fix comment for scope nullbits.
3449         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
3450         default to 128 bits for v4 mapped addresses.
3452 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3454         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
3455         ptrace call to get the ieee_instruction_pointer from the kernel.
3456         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
3457         ptrace call to set the ieee_instructtion_pointer.
3458         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
3459         Add comment that ieee_instruction_pointer is always 0.
3461 2008-03-09  Andreas Jaeger  <aj@suse.de>
3463         [BZ #5857]
3464         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
3465         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
3466         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
3468         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
3469         (rint_test): Likewise.
3471 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
3473         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
3474         call.
3475         (__nisfind_server): Similar for open readColdStartFile call.
3476         Patch partially by Jim Meyering.
3477         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
3478         around internal_setent call.
3480         * po/vi.po: New Vietnamese translation.
3482         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
3483         ADJ_OFFSET_SS_READ.
3485         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
3486         remove CLONE_STOPPED.
3488 2008-02-10  Jim Meyering  <meyering@redhat.com>
3490         Remove useless "if" before "free":
3491         * elf/ldconfig.c (parse_conf_include): Likewise.
3492         * gmon/gmon.c (weak_alias): Likewise.
3493         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
3494         * inet/rcmd.c (__validuser2_sa): Likewise.
3495         * intl/bindtextdom.c (set_binding_values): Likewise.
3496         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
3497         * libio/genops.c (save_for_backup): Likewise.
3498         * libio/wgenops.c (save_for_wbackup): Likewise.
3499         * locale/programs/ld-collate.c (collate_read): Likewise.
3500         * locale/programs/linereader.c (get_string): Likewise.
3501         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
3502         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
3503         * resolv/res_debug.c (do_section): Likewise.
3504         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
3505         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
3506         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
3507         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
3508         * time/tzset.c (tzset_internal): Likewise.
3510 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
3512         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
3513         of ASSEMBLER.
3515 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
3517         [BZ #5903]
3518         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
3519         not stream for output file.  Open output file here.
3520         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
3521         and output file name.
3522         (process_fd): Likewise.
3523         (process_file): Likewise.
3524         (main): Adjust callers of changed functions.
3525         * iconv/iconv_prog.h: Adjust prototype.
3527 2008-03-09  Andreas Jaeger  <aj@suse.de>
3529         [BZ #5753]
3530         * sysdeps/ia64/ieee754.h: Use protected namespace
3531         __BIG_ENDIAN/__LITTLE_ENDIAN.
3532         * sysdeps/ieee754/ieee754.h: Likewise.
3533         Patch by Aurelien Jarno <aurelien@aurel32.net>.
3535 2008-03-08  Roland McGrath  <roland@frob.com>
3537         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
3538         ignore a signal that came from a machine exception, treat it as a
3539         fatal core-dump signal instead.
3540         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3542         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
3543         Clear DF bit in thread state's eflags.
3544         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3546 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
3548         [BZ #5774]
3549         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
3550         of NAN(...) sequence.
3551         * stdlib/Makefile (tests): Add tst-strtod6.
3552         * stdlib/tst-strtod6.c: New file.
3554         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
3556         [BZ #5762]
3557         * posix/getopt.c (_getopt_internal_r): Clarify error message by
3558         putting offending option character in quotes.  Clean up error
3559         messages.
3560         * po/be.po: Adjust msgstr in translation file.
3561         * po/bg.po: Likewise.
3562         * po/ca.po: Likewise.
3563         * po/cs.po: Likewise.
3564         * po/da.po: Likewise.
3565         * po/de.po: Likewise.
3566         * po/es.po: Likewise.
3567         * po/fr.po: Likewise.
3568         * po/hr.po: Likewise.
3569         * po/ko.po: Likewise.
3570         * po/nl.po: Likewise.
3571         * po/rw.po: Likewise.
3572         * po/sk.po: Likewise.
3573         * po/sv.po: Likewise.
3574         * po/tr.po: Likewise.
3575         * po/zh_CN.po: Likewise.
3576         * po/zh_TW.po: Likewise.
3578         [BZ #5760]
3579         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
3580         Patch by Roland Bless <roland@bless.de>.
3582         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
3583         .o file.
3584         * elf/Makefile (routines): Add dl-sysdep.
3585         (elide-routines.os): Likewise.
3587 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
3589         [BZ #5786]
3590         * elf/dl-sysdep.c: Undefine ROUND after use.
3591         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
3592         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
3593         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
3594         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
3595         to ...
3596         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
3597         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
3598         if necessary.
3599         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
3601         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
3602         _dl_tls_get_addr_soft element.
3603         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
3604         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
3605         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
3606         GLRO.
3607         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
3608         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
3609         of internal_function.
3611         * stdlib/Makefile (aux): Add tens_in_limb.
3612         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
3613         * stdlib/tens_in_limb.c: ...here.  New file.
3615         [BZ #5778]
3616         * sysdeps/unix/sysv/linux/pathconf.h: Declare
3617         __statfs_chown_restricted.
3618         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
3619         for _PC_CHOWN_RESTRICTED.
3620         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
3621         Implement __statfs_chown_restricted.
3622         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
3623         _POSIX_CHOWN_RESTRICTED value to zero.
3624         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
3625         defined to zero.
3627         * sysdeps/x86_64/rtld-memset.c: New file.
3629 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
3631         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
3633         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
3634         Barcelona machine.  Make default fall through branch of
3635         __x86_64_preferred_memory_instruction check as the integer code path.
3637 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
3639         * sysdeps/x86_64/cacheinfo.c
3640         (__x86_64_preferred_memory_instruction): New variable.
3641         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
3643         * sysdeps/x86_64/memset.S: Rewrite.
3645 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
3647         * include/stdio.h (__asprintf_chk, __dprintf_chk,
3648         __obstack_printf_chk): New prototypes.
3649         (__vasprintf_chk, __vdprintf_chk,
3650         __obstack_vprintf_chk): Likewise.
3651         Add libc_hidden_proto.
3652         * libio/obprintf.c
3653         (_IO_obstack_jumps): No longer static, add attribute_hidden.
3654         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
3655         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
3656         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
3657         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
3658         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
3659         __obstack_vprintf_chk): New prototypes.
3660         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
3661         obstack_vprintf): New inlines.
3662         * debug/dprintf_chk.c: New file.
3663         * debug/vdprintf_chk.c: New file.
3664         * debug/asprintf_chk.c: New file.
3665         * debug/vasprintf_chk.c: New file.
3666         * debug/obprintf_chk.c: New file.
3667         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
3668         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
3669         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
3670         @@GLIBC_2.8.
3671         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
3672         vdprintf_chk and obprintf_chk, set CFLAGS for them.
3673         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
3674         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
3675         libc_hidden_proto.
3676         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
3677         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
3678         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
3679         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
3680         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
3681         @@GLIBC_2.8.
3682         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
3683         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
3684         obstack_vprintf_chk.
3685         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
3686         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
3687         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
3688         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
3689         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
3690         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
3692 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
3694         [BZ #5779]
3695         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
3696         Patch by Roy Marples <roy@marples.name>.
3698         [BZ #5736]
3699         * malloc/malloc.c: Fix typo in comment.
3701         [BZ #5627]
3702         * locale/iso-639.def: Add Shuswap.
3704 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
3706         [BZ #5790]
3707         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
3708         overwrite *h_errnop/*errnop values from getanswer_r in case of
3709         failure.
3711 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
3713         [BZ #5818]
3714         * nscd/connections.c (dbs): Add initializers for .suggested_module.
3715         (verify_persistent_db): Remove one unnecessary test and add a new one
3716         for bad configuration.
3717         (nscd_init): Improve error reported when persistent database cannot
3718         be reused.
3719         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
3720         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
3721         .suggested_module and .max_db_size and case config file says the
3722         values are zero.
3723         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
3725         [BZ #5854]
3726         * nis/ypclnt.c (yp_order): Fix handling of return value of
3727         do_ypcall_tr call.
3728         Patch by Jeff Moyer <jmoyer@redhat.com>.
3730         * po/fr.po: Update from translation team.
3732 2008-02-22  Andreas Jaeger  <aj@suse.de>,
3733             Carlos O'Donell <carlos@systemhalted.org>
3735         [BZ #5012]
3736         * FAQ.in: Describe why glibc needs to be compiled with
3737         optimization.
3739 2008-02-19  Roland McGrath  <roland@redhat.com>
3741         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
3743 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
3745         [BZ #5737]
3746         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
3747         __USE_MISC is defined.
3749 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
3751         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
3752         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
3753         sys/timerfd.h.
3754         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
3755         timerfd_gettime, timerfd_settime.
3756         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
3757         timerfd_gettime, timerfd_settime for GLIBC_2.8.
3759 2008-02-08  Roland McGrath  <roland@redhat.com>
3761         * elf/elf.h (NT_PPC_SPE): New macro.
3763 2008-02-06  Roland McGrath  <roland@redhat.com>
3765         * Makerules ($(common-objpfx)sysd-rules):
3766         Depend on $(sysdep-makeconfigs).
3768 2008-01-31  Roland McGrath  <roland@redhat.com>
3770         [BZ #5442]
3771         * configure.in: Use -print-file-name if it yields a directory,
3772         for each of include and include-fixed.
3773         * configure: Regenerated.
3775         * Makeconfig (sysd-rules-targets): New variable.
3776         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
3777         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
3779 2008-01-30  Roland McGrath  <roland@redhat.com>
3781         * manual/libc.texinfo: Update back-cover text.
3783         * elf/elf.h (NT_386_TLS): New macro.
3785 2008-01-29  Roland McGrath  <roland@redhat.com>
3787         * Makeconfig (sysd-rules-patterns): New variable.
3788         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
3789         (check-inhibit-asm): New canned sequence, replaces ...
3790         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
3791         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
3792         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
3793         (CFLAGS-rtld): Variable removed.
3795 2008-01-24  Roland McGrath  <roland@redhat.com>
3797         * configure.in: Let configure fragments set base_os.
3798         * configure: Regenerated.
3800 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
3802         * po/ko.po: Update from translation team.
3804 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
3806         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
3808 2008-01-12  Andreas Jaeger  <aj@suse.de>
3810         [BZ #5040]
3811         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
3812         Add EPOLLRDHUP.
3814 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3816         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
3817         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
3818         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
3820 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
3822         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
3823         * elf/dl-close.c (_dl_close): Check for it.
3824         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
3825         (_dl_allocate_static_tls): Likewise.
3826         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
3827         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
3828         to it.
3829         * elf/tst-tls16.c: New file.
3830         * elf/tst-tlsmod16a.c: New file.
3831         * elf/tst-tlsmod16b.c: New file.
3832         * elf/Makefile: Add rules to build and run tst-tls16.
3834 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
3836         [BZ #5628]
3837         * bits/shm.h: Fix comment describing shmid_ds.
3838         * sysdeps/gnu/bits/shm.h: Likewise.
3839         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
3840         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
3841         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
3842         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
3843         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
3844         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
3845         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
3846         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
3847         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
3849         [BZ #5607]
3850         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
3851         prototypes.
3852         * conform/data/limits.h-data: Adjust limits changed in v6 and add
3853         additional suffixes.
3854         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
3855         Add optional functions mq_timedreceive and mq_timedsend.
3856         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
3857         * conform/data/pthread.h-data: Fix prototype of
3858         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
3859         * conform/data/semaphore.h-data: Allow time.h definitions.
3860         * conform/data/signal.h-data: Likewise.
3861         * conform/data/stdio.h-data: getw and putw are not required in v6.
3862         * conform/data/stdlib.h-data: Change setstate prototype.
3863         * conform/data/string.h-data: Fix strerror_r prototype.
3864         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
3865         * conform/data/unistd.h-data: pthread_atfork not required in v6.
3866         Fix readlink prototype.
3867         * conform/data/netinet/in.h-data: Add const to in6addr_any and
3868         in6addr_loopback.
3869         * inet/netinet/in.h: Cleanup namespace.
3870         * posix/regex.h: Likewise.
3871         * resolv/netdb.h: Likewise.
3872         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
3873         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
3874         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3875         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
3876         of names of in in6_addr.
3877         (default_precedence): Likewise.
3878         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
3879         NULL definition.
3881 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
3883         * conform/data/fmtmsg.h-data: Add missing allows.
3884         * conform/data/ftw.h-data: Likewise.
3885         * conform/data/inttypes.h-data: Likewise.
3886         * conform/data/math.h-data: Likewise.
3887         * conform/data/signal.h-data: Likewise.
3888         * conform/data/net/if.h-data: Likewise.
3889         * conform/data/netinet/in.h-data: Likewise.
3890         * conform/data/sys/socket.h-data: Likewise.
3892         [BZ #5614]
3893         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
3894         (__strtok_r): Simplify.
3895         * string/tester.c (test_strtok_r): Add test case for futile search
3896         with single-character seach string.
3898 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
3900         * po/ko.po: Update from translation team.
3902 2008-01-11  Andreas Jaeger  <aj@suse.de>
3904         [BZ #5600]
3905         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
3906         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
3907         kernel header.
3909 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
3911         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
3912         native interface lookup in all the relevant places.
3914 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
3915             Ulrich Drepper  <drepper@redhat.com>
3917         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
3918         field.  Use sockaddr_in6 for source_addr.
3919         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
3920         (match_prefix): Likewise.
3921         (get_label): Likewise.
3922         (get_precedence): Likewise.
3923         (rfc3484_sort): Change to use indirect access to results array.
3924         Adjust to use of sockaddr_in6.  Replace service_order test with
3925         simple index comparison.
3926         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
3927         service_order field.  Adjust qsort_t calls.  Access sorted result
3928         array indirectly through order array.
3929         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
3930         * posix/tst-rfc3484-2.c: Likewise.
3931         * posix/tst-rfc3484-3.c: Likewise.
3933 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
3935         [BZ #5541]
3936         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
3937         pollfd structures.
3938         Patch by André Cruz.
3940         [BZ #5545]
3941         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
3942         (clnt_spcreateerror): Likewise.
3944         [BZ #5553]
3945         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
3946         (public_mEMALIGn): Likewise.
3947         Patch mostly by Daniel Jacobowitz.
3949 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
3951         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
3952         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
3953         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
3954         * stdlib/tst-makecontext2.c: New test.
3956 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
3958         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
3959         defined.
3960         (REINIT_PARAMS): Likewise.  Undefine before end of file.
3961         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
3962         transliteration hooks and REINIT_PARAMS afterwards.
3963         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
3964         status.
3965         (REINIT_PARAMS): Define.
3966         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
3967         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
3968         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
3969         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
3970         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
3971         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
3972         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
3973         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
3974         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
3975         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
3976         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
3977         * iconvdata/tst-iconv7.c: New test.
3979 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
3981         * libio/stdio.h (vscanf): Fix definition for loser compilers.
3983 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
3985         [BZ #5112]
3986         * nscd/connections.c (restart): Fix condition.
3988 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
3990         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
3991         __ctype_toupper_loc): Add __THROW.
3993 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
3995         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
3996         recognition of interface family.
3998         * posix/getconf.c: Update copyright year.
3999         * nss/getent.c: Likewise.
4000         * iconv/iconvconfig.c: Likewise.
4001         * iconv/iconv_prog.c: Likewise.
4002         * elf/ldconfig.c: Likewise.
4003         * catgets/gencat.c: Likewise.
4004         * csu/version.c: Likewise.
4005         * elf/ldd.bash.in: Likewise.
4006         * elf/sprof.c (print_version): Likewise.
4007         * locale/programs/locale.c: Likewise.
4008         * locale/programs/localedef.c: Likewise.
4009         * nscd/nscd.c (print_version): Likewise.
4010         * debug/xtrace.sh: Likewise.
4011         * malloc/memusage.sh: Likewise.
4012         * malloc/mtrace.pl: Likewise.
4013         * debug/catchsegv.sh: Likewise.
4015 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
4017         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
4018         second lookup.
4020 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
4022         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
4023         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4025 2007-12-17  Roland McGrath  <roland@redhat.com>
4027         * inet/ether_line.c (ether_line): Remove unused variable.
4029 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4031         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
4032         and winp.
4033         * login/openpty.c (openpty): Likewise.
4034         * login/pty.h (openpty, forkpty): Likewise.
4035         * manual/terminal.texi (openpty, forkpty): Likewise.
4037 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
4039         * malloc/malloc.c (public_cALLOc): For arenas other than
4040         main_arena, count all bytes inside the mprotect_size range of the
4041         heap as uninitialized.
4043 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
4045         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
4046         executable stacks.
4048         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
4049         mTRIm for all of them.
4050         (mTRIm): Additionally iterate over all free blocks and use madvise
4051         to free memory for all those blocks which contain at least one
4052         memory page.
4053         * malloc/tst-trim1.c: New file.
4054         * malloc/Makefile (tests): Add tst-trim1.
4056         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
4058 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
4060         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
4061         First cast argument to long
4062         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
4063         Return long.
4064         (__vdso_clock_gettime): Likewise.
4065         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
4066         return long.
4068 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
4070         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
4071         * locale/nl_langinfo_l.c: Real implementation, copied from
4072         nl_langinfo.c.
4073         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
4075 2007-12-01  Jim Meyering  <meyering@redhat.com>
4077         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
4078         that would inhibit utf8-optimization of a regexp containing line-
4079         or buffer-anchors, e.g., `^', `$'.
4081 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
4083         * time/bug-getdate1.c (do_test): Don't use century values which
4084         aren't valid on 32-bit systems.
4086 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
4088         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
4089         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
4090         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
4091         __strcat_g, __strncat_g): Add __asm__.
4093 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
4095         [BZ #5477]
4096         * io/fchmodat.c: Fix typo in stub_warning use.
4097         Patch by Petr Salinger.
4099 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
4101         * iconvdata/hp-thai8.c: New file.
4102         * iconvdata/Makefile: Add rules for hp-thai8.c.
4103         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
4104         * iconvdata/gconv-modules: Likewise.
4106         [BZ #5464]
4107         * iconvdata/hp-greek8.c: New file.
4108         * iconvdata/Makefile: Add rules for hp-greek8.c.
4109         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
4110         * iconvdata/gconv-modules: Likewise.
4112         [BZ #5463]
4113         * iconvdata/hp-turkish8.c: New file.
4114         * iconvdata/Makefile: Add rules for hp-turkish8.c.
4115         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
4116         * iconvdata/gconv-modules: Likewise.
4118         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
4119         (shrink_heap): ... this new function.
4120         (heap_trim): Call shrink_heap instead of grow_heap.
4122         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
4123         case don't call alloc_perturb.
4125 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
4127         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
4128         possible.
4129         * sysdeps/unix/sysv/linux/kernel-features.h
4130         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
4131         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
4133 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
4135         [BZ #5424]
4136         * stdio-common/vfprintf.c: Do not overflow when adding to done.
4137         * stdio-common/Makefile (tests): Add bug22.
4138         * stdio-common/bug22.c: New file.
4140         [BZ #5451]
4141         * time/getdate.c: Fix filling in default values.
4142         * time/bug-getdate1.c: New file.
4143         * time/Makefile: Add rules to build and run bug-getdate1.
4145         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
4146         * iconvdata/ebcdic-es.c: Likewise.
4147         * iconvdata/ebcdic-es-a.c: Likewise.
4148         * iconvdata/ebcdic-uk.c: Likewise.
4149         * iconvdata/iso8859-16.c: Likewise.
4150         * iconvdata/viscii.c: Likewise.
4151         * iconvdata/iso8859-9e.c: Likewise.
4152         * iconvdata/Makefile: Adjust appropriately.
4154         [BZ #5428]
4155         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
4156         __need_wint_t.
4158 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
4160         [BZ #5427]
4161         * iconvdata/hp-roman9.c: New file.
4162         * iconvdata/Makefile: Add rules for hp-roman9.c.
4163         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
4164         * iconvdata/gconv-modules: Likewise.
4166         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
4167         * iconvdata/Makefile: Adjust appropriately.
4169         [BZ #5441]
4170         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
4171         structure, it's allocated with alloca.
4172         * stdio-common/Makefile (tests): Add bug21.
4173         * stdio-common/bug21.c: New file.
4175 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
4177         [BZ #5452]
4178         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
4179         keyword for gcc's braced-groups.
4181 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
4183         [BZ #5454]
4184         * inet/ether_line.c: Strip hostname of whitespaces.
4185         * inet/Makefile (tests): Add tst-ether_line.
4186         * inet/tst-ether_line.c: New file.
4188 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
4190         [BZ #5439]
4191         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
4193         [BZ #5435]
4194         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
4196         * stdlib/tst-setcontext.c: Catch the case where the links gets
4197         messed up and we do not reach main again.
4199         * po/ca.po: Update from translation team.
4201 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
4203         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
4204         * posix/regex.h (REG_ENOSYS): Likewise.
4205         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
4207 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
4209         * nscd/nscd.h (MAX_STACK_USE): Define.
4210         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
4211         (gc): Initialize stack_used based on allocation in prune_cache.
4212         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
4213         Clear array before use.
4215         * nscd/aicache.c (addhstaiX): Update statistics counter in case
4216         memory allocation failed.
4217         * nscd/hstcache.c (cache_addhst): Likewise.
4218         * nscd/grpcache.c (cache_addgr): Likewise.
4219         * nscd/servicescache.c (cache_addserv): Likewise.
4220         * nscd/pwdcache.c (cache_addpw): Likewise.
4221         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4223 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
4225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
4226         and creat system calls.
4228         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
4230 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4232         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
4233         Add netiucv/iucv.h.
4234         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
4235         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
4236         protocol.
4237         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
4238         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
4239         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
4241 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4243         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
4244         strncat): Define as macros to avoid compile errors.
4246         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
4247         creat entries.
4249 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
4251         [BZ #5382]
4252         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
4253         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
4254         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
4255         overflow it.
4256         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4258         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
4259         Return zero in case the thread library is not NPTL.
4261         [BZ #5375]
4262         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
4263         initializing interface list.
4265         [BZ #5378]
4266         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
4267         use result of nss_getgrgid_r if nothing was found.  For other
4268         error return with a failure.
4269         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
4271         * locale/programs/ld-collate.c (collate_read): Fix loop to match
4272         macro name.
4274 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
4276         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
4277         (get_scope): For IPv4 scope, use scopes table.
4278         (fini): Free scopes table if necessary.
4279         (free_scopelist): New function.
4280         (scopecmp): New function.
4281         (gaiconf_init): Also handle scopev4 entries.
4282         * posix/tst-rfc3484.c (do_test): Initialize scopes.
4283         * posix/tst-rfc3484-2.c (do_test): Likewise.
4284         * posix/gai.conf: Document scopev4 defaults.
4285         * posix/Makefile (tests): Add tst-rfc3484-3.
4286         * posix/tst-rfc3484-3.c: New file.
4288         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
4289         Teredo tunnels.
4290         * posix/gai.conf: Update for current default tables.
4292 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
4294         * po/tr.po: Update from translation team.
4296 2007-11-18  Roland McGrath  <roland@frob.com>
4298         * manual/arith.texi (Remainder Functions): Spelling fix.
4299         From Shaun Silk <genix@mysoul.com.au>.
4301         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
4303 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
4305         * po/zh_CN.po: Update from translation team.
4307         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
4308         Add sys/signalfd.h and sys/eventfd.h.
4310 2007-11-15  Bruno Haible  <bruno@clisp.org>
4312         [BZ #5346]
4313         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
4314         union.
4315         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
4316         (DCIGETTEXT): Change the allocation of the 'search' variable so that
4317         it needs only fixed stack space. Delay the initialization of
4318         msgid_len until it is needed.
4320 2007-11-15  Andreas Jaeger  <aj@suse.de>
4322         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
4323         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
4325 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
4327         * po/ko.po: Update from translation team.
4329 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
4331         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
4332         significantly.  The device type is also part of the ifinfomsg data.
4334         * po/sv.po: Update from translation team.
4335         * po/nl.po: Likewise.
4337         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
4338         to wake up in 24 hours.
4340         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
4342 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
4344         * po/cs.po: Update from translation team.
4345         * po/pl.po: Likewise.
4347         * include/ifaddrs.h: Remove in6ai_temporary.
4348         (struct in6addrinfo): Add index element.
4349         Declare __check_native.
4350         * inet/Makefile (aux): Add check_native.
4351         * sysdeps/unix/sysv/linux/check_native.c: New file.
4352         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
4353         IFA_F_TEMPORARY.  Pass back ifa_index.
4354         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
4355         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
4356         call __check_native if necessary.
4357         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
4358         to sort addresses.  Pass information about the results.
4359         * posix/tst-rfc3484.c: Adjust for addition of index field and change
4360         of rfc3484_sort interface.
4361         * posix/tst-rfc3484-2.c: Likewise.
4363         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
4364         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
4365         for _quicksort.
4366         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
4367         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
4368         on as third parameter to compare function and _quicksort.
4369         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
4370         to the compare function.
4371         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
4372         * Versions.def: Add GLIBC_2.8 for libc.
4374         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
4375         * posix/tst-rfc3484-2.c: Likewise.
4377         * include/kernel-features.h: Moved to...
4378         * sysdeps/mach/hurd/kernel-features.h: ...here.
4380 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
4382         * sysdeps/i386/i586/memcpy_chk.S: New file.
4383         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
4384         * sysdeps/i386/i586/memset_chk.S: Likewise.
4386 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
4388         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
4389         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
4390         list of interfaces.  Also store prefix length.
4391         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
4392         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
4393         prefix if source and destination address are in the same subnet.
4394         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
4395         Always look for matching record in in6ai list.
4396         Correct source_addr_len value for IPv6->IPv4 converted records.
4398 2007-11-11  Roland McGrath  <roland@frob.com>
4400         * include/kernel-features.h: New file.
4402 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
4404         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
4405         complications for 64-bit platforms.
4407         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
4408         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
4409         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
4410         open64_2.
4411         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
4412         entries.
4413         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4414         * sysdeps/wordsize-64/alphasort.c: New file.
4415         * sysdeps/wordsize-64/alphasort64.c: New file.
4416         * sysdeps/wordsize-64/fseeko.c: New file.
4417         * sysdeps/wordsize-64/fseeko64.c: New file.
4418         * sysdeps/wordsize-64/ftello.c: New file.
4419         * sysdeps/wordsize-64/ftello64.c: New file.
4420         * sysdeps/wordsize-64/ftw.c: New file.
4421         * sysdeps/wordsize-64/ftw64.c: New file.
4422         * sysdeps/wordsize-64/iofgetpos.c: New file.
4423         * sysdeps/wordsize-64/iofgetpos64.c: New file.
4424         * sysdeps/wordsize-64/iofopen.c: New file.
4425         * sysdeps/wordsize-64/iofopen64.c: New file.
4426         * sysdeps/wordsize-64/iofsetpos.c: New file.
4427         * sysdeps/wordsize-64/iofsetpos64.c: New file.
4428         * sysdeps/wordsize-64/lockf.c: New file.
4429         * sysdeps/wordsize-64/lockf64.c: New file.
4430         * sysdeps/wordsize-64/mkostemp.c: New file.
4431         * sysdeps/wordsize-64/mkostemp64.c: New file.
4432         * sysdeps/wordsize-64/mkstemp.c: New file.
4433         * sysdeps/wordsize-64/mkstemp64.c: New file.
4434         * sysdeps/wordsize-64/scandir.c: New file.
4435         * sysdeps/wordsize-64/scandir64.c: New file.
4436         * sysdeps/wordsize-64/tmpfile.c: New file.
4437         * sysdeps/wordsize-64/tmpfile64.c: New file.
4438         * sysdeps/wordsize-64/versionsort.c: New file.
4439         * sysdeps/wordsize-64/versionsort64.c: New file.
4440         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
4441         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
4442         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
4443         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
4444         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
4445         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
4446         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
4447         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
4448         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
4449         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
4450         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
4451         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
4453         * crypt/sha256-crypt.c: Fix a comment.
4454         * crypt/sha512-crypt.c: Likewise.
4456 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
4458         * sysdeps/x86_64/memset.S: Add sfence after movnti.
4460 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
4462         [BZ #5277]
4463         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
4464         because output buffer is too small break, don't loop.
4465         * iconvdata/Makefile (tests): Add bug-iconv6.
4466         * iconvdata/bug-iconv6.c: New file.
4468 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
4470         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
4471         with size_t type.
4472         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
4473         size_t.  Add casts where needed.
4475         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
4476         old headers, don't call avc_has_perm if we don't have the
4477         permission information.
4479 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
4481         * elf/rtld.c (dl_main): Use the page size to find the map start.
4483 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
4485         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
4486         Patch by Szymon Siwek <sls@poczta.wp.pl>.
4488         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
4489         when the lookup call failed.
4491         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
4492         Add prune_cond and wakeup_time.
4493         (CACHE_PRUNE_INTERNAL): Define.
4494         Update declarations of prune_cache and setup_thread.
4495         * nscd/connections.c (dbs): Update initializers.
4496         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
4497         (nscd_init): Default number of threads is now 4.
4498         (invalidate_cache): Take lock before calling prune_cache.
4499         (handle_request): If SELinux forbids the request, say so.
4500         (readylist_cond): Use static initializer.
4501         (nscd_run_prune): New function.  Used only by pruning threads.
4502         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
4503         here.
4504         (fd_ready): Update nscd_run reference.
4505         (start_threads): No need to initialize readylist_cond.
4506         Start pruning threads separately.
4507         * nscd/nscd_setup_thread.c: Change return value type to int and always
4508         return 0.
4509         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
4510         to int and return nonzero value if we can use the TID address hack.
4511         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
4512         the database is later than the new entry's timeout, update the
4513         wakeup time and wake the cleanup thread.
4514         (prune_cache): Return seconds the next entry in the database is still
4515         valid.  Remove locking for pruning here.
4516         * nscd/nscd.conf: Document default number of threads.
4518 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
4520         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
4521         stack is properly aligned for the target function.
4522         Correct unwind info.
4524         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
4525         when using auditing libraries.
4527 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
4529         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
4530         _nss_dns_getnetbyaddr2_r.
4531         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
4532         extra parameter to getanswer_r.
4533         (_nss_dns_getnetbyaddr_r): Now a wrapper around
4534         _nss_dns_getnetbyaddr2_r.
4536         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
4537         gethstbynm3_r.
4538         * nscd/gethstbynm2_r.c: Remove.
4539         * nscd/gethstbynm3_r.c: New file.
4540         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
4541         __gethostbyaddr_r.
4542         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
4543         __gethostbyaddr_r compatibility wrapper.
4544         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
4545         determining timeout of entry.
4546         (lookup): Take new parameter and pass it to __gethostbyname3_r and
4547         __gethostbyaddr2_r.
4548         (addhstbyX): Pass reference to variable for TTL to lookup and
4549         cache_addhst.
4550         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
4551         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
4552         and __nss_next2.  Remove __nss_services_lookup.
4553         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
4554         Add compat wrapper.
4555         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
4556         __nss_next2.
4557         * nss/getXXent_r.c: Likewise.
4558         * nss/getnssent_r.c: Likewise.
4559         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
4560         does not exist in module, try the optional second name.
4561         (__nss_next2): New function.
4562         (__nss_next): Now wrapper around __nss_next2.
4563         * nss/nsswitch.h: Adjust __nss_lookup prototype.
4564         Declare __nss_next2.
4565         Adjust definition of db_lookup_function type.
4566         * nss/service-lookup.c: Define NO_COMPAT.
4567         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
4568         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
4569         * inet/ether_ntoh.c: Likewise.
4570         * sunrpc/netname.c: Likewise.
4571         * sunrpc/publickey.c: Likewise.
4572         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
4573         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
4574         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
4575         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
4576         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
4578         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
4580         * inet/getnetgrent_r.c (setup): Encrypt static pointer.
4582 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
4584         [BZ #5204]
4585         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
4586         * crypt/sha512c-test.c: Likewise.
4588         [BZ #5225]
4589         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
4590         to keep track of end of %[ format string element.
4591         * stdio-common/Makefile (tests): Add bug20.
4592         * stdio-common/bug20.c: New file.
4594         [BZ #5222]
4595         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
4596         path elements in counting mode.
4598 2007-10-27  Andreas Jaeger  <aj@suse.de>
4600         [BZ #5040]
4601         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
4603         [BZ #3112]
4604         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
4605         (__cleanup): Free shared library when exiting.
4606         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
4607         (__cleanup): Free shared library when exiting.
4609 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
4611         [BZ #2549]
4612         * math/libm-test.inc (check_float_internal): Support
4613         denormalized return.
4615 2007-10-23  Andreas Jaeger  <aj@suse.de>
4617         [BZ #5208]
4618         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
4619         __LONG_LONG_PAIR to handle little endian byte order.
4620         Suggested by abhishekrai@google.com
4622 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
4624         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
4626 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
4628         * nscd/cache.c (prune_cache): Move test for modified file outside
4629         of locking.
4631 2007-10-21  Andreas Jaeger  <aj@suse.de>
4633         * manual/texinfo.tex: Update to latest version.
4635         * manual/sysinfo.texi (System Parameters): Fix Formatting.
4637         * manual/arith.texi (Status bit operations): Fix formatting.
4639         * manual/errno.texi (Error Messages): Fix formatting.
4641         * manual/sysinfo.texi (System Parameters): Fix formatting.
4643         * manual/libc.texinfo: Update VERSION and UPDATED.
4645 2007-10-19  Roland McGrath  <roland@redhat.com>
4647         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
4649 2007-10-06  David S. Miller  <davem@davemloft.net>
4651         * configure.in: Add sparcv9v2 and sparc64v2.
4652         * scripts/config.sub: Likewise.
4653         * configure: Regenerate.
4654         * elf/elf.h (HWCAP_SPARC_N2): New.
4655         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
4656         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
4657         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
4658         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
4659         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
4660         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
4661         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
4663 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
4665         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
4666         even if the poll result indicates there is data to read.
4667         Patch by Jeff Moyer <jmoyer@redhat.com>.
4669 2007-10-18  Roland McGrath  <roland@redhat.com>
4671         * elf/elf.h (NT_PPC_VMX): New macro.
4673 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
4675         * version.h (VERSION): Set to 2.7.90.
4677 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
4679         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
4680         weak_alias.
4682 2007-10-17  Roland McGrath  <roland@frob.com>
4684         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
4685         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
4687 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
4689         * version.h (VERSION): Bump to 2.7.
4690         * include/features.h (__GLIBC_MINOR__): Bump to 7.
4692         [BZ #5186]
4693         * time/tzset.c (__tz_convert): Don't force testing for a change of
4694         TZ if not called from localtime.  But then also see whether the
4695         file changed, in case __use_tzfile is set.
4697         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
4698         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4699         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4700         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4701         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4702         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
4703         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
4704         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
4706 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
4708         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
4709         and admin selects to be able to replace the gai.conf file, lock
4710         data structures around the qsort call.
4712 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
4714         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
4715         new memset.
4716         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
4717         too high for the improvements.  Implement bzero unconditionally for
4718         use in libc.
4720 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
4721             Jakub Jelinek  <jakub@redhat.com>
4723         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
4724         even when time_t is 32-bit.
4725         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
4726         timezone data read by __tzfile_default.  Ensure __tzname[0] is
4727         always set after the search.
4729 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
4731         * time/tzfile.c (__tzfile_read): Help the compiler recognize
4732         unreachable code on 32-bit machines.
4734 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
4736         [BZ #5184]
4737         * time/strftime_l.c: Include stdbool.h.
4738         (my_strftime): New wrapper, old function renamed to...
4739         (__strftime_internal): ... new function.  Add tzset_called
4740         argument, pass it down to recursive calls, don't call tzset ()
4741         if already true, set to true after call to tzset ().
4743 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
4745         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
4746         into account when copying TZ string.
4748 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
4750         * time/tzfile.c (__tzfile_compute): For use_last case set i to
4751         num_transition rather than num_transitions - 1.
4753 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
4755         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
4756         PIC indirect jump.
4758         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
4759         a local label rather than HIDDEN_JUMPTARGET.
4761 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
4763         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
4764         (init_cacheinfo): Initialize it.
4765         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
4766         Always define bzero.
4767         Remove non-glibc code.
4768         * sysdeps/x86_64/bzero.S: Make an empty file.
4770 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
4772         * sysdeps/x86_64/cacheinfo.c
4773         (__x86_64_preferred_memory_instruction): New.
4774         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
4776         * sysdeps/x86_64/memset.S: Rewrite.
4778 2007-10-15  Roland McGrath  <roland@redhat.com>
4780         * po/libc.pot: Regenerated.
4782 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
4784         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
4785         pointers.
4787         [BZ #3425]
4788         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
4789         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
4790         address record to T_A/T_AAAA requests.
4792 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
4794         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
4796         * posix/glob.c: Add some branch prediction throughout.
4798         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
4799         read from nscd.
4801         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
4802         service_order.
4803         (rfc3484_sort): Make sure that even if qsort doesn't support
4804         stable sorting out sorting here is stable by comparing service_order.
4805         (getaddrinfo): Initialize service_order.
4806         * posix/tst-rfc3484.c (do_test): Adjust for addition of
4807         service_order field to sorting structure.
4808         * posix/tst-rfc3484-2.c (do_test): Likewise.
4810         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
4811         * time/tzset.c (tzset_internal): Break TZ string parsing out into
4812         __tzset_parse_tz and updating of daylight, timezone, tzname into
4813         update_vars.
4814         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
4815         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
4816         happens in __tz_compute.
4817         * time/tzfile.c (__tzfile_read): Also read TZ string.
4818         (find_transition): Fold into __tzfile_compute.
4819         (__tzfile_compute): For times beyond the last transition try to
4820         use the TZ string.
4821         * timezone/tst-timezone.c: Information in daylight and tzname does
4822         change for Asia/Tokyo timezone with more concrete information.
4823         Remove the test.
4825         * include/stdio.h: Add libc_hidden_proto for ftello.
4826         * libio/ftello.c: Add libc_hidden_def.
4828         [BZ #1140]
4829         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
4830         on the specified time and not the last entries in the file.  Move
4831         code to determine tzname[] to...
4832         (find_transition): ...here.  Add ugly guess for times before the
4833         first transition.
4835 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
4837         [BZ #3195]
4838         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
4839         no entry.
4840         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
4841         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
4842         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
4843         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
4845         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
4846         read mechanism when there are no group members and avoid no-op
4847         read syscall in this case.
4849         [BZ #3242]
4850         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
4851         (__readall): If reading failed due to EAGAIN error wait a bit
4852         and possibly try again.
4853         (__readvall): Likewise.
4855 2007-10-13  Bruno Haible  <bruno@clisp.org>
4857         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
4858         when we cannot recode the message.
4860 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
4862         [BZ #4359]
4863         * libio/__freading.c (__freading): Don't return true for
4864         write-only streams.  For read/write streams, check whether we
4865         performed a read operation already.
4866         * libio/Makefile (tests): Add tst-ext2.
4867         * libio/tst-ext2.c: New file.
4869 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
4871         * locale/programs/repertoire.c (repertoire_read): Always free
4872         memory for repertoire file name [Coverity CID 270].
4874         * elf/cache.c (save_aux_cache): Free memory allocated for
4875         temporary file name [Coverity CID 267].
4877 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
4879         * misc/Makefile (headers): Add bits/error.h.
4881 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
4883         * posix/fnmatch_loop.c: Take rule index returned as part of
4884         findidx return value into account when accessing weights.
4885         * posix/regcomp.c: Likewise.
4886         * posix/regexec.c: Likewise.
4888         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
4889         (skip_to): Fix problems with parameter of elifdef/elifndef.
4891 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
4893         * iconv/gconv_simple.c: Add some branch prediction.
4895 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
4897         * locale/programs/ld-collate.c (collate_read): If ignore_content
4898         and nowtok is tok_define, eat any tok_eol tokens.
4900 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
4902         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
4903         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
4905         * inet/netinet/in.h: Don't include bits/socket.h.
4906         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
4907         macro.
4908         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
4910 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
4912         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
4913         and tok_elifndef.
4914         * locale/programs/locfile-kw.gperf: Likewise.
4915         * locale/programs/ld-collate.c: Implement primitive preprocessor.
4917 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
4919         * stdio-common/printf-parse.h: Include string.h and wchar.h.
4920         (__find_specwc): Change into __extern_always_inline function.
4921         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
4922         (__parse_one_specmb): Remove ps argument.
4923         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
4924         Adjust __find_specmb and __parse_one_specmb callers.
4925         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
4926         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
4927         Removed.
4928         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
4929         caller.
4931 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
4933         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
4934         with some Pentium Ds.
4936 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
4938         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
4939         __read not read.
4940         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
4941         __write not write.
4943 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
4945         [BZ #181]
4946         * locale/C-time.c: Set week_1stday data to 19971201.
4947         * locale/programs/ld-time.c (time_finish): Default for
4948         first_workday is Monday.
4950         [BZ #2633]
4951         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
4953         [BZ #5103]
4954         * posix/glob.c (glob): Recognize patterns starting \/.
4955         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
4956         (main): Add test for pattern starting \/.
4958         * misc/error.h: Use __const instead of const.
4959         * misc/bits/error.h: Likewise.
4961 2007-10-07  Andreas Jaeger  <aj@suse.de>
4963         * include/bits/error.h: New file.
4965         * misc/bits/error.h (error_at_line): Fix prototype.
4967 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
4969         [BZ #3924]
4970         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
4971         more little bugs in creating the stack frame when pltexit has to
4972         be called.
4974         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
4975         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
4977         [BZ #4407]
4978         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
4979         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
4980         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
4981         * math/libm-test.inc: Add test for this case.
4983         [BZ #5010]
4984         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
4985         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
4986         map service succeeded.
4987         (svc_is_mapped): New function.
4988         (svc_unregister): Use it before trying to unmap service.
4990 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
4992         * timezone/zic.c: Update from tzcode2007h.
4994         [BZ #5063]
4995         * timezone/africa: Update from tzdata2007h.
4996         * timezone/antarctica: Likewise.
4997         * timezone/asia: Likewise.
4998         * timezone/australasia: Likewise.
4999         * timezone/europe: Likewise.
5000         * timezone/leapseconds: Likewise.
5001         * timezone/northamerica: Likewise.
5002         * timezone/southamerica: Likewise.
5003         * timzeone/zone.tab: Likewise.
5005         [BZ #5104]
5006         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
5008         [BZ #5113]
5009         * string/bits/string2.h (__strdup): Cast parameters to calloc to
5010         avoid warning with -Wconversion.
5011         (__strndup): Likewise.
5012         Half the patch by Christian Iseli <christian.iseli@licr.org>.
5014         [BZ #5112]
5015         * nscd/connections.c (restart): Don't resync if database is
5016         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
5018         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
5019         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
5021         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
5022         evetnfd_read, eventfd_write.
5023         * sysdeps/unix/sysv/linux/eventfd.c: New file.
5024         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
5025         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
5026         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
5027         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
5028         eventfd_write for GLIBC_2.7.
5030         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
5031         * sysdeps/unix/sysv/linux/signalfd.c: New file.
5032         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
5033         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
5035 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
5037         * stdlib/msort.c: Include stdint.h.
5038         (struct msort_param): New type.
5039         (msort_with_tmp): Use struct msort_param pointer for unchanging
5040         parameters.  Add optimized handling for several common sizes
5041         and indirect sorting mode.
5042         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
5043         sorting.
5044         Suggested by Belazougui Djamel .
5046         * stdlib/Makefile (tests): Add tst-qsort2.
5047         * stdlib/tst-qsort2.c: New test.
5049 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
5051         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
5052         for dup2 in case another thread races with the current one.  Retry
5053         in this case.
5055         * misc/error.h: Remove support for use outside of libc.  We have to
5056         include <features.h> now.  Include <bits/error.h> if possible.
5057         * misc/bits/error.h: New file.
5059 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
5061         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
5062         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
5063         __extern_always_inline functions unconditionally, drop macros.
5065         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
5066         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
5067         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
5069         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
5070         add __artificial__ attribute.
5072 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
5074         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
5075         backward to forward direction.
5077         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
5079         [BZ #645]
5080         * locale/programs/ld-collate.c (collate_finish): Compare against last
5081         used section which is known to have rules defined.
5082         (collate_read): After order_start, correctly record order of sections
5083         and queue sections up.
5085 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
5087         [BZ #5071]
5088         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
5089         the same number of pages.
5090         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
5092         * locale/programs/ld-collate.c (collate_read): After initial copy
5093         statement, continue in state 0.
5095         * include/stdio_ext.h (__fsetlocking): Define as macro.
5097 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
5099         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
5100         of section order.
5102         * po/pt_BR.po: Fix typo.
5104 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
5106         * iconvdata/Makefile (modules): Add ISO8859-9E.
5107         (distribute): Add iso8859-9e.c.
5108         (gen-8bit-gap-modules): Add iso8859-9e.
5109         * iconvdata/iso8859-9e.c: New file.
5110         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
5111         * iconvdata/TESTS: Likewise.
5112         * iconvdata/tst-tables.sh: Likewise.
5114         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5116         * locale/iso-639.def: Add several new entries.
5118 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
5120         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
5121         void * pointers instead of struct link_map **.
5122         (_dl_scope_free): Change argument type to void *.
5123         * include/link.h (struct link_map): Change type of l_reldeps
5124         to struct link_map_reldeps, move l_reldepsact into that
5125         struct too.
5126         * elf/dl-deps.c: Include atomic.h.
5127         (_dl_map_object_deps): Only change l->l_initfini when it is
5128         fully populated, use _dl_scope_free for freeing it.  Optimize
5129         removal of libs from reldeps by using l_reserved flag, when
5130         some removal is needed, allocate a new list instead of
5131         reallocating and free the old with _dl_scope_free.  Adjust
5132         for l_reldeps and l_reldepsact changes.
5133         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
5134         searching in l_initfini and l_reldeps without holding dl_load_lock.
5135         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
5136         l_reldepsact changes.
5137         * elf/dl-close.c (_dl_close_worker): Likewise.
5138         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
5140 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
5142         * iconvdata/Makefile (modules): Add KOI8-RU.
5143         (distribute): Add koi8-ru.c.
5144         (gen-8bit-gap-modules): Add koi8-ru.
5145         * iconvdata/koi8-ru.c: New file.
5146         * iconvdata/gconv-modules: Add entries for KOI8-RU.
5147         * iconvdata/TESTS: Likewise.
5148         * iconvdata/tst-tables.sh: Likewise.
5150         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
5152 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
5154         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
5155         with __warning__/__error__ attributes.
5156         (__warnattr): Define.
5157         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
5158         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
5159         __warnattr.
5160         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
5161         of __*_chk if compile time detectable overflow is found.
5162         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
5163         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
5164         with __warnattr.
5165         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
5166         instead of __*_chk if compile time detectable overflow is found.
5167         (__gets_alias): Rename to...
5168         (__gets_warn): ... this.  Add __warnattr.
5169         (gets): Call __gets_warn instead of __gets_alias.
5170         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
5171         aliases with __warnattr.
5172         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
5173         time detectable overflow is found.
5174         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
5175         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
5176         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
5177         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
5178         __getdomainname_chk_warn): New aliases with __warnattr.
5179         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
5180         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
5181         __*_chk_warn instead of __*_chk if compile time detectable overflow
5182         is found.
5183         (__getgroups_chk): Rename argument to __listlen from listlen.
5184         (__getwd_alias): Rename to...
5185         (__getwd_warn): ... this.  Add __warnattr.
5186         (getwd): Call __getwd_warn instead of __getwd_alias.
5187         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
5188         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
5189         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
5190         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
5191         __wcsnrtombs_chk_warn): New aliases with __warnattr.
5192         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
5193         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
5194         compile time detectable overflow is found.
5195         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
5196         to use __*_chk or not.
5197         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
5198         in comparisons which function should be called and in __*_chk*
5199         arguments.  Call __*_chk_warn instead of __*_chk if compile time
5200         detectable overflow is found.
5201         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
5202         __*_chk argument.
5203         * debug/tst-chk1.c (do_test): Add a few more tests.
5205 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
5207         [BZ #5058]
5208         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
5209         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
5210         (_nl_unload_domain): Finalize conversions_lock.
5211         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
5212         handling table of known conversions.
5214 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
5216         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
5217         close_not_cancel_no_status instead of close.
5219 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
5221         [BZ #5028]
5222         * posix/regcomp.c (lookup_collation_sequence_value): Check that
5223         nrules != 0 for multibyte chars.
5225 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
5227         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
5228         Provide better error message in case the type is unknown.
5230         [BZ #4963]
5231         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
5232         * string/stratcliff.c: Make usable to test wide char functions.
5233         * wcsmbs/wcsatcliff.c: New file.
5234         * wcsmbs/Makefiel (tests): Add wcsatcliff.
5236         [BZ #4972]
5237         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
5238         (distribute): Add mac-centraleurope.c.
5239         (gen-8bit-gap-modules): Add mac-centraleurope.
5240         * iconvdata/mac-centraleurope.c: New file.
5241         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
5242         * iconvdata/TESTS: Likewise.
5243         * iconvdata/tst-tables.sh: Likewise.
5245         [BZ #5043]
5246         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
5248 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
5250         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
5251         from __x86_64_core_cache_size_half.
5252         (init_cacheinfo): Compute shared cache size for AMD processors with
5253         shared L3 correctly.
5254         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
5255         name change.
5256         Patch in large parts by Evandro Menezes.
5258 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
5260         * elf/dl-lookup.c (add_dependency): Handle failing memory
5261         allocation for dependency list.  Remove unnecessary check.
5263         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
5264         open/close when determining source addresses.
5266         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
5267         sha512-crypt, and sha512.
5268         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
5269         (distribute): Add sha256.h and sha512.h.
5270         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
5271         and call the appropriate code.
5272         * crypt/sha256-crypt.c: New file.
5273         * crypt/sha256.c: New file.
5274         * crypt/sha256.h: New file.
5275         * crypt/sha256c-test.c: New file.
5276         * crypt/sha256test.c: New file.
5277         * crypt/sha512-crypt.c: New file.
5278         * crypt/sha512.c: New file.
5279         * crypt/sha512.h: New file.
5280         * crypt/sha512c-test.c: New file.
5281         * crypt/sha512test.c: New file.
5283 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
5285         * misc/bits/syslog.h (syslog): Remove extraneous argument from
5286         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
5287         __syslog_chk.
5289 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
5291         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
5292         %as in fscanf format strings.
5294         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
5295         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
5296         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
5297         Likewise.
5298         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
5299         Likewise.
5301         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
5302         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
5303         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
5304         * elf/dl-sym.c (do_sym): Likewise.
5305         * include/link.h (struct link_map): Add l_serial field.
5306         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
5307         * elf/dl-lookup.c (add_dependency): Add flags argument.
5308         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
5309         flags, use THREAD_GSCOPE_RESET_FLAG before and
5310         THREAD_GSCOPE_SET_FLAG after
5311         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
5312         Don't dereference map until it has been found on some list.
5313         If map->l_serial changed, return -1.
5315 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
5317         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
5318         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
5319         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
5320         libc_hidden_proto.
5321         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
5322         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
5323         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
5324         add libc_hidden_proto.
5325         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5326         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5327         conformance requested.
5328         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
5329         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
5330         conformance requested.
5331         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
5332         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
5333         conformance requested.
5334         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
5335         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
5336         ISO C99 or POSIX conformance requested.
5337         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
5338         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
5339         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
5340         and __isoc99_vsscanf@@GLIBC_2.7.
5341         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
5342         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
5343         (tests): Add scanf14.
5344         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
5345         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
5346         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
5347         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
5348         CFLAGS-isoc99_scanf.c): Add $(exceptions).
5349         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
5350         from using internal headers.
5351         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
5352         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
5353         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
5354         and __isoc99_vswscanf@@GLIBC_2.7.
5355         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
5356         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
5357         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
5358         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
5359         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
5360         * stdio-common/isoc99_scanf.c: New file.
5361         * stdio-common/isoc99_vsscanf.c: New file.
5362         * stdio-common/isoc99_vscanf.c: New file.
5363         * stdio-common/isoc99_vfscanf.c: New file.
5364         * stdio-common/isoc99_fscanf.c: New file.
5365         * stdio-common/isoc99_sscanf.c: New file.
5366         * wcsmbs/isoc99_fwscanf.c: New file.
5367         * wcsmbs/isoc99_vswscanf.c: New file.
5368         * wcsmbs/isoc99_swscanf.c: New file.
5369         * wcsmbs/isoc99_wscanf.c: New file.
5370         * wcsmbs/isoc99_vwscanf.c: New file.
5371         * wcsmbs/isoc99_vfwscanf.c: New file.
5372         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
5373         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
5374         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
5375         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
5376         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
5377         * stdio-common/scanf14.c: New test.
5378         * stdio-common/scanf15.c: New test.
5379         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
5380         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
5381         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
5382         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
5383         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
5384         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
5385         __nldbl___isoc99_scanf@@GLIBC_2.7,
5386         __nldbl___isoc99_fscanf@@GLIBC_2.7,
5387         __nldbl___isoc99_sscanf@@GLIBC_2.7,
5388         __nldbl___isoc99_vscanf@@GLIBC_2.7,
5389         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
5390         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
5391         __nldbl___isoc99_wscanf@@GLIBC_2.7,
5392         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
5393         __nldbl___isoc99_swscanf@@GLIBC_2.7,
5394         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
5395         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
5396         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
5397         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
5398         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
5399         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
5400         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
5401         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
5402         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5403         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
5404         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
5405         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
5406         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
5407         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
5408         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
5409         functions.
5410         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
5411         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
5412         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
5413         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
5414         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
5415         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
5416         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
5417         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
5418         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
5419         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
5420         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
5421         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
5423         * stdio-common/Makefile (tests): Add scanf13.
5424         (scanf13-ENV): New.
5425         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
5426         m modifier followed by l.
5427         (STRING_ARG): Add width argument.
5428         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
5429         <case L_('C')>: Handle %mlc and %mC.
5430         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
5431         arguments.
5432         * stdio-common/scanf13.c: New test.
5434         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
5435         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
5437 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
5439         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
5440         type and __THROW marker of splice, vmsplice, and tee.
5441         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5442         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
5443         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5444         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5445         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5446         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5447         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
5448         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
5449         as cancellation points.
5451 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
5453         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
5454         parse more than three parts of the version number.
5456 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
5458         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
5459         modifier.  Patch by Jakub Jelinek.
5461 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
5463         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
5464         call_fallocate in misc subdir.
5465         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
5466         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
5467         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
5468         instead of __fallocate64.
5469         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
5471 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
5473         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
5474         * rt/Makefile (headers): Add bits/mqueue2.h.
5475         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
5476         optimizing with GCC and __va_arg_pack_len is defined.
5477         * rt/bits/mqueue2.h: New file.
5478         * rt/mq_open.c (__mq_open): Renamed from mq_open.
5479         (mq_open): New strong_alias.
5480         (__mq_open_2): New function.
5481         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
5482         (mq_open): New strong_alias.
5483         (__mq_open_2): New function.
5484         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
5485         * Versions.def (librt): Add GLIBC_2.7 version.
5486         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
5487         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
5489         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
5490         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
5491         is defined rather than when not C++.
5492         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
5493         __openat64_alias): New redirects.
5494         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
5495         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
5496         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
5497         (open, open64, openat, openat64): Rewrite as __extern_always_inline
5498         functions instead of function-like macros.
5500 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
5502         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
5503         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
5504         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
5506 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
5508         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
5509         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
5511 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
5513         * inet/tst-network.c: Increment ERRORS for failing tests.
5515 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
5517         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
5518         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
5519         implement as __extern_always_inline function.
5520         (vsyslog): Define as __extern_always_inline function unconditionally.
5521         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
5522         When __va_arg_pack is defined, implement as __extern_always_inline
5523         functions.
5524         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5525         __extern_always_inline functions unconditionally.
5526         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
5527         bits/stdio2.h will be included.
5528         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
5529         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
5530         implement as __extern_always_inline functions.
5531         (vswprintf, vwprintf, vfwprintf): Define as
5532         __extern_always_inline functions unconditionally.
5533         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
5535 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
5537         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
5538         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
5539         attribute.
5540         * include/features.h (__USE_EXTERN_INLINES): Define only when
5541         __extern_inline is defined.
5542         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
5543         is defined instead of when not __cplusplus.
5544         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
5545         is defined instead of when not __cplusplus.
5546         * socket/sys/socket.h: Include bits/socket2.h when
5547         __extern_always_inline is defined instead of when not __cplusplus.
5548         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
5549         is defined instead of when not __cplusplus.
5550         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
5551         is defined instead of when not __cplusplus.
5552         * string/string.h: Include bits/string3.h when __extern_always_inline
5553         is defined instead of when not __cplusplus.
5554         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
5555         is defined instead of when not __cplusplus.
5556         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
5557         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
5558         is not defined.
5559         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
5560         defined __extern_always_inline instead of !defined __cplusplus.
5561         * libio/bits/stdio-ldbl.h: Likewise.
5562         * wcsmbs/bits/wchar-ldbl.h: Likewise.
5563         * misc/bits/syslog.h (syslog): Don't define for C++.
5564         (vsyslog): Use __extern_always_inline function for C++ instead of
5565         a macro.
5566         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
5567         whenever that macro is defined.
5568         (vprintf): Don't provide the inline for C++.
5569         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
5570         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
5571         define the macros for C++.
5572         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
5573         __extern_always_inline functions for C++.
5574         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
5575         stat64, lstat64, fstat64, fstatat64): Don't define if not
5576         __USE_EXTERN_INLINES.
5577         * wcsmbs/bits/wchar2.h: Fix #error message.
5578         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
5579         (vswprintf, vwprintf, vfwprintf): Define using
5580         __extern_always_inline functions for C++.
5581         * string/bits/string3.h: Don't #undef macros if __cplusplus.
5582         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
5583         strncpy, strcat, strncat): Define as __extern_always_inline
5584         functions instead of macros for C++.
5585         * math/bits/cmathcalls.h: Guard __extern_inline routines with
5586         defined __extern_inline.
5587         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
5588         to __extern_inline whenever that macro is defined.
5589         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5590         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5591         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
5592         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
5593         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5594         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5595         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5596         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
5597         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
5598         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
5599         prototypes.  Only provide __extern_inline routines if
5600         __USE_EXTERN_INLINES.
5601         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
5602         tests.
5603         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
5604         For now avoid some *printf tests in C++.  Skip all testing
5605         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
5606         is not.
5607         * debug/tst-chk4.cc: New file.
5608         * debug/tst-chk5.cc: New file.
5609         * debug/tst-chk6.cc: New file.
5610         * debug/tst-lfschk4.cc: New file.
5611         * debug/tst-lfschk5.cc: New file.
5612         * debug/tst-lfschk6.cc: New file.
5613         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
5614         prototypes in C++.
5615         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
5616         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
5617         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
5619 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
5621         * po/cs.po: Update from translation team.
5623 2007-09-11  Roland McGrath  <roland@redhat.com>
5625         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
5626         compiling.
5628 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5630         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
5632 2007-09-05  Roland McGrath  <roland@redhat.com>
5634         * manual/signal.texi (Signaling Another Process): Typo fix.
5635         From Karl Berry <karl@freefriends.org>.
5637 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
5639         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
5640         zero if not defined.
5641         (make_request): Recognize optimistic addresses and treat them like
5642         deprecated addresses.
5643         Reported by Neil Horman <nhorman@redhat.com>.
5645 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
5647         * nscd/connections.c (send_ro_fd): Also transfer file size.
5648         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
5649         file size don't call fstat.
5651         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
5652         ahead and map the file.  This should always be correct and we can
5653         catch problems later.
5655 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
5657         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
5658         prototypes.
5659         (__fread_alias, __fread_unlocked_alias): New aliases.
5660         (fread): New extern inline.
5661         (fread_unlocked): Likewise.  Undef macro before definition of
5662         the inline function.
5663         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
5664         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
5665         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
5666         and __fread_unlocked_chk@@GLIBC_2.7.
5667         * debug/fread_chk.c: New file.
5668         * debug/fread_u_chk.c: New file.
5669         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
5671 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
5673         * sysdeps/unix/sysv/linux/syscalls.list
5674         (personality): Change caller to EXTRA.
5676 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
5678         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
5679         to keep gcc quiet.
5680         * iconvdata/iso-2022-cn.c (BODY): Likewise.
5682         * locale/programs/ld-collate.c (collate_output): Avoid warning if
5683         NDEBUG is defined.
5685         * Makerules: Use -p option with mkdir.
5687         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
5688         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
5689         (_xdr_directory_obj): Likewise.
5690         (xdr_entry_obj): Likewise.
5691         (xdr_group_obj): Likewise.
5692         (xdr_link_obj): Likewise.
5693         (xdr_table_obj): Likewise.
5694         (_xdr_nis_result): Likewise.
5695         (_xdr_ns_request): Likewise.
5696         (_xdr_ib_request): Likewise.
5697         (_xdr_nis_taglist): Likewise.
5698         (xdr_cback_data): Likewise.
5699         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
5700         (xdr_ypresp_maplist): Likewise.
5702         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
5704         * posix/regex_internal.h: Prevent some declarations and definitions
5705         to be seen when used in tests.
5707         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
5708         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
5710         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
5712         * config.make.in (datarootdir): Add to shut up configure.
5714         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
5715         associativity for fully-associative caches.
5717         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
5718         requests.  Fill on more associativity values for L2.
5719         Patch mostly by Evandro Menezes.
5721 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
5723         * sysdeps/unix/sysv/linux/x86_64/init-first.c
5724         (_libc_vdso_platform_setup): Avoid using exported variable by using
5725         alias.
5727         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
5729         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
5730         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
5731         defined.
5733 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
5735         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
5736         align stack for call if pltexit is to be used.
5738         [BZ #3924]
5739         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
5740         align for function call in case pltexit has to be called later.
5742         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
5743         implicit atomic operation when storing function pointer.
5744         (_dl_runtime_profile): Likewise.
5746 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
5748         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
5749         NIS_NOTFOUND.
5751 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
5753         [BZ #4566]
5754         * string/strtok.c: Fix typo in comment.
5756         [BZ #4582]
5757         * debug/segfault.c: Fix typos in comments.
5759         [BZ #4588]
5760         * stdio-common/tempnam.c: Fix comment, it is not checked that
5761         TMPDIR points to a writable directory.
5763         [BZ #4726]
5764         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
5765         memory allocated for the name server address.
5767         [BZ #4946]
5768         * nscd/connections.c (handle_request): Using sendfile always
5769         requires that mmap is used for the database.
5770         Patch by Petr Baudis <pasky@suse.cz>.
5772         [BZ #4905]
5773         * nscd/hstcache.c (cache_addhst): When reloading an entry which
5774         suddenly has two or more addresses, ignore it and remove the old
5775         entry.
5777         [BZ #4814]
5778         * resolv/res_hconf.c: Prepare for compiling outside libc.
5779         * nscd/res_hconf.c: New file.
5780         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
5781         the new file.
5782         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
5783         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
5785         * nscd/hstcache.c (cache_addhst): Minimal optimization.
5787         [BZ #4925]
5788         * debug/pcprofiledump.c: Turn on internationalization by calling
5789         setlocale.  Patch mostly by Benno Schulenberg.
5791         [BZ #4936]
5792         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
5793         the state.
5794         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
5795         * iconvdata/bug-iconv5.c: New file.
5797 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
5799         [BZ #4896]
5800         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
5801         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
5802         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
5803         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
5804         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
5805         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
5806         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
5807         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
5809 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
5811         [BZ #4937]
5812         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
5813         lookup loop.  Suggested by John Reiser.
5815 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
5817         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
5819 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
5821         * csu/libc-start.c: Don't handle VDSO_SETUP here.
5822         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
5823         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
5824         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
5825         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
5826         to...
5827         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
5829 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
5831         * po/nl.po: Update from translation team.
5833 2007-08-16  Andreas Jaeger  <aj@suse.de>
5835         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
5836         Reported by Peter Festner <peter.festner@ewetel.net>.
5838 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
5840         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
5842 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
5844         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
5845         to check for undefined symbols.
5847         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
5848         If the syscall fails, set errno to the actual returned error number
5849         rather than EINVAL.
5850         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
5851         arguments are incorrect, set errno to EINVAL, if the syscall
5852         fails, set errno to the actual returned error number.
5854         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
5855         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
5857         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
5858         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
5859         file.
5860         (ASI_PNF, ASI_BLK_P): Don't define.
5861         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
5862         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
5863         file.
5864         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
5865         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
5866         file.
5868 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
5870         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
5871         FE_UNDERFLOW on Niagara CPUs.
5873         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
5874         exceptions.
5876 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
5878         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
5879         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
5880         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
5881         flush should be used or not inside of the function.
5882         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
5884         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
5885         __thread_start): Use HIDDEN_JUMPTARGET.
5886         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
5887         __thread_start): Likewise.
5888         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
5890         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
5891         Add libc_hidden_proto.
5892         (STRTOF): Add libc_hidden_proto.
5893         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
5894         (strtold_l, wcstold_l): Use them as second argument for
5895         long_double_symbol.
5897 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
5899         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
5901 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5903         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
5905 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
5907         * po/bg.po: New file.  From the translation team.
5909 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
5911         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
5912         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
5913         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
5914         when each feature was introduced.
5916         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
5917         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
5918         (CHECK_HASH): New macro.
5919         (PREPARE_VERSION): Use it.
5921         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
5922         prototype if not __ASSUME_PSELECT.
5923         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
5924         prototype if not __ASSUME_PPOLL.
5926         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
5928         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
5929         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
5930         is defined.
5932 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
5934         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
5935         (_libc_vdso_platform_setup): If vDSO is not available point
5936         __vdso_gettimeofday to the vsyscall.
5937         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
5938         __vdso_gettimeofday instead of vsyscall.
5940 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
5942         * nscd/servicescache.c: Include kernel-features.h.
5943         * nscd/gai.c: Likewise.
5944         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
5945         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
5946         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
5947         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
5948         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
5949         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
5950         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
5951         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
5952         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
5954 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
5956         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
5957         and _dl_get_origin defines anymore.
5959         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
5960         Build fix for systems which might lack POSIX timer support.
5962         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
5963         (_libc_vdso_platform_setup): Mangle function pointers before storing
5964         them.
5965         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
5966         Demangle vdso pointer before use.
5967         (INTERNAL_VSYSCALL): Likewise.
5969         * elf/cache.c (primes): Mark as const.
5970         Noted by Roland McGrath.
5972 2007-08-01  Andreas Jaeger  <aj@suse.de>
5973             Jakub Jelinek  <jakub@redhat.com>
5975         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
5976         (options): Add option.
5977         (parse_opt): Handle option.
5978         (manual_link): Adjust process_file caller.  Call implicit_soname.
5979         (search_dir): Formatting.  Use and populate auxiliary cache.
5980         (main): Load and save auxiliary cache.
5981         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
5982         stat64 from fstat64 to caller.
5983         (implicit_soname): New function.
5984         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
5985         leave *soname as NULL.
5986         * elf/cache.c: Include libgen.h.
5987         (print_entry, print_cache, compare, save_cache, add_to_cache):
5988         Formatting and cleanups.
5989         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
5990         aux_cache_file): New structures.
5991         (AUX_CACHEMAGIC): Define.
5992         (primes): New array.
5993         (aux_hash_size, aux_hash): New variables.
5994         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
5995         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
5996         load_aux_cache, save_aux_cache): New functions.
5997         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
5998         (init_aux_cache, search_aux_cache, add_to_aux_cache,
5999         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
6000         (process_file): Adjust prototype.
6002 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
6004         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
6005         with __need_size_t.
6007 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
6009         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
6010         r_found_version structure as second parameter.
6011         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
6012         (_dl_vdso_vsym): Change type of second parameter accordingly.
6013         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
6014         (_libc_vdso_platform_setup): Adjust.
6015         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6016         (_libc_vdso_platform_setup): Likewise.
6018         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
6019         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
6020         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
6021         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
6022         * csu/libc-start.c: Pretty printing.
6023         Use VDSO_SETUP if defined.
6024         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
6025         and let generic code call into _libc_vdso_platform_setup.
6026         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
6027         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
6028         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
6029         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
6030         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
6031         for GLIBC_PRIVATE.
6032         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
6033         (sysdep_rountines): Add dl-vdso.
6035         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
6036         of routines.
6038         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
6039         attribute_hidden to __vdso_gettimeofday prototype.
6041 2007-08-12  Roland McGrath  <roland@redhat.com>
6043         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
6044         From: Karl Berry <karl@freefriends.org>.
6046 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
6048         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
6049         an atime update for the files we read.
6051 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
6053         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
6055         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
6056         instead of mkstemp.
6058         * misc/Makefile (routines): Add mkostemp and mkostemp64.
6059         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
6060         * misc/mkostemp.c: New file.
6061         * misc/mkostemp64.c: New file.
6062         * stdlib/stdlib.h: Declare the new functions.
6063         * sysdeps/posix/tempname.c: Add new parameter which is added to
6064         the flags for open.  Remove __GT_BIGFILE handling.
6065         * stdio-common/tempname.c: Likewise.
6066         * include/stdio.h: Adjust __gen_tempname prototype.
6067         Renumber __GT_* constants.
6068         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
6069         * misc/mkdtemp.c: Likewise.
6070         * misc/mkstemp.c: Likewise.
6071         * misc/mkstemp64.c: Likewise.
6072         * misc/mktemp.c: Likewise.
6073         * stdio-common/tempnam.c: Likewise.
6074         * stdio-common/tmpfile.c: Likewise.
6075         * stdio-common/tmpfile64.c: Likewise.
6076         * stdio-common/tmpnam.c: Likewise.
6077         * stdio-common/tmpnam_r.c: Likewise.
6079 2007-08-10  Roland McGrath  <roland@frob.com>
6081         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
6082         New macros.
6083         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
6084         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6086 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
6088         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
6089         possible.
6090         * nss/nss_files/files-alias.c (internal_setent): Likewise.
6091         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
6092         * nss/nss_files/files-have_o_cloexec.c: New file.
6094         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
6095         available.
6097 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
6099         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
6100         ___new_wcstold_l): New weak aliases.
6101         (strtold_l, wcstold_l): Use them as second argument for
6102         long_double_symbol.
6104 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
6106         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
6107         register in test for error.
6109         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
6110         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
6112         * po/sv.po: Update from translation team.
6114 2007-08-06  Roland McGrath  <roland@redhat.com>
6116         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
6117         Remove __strto*_l inlines.
6118         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
6119         * stdlib/strtod.c: Add libc_hidden_def.
6120         * stdlib/strtod_l.c: Likewise.
6121         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
6122         for __new_strtold and __new_wcstold.
6123         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
6124         __STRTOF, STRTOF.
6125         * stdlib/strtol.c: Add libc_hidden_def.
6126         * stdlib/strtol_l.c: Likewise.
6127         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
6128         strtoq.
6130         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
6132         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
6133         * scripts/data/localplt-generic.data: ... here.
6134         * elf/Makefile (check-data): Get generic file if no other.
6135         ($(objpfx)check-localplt.out): Make target unconditional.
6137         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
6138         Use ElfW(Nhdr).
6140 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
6142         * po/zh_CN.po: Updated translation from translation team.
6144 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
6146         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
6147         Don't use CGOTSETUP and CGOTRESTORE macros.
6149 2007-08-04  Roland McGrath  <roland@redhat.com>
6151         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
6153 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
6155         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
6156         __extension__ around the whole statement expression.
6158 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
6160         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
6161         elements during initialization.
6163         * po/pl.po: Updated translation from translation team.
6164         * po/tr.po: Likewise.
6165         * po/nl.po: Likewise.
6167 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
6169         * rt/aio.h: Add __nonnull attributes.
6171 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
6173         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
6174         * stdlib/Makefile (tests): Add tst-strtod5.
6175         (tst-strtod5-ENV): New.
6176         * stdlib/tst-strtod5.c: New file.
6178         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
6179         failed.
6180         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
6181         on failure.
6183         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
6184         allocated.
6186 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
6188         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
6189         numbers.
6191 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
6193         * io/Makefile (aux): Add have_o_cloexec.
6194         * include/fcntl.h: Declare __have_o_cloexec.
6195         * io/have_o_cloexec.c: New file.
6196         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
6197         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
6198         fcntl call if not necessary.
6199         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
6200         of local variable.
6202         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
6203         Avoid memset, add explicit initialization.
6204         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
6205         to the end and change into zero-sized array.
6206         Move lock member to fill a hole on 64-bit platforms.
6208         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
6209         inline functions.
6210         * include/stdlib.h: Add __strto*_internal prototypes here.
6211         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
6212         inline functions.
6213         * include/wchar.h: Add __wcsto*_internal prototypes.
6214         * sysdeps/generic/inttypes.h: No need to protect the declaration
6215         of the __strto*_internal and __wcsto*_internal members here.
6217         * rt/mqueue.h: Change const to __const and add nonnull attributes.
6219 2007-08-02  Roland McGrath  <roland@redhat.com>
6221         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
6222         $(inst_bindir)/getconf if possible.
6224         * posix/Makefile ($(objpfx)getconf.speclist): New target.
6225         (generated): Add it.
6226         ($(inst_libexecdir)/getconf): Use it.
6228 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
6230         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
6231         /proc is faster and sufficient.  /sys is still needed for
6232         __get_nprocs_conf.
6234 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
6236         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
6237         syscall as __fallocate64.
6238         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
6239         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
6241 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
6243         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
6244         value.
6246         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
6247         if off_t is different rank from size_t.
6249         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
6250         uw_frame_state_for): Avoid type punning warnings.
6251         * sysdeps/generic/unwind-dw2-fde-glibc.c
6252         (_Unwind_IteratePhdrCallback): Likewise.
6253         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
6254         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
6255         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
6256         pointers.
6258 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
6260         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
6261         total processors using sysfs.
6262         (__get_nprocs): Use sysfs to determine which processors are online.
6264 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
6266         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
6267         syscall arguments count.
6269         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
6271 2007-07-30  Roland McGrath  <roland@redhat.com>
6273         * manual/libc.texinfo: Update copyrights, formatting magic, and
6274         @dircategory.  From Karl Berry <karl@freefriends.org>.
6276 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
6278         [BZ #4860]
6279         * io/Makefile (headers): Add bits/fcntl2.h.
6281         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
6282         using gcc builtin.
6283         (__CPU_EQUAL_S): Likewise.
6285         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
6286         (tests): Add tst-cpuset.
6287         * posix/sched_cpualloc.c: New file.
6288         * posix/sched_cpufree.c: New file.
6289         * posix/tst-cpuset.c: New file.
6290         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
6291         GLIBC_2.7.
6292         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
6293         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
6294         macros.  Define CPU_*_S macros.
6296 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
6298         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
6299         entry.
6301         [BZ #4858]
6302         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
6303         #.0g and value rounded to 1.0.
6304         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
6306 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
6308         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
6309         for int_frac_digits and frac_digits.
6311         * login/logout.c (logout): Avoid aliasing violation.
6312         * login/logwtmp.c (logwtmp): Likewise.
6314         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
6316         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
6317         to avoid warning.
6318         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
6319         warning.
6320         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
6321         warning.
6322         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
6323         to avoid warnings.
6325         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
6326         void **.
6327         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
6329         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
6330         char * to avoid warning.
6331         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
6333         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
6335         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
6336         allocate_arrays): Cast second argument to charmap_find_symbol
6337         to char * to avoid warnings.
6339         * locale/programs/repertoire.c (repertoire_new_char): Change
6340         from_nr, to_nr and cnt to unsigned long, adjust printf format
6341         string.
6343         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
6344         Cast second argument to new_element to char * to avoid warnings.
6346         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
6348         * intl/gettextP.h (struct loaded_domain): Change plural to const
6349         struct expression *.
6350         * intl/plural-eval.c (plural_eval): Change first argument to
6351         const struct expression *.
6352         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
6353         argument to const struct expression **.
6354         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
6355         prototypes.
6356         * intl/loadmsgcat (_nl_unload_domain): Cast away const
6357         in call to __gettext_free_exp.
6359         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
6360         unitialized wstring/wpattern var warnings.
6362         * posix/runtests.c (struct a_test): Make data field const char *.
6364         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
6365         vars if not LDBL_MANT_DIG >= 106.
6367         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
6369         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
6370         __find_specmb to avoid warning.
6372         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
6374         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
6375         to avoid warnings.
6377         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
6378         initializer.
6380         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
6381         tv var when it will be actually used.
6383         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
6384         to avoid warnings.
6386         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
6387         char array resp. pointer.
6388         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
6389         char array.
6390         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
6391         to const unsigned char **.
6392         (ucs4_to_cns11643): Change second argument to unsigned char *.
6393         * iconvdata/euc-tw.c (BODY): Change endp type to
6394         const unsigned char *.
6395         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
6396         to unsigned char *.
6397         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
6398         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
6399         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
6400         types to unsigned char pointers/arrays instead of char.
6401         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
6402         to unsigned char *.
6403         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
6404         * iconvdata/jis0212.h: Include assert.h.
6405         (ucs4_to_jisx0212): Change second argument to unsigned char *.
6406         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
6407         of trying to handle that.
6408         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
6409         shut up a warning.
6410         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
6411         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
6412         two dimensional const unsigned char arrays.
6413         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
6414         Initialize endp to inptr to shut up a warning.
6416 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
6418         [BZ #4772]
6419         * time/strptime_l.c (__strptime_internal): Silently ignore
6420         strftime modifiers and field width in recursive calls.
6422         * include/time.h (enum ptime_locale_status): Remove.
6423         (__strptime_internal): Remove decided and era_cnt arguments,
6424         add statep argument.
6425         * time/strptime_l.c (__strptime_internal): Remove decided
6426         and era_cnt arguments, add statep argument.  Don't recompute
6427         any fields in recursive calls, only update caller's tm
6428         and state, if recursive call fails, don't change tm nor
6429         any state.
6430         (get_alt_number): Adjust.
6431         (recursive): Adjust caller.
6432         (strptime): Likewise.
6433         * time/strptime.c (strptime): Likewise.
6435 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
6437         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
6438         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
6439         if from and to charsets are the same.
6440         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
6441         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
6442         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
6444 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
6446         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
6447         Don't define wint_t when __need_mbstate_t unless it
6448         is necessary.
6449         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
6450         in the typedef if possible.
6451         * wctype/wctype.h (wint_t): Define by including
6452         wchar.h with __need_wint_t instead of including stddef.h
6453         with __need_wint_t and as fallback definining it ourselves.
6454         * iconv/gconv.h (__need_wint_t): Define before including
6455         wchar.h.
6456         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
6457         or _GLIBCPP_USE_WCHAR_T.
6458         (__need_wchar_t): Don't define
6459         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6460         (__need_wint_t): Don't define before including stddef.h,
6461         define before including wchar.h only if _LIBC or
6462         _GLIBCPP_USE_WCHAR_T.
6463         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
6464         * sysdeps/mach/hurd/_G_config.h: Likewise.
6465         * sysdeps/generic/_G_config.h: Likewise.
6466         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
6467         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
6468         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
6469         if _LIBC or _GLIBCPP_USE_WCHAR_T.
6471 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
6473         * sysdeps/posix/posix_fallocate64.c: Undefine
6474         __posix_fallocate64_l64 before alias handling.
6475         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
6476         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
6477         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
6478         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
6480         * io/tst-posix_fallocate.c: Include <fcntl.h>.
6482 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
6484         * locale/programs/ld-collate.c (atwc): New variable.
6485         (add_to_tablewc): New toplevel function, moved from collate_output.
6486         (collate_output): Remove add_to_tablewc nested function.
6488         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
6489         (name_insert): New function.
6490         (write_output): Remove hash_table and hash_size vars and name_insert
6491         nested function.
6493 2007-07-24  Roland McGrath  <roland@redhat.com>
6495         * Makerules (install-others-programs-nosubdir): New target.
6496         (install-no-libc.a-nosubdir): Depend on it.
6498         * iconv/Makefile (install-others-programs): Set this instead of
6499         install-others.
6500         * login/Makefile (install-others-programs): Likewise.
6501         * posix/Makefile (install-others-programs): Likewise.
6503         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
6504         dependencies.
6506 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
6508         * io/Makefile (tests): Add tst-posix_fallocate.
6509         * io/tst-posix_fallocate.c: New file.
6511         * sysdeps/unix/sysv/linux/kernel-features.h: Define
6512         __ASSUME_FALLOCATE.
6514 2007-07-22  Roland McGrath  <roland@frob.com>
6516         * hurd/getdport.c: Add missing copyright year update.
6518         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
6519         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
6521 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
6523         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
6525         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
6526         O_CLOEXEC is needed.
6527         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
6528         Avoid additional fcntl to set O_CLOEXEC if not needed.
6529         * nis/nss_compat/compat-initgroups.c: Likewise.
6530         * nis/nss_compat/compat-pwd.c: Likewise.
6531         * nis/nss_compat/compat-spwd.c: Likewise.
6533 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6535         [BZ #3665]
6536         * manual/errno.texi: Change ECANCELED value to 119.
6538         [BZ #4610]
6539         * mach/lock-intern.h: Include <sys/cdefs.h>.
6541         [BZ #4178]
6542         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
6543         reading A.
6545         [BZ #4126]
6546         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
6547         to __sigsuspend.
6549         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
6551 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
6553         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
6554         `__ASSEMBLER__'.
6555         * sysdeps/mach/hurd/i386/tls.h: Likewise.
6557 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
6559         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
6560         descriptor received from nscd.
6562         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
6564         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
6565         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6566         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6567         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6568         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6569         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6571 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
6573         [BZ #4816]
6574         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
6576         [BZ #4813]
6577         * login/forkpty.c (forkpty): Close master and slave fds on
6578         fork failure.  Patch by
6579         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
6581 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
6583         * include/features.h (__USE_ISOC95): New define.
6584         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
6585         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
6586         for -std=iso9899:199409.
6587         * CONFORMANCE: Remove comments about unsupported AMD1.
6589 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
6591         * sysdeps/ia64/sched_cpucount.c: New file.
6592         * sysdeps/powerpc/sched_cpucount.c: New file.
6594         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
6595         __BEGIN_DECLS/__END_DECLS around the prototype.
6596         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
6597         pointer to const cpu_set_t.
6599         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
6600         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
6601         __need_size_t and include stddef.h.
6602         * sysvipc/sys/msg.h: Likewise.
6603         * posix/sched.h: Likewise.
6604         * hurd/hurd/signal.h (__need_size_t): Define.
6606         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
6607         neither does signal.h in pedantic ISO C namespaces.  stdio.h
6608         no longer defines wint_t or wchar_t.
6610         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
6611         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
6612         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
6613         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
6614         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
6615         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
6616         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
6617         * debug/printf_chk.c (__printf_chk): Likewise.
6618         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
6619         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
6621         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
6622         Define.
6624         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
6625         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
6627 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
6629         [BZ #4792]
6630         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
6631         * malloc/malloc.h (realloc): Likewise.
6633         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
6634         if one of proc_file_chain streams has that fileno.
6635         * stdio-common/Makefile (tests): Add tst-popen2.
6636         * stdio-common/tst-popen2.c: New test.
6638 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
6640         * elf/ldconfig.c: Allow GPLv2 or any later version.
6641         * elf/readlib.c: Likewise.
6642         * elf/chroot_canon.c: Likewise.
6643         * elf/cache.c: Likewise.
6644         * nscd/mem.c: Likewise.
6645         * nscd/getpwuid_r.c: Likewise.
6646         * nscd/grpcache.c: Likewise.
6647         * nscd/aicache.c: Likewise.
6648         * nscd/getsrvbynm_r.c: Likewise.
6649         * nscd/nscd.c: Likewise.
6650         * nscd/servicescache.c: Likewise.
6651         * nscd/getsrvbypt_r.c: Likewise.
6652         * nscd/initgrcache.c: Likewise.
6653         * nscd/gethstbyad_r.c: Likewise.
6654         * nscd/gethstbynm2_r.c: Likewise.
6655         * nscd/getgrnam_r.c: Likewise.
6656         * nscd/nscd_setup_thread.c: Likewise.
6657         * nscd/getpwnam_r.c: Likewise.
6658         * nscd/gai.c: Likewise.
6659         * nscd/connections.c: Likewise.
6660         * nscd/dbg_log.c: Likewise.
6661         * nscd/cache.c: Likewise.
6662         * nscd/hstcache.c: Likewise.
6663         * nscd/nscd_conf.c: Likewise.
6664         * nscd/getgrgid_r.c: Likewise.
6665         * nscd/pwdcache.c: Likewise.
6666         * catgets/gencat.c: Likewise.
6667         * locale/programs/linereader.h: Likewise.
6668         * locale/programs/locarchive.c: Likewise.
6669         * locale/programs/ld-paper.c: Likewise.
6670         * locale/programs/locfile-kw.h: Likewise.
6671         * locale/programs/ld-address.c: Likewise.
6672         * locale/programs/xmalloc.c: Likewise.
6673         * locale/programs/ld-time.c: Likewise.
6674         * locale/programs/localedef.c: Likewise.
6675         * locale/programs/simple-hash.c: Likewise.
6676         * locale/programs/xstrdup.c: Likewise.
6677         * locale/programs/ld-numeric.c: Likewise.
6678         * locale/programs/locfile-kw.gperf: Likewise.
6679         * locale/programs/ld-collate.c: Likewise.
6680         * locale/programs/charmap-kw.gperf: Likewise.
6681         * locale/programs/charmap.h: Likewise.
6682         * locale/programs/charmap-kw.h: Likewise.
6683         * locale/programs/config.h: Likewise.
6684         * locale/programs/locfile.c: Likewise.
6685         * locale/programs/ld-ctype.c: Likewise.
6686         * locale/programs/charmap.c: Likewise.
6687         * locale/programs/ld-messages.c: Likewise.
6688         * locale/programs/repertoire.h: Likewise.
6689         * locale/programs/locale.c: Likewise.
6690         * locale/programs/ld-name.c: Likewise.
6691         * locale/programs/linereader.c: Likewise.
6692         * locale/programs/locfile.h: Likewise.
6693         * locale/programs/3level.h: Likewise.
6694         * locale/programs/ld-monetary.c: Likewise.
6695         * locale/programs/ld-measurement.c: Likewise.
6696         * locale/programs/charmap-dir.c: Likewise.
6697         * locale/programs/ld-identification.c: Likewise.
6698         * locale/programs/localedef.h: Likewise.
6699         * locale/programs/charmap-dir.h: Likewise.
6700         * locale/programs/repertoire.c: Likewise.
6701         * locale/programs/simple-hash.h: Likewise.
6702         * locale/programs/ld-telephone.c: Likewise.
6703         * locale/programs/locale-spec.c: Likewise.
6704         * locale/programs/locfile-token.h: Likewise.
6705         * posix/getconf.c: Likewise.
6706         * iconv/dummy-repertoire.c: Likewise.
6707         * iconv/iconv_charmap.c: Likewise.
6708         * iconv/iconvconfig.c: Likewise.
6709         * iconv/iconv_prog.c: Likewise.
6710         * malloc/memusagestat.c: Likewise.
6711         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
6713 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6715         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
6716         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
6717         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
6718         check for the first argument.
6720 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
6722         [BZ #4775]
6723         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
6724         (__tgmath_real_type): Fix if expr is const int or other const
6725         qualified integral type.
6726         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
6727         expressions and handle const qualified arguments.
6728         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
6729         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
6730         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
6731         statement expressions.
6732         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
6733         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
6734         (__TGMATH_UNARY_IMAG): Define.
6735         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
6736         * math/Makefile (tests): Add test-tgmath2.
6737         (CFLAGS-test-tgmath2.c): Add.
6738         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
6739         count_cfloat, count_cldouble): New variables.
6740         (NCCALLS): Define.
6741         (main): Check number of complex calls as well.
6742         (F(compile_test)): Add complex tests and tests with const qualified
6743         arguments.
6744         (y, z, ccount): Define.
6745         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
6746         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
6747         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
6748         F(cproj)): New functions.
6749         * math/test-tgmath2.c: New test.
6751 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
6753         [BZ #4776]
6754         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
6755         RPATH etc. as "/" rather than "", don't segfault on empty paths,
6756         instead output ".".
6757         * dlfcn/Makefile (distribute): Add glreflib3.c.
6758         (module-names): Add glreflib3.
6759         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
6760         glreflib1.so.
6761         (LDFLAGS_glreflib3.so): New.
6762         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
6763         glreflib1.so.
6764         * dlfcn/glreflib3.c: New file.
6766         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
6767         returned -1, return NULL.
6768         * intl/explodename.c (_nl_explode_name): Return -1 if
6769         _nl_normalize_codeset failed.
6771 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
6773         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
6774         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
6775         and avoid branch misspredicts for > 31 bytes memset case.
6776         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
6777         Remove toc ref to __cache_line_size.
6779         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
6780         to get ISA-V2.0 branch hints.
6781         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
6782         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
6783         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
6784         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
6785         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
6786         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
6787         Remove toc ref to __cache_line_size.
6789         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
6790         Include math_ldbl_opt.h.
6792 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
6794         [BZ #4773]
6795         * time/strptime_l.c (__strptime_internal): Implement greedy
6796         matching of weekday and month names.
6798 2007-07-09  Roland McGrath  <roland@redhat.com>
6800         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
6801         (ELF_NOTE_ABI): Use it.
6802         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
6804 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
6806         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
6807         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
6809 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
6811         [BZ #4745]
6812         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
6813         in loop to look for conversion specifier to avoid testing of
6814         wrong errno value.
6815         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
6816         * stdio-common/bug18.c: New file.
6817         * stdio-common/bug18a.c: New file.
6818         * stdio-common/bug19.c: New file.
6819         * stdio-common/bug19a.c: New file.
6821 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
6823         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
6824         running awk script.
6826 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
6828         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
6829         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
6830         Return NULL if mmap failed instead of asserting it does not.
6831         (calloc): Check for integer overflow.
6833         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
6834         than LONG_MAX / 10.
6836 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
6838         [BZ #4702]
6839         * nis/nss-default.c: Include errno.h.
6840         (init): Preserve errno.
6842 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
6844         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
6846 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
6848         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
6850 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6852         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
6854 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6856         * sysdeps/s390/dl-procinfo.c: New file.
6857         * sysdeps/s390/dl-procinfo.h: New file.
6858         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
6860 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
6862         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
6863         in PT_NOTE segments with multiple notes.
6864         * elf/readelflib.c (process_elf_file): Likewise.
6866 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
6868         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
6869         ISO C compliant.
6871 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
6873         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
6875 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
6877         * include/link.h: Don't include rtld-lowlevel.h.
6878         (struct link_map): Remove l_scope_lock.
6879         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
6880         (_dl_scope_free_list): New field (variable) in _rtld_global.
6881         (DL_LOOKUP_SCOPE_LOCK): Remove.
6882         (_dl_scope_free): New prototype.
6883         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
6884         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
6885         (_dl_profile_fixup): Likewise.
6886         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
6887         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
6888         THREAD_GSCOPE_RESET_FLAG around it.
6889         * elf/dl-close.c (_dl_close_worker): Don't use
6890         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
6891         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
6892         scopes were queued or if l_scope_mem has been abandoned.
6893         * elf/dl-open.c (_dl_scope_free): New function.
6894         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
6895         * elf/dl-support.c (_dl_scope_free_list): New variable.
6896         * elf/dl-lookup.c (add_dependency): Remove flags argument.
6897         Remove DL_LOOKUP_SCOPE_LOCK handling.
6898         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
6899         handling.
6900         * elf/dl-object.c (_dl_new_object): Don't use
6901         __rtld_mrlock_initialize.
6903 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
6905         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
6906         to fill in holes
6907         (rtld_global_ro): Likewise.
6909 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
6911         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
6912         Move PT_LOAD checking to...
6913         (_dl_addr_inside_object): ... here, new function.
6914         * elf/dl-sym.c (do_sym): If not l_contiguous,
6915         call _dl_addr_inside_object.
6916         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
6917         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
6918         * elf/dl-open.c (dl_open_worker): Likewise.
6919         (_dl_addr_inside_object): New function if IS_IN_rtld.
6920         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
6921         holes are present or are PROT_NONE protected.
6922         * include/link.h (struct link_map): Add l_contiguous field.
6923         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
6925 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
6926             Tomas Janousek  <tjanouse@redhat.com>
6927             Ulrich Drepper  <drepper@redhat.com>
6929         [BZ #4647]
6930         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
6931         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
6932         socket.
6933         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
6934         unused member a bitmap.
6935         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
6936         servers are configured.
6938 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
6940         * elf/rtld.c (dl_main): Don't call init_tls more than once.
6942 2007-06-17  Andreas Schwab  <schwab@suse.de>
6944         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
6946 2007-06-16  Andreas Jaeger  <aj@suse.de>
6948         [BZ #4125]
6949         * sysdeps/unix/sysv/linux/sys/ptrace.h
6950         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
6951         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
6952         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
6953         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
6954         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
6955         Define.
6956         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
6957         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
6958         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
6959         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
6961 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
6963         [BZ #4599]
6964         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
6965         determining whether there are IPv4/IPv6 addresses, ignore loopback
6966         addresses.
6968 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
6970         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
6971         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
6972         as the return type.  Change type of "r" variable to CMPtype.
6973         * soft-fp/eqsf2.c (__eqsf2): Likewise.
6974         * soft-fp/eqtf2.c (__eqtf2): Likewise.
6975         * soft-fp/gedf2.c (__gedf2): Likewise.
6976         * soft-fp/gesf2.c (__gesf2): Likewise.
6977         * soft-fp/getf2.c (__getf2): Likewise.
6978         * soft-fp/ledf2.c (__ledf2): Likewise.
6979         * soft-fp/lesf2.c (__lesf2): Likewise.
6980         * soft-fp/letf2.c (__letf2): Likewise.
6981         * soft-fp/unorddf2 (__unorddf2): Likewise.
6982         * soft-fp/unordsf2 (__unordsf2): Likewise.
6983         * soft-fp/unordtf2 (__unordtf2): Likewise.
6985 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
6987         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
6988         make sure gcc doesn't mess around with this.
6990 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
6992         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
6994 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
6996         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
6997         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
6998         at most once per _dl_close_worker.
7000 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
7002         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
7003         __sched_cpucount as const.
7004         * posix/sched_cpucount.c: Adjust.
7006         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
7007         instruction for counting bits.
7008         * sysdeps/x86_64/sched_cpucount.c: New file.
7010 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
7012         * configure.in: Avoid variable named BASH.
7013         * config.make.in: Likewise.
7014         Patch in part by Mike Frysinger.
7016 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
7018         [BZ #4586]
7019         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
7020         pseudo-zeros as zero.
7021         * sysdeps/x86_64/ldbl2mpn.c: New file.
7022         * sysdeps/ia64/ldbl2mpn.c: New file.
7024 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
7026         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
7027         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
7028         Remove unreachable code at the end.
7030 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
7032         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
7033         ldbl-128ibm in comment.
7034         (fpclassifyl): Correct classification of denormals.
7035         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
7036         return value for MIN denormal. Rewrite using long double math too
7037         correctly handle denormals and canonicalize the results.
7039 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
7041         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
7042         (__mpn_construct_long_double): Fix conversion where result ought
7043         to be smaller than __LDBL_MIN__, or the low double should be
7044         denormal.  Fix decision where to negate low double - honor round
7045         to even rules.
7046         * stdio-common/tst-sprintf2.c: Include string.h.
7047         (COMPARE_LDBL): Define.
7048         (TEST): Also test whether a string hexadecimal float representation
7049         can be parsed back to the number.
7050         (main): Add a couple of further tests.
7052 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
7054         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
7055         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
7056         is non-zero, but smaller than 2 * __DBL_MIN__.
7057         * stdio-common/tst-sprintf2.c: New test.
7058         * stdio-common/Makefile (tests): Add tst-sprintf2.
7060         * math/test-misc.c (main): Don't run last batch of tests with
7061         IBM long double format.
7063 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
7065         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
7066         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
7067         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
7068         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
7069         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7070         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
7071         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
7072         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
7073         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
7074         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7075         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
7076         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
7077         New file.
7078         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
7079         New file.
7080         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
7081         New file.
7082         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
7083         New file.
7084         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
7085         New file.
7086         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
7087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
7088         New file.
7089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
7090         New file.
7091         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
7092         New file.
7093         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
7094         New file.
7095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
7096         New file.
7098 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
7100         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
7101         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
7102         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
7103         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
7104         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
7105         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
7106         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
7107         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
7109 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
7111         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
7112         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7113         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
7114         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7115         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
7116         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7117         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
7118         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
7120 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
7122         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
7123         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
7124         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
7125         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
7127 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
7129         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
7130         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
7132 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
7134         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
7135         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
7136         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
7137         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
7139 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
7141         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
7142         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
7144 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
7146         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
7147         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
7149         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
7150         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
7151         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
7152         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
7154 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
7156         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
7157         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
7158         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
7159         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
7161 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
7163         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
7164         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
7165         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
7166         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
7167         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
7168         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
7170 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
7172         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
7173         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
7174         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
7175         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
7177 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
7179         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
7180         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
7181         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
7182         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
7183         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
7184         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
7185         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
7186         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
7187         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
7188         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
7189         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
7190         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
7191         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
7192         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
7193         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
7194         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
7196 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
7198         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
7199         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
7201 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
7203         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
7204         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
7206 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
7208         * sysdeps/powerpc/powerpc32/970/Implies: New file.
7209         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
7210         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
7211         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
7212         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
7213         * sysdeps/powerpc/powerpc64/970/Implies: New file.
7214         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
7215         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
7216         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
7217         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
7219 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
7221         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
7223 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
7225         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
7226         branch miss-predicts. Ensure that cache line crossing does not impact
7227         dispatch grouping.
7229 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
7231         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
7232         "../../powerpc32/power4/memcopy.h".
7233         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
7234         "../../powerpc32/power4/wordcopy.c".
7236 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
7238         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
7239         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
7240         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
7241         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
7242         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
7243         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
7245 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
7247         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
7249 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
7251         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
7252         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
7253         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
7254         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
7255         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
7256         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
7257         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
7258         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
7260 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
7262         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
7264 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
7266         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
7267         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
7268         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
7269         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
7270         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
7271         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
7272         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
7274 2007-05-29  Roland McGrath  <roland@redhat.com>
7276         * po/Makefile (po-sed-cmd): New variable.
7277         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
7279 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
7281         * crypt/md5-crypt.c: Fix comment.
7283         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
7284         of crashing.  When this is the case or if the reply is malformed,
7285         don't try to close the new file descriptor since it does not
7286         exist.
7287         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
7289 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
7291         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
7292         if __NR_utimensat is not defined.
7294 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
7296         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
7298 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
7300         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
7301         (open): Fix comment typos.  Don't call __open_2 if flags
7302         is a compile time constant without O_CREAT.
7303         (__open64_2): Add nonnull attribute.
7304         (open64): Fix comment typos.  Don't call __open64_2 if flags
7305         is a compile time constant without O_CREAT.
7306         (__openat_2): Add nonnull attribute, fix nonnull attribute
7307         on redirect.
7308         (openat): Fix comment typos.  Don't call __openat_2 if flags
7309         is a compile time constant without O_CREAT.
7310         (__openat64_2): Add nonnull attribute, fix nonnull attribute
7311         on redirect.
7312         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
7313         is a compile time constant without O_CREAT.
7315 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
7317         * Makerules (sysd-rules): Define PTW for ptw-* files.
7318         * Versions: Define GLIBC_2.7 for libc.
7319         * include/stdio.h: Declare __fortify_fail.
7320         * debug/fortify_fail.c: New file.
7321         * debug/Makefile (routines): Add fortify_fail.
7322         * debug/chk_fail.c: Use __fortify_fail.
7323         * debug/stack_chk_fail.c: Likewise.
7324         * io/Versions: Export __open_2, __open64_2, __openat_2, and
7325         __openat64_2 for GLIBC_2.7.
7326         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
7327         * io/open.c: Define *_2 variant of function which checks for O_CREAT
7328         and fails if necessary.
7329         * io/open64.c: Likewise.
7330         * io/openat.c: Likewise.
7331         * io/openat64.c: Likewise.
7332         * sysdeps/unix/sysv/linux/open64.c: Likewise.
7333         * sysdeps/unix/sysv/linux/openat.c: Likewise.
7334         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
7335         * io/bits/fcntl2.h: New file.
7336         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
7337         __openat64_2.
7338         * include/bits/fcntl2.h: New file.
7339         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7340         Add open_2.
7341         * sysdeps/unix/sysv/linux/open_2.c: New file.
7343 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
7345         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
7346         as second parameter to handle_intel.
7348         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
7349         the entry.
7351         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
7352         handling to ...
7353         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
7354         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
7355         cacheinfo.
7356         * sysdeps/x86_64/memcpy.S: Complete rewrite.
7357         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
7358         Patch by Evandro Menezes <evandro.menezes@amd.com>.
7360         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
7362 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
7364         [BZ #4525]
7365         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
7366         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
7367         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
7369         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
7371         [BZ #4514]
7372         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
7373         reinitialize workend at the start of each do_positional format spec
7374         loop, free workstart before do_positional loops.
7375         (printf_unknown): Fix size of work_buffer.
7376         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
7378         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
7379         (public_sET_STATe): If ms->version < 3, put all chunks into
7380         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
7381         chunks.
7383         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
7384         * malloc/hooks.c: Likewise.
7385         * malloc/arena.c: Likewise.
7386         * malloc/malloc.c (do_check_malloc_state): Don't assert
7387         n_mmaps is not greater than n_mmaps_max.  This removes the need
7388         for the previous change.
7390         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
7391         2007-05-07 commit.
7393 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
7395         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
7396         Define for kernel >= 2.6.22.
7398 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
7400         * elf/dl-close.c (_dl_close_worker): When removing object from
7401         global scope, wait for all lookups to finish afterwards.
7402         * elf/dl-open.c (add_to_global): When global scope array must
7403         grow, allocate a new one and free old array only after all
7404         lookups finish.
7405         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
7406         (_dl_lookup_symbol_x): Likewise.
7407         * elf/dl-support.c: Define _dl_wait_lookup_done.
7408         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
7409         _dl_wait_lookup_done.
7411         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
7412         not overlapping with arena.
7414         * malloc/mcheck.c (reallochook): If size==0, free the block.
7416         * rt/tst-shm.c: Use fstat64 instead of fstat.
7418         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
7419         __NR_sync_file_range is not defined.
7421 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
7423         Dummy files to prevent stub versions from being used.
7424         * sysdeps/x86_64/fpu/k_cosl.c: New file.
7425         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
7426         * sysdeps/x86_64/fpu/k_sinl.c: New file.
7427         * sysdeps/x86_64/fpu/k_tanl.c: New file.
7429         * version.h (VERSION): Set to 2.6.90.
7431 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
7433         * version.h (VERSION): Define to 2.6.
7434         * include/features.h (__GLIBC_MINOR__): Define to 6.
7436         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
7438         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
7439         sizes.
7441 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
7443         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
7444         number of mmaps.  n_mmaps_max is the target.
7445         * malloc/hooks.c: Likewise.
7446         * malloc/arena.c: Likewise.
7448 2007-05-12  Andreas Jaeger  <aj@suse.de>
7450         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
7451         getpid.
7453 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
7455         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
7456         adding new variables.
7458         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
7459         optimize.  Completely extend global scope array before making the
7460         new entries visible.
7462 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
7464         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
7465         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
7466         tst-getcpu.
7468         * include/link.h: Move l_version and l_nversion members around to
7469         fill gaps.
7471         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
7473         * sysdeps/unix/sysv/linux/sched_setaffinity.c
7474         (__sched_setaffinity_new): If syscall was successful and
7475         RESET_VGETCPU_CACHE is defined, use it before returning.
7476         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
7478         * io/sys/stat.h: Make sure struct timespec is defined for
7479         __USE_ATFILE.
7481         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
7482         UTIME_OMIT.
7483         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
7484         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
7485         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
7486         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
7487         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
7488         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
7489         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
7490         * io/sys/stat.h: Declare utimensat, futimens.
7491         * io/utimensat.c: New file.
7492         * io/futimens.c: New file.
7493         * sysdeps/unix/sysv/linux/utimensat.c: New file.
7494         * sysdeps/unix/sysv/linux/futimens.c: New file.
7495         * io/Makefile (routines): Add utimensat, futimens.
7496         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
7497         * sysdeps/unix/sysv/linux/lutimes.c: New file.
7498         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
7499         available.
7501         * include/sys/cdefs.h: Redefine __nonnull so that test for
7502         incorrect parameters in the libc code itself are not omitted.
7504 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
7506         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
7507         exception in addition to inexact when asked to raise only FE_INEXACT.
7509         [BZ #3427]
7510         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
7511         in *envp.
7513 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
7515         [BZ #4403]
7516         * string/strfry.c (strfry): Make result more random.
7518 2007-05-07  Richard Henderson  <rth@redhat.com>
7520         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
7521         if __NO_LONG_DOUBLE_MATH.
7522         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
7523         available in the compiler, add .arch directive to the assembly.
7525 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
7527         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
7528         compat_symbol to GLIBC_2_1.
7529         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
7530         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
7531         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
7532         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
7533         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
7534         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
7535         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
7536         libc, not libm.
7537         (__isnanl): New compat_symbol.
7539 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
7540             Jakub Jelinek  <jakub@redhat.com>
7542         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
7543         (new_heap): Initialize mprotect_size.
7544         (grow_heap): When growing, only mprotect from mprotect_size till
7545         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
7546         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
7548 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
7549             Peter Bergner  <bergner@us.ibm.com>
7551         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
7552         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
7553         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
7554         * sysdeps/powerpc/fpu/fe_mask.c: New file.
7555         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
7556         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
7557         Call __fe_mask_env() if all FP exceptions disabled.
7558         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
7559         from old FPSCR to new fenv to propagate DFP rounding modes.
7560         Call __fe_mask_env() if FP exceptions previously enabled.
7561         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
7562         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
7563         transitioning from all exceptions disabled to any exception enabled
7564         or visa versa.
7565         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
7566         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
7567         when transitioning from all exceptions disabled to any exception
7568         enabled or visa versa.
7569         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
7570         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
7571         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
7572         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
7573         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
7574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
7576 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
7578         [BZ #4465]
7579         * posix/unistd.h: Remove __THROW from fdatasync.
7581 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
7583         [BZ #4465]
7584         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
7586 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
7588         * stdio-common/vfprintf.c (process_string_arg): Optimize
7589         ridiculous precision in wide char code printing multi-byte string.
7590         Reported by Jim Meyering <jim@meyering.net>.
7592         [BZ #4131]
7593         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
7594         boundaries to work around systems with overlapping binary loading.
7595         Based on a patch by Suzuki <suzuki@in.ibm.com>.
7597 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
7599         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
7600         __mbsnrtowcs after last change.
7602         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
7603         (get_ident): Likewise.
7605 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
7607         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
7608         with setting the sticky bit.
7609         * math/test-misc.c (main): Add more truncation tests.
7611 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
7613         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
7614         double in the function declaration.
7615         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
7616         double in the function declaration.
7617         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7618         float in the function declaration.
7619         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
7620         float in the function declaration.
7622         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
7623         denormal operands.  Do not generate FP_EX_DENORM exception.
7624         (FP_UNPACK_RAW_EP): Ditto.
7625         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
7626         undefined _FP_UNPACK_RAW_E.
7627         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
7628         undefined _FP_UNPACK_RAW_EP.
7629         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
7630         undefined _FP_PACK_RAW_E.
7631         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
7632         undefined _FP_PACK_RAW_EP.
7634         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
7635         _FP_FRAC_COPY_2.
7636         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
7637         _FP_FRAC_COPY_4.
7639 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
7640             Jakub Jelinek  <jakub@redhat.com>
7642         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
7643         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
7644         this case.
7645         * soft-fp/op-common.h (FP_TRUNC): Ditto.
7647 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
7649         * math/test-misc.c (main): Add tests for rounding long double
7650         values close to smallest double denormalized value to double.
7652 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
7654         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
7655         condition for truncating to 0.  Set sticky bit for such
7656         truncation.
7658 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
7660         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
7661         fixed length array for ignore.
7663 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
7665         [BZ #4438]
7666         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
7667         stack for large precisions.
7668         * stdio-common/test-vfprintf.c (main): Add test for large
7669         precision.
7671 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
7673         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
7674         for exponent 0.
7675         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
7677         [BZ #4439]
7678         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
7679         account in the size check.
7680         * resolv/tst-inet_ntop.c: New test.
7681         * resolv/Makefile (tests): Add tst-inet_ntop.
7683 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
7684             Jakub Jelinek  <jakub@redhat.com>
7686         [BZ #4349]
7687         * malloc/malloc.c: Keep separate list for first blocks on the bin
7688         lists with a given size.  This helps skipping over list elements
7689         we know won't fit in two places.
7690         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
7692 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
7694         [BZ #4102]
7695         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
7696         label to Teredo tunnel addresses 2001://32.
7698 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
7700         * locale/programs/ld-collate.c (collate_read): Allow order_start
7701         after copy.
7703         * locale/programs/ld-collate.c (collate_read): Fix printing of
7704         error message.
7706         [BZ #3213]
7707         * locale/C-translit.h.in: Add entry for U2044.
7709         [BZ #4342]
7710         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
7711         hexa-decimal floats without exponent.
7712         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
7714 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
7716         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
7717         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
7718         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
7719         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
7720         GLIBC_2.6.
7721         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
7722         Add sched_getcpu.
7724 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
7726         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
7727         of 0 after the out_fail label.
7729 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
7731         [BZ #4406]
7732         * iconv/gconv_charset.h (strip): Allow ':'.
7733         * iconv/iconv_open.c (iconv_open): Adjust comment.
7735 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
7737         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
7738         version.
7740 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
7742         [BZ #4381]
7743         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
7744         alignment of buffer and tmp_buffer.
7745         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
7746         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
7747         alignment of buffer.
7748         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
7749         bigger than INT_MAX.
7750         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
7751         h_errnop arguments.  Fail if buflen is too small.
7752         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
7754 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
7756         [BZ #4405]
7757         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
7758         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
7760 2007-04-22  Roland McGrath  <roland@redhat.com>
7762         * elf/elf.h (NT_PRXFPREG): New macro.
7764 2007-04-19  Andreas Jaeger  <aj@suse.de>
7766         [BZ #3905]
7767         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
7768         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
7769         Added.
7771 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
7773         * include/sys/mman.h: Mark madvise hidden.
7774         * misc/madvise.c: Add libc_hidden_def.
7776 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
7778         * nis/nis_domain_of.c (__nis_domain_of): New function.
7779         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
7780         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
7781         * nis/nis_call.c (rec_dirsearch): Likewise.
7782         (first_shoot): Likewise.  Remove search_parent_first argument.
7783         (struct nis_server_cache): Rename search_parent_first field
7784         to search_parent.
7785         (nis_server_cache_search, nis_server_cache_add): Rename
7786         search_parent_first argument to search_parent.
7787         (__nisfind_server): Likewise.  If search_parent, call
7788         __nis_domain_of.
7790 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
7792         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
7794 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
7796         [BZ #4368]
7797         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
7799 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
7801         [BZ #4364]
7802         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
7804 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
7806         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
7807         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
7808         current number of locales in SUPPORTED.
7809         (create_archive): Initialize serial.
7810         (enlarge_archive): Preserve aliases rather than duplicating
7811         their locrecs.
7813 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
7815         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
7816         after _IO_un_link, not before it.
7818         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
7819         special case handling when wcp == wstartp + 1.  Fix a comment typo.
7820         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
7822 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
7824         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
7825         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
7826         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
7827         Remove __THROW.
7828         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
7829         _IO_file_xsgetn_maybe_mmap): Likewise.
7830         * libio/oldfileops.c (old_do_write): Likewise.
7831         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
7832         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
7833         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
7834         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
7835         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
7836         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
7837         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
7838         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
7839         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
7840         _IO_file_underflow, _IO_file_underflow_mmap,
7841         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
7842         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
7843         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
7844         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
7845         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
7846         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
7847         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
7848         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
7849         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
7850         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
7851         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
7852         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
7853         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
7854         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
7855         _IO_adjust_column_internal, _IO_default_uflow_internal,
7856         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
7857         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
7858         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
7859         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
7860         _IO_file_close_it_internal, _IO_file_underflow_internal,
7861         _IO_file_overflow_internal, _IO_file_attach_internal,
7862         _IO_file_fopen_internal, _IO_file_sync_internal,
7863         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
7864         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
7865         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
7866         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
7867         _IO_seekpos_unlocked): Likewise.
7868         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
7869         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
7871 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
7873         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
7874         argument in xmalloc size computation.
7876 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
7878         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
7879         math_opt_barrier and math_force_eval macros.
7881 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
7883         [BZ #3306]
7884         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
7885         * sysdeps/i386/fpu/math_private.h: New file.
7886         * sysdeps/x86_64/fpu/math_private.h: New file.
7887         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
7888         math_force_eval macros.  Use "+m" constraint on asm rather than
7889         "=m" and "m".
7890         * math/s_nextafter.c (__nextafter): Likewise.
7891         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
7892         Likewise.
7893         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
7894         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
7895         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
7896         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
7897         math_opt_barrier and math_force_eval macros.
7898         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
7899         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
7900         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
7901         (__nexttoward): Use math_opt_barrier and
7902         math_force_eval macros.  Use "+m" constraint on asm rather than
7903         "=m" and "m".  Only use asm to force double result if
7904         FLT_EVAL_METHOD is 2.
7905         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
7906         (__nexttowardf): Use math_opt_barrier and
7907         math_force_eval macros.  Use "+m" constraint on asm rather than
7908         "=m" and "m".  Only use asm to force double result if
7909         FLT_EVAL_METHOD is not 0.
7910         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
7911         (__nexttowardf): Use math_opt_barrier and
7912         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
7913         x to float using asm.
7914         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
7915         (__nldbl_nexttowardf): Use math_opt_barrier and
7916         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
7917         x to float using asm.
7918         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
7919         (__nexttowardf): Use math_opt_barrier and math_force_eval
7920         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
7921         * math/bug-nextafter.c (zero, inf): New variables.
7922         (main): Add new tests.
7923         * math/bug-nexttoward.c (zero, inf): New variables.
7924         (main): Add new tests.
7926 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
7928         [BZ #3427]
7929         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
7930         exceptions both in SW and MXCSR.
7931         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
7932         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
7933         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
7934         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
7935         in MXCSR if SSE is available.
7936         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
7937         and ldsodefs.h.
7938         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
7939         Fix comment typo.
7940         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
7941         Return 0 rather than 1.
7942         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
7943         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
7944         * math/test-fenv.c (feholdexcept_tests): New function.
7945         (main): Call it.
7947 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
7949         [BZ #3427]
7950         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
7951         in SW.
7953 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
7955         [BZ #4344]
7956         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
7957         Reported by David Anderson <davea42@earthlink.net>.
7959 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
7961         * posix/sys/wait.h: Remove unnecessary forward declaration.
7963 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
7965         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
7966         with obj->do_servers after first_shoot.
7968 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
7970         * posix/Makefile (routines): Add sched_cpucount.
7971         (tests): Add tst-cpucount.
7972         * posix/sched_cpucount.c: New file.
7973         * posix/tst-cpucount.c: New file.
7974         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
7975         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
7976         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
7977         * posix/sched.h: Define CPU_COUNT.
7979 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
7981         * posix/fnmatch.c (STRUCT): Define.
7982         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
7983         * posix/fnmatch_loop.c (struct STRUCT): New type.
7984         (FCT): Add ends argument.  If ends != NULL and normal * is
7985         seen in the pattern, store current pattern and string pointers
7986         and return.  Adjust recursive calls.
7987         (EXT): Adjust FCT callers.
7988         (STRUCT): Undef at the end of the file.
7989         * posix/Makefile (tests): Add tst-fnmatch2.
7990         * posix/tst-fnmatch2.c: New test.
7992 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
7994         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
7995         and 1 on failure.
7997         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
7998         Change last argument to unsigned int.
8000 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
8002         * scripts/check-local-headers.sh: Filter out sys/capability.h.
8004 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
8006         * config.h.in (HAVE_LIBCAP): Add.
8007         * nscd/selinux.h: Include sys/capability.h rather than non-existent
8008         sys/capabilities.h.
8009         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
8010         free_caps.  Cast away const from 4th cap_set_flag argument.
8012 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
8014         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
8015         GLIBC_2.6.
8016         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
8017         Add sync_file_range.
8018         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
8020 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
8022         * sysdeps/powerpc/bits/atomic.h
8023         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
8024         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
8025         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8026         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
8027         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8028         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
8029         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
8030         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8031         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8032         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8033         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
8034         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
8035         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
8036         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
8037         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8038         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
8039         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8040         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
8041         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
8042         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
8044 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
8046         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
8047         (__cache_line_size): Define the variable here.  Add
8048         attribute_hidden, remove weak_extern.
8049         (__libc_start_main): Set __cache_line_size
8050         unconditionally.
8051         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
8052         (__cache_line_size): Define the variable here.  Add
8053         attribute_hidden, remove weak_extern.
8054         (DL_PLATFORM_AUXV): Set __cache_line_size
8055         unconditionally.
8056         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
8057         weak_extern, add attribute_hidden.
8058         (__elf_machine_runtime_setup): Assume __cache_line_size is always
8059         defined in ld.so.
8060         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
8061         definition.
8062         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
8064 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
8066         [BZ #4276]
8067         * timezone/africa: Update from tzdata2007d.
8068         * timezone/asia: Likewise.
8069         * timezone/australasia: Likewise.
8070         * timezone/backward: Likewise.
8071         * timezone/europe: Likewise.
8072         * timezone/iso3166.tab: Likewise.
8073         * timezone/leapseconds: Likewise.
8074         * timezone/northamerica: Likewise.
8075         * timezone/southamerica: Likewise.
8076         * timezone/zone.tab: Likewise.
8078         * timezone/private.h: Update from tzcode2007d.
8079         * timezone/zdump.c: Likewise.
8080         * timezone/zic.c: Likewise.
8082 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
8084         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
8085         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
8086         variables.
8087         (nis_server_cache_search, nis_server_cache_add): New functions.
8088         (__nisfind_server): Use them.  Add dbp and flags argument, if
8089         call __nisbind_create.
8090         (__nisbind_create): Add server_used and current_ep arguments,
8091         only call __nis_findfastest if server_used is ~0.
8092         (__do_niscall2, __prepare_niscall): Adjust callers.
8093         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
8094         ckey_cache_euid, ckey_cache_lock): New variables.
8095         (get_ckey): New function.
8096         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
8097         __pmap_getnisport.  Save __pmap_getnisport result in
8098         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
8099         key.
8100         * nis/nis_lookup.c (nis_lookup): Likewise.
8101         * nis/nis_table.c (nis_list): Likewise.
8102         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
8103         prototypes.
8105         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
8106         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
8107         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
8108         _nss_nisplus_getservbyport_r): Likewise.
8109         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
8110         _nss_nisplus_getnetbyaddr_r): Likewise.
8111         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
8112         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
8113         _nss_nisplus_getntohost_r): Likewise.
8114         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
8115         _nss_nisplus_getrpcbynumber_r): Likewise.
8117 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
8119         * configure.in (libc_cv_gnu89_inline): Only do compile test.
8120         * configure: Rebuilt.
8122         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
8123         bit-fields.
8124         * soft-fp/extended.h (_FP_UNION_E): Likewise.
8126 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
8128         [BZ #2831]
8129         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
8130         bit-fields.
8132 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
8134         * nscd/gai.c: Include alloca.h.
8135         (__libc_use_alloca): Define.
8137 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
8139         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
8140         smaller scopes.
8141         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
8142         (DL_DST_REQUIRED): Adjust user.
8144         * include/dlfcn.h (struct link_map): New forward decl.
8146         * inet/getnameinfo.c: Include stddef.h.
8147         (getnameinfo): Use offsetof.
8149         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
8151         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
8153         * string/strerror_l.c: Include stdlib.h.
8155         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
8156         * config.make.in (gnu89-inline-CFLAGS): New variable.
8157         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
8158         -std=gnu99.
8159         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
8160         * argp/argp.h: Use it.
8161         * bits/mathinline.h: Likewise.
8162         * bits/sigset.h: Likewise.
8163         * bits/string.h: Likewise.
8164         * ctype/ctype.h: Likewise.
8165         * hurd/hurd.h: Likewise.
8166         * hurd/hurd/fd.h: Likewise.
8167         * hurd/hurd/port.h: Likewise.
8168         * hurd/hurd/signal.h: Likewise.
8169         * hurd/hurd/threadvar.h: Likewise.
8170         * hurd/hurd/userlink.h: Likewise.
8171         * io/sys/stat.h: Likewise.
8172         * libio/bits/stdio.h: Likewise.
8173         * libio/bits/stdio2.h: Likewise.
8174         * mach/lock-intern.h: Likewise.
8175         * mach/mach/mig_support.h: Likewise.
8176         * math/bits/cmathcalls.h: Likewise.
8177         * posix/bits/unistd.h: Likewise.
8178         * socket/bits/socket2.h: Likewise.
8179         * stdlib/bits/stdlib.h: Likewise.
8180         * stdlib/stdlib.h: Likewise.
8181         * string/argz.h: Likewise.
8182         * string/bits/string2.h: Likewise.
8183         * string/bits/string3.h: Likewise.
8184         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
8185         * sysdeps/generic/inttypes.h: Likewise.
8186         * sysdeps/generic/machine-lock.h: Likewise.
8187         * sysdeps/generic/machine-sp.h: Likewise.
8188         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
8189         * sysdeps/i386/i486/bits/string.h: Likewise.
8190         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
8191         * sysdeps/mach/alpha/machine-lock.h: Likewise.
8192         * sysdeps/mach/alpha/machine-sp.h: Likewise.
8193         * sysdeps/mach/i386/machine-lock.h: Likewise.
8194         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
8195         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
8196         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
8197         * sysdeps/s390/bits/string.h: Likewise.
8198         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
8199         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8200         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
8201         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
8202         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8203         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
8204         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
8205         * wcsmbs/bits/wchar2.h: Likewise.
8206         * wcsmbs/wchar.h: Likewise.
8207         * stdlib/gmp.h: Likewise.  Include <features.h> to get
8208         __extern_inline definition.
8210 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
8212         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
8213         NULL.
8215         [BZ #3919]
8216         * math/libm-test.inc (log_test): Test -Inf and NaN.
8217         (log10_test, log1p_test, log2_test): Test -Inf.
8218         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
8219         FE_INVALID when argument is qNaN.
8220         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
8221         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
8222         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
8223         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
8224         andb $1, %ah with testb $1, %ah, don't test for parity, instead
8225         testb $4, %ah and jump if non-zero.
8226         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
8227         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
8229         [BZ #4101]
8230         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
8231         ancestors with the same depths.
8232         Patch by Niels Moeller <nisse@lysator.liu.se>.
8233         (filter_doc): Don't crash if argp is NULL.
8234         * argp/Makefile (tests): Add tst-argp2.
8235         * argp/tst-argp2.c: New test.
8237         [BZ #4130]
8238         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
8239         open_not_cancel_2.
8240         (updwtmp_file): Likewise.
8242         [BZ #4181]
8243         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
8244         (inet6_opt_append): Don't check extlen is big enough if extbuf
8245         is NULL.
8246         (inet6_opt_finish): Likewise.
8247         * inet/Makefile (tests): Add test-inet6_opt.
8248         * inet/test-inet6_opt.c: New test.
8250         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
8251         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
8252         NLMSG_ERR.  Instead use a page sized buffer.
8253         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
8254         buffer.
8256 2007-03-14  Richard Henderson  <rth@redhat.com>
8258         * sysdeps/alpha/fpu/s_llround.c: New file.
8259         * sysdeps/alpha/fpu/s_llroundf.c: New file.
8260         * sysdeps/alpha/fpu/s_lround.c: New file.
8261         * sysdeps/alpha/fpu/s_lroundf.c: New file.
8262         * sysdeps/alpha/fpu/s_round.c: New file.
8263         * sysdeps/alpha/fpu/s_roundf.c: New file.
8264         * sysdeps/alpha/fpu/s_trunc.c: New file.
8265         * sysdeps/alpha/fpu/s_truncf.c: New file.
8267         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
8268         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
8269         * sysdeps/alpha/fpu/s_floor.c: Likewise.
8270         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
8271         * sysdeps/alpha/fpu/s_rint.c: Likewise.
8272         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
8274         * sysdeps/alpha/fpu/s_fmax.S: New file.
8275         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
8276         * sysdeps/alpha/fpu/s_fmin.S: New file.
8277         * sysdeps/alpha/fpu/s_fminf.S: New file.
8278         * sysdeps/alpha/fpu/s_isnan.c: New file.
8279         * sysdeps/alpha/fpu/s_isnanf.c: New file.
8280         * sysdeps/alpha/fpu/s_llrint.c: New file.
8281         * sysdeps/alpha/fpu/s_llrintf.c: New file.
8282         * sysdeps/alpha/fpu/s_lrint.c: New file.
8283         * sysdeps/alpha/fpu/s_lrintf.c: New file.
8284         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
8285         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
8287         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
8288         (__fdimf, fdimf, __fdim, fdim): Remove.
8289         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
8290         (__isnanf, __isnan, __isnanl): New.
8292 2007-03-13  Richard Henderson  <rth@redhat.com>
8294         * sysdeps/ieee754/ldbl-128/Makefile: New file.
8296 2007-03-13  Richard Henderson  <rth@redhat.com>
8298         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
8299         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
8300         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
8301         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
8302         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
8303         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
8305 2007-03-13  Richard Henderson  <rth@redhat.com>
8307         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
8308         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
8309         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
8310         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
8311         Move to dl-auxv.h; initialize instead of extern weak.
8312         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
8313         weak symbol.
8314         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
8315         Extern instead of initialized.
8317 2007-03-13  Richard Henderson  <rth@redhat.com>
8319         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
8320         __sigsuspend_nocancel.
8322 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
8324         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
8325         172.16/12 address range.
8327 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
8329         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
8330         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
8331         message.
8333 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
8335         [BZ #4069]
8336         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
8337         earlier.
8338         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
8340         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
8341         for x qNaN and y either +-inf or non-integer value.
8342         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
8343         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
8344         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8346 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
8348         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
8349         from sysdep_headers.
8351 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
8353         * time/tzfile.c (find_transition): Instead of a linear search try to
8354         guess the transition index, use a linear search if the result is at
8355         most 10 transitions away from the guess or binary search otherwise.
8357 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
8359         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
8360         memory reallocation.
8362 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
8364         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
8365         and fix some typos.
8366         Optimize use of TOLOWER.
8368         [BZ #3325]
8369         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
8370         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8371         * sysdeps/i386/fpu/e_fmod.S: Likewise.
8373         [BZ #3458]
8374         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
8375         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
8377         [BZ #4076]
8378         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
8379         (open_dir_stream): Likewise.
8380         * io/Makefile (tests): Add bug-ftw5.
8381         * io/bug-ftw5.c: New file.
8383         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
8384         * nscd/servicescache.c (cache_addserv): Likewise.
8386         * nscd/grpcache.c (cache_addgr): In case a record changed on
8387         refresh, adjust key_copy.
8389         [BZ #4074]
8390         * nscd/pwdcache.c (cache_addpw): In case a record changed on
8391         refresh, adjust key_copy.
8393         [BZ #4070]
8394         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
8395         special cases.
8396         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
8398 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
8400         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
8401         optimization.
8403         * stdio-common/vfscanf.c: Small cleanups throughout.
8405 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
8407         [BZ #3325]
8408         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
8409         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
8410         * sysdeps/i386/fpu/e_fmod.S: Likewise.
8411         Patch by Jared Casper <jaredcasper@gmail.com>.
8413         * sysdeps/unix/closedir.c: Outside libc don't use locking.
8414         * sysdeps/unix/opendir.c: Likewise.
8415         * sysdeps/unix/readdir.c: Likewise.
8417         [BZ #2211]
8418         * stdio-common/vfscanf.c: Handle localized digits etc for floating
8419         point numbers.
8420         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
8422         * stdio-common/vfscanf.c: Fix problems in width accounting.
8423         * stdio-common/tst-sscanf.c (double_tests): New tests.
8424         (main): Hook them up.
8426         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
8427         More simplifications of floating-point reader.
8429         * stdio-common/Makefile (tests): Add tst-swscanf.
8430         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
8431         testing.
8432         * stdio-common/tst-swscanf.c: New file.
8434 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
8436         [BZ #2633]
8437         * libio/stdio.h: Define struct _IO_FILE in global namespace.
8438         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
8439         Remove using for __jmp_buf_tag.
8440         * locale/locale.h (struct lconv): Also define in std namespace.
8441         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
8443         [BZ #3842]
8444         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
8445         using __libc_enable_secure.
8447         [BZ #3818]
8448         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
8450         [BZ #3745]
8451         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
8452         of names for ellipsises.
8454         [BZ #3348]
8455         * malloc/memusage.sh: Cleanups.
8456         * debug/xtrace.sh: Quoting and trap changes.
8458 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
8460         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
8462         * locale/iso-3166.def: Update entry for Serbia.
8463         * locale/iso-4217.def: Define RSD, remove CSD.
8465         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
8466         and 64-bit operations.
8468         [BZ #4040]
8469         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
8470         16-bit operations.
8472         * nscd/nscd.c (parse_opt): One more conversion to use send instead
8473         of writev.
8475 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
8477         [BZ #3991]
8478         * assert/assert.h (assert): Simplify.
8479         (assert_perror): Likewise.
8480         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
8482         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
8483         reqdata.
8485         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
8486         change: don't pass NULL in place of an integer.
8488 2007-02-02  Bruno Haible  <bruno@clisp.org>
8490         [BZ #3954]
8491         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
8492         Add mapping for U+327E.
8493         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
8494         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8495         mapping of 0xD9 0xE8.
8496         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
8497         mapping of U+327E.
8498         Reported by Jungshik Shin <jungshik@google.com>.
8500         [BZ #3955]
8501         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
8502         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
8503         Reported by Jungshik Shin <jungshik@google.com>.
8505 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
8507         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
8508         byte variants.
8510         [BZ #4040]
8511         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
8512         byte variants.  Patch mostly be tom@tommay.net.
8514 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
8516         [BZ #3996]
8517         * posix/glob.c (attribute_hidden): Define if not defined.
8518         (glob): Unescape dirname, filename or username when needed and not
8519         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
8520         is NULL.  Handle unescaped [ in pattern without closing ].
8521         Don't pass GLOB_CHECK down to recursive glob for directories.
8522         (__glob_pattern_type): New function.
8523         (__glob_pattern_p): Implement using __glob_pattern_type.
8524         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
8525         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
8526         Remove unreachable code.
8527         * posix/globtest.sh: Add a couple of new tests.
8529 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
8531         * po/ru.po: Update from translation team.
8533 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
8535         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
8536         to the list of i486+ CPUs.
8537         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8539 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
8541         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
8542         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
8543         references.
8545 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
8547         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
8549         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
8550         * resolv/res_mkquery.c: Define __res_nopt.
8551         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
8552         try adding EDNS0 record.
8553         * resolv/res_send.c (send_dg): If request failed with FORMERR and
8554         EDNS0 record was send make sure we don't try it again.
8555         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
8556         * include/resolv.h: Declare __res_nopt.
8558 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
8560         [BZ #3944]
8561         * time/strptime_l.c (__strptime_internal): Set have_mon for
8562         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
8563         have been computed from tm_yday and tm_year.  Don't crash
8564         in day_of_the_week or day_of_the_year if not have_mon
8565         and tm_mon contains bogus value.
8566         * time/Makefile (tests): Add tst-strptime3.
8567         * time/tst-strptime3.c: New test.
8569 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
8571         [BZ #3957]
8572         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
8573         bit for RE_HAT_LISTS_NOT_NEWLINE.
8574         (build_charclass_op): Remove bogus comment.
8575         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
8576         * posix/bug-regex27.c: New test.
8577         * posix/bug-regex28.c: New test.
8579 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
8581         * po/sv.po: Update from translation team.
8583 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
8585         * nscd/nscd_helper.c (open_socket): Minor size optimization.
8587 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
8589         * include/locale.h (__uselocale): Add libc_hidden_proto.
8590         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
8592         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
8593         gettimeofday.
8595 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
8597         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
8598         returning.
8599         (PTR_DEMANGLE): Real definition now that it's not the same as
8600         PRT_MANGLE anymore.
8601         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8603         * string/strerror_l.c: New file.
8604         * string/Makefile (routines): Add strerror_l.
8605         * string/string.h: Declare strerror_l.
8606         * string/Versions: Export strerror_l for GLIBC_2.6.
8608 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
8610         * nscd/nscd_helper.c (open_socket): Now takes request type and key
8611         as parameter.  Construct request record.  Try sending request
8612         before the first poll use, it usually succeeds.  Adjust all
8613         callers.
8614         * nscd/nscd-client.h: Define MAXKEYLEN.
8615         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
8617 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
8619         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
8620         from return value.
8621         * nscd/nscd_helper.c: Include string.h.
8622         (__nscd_cache_search): Remove const qualifier from return value.
8623         On strict alignment architectures check hash entry and data head
8624         alignment.
8625         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
8626         mmapped data during GC cycle contains garbage.  If
8627         __nscd_drop_map_ref fails, decrement mapped->counter when returning
8628         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
8629         dropped to 0.
8630         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8631         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8632         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
8633         * nscd/nscd_getai.c (__nscd_getai): Likewise.
8634         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8636 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
8638         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
8640 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
8642         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
8643         names not numbers in cfi_*.
8645 2007-01-26  Andreas Jaeger  <aj@suse.de>
8647         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
8648         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
8649         Correct values of PER_HPUX and PER_OSF4.
8651 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
8653         * elf/dl-minimal.c: Undefine _itoa first.
8654         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
8655         * malloc/mtrace.c: Revert last change.
8656         * posix/wordexp.c: Likewise.
8658 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
8660         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
8661         and __geode__ to the list of i486+ CPUs.
8662         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
8664 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
8666         * stdio-common/_itoa.c: Include <limits.h>.
8667         * stdio-common/_itowa.c: Likewise.
8669 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
8671         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
8672         platforms.
8673         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
8674         64-bit platforms.
8675         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
8676         possible.
8677         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
8678         if possible.
8680         [BZ #3902]
8681         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
8682         * stdio-common/Makefile (tests): Add bug17.
8683         * stdio-common/bug17.c: New file.
8685 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
8687         * iconvdata/brf.c: New file.
8688         * iconvdata/testdata/BRF: New file.
8689         * iconvdata/testdata/BRF..UTF8: New file.
8690         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
8691         * iconvdata/Makefile: Add rules to build BRF.
8692         * iconvdata/TESTS: Add BRF entry.
8693         * iconvdata/gconv-modules: Likewise.
8694         * iconvdata/tst-tables.sh: Likewise.
8696 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
8698         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
8699         type `long long int', not `long int'.
8700         (wcstoq): Likewise.
8702 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
8704         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
8705         of values on 64-bit platforms which are too large.
8707 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
8708             Joe Kerian  <jkerian@us.us.ibm.com>
8710         [BZ #2749]
8711         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
8712         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
8713         (__copysignl): Use signbit() for comparison.
8714         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
8715         SET_LDOUBLE_WORDS64.
8717         [BZ #2423, #2749]
8718         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
8719         (__ceill): Remove calls to fegetround(), fesetround().
8720         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
8721         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8722         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
8724 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
8726         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
8728         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
8730 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
8732         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
8733         demangle pointer.
8734         * csu/libc-start.c: Likewise.
8736 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
8738         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
8739         really work anyway.
8741 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
8743         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
8744         users.
8745         (handle_request): Remove unnecessary tests.
8747         * nscd/cache.c (cache_add): Record the failure to add to the cache.
8749 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
8751         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
8752         workbits in semi-raw fraction.
8754         * math/test-misc.c: Add new tests.
8756 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
8758         * math/basic-test.c: Include test-skeleton.c.
8759         (TEST_TRUNC): Define.
8760         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
8761         (main): Rename to ...
8762         (do_test): ...this.  Run new tests.
8763         (TEST_FUNCTION): Define.
8765 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
8766             Joe Kerian  <jkerian@us.us.ibm.com>
8768         [BZ #2749]
8769         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
8770         handling for high words.
8771         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
8772         and overflow for infinity.
8774 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
8776         * nscd/connections.c (handle_request): Add a __builtin_expect.
8778         * nscd/connections.c (serv2db): Change type into structure which
8779         also says whether this is a request for data.  Renamed to
8780         servinfo.  All users changed.
8781         (handle_request): Much simpler test whether we should search the cache.
8783         * nscd/connections.c (handle_request): Fix thinko in selinux test
8784         invocation.
8786         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
8787         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
8788         it before getting dl_load_lock and then relock.
8789         (_dl_lookup_symbol_x): Pass flags to add_dependency.
8790         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
8791         case we unlocked the scope.
8792         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
8793         _dl_lookup_symbol_x in case we locked the scope.
8794         (_dl_profile_fixup): Likewise.
8795         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
8796         set DL_LOOKUP_SCOPE_LOCK.
8798 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
8800         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
8801         CFLAGS-getsrvbynpt_r.c.
8802         * nscd/getsrvbynm_r.c: New file.
8803         * nscd/getsrvbypt_r.c: New file.
8804         * nscd/nscd_getserv_r.c: New file.
8805         * nscd/servicescache.c: New file.
8806         * nscd/Makefile (routines): Add nscd_getserv_r.
8807         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
8808         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
8809         CFLAGS-getsrvbypt_r.c.
8810         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
8811         table.  Add entries for services database.
8812         * nscd/connections.c (serv2str): Mark as const.  Add entries for
8813         services database.
8814         (dbs): Add .reset_res and servdb initialization.
8815         (serv2db): Add entries for services database.
8816         (verify_persistent_db): Accept dbnr == servdb.
8817         (invalidate_cache): Rewrite database name recognition to use a table.
8818         Call res_init() if .reset_res is set for database.
8819         (handle_request): Add code to handle services database.
8820         * nscd/gai.c: Don't define __getservbyname_r.
8821         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
8822         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
8823         (serv_response_header): Define.
8824         (struct datahead): Add serv_response_header member.
8825         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
8826         using table.
8827         * nscd/nscd.conf: Add entries for services database.
8828         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
8829         Declare serv_iov_disabled.
8830         Declare addservbyname, readdservbyname, addservbyport, and
8831         readdservbyport.
8832         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
8833         (find_db): Fix error message.
8834         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
8835         __nscd_getservbyname_r, and __nscd_getservbyport_r.
8836         * nscd/selinux.c (perms): Add entries for services database.
8837         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
8838         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
8840         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
8841         * nscd/hstcache.c: Likewise.
8842         * nscd/pwdcache.c: Likewise.
8844         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
8845         computation of keylen.
8847         * include/string.h: Only redefine strndupa if this is really for
8848         libc code.
8850 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
8852         * nscd/nscd_gethst_r.c: Minor cleanups.
8854         * nscd/connections.c (handle_request): Check selinux permissions
8855         for all non-admin commands.
8857         * sysdeps/i386/i486/bits/atomic.h: Define
8858         atomic_compare_and_exchange_val_acq,
8859         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
8860         using __sync_* built-ins for gcc >= 4.1.
8861         * sysdeps/x86_64/bits/atomic.h: Likewise.
8863         [BZ #3840]
8864         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
8865         and .oS.d files.
8867 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
8869         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
8870         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
8871         (do_test): Check errno and exit(0) if ENOSYS.
8873 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
8875         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
8876         thousands separators.
8877         * stdlib/Makefile: Add rules to build and run tst-strtod4.
8878         * stdlib/tst-strtod4.c: New test.
8880         [BZ #3855]
8881         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
8882         hexadecimal digit should accept just the initial 0.
8883         * stdlib/tst-strtod2.c (tests): New variable.
8884         (do_test): Run several tests rather than just one.
8886 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
8888         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
8889         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
8891 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
8893         * io/fts.c: Make sure fts_cur is always valid after return from
8894         fts_read.
8895         Patch by Miloslav Trmac <mitr@redhat.com>.
8897 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
8899         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
8900         (R_MIPS_NUM): Bump by 1.
8902 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
8904         * posix/execvp.c: Include alloca.h.
8905         (allocate_scripts_argv): Renamed to...
8906         (scripts_argv): ... this.  Don't allocate buffer here nor count
8907         arguments.
8908         (execvp): Use alloca if possible.
8909         * posix/Makefile: Add rules to build and run tst-vfork3 test.
8910         * posix/tst-vfork3.c: New test.
8912 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
8914         * string/Makefile (tst-strxfrm2-ENV): Define.
8915         * stdlib/Makefile (tst-strtod3-ENV): Define.
8917 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
8919         * posix/getconf.c: Update copyright year.
8920         * nss/getent.c: Likewise.
8921         * iconv/iconvconfig.c: Likewise.
8922         * iconv/iconv_prog.c: Likewise.
8923         * elf/ldconfig.c: Likewise.
8924         * catgets/gencat.c: Likewise.
8925         * csu/version.c: Likewise.
8926         * elf/ldd.bash.in: Likewise.
8927         * elf/sprof.c (print_version): Likewise.
8928         * locale/programs/locale.c: Likewise.
8929         * locale/programs/localedef.c: Likewise.
8930         * nscd/nscd.c (print_version): Likewise.
8931         * debug/xtrace.sh: Likewise.
8932         * malloc/memusage.sh: Likewise.
8933         * malloc/mtrace.pl: Likewise.
8934         * debug/catchsegv.sh: Likewise.
8936 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
8938         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
8939         attempts.
8941 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
8943         * posix/wordexp.c: Remove some unnecessary tests.
8945 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
8947         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
8948         blacklist the group till after we look it up.
8950 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
8952         * include/atomic.h (atomic_forced_read): New macro.
8954 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
8956         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
8958 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
8960         * nss/getXXbyYY_r.c: Include atomic.h.
8961         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
8962         add atomic_write_barrier () in between.
8964         * stdlib/Makefile (tests): Add tst-makecontext.
8965         * stdlib/tst-makecontext.c: New test.
8967         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
8968         (__makecontext): Don't realign uc_mcontext.uc_regs.
8970 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
8972         * elf/dl-support.c: Include dl-procinfo.h.
8973         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
8974         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
8975         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
8976         Define.
8977         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
8978         hardcoded constants.
8979         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
8980         PPC_PLATFORM_* macros for array designators.
8982 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
8984         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
8985         names to the beginning.
8986         (_dl_powerpc_platforms): Add "power6x".
8987         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
8988         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
8989         (_DL_PLATFORMS_COUNT): Increase.
8990         (_dl_string_platform): Handle power6x case.
8991         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
8992         PPC_FEATURE_POWER6_EXT): Define.
8993         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
8995 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
8997         [BZ #3747]
8998         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
8999         [-2^31 .. 2^31) range.
9000         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
9001         targets.
9002         * stdlib/tst-rand48-2.c: New test.
9003         * stdlib/Makefile (tests): Add tst-rand48-2.
9005 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
9007         * misc/tst-pselect.c (do_test): Fix sigblock argument.
9009 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
9011         * misc/tst-pselect.c (do_test): Make sure the helper process is
9012         terminating when the test is aborted.
9014 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
9016         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
9017         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
9018         Handle relatime mount option.
9020         [BZ #2337]
9021         * libio/Makefile (tests): Add tst-setvbuf1.
9022         * libio/tst-setvbuf1.c: New file.
9024 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
9026         [BZ #2337]
9027         * libio/genops.c (__uflow): Fix a typo.
9028         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
9029         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
9030         the narrow buffer size.
9032 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
9034         [BZ #2337]
9035         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
9036         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
9037         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
9038         in _flags.
9039         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
9040         _IO_wstr_finish): Likewise.
9041         * libio/wmemstream.c (open_wmemstream): Likewise.
9042         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
9043         even for wide streams.
9045 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
9047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
9048         kernel-features.h.
9050 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
9052         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
9053         separators also if no non-zero digits found.
9054         * stdlib/Makefile (tests): Add tst-strtod3.
9056 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
9058         [BZ #3632]
9059         * include/features.h: Fix comment about default value for
9060         _POSIX_C_SOURCE.
9062         [BZ #3664]
9063         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
9064         empty parsed strings.
9065         * stdlib/Makefile (tests): Add tst-strtod2.
9066         * stdlib/tst-strtod2.c: New file.
9068         [BZ #3673]
9069         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
9070         computation.
9071         * stdlib/Makefile (tests): Add tst-atof2.
9072         * stdlib/tst-atof2.c: New file.
9074         [BZ #3674]
9075         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
9076         correctly if removing trailing zero of hex-float.
9077         * stdlib/Makefile (tests): Add tst-atof1.
9078         * stdlib/tst-atof1.c: New file.
9080 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
9082         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
9083         Start searching for next comma at p rather than rest.
9084         * misc/Makefile (tests): Add tst-mntent2.
9085         * misc/tst-mntent2.c: New test.
9087         * misc/getusershell.c (initshells): Check for integer overflows.
9088         Make strings buffer one bigger as fgets always succeeds when second
9089         argument is 1.  Don't use calloc for shells array.  Disallow
9090         / as shell.
9092 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
9094         * malloc/memusage.c: Handle realloc with new size of zero and
9095         non-NULL pointer correctly.
9096         (me): Really write first record twice.
9097         (struct entry): Make format bi-arch safe.
9098         (dest): Write out more realloc statistics.
9099         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
9101 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
9103         * nis/nis_subr.c (nis_getnames): Revert last change.
9105 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
9107         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
9108         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
9109         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
9110         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
9111         ENOTTY.
9112         * io/Makefile: Add rules to build and run tst-ttyname_r test.
9113         * io/tst-ttyname_r.c: New test.
9115 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9117         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
9119 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
9121         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
9122         jump table entries.
9124 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
9126         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
9127         `clone' function to ensure proper unwinding stop of gdb.
9128         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
9130 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
9132         * nscd/nscd.init: Remove obsolete and commented-out -S option
9133         handling.
9135 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
9137         [BZ #3514]
9138         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
9140         [BZ #3515]
9141         * manual/string.texi (strtok): Remove duplicate paragraph.
9143 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
9145         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
9146         libgcc not supporting `rflags' unwinding (register # >= 17).
9148 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
9150         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
9151         succeeded.
9153 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
9154             Jakub Jelinek  <jakub@redhat.com>
9155             Jan Kratochvil  <jan.kratochvil@redhat.com>
9157         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
9158         unwind information.
9159         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
9160         'restore_rt' even in the 'signal' directory.
9161         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
9163 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
9165         [BZ #3559]
9166         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
9167         malloc crashed.  Don't allocate memory unnecessarily in each
9168         loop.
9170 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
9172         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
9174 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
9176         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
9178 2006-11-18  Bruno Haible  <bruno@clisp.org>
9180         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
9181         __sysconf only after having tried to call getgroups32.
9183 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
9185         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
9186         addresses for IPv4 queries if they can be mapped.
9188 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
9190         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
9191         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
9192         (signmask): Add .size directive.
9193         (othermask): Add .type directive.
9195 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
9197         * po/nl.po: Update from translation team.
9199         * timezone/zdump.c: Redo fix for BZ #3137.
9201 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
9203         * nss/nss_files/files-alias.c (get_next_alias): Set line back
9204         to first_unused after parsing :include: file.
9206 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
9208         * timezone/africa: Update from tzdata2006o.
9209         * timezone/antarctica: Likewise.
9210         * timezone/asia: Likewise.
9211         * timezone/australasia: Likewise.
9212         * timezone/backward: Likewise.
9213         * timezone/europe: Likewise.
9214         * timezone/iso3166.tab: Likewise.
9215         * timezone/northamerica: Likewise.
9216         * timezone/southamerica: Likewise.
9217         * timezone/zone.tab: Likewise.
9219         * time/tzfile.c (__tzfile_read): Extend to handle new file format
9220         on machines with 64-bit time_t.
9222         * timezone/checktab.awk: Update from tzcode2006o.
9223         * timezone/ialloc.c: Likewise.
9224         * timezone/private.h: Likewise.
9225         * timezone/scheck.c: Likewise.
9226         * timezone/tzfile.h: Likewise.
9227         * timezone/tzselect.ksh: Likewise.
9228         * timezone/zdump.c: Likewise.
9229         * timezone/zic.c: Likewise.
9231         [BZ #3483]
9232         * elf/ldconfig.c (main): Call setlocale and textdomain.
9233         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9235         [BZ #3480]
9236         * manual/argp.texi: Fix typos.
9237         * manual/charset.texi: Likewise.
9238         * manual/errno.texi: Likewise.
9239         * manual/filesys.texi: Likewise.
9240         * manual/lang.texi: Likewise.
9241         * manual/maint.texi: Likewise.
9242         * manual/memory.texi: Likewise.
9243         * manual/message.texi: Likewise.
9244         * manual/resource.texi: Likewise.
9245         * manual/search.texi: Likewise.
9246         * manual/signal.texi: Likewise.
9247         * manual/startup.texi: Likewise.
9248         * manual/stdio.texi: Likewise.
9249         * manual/sysinfo.texi: Likewise.
9250         * manual/syslog.texi: Likewise.
9251         * manual/time.texi: Likewise.
9252         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9254         [BZ #3465]
9255         * sunrpc/clnt_raw.c: Minimal message improvements.
9256         * sunrpc/pm_getmaps.c: Likewise.
9257         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
9258         * nis/nis_print_group_entry.c: Likewise.
9259         * locale/programs/repertoire.c: Likewise.
9260         * locale/programs/charmap.c: Likewise.
9261         * malloc/memusage.sh: Likewise.
9262         * elf/dl-deps.c: Likewise.
9263         * locale/programs/ld-collate.c: Likewise.
9264         * libio/vswprintf.c: Likewise.
9265         * malloc/memusagestat.c: Likewise.
9266         * sunrpc/auth_unix.c: Likewise.
9267         * sunrpc/rpc_main.c: Likewise.
9268         * nscd/cache.c: Likewise.
9269         * locale/programs/repertoire.c: Unify output messages.
9270         * locale/programs/charmap.c: Likewise.
9271         * locale/programs/ld-ctype.c: Likewise.
9272         * locale/programs/ld-monetary.c: Likewise.
9273         * locale/programs/ld-numeric.c: Likewise.
9274         * locale/programs/ld-time.c: Likewise.
9275         * elf/ldconfig.c: Likewise.
9276         * nscd/selinux.c: Likewise.
9277         * elf/cache.c: Likewise.
9278         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
9280         [BZ #3451]
9281         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
9282         change atomic.
9283         (ceil): Likewise.
9285 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
9287         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
9288         if N is one bigger than return value.
9289         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
9290         and l1 last arguments, if buf is defined, verify the return value
9291         equals to strlen (buf) and verify no byte beyond passed length
9292         is modified.
9294 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
9296         * po/sv.po: Update from translation team.
9298 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
9300         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
9301         noinline attribute.
9303 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
9305         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
9306         noinline attribute.
9308         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
9309         Use __new_sys_siglist instead of _sys_siglist_internal as
9310         second macro argument.
9311         (_old_sys_siglist): Use declare_symbol_alias macro instead of
9312         strong_alias.
9314 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
9316         [BZ #3493]
9317         * posix/unistd.h (sysconf): Remove const attribute.
9319         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
9320         temporary or deprecated addresses.
9321         Patch by Sridhar Samudrala <sri@us.ibm.com>.
9323         * string/Makefile (tests): Add tst-strxfrm2.
9324         * string/tst-strxfrm2.c: New file.
9326 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
9328         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
9329         rather than r->r_brk.
9331 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
9333         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
9334         optimization even if needed > n.
9336         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
9337         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
9338         return false, otherwise return true.
9339         (cache_rpath): Return decompose_rpath return value.
9341 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
9343         * include/libc-symbols.h (declare_symbol): Rename to...
9344         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
9345         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
9346         .size directive.
9347         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
9348         changes.
9349         * sysdeps/gnu/siglist.c: Likewise.
9351 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
9353         * sysdeps/powerpc/fpu/bits/mathinline.h
9354         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
9355         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
9357 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
9359         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
9360         Update handling of cache descriptor 0x49 for new models.
9361         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
9362         Likewise.
9364 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
9366         * malloc/memusage.c (dest): Reset not_me back to false after
9367         printing statistics.
9369 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
9371         * configure.in: Work around ld --help change and avoid -z relro
9372         test completely if the architecture doesn't care about security.
9374 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
9376         * po/sv.po: Update from translation team.
9378 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
9380         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
9381         generate compatibility version.
9383 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
9385         * configure.in: Relax -z relro requirement a bit.
9387         * po/sv.po: Update from translation team.
9389 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
9391         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
9392         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
9393         * elf/dl-close.c (_dl_close_worker): Likewise.
9394         * elf/dl-open.c (_dl_open_worker): Likewise.
9395         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
9397 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
9399         * configure.in: Require assembler support for visibility, compiler
9400         support for visibility and aliases, linker support for various -z
9401         options.
9402         * Makeconfig: Remove conditional code which now is unnecessary.
9403         * config.h.in: Likewise.
9404         * config.make.in: Likewise.
9405         * dlfcn/Makefile: Likewise.
9406         * elf/Makefile: Likewise.
9407         * elf/dl-load.c: Likewise.
9408         * elf/rtld.c: Likewise.
9409         * include/libc-symbols.h: Likewise.
9410         * include/stdio.h: Likewise.
9411         * io/Makefile: Likewise.
9412         * io/fstat.c: Likewise.
9413         * io/fstat64.c: Likewise.
9414         * io/fstatat.c: Likewise.
9415         * io/fstatat64.c: Likewise.
9416         * io/lstat.c: Likewise.
9417         * io/lstat64.c: Likewise.
9418         * io/mknod.c: Likewise.
9419         * io/mknodat.c: Likewise.
9420         * io/stat.c: Likewise.
9421         * io/stat64.c: Likewise.
9422         * libio/stdio.c: Likewise.
9423         * nscd/Makefile: Likewise.
9424         * stdlib/Makefile: Likewise.
9425         * stdlib/atexit.c: Likewise.
9426         * sysdeps/generic/ldsodefs.h: Likewise.
9427         * sysdeps/i386/dl-machine.h: Likewise.
9428         * sysdeps/i386/sysdep.h: Likewise.
9429         * sysdeps/i386/i686/memcmp.S: Likewise.
9430         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
9431         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9432         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
9434         * Makerules: USE_TLS support is now default.
9435         * tls.make.c: Likewise.
9436         * csu/Versions: Likewise.
9437         * csu/libc-start.c: Likewise.
9438         * csu/libc-tls.c: Likewise.
9439         * csu/version.c: Likewise.
9440         * dlfcn/dlinfo.c: Likewise.
9441         * elf/dl-addr.c: Likewise.
9442         * elf/dl-cache.c: Likewise.
9443         * elf/dl-close.c: Likewise.
9444         * elf/dl-iteratephdr.c: Likewise.
9445         * elf/dl-load.c: Likewise.
9446         * elf/dl-lookup.c: Likewise.
9447         * elf/dl-object.c: Likewise.
9448         * elf/dl-open.c: Likewise.
9449         * elf/dl-reloc.c: Likewise.
9450         * elf/dl-support.c: Likewise.
9451         * elf/dl-sym.c: Likewise.
9452         * elf/dl-sysdep.c: Likewise.
9453         * elf/dl-tls.c: Likewise.
9454         * elf/ldconfig.c: Likewise.
9455         * elf/rtld.c: Likewise.
9456         * elf/tst-tls-dlinfo.c: Likewise.
9457         * elf/tst-tls1.c: Likewise.
9458         * elf/tst-tls10.h: Likewise.
9459         * elf/tst-tls14.c: Likewise.
9460         * elf/tst-tls2.c: Likewise.
9461         * elf/tst-tls3.c: Likewise.
9462         * elf/tst-tls4.c: Likewise.
9463         * elf/tst-tls5.c: Likewise.
9464         * elf/tst-tls6.c: Likewise.
9465         * elf/tst-tls7.c: Likewise.
9466         * elf/tst-tls8.c: Likewise.
9467         * elf/tst-tls9.c: Likewise.
9468         * elf/tst-tlsmod1.c: Likewise.
9469         * elf/tst-tlsmod13.c: Likewise.
9470         * elf/tst-tlsmod13a.c: Likewise.
9471         * elf/tst-tlsmod14a.c: Likewise.
9472         * elf/tst-tlsmod2.c: Likewise.
9473         * elf/tst-tlsmod3.c: Likewise.
9474         * elf/tst-tlsmod4.c: Likewise.
9475         * elf/tst-tlsmod5.c: Likewise.
9476         * elf/tst-tlsmod6.c: Likewise.
9477         * include/errno.h: Likewise.
9478         * include/link.h: Likewise.
9479         * include/tls.h: Likewise.
9480         * locale/global-locale.c: Likewise.
9481         * locale/localeinfo.h: Likewise.
9482         * malloc/arena.c: Likewise.
9483         * malloc/hooks.c: Likewise.
9484         * malloc/malloc.c: Likewise.
9485         * resolv/Versions: Likewise.
9486         * sysdeps/alpha/dl-machine.h: Likewise.
9487         * sysdeps/alpha/libc-tls.c: Likewise.
9488         * sysdeps/generic/ldsodefs.h: Likewise.
9489         * sysdeps/generic/tls.h: Likewise.
9490         * sysdeps/i386/dl-machine.h: Likewise.
9491         * sysdeps/ia64/dl-machine.h: Likewise.
9492         * sysdeps/ia64/libc-tls.c: Likewise.
9493         * sysdeps/mach/hurd/fork.c: Likewise.
9494         * sysdeps/mach/hurd/i386/tls.h: Likewise.
9495         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
9496         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
9497         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
9498         * sysdeps/s390/libc-tls.c: Likewise.
9499         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
9500         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
9501         * sysdeps/sh/dl-machine.h: Likewise.
9502         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9503         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9504         * sysdeps/x86_64/dl-machine.h: Likewise.
9506         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
9507         split out locking and parameter checking.
9508         (_dl_close): Call _dl_close_worker after locking and checking.
9509         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
9510         _dl_close.
9511         * elf/Makefile: Add rules to build and run tst-thrlock.
9512         * elf/tst-thrlock.c:  New file.
9514         [BZ #3426]
9515         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
9516         reality.
9518         [BZ #3429]
9519         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
9520         we are sure we do not need it anymore for _dl_close.  Also move
9521         the asserts inside the lock region.
9522         Patch mostly by Suzuki <suzuki@in.ibm.com>.
9524 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
9526         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
9527         argument.
9528         (_dl_lookup_symbol_x): Adjust caller.
9530         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
9531         _ns_global_scope.
9532         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
9534         * elf/dl-libc.c: Revert l_scope name changes.
9535         * elf/dl-load.c: Likewise.
9536         * elf/dl-object.c: Likewise.
9537         * elf/rtld.c: Likewise.
9538         * elf/dl-close.c (_dl_close): Likewise.
9539         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
9540         always use __rtld_mrlock_{change,done}.  Always free old scope list
9541         here if not l_scope_mem.
9542         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
9543         change.  Never free scope list here.  Just __rtld_mrlock_lock before
9544         the lookup and __rtld_mrlock_unlock it after the lookup.
9545         * elf/dl-sym.c: Likewise.
9546         * include/link.h (struct r_scoperec): Remove.
9547         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
9548         with l_scope_mem and l_scoperec_lock with l_scope_lock.
9550 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
9552         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
9554 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
9556         * configure.in: Disable building profile libraries by default.
9558 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9560         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
9561         as signed longs, check for x_base + pos overflow.
9562         * sunrpc/Makefile (tests): Add tst-xdrmem2.
9563         * sunrpc/tst-xdrmem2.c: New test.
9565 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
9567         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
9568         _dl_lookup_symbol_x code.
9570 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9572         * elf/dl-runtime.c: Include sysdep-cancel.h.
9573         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
9574         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
9575         instead of catomic_* macros.
9576         * elf/dl-sym.c: Include sysdep-cancel.h.
9577         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
9578         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
9579         * elf/dl-close.c: Include sysdep-cancel.h.
9580         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
9581         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
9582         * elf/dl-open.c: Include sysdep-cancel.h.
9583         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
9584         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
9586 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9588         [BZ #3313]
9589         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
9590         fastbin rather than end of fastbin array.
9592 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
9594         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
9595         body macro.
9596         * sysdeps/x86_64/bits/atomic.h
9597         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
9598         (catomic_decrement): Use correct body macro.
9600 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
9602         * include/atomic.h: Add a unique prefix to all local variables
9603         in macros.
9604         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
9606 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
9608         [BZ #3369]
9609         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
9610         and 7.
9612 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
9614         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
9616 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
9618         [BZ #3313]
9619         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
9620         determine highest fast bin to consolidate, always look into all of
9621         them.
9622         (do_check_malloc_state): Only require for empty bins for large
9623         sizes in main arena.
9625         * libio/stdio.h: Add more __wur attributes.
9627         * elf/dl-minimal.c (realloc): Optimize last patch.
9629 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
9631         [BZ #3352]
9632         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
9633         and use memcpy() if it does.
9635 2006-11-12  Andreas Jaeger  <aj@suse.de>
9637         [BZ #2510]
9638         * manual/search.texi (Hash Search Function): Clarify.
9639         (Array Search Function): Clarify.
9641 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
9643         [BZ #2830]
9644         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
9645         shifting.
9646         * math/atest-exp2.c (read_mpn_hex): Likewise.
9647         * math/atest-sincos.c (main): Likewise.
9649 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
9651         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
9652         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
9653         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
9654         version GLIBC_2.6.
9655         * Versions.def: Add GLIBC_2.6 for libc.
9657         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
9659         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
9661 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
9663         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
9665         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
9667         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
9668         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
9670 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
9672         * include/atomic.c: Define catomic_* operations.
9673         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
9674         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
9675         * malloc/memusage.c: Likewise.
9676         * gmon/mcount.c: Likewise.
9677         * elf/dl-close.c: Likewise.
9678         * elf/dl-open.c: Likewise.
9679         * elf/dl-profile.c: Likewise.
9680         * elf/dl-sym.c: Likewise.
9681         * elf/dl-runtime.c: Likewise.
9682         * elf/dl-fptr.c: Likewise.
9683         * resolv/res_libc.c: Likewise.
9685 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
9687         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
9688         components which lack them.
9690         * nis/nis_subr.c (nis_getnames): Make sure that we always return
9691         at least one entry consisting of the parameter concatenated with
9692         the domain.
9694 2006-10-10  Roland McGrath  <roland@frob.com>
9696         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
9697         * sysdeps/mach/hurd/futimes.c: Likewise.
9698         * sysdeps/mach/hurd/lutimes.c: Likewise.
9700 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
9701             Jakub Jelinek  <jakub@redhat.com>
9703         Implement reference counting of scope records.
9704         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
9705         from the list in objects which remain.  Always allocate new scope
9706         record.
9707         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
9708         don't resize, allocate a new one.
9709         * elf/dl-runtime.c: Update reference counters before using a scope
9710         array.
9711         * elf/dl-sym.c: Likewise.
9712         * elf/dl-libc.c: Adjust for l_scope name change.
9713         * elf/dl-load.c: Likewise.
9714         * elf/dl-object.c: Likewise.
9715         * elf/rtld.c: Likewise.
9716         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
9717         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
9718         Add l_scoperec_lock.
9719         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
9720         * sysdeps/generic/rtld-lowlevel.h: New file.
9722         * include/atomic.h: Rename atomic_and to atomic_and_val and
9723         atomic_or to atomic_or_val.  Define new macros atomic_and and
9724         atomic_or which do not return values.
9725         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
9726         Various cleanups.
9727         * sysdeps/i386/i486/bits/atomic.h: Likewise.
9729         * po/sv.po: Update from translation team.
9731 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
9733         * Versions.def: Add GLIBC_2.6 to libpthread.
9735         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
9736         (versioned_symbol): Likewise.
9737         (compat_symbol): Likewise.
9739         * po/tr.po: Update from translation team.
9741 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
9743         * nis/Banner: Removed.  It's been integral part forever and the
9744         author info is incomplete anyway.
9745         * libio/Banner: Likewise.
9747         * nis/nis_table.c (nis_list): If __follow_path fails in the new
9748         code, make sure the nis_freeresult call doesn't crash and that the
9749         result is reported correctly.
9751 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
9753         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
9754         when callback is NULL.
9756         * nis/Versions (libnss_nisplus): Add
9757         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
9758         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
9759         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
9760         _nss_create_tablename): Rename to...
9761         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
9762         ... these.  No longer static.
9763         (internal_setgrent): Adjust users.
9764         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
9765         Don't use locking around _nss_grp_create_tablename call.
9766         * nis/nss_nisplus/nisplus-initgroups.c: New file.
9768 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
9770         * version.h (VERSION): Bump to 2.5.90 for new development tree.
9772 2006-10-06  Andreas Jaeger  <aj@suse.de>
9774         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
9776 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
9778         * po/pl.po: Update from translation team.
9780         * nscd/nscd.c (main): Fix typo in message.
9781         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
9783 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
9785         [BZ #3291]
9786         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
9787         errno.h, signal.h, unistd.h and sysdep-cancel.h.
9788         (__sigprocmask): Define.
9790 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
9792         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
9793         used.
9795 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
9797         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
9798         in oldtotal and newtotal calculation.
9799         * nscd/nscd-client.h (struct mapped_database): Add datasize
9800         field.
9801         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
9802         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
9803         increased.
9804         (__nscd_cache_search): Add checks to make sure we never reference
9805         data beyond the current mapping.
9807 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
9809         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
9810         variables const to avoid compiler warnings.
9812         * io/fts.c (fts_close): Remove redundant checks.
9813         (fts_build): Likewise.
9814         (fts_palloc): Likewise.
9816         * manual/message.texi (Advanced gettext functions,
9817         Using gettextized software): Fix typos.
9819 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
9821         * posix/glob.c (glob_in_dir): Add some comments and asserts to
9822         explain why there are no leaks.
9824 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
9826         * libio/wmemstream.c: Include <wchar.h>.
9827         * libio/bug-wmemstream1.c: Likewise.
9828         * libio/tst-wmemstream1.c: Likewise.
9829         * libio/tst-wmemstream2.c: Likewise.
9831         * version.h (RELEASE): Bump to 2.5.
9832         * README: Regenerated.
9834         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
9836         [BZ #3273]
9837         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
9838         found no group members.
9839         Patch by Petr Baudis.
9841 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
9843         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
9844         assert bootstrap_map.l_tls_modid is zero.
9845         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
9846         if USE___THREAD.
9848 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
9850         * libio/stdio.h: Move open_wmemstream prototype to ...
9851         * wcsmbs/wchar.h: ... here.
9853 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
9855         [BZ #3252]
9856         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
9857         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
9858         __{,l}chown to handle the rest.
9859         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
9860         fchownat syscall and __ASSUME_32BITUIDS case inline, call
9861         __{,l}chown to handle the rest.
9862         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
9863         i386/fchownat.c.
9864         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
9865         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
9867         [BZ #3253]
9868         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
9869         time, rather allocate increasingly bigger arrays of pointers, if
9870         possible with alloca, if too large with malloc.
9872 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
9874         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
9876         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
9878 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
9880         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
9881         home addresses.
9882         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
9883         IFA_F_HOMEADDRESS flag for interfaces.
9884         * include/ifaddrs.h (struct in6addrinfo): Define
9885         in6ai_homeaddress.
9887 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
9889         [BZ #3225]
9890         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
9891         PTR_DEMANGLE3): Define.
9892         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
9893         PTR_DEMANGLE3): Likewise.
9894         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
9895         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
9896         Likewise.
9897         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
9899 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
9901         * po/libc.pot: Regenerated.
9902         * po/be.po: Updated.
9903         * po/ca.po: Likewise.
9904         * po/cs.po: Likewise.
9905         * po/da.po: Likewise.
9906         * po/de.po: Likewise.
9907         * po/el.po: Likewise.
9908         * po/en_GB.po: Likewise.
9909         * po/es.po: Likewise.
9910         * po/fi.po: Likewise.
9911         * po/fr.po: Likewise.
9912         * po/gl.po: Likewise.
9913         * po/hr.po: Likewise.
9914         * po/hu.po: Likewise.
9915         * po/ja.po: Likewise.
9916         * po/ko.po: Likewise.
9917         * po/nb.po: Likewise.
9918         * po/nl.po: Likewise.
9919         * po/pl.po: Likewise.
9920         * po/pt_BR.po: Likewise.
9921         * po/ru.po: Likewise.
9922         * po/rw.po: Likewise.
9923         * po/sk.po: Likewise.
9924         * po/sv.po: Likewise.
9925         * po/tr.po: Likewise.
9926         * po/zh_CN.po: Likewise.
9927         * po/zh_TW.po: Likewise.
9929         [BZ #3137]
9930         * iconv/iconv_prog.c (main): Fix spelling in error message.
9931         * iconv/iconvconfig.c (main): Likewise.
9932         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
9933         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
9934         * locale/programs/localedef.c (main): Likewise.
9935         * locale/programs/repertoire.c (repertoire_read): Likewise.
9936         * timezone/zdump.c (main): Likewise.
9937         * nscd/connections.c (handle_request): Fix spelling in log message.
9938         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
9940 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
9942         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
9943         interfaces.
9945 2006-09-20  Andreas Jaeger  <aj@suse.de>
9947         * math/libm-test.inc (lrint_test_upward): Fix typo.
9949 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
9951         [BZ #2592]
9952         * math/libm-test.inc (lrint_test_tonearest): New function.
9953         (lrint_test_towardzero): New function.
9954         (lrint_test_downward): New function.
9955         (lrint_test_upward): New function.
9956         (main): Run these new tests.
9957         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
9958         of values near to 0.
9959         (two52): Use double not long double.
9960         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
9961         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
9962         (two23): Use float not double.
9963         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
9964         (two23): Use float not double.
9965         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
9966         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
9967         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
9968         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
9970 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9972         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
9973         Cast sp to unsigned long to avoid compiler warning.
9974         Use __makecontext_ret function instead of a trampoline on the stack.
9975         (__makecontext_ret): New function.
9976         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
9978 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
9980         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
9981         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
9982         bits.
9984 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
9986         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
9987         sure no reference to the unloaded map's search list remains in the
9988         dependency's scope.
9990 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
9992         * elf/Makefile: Add rules to build and run unload7 test.
9993         * elf/unload7.c: New test.
9994         * elf/unload7mod1.c: New file.
9995         * elf/unload7mod2.c: New file.
9997 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
9999         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
10000         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
10001         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10002         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
10003         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10004         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
10005         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
10006         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
10007         PTRACE_GETEVENTMSG): Likewise.
10008         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
10009         values.
10011 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
10013         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
10014         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
10015         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
10016         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
10018 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
10020         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
10021         write '\0' to the fd.
10022         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
10023         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
10024         Change regs to unsigned long pointer from unsigned int, fix fscr
10025         offset.
10027 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
10029         * io/Makefile (CFLAGS-fstatat.c): Set.
10030         (CFLAGS-fstatat64.c): Likewise.
10031         (CFLAGS-mknodat.c): Likewise.
10033         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
10034         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10035         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
10036         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
10038 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
10039             Steven Munroe  <sjmunroe@us.ibm.com>
10041         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
10042         names to the beginning.  Rename "cell" to "cellbe".
10043         (_dl_powerpc_platforms): New.
10044         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
10045         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
10046         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
10047         (_DL_HWCAP_PLATFORM): Define to new mask.
10048         (_dl_platform_string, _dl_string_platform): New functions.
10049         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
10050         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
10052 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
10054         [BZ #2526]
10055         * README.libm: Fix a thinko in sqrt algorithm description.
10057         [BZ #3143]
10058         * manual/string.texi (argz_delete): Fix prototype.
10059         Patch by <alpt@freaknet.org>.
10061 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
10063         [BZ #3138]
10064         * io/test-lfs.c (do_prepare): Give name_len type size_t.
10065         * io/tst-fcntl.c (do_prepare): Likewise.
10066         * posix/tst-exec.c (do_prepare): Likewise.
10067         * posix/tst-preadwrite.c (do_prepare): Likewise.
10068         * posix/tst-spawn.c (do_prepare): Likewise.
10069         * posix/tst-truncate.c (do_prepare): Likewise.
10070         * rt/tst-aio.c (do_prepare): Likewise.
10071         * rt/tst-aio64.c (do_prepare): Likewise.
10072         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
10073         size_t.
10075 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
10077         [BZ #2821]
10078         * time/mktime.c (guess_time_tm): Fix overflow detection.
10079         * time/Makefile (tests): Add bug-mktime1.
10080         * time/bug-mktime1.c: New file.
10082         [BZ #3189, #3188]
10083         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
10084         (mremap): Likewise.
10086 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
10088         [BZ #1006]
10089         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
10090         Ensure relocation doesn't clobber any bits outside of the
10091         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
10092         R_SPARC_HI22 and R_SPARC_H44.
10094         [BZ #2775]
10095         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
10096         (long) (MINSIZE + nb - old_size) is positive.
10098         * malloc/arena.c (grow_heap): When growing bail even if new_size
10099         is negative.
10101         [BZ #3155]
10102         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
10103         stack below r1.
10105 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
10107         * posix/regex_internal.c (re_string_reconstruct): Handle
10108         offset < pstr->valid_raw_len && pstr->offsets_needed case.
10109         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
10110         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
10111         re_string_context_at.
10112         * posix/Makefile: Add rules to build and run bug-regex26 test.
10113         * posix/bug-regex26.c: New test.
10115         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
10116         rather than col_sym_free.  Move seqp declaration earlier.
10118         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
10120 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
10122         * nscd/initgrcache.c (addinitgroupsX): Move any_success
10123         decl before first goto out.
10125 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
10127         * Makerules (shlib.lds): If have-hash-style, put .hash section
10128         at the end of the RO segment.
10130 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
10132         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
10133         style hash table format is used.
10135 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
10137         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
10138         randomization rather than before.
10139         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
10141 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
10143         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
10145         * malloc/malloc.c (_int_malloc): Use full list insert and not
10146         shortcut which assumes the list is empty for large requests
10147         too.
10149         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
10151 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
10153         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
10154         and offout arguments to the prototype.
10155         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
10156         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
10157         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
10158         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
10159         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
10160         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
10161         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
10162         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
10164 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
10166         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
10168         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
10169         dlopen parameters.
10171 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
10173         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
10174         only if herrno is NETDB_INTERNAL.  Handle errors other than
10175         ERANGE outside of the loops, handle TRY_AGAIN.
10177         * locale/programs/ld-ctype.c (translit_flatten): Issue error
10178         if other's ctype category was missing.
10179         * locale/programs/ld-collate.c (collate_read): Return if
10180         copy_locale's collate category is missing.
10182 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
10184         [BZ #2684]
10185         * malloc/malloc.c (public_rEALLOc): Try harder by using other
10186         arenas if allocation failed.
10187         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
10189 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
10191         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
10192         waste bins[0..1].
10193         (malloc_state): Reduce bins size by 2.
10194         (_int_malloc): Fix test for large enough buffer for early termination.
10195         When no unsorted block matches perfectly and an exiting block has
10196         to be split, use full list insert and not shortcut which assumes
10197         the list is empty.
10199         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
10200         failure.
10202 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
10204         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
10205         do anything.
10207         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
10208         symbol require exact match (these are PLTs).
10209         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
10210         (_dl_ppc64_addr_sym_match): Likewise.
10212         [BZ #2683]
10213         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
10214         If symbol has a value use it.
10215         * elf/tst-dladdr1.c: New file.
10216         * elf/Makefile: Add rules to build and run tst-addr1.
10218 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
10220         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
10221         keeps failing and heap growth or new heap creation isn't
10222         successful either.
10223         * malloc/tst-malloc.c (main): Add new tests.
10225 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
10227         [BZ #2734]
10228         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
10229         as in the x86-64 code to use bswap.
10231 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
10233         [BZ #2680]
10234         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
10235         __USE_UNIX98.
10236         * posix/bits/unistd.h: Likewise.
10238 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
10240         [BZ #2751]
10241         * string/strchr.c: Add cast to avoid warning.
10243 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
10245         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
10246         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
10247         limit is needed to avoid the exploding of the address space
10248         requirement for secondary heaps.
10249         * malloc/arena.c (HEAP_MAX_SIZE): Define using
10250         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
10252 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
10254         [BZ #3018]
10255         * Makerules (depfiles): Handle extra-test-objs the same as
10256         extra-objs.
10257         (common-mostlyclean): Likewise.
10258         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
10259         instead.
10260         * elf/Makefile (extra-objs): Likewise.
10261         * stdlib/Makefile (extra-objs): Likewise.
10263 2006-08-14  Eric Blake  <ebb9@byu.net>
10265         [BZ #3044]
10266         * misc/error.h: Assume C89 or better.
10267         * misc/error.c: Likewise.
10269 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
10271         [BZ #3040]
10272         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
10273         __ASSUME_ATFCTS is defined.
10275 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
10277         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
10278         to sort in each call.
10280         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
10281         is empty simply return and use next service.
10282         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
10284         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
10285         tells us when not finding a charmap file is an error.
10286         * locale/programs/charmap.h: Adjust charmap_read prototype.
10287         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
10288         cannot find a charmap.
10289         * locale/programs/localedef.c (main): Adjust charmap_read call.
10291 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
10293         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
10294         sysdeps/posix/pause.c implementation instead.
10296 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
10298         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
10299         to EPERM.
10301 2006-08-13  Andreas Schwab  <schwab@suse.de>
10303         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
10304         Don't clobber caller's LRSAVE.
10305         (_dl_prof_resolve): Likewise.
10307 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
10309         [BZ #1996]
10310         * libio/memstream.c (open_memstream): Allocate initial buffer with
10311         calloc.
10312         * libio/wmemstream.c (open_wmemstream): Likewise.
10313         * libio/strops.c: Pretty printing.
10314         (_IO_str_overflow): Clear uninitialized part of the new buffer.
10315         (enlarge_userbuf): New function.
10316         (_IO_str_seekoff): Call it if seek position is larger than current
10317         buffer.
10318         * libio/wstrops.c: Likewise.
10319         * libio/vasprintf.c: Add comment as to why we do not have to use
10320         calloc instead of malloc to allocate initial buffer.
10321         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
10322         * libio/bug-memstream1.c: New file.
10323         * libio/bug-wmemstream1.c: New file.
10325 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
10327         * libio/wstrops.c: Remove dead macro definitions and comments.
10328         * libio/strops.c: Likewise.
10330         [BZ #2764]
10331         * login/utmpname.c (__utmpname): Remove unnecessary test.
10333 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
10335         [BZ #2832]
10336         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
10337         0s from integers.
10339 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
10341         [BZ #2987]
10342         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
10343         for CPU clocks.
10344         * sysdeps/unix/clock_settime.c: Add support for platform-specific
10345         setting of CPU clocks.
10347 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10349         [BZ #2841]
10350         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
10351         since C99 requires the result to promote to 'int' when uint_least8_t
10352         and uint_least16_t promote to 'int'.
10354 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
10356         [BZ #3013]
10357         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
10358         lenght of one output field, correct bitmask creation.
10359         * locale/programs/ld-time.c: Add alignment.
10361         [BZ #2997]
10362         * misc/error.c: Add space between program name and message if file
10363         name is missing.
10365 2006-08-03  Eric Blake  <ebb9@byu.net>
10367         [BZ #2998]
10368         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
10370 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
10372         * malloc/memusagestat.c: Silence warnings.
10374         * malloc/malloc.c: Dynamically size mmap treshold if the program
10375         frees mmaped blocks.
10376         Patch by Valerie Henson and Arjan van de Ven.
10378 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
10380         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
10381         __USE_GNU.
10383         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
10384         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
10385         (DEF): Don't put the var into .gnu.linkonce.r.* section.
10386         Only provide var definitions in strtol_l (or for *ull*
10387         in strtoll_l).
10389         * stdio-common/bug16.c (tests): New array.
10390         (do_tests): Allow the first hexadecimal digit
10391         to be 1, 2, 4 or 8.  Do 3 additional tests.
10393         * sysdeps/s390/fpu/libm-test-ulps: Update.
10395         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
10396         fchownat syscall if available.
10397         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
10398         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
10399         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
10401 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
10403         * nis/nis_xdr.c: Avoid some function calls.
10405 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
10406             Ulrich Drepper  <drepper@redhat.com>
10408         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
10409         short cut if only one name component is stripped away.
10411 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
10413         * nis/nis_call.c: Minor cleanups throughout.
10414         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
10415         (first_shoot): Add search_parent_first parameter.  Only if it is set
10416         search parent server first.
10417         If directory for table found through cold start cache is not the same
10418         as referenced in the cache, don't use it.
10419         (__nisfind_server): Take additional parameter.  Pass it on to
10420         first_shoot.
10421         (__prepare_niscall): Adjust __nisfind_server call.
10422         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
10423         * nis/nis_table.c: Adjust __nisfind_server call.
10424         * nis/nis_lookup.c: Likewise.
10425         (nis_lookup): Don't loop endlessly if name is reduced to ".".
10427 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
10429         [BZ #2182]
10430         * math/s_cacosh.c: Return values from positive branch.
10431         * math/s_cacoshf.c: Likewise.
10432         * math/s_cacoshl.c: Likewise.
10434         [BZ #2883]
10435         * sysvipc/sys/msg.h: Change return value to ssize_t.
10436         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
10437         * sysvipc/msgrcv.c: Likewise.
10438         * include/sys/msg.h: Likewise.
10440         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
10441         test introduced in patch for bz #661.
10442         (getgrouplist): Simplify code a bit.  Don't allocate one additional
10443         element for NEWGROUPS.
10445         [BZ #2908]
10446         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
10447         'f', use '1' as leading digit not '\1'.
10448         * stdio-common/Makefile (tests): Add bug16.
10449         * stdio-common/bug16.c: New file.
10451         [BZ #2914]
10452         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
10453         and don't try to open it.  The patch introducing the macro
10454         contained a bug and used the same file name as the new file
10455         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
10456         this out completely.
10458         [BZ #2926]
10459         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
10460         Patch by Jerry James <Jerry.James@usu.edu>.
10462         * rt/Makefile (tests): Add tst-clock2.
10463         * rt/tst-clock2.c: New file.
10465         [BZ #2978]
10466         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
10467         function and its parameters and pass it to new thread.
10468         (__gai_notify): Add support for alternative waiting for completion.
10469         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
10470         waiting for completion.
10471         * resolv/getaddrinfo_a.c: Likewise.
10472         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
10473         waiting for completion is used.
10474         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
10475         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
10476         * resolv/gai_error.c: Likewise.
10477         * resolv/gai_sigqueue.c: Likewise.
10479 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
10481         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
10482         errno to EBADF and return MACH_PORT_NULL.
10484 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
10486         [BZ #2980]
10487         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
10489 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
10491         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
10492         walk them instead of the symbol table.
10494 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
10496         [BZ #2098]
10497         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
10498         status of NSS calls, not the number of returned entries.
10500         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
10501         request_key, keyctl.
10503 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
10505         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
10507 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
10509         * elf/tst-auditmod1.c: Fix typo in #error.
10511 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
10513         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
10515         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
10517 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
10519         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
10520         that the directory is empty even on non-POSIX filesystems.
10522 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
10524         * elf/dl-open.c (dl_open_worker): Add branch prediction.
10526         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
10527         the backend NSS module.  If backend setgrent call failed, don't have
10528         internal_setgrent fail.  Just remember this until it is needed.
10529         * nis/nss_compat/compat-pwd.c: Likewise.
10530         * nis/nss_compat/compat-spwd.c: Likewise.
10532 2006-07-30  Roland McGrath  <roland@redhat.com>
10534         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
10535         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
10536         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
10537         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
10539         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
10540         (nanosleep_not_cancel): New macro.
10541         (sigsuspend_not_cancel): new macro.
10542         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
10543         (do_sigsuspend): Define as inline.
10544         (__sigsuspend): Always use do_sigsuspend.
10545         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
10546         * include/signal.h: Declare __sigsuspend_nocancel.
10547         * sysdeps/posix/pause.c
10548         [! NO_CANCELLATION] (__pause_nocancel): New function.
10550         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
10551         * include/time.h (__nanosleep_nocancel): Likewise.
10553 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
10555         * locale/programs/localedef.c (add_to_readlist): Rename local
10556         variables to avoid confusion.
10558         * locale/programs/charmap.c (charmap_read): Emit error message if
10559         charmap couldn't be found or read.
10561 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
10563         * sysdeps/unix/sysv/linux/kernel-features.h: Define
10564         __ASSUME_FUTEX_LOCK_PI.
10565         * include/time.h: Declare __nanosleep_nocancel.
10566         * include/unistd.h: Declare __pause_nocancel.
10568         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
10569         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
10570         get the __stack_chk_fail_local definition when it's needed.
10572 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
10574         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
10575         * dlfcn/bug-atexit3.c: New file.
10576         * dlfcn/bug-atexit3-lib.cc: New file.
10578         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
10579         used when the namespace is not the base namespace.
10581 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
10583         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
10584         (__new_exitfn): Bump it in every successful call.
10585         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
10586         more exit handlers, call them right away.
10587         * stdlib/exit.h: Declare __new_exitfn_called.
10589 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
10591         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
10592         calling registered handler.
10594         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
10595         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10596         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10597         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10598         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10599         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10600         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
10601         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10603 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
10605         * elf/dl-lookup.c (dl_new_hash): New functions.
10606         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
10607         value here.  Compute new-style hash value.  Pass new hash value
10608         and reference to variable with the old value to do_lookup_x.
10609         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
10610         old-style hash table.
10611         (_dl_debug_bindings): Pass new hash value and reference to variable
10612         with the old value to do_lookup_x.
10613         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
10614         new-style hash value and change old-style hash value parameter to
10615         be a reference.  Reoganize functions to determine whether
10616         new-style hash table is available.  Only fall back on old-style
10617         table.  If old-style hash value is needed, compute it here.
10618         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
10619         entry.
10620         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
10621         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
10622         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
10623         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
10624         * Makeconfig: If linker supports --hash-style option add it to all
10625         linker command lines to build DSOs.
10626         * config.make.in: Define have-hash-style.
10627         * configure.in: Test whether linker supports --hash-style option.
10629         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
10630         * sysdeps/generic/ldsodefs.h: Adjust prototype.
10632 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
10634         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
10635         auditing.
10637         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
10638         RPATH of main map twice.
10640 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
10642         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
10643         look further, return original strings.
10644         (_nl_find_msg): Do not return found translation if the conversion
10645         failed.  Either signal the string is unusable or that something went
10646         wrong and the original should be used.
10648 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
10650         * string/_strerror.c (__strerror_r): Add __builtin_expect.
10652 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
10654         [BZ #2766]
10655         * misc/insremque.c (insque): Handle prev == NULL.
10656         * misc/Makefile (tests): Add tst-insremque.
10657         * misc/tst-insremque.c: New test.
10659 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
10661         [BZ #2792]
10662         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
10663         conflict with DL_DST_REQUIRED.
10665 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
10667         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
10668         match what Solaris does.
10670 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
10672         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
10673         local_setegid instead of seteuid and setegid.
10674         * sysdeps/generic/local-setxid.h: New file.
10675         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
10677         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
10679         * string/Makefile (tests): Add bug-envz1.
10680         * string/bug-envz1.c: New file.
10682 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
10684         * posix/regex_internal.c (re_string_skip_chars): If no character has
10685         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
10686         to the byte which couldn't be converted.
10687         (re_string_reconstruct): Don't clear valid_raw_len before calling
10688         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
10689         tip_context using re_string_context_at.
10690         * posix/Makefile: Add rules to build and run bug-regex25 test.
10691         * posix/bug-regex25.c: New test.
10693 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
10695         [BZ #2703]
10696         * string/envz.c (envz_strip): Correct erroneously reversed src
10697         and dest parameters to memmove() invocation.
10699 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
10701         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
10702         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
10703         to make sure the database has been already invalidated.
10704         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
10705         after the cache has been invalidated.  Use pthread_mutex_lock rather
10706         than pthread_mutex_trylock if fd != -1.
10707         * nscd/connections.c (invalidate_cache): Add fd argument, write
10708         response to fd if not calling prune_cache, pass fd to prune_cache.
10709         (handle_request): Adjust invalidate_cache caller.
10710         (nscd_run): Pass -1 as fd to prune_cache.
10712 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
10714         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
10715         the correct place.
10717 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
10719         * nscd/nscd.h (struct database_dyn): Add prunelock field.
10720         * nscd/cache.c (prune_cache): Take prunelock before starting the
10721         work.  Just return in case it is already taken.
10722         * nscd/connections.c (dbs): Initialize .prunelock.
10724 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
10726         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
10727         copying.  No need to allocate new array for group members.  Just
10728         move the pointers and update the size.
10730         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
10731         Avoid memory leak in case realloc fails.  Simplification for
10732         better code generation.
10734         Avoid deprecation warning because of libc_hidden_proto for
10735         inet6_option_alloc.
10736         * inet/inet6_option.c (option_alloc): Renamed from
10737         inet6_option_alloc.  Made static.
10738         (inet6_option_alloc): Now a simple wrapper around option_alloc.
10739         (inet6_option_append): Call option_alloc.
10740         * include/netinet/in.h: Remove libc_hidden_proto for
10741         inet6_option_alloc.
10743         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
10744         for cleanup when cb!=NULL [Coverity CID 233].
10746 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
10748         [BZ #2693]
10749         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
10750         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
10751         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
10752         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
10753         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
10754         and inet6_rth_getaddr.
10755         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
10756         array.
10757         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
10758         Mark inet6_option_* interfaces as deprecated.
10759         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
10760         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
10761         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
10762         inet6_rth_segments, and inet6_rth_getaddr.
10763         * inet/inet6_opt.c: New file.
10764         * inet/inet6_rth.c: New file.
10766         * inet/netinet/icmp6.h: Pretty printing.
10768         [BZ #2683]
10769         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
10771 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
10773         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
10774         doing it all here.  When server does not know the answer do not
10775         fail immediate, try parent first.
10777         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
10778         overflow test.
10780 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
10782         * nis/nis_call.c (__prepare_niscall): New function.  Split out
10783         from __do_niscall.
10784         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
10785         and exported.
10786         (__follow_path): New function.  Split out from nis_list.
10787         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
10788         _xdr_nis_result.
10789         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
10790         _xdr_nis_result.
10791         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
10792         and __follow_path.
10793         * nis/Versions: Export __prepare_niscall, __create_ib_request,
10794         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
10795         from libnsl for version GLIBC_PRIVATE.
10796         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
10797         Remove entry parameter from _nss_nisplus_parse_pwent and
10798         _nss_nisplus_parse_grent.
10799         * nis/nss_nisplus/nisplus-parser.c: Likewise.
10800         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
10801         again.  Rewrite getpwent handling to not use nis_first_entry and
10802         nis_next_entry.  Roll out own niscall handling.
10803         * nis/nss_nisplus/nisplus-grp.c: Likewise.
10805         * sunrpc/xdr_rec.c: Fix typo in comment.
10807 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
10809         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
10810         handling.
10812         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
10813         to allocate memory for my_pollfd.  Better initialization of
10814         cb_is_running.  Use TEMP_FAILURE_RETRY.
10816         * malloc/memusage.sh (memusageso): Add quotes.
10817         (memusagestat): Likewise.
10818         * debug/xtrace.sh (pcprofileso): Likewise.
10819         (pcprofiledump): Likewise.
10820         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
10821         replacement.
10822         * malloc/Makefile ($(objpfx)memusage): Likewise.
10824         * nis/nis_callback.c (__nis_create_callback): Calls to
10825         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
10826         asprintf call fails.
10828         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
10829         no uninitialized memory is passed to sendto.
10831 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
10833         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
10834         of snprintf+strdup.  Handle OOM.
10835         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
10836         cb->serv together.  Remove now obsolete free calls.
10837         (__nis_destroy_callback): Remove now obsolete free call.
10839 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
10841         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
10842         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
10843         and ULA respectively). Set precedence for IPv4 address to 10 as
10844         defined in RFC3484 for preferring IPv6.
10845         * posix/gai.conf: Update to match the new default tables.
10847 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
10849         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
10850         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
10851         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
10852         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
10854         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
10855         Removed.
10856         (init_nss_interface): Remove initialization of these variables.
10858 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
10860         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
10861         nis_free_directory forward to avoid duplication.
10863 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
10865         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
10866         rec_dirsearch returning NULL.
10867         (first_shoot): Handle __nis_finddirectory returning NULL.
10868         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
10870         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
10871         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
10873 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
10875         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
10876         pid changed.
10878 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
10880         * include/rpc/pmap_prot.h: Mark all functions as hidden.
10882         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
10883         * nscd/nscd_getgr_r.c: Likewise.
10885         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
10887         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
10888         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
10890         * stdlib/longlong.h (__clz_tab): Mark as hidden.
10892         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
10894         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
10896         * include/rpc/auth.h: Mark xdr_des_block_internal and
10897         xdr_opaque_auth_internal as hidden.
10899         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
10900         hidden.
10902         * include/rpc/xdr.h: Mark all _internal functions as hidden.
10904         * misc/getusershell.c (okshells): Don't use static initializers,
10905         do it dynamically.
10907         * stdlib/fmtmsg.c (keywords): Change type of len element to
10908         uint32_t to not waste space on 64bit machines.
10910         * locale/setlocale.c: Change _nl_category_names into a string.
10911         Add new _nl_category_name_idxs.  Change all users.
10912         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
10913         Declare _nl_category_name_idxs.
10914         * locale/findlocale.c: Adjust for _nl_category_names change.
10915         * locale/loadlocale.c: Likewise.
10916         * locale/newlocale.c: Likewise.
10917         * intl/dcigettext.c: Likewise.
10919         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
10920         (add_alias2): ...here.  New function.
10921         (__gconv_read_conf): Simplify builtin alias handling.
10922         (builtin_aliases): Convert to string to avoid relocations.
10923         * iconv/gconv_builtin.h: Add comment about correct formatting.
10925 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
10927         * resolv/res_debug.c (loc_ntoa): Make error const.
10929 2006-05-14  Andreas Schwab  <schwab@suse.de>
10931         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
10933 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
10935         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
10936         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
10937         sizeof (cpu_set_t).
10939 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
10941         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
10943         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
10945         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
10946         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
10948         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
10949         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
10951         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
10952         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
10953         xdr_cback_data.
10955         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
10956         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
10957         xdr_ypupdate_args.
10959         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
10960         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
10962         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
10963         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
10965         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
10966         * include/rpcsvc/nis_callback.h: New file.
10968         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
10969         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
10971         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
10972         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
10974         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
10975         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
10977         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
10978         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
10980         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
10981         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
10982         xdr_ypdelete_args.
10984         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
10985         __BEGIN_DECLS and __END_DECLS, the header is not installed.
10987         * nis/nis_error.c: Remove table of strings.  Use position
10988         independent mechanism.
10989         * nis/nis_error.h: New file.
10991 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
10993         * locale/programs/ld-time.c (time_finish): If wide era name or
10994         format aren't provided, set both wname and wformat to L"".
10996 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
10998         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
10999         results if the call was succesful.
11001         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
11003         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
11004         as hidden.
11006 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
11008         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
11010 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
11012         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
11013         caller makes sure this is not the case.
11014         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
11016 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
11018         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
11019         calls.
11021         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
11022         [Coverity CID 229, 230]
11024         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
11025         DGETTEXT calls.
11026         (hol_help): Likewise.  [Coverity CID 226, 227]
11028         * string/argz-replace.c (__argz_replace): Unconditionally call
11029         free on SRC.  [Coverity CID 225]
11031         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
11032         the return value of __nis_default_owner and __nis_default_group,
11033         it has been especially allocated.  [Coverity CID 224]
11035         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
11036         searchgroup and searchowner.  Significantly simplified.
11037         (__nis_default_owner): Remove duplication.  Do not locally copy the
11038         string before duplicating it.
11039         (__nis_default_group): Likewise.
11041         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
11042         we must clear the variable before calling __nisfind_server.
11044         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
11045         nis_getnames.  [Coverity CID 223]
11047         * locale/programs/locfile.c (locfile_read): Use alloca instead of
11048         xmalloc to allocate local repertoire name.  [Coverity CID 222]
11050         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
11051         allocate memory for the input to add_bytes.  [Coverity CID 221]
11053         * posix/wordexp.c (w_addword): Free word if realloc fails and it
11054         was allocated here.  [Coverity CID 219, 220]
11056         * posix/getconf.c (print_all): Free confstr data after printing.
11057         [Coverity CID 218]
11059         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
11060         list allocation fails.  [Coverity CID 215]
11062         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
11063         [Coverity CID 213]
11065         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
11066         string is NULL.  [Coverity CID 212]
11067         * argp/Makefile: Add rules to build and run bug-argp1.
11068         * argp/bug-argp1.c: New file.
11070         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
11071         end of string.
11072         * stdlib/canonicalize.c (__realpath): Likewise.
11074         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
11075         pointer.  [Coverity CID 206]
11077         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
11078         in statically linked code.
11079         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
11080         statically built code, be prepared to have no link map.
11081         [Coverity CID 205]
11083         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
11084         dgettext calls. [Coverity CID 204]
11086         * argp/argp-help.c (struct uparams): Remove valid member.  Change
11087         the one user.
11088         (uparam_names): Reduce size.  Avoid relative relocations.
11089         Moved to read-only segment.
11090         (fill_in_uparams): Update for new layout.
11092         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
11093         assumed to always be != NULL. [Coverity CID 202]
11095         * argp/argp-help.c (hol_entry_help): Remove some dead code
11096         [Coverity CID 200].
11098         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
11099         away a few more unconditional yperr2nss calls.
11100         (_nss_nis_getservbyname_r): Likewise.
11102 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
11104         * sysdeps/generic/ldsodefs.h: Remove support for non-core
11105         architectures.
11107         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
11108         that unused memory passed to sendto is nevertheless initialized.
11110         [BZ #2499]
11111         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
11112         possibly unaligned memory accesses.
11114         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
11115         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
11116         and __putlong respectively.  Correct buffer overflow check for
11117         NS_NOTIFY_OP.
11119         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
11121         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
11122         (send_dg): Rewrite error handling to be more compact and avoid
11123         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
11125         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
11127         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
11128         instead of ns_get16.
11129         (res_queriesmatch): Likewise.  Minor optimization.
11131         [BZ #2499]
11132         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
11133         __libc_res_nsend might reallocate the buffer for the answer.  In
11134         this case we have to reload the HP pointer.
11136 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
11138         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
11139         some branch prediction hints.
11141         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
11142         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
11143         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11144         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11145         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11146         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11147         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
11148         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
11150 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
11152         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
11153         by a GOT relocation to make Scrt1.o position independent.
11154         * sysdeps/s390/s390-64/elf/start.S: Likewise.
11156         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
11157         six system call parameters.
11158         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
11160 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
11162         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
11163         malloc&bzero.
11165         * sunrpc/svc_udp.c (BZERO): Remove definition.
11166         (CALLOC): Define.
11167         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
11169         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
11170         (des_SPtrans): Use uint32_t type.
11171         (des_skb): Likewise.
11173         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
11175 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
11177         [BZ #2509]
11178         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
11179         on 32-bit arches.
11181 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
11183         * locale/programs/ld-address.c (address_finish): Fix one more
11184         place where the iso639 array might be accessed beyond the limits.
11186 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
11188         * nis/nis_table.c (nis_list): Avoid clearing res twice before
11189         filling it for the first time.
11191         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
11192         Adjust all callers.
11193         Free res object content before returning.
11195         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
11197         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
11198         client->cl_auth.
11200         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
11201         cleanup for initial thread, just the free call on TVP.
11203         * nscd/gai.c (__getline): Define.
11206 See ChangeLog.16 for earlier changes.