* misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
[glibc.git] / ChangeLog
blobb850b08d5df865acf7ff0c328ba0c1261ee56a02
1 2008-10-22  Dmitry V. Levin  <ldv@altlinux.org>
3         * misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
4         initialization.
6 2008-10-17  Jakub Jelinek  <jakub@redhat.com>
8         * elf/Makefile: Add rules to build and run tst-tls17.
9         * elf/tst-tls17.c: New test.
10         * elf/tst-tlsmod17a.c: New file.
11         * elf/tst-tlsmod17b.c: Likewise.
13 2008-10-17  Ulrich Drepper  <drepper@redhat.com>
15         * stdlib/divmod_1.c: Use correct type for dummy variable.
16         * stdlib/mod_1.c: Likewise.
18 2008-10-16  Ulrich Drepper  <drepper@redhat.com>
20         * elf/dl-tls.c (_dl_update_slotinfo): Copy all of the initial DTV.
22 2008-10-16  Jakub Jelinek  <jakub@redhat.com>
24         * sysdeps/unix/sysv/linux/sys/signalfd.h (signalfd): Fix __THROW vs.
25         __nonnull order for C++.
26         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h (signalfd): Likewise.
27         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h (signalfd): Likewise.
29 2008-10-01  Daniel Jacobowitz  <dan@codesourcery.com>
31         * stdlib/longlong.h: Update from GCC.
33 2008-10-09  Jakub Jelinek <jakub@redhat.com>
34             David S. Miller  <davem@davemloft.net>
36         * sysdeps/sparc/sparc64/sparcv9v/memcpy.S: When not USE_BPR,
37         make sure any registers used with 64-bit 'branch-on-register'
38         instructions have their top 32-bits clear.
39         * sysdeps/sparc/sparc64/sparcv9v/memset.S: Likewise.
40         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Likewise.
42 2008-09-18  Andreas Schwab  <schwab@suse.de>
44         [BZ #6942]
45         * resolv/res_send.c (send_vc): Fix use of unaligned address.
46         Properly handle partial reads.
48 2008-10-01  Mark Shinwell  <shinwell@codesourcery.com>
50         * elf/elf.h (STO_MIPS_PLT): New.
51         (R_MIPS_COPY): New.
52         (R_MIPS_JUMP_SLOT): New.
53         (R_MIPS_NUM): Redefine to 128.
54         (DT_MIPS_PLTGOT): New.
55         (DT_MIPS_RWPLT): New.
56         (DT_MIPS_NUM): Redefine to 0x35.
58 2008-10-01  Ulrich Drepper  <drepper@redhat.com>
60         * timezone/africa: Update from tzdata2008f.
61         * timezone/asia: Likewise.
62         * timezone/australasia: Likewise.
63         * timezone/europe: Likewise.
64         * timezone/leapseconds: Likewise.
65         * timezone/northamerica: Likewise.
66         * timezone/southamerica: Likewise.
67         * timezone/zone.tab: Likewise.
69 2008-09-30  Ulrich Drepper  <drepper@redhat.com>
71         * nscd/connections.c: Disable use of paccept for now.
73 2008-09-29  Ulrich Drepper  <drepper@redhat.com>
75         * socket/Versions: Remove paccept export for GLIBC_2.9.
76         * socket/Makefile (routines): Remove paccept.
77         * socket/sys/socket.h: Remove paccept declaration.
79         * po/sv.po: Update from translation team.
81 2008-09-22  Deborah S. Townsend  <dstownse@us.ibm.com>
83         * sysdeps/s390/s390-64/s390x-mcount.S: Replace ahi with aghi.
84         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
86 2008-09-16  Ulrich Drepper  <drepper@redhat.com>
88         * dlfcn/dlopen.c (dlopen_doit): Allow __RTLD_SPROF flag.
89         Patch by Olivier Fourdan <ofourdan@redhat.com>.
91 2008-09-15  Ulrich Drepper  <drepper@redhat.com>
93         * sunrpc/rpc/svc.h: Declare svcfd_create.
94         Patch by Michael Solberg <msolberg@redhat.com>.
96 2008-09-12  Flavio Leitner  <fleitner@redhat.com>
97             Ulrich Drepper  <drepper@redhat.com>
99         * malloc/malloc.c (public_vALLOc): Try other arenas in case
100         _int_valloc fails.
101         (public_pVALLOc): Likewise.
103 2008-09-02  Andreas Jaeger  <aj@suse.de>
105         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Fix last
106         commit.
108 2008-08-26  Aurelien Jarno  <aurelien@aurel32.net>
110         [BZ #6860]
111         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Fix a typo.
113 2008-07-18  Daniel Jacobowitz  <dan@codesourcery.com>
115         * Makefile (check-data): Check data directory in add-ons.
116         * elf/Makefile (check-data): Likewise.
118 2008-08-18  Roland McGrath  <roland@redhat.com>
120         * configure.in (--with-cpu): Check compiler support for -march/-mcpu.
121         * configure: Regenerated.
122         * config.make.in (cflags-cpu): New substituted variable.
123         (with-cpu): Variable removed.
124         * Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
126 2008-08-14  Ryan S. Arnold  <rsa@us.ibm.com>
128         [BZ #6845]
129         * sysdeps/powerpc/fpu/bits/mathinline.h (__signbitl): Copy new
130         __signbitl definition and __LONG_DOUBLE_128__ guard from:
131         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Remove as
132         redundant.  Functions which call floating point assembler operations
133         should go into a sysdeps powerpc/fpu directory.
135 2008-08-15  Ulrich Drepper  <drepper@redhat.com>
137         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
138         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
140 2008-08-14  Ulrich Drepper  <drepper@redhat.com>
142         * sysdeps/x86_64/memset.S: Reduce size of tables for PIC.
144         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Undo all
145         change related to AT_EXECFN.  We cannot use that string.
146         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
147         _dl_execfn member.
148         * elf/dl-support.c: Remove _dl_execfn variable.
149         (_dl_aux_init): Remove handling of AT_EXECFN.
150         * elf/dl-sysdep.c (_dl_sysdep_start): Remove handling of AT_EXECFN.
151         * elf/rtld.c (process_envvars): Remove use of __ASSUME_AT_EXECFN.
153 2008-08-13  Ulrich Drepper  <drepper@redhat.com>
155         [BZ #6544]
156         * libio/fmemopen.c: Implement binary mode.  In this mode no NUL
157         byte gets added to writes and seeks from the end use the length of
158         the buffer and not the currently terminating NUL byte.
160         [BZ #6634]
161         * login/utmp_file.c (getutent_r_file): Take additional parameter.
162         Set to true if locking failed.
163         (getutid_r_file): Adjust caller.
164         (pututline_file): Likewise.  Return NULL in this case.
165         Patch mostly by halesh.s@gmail.com.
167 2008-08-12  Ulrich Drepper  <drepper@redhat.com>
169         [BZ #6589]
170         * sysdeps/unix/sysv/linux/ifaddrs.c (struct sockaddr_ll_max):
171         Define.
172         (struct ifaddrs_storage): Use it instead of sockaddr_ll.
174 2008-08-12  Ryan S. Arnold  <rsa@us.ibm.com>
176         [BZ #6839]
177         * sysdeps/powerpc/powerpc32/dl-machine.c (CHECK_STATIC_TLS): Remove
178         macro since it is now available in elf/dynamic-link.h.
180 2008-08-12  Roland McGrath  <roland@frob.com>
182         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
183         in case used outside of libc.
184         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
186 2008-08-11  Ulrich Drepper  <drepper@redhat.com>
188         * resolv/res_mkquery.c (res_nmkquery): Call ns_name_compress
189         directly instead of going through dn_comp.
191 2008-08-11  Aurelien Jarno  <aurel32@debian.org>
193         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
194         Fix asm constraints.
196 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
198         [BZ #6790]
199         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_PROBE): Define.
200         (IPV6_PMTUDISC_PROBE): Likewise.
202 2008-08-07  Pete Eberlein  <eberlein@us.ibm.com>
204         [BZ #6791]
205         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (PROT_SAO): Define.
207 2008-08-01  Steven Munroe  <sjmunroe@us.ibm.com>
208             Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
210         [BZ #6817]
211         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags):
212         Added the members 'vsx' and 'arch_2_06'.
213         (_dl_powerpc_platforms): Add the member 'power7'.
214         * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST
215         to reflect the changes required by VSX and ISA 2.06.
216         Modify _DL_PLATFORMS_COUNT to reflect the addition of
217         'power7'.
218         Defined PPC_PLATFORM_POWER7.
219         (_dl_string_platform): Add support for POWER7.
220         * sysdeps/powerpc/sysdep.h: Define bit masks for VSX
221         capability and ISA 2.06.
223 2008-08-07  Ulrich Drepper  <drepper@redhat.com>
225         [BZ #6824]
226         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: Use correct
227         macro to detect use of 128 bit long double.
228         Patch by Ryan S. Arnold <rsa@us.ibm.com>.
230 2008-08-05  Ulrich Drepper  <drepper@redhat.com>
232         * scripts/gen-as-const.awk: Use 32-bit values on 32-bit platforms.
234         [BZ #5794]
235         * sysdeps/i386/fpu/s_expm1l.S: Simply use exp implementation for large
236         parameters.
237         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
238         Patch by Denys Vlasenko <dvlasenk@redhat.com>.
240 2008-08-03  Ulrich Drepper  <drepper@redhat.com>
242         * nscd/connections.c (main_loop_poll): Pass a buffer which is
243         guaranteed to be large enough to read inotify event.  Ignore
244         EAGAIN error.  Better error message.  Add branch predicition.
245         (main_loop_epoll): Likewise.
247 2008-08-02  Roland McGrath  <roland@frob.com>
249         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
250         Add memory clobbers.
252 2008-08-02  Ulrich Drepper  <drepper@redhat.com>
254         * manual/arith.texi: Avoid @strong{Note:}.
255         * manual/creature.texi: Likewise.
256         * manual/filesys.texi: Likewise.
257         * manual/math.texi: Likewise.
258         * manual/memory.texi: Likewise.
259         * manual/resource.texi: Likewise.
260         * manual/syslog.texi: Likewise.
261         * manual/time.texi: Likewise.
263         * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
264         to prevent warning.
266 2008-08-01  Ulrich Drepper  <drepper@redhat.com>
268         * sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
269         new epoll_create1 interface.
270         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
271         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
272         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
274         * include/arpa/nameser.h (NS_GET16): Use const pointer.
275         (NS_GET32): Likewise.
277         * sysdeps/unix/sysv/linux/kernel-features.h: s390 has the new
278         syscalls, too.
280         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): We cannot
281         use the AT_EXECFN value if it is no absolute path.
282         * sysdeps/unix/sysv/linux/kernel-features.h: Never define
283         __ASSUME_AT_EXECFN.
285         * Versions.def: Add GLIBC_2.9 to libresolv.
286         * include/resolv.h: Remove hidden proto declarations for __ns_*
287         functions.  Add them for __dn_count_labels and __p_secstodate.
288         * include/arpa/nameser.h: Add a number of hidden proto declarations.
289         Define ns_msg_getflags macro here.
290         * resolv/res_debug.c: Add hidden definition for __dn_count_labels
291         and __p_secstodate.
292         * resolv/Versions: Export functions from <arpa/nameser.h> from
293         libresolv in version GLIBC_2.9.
294         * resolv/ns_name.c: Integrate changes from bind 9.5.0.  Add necessary
295         hidden definitions.
296         * resolv/ns_netint.c: Likewise.
297         * resolv/ns_parse.c: Likewise.
298         * resolv/ns_print.c: Likewise.
299         * resolv/ns_samedomain.c: Likewise.
300         * resolv/ns_ttl.c: Likewise.
301         * resolv/arpa/nameser_compat.h: Likewise.
302         * resolv/arpa/nameser.h: Likewise.  Remove macros which redirect
303         function calls.
304         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Use __ns_get16
305         instead of ns_get16.
306         * resolv/nss_dns/dns-host.c (getanswer_r): Use __ns_get16 and
307         __ns_get32 instead of ns_get16 and ns_get32 respectively.
308         (gaih_getanswer_slice): Likewise.
309         * resolv/Makefile (libresolv-routines): Add ns_date.
310         * resolv/ns_date.c: New file.
312         * elf/Makefile (check-localplt.out): Also check libresolv and
313         libcrypt.
315 2008-07-31  Ulrich Drepper  <drepper@redhat.com>
317         * sysdeps/unix/sysv/linux/kernel-features.h: Define
318         __ASSUME_O_CLOEXEC.
320 2008-07-30  Ulrich Drepper  <drepper@redhat.com>
322         * sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initial
323         buffer passed to NSS functions.
325         * nscd/connections.c (nscd_init): Typo in preprocessor directive.
327         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
328         Define.
330         * misc/syslog.c (openlog_internal): Fix compile problem.
332 2008-07-28  Roland McGrath  <roland@redhat.com>
334         * elf/dl-sysdep.c (_dl_show_auxv): Add AT_EXECFN to the table.
336 2008-07-28  Ulrich Drepper  <drepper@redhat.com>
338         * io/ftw.c (add_object): Remove inline to avoid warning.
340         * sysdeps/unix/sysv/linux/paccept.c: Fix compile problem.
342         * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
343         Use it instead of locally defined resplen2 variable.
344         (res_nsend): Adjust for __libc_res_nsend interface change.
345         (send_vc): Initialize *resplen2 if necessary.  Read length of
346         package into an appropriately aligned variable.  Store converted length
347         in new variable and use it appropriately.
348         Add branch prediction help.
349         * resolv/res_query.c (__libc_res_nquery): Take additional parameter
350         and pass it on to __libc_res_nsend.  Adjust all callers.
351         (__libc_res_nsearch): Likewise.
352         (__libc_res_nqeurydomain): Likewise.
353         * resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
354         change.
355         (_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
356         Define resplen2 variable and pass it to __libc_res_nsearch and then
357         to gaih_getanswer.
358         (getanswer_r): In case of incorrect DNS data don't overread buffer.
359         Add branch prediction.
360         (gaih_getanswer_slice): Likewise.  Check for invalid data types.
361         (gaih_getanswer): Don't decode second slice if first one failed due
362         to a too small buffer.  Don't let not found status of second
363         decoder shadow results of the first.
364         * resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
365         and __libc_res_nquery interface changes
366         (gethostbyaddr): Adjust for __libc_res_nquery interface change.
367         * include/resolv.h: Adjust prototypes for __libc_res_nquery,
368         __libc_res_nsearch, and __libc_res_nsend.
369         * resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
370         change.
371         * resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
372         __libc_res_nsearch interface changes.
374 2008-07-27  Ulrich Drepper  <drepper@redhat.com>
376         * libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.
378         * posix/wordexp.c (exec_comm): Use pipe2 if possible to create
379         file descriptors with close-on-exec set.
380         (exec_comm_child): Fix the case where the write end of the pipe is
381         STDOUT_FILENO already.  In case it is, clear close-on-exec.
383         * sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.
384         * io/pipe2.c: Likewise.
385         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2
386         instead of __ASSUME_PACCEPT.
387         * include/unistd.h: Declare __have_pipe2.
388         * libio/iopopen.c: Implement "e" flag.
389         * libio/Makefile (tests): Add tst-popen1.
390         * libio/tst-popen1.c: New file.
392         * sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.
393         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
395 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
397         [BZ #6771]
398         * libio/fileops.c (_IO_new_file_attach): Preserve errno around
399         success call of _IO_SEEKOFF or calls which failed because the
400         descriptor is for a pipe.
402         * sunrpc/key_call.c (getkeyserv_handle): Use FD_CLOEXEC instead of
403         magic number.
405         * misc/syslog.c (openlog_internal): Use SOCK_CLOEXEC if possible.
407         * malloc/mtrace.c (mtrace): Use 'e' flag in fopen call.  Drop
408         F_SETFD use if we know fopen set the flag.
410         * login/utmp_file.c (setutent_file): Minor optimization in case
411         O_CLOEXEC is available.
413 2008-07-24  Tom "spot" Callaway  <tcallawa@redhat.com>
415         * Makeconfig: Define pie-ccflag and PIE-ccflag variables.
416         * elf/Makefile: Use pie-ccflag variable.
417         * nscd/Makefile: Likewise.
418         * sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
420 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
422         [BZ #6724]
423         * Versions.def: Add GLIBC_2.9 version tag for libutil.
424         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Copy of
425         gnu/bits/utmp.h.  Check for __WORDSIZE_COMPAT32 removed.
426         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Copy of
427         gnu/bits/utmpx.h.  Check for __WORDSIZE_COMPAT32 removed.
428         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add new files
429         utmp32, utmpx32 and login32.
430         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Add 2.9
431         versions of struct utmp functions to libc and libutil.
432         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-compat.h: New file.
433         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c: New file.
434         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: New file.
435         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c: New file.
436         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: New file.
437         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c: New file.
438         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: New file.
439         * sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c: New file.
440         * sysdeps/unix/sysv/linux/s390/s390-32/getutxent.c: New file.
441         * sysdeps/unix/sysv/linux/s390/s390-32/getutxid.c: New file.
442         * sysdeps/unix/sysv/linux/s390/s390-32/getutxline.c: New file.
443         * sysdeps/unix/sysv/linux/s390/s390-32/login.c: New file.
444         * sysdeps/unix/sysv/linux/s390/s390-32/login32.c: New file.
445         * sysdeps/unix/sysv/linux/s390/s390-32/pututxline.c: New file.
446         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c: New file.
447         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmpx.c: New file.
448         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: New file.
449         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c: New file.
450         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: New file.
451         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx-convert.h: New file.
452         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c: New file.
453         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: New file.
455 2008-07-26  Ulrich Drepper  <drepper@redhat.com>
457         * scripts/gen-as-const.awk: Generate more widely usable code by
458         using 64-bit arithmetic.
460         * stdio-common/printf_fp.c (___printf_fp): Give wide outout code
461         the same treatment as narrow output code in last patch.
463         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Namespace cleanup.
465         [BZ #6763]
466         * elf/dl-load.c (local_strdup): Remove inline.
467         (_dl_map_object_from_fd): Don't allocate l_symbolic_searchlist.r_list.
468         * elf/dl-object.c (_dl_new_object): Allocate symbolic searchlist as
469         part of the object.
471         * sysdeps/unix/sysv/linux/dl-origin.c: Add const to avoid warning.
473 2008-07-25  Ulrich Drepper  <drepper@redhat.com>
475         * sysdeps/unix/sysv/linux/kernel-features.h: IA-64 and SPARC have
476         the new syscalls, too.
478         * sysdeps/i386/i686/memcmp.S: Fix unwind information.
479         Reported by Paul Pluzhnikov <ppluzhnikov@google.com>.
481         [BZ #6698]
482         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional
483         parameter for end of buffer.  If temporary copy is too large use
484         malloc.
485         * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite
486         interface change.
487         * stdio-common/printf_fp.c (__printf_fp): Likewise..  Account for
488         string rewrite when allocating buffer.
490         * sysdeps/unix/sysv/linux/kernel-features.h: PPC has the new
491         syscalls, too.
493         * nscd/connections.c (nscd_init): Clean up fcntl call.
495         * nscd/nscd_helper.c (open_socket): Use SOCK_CLOEXEC and
496         SOCK_NONBLOCK if possible.
498         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Use
499         SOCK_CLOEXEC if available.
501         * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
502         __libc_clntudp_bufcreate_internal.
503         * include/sys/socket.h: Declare __have_sock_cloexec.
504         * socket/Makefile (aux): Add have_sock_cloexec.
505         * socket/have_sock_cloexec.c: New file.
506         * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
507         __libc_clntudp_bufcreate.
508         (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
509         which takes an additional parameter.  Create socket with non-blocking
510         mode and close-on-exec flag set, if wanted.
511         * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
512         * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
513         instead of clntudp_create.  The socket has already the close-on-exec
514         flag set if SOCK_CLOEXEC is defined.
516 2008-07-24  Ulrich Drepper  <drepper@redhat.com>
518         * sysdeps/unix/sysv/linux/kernel-features.h: Define
519         __ASSUME_PACCEPT, __ASSUME_IN_NONBLOCK, and __ASSUME_PACCEPT if
520         appropriate.
521         * nscd/connections.c: Avoid fcntl calls to set close-on-exec flag and
522         non-blocking mode by using socket, paccept, and inotify_init1.
524         * Versions.def (glibc): Add GLIBC_2.9.
525         * io/Makefile (routines): Add dup3 and pipe2.
526         * io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
527         * io/dup3.c: New file.
528         * io/pipe2.c: New file.
529         * posix/unistd.h: Declare dup3 and pipe2.
530         * socket/Makefile (routines): Add paccept.
531         * socket/Versions [glibc] (GLIBC_2.9): Add paccept.
532         * socket/paccept.c: New file.
533         * socket/sys/socket.h: Declare paccept.
534         * sysdeps/unix/syscalls.list: Add entry for dup3.
535         * sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
536         epoll_create2 and inotify_init1.
537         * sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
538         * sysdeps/unix/sysv/linux/paccept.c: New file.
539         * sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
540         possible.
541         * sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
542         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
543         inotify_init1, and pipe2 entries.
544         * sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
545         * sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
546         * sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
547         * sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
548         * sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
549         * sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
550         SOCK_NONBLOCK.
551         * sysdeps/unix/sysv/linux/i386/paccept.S: New file.
552         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
553         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
554         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
555         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
556         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
557         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
558         * sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
559         EPOLL_NONBLOCK.  Declare epoll_create2.
560         * sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
561         EFD_NONBLOCK.
562         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
563         IN_NONBLOCK.  Declare inotify_init1.
564         * sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
565         SFD_NONBLOCK.
566         * sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
567         TFD_NONBLOCK.
569         * elf/elf.h: Define AT_EXECFN.
570         * elf/rtld.c [!__ASSUME_AT_EXECFN] (process_envvars): Don't handle
571         LD_ORIGIN_PATH.
572         * elf/dl-sysdep.c (_dl_sysdep_start): Handle AT_EXECFN.
573         * elf/dl-support.c: Define _dl_execfn.  Don't define _dl_origin_path
574         if __ASSUME_AT_EXECFN is defined.
575         (_dl_aux_init): Handle AT_EXECFN.
576         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_EXECFN
577         for 2.6.27 and up.
578         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_execfn.
579         Don't define _dl_origin_path if __ASSUME_AT_EXECFN is defined.
580         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use
581         _dl_execfn if available and avoid compatibility code if
582         __ASSUME_AT_EXECFN is defined.
584         * sysdeps/unix/sysv/linux/dl-sysdep.h: Don't declare
585         _dl_discover_osversion only for older kernels.
587 2008-07-22  Roland McGrath  <roland@frob.com>
589         * hurd/fd-read.c (_hurd_fd_read): Fix last change.
591 2008-07-21  Roland McGrath  <roland@frob.com>
593         * hurd/fd-read.c (_hurd_fd_read): Return EGRATUITOUS if the server
594         returned too much data out of line.
596 2008-07-20  Ulrich Drepper  <drepper@redhat.com>
598         * locale/setlocale.c (setname): Remove inline to avoid compiler
599         warning.
601         [BZ #6712]
602         * locale/setlocale.c (setlocale): Take the setlocale lock earlier.
604 2008-07-15  Ulrich Drepper  <drepper@redhat.com>
606         * stdio-common/vfprintf.c (_IO_helper_overflow): In case _IO_sputn
607         doesn't manage to write anything, fail.
609         * malloc/hooks.c (__malloc_check_init): Remove printf.
611 2008-07-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
613         * sysdeps/mach/hurd/bits/fcntl.h: Include <sys/types.h>.
615 2008-07-12  Ulrich Drepper  <drepper@redhat.com>
617         * nscd/connections.c (main_loop_poll): Fix handling of read errors
618         from inotify.
619         (main_loop_epoll): Likewise.
621 2008-07-09  Ulrich Drepper  <drepper@redhat.com>
623         * resolv/res_send.c: Remove unnecessary res_pquery prototype.
625         * resolv/res_query.c (__libc_res_nquery): Issue debug message only
626         if DEBUG is defined.
628         * resolv/res_query.c (__libc_res_nquery): Align buffer for T_AAAA
629         query.  Adjust buffer size computation for padding.
631 2008-07-08  Ulrich Drepper  <drepper@redhat.com>
633         * stdio-common/Makefile: Add rules to build and run tst-setvbuf1.
634         * stdio-common/tst-setvbuf1.c: New file.
635         * stdio-common/tst-setvbuf1.expect: New file.
637         [BZ #6719]
638         * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags
639         when selecting fully-buffered stream.
640         Patch by Wang Xin <wxinee@gmail.com>.
642 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
644         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
645         (__open_2): New function.
646         (__open64_2): New alias to __open_2.
647         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
648         (__openat_2): New function.
649         (__openat64_2): New alias to __openat_2.
651 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
653         [BZ #6723]
654         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
656 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
658         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
659         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
660         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
661         __hurd_dfail.
662         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
663         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
664         * sysdeps/mach/hurd/send.c (__send): Likewise.
665         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
666         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
668 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
670         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
671         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
672         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
673         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
674         * hurd/get-host.c (_hurd_get_host_config): Likewise.
675         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
677 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
679         [BZ #6657]
680         * time/strptime_l.c: Don't clear s.era_cnt after successful match
681         of %EY.
682         Patch by Petr Baudis.
684 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
686         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
687         Patch by Peter Jones <pjones@redhat.com>.
689 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
691         [BZ #6654]
692         * stdlib/canonicalize.c (__realpath): readlink can write too much
693         into the buffer on platforms without PATH_MAX.
695 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
697         [BZ #6653]
698         * posix/tst-regex.c (main): Rename to...
699         (do_test): ... this. Remove cmdline option processing.
700         (TIMEOUT): Define.
701         (TEST_FUNCTION): Define.
702         (CMDLINE_OPTIONS): Define.
704 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
706         [BZ #5210]
707         * configure.in: Add -Werror to -fstack-protector test to catch
708         unsupported architectures.
709         Patch by Gilles Esponasse <g.esp@free.fr>.
711 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
713         * stdlib/tst-setcontext.c: Set back_in_main before exit if
714         getcontext returns ENOSYS.
716 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
718         * nscd/connections.c (main_loop_poll): Fix test for read error.
719         (main_loop_epoll): Likewise.
721 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
723         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
724         better place so it is not called when nscd is used.
726         * nscd/connections.c: Also recognize and handle changes to the
727         resolver configuration file.
729 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
731         * time/strftime.c: Pass reference to tzset_called around to handle
732         recursive calls.
734         [BZ #6612]
735         * time/strftime.c (__strftime_internal): Call tzset() only
736         when printing timezone-dependent values.
737         Based on a patch by Petr Baudis <pasky@suse.cz>.
739         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
740         unconditionally use second gaih_getanswer_slice result.
742         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
743         (getaddrinfo): RES must always be non-NULL.
745 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
747         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
748         cr[34] registers.
749         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
750         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
751         Likewise.
752         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
753         register.
755 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
757         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
758         fields.
759         * nscd/connections.c (inotify_fd): New variable.
760         (nscd_init): Try to open an inotify descriptor.
761         If successful, watch files for databases using inotify instead of
762         having prune threads stat the files.
763         (nscd_run_prune): Recognize clear_cache flag being set and call
764         prune_cache appropriately.
765         (main_loop_poll): Add inotify descriptor to wait set and handle the
766         reported changes.
767         (main_loop_epoll): Likewise.
768         * nscd/cache.c (prune_cache): Don't stat files for databases if
769         inotify is used.
770         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
771         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
773         * nscd/grpcache.c (cache_addgr): Correctly compute size of
774         fixed-size portion of the record.
775         * nscd/servicescache.c (cache_addserv): Likewise.
776         * nscd/pwdcache.c (cache_addpw): Likewise.
777         * nscd/initgrcache.c (addinitgroupsX): Likewise.
779 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
781         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
782         out we don't use uninitialized memory.
784         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
785         the client.
787 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
789         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
790         ignore T_DNAME messages.
791         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
793 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
795         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
796         Avoid segfault if first GETC returns eof/'\0'/'\n'.
798 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
800         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
801         instead of portstr to nscd_getserv_r.  Patch by
802         Roman Kagan <rkagan@mail.ru>.
804 2008-05-26  Jim Meyering  <meyering@redhat.com>
806         Remove more useless "if" tests before "free".
807         * include/inline-hashtab.h (htab_delete): Likewise.
808         * libio/freopen.c (freopen): Likewise.
809         * libio/freopen64.c (freopen64): Likewise.
810         * locale/programs/ld-collate.c (collate_read): Likewise.
811         * misc/fstab.c (libc_freeres_fn): Likewise.
812         * posix/glob.c (globfree): Likewise.
814 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
816         * string/Makefile (strop-tests): Add memmem.
817         * string/test-memmem.c: New file.
818         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
819         (test_init): Size buf1 according to BUF1PAGES.
821 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
823         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
824         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
825         (CFLAGS-scanf17.c): New.
826         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
827         * stdio-common/scanf15.c (main): Likewise.
828         * stdio-common/scanf16.c: New file.
829         * stdio-common/scanf17.c: New file.
831 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
833         * resolv/res_send.c (send_dg): If we already have one of two
834         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
835         use the one answer insted of failing.
837 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
839         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
840         being executed on PowerPC as the expected result exceeds IBM
841         long double 128 __LDBL_MAX__.
843 2008-05-21  Roland McGrath  <roland@redhat.com>
845         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
847         * Makefile (check-data): Use $(abi-name) before other guesses.
848         Look in $(add-ons) dirs before scripts/data/.
849         * elf/Makefile (check-data): Likewise.
851         * scripts/soversions.awk: Grok ABI line.
852         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
853         Emit definition for abi-name variable.
855 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
857         * string/endian.h: Define new fixed-size hto* and *toh macros only
858         if [__USE_BSD].
860         * iconvdata/Depend: Add localedata.
862 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
864         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
866 2008-05-08  David S. Miller  <davem@davemloft.net>
868         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
869         HIDDEN_JUMPTARGET.
870         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
871         (__SYSCALL_CLOBBERS): Remove %g* registers.
872         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
873         (__SYSCALL_CLOBBERS): Likewise.
874         * scripts/data/localplt-sparc-linux-gnu.data: New file.
875         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
877 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
879         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
880         (CALL_ERRNO_LOCATION): Define.
881         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
882         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
883         (CALL_ERRNO_LOCATION): Define.
884         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
885         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
886         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
888 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
890         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
891         variable.
893 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
895         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
896         (FIRST_FRAME_POINTER): Define.
898 2008-05-09  David S. Miller  <davem@davemloft.net>
900         * sysdeps/sparc/sparc64/backtrace.c: New file.
902 2008-05-14  David S. Miller  <davem@davemloft.net>
904         * sysdeps/sparc/machine-gmon.h: New file.
905         * sysdeps/sparc/sparc-mcount.S: Likewise.
906         * sysdeps/sparc/Makefile: Add sparc-mcount target to
907         sysdep_routines in gmon directory.
909 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
911         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
913 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
915         * resolv/res_query.c (__libc_res_nquery): In case one of two
916         answer was too short don't try to read that answer's header.
918         * resolv/res_send.c (send_dg): In case of timeout and there are
919         two queries and one has been answered, return value indicating
920         success.
922 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
924         * nscd/cache.c (cache_add): Take additional parameter specifying
925         whether this is in response of a cache refill.  Check alignment
926         of package data.  Revamp waking of pruning thread.
927         (prune_cache): Small optimization.
928         * nscd/nscd.h: Adjust cache_add prototypes.
929         * nscd/aicache.c: Adjust cache_add calls.
930         * nscd/grpcache.c: Likewise.
931         * nscd/hstcache.c: Likewise.
932         * nscd/initgrcache.c: Likewise.
933         * nscd/pwdcache.c: Likewise.
934         * nscd/servicescache.c: Likewise.
935         * nscd/connections.c (restart): Really disable cache use before
936         exec attempt.  If it fails, reenable cache.
937         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
938         time to max to be able to notice concurrent cache additions.  Unlock
939         prune_lock while performing gc.  Afterwards compute wakeup time with
940         current wakeup_time value in mind.
942 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
944         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
946         * nscd/mem.c (gc): Correctly determine highest used array element
947         in mark.
949         * nscd/mem.c (markrange): Add assert to check entries are all
950         aligned.  Small cleanup in bitmap use.
952         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
953         blockoff of type nscd_ssize_t.
954         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
955         (mempoll_alloc): Record block offset and not address.
957         * nscd/mem.c (gc): Fix test for stack overuse.
959         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
960         more asserts.
962         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
963         entry is available, believe it.
965         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
966         no answers return NSS_STATUS_NOTFOUND.
967         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
968         buffer does not have any content.
970 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
972         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
974         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
975         lookup, don't assign canon unconditionally.
977 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
979         * string/Makefile (distribute): Add str-two-way.h.
981 2008-03-29  Eric Blake  <ebb9@byu.net>
983         Rewrite string searches to O(n) rather than O(n^2).
984         * string/str-two-way.h: New file.  For linear fixed-allocation
985         string searching.
986         * string/memmem.c: New implementation.
987         * string/strstr.c: New implementation.
988         * string/strcasestr.c: New implementation.
990 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
992         * posix/regcomp.c (optimize_utf8): Add a note on why we test
993         opr.ctx_type.
994         (calc_first): Initialize constraint field.
995         (duplicate_node_closure): Use it instead of special casing ANCHORS.
996         Use search_duplicated_node to avoid loops.  Fix grammar.
997         (duplicate_node): Merge constraint field for all node types.
998         (calc_eclosure_iter): Look at constraint field for all node types.
999         * posix/regex_internal.c (create_cd_newstate): Don't look at
1000         create_cd_newstate.
1002 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1004         [BZ #6428]
1005         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
1007         [BZ #6442]
1008         * string/endian.h: Add macros for fixed-size endian conversion.
1009         * bits/byteswap.h: Allow inclusion from <endian.h>.
1010         * sysdeps/i386/bits/byteswap.h: Likewise.
1011         * sysdeps/ia64/bits/byteswap.h: Likewise.
1012         * sysdeps/s390/bits/byteswap.h: Likewise.
1013         * sysdeps/x86_64/bits/byteswap.h: Likewise.
1014         * string/Makefile (tests): Add tst-endian.
1015         * string/tst-endian.c: New file.
1017         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
1018         Patch by Reuben Thomas.
1020 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
1022         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
1024 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
1026         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
1028         [BZ #6461]
1029         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
1030         Add missing braces.
1031         (BODY for __gconv_transform_internal_ascii): Likewise.
1033         [BZ #6472]
1034         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
1035         to be treated like link-local addresses.
1036         (match_prefix): Don't treat IPv4 loopback address special when
1037         converting to v4 mapped addressed.
1039         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
1040         if necessary.
1041         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
1042         * posix/tst-rfc3484-2.c: Likewise.
1043         * posix/tst-rfc3484-3.c: Likewise.
1045         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
1046         and SCTP.
1048         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
1050         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
1052         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
1054 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
1056         * po/lt.po: New file.  From Lituanian translation team.
1058 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
1060         Introduce TLS descriptors for i386 and x86_64.
1061         * include/inline-hashtab.h: New file, copied from 2005's
1062         libiberty, with fix for memory leak imported afterwards by
1063         Glauber de Oliveira Costa.
1064         * elf/tlsdeschtab.h: New file.
1065         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
1066         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
1067         (CHECK_STATIC_TLS): Move to...
1068         * elf/dynamic-link.h: ... this file.
1069         (TRY_STATIC_TLS): New macro.
1070         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
1071         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
1072         R_386_TLS_DESC): Define.
1073         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
1074         binutils.
1075         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
1076         R_X86_64_TLSDESC): Define.
1077         (R_386_NUM, R_X86_64_NUM): Adjust.
1078         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
1079         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1080         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1081         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
1082         release tlsdesc_table.
1083         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
1084         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
1085         (elf_machine_rel): Handle R_386_TLS_DESC.
1086         (elf_machine_rela): Likewise.
1087         (elf_machine_lazy_rel): Likewise.
1088         (elf_machine_lazy_rela): Likewise.
1089         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
1090         * sysdeps/i386/dl-tlsdesc.S: New file.
1091         * sysdeps/i386/dl-tlsdesc.h: New file.
1092         * sysdeps/i386/tlsdesc.c: New file.
1093         * sysdeps/i386/tlsdesc.sym: New file.
1094         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
1095         tlsdesc_table.
1096         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
1097         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
1098         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
1099         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
1100         release tlsdesc_table.
1101         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
1102         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
1103         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
1104         (elf_machine_rel): Handle R_X86_64_TLSDESC.
1105         (elf_machine_rela): Likewise.
1106         (elf_machine_lazy_rel): Likewise.
1107         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
1108         (__tls_get_addr): Do not declare for non-shared compiles.
1109         * sysdeps/x86_64/dl-tlsdesc.S: New file.
1110         * sysdeps/x86_64/dl-tlsdesc.h: New file.
1111         * sysdeps/x86_64/tlsdesc.c: New file.
1112         * sysdeps/x86_64/tlsdesc.sym: New file.
1113         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
1114         tlsdesc_table for both 32- and 64-bit structs.
1116 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
1118         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
1119         its own function.  This reduces the frame setup costs and more.
1121 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
1123         [BZ #3406]
1124         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
1125         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
1127 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
1129         * io/openat.c (__openat_2): Also pass fd to __openat.
1130         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
1131         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
1133         * string/tester.c (test_memcmp): Add a few more tests.
1134         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
1136 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
1138         * nscd/cache.c (cache_add): Before returning with failure and this
1139         is the first use of the record, mark it as unusable.
1140         * nscd/aicache.c: Don't touch the dataset after cache_add returns
1141         reporting a failure.
1142         * nscd/grpcache.c: Likewise
1143         * nscd/hstcache.c: Likewise.
1144         * nscd/initgrcache.c: Likewise.
1145         * nscd/pwdcache.c: Likewise.
1146         * nscd/servicescache.c: Likewise.
1148 2008-05-10  Roland McGrath  <roland@redhat.com>
1150         [BZ #6505]
1151         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
1153 2008-05-08  David S. Miller  <davem@davemloft.net>
1155         * misc/truncate64.c (truncate64): Use __truncate not truncate.
1157         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
1158         (__ieee754_y0l): Likewise.
1159         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1160         (__ieee754_y1l): Likewise.
1161         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
1162         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
1163         frexpl and ldexpl.  math_private.h provides them and the latter
1164         is not even used.
1165         (__log1pl): Use __frexpl.
1167 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
1169         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
1170         prototypes.
1171         * include/arpa/nameser_compat.h: Define T_UNSPEC.
1172         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
1173         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
1174         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
1175         af==AF_UNSPEC.
1176         (_nss_nis_gethostbyname4_r): New function.
1177         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
1178         Change to also handle af==AF_UNSPEC.
1179         (get_tablename): New function.  Use it to avoid duplication.
1180         (_nss_nisplus_gethostbyname4_r): New function.
1181         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
1182         available.
1183         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
1184         * nss/nss.h: Define struct gaih_addrtuple.
1185         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
1186         af==AF_UNSPEC.
1187         (_nss_files_gethostbyname4_r): New function.
1188         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
1189         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
1190         calls.
1191         * resolv/res_query.c (__libc_res_nquery): Take two additional
1192         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
1193         look up IPv4 and IPv6.
1194         Change all callers.
1195         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
1196         for an additional query and answer buffer.  Pass to send_vc and
1197         send_dg.
1198         (send_vc): Send possibly two requests and receive two answers.
1199         (send_dg): Likewise.
1200         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
1201         __libc_res_nquery.
1202         (_nss_dns_gethostbyname4_r): New function.
1203         (gaih_getanswer_slice): Likewise.
1204         (gaih_getanswer): Likewise.
1205         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
1206         __libc_res_nquery call.
1207         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
1208         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
1209         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
1210         available.
1212 2008-05-05  David S. Miller  <davem@davemloft.net>
1214         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
1215         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
1217 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1219         Fix termios bit macros.
1220         Move *DLY definitions where they belong, in termios.h.
1221         Add *[0-3] definitions.
1222         Fixes confusion between VT and FF.
1223         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
1224         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
1225         are already defined to avoid collision with termios.h.
1226         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
1227         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
1228         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
1229         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
1230         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
1231         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
1232         VTDLY, VT0, VT1): New macros.
1233         [__USE_GNU] (OLCUC): Change value of macro.
1234         [__USE_XOPEN] (OFILL): New macro.
1235         [__USE_BSD] (CRTSCTS): Change value.
1236         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
1237         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
1238         (B7200, B14400, B28800, B76800): New macros.
1240 2008-05-01  David S. Miller  <davem@davemloft.net>
1242         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
1243         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
1244         (gen-as-const-headers): Add it.
1245         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
1246         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
1247         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
1248         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
1250         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
1251         six system call parameters.
1252         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
1254 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
1256         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
1257         RUSAGE_LWP.
1258         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1259         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1261 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
1263         * stdlib/tst-setcontext.c: Include unistd.h.
1265 2008-04-25  David S. Miller  <davem@davemloft.net>
1267         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
1268         Pass "union semun" properly in to sys_ipc, it must be passed
1269         by value, not by reference.
1271 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
1273         * nscd/Makefile (nscd-cflags): Set back to -fpie.
1274         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
1275         * nscd/connections.c (mem_in_flight): Likewise.
1277         * nscd/nscd.h (dbs): Make hidden.
1279         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
1280         Avoid returning -1, return 0 instead.
1282 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
1284         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
1286 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
1288         [BZ #5209]
1289         * sysdeps/unix/sysv/linux/times.c: New file.
1291         [BZ #5381]
1292         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
1293         mem_in_flight_list variables.  Add new parameter to mempool_alloc
1294         prototype.
1295         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
1296         appropriate mem_in_flight element.
1297         (gc): Take allocations which have not yet been committed to the
1298         database into account.
1299         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
1300         Reset mem_in_flight before returning.
1301         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
1302         cue it up in mem_in_flight_list.
1303         * nscd/aicache.c: Adjust mempool_alloc call.
1304         * nscd/grpcache.c: Likewise.
1305         * nscd/hstcache.c: Likewise.
1306         * nscd/initgrcache.c: Likewise.
1307         * nscd/pwdcache.c: Likewise.
1308         * nscd/servicescache.c: Likewise.
1309         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
1310         of -fpie.
1312         * nscd/connections.c (handle_request): Provide better error message
1313         in case SELinux forbids the service.
1315         * version.h (VERSION): Bump to 2.8.90.
1317 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
1319         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
1321 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
1323         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
1324         Also use for 32-bit.
1325         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
1326         __nextafter instead of nextafter to avoid local PLT.
1327         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
1328         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
1330         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
1332         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
1333         __fe_nomask_env.
1334         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
1335         <fenv_libc.h> instead of <fenv.h>.
1336         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
1337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
1339         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
1341         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
1342         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
1343         function from fegetexcept and make old name weak alias.
1344         * include/fenv.h: Declare __fegetexcept.
1345         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
1346         fegetexcept.
1347         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
1348         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
1349         to fetestexcept.
1350         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
1351         instead of frexpl to avoid local PLT.
1352         * math/s_significandl.c (__significandl): Use __ilogbl instead of
1353         ilogbl to avoid local PLT.
1354         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
1355         instead of ldexpl to avoid local PLT.
1356         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
1357         __roundl not roundl to avoid local PLT.
1358         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
1359         local PLTs.  Use __sincosl instead of separate sinl and cosl
1360         calls.
1361         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
1363         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
1364         version for ppc64 to 2.4.21 since without it makecontext will fail.
1366         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
1367         to the ABI in use.
1368         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
1369         .__tls_get_addr.
1370         [__powerpc64__] (TLS_GD): Likewise.
1372 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
1374         [BZ #4997]
1375         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
1376         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
1377         mantissa.
1378         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
1379         Likewise.  Also account for when x is an odd number between 2^52
1380         and 2^53-1.
1381         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
1382         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
1383         * math/libm-test.inc (lround_test, llround_test): Added test cases to
1384         detect aforementioned erroneous conditions.
1386 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
1388         * configure.in: Check for -fno-section-anchors in addition to
1389         -fno-toplevel-reorder.
1391 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
1393         * include/features.h (__GLIBC_MINOR__): Bump to 8.
1395         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
1396         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
1397         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
1398         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
1399         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
1400         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
1402 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
1404         [BZ #5443]
1405         * time/era.c: Transform __libc_setlocale_lock into rwlock.
1406         * time/alt_digit.c: Likewise.
1407         * wcsmbs/wcsmbsload.c: Likewise.
1409 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
1411         * version.h (VERSION): Bump to 2.8.
1413         * timzeone/asia: Update from tzdata2008b.
1414         * timezone/backward: Likewise.
1415         * timezone/europe: Likewise.
1416         * timezone/northamerica: Likewise.
1417         * timezone/southamerica: Likewise.
1418         * timezone/iso3166.tab: Likewise.
1419         * timezone/leapseconds: Likewise.
1420         * timezone/zone.tab: Likewise.
1421         * timezone/private.h: Update from tzcode2008a.
1422         * timezone/zdump.c: Likewise.
1423         * timezone/zic.c: Likewise.
1425 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
1427         [BZ #5741]
1428         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
1429         Define additonal Data Cache Block instruction macros.
1430         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
1431         Replace dcbst with dcbf and sync with sync/isync.
1433 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
1435         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
1436         Always set ELF_RTYPE_CLASS_PLT.
1437         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
1439 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
1441         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
1442         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
1443         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
1444         For ISA 2.01 and later replace mftb with mfspr 268.
1446 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
1448         [BZ #5768]
1449         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
1450         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
1452 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
1454         [BZ #5768]
1455         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
1456         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
1457         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
1458         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
1460 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
1462         * stdlib/tst-makecontext.c (othervar): New variable.
1463         (cf): Test sign extending the argument to long.
1465 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
1467         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
1468         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
1469         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
1470         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
1471         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
1472         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
1473         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
1475 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
1477         * elf/Makefile (tests): Substitute tests-vis-yes here.
1478         (tests-vis-yes): Delete.
1479         (modules-name, modules-vis-yes): Similarly.
1481 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
1483         [BZ #4407]
1484         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
1485         Preserve sign in signgamp when x is zero.
1487 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
1489         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
1490         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
1491         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
1492         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
1493         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
1494         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
1496 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
1498         [BZ #4314]
1499         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
1500         buffers.
1502         [BZ #5209]
1503         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
1504         a reserved error value.
1506         * stdlib/tst-makecontext.c: Change parameter to cf to negative
1507         value to check for correct sign extension.
1509         [BZ #5436]
1510         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
1511         Copy 64-bit parameter values even though this is not required in
1512         the standard.
1514         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
1515         PC save.
1517 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
1519         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
1520         PC save.
1522 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
1524         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
1526 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
1528         [BZ #5998]
1529         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
1530         in line-buffered stream failed.
1531         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
1533 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
1535         [BZ #6024]
1536         * scripts/abi-versions.awk: If the version specified by
1537         --enable-oldest-abi is older than the first version for this
1538         architecture, use the default version.
1540         * locale/programs/ld-collate.c (collate_read): Ignore script lines
1541         as well when ignoring the whole category.
1543 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
1545         [BZ #6042]
1546         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
1547         ETHERTYPE_* definitions.
1548         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
1550 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
1552         * stdlib/mbtowc.c (__no_r_state): Remove.
1553         (mbtowc): New static state variable.  Use it instead of
1554         __no_r_state.
1555         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
1556         (__wctomb_state): New hidden variable.
1557         (wctomb): Use __wctomb_state instead of __no_r_state.
1558         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
1559         (__wctomb_state): New extern decl.
1560         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
1562 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
1564         [BZ #5475]
1565         * resolv/res_init.c: Handle scope IDs in resolv.conf.
1567 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
1569         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
1571 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
1573         * po/nl.po: Update from translation team.
1575 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
1577         [BZ #6007]
1578         * string/strfry.c: Handle empty strings again.
1580 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
1582         [BZ #5443]
1583         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
1584         before looking for translation.
1585         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
1586         * locale/freelocale.c: Likewise.
1587         * locale/newlocale.c: Likewise.
1588         * locale/setlocale.c: Likewise.
1589         Based partially on a patch by ryo@np.css.fujitsu.com.
1591 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
1593         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
1594         acquiring wrlock.  Do conv_tab allocation while holding lock.
1595         * intl/Makefile: Add rules to build and run tst-gettext6.
1596         * intl/tst-gettext6.c: New test.
1597         * intl/tst-gettext6.sh: New file.
1599 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
1601         * po/nl.po: Update from translation team.
1603         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
1604         provided through st_blksize, try the default size before giving up.
1606 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
1608         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
1610         [BZ #5939]
1611         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
1613         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
1614         error message.  POSIX today does not require the messages to be in
1615         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
1617         [BZ #5979]
1618         * sunrpc/auth_unix.c: Unify printed strings.
1619         * sunrpc/clnt_tcp.c: Likewise.
1620         * sunrpc/clnt_udp.c: Likewise.
1621         * sunrpc/clnt_unix.c: Likewise.
1622         * sunrpc/svc_tcp.c: Likewise.
1623         * sunrpc/svc_udp.c: Likewise.
1624         * sunrpc/svc_unix.c: Likewise.
1625         * sunrpc/xdr.c: Likewise.
1626         * sunrpc/xdr_array.c: Likewise.
1627         * sunrpc/xdr_rec.c: Likewise.
1628         * sunrpc/xdr_ref.c: Likewise.
1629         * locale/programs/ld-time.c (time_finish): Unify messages.
1630         * locale/programs/locfile.c (handle_copy): Fix typo.
1631         * nscd/nscd.c (options): Fix typo.
1633         [BZ #5995]
1634         * stdlib/strtod_l.c: Use correct sign for result in one more
1635         underflow case.
1636         Patch by Eric Blake <ebb9@byu.net>.
1638 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
1640         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
1641         and creat system calls.
1642         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
1643         call.
1644         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
1645         system calls.
1646         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
1647         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1648         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1650 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
1652         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
1653         <linux/limits.h> has defined it.
1654         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
1655         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
1656         headers.
1657         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
1658         it instead of ARG_MAX.
1660 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
1662         * posix/gai.conf: Fix comment for scope nullbits.
1663         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
1664         default to 128 bits for v4 mapped addresses.
1666 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1668         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
1669         ptrace call to get the ieee_instruction_pointer from the kernel.
1670         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
1671         ptrace call to set the ieee_instructtion_pointer.
1672         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
1673         Add comment that ieee_instruction_pointer is always 0.
1675 2008-03-09  Andreas Jaeger  <aj@suse.de>
1677         [BZ #5857]
1678         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
1679         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
1680         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
1682         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
1683         (rint_test): Likewise.
1685 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
1687         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
1688         call.
1689         (__nisfind_server): Similar for open readColdStartFile call.
1690         Patch partially by Jim Meyering.
1691         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
1692         around internal_setent call.
1694         * po/vi.po: New Vietnamese translation.
1696         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
1697         ADJ_OFFSET_SS_READ.
1699         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
1700         remove CLONE_STOPPED.
1702 2008-02-10  Jim Meyering  <meyering@redhat.com>
1704         Remove useless "if" before "free":
1705         * elf/ldconfig.c (parse_conf_include): Likewise.
1706         * gmon/gmon.c (weak_alias): Likewise.
1707         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
1708         * inet/rcmd.c (__validuser2_sa): Likewise.
1709         * intl/bindtextdom.c (set_binding_values): Likewise.
1710         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
1711         * libio/genops.c (save_for_backup): Likewise.
1712         * libio/wgenops.c (save_for_wbackup): Likewise.
1713         * locale/programs/ld-collate.c (collate_read): Likewise.
1714         * locale/programs/linereader.c (get_string): Likewise.
1715         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
1716         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
1717         * resolv/res_debug.c (do_section): Likewise.
1718         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
1719         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
1720         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
1721         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
1722         * time/tzset.c (tzset_internal): Likewise.
1724 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
1726         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
1727         of ASSEMBLER.
1729 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
1731         [BZ #5903]
1732         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
1733         not stream for output file.  Open output file here.
1734         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
1735         and output file name.
1736         (process_fd): Likewise.
1737         (process_file): Likewise.
1738         (main): Adjust callers of changed functions.
1739         * iconv/iconv_prog.h: Adjust prototype.
1741 2008-03-09  Andreas Jaeger  <aj@suse.de>
1743         [BZ #5753]
1744         * sysdeps/ia64/ieee754.h: Use protected namespace
1745         __BIG_ENDIAN/__LITTLE_ENDIAN.
1746         * sysdeps/ieee754/ieee754.h: Likewise.
1747         Patch by Aurelien Jarno <aurelien@aurel32.net>.
1749 2008-03-08  Roland McGrath  <roland@frob.com>
1751         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
1752         ignore a signal that came from a machine exception, treat it as a
1753         fatal core-dump signal instead.
1754         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
1756         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
1757         Clear DF bit in thread state's eflags.
1758         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
1760 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
1762         [BZ #5774]
1763         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
1764         of NAN(...) sequence.
1765         * stdlib/Makefile (tests): Add tst-strtod6.
1766         * stdlib/tst-strtod6.c: New file.
1768         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
1770         [BZ #5762]
1771         * posix/getopt.c (_getopt_internal_r): Clarify error message by
1772         putting offending option character in quotes.  Clean up error
1773         messages.
1774         * po/be.po: Adjust msgstr in translation file.
1775         * po/bg.po: Likewise.
1776         * po/ca.po: Likewise.
1777         * po/cs.po: Likewise.
1778         * po/da.po: Likewise.
1779         * po/de.po: Likewise.
1780         * po/es.po: Likewise.
1781         * po/fr.po: Likewise.
1782         * po/hr.po: Likewise.
1783         * po/ko.po: Likewise.
1784         * po/nl.po: Likewise.
1785         * po/rw.po: Likewise.
1786         * po/sk.po: Likewise.
1787         * po/sv.po: Likewise.
1788         * po/tr.po: Likewise.
1789         * po/zh_CN.po: Likewise.
1790         * po/zh_TW.po: Likewise.
1792         [BZ #5760]
1793         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
1794         Patch by Roland Bless <roland@bless.de>.
1796         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
1797         .o file.
1798         * elf/Makefile (routines): Add dl-sysdep.
1799         (elide-routines.os): Likewise.
1801 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
1803         [BZ #5786]
1804         * elf/dl-sysdep.c: Undefine ROUND after use.
1805         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
1806         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
1807         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
1808         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
1809         to ...
1810         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
1811         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
1812         if necessary.
1813         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
1815         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
1816         _dl_tls_get_addr_soft element.
1817         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
1818         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
1819         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
1820         GLRO.
1821         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
1822         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
1823         of internal_function.
1825         * stdlib/Makefile (aux): Add tens_in_limb.
1826         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
1827         * stdlib/tens_in_limb.c: ...here.  New file.
1829         [BZ #5778]
1830         * sysdeps/unix/sysv/linux/pathconf.h: Declare
1831         __statfs_chown_restricted.
1832         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
1833         for _PC_CHOWN_RESTRICTED.
1834         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
1835         Implement __statfs_chown_restricted.
1836         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
1837         _POSIX_CHOWN_RESTRICTED value to zero.
1838         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
1839         defined to zero.
1841         * sysdeps/x86_64/rtld-memset.c: New file.
1843 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
1845         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
1847         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
1848         Barcelona machine.  Make default fall through branch of
1849         __x86_64_preferred_memory_instruction check as the integer code path.
1851 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
1853         * sysdeps/x86_64/cacheinfo.c
1854         (__x86_64_preferred_memory_instruction): New variable.
1855         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
1857         * sysdeps/x86_64/memset.S: Rewrite.
1859 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
1861         * include/stdio.h (__asprintf_chk, __dprintf_chk,
1862         __obstack_printf_chk): New prototypes.
1863         (__vasprintf_chk, __vdprintf_chk,
1864         __obstack_vprintf_chk): Likewise.
1865         Add libc_hidden_proto.
1866         * libio/obprintf.c
1867         (_IO_obstack_jumps): No longer static, add attribute_hidden.
1868         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
1869         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
1870         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
1871         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
1872         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
1873         __obstack_vprintf_chk): New prototypes.
1874         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
1875         obstack_vprintf): New inlines.
1876         * debug/dprintf_chk.c: New file.
1877         * debug/vdprintf_chk.c: New file.
1878         * debug/asprintf_chk.c: New file.
1879         * debug/vasprintf_chk.c: New file.
1880         * debug/obprintf_chk.c: New file.
1881         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
1882         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
1883         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
1884         @@GLIBC_2.8.
1885         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
1886         vdprintf_chk and obprintf_chk, set CFLAGS for them.
1887         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
1888         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
1889         libc_hidden_proto.
1890         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
1891         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
1892         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
1893         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
1894         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
1895         @@GLIBC_2.8.
1896         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
1897         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
1898         obstack_vprintf_chk.
1899         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
1900         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
1901         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
1902         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
1903         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
1904         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
1906 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
1908         [BZ #5779]
1909         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
1910         Patch by Roy Marples <roy@marples.name>.
1912         [BZ #5736]
1913         * malloc/malloc.c: Fix typo in comment.
1915         [BZ #5627]
1916         * locale/iso-639.def: Add Shuswap.
1918 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
1920         [BZ #5790]
1921         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
1922         overwrite *h_errnop/*errnop values from getanswer_r in case of
1923         failure.
1925 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
1927         [BZ #5818]
1928         * nscd/connections.c (dbs): Add initializers for .suggested_module.
1929         (verify_persistent_db): Remove one unnecessary test and add a new one
1930         for bad configuration.
1931         (nscd_init): Improve error reported when persistent database cannot
1932         be reused.
1933         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
1934         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
1935         .suggested_module and .max_db_size and case config file says the
1936         values are zero.
1937         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
1939         [BZ #5854]
1940         * nis/ypclnt.c (yp_order): Fix handling of return value of
1941         do_ypcall_tr call.
1942         Patch by Jeff Moyer <jmoyer@redhat.com>.
1944         * po/fr.po: Update from translation team.
1946 2008-02-22  Andreas Jaeger  <aj@suse.de>,
1947             Carlos O'Donell <carlos@systemhalted.org>
1949         [BZ #5012]
1950         * FAQ.in: Describe why glibc needs to be compiled with
1951         optimization.
1953 2008-02-19  Roland McGrath  <roland@redhat.com>
1955         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
1957 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
1959         [BZ #5737]
1960         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
1961         __USE_MISC is defined.
1963 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
1965         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
1966         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
1967         sys/timerfd.h.
1968         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
1969         timerfd_gettime, timerfd_settime.
1970         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
1971         timerfd_gettime, timerfd_settime for GLIBC_2.8.
1973 2008-02-08  Roland McGrath  <roland@redhat.com>
1975         * elf/elf.h (NT_PPC_SPE): New macro.
1977 2008-02-06  Roland McGrath  <roland@redhat.com>
1979         * Makerules ($(common-objpfx)sysd-rules):
1980         Depend on $(sysdep-makeconfigs).
1982 2008-01-31  Roland McGrath  <roland@redhat.com>
1984         [BZ #5442]
1985         * configure.in: Use -print-file-name if it yields a directory,
1986         for each of include and include-fixed.
1987         * configure: Regenerated.
1989         * Makeconfig (sysd-rules-targets): New variable.
1990         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
1991         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
1993 2008-01-30  Roland McGrath  <roland@redhat.com>
1995         * manual/libc.texinfo: Update back-cover text.
1997         * elf/elf.h (NT_386_TLS): New macro.
1999 2008-01-29  Roland McGrath  <roland@redhat.com>
2001         * Makeconfig (sysd-rules-patterns): New variable.
2002         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
2003         (check-inhibit-asm): New canned sequence, replaces ...
2004         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
2005         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
2006         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
2007         (CFLAGS-rtld): Variable removed.
2009 2008-01-24  Roland McGrath  <roland@redhat.com>
2011         * configure.in: Let configure fragments set base_os.
2012         * configure: Regenerated.
2014 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
2016         * po/ko.po: Update from translation team.
2018 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
2020         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
2022 2008-01-12  Andreas Jaeger  <aj@suse.de>
2024         [BZ #5040]
2025         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
2026         Add EPOLLRDHUP.
2028 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2030         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
2031         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
2032         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
2034 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
2036         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
2037         * elf/dl-close.c (_dl_close): Check for it.
2038         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
2039         (_dl_allocate_static_tls): Likewise.
2040         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
2041         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
2042         to it.
2043         * elf/tst-tls16.c: New file.
2044         * elf/tst-tlsmod16a.c: New file.
2045         * elf/tst-tlsmod16b.c: New file.
2046         * elf/Makefile: Add rules to build and run tst-tls16.
2048 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
2050         [BZ #5628]
2051         * bits/shm.h: Fix comment describing shmid_ds.
2052         * sysdeps/gnu/bits/shm.h: Likewise.
2053         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
2054         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2055         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
2056         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2057         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2058         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
2059         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2060         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2061         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
2063         [BZ #5607]
2064         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
2065         prototypes.
2066         * conform/data/limits.h-data: Adjust limits changed in v6 and add
2067         additional suffixes.
2068         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
2069         Add optional functions mq_timedreceive and mq_timedsend.
2070         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
2071         * conform/data/pthread.h-data: Fix prototype of
2072         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
2073         * conform/data/semaphore.h-data: Allow time.h definitions.
2074         * conform/data/signal.h-data: Likewise.
2075         * conform/data/stdio.h-data: getw and putw are not required in v6.
2076         * conform/data/stdlib.h-data: Change setstate prototype.
2077         * conform/data/string.h-data: Fix strerror_r prototype.
2078         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
2079         * conform/data/unistd.h-data: pthread_atfork not required in v6.
2080         Fix readlink prototype.
2081         * conform/data/netinet/in.h-data: Add const to in6addr_any and
2082         in6addr_loopback.
2083         * inet/netinet/in.h: Cleanup namespace.
2084         * posix/regex.h: Likewise.
2085         * resolv/netdb.h: Likewise.
2086         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
2087         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2088         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2089         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
2090         of names of in in6_addr.
2091         (default_precedence): Likewise.
2092         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
2093         NULL definition.
2095 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
2097         * conform/data/fmtmsg.h-data: Add missing allows.
2098         * conform/data/ftw.h-data: Likewise.
2099         * conform/data/inttypes.h-data: Likewise.
2100         * conform/data/math.h-data: Likewise.
2101         * conform/data/signal.h-data: Likewise.
2102         * conform/data/net/if.h-data: Likewise.
2103         * conform/data/netinet/in.h-data: Likewise.
2104         * conform/data/sys/socket.h-data: Likewise.
2106         [BZ #5614]
2107         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
2108         (__strtok_r): Simplify.
2109         * string/tester.c (test_strtok_r): Add test case for futile search
2110         with single-character seach string.
2112 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
2114         * po/ko.po: Update from translation team.
2116 2008-01-11  Andreas Jaeger  <aj@suse.de>
2118         [BZ #5600]
2119         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
2120         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
2121         kernel header.
2123 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
2125         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
2126         native interface lookup in all the relevant places.
2128 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
2129             Ulrich Drepper  <drepper@redhat.com>
2131         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
2132         field.  Use sockaddr_in6 for source_addr.
2133         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
2134         (match_prefix): Likewise.
2135         (get_label): Likewise.
2136         (get_precedence): Likewise.
2137         (rfc3484_sort): Change to use indirect access to results array.
2138         Adjust to use of sockaddr_in6.  Replace service_order test with
2139         simple index comparison.
2140         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
2141         service_order field.  Adjust qsort_t calls.  Access sorted result
2142         array indirectly through order array.
2143         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
2144         * posix/tst-rfc3484-2.c: Likewise.
2145         * posix/tst-rfc3484-3.c: Likewise.
2147 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
2149         [BZ #5541]
2150         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
2151         pollfd structures.
2152         Patch by André Cruz.
2154         [BZ #5545]
2155         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
2156         (clnt_spcreateerror): Likewise.
2158         [BZ #5553]
2159         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
2160         (public_mEMALIGn): Likewise.
2161         Patch mostly by Daniel Jacobowitz.
2163 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
2165         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
2166         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
2167         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
2168         * stdlib/tst-makecontext2.c: New test.
2170 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
2172         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
2173         defined.
2174         (REINIT_PARAMS): Likewise.  Undefine before end of file.
2175         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
2176         transliteration hooks and REINIT_PARAMS afterwards.
2177         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
2178         status.
2179         (REINIT_PARAMS): Define.
2180         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
2181         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
2182         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
2183         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
2184         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
2185         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
2186         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
2187         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
2188         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
2189         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
2190         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
2191         * iconvdata/tst-iconv7.c: New test.
2193 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
2195         * libio/stdio.h (vscanf): Fix definition for loser compilers.
2197 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
2199         [BZ #5112]
2200         * nscd/connections.c (restart): Fix condition.
2202 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
2204         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
2205         __ctype_toupper_loc): Add __THROW.
2207 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
2209         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
2210         recognition of interface family.
2212         * posix/getconf.c: Update copyright year.
2213         * nss/getent.c: Likewise.
2214         * iconv/iconvconfig.c: Likewise.
2215         * iconv/iconv_prog.c: Likewise.
2216         * elf/ldconfig.c: Likewise.
2217         * catgets/gencat.c: Likewise.
2218         * csu/version.c: Likewise.
2219         * elf/ldd.bash.in: Likewise.
2220         * elf/sprof.c (print_version): Likewise.
2221         * locale/programs/locale.c: Likewise.
2222         * locale/programs/localedef.c: Likewise.
2223         * nscd/nscd.c (print_version): Likewise.
2224         * debug/xtrace.sh: Likewise.
2225         * malloc/memusage.sh: Likewise.
2226         * malloc/mtrace.pl: Likewise.
2227         * debug/catchsegv.sh: Likewise.
2229 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
2231         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
2232         second lookup.
2234 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
2236         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
2237         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2239 2007-12-17  Roland McGrath  <roland@redhat.com>
2241         * inet/ether_line.c (ether_line): Remove unused variable.
2243 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2245         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
2246         and winp.
2247         * login/openpty.c (openpty): Likewise.
2248         * login/pty.h (openpty, forkpty): Likewise.
2249         * manual/terminal.texi (openpty, forkpty): Likewise.
2251 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
2253         * malloc/malloc.c (public_cALLOc): For arenas other than
2254         main_arena, count all bytes inside the mprotect_size range of the
2255         heap as uninitialized.
2257 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
2259         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
2260         executable stacks.
2262         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
2263         mTRIm for all of them.
2264         (mTRIm): Additionally iterate over all free blocks and use madvise
2265         to free memory for all those blocks which contain at least one
2266         memory page.
2267         * malloc/tst-trim1.c: New file.
2268         * malloc/Makefile (tests): Add tst-trim1.
2270         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
2272 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
2274         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
2275         First cast argument to long
2276         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
2277         Return long.
2278         (__vdso_clock_gettime): Likewise.
2279         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
2280         return long.
2282 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
2284         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
2285         * locale/nl_langinfo_l.c: Real implementation, copied from
2286         nl_langinfo.c.
2287         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
2289 2007-12-01  Jim Meyering  <meyering@redhat.com>
2291         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
2292         that would inhibit utf8-optimization of a regexp containing line-
2293         or buffer-anchors, e.g., `^', `$'.
2295 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
2297         * time/bug-getdate1.c (do_test): Don't use century values which
2298         aren't valid on 32-bit systems.
2300 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
2302         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
2303         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
2304         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
2305         __strcat_g, __strncat_g): Add __asm__.
2307 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
2309         [BZ #5477]
2310         * io/fchmodat.c: Fix typo in stub_warning use.
2311         Patch by Petr Salinger.
2313 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
2315         * iconvdata/hp-thai8.c: New file.
2316         * iconvdata/Makefile: Add rules for hp-thai8.c.
2317         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
2318         * iconvdata/gconv-modules: Likewise.
2320         [BZ #5464]
2321         * iconvdata/hp-greek8.c: New file.
2322         * iconvdata/Makefile: Add rules for hp-greek8.c.
2323         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
2324         * iconvdata/gconv-modules: Likewise.
2326         [BZ #5463]
2327         * iconvdata/hp-turkish8.c: New file.
2328         * iconvdata/Makefile: Add rules for hp-turkish8.c.
2329         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
2330         * iconvdata/gconv-modules: Likewise.
2332         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
2333         (shrink_heap): ... this new function.
2334         (heap_trim): Call shrink_heap instead of grow_heap.
2336         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
2337         case don't call alloc_perturb.
2339 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
2341         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
2342         possible.
2343         * sysdeps/unix/sysv/linux/kernel-features.h
2344         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
2345         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
2347 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
2349         [BZ #5424]
2350         * stdio-common/vfprintf.c: Do not overflow when adding to done.
2351         * stdio-common/Makefile (tests): Add bug22.
2352         * stdio-common/bug22.c: New file.
2354         [BZ #5451]
2355         * time/getdate.c: Fix filling in default values.
2356         * time/bug-getdate1.c: New file.
2357         * time/Makefile: Add rules to build and run bug-getdate1.
2359         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
2360         * iconvdata/ebcdic-es.c: Likewise.
2361         * iconvdata/ebcdic-es-a.c: Likewise.
2362         * iconvdata/ebcdic-uk.c: Likewise.
2363         * iconvdata/iso8859-16.c: Likewise.
2364         * iconvdata/viscii.c: Likewise.
2365         * iconvdata/iso8859-9e.c: Likewise.
2366         * iconvdata/Makefile: Adjust appropriately.
2368         [BZ #5428]
2369         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
2370         __need_wint_t.
2372 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
2374         [BZ #5427]
2375         * iconvdata/hp-roman9.c: New file.
2376         * iconvdata/Makefile: Add rules for hp-roman9.c.
2377         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
2378         * iconvdata/gconv-modules: Likewise.
2380         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
2381         * iconvdata/Makefile: Adjust appropriately.
2383         [BZ #5441]
2384         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
2385         structure, it's allocated with alloca.
2386         * stdio-common/Makefile (tests): Add bug21.
2387         * stdio-common/bug21.c: New file.
2389 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
2391         [BZ #5452]
2392         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
2393         keyword for gcc's braced-groups.
2395 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
2397         [BZ #5454]
2398         * inet/ether_line.c: Strip hostname of whitespaces.
2399         * inet/Makefile (tests): Add tst-ether_line.
2400         * inet/tst-ether_line.c: New file.
2402 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
2404         [BZ #5439]
2405         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
2407         [BZ #5435]
2408         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
2410         * stdlib/tst-setcontext.c: Catch the case where the links gets
2411         messed up and we do not reach main again.
2413         * po/ca.po: Update from translation team.
2415 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
2417         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
2418         * posix/regex.h (REG_ENOSYS): Likewise.
2419         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
2421 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
2423         * nscd/nscd.h (MAX_STACK_USE): Define.
2424         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
2425         (gc): Initialize stack_used based on allocation in prune_cache.
2426         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
2427         Clear array before use.
2429         * nscd/aicache.c (addhstaiX): Update statistics counter in case
2430         memory allocation failed.
2431         * nscd/hstcache.c (cache_addhst): Likewise.
2432         * nscd/grpcache.c (cache_addgr): Likewise.
2433         * nscd/servicescache.c (cache_addserv): Likewise.
2434         * nscd/pwdcache.c (cache_addpw): Likewise.
2435         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2437 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
2439         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
2440         and creat system calls.
2442         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
2444 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2446         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
2447         Add netiucv/iucv.h.
2448         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
2449         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
2450         protocol.
2451         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
2452         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
2453         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
2455 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2457         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
2458         strncat): Define as macros to avoid compile errors.
2460         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
2461         creat entries.
2463 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
2465         [BZ #5382]
2466         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
2467         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
2468         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
2469         overflow it.
2470         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
2472         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
2473         Return zero in case the thread library is not NPTL.
2475         [BZ #5375]
2476         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
2477         initializing interface list.
2479         [BZ #5378]
2480         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
2481         use result of nss_getgrgid_r if nothing was found.  For other
2482         error return with a failure.
2483         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
2485         * locale/programs/ld-collate.c (collate_read): Fix loop to match
2486         macro name.
2488 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
2490         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
2491         (get_scope): For IPv4 scope, use scopes table.
2492         (fini): Free scopes table if necessary.
2493         (free_scopelist): New function.
2494         (scopecmp): New function.
2495         (gaiconf_init): Also handle scopev4 entries.
2496         * posix/tst-rfc3484.c (do_test): Initialize scopes.
2497         * posix/tst-rfc3484-2.c (do_test): Likewise.
2498         * posix/gai.conf: Document scopev4 defaults.
2499         * posix/Makefile (tests): Add tst-rfc3484-3.
2500         * posix/tst-rfc3484-3.c: New file.
2502         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
2503         Teredo tunnels.
2504         * posix/gai.conf: Update for current default tables.
2506 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
2508         * po/tr.po: Update from translation team.
2510 2007-11-18  Roland McGrath  <roland@frob.com>
2512         * manual/arith.texi (Remainder Functions): Spelling fix.
2513         From Shaun Silk <genix@mysoul.com.au>.
2515         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
2517 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
2519         * po/zh_CN.po: Update from translation team.
2521         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
2522         Add sys/signalfd.h and sys/eventfd.h.
2524 2007-11-15  Bruno Haible  <bruno@clisp.org>
2526         [BZ #5346]
2527         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
2528         union.
2529         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
2530         (DCIGETTEXT): Change the allocation of the 'search' variable so that
2531         it needs only fixed stack space. Delay the initialization of
2532         msgid_len until it is needed.
2534 2007-11-15  Andreas Jaeger  <aj@suse.de>
2536         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
2537         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
2539 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
2541         * po/ko.po: Update from translation team.
2543 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
2545         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
2546         significantly.  The device type is also part of the ifinfomsg data.
2548         * po/sv.po: Update from translation team.
2549         * po/nl.po: Likewise.
2551         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
2552         to wake up in 24 hours.
2554         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
2556 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
2558         * po/cs.po: Update from translation team.
2559         * po/pl.po: Likewise.
2561         * include/ifaddrs.h: Remove in6ai_temporary.
2562         (struct in6addrinfo): Add index element.
2563         Declare __check_native.
2564         * inet/Makefile (aux): Add check_native.
2565         * sysdeps/unix/sysv/linux/check_native.c: New file.
2566         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
2567         IFA_F_TEMPORARY.  Pass back ifa_index.
2568         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
2569         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
2570         call __check_native if necessary.
2571         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
2572         to sort addresses.  Pass information about the results.
2573         * posix/tst-rfc3484.c: Adjust for addition of index field and change
2574         of rfc3484_sort interface.
2575         * posix/tst-rfc3484-2.c: Likewise.
2577         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
2578         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
2579         for _quicksort.
2580         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
2581         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
2582         on as third parameter to compare function and _quicksort.
2583         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
2584         to the compare function.
2585         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
2586         * Versions.def: Add GLIBC_2.8 for libc.
2588         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
2589         * posix/tst-rfc3484-2.c: Likewise.
2591         * include/kernel-features.h: Moved to...
2592         * sysdeps/mach/hurd/kernel-features.h: ...here.
2594 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
2596         * sysdeps/i386/i586/memcpy_chk.S: New file.
2597         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
2598         * sysdeps/i386/i586/memset_chk.S: Likewise.
2600 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
2602         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
2603         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
2604         list of interfaces.  Also store prefix length.
2605         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
2606         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
2607         prefix if source and destination address are in the same subnet.
2608         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
2609         Always look for matching record in in6ai list.
2610         Correct source_addr_len value for IPv6->IPv4 converted records.
2612 2007-11-11  Roland McGrath  <roland@frob.com>
2614         * include/kernel-features.h: New file.
2616 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
2618         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
2619         complications for 64-bit platforms.
2621         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
2622         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
2623         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
2624         open64_2.
2625         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
2626         entries.
2627         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2628         * sysdeps/wordsize-64/alphasort.c: New file.
2629         * sysdeps/wordsize-64/alphasort64.c: New file.
2630         * sysdeps/wordsize-64/fseeko.c: New file.
2631         * sysdeps/wordsize-64/fseeko64.c: New file.
2632         * sysdeps/wordsize-64/ftello.c: New file.
2633         * sysdeps/wordsize-64/ftello64.c: New file.
2634         * sysdeps/wordsize-64/ftw.c: New file.
2635         * sysdeps/wordsize-64/ftw64.c: New file.
2636         * sysdeps/wordsize-64/iofgetpos.c: New file.
2637         * sysdeps/wordsize-64/iofgetpos64.c: New file.
2638         * sysdeps/wordsize-64/iofopen.c: New file.
2639         * sysdeps/wordsize-64/iofopen64.c: New file.
2640         * sysdeps/wordsize-64/iofsetpos.c: New file.
2641         * sysdeps/wordsize-64/iofsetpos64.c: New file.
2642         * sysdeps/wordsize-64/lockf.c: New file.
2643         * sysdeps/wordsize-64/lockf64.c: New file.
2644         * sysdeps/wordsize-64/mkostemp.c: New file.
2645         * sysdeps/wordsize-64/mkostemp64.c: New file.
2646         * sysdeps/wordsize-64/mkstemp.c: New file.
2647         * sysdeps/wordsize-64/mkstemp64.c: New file.
2648         * sysdeps/wordsize-64/scandir.c: New file.
2649         * sysdeps/wordsize-64/scandir64.c: New file.
2650         * sysdeps/wordsize-64/tmpfile.c: New file.
2651         * sysdeps/wordsize-64/tmpfile64.c: New file.
2652         * sysdeps/wordsize-64/versionsort.c: New file.
2653         * sysdeps/wordsize-64/versionsort64.c: New file.
2654         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
2655         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
2656         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
2657         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
2658         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
2659         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
2660         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
2661         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
2662         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
2663         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
2664         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
2665         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
2667         * crypt/sha256-crypt.c: Fix a comment.
2668         * crypt/sha512-crypt.c: Likewise.
2670 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
2672         * sysdeps/x86_64/memset.S: Add sfence after movnti.
2674 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
2676         [BZ #5277]
2677         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
2678         because output buffer is too small break, don't loop.
2679         * iconvdata/Makefile (tests): Add bug-iconv6.
2680         * iconvdata/bug-iconv6.c: New file.
2682 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
2684         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
2685         with size_t type.
2686         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
2687         size_t.  Add casts where needed.
2689         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
2690         old headers, don't call avc_has_perm if we don't have the
2691         permission information.
2693 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
2695         * elf/rtld.c (dl_main): Use the page size to find the map start.
2697 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
2699         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
2700         Patch by Szymon Siwek <sls@poczta.wp.pl>.
2702         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
2703         when the lookup call failed.
2705         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
2706         Add prune_cond and wakeup_time.
2707         (CACHE_PRUNE_INTERNAL): Define.
2708         Update declarations of prune_cache and setup_thread.
2709         * nscd/connections.c (dbs): Update initializers.
2710         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
2711         (nscd_init): Default number of threads is now 4.
2712         (invalidate_cache): Take lock before calling prune_cache.
2713         (handle_request): If SELinux forbids the request, say so.
2714         (readylist_cond): Use static initializer.
2715         (nscd_run_prune): New function.  Used only by pruning threads.
2716         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
2717         here.
2718         (fd_ready): Update nscd_run reference.
2719         (start_threads): No need to initialize readylist_cond.
2720         Start pruning threads separately.
2721         * nscd/nscd_setup_thread.c: Change return value type to int and always
2722         return 0.
2723         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
2724         to int and return nonzero value if we can use the TID address hack.
2725         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
2726         the database is later than the new entry's timeout, update the
2727         wakeup time and wake the cleanup thread.
2728         (prune_cache): Return seconds the next entry in the database is still
2729         valid.  Remove locking for pruning here.
2730         * nscd/nscd.conf: Document default number of threads.
2732 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
2734         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
2735         stack is properly aligned for the target function.
2736         Correct unwind info.
2738         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
2739         when using auditing libraries.
2741 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
2743         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
2744         _nss_dns_getnetbyaddr2_r.
2745         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
2746         extra parameter to getanswer_r.
2747         (_nss_dns_getnetbyaddr_r): Now a wrapper around
2748         _nss_dns_getnetbyaddr2_r.
2750         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
2751         gethstbynm3_r.
2752         * nscd/gethstbynm2_r.c: Remove.
2753         * nscd/gethstbynm3_r.c: New file.
2754         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
2755         __gethostbyaddr_r.
2756         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
2757         __gethostbyaddr_r compatibility wrapper.
2758         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
2759         determining timeout of entry.
2760         (lookup): Take new parameter and pass it to __gethostbyname3_r and
2761         __gethostbyaddr2_r.
2762         (addhstbyX): Pass reference to variable for TTL to lookup and
2763         cache_addhst.
2764         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
2765         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
2766         and __nss_next2.  Remove __nss_services_lookup.
2767         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
2768         Add compat wrapper.
2769         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
2770         __nss_next2.
2771         * nss/getXXent_r.c: Likewise.
2772         * nss/getnssent_r.c: Likewise.
2773         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
2774         does not exist in module, try the optional second name.
2775         (__nss_next2): New function.
2776         (__nss_next): Now wrapper around __nss_next2.
2777         * nss/nsswitch.h: Adjust __nss_lookup prototype.
2778         Declare __nss_next2.
2779         Adjust definition of db_lookup_function type.
2780         * nss/service-lookup.c: Define NO_COMPAT.
2781         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
2782         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
2783         * inet/ether_ntoh.c: Likewise.
2784         * sunrpc/netname.c: Likewise.
2785         * sunrpc/publickey.c: Likewise.
2786         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
2787         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
2788         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
2789         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
2790         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
2792         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
2794         * inet/getnetgrent.c (setup): Encrypt static pointer.
2796 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
2798         [BZ #5204]
2799         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
2800         * crypt/sha512c-test.c: Likewise.
2802         [BZ #5225]
2803         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
2804         to keep track of end of %[ format string element.
2805         * stdio-common/Makefile (tests): Add bug20.
2806         * stdio-common/bug20.c: New file.
2808         [BZ #5222]
2809         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
2810         path elements in counting mode.
2812 2007-10-27  Andreas Jaeger  <aj@suse.de>
2814         [BZ #5040]
2815         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
2817         [BZ #3112]
2818         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
2819         (__cleanup): Free shared library when exiting.
2820         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
2821         (__cleanup): Free shared library when exiting.
2823 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
2825         [BZ #2549]
2826         * math/libm-test.inc (check_float_internal): Support
2827         denormalized return.
2829 2007-10-23  Andreas Jaeger  <aj@suse.de>
2831         [BZ #5208]
2832         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
2833         __LONG_LONG_PAIR to handle little endian byte order.
2834         Suggested by abhishekrai@google.com
2836 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
2838         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
2840 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
2842         * nscd/cache.c (prune_cache): Move test for modified file outside
2843         of locking.
2845 2007-10-21  Andreas Jaeger  <aj@suse.de>
2847         * manual/texinfo.tex: Update to latest version.
2849         * manual/sysinfo.texi (System Parameters): Fix Formatting.
2851         * manual/arith.texi (Status bit operations): Fix formatting.
2853         * manual/errno.texi (Error Messages): Fix formatting.
2855         * manual/sysinfo.texi (System Parameters): Fix formatting.
2857         * manual/libc.texinfo: Update VERSION and UPDATED.
2859 2007-10-19  Roland McGrath  <roland@redhat.com>
2861         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
2863 2007-10-06  David S. Miller  <davem@davemloft.net>
2865         * configure.in: Add sparcv9v2 and sparc64v2.
2866         * scripts/config.sub: Likewise.
2867         * configure: Regenerate.
2868         * elf/elf.h (HWCAP_SPARC_N2): New.
2869         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
2870         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
2871         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
2872         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
2873         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
2874         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
2875         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
2877 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
2879         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
2880         even if the poll result indicates there is data to read.
2881         Patch by Jeff Moyer <jmoyer@redhat.com>.
2883 2007-10-18  Roland McGrath  <roland@redhat.com>
2885         * elf/elf.h (NT_PPC_VMX): New macro.
2887 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
2889         * version.h (VERSION): Set to 2.7.90.
2891 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
2893         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
2894         weak_alias.
2896 2007-10-17  Roland McGrath  <roland@frob.com>
2898         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
2899         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
2901 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
2903         * version.h (VERSION): Bump to 2.7.
2904         * include/features.h (__GLIBC_MINOR__): Bump to 7.
2906         [BZ #5186]
2907         * time/tzset.c (__tz_convert): Don't force testing for a change of
2908         TZ if not called from localtime.  But then also see whether the
2909         file changed, in case __use_tzfile is set.
2911         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
2912         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2913         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2914         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2915         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2916         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2917         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
2918         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
2920 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
2922         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
2923         and admin selects to be able to replace the gai.conf file, lock
2924         data structures around the qsort call.
2926 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
2928         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
2929         new memset.
2930         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
2931         too high for the improvements.  Implement bzero unconditionally for
2932         use in libc.
2934 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
2935             Jakub Jelinek  <jakub@redhat.com>
2937         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
2938         even when time_t is 32-bit.
2939         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
2940         timezone data read by __tzfile_default.  Ensure __tzname[0] is
2941         always set after the search.
2943 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
2945         * time/tzfile.c (__tzfile_read): Help the compiler recognize
2946         unreachable code on 32-bit machines.
2948 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
2950         [BZ #5184]
2951         * time/strftime_l.c: Include stdbool.h.
2952         (my_strftime): New wrapper, old function renamed to...
2953         (__strftime_internal): ... new function.  Add tzset_called
2954         argument, pass it down to recursive calls, don't call tzset ()
2955         if already true, set to true after call to tzset ().
2957 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
2959         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
2960         into account when copying TZ string.
2962 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
2964         * time/tzfile.c (__tzfile_compute): For use_last case set i to
2965         num_transition rather than num_transitions - 1.
2967 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
2969         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
2970         PIC indirect jump.
2972         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
2973         a local label rather than HIDDEN_JUMPTARGET.
2975 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
2977         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
2978         (init_cacheinfo): Initialize it.
2979         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
2980         Always define bzero.
2981         Remove non-glibc code.
2982         * sysdeps/x86_64/bzero.S: Make an empty file.
2984 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2986         * sysdeps/x86_64/cacheinfo.c
2987         (__x86_64_preferred_memory_instruction): New.
2988         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
2990         * sysdeps/x86_64/memset.S: Rewrite.
2992 2007-10-15  Roland McGrath  <roland@redhat.com>
2994         * po/libc.pot: Regenerated.
2996 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
2998         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
2999         pointers.
3001         [BZ #3425]
3002         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
3003         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
3004         address record to T_A/T_AAAA requests.
3006 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
3008         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
3010         * posix/glob.c: Add some branch prediction throughout.
3012         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
3013         read from nscd.
3015         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
3016         service_order.
3017         (rfc3484_sort): Make sure that even if qsort doesn't support
3018         stable sorting out sorting here is stable by comparing service_order.
3019         (getaddrinfo): Initialize service_order.
3020         * posix/tst-rfc3484.c (do_test): Adjust for addition of
3021         service_order field to sorting structure.
3022         * posix/tst-rfc3484-2.c (do_test): Likewise.
3024         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
3025         * time/tzset.c (tzset_internal): Break TZ string parsing out into
3026         __tzset_parse_tz and updating of daylight, timezone, tzname into
3027         update_vars.
3028         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
3029         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
3030         happens in __tz_compute.
3031         * time/tzfile.c (__tzfile_read): Also read TZ string.
3032         (find_transition): Fold into __tzfile_compute.
3033         (__tzfile_compute): For times beyond the last transition try to
3034         use the TZ string.
3035         * timezone/tst-timezone.c: Information in daylight and tzname does
3036         change for Asia/Tokyo timezone with more concrete information.
3037         Remove the test.
3039         * include/stdio.h: Add libc_hidden_proto for ftello.
3040         * libio/ftello.c: Add libc_hidden_def.
3042         [BZ #1140]
3043         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
3044         on the specified time and not the last entries in the file.  Move
3045         code to determine tzname[] to...
3046         (find_transition): ...here.  Add ugly guess for times before the
3047         first transition.
3049 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
3051         [BZ #3195]
3052         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
3053         no entry.
3054         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
3055         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
3056         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
3057         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
3059         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
3060         read mechanism when there are no group members and avoid no-op
3061         read syscall in this case.
3063         [BZ #3242]
3064         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
3065         (__readall): If reading failed due to EAGAIN error wait a bit
3066         and possibly try again.
3067         (__readvall): Likewise.
3069 2007-10-13  Bruno Haible  <bruno@clisp.org>
3071         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
3072         when we cannot recode the message.
3074 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
3076         [BZ #4359]
3077         * libio/__freading.c (__freading): Don't return true for
3078         write-only streams.  For read/write streams, check whether we
3079         performed a read operation already.
3080         * libio/Makefile (tests): Add tst-ext2.
3081         * libio/tst-ext2.c: New file.
3083 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
3085         * locale/programs/repertoire.c (repertoire_read): Always free
3086         memory for repertoire file name [Coverity CID 270].
3088         * elf/cache.c (save_aux_cache): Free memory allocated for
3089         temporary file name [Coverity CID 267].
3091 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
3093         * misc/Makefile (headers): Add bits/error.h.
3095 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
3097         * posix/fnmatch_loop.c: Take rule index returned as part of
3098         findidx return value into account when accessing weights.
3099         * posix/regcomp.c: Likewise.
3100         * posix/regexec.c: Likewise.
3102         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
3103         (skip_to): Fix problems with parameter of elifdef/elifndef.
3105 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
3107         * iconv/gconv_simple.c: Add some branch prediction.
3109 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
3111         * locale/programs/ld-collate.c (collate_read): If ignore_content
3112         and nowtok is tok_define, eat any tok_eol tokens.
3114 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
3116         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
3117         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
3119         * inet/netinet/in.h: Don't include bits/socket.h.
3120         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
3121         macro.
3122         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
3124 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
3126         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
3127         and tok_elifndef.
3128         * locale/programs/locfile-kw.gperf: Likewise.
3129         * locale/programs/ld-collate.c: Implement primitive preprocessor.
3131 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
3133         * stdio-common/printf-parse.h: Include string.h and wchar.h.
3134         (__find_specwc): Change into __extern_always_inline function.
3135         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
3136         (__parse_one_specmb): Remove ps argument.
3137         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
3138         Adjust __find_specmb and __parse_one_specmb callers.
3139         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
3140         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
3141         Removed.
3142         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
3143         caller.
3145 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
3147         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
3148         with some Pentium Ds.
3150 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
3152         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
3153         __read not read.
3154         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
3155         __write not write.
3157 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
3159         [BZ #181]
3160         * locale/C-time.c: Set week_1stday data to 19971201.
3161         * locale/programs/ld-time.c (time_finish): Default for
3162         first_workday is Monday.
3164         [BZ #2633]
3165         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
3167         [BZ #5103]
3168         * posix/glob.c (glob): Recognize patterns starting \/.
3169         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
3170         (main): Add test for pattern starting \/.
3172         * misc/error.h: Use __const instead of const.
3173         * misc/bits/error.h: Likewise.
3175 2007-10-07  Andreas Jaeger  <aj@suse.de>
3177         * include/bits/error.h: New file.
3179         * misc/bits/error.h (error_at_line): Fix prototype.
3181 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
3183         [BZ #3924]
3184         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
3185         more little bugs in creating the stack frame when pltexit has to
3186         be called.
3188         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
3189         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
3191         [BZ #4407]
3192         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
3193         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
3194         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
3195         * math/libm-test.inc: Add test for this case.
3197         [BZ #5010]
3198         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
3199         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
3200         map service succeeded.
3201         (svc_is_mapped): New function.
3202         (svc_unregister): Use it before trying to unmap service.
3204 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
3206         * timezone/zic.c: Update from tzcode2007h.
3208         [BZ #5063]
3209         * timezone/africa: Update from tzdata2007h.
3210         * timezone/antarctica: Likewise.
3211         * timezone/asia: Likewise.
3212         * timezone/australasia: Likewise.
3213         * timezone/europe: Likewise.
3214         * timezone/leapseconds: Likewise.
3215         * timezone/northamerica: Likewise.
3216         * timezone/southamerica: Likewise.
3217         * timzeone/zone.tab: Likewise.
3219         [BZ #5104]
3220         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
3222         [BZ #5113]
3223         * string/bits/string2.h (__strdup): Cast parameters to calloc to
3224         avoid warning with -Wconversion.
3225         (__strndup): Likewise.
3226         Half the patch by Christian Iseli <christian.iseli@licr.org>.
3228         [BZ #5112]
3229         * nscd/connections.c (restart): Don't resync if database is
3230         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
3232         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
3233         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
3235         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
3236         evetnfd_read, eventfd_write.
3237         * sysdeps/unix/sysv/linux/eventfd.c: New file.
3238         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
3239         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
3240         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
3241         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
3242         eventfd_write for GLIBC_2.7.
3244         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
3245         * sysdeps/unix/sysv/linux/signalfd.c: New file.
3246         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
3247         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
3249 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
3251         * stdlib/msort.c: Include stdint.h.
3252         (struct msort_param): New type.
3253         (msort_with_tmp): Use struct msort_param pointer for unchanging
3254         parameters.  Add optimized handling for several common sizes
3255         and indirect sorting mode.
3256         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
3257         sorting.
3258         Suggested by Belazougui Djamel .
3260         * stdlib/Makefile (tests): Add tst-qsort2.
3261         * stdlib/tst-qsort2.c: New test.
3263 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
3265         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
3266         for dup2 in case another thread races with the current one.  Retry
3267         in this case.
3269         * misc/error.h: Remove support for use outside of libc.  We have to
3270         include <features.h> now.  Include <bits/error.h> if possible.
3271         * misc/bits/error.h: New file.
3273 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
3275         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
3276         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
3277         __extern_always_inline functions unconditionally, drop macros.
3279         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
3280         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
3281         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
3283         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
3284         add __artificial__ attribute.
3286 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
3288         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
3289         backward to forward direction.
3291         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
3293         [BZ #645]
3294         * locale/programs/ld-collate.c (collate_finish): Compare against last
3295         used section which is known to have rules defined.
3296         (collate_read): After order_start, correctly record order of sections
3297         and queue sections up.
3299 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
3301         [BZ #5071]
3302         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
3303         the same number of pages.
3304         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
3306         * locale/programs/ld-collate.c (collate_read): After initial copy
3307         statement, continue in state 0.
3309         * include/stdio_ext.h (__fsetlocking): Define as macro.
3311 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
3313         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
3314         of section order.
3316         * po/pt_BR.po: Fix typo.
3318 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
3320         * iconvdata/Makefile (modules): Add ISO8859-9E.
3321         (distribute): Add iso8859-9e.c.
3322         (gen-8bit-gap-modules): Add iso8859-9e.
3323         * iconvdata/iso8859-9e.c: New file.
3324         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
3325         * iconvdata/TESTS: Likewise.
3326         * iconvdata/tst-tables.sh: Likewise.
3328         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3330         * locale/iso-639.def: Add several new entries.
3332 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
3334         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
3335         void * pointers instead of struct link_map **.
3336         (_dl_scope_free): Change argument type to void *.
3337         * include/link.h (struct link_map): Change type of l_reldeps
3338         to struct link_map_reldeps, move l_reldepsact into that
3339         struct too.
3340         * elf/dl-deps.c: Include atomic.h.
3341         (_dl_map_object_deps): Only change l->l_initfini when it is
3342         fully populated, use _dl_scope_free for freeing it.  Optimize
3343         removal of libs from reldeps by using l_reserved flag, when
3344         some removal is needed, allocate a new list instead of
3345         reallocating and free the old with _dl_scope_free.  Adjust
3346         for l_reldeps and l_reldepsact changes.
3347         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
3348         searching in l_initfini and l_reldeps without holding dl_load_lock.
3349         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
3350         l_reldepsact changes.
3351         * elf/dl-close.c (_dl_close_worker): Likewise.
3352         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
3354 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
3356         * iconvdata/Makefile (modules): Add KOI8-RU.
3357         (distribute): Add koi8-ru.c.
3358         (gen-8bit-gap-modules): Add koi8-ru.
3359         * iconvdata/koi8-ru.c: New file.
3360         * iconvdata/gconv-modules: Add entries for KOI8-RU.
3361         * iconvdata/TESTS: Likewise.
3362         * iconvdata/tst-tables.sh: Likewise.
3364         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
3366 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
3368         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
3369         with __warning__/__error__ attributes.
3370         (__warnattr): Define.
3371         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
3372         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
3373         __warnattr.
3374         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
3375         of __*_chk if compile time detectable overflow is found.
3376         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
3377         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
3378         with __warnattr.
3379         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
3380         instead of __*_chk if compile time detectable overflow is found.
3381         (__gets_alias): Rename to...
3382         (__gets_warn): ... this.  Add __warnattr.
3383         (gets): Call __gets_warn instead of __gets_alias.
3384         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
3385         aliases with __warnattr.
3386         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
3387         time detectable overflow is found.
3388         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
3389         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
3390         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
3391         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
3392         __getdomainname_chk_warn): New aliases with __warnattr.
3393         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
3394         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
3395         __*_chk_warn instead of __*_chk if compile time detectable overflow
3396         is found.
3397         (__getgroups_chk): Rename argument to __listlen from listlen.
3398         (__getwd_alias): Rename to...
3399         (__getwd_warn): ... this.  Add __warnattr.
3400         (getwd): Call __getwd_warn instead of __getwd_alias.
3401         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
3402         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
3403         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
3404         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
3405         __wcsnrtombs_chk_warn): New aliases with __warnattr.
3406         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
3407         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
3408         compile time detectable overflow is found.
3409         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
3410         to use __*_chk or not.
3411         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
3412         in comparisons which function should be called and in __*_chk*
3413         arguments.  Call __*_chk_warn instead of __*_chk if compile time
3414         detectable overflow is found.
3415         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
3416         __*_chk argument.
3417         * debug/tst-chk1.c (do_test): Add a few more tests.
3419 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
3421         [BZ #5058]
3422         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
3423         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
3424         (_nl_unload_domain): Finalize conversions_lock.
3425         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
3426         handling table of known conversions.
3428 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
3430         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
3431         close_not_cancel_no_status instead of close.
3433 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
3435         [BZ #5028]
3436         * posix/regcomp.c (lookup_collation_sequence_value): Check that
3437         nrules != 0 for multibyte chars.
3439 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
3441         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
3442         Provide better error message in case the type is unknown.
3444         [BZ #4963]
3445         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
3446         * string/stratcliff.c: Make usable to test wide char functions.
3447         * wcsmbs/wcsatcliff.c: New file.
3448         * wcsmbs/Makefiel (tests): Add wcsatcliff.
3450         [BZ #4972]
3451         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
3452         (distribute): Add mac-centraleurope.c.
3453         (gen-8bit-gap-modules): Add mac-centraleurope.
3454         * iconvdata/mac-centraleurope.c: New file.
3455         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
3456         * iconvdata/TESTS: Likewise.
3457         * iconvdata/tst-tables.sh: Likewise.
3459         [BZ #5043]
3460         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
3462 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
3464         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
3465         from __x86_64_core_cache_size_half.
3466         (init_cacheinfo): Compute shared cache size for AMD processors with
3467         shared L3 correctly.
3468         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
3469         name change.
3470         Patch in large parts by Evandro Menezes.
3472 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
3474         * elf/dl-lookup.c (add_dependency): Handle failing memory
3475         allocation for dependency list.  Remove unnecessary check.
3477         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
3478         open/close when determining source addresses.
3480         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
3481         sha512-crypt, and sha512.
3482         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
3483         (distribute): Add sha256.h and sha512.h.
3484         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
3485         and call the appropriate code.
3486         * crypt/sha256-crypt.c: New file.
3487         * crypt/sha256.c: New file.
3488         * crypt/sha256.h: New file.
3489         * crypt/sha256c-test.c: New file.
3490         * crypt/sha256test.c: New file.
3491         * crypt/sha512-crypt.c: New file.
3492         * crypt/sha512.c: New file.
3493         * crypt/sha512.h: New file.
3494         * crypt/sha512c-test.c: New file.
3495         * crypt/sha512test.c: New file.
3497 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
3499         * misc/bits/syslog.h (syslog): Remove extraneous argument from
3500         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
3501         __syslog_chk.
3503 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
3505         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
3506         %as in fscanf format strings.
3508         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
3509         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3510         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
3511         Likewise.
3512         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
3513         Likewise.
3515         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
3516         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
3517         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
3518         * elf/dl-sym.c (do_sym): Likewise.
3519         * include/link.h (struct link_map): Add l_serial field.
3520         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
3521         * elf/dl-lookup.c (add_dependency): Add flags argument.
3522         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
3523         flags, use THREAD_GSCOPE_RESET_FLAG before and
3524         THREAD_GSCOPE_SET_FLAG after
3525         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
3526         Don't dereference map until it has been found on some list.
3527         If map->l_serial changed, return -1.
3529 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
3531         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
3532         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
3533         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
3534         libc_hidden_proto.
3535         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
3536         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
3537         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
3538         add libc_hidden_proto.
3539         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
3540         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
3541         conformance requested.
3542         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
3543         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
3544         conformance requested.
3545         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
3546         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
3547         conformance requested.
3548         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
3549         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
3550         ISO C99 or POSIX conformance requested.
3551         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
3552         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
3553         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
3554         and __isoc99_vsscanf@@GLIBC_2.7.
3555         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
3556         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
3557         (tests): Add scanf14.
3558         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
3559         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
3560         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
3561         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
3562         CFLAGS-isoc99_scanf.c): Add $(exceptions).
3563         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
3564         from using internal headers.
3565         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
3566         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
3567         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
3568         and __isoc99_vswscanf@@GLIBC_2.7.
3569         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
3570         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
3571         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
3572         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
3573         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
3574         * stdio-common/isoc99_scanf.c: New file.
3575         * stdio-common/isoc99_vsscanf.c: New file.
3576         * stdio-common/isoc99_vscanf.c: New file.
3577         * stdio-common/isoc99_vfscanf.c: New file.
3578         * stdio-common/isoc99_fscanf.c: New file.
3579         * stdio-common/isoc99_sscanf.c: New file.
3580         * wcsmbs/isoc99_fwscanf.c: New file.
3581         * wcsmbs/isoc99_vswscanf.c: New file.
3582         * wcsmbs/isoc99_swscanf.c: New file.
3583         * wcsmbs/isoc99_wscanf.c: New file.
3584         * wcsmbs/isoc99_vwscanf.c: New file.
3585         * wcsmbs/isoc99_vfwscanf.c: New file.
3586         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
3587         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
3588         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
3589         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
3590         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
3591         * stdio-common/scanf14.c: New test.
3592         * stdio-common/scanf15.c: New test.
3593         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
3594         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
3595         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
3596         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
3597         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
3598         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
3599         __nldbl___isoc99_scanf@@GLIBC_2.7,
3600         __nldbl___isoc99_fscanf@@GLIBC_2.7,
3601         __nldbl___isoc99_sscanf@@GLIBC_2.7,
3602         __nldbl___isoc99_vscanf@@GLIBC_2.7,
3603         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
3604         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
3605         __nldbl___isoc99_wscanf@@GLIBC_2.7,
3606         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
3607         __nldbl___isoc99_swscanf@@GLIBC_2.7,
3608         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
3609         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
3610         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
3611         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
3612         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
3613         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
3614         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
3615         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
3616         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3617         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
3618         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
3619         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
3620         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
3621         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
3622         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
3623         functions.
3624         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
3625         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
3626         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
3627         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
3628         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
3629         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
3630         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
3631         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
3632         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
3633         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
3634         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
3635         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
3637         * stdio-common/Makefile (tests): Add scanf13.
3638         (scanf13-ENV): New.
3639         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
3640         m modifier followed by l.
3641         (STRING_ARG): Add width argument.
3642         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
3643         <case L_('C')>: Handle %mlc and %mC.
3644         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
3645         arguments.
3646         * stdio-common/scanf13.c: New test.
3648         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
3649         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
3651 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
3653         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
3654         type and __THROW marker of splice, vmsplice, and tee.
3655         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3656         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3657         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3658         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3659         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3660         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
3661         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3662         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
3663         as cancellation points.
3665 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
3667         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
3668         parse more than three parts of the version number.
3670 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
3672         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
3673         modifier.  Patch by Jakub Jelinek.
3675 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
3677         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
3678         call_fallocate in misc subdir.
3679         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
3680         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
3681         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
3682         instead of __fallocate64.
3683         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
3685 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
3687         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
3688         * rt/Makefile (headers): Add bits/mqueue2.h.
3689         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
3690         optimizing with GCC and __va_arg_pack_len is defined.
3691         * rt/bits/mqueue2.h: New file.
3692         * rt/mq_open.c (__mq_open): Renamed from mq_open.
3693         (mq_open): New strong_alias.
3694         (__mq_open_2): New function.
3695         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
3696         (mq_open): New strong_alias.
3697         (__mq_open_2): New function.
3698         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
3699         * Versions.def (librt): Add GLIBC_2.7 version.
3700         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
3701         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
3703         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
3704         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
3705         is defined rather than when not C++.
3706         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
3707         __openat64_alias): New redirects.
3708         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
3709         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
3710         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
3711         (open, open64, openat, openat64): Rewrite as __extern_always_inline
3712         functions instead of function-like macros.
3714 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3716         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
3717         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
3718         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
3720 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
3722         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
3723         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
3725 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
3727         * inet/tst-network.c: Increment ERRORS for failing tests.
3729 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
3731         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
3732         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
3733         implement as __extern_always_inline function.
3734         (vsyslog): Define as __extern_always_inline function unconditionally.
3735         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
3736         When __va_arg_pack is defined, implement as __extern_always_inline
3737         functions.
3738         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
3739         __extern_always_inline functions unconditionally.
3740         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
3741         bits/stdio2.h will be included.
3742         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
3743         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
3744         implement as __extern_always_inline functions.
3745         (vswprintf, vwprintf, vfwprintf): Define as
3746         __extern_always_inline functions unconditionally.
3747         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
3749 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
3751         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
3752         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
3753         attribute.
3754         * include/features.h (__USE_EXTERN_INLINES): Define only when
3755         __extern_inline is defined.
3756         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
3757         is defined instead of when not __cplusplus.
3758         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
3759         is defined instead of when not __cplusplus.
3760         * socket/sys/socket.h: Include bits/socket2.h when
3761         __extern_always_inline is defined instead of when not __cplusplus.
3762         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
3763         is defined instead of when not __cplusplus.
3764         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
3765         is defined instead of when not __cplusplus.
3766         * string/string.h: Include bits/string3.h when __extern_always_inline
3767         is defined instead of when not __cplusplus.
3768         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
3769         is defined instead of when not __cplusplus.
3770         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
3771         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
3772         is not defined.
3773         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
3774         defined __extern_always_inline instead of !defined __cplusplus.
3775         * libio/bits/stdio-ldbl.h: Likewise.
3776         * wcsmbs/bits/wchar-ldbl.h: Likewise.
3777         * misc/bits/syslog.h (syslog): Don't define for C++.
3778         (vsyslog): Use __extern_always_inline function for C++ instead of
3779         a macro.
3780         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
3781         whenever that macro is defined.
3782         (vprintf): Don't provide the inline for C++.
3783         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
3784         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
3785         define the macros for C++.
3786         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
3787         __extern_always_inline functions for C++.
3788         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
3789         stat64, lstat64, fstat64, fstatat64): Don't define if not
3790         __USE_EXTERN_INLINES.
3791         * wcsmbs/bits/wchar2.h: Fix #error message.
3792         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
3793         (vswprintf, vwprintf, vfwprintf): Define using
3794         __extern_always_inline functions for C++.
3795         * string/bits/string3.h: Don't #undef macros if __cplusplus.
3796         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
3797         strncpy, strcat, strncat): Define as __extern_always_inline
3798         functions instead of macros for C++.
3799         * math/bits/cmathcalls.h: Guard __extern_inline routines with
3800         defined __extern_inline.
3801         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
3802         to __extern_inline whenever that macro is defined.
3803         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
3804         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
3805         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
3806         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
3807         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
3808         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
3809         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
3810         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
3811         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
3812         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
3813         prototypes.  Only provide __extern_inline routines if
3814         __USE_EXTERN_INLINES.
3815         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
3816         tests.
3817         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
3818         For now avoid some *printf tests in C++.  Skip all testing
3819         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
3820         is not.
3821         * debug/tst-chk4.cc: New file.
3822         * debug/tst-chk5.cc: New file.
3823         * debug/tst-chk6.cc: New file.
3824         * debug/tst-lfschk4.cc: New file.
3825         * debug/tst-lfschk5.cc: New file.
3826         * debug/tst-lfschk6.cc: New file.
3827         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
3828         prototypes in C++.
3829         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
3830         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
3831         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
3833 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
3835         * po/cs.po: Update from translation team.
3837 2007-09-11  Roland McGrath  <roland@redhat.com>
3839         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
3840         compiling.
3842 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3844         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
3846 2007-09-05  Roland McGrath  <roland@redhat.com>
3848         * manual/signal.texi (Signaling Another Process): Typo fix.
3849         From Karl Berry <karl@freefriends.org>.
3851 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
3853         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
3854         zero if not defined.
3855         (make_request): Recognize optimistic addresses and treat them like
3856         deprecated addresses.
3857         Reported by Neil Horman <nhorman@redhat.com>.
3859 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
3861         * nscd/connections.c (send_ro_fd): Also transfer file size.
3862         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
3863         file size don't call fstat.
3865         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
3866         ahead and map the file.  This should always be correct and we can
3867         catch problems later.
3869 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
3871         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
3872         prototypes.
3873         (__fread_alias, __fread_unlocked_alias): New aliases.
3874         (fread): New extern inline.
3875         (fread_unlocked): Likewise.  Undef macro before definition of
3876         the inline function.
3877         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
3878         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
3879         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
3880         and __fread_unlocked_chk@@GLIBC_2.7.
3881         * debug/fread_chk.c: New file.
3882         * debug/fread_u_chk.c: New file.
3883         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
3885 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
3887         * sysdeps/unix/sysv/linux/syscalls.list
3888         (personality): Change caller to EXTRA.
3890 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
3892         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
3893         to keep gcc quiet.
3894         * iconvdata/iso-2022-cn.c (BODY): Likewise.
3896         * locale/programs/ld-collate.c (collate_output): Avoid warning if
3897         NDEBUG is defined.
3899         * Makerules: Use -p option with mkdir.
3901         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
3902         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
3903         (_xdr_directory_obj): Likewise.
3904         (xdr_entry_obj): Likewise.
3905         (xdr_group_obj): Likewise.
3906         (xdr_link_obj): Likewise.
3907         (xdr_table_obj): Likewise.
3908         (_xdr_nis_result): Likewise.
3909         (_xdr_ns_request): Likewise.
3910         (_xdr_ib_request): Likewise.
3911         (_xdr_nis_taglist): Likewise.
3912         (xdr_cback_data): Likewise.
3913         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
3914         (xdr_ypresp_maplist): Likewise.
3916         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
3918         * posix/regex_internal.h: Prevent some declarations and definitions
3919         to be seen when used in tests.
3921         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
3922         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
3924         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
3926         * config.make.in (datarootdir): Add to shut up configure.
3928         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
3929         associativity for fully-associative caches.
3931         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
3932         requests.  Fill on more associativity values for L2.
3933         Patch mostly by Evandro Menezes.
3935 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
3937         * sysdeps/unix/sysv/linux/x86_64/init-first.c
3938         (_libc_vdso_platform_setup): Avoid using exported variable by using
3939         alias.
3941         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
3943         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
3944         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
3945         defined.
3947 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
3949         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
3950         align stack for call if pltexit is to be used.
3952         [BZ #3924]
3953         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
3954         align for function call in case pltexit has to be called later.
3956         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
3957         implicit atomic operation when storing function pointer.
3958         (_dl_runtime_profile): Likewise.
3960 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
3962         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
3963         NIS_NOTFOUND.
3965 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
3967         [BZ #4566]
3968         * string/strtok.c: Fix typo in comment.
3970         [BZ #4582]
3971         * debug/segfault.c: Fix typos in comments.
3973         [BZ #4588]
3974         * stdio-common/tempnam.c: Fix comment, it is not checked that
3975         TMPDIR points to a writable directory.
3977         [BZ #4726]
3978         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
3979         memory allocated for the name server address.
3981         [BZ #4946]
3982         * nscd/connections.c (handle_request): Using sendfile always
3983         requires that mmap is used for the database.
3984         Patch by Petr Baudis <pasky@suse.cz>.
3986         [BZ #4905]
3987         * nscd/hstcache.c (cache_addhst): When reloading an entry which
3988         suddenly has two or more addresses, ignore it and remove the old
3989         entry.
3991         [BZ #4814]
3992         * resolv/res_hconf.c: Prepare for compiling outside libc.
3993         * nscd/res_hconf.c: New file.
3994         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
3995         the new file.
3996         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
3997         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
3999         * nscd/hstcache.c (cache_addhst): Minimal optimization.
4001         [BZ #4925]
4002         * debug/pcprofiledump.c: Turn on internationalization by calling
4003         setlocale.  Patch mostly by Benno Schulenberg.
4005         [BZ #4936]
4006         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
4007         the state.
4008         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
4009         * iconvdata/bug-iconv5.c: New file.
4011 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
4013         [BZ #4896]
4014         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
4015         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
4016         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
4017         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
4018         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
4019         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
4020         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
4021         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
4023 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
4025         [BZ #4937]
4026         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
4027         lookup loop.  Suggested by John Reiser.
4029 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
4031         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
4033 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
4035         * csu/libc-start.c: Don't handle VDSO_SETUP here.
4036         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
4037         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
4038         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
4039         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
4040         to...
4041         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
4043 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
4045         * po/nl.po: Update from translation team.
4047 2007-08-16  Andreas Jaeger  <aj@suse.de>
4049         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
4050         Reported by Peter Festner <peter.festner@ewetel.net>.
4052 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
4054         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
4056 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
4058         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
4059         to check for undefined symbols.
4061         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
4062         If the syscall fails, set errno to the actual returned error number
4063         rather than EINVAL.
4064         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
4065         arguments are incorrect, set errno to EINVAL, if the syscall
4066         fails, set errno to the actual returned error number.
4068         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
4069         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
4071         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
4072         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
4073         file.
4074         (ASI_PNF, ASI_BLK_P): Don't define.
4075         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
4076         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
4077         file.
4078         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
4079         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
4080         file.
4082 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
4084         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
4085         FE_UNDERFLOW on Niagara CPUs.
4087         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
4088         exceptions.
4090 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
4092         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
4093         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
4094         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
4095         flush should be used or not inside of the function.
4096         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
4098         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
4099         __thread_start): Use HIDDEN_JUMPTARGET.
4100         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
4101         __thread_start): Likewise.
4102         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
4104         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
4105         Add libc_hidden_proto.
4106         (STRTOF): Add libc_hidden_proto.
4107         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
4108         (strtold_l, wcstold_l): Use them as second argument for
4109         long_double_symbol.
4111 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
4113         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
4115 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4117         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
4119 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
4121         * po/bg.po: New file.  From the translation team.
4123 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
4125         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
4126         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
4127         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
4128         when each feature was introduced.
4130         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
4131         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
4132         (CHECK_HASH): New macro.
4133         (PREPARE_VERSION): Use it.
4135         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
4136         prototype if not __ASSUME_PSELECT.
4137         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
4138         prototype if not __ASSUME_PPOLL.
4140         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
4142         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
4143         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
4144         is defined.
4146 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
4148         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4149         (_libc_vdso_platform_setup): If vDSO is not available point
4150         __vdso_gettimeofday to the vsyscall.
4151         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
4152         __vdso_gettimeofday instead of vsyscall.
4154 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
4156         * nscd/servicescache.c: Include kernel-features.h.
4157         * nscd/gai.c: Likewise.
4158         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
4159         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
4160         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
4161         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
4162         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
4163         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
4164         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
4165         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
4166         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
4168 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
4170         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
4171         and _dl_get_origin defines anymore.
4173         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
4174         Build fix for systems which might lack POSIX timer support.
4176         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
4177         (_libc_vdso_platform_setup): Mangle function pointers before storing
4178         them.
4179         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
4180         Demangle vdso pointer before use.
4181         (INTERNAL_VSYSCALL): Likewise.
4183         * elf/cache.c (primes): Mark as const.
4184         Noted by Roland McGrath.
4186 2007-08-01  Andreas Jaeger  <aj@suse.de>
4187             Jakub Jelinek  <jakub@redhat.com>
4189         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
4190         (options): Add option.
4191         (parse_opt): Handle option.
4192         (manual_link): Adjust process_file caller.  Call implicit_soname.
4193         (search_dir): Formatting.  Use and populate auxiliary cache.
4194         (main): Load and save auxiliary cache.
4195         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
4196         stat64 from fstat64 to caller.
4197         (implicit_soname): New function.
4198         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
4199         leave *soname as NULL.
4200         * elf/cache.c: Include libgen.h.
4201         (print_entry, print_cache, compare, save_cache, add_to_cache):
4202         Formatting and cleanups.
4203         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
4204         aux_cache_file): New structures.
4205         (AUX_CACHEMAGIC): Define.
4206         (primes): New array.
4207         (aux_hash_size, aux_hash): New variables.
4208         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
4209         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
4210         load_aux_cache, save_aux_cache): New functions.
4211         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
4212         (init_aux_cache, search_aux_cache, add_to_aux_cache,
4213         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
4214         (process_file): Adjust prototype.
4216 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
4218         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
4219         with __need_size_t.
4221 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
4223         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
4224         r_found_version structure as second parameter.
4225         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
4226         (_dl_vdso_vsym): Change type of second parameter accordingly.
4227         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
4228         (_libc_vdso_platform_setup): Adjust.
4229         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
4230         (_libc_vdso_platform_setup): Likewise.
4232         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
4233         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
4234         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
4235         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
4236         * csu/libc-start.c: Pretty printing.
4237         Use VDSO_SETUP if defined.
4238         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
4239         and let generic code call into _libc_vdso_platform_setup.
4240         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
4241         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
4242         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
4243         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
4244         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
4245         for GLIBC_PRIVATE.
4246         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
4247         (sysdep_rountines): Add dl-vdso.
4249         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
4250         of routines.
4252         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
4253         attribute_hidden to __vdso_gettimeofday prototype.
4255 2007-08-12  Roland McGrath  <roland@redhat.com>
4257         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
4258         From: Karl Berry <karl@freefriends.org>.
4260 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
4262         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
4263         an atime update for the files we read.
4265 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
4267         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
4269         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
4270         instead of mkstemp.
4272         * misc/Makefile (routines): Add mkostemp and mkostemp64.
4273         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
4274         * misc/mkostemp.c: New file.
4275         * misc/mkostemp64.c: New file.
4276         * stdlib/stdlib.h: Declare the new functions.
4277         * sysdeps/posix/tempname.c: Add new parameter which is added to
4278         the flags for open.  Remove __GT_BIGFILE handling.
4279         * stdio-common/tempname.c: Likewise.
4280         * include/stdio.h: Adjust __gen_tempname prototype.
4281         Renumber __GT_* constants.
4282         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
4283         * misc/mkdtemp.c: Likewise.
4284         * misc/mkstemp.c: Likewise.
4285         * misc/mkstemp64.c: Likewise.
4286         * misc/mktemp.c: Likewise.
4287         * stdio-common/tempnam.c: Likewise.
4288         * stdio-common/tmpfile.c: Likewise.
4289         * stdio-common/tmpfile64.c: Likewise.
4290         * stdio-common/tmpnam.c: Likewise.
4291         * stdio-common/tmpnam_r.c: Likewise.
4293 2007-08-10  Roland McGrath  <roland@frob.com>
4295         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
4296         New macros.
4297         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
4298         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4300 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
4302         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
4303         possible.
4304         * nss/nss_files/files-alias.c (internal_setent): Likewise.
4305         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
4306         * nss/nss_files/files-have_o_cloexec.c: New file.
4308         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
4309         available.
4311 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
4313         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
4314         ___new_wcstold_l): New weak aliases.
4315         (strtold_l, wcstold_l): Use them as second argument for
4316         long_double_symbol.
4318 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
4320         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
4321         register in test for error.
4323         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
4324         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
4326         * po/sv.po: Update from translation team.
4328 2007-08-06  Roland McGrath  <roland@redhat.com>
4330         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
4331         Remove __strto*_l inlines.
4332         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
4333         * stdlib/strtod.c: Add libc_hidden_def.
4334         * stdlib/strtod_l.c: Likewise.
4335         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
4336         for __new_strtold and __new_wcstold.
4337         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
4338         __STRTOF, STRTOF.
4339         * stdlib/strtol.c: Add libc_hidden_def.
4340         * stdlib/strtol_l.c: Likewise.
4341         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
4342         strtoq.
4344         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
4346         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
4347         * scripts/data/localplt-generic.data: ... here.
4348         * elf/Makefile (check-data): Get generic file if no other.
4349         ($(objpfx)check-localplt.out): Make target unconditional.
4351         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
4352         Use ElfW(Nhdr).
4354 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
4356         * po/zh_CN.po: Updated translation from translation team.
4358 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
4360         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
4361         Don't use CGOTSETUP and CGOTRESTORE macros.
4363 2007-08-04  Roland McGrath  <roland@redhat.com>
4365         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
4367 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
4369         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
4370         __extension__ around the whole statement expression.
4372 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
4374         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
4375         elements during initialization.
4377         * po/pl.po: Updated translation from translation team.
4378         * po/tr.po: Likewise.
4379         * po/nl.po: Likewise.
4381 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
4383         * rt/aio.h: Add __nonnull attributes.
4385 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
4387         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
4388         * stdlib/Makefile (tests): Add tst-strtod5.
4389         (tst-strtod5-ENV): New.
4390         * stdlib/tst-strtod5.c: New file.
4392         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
4393         failed.
4394         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
4395         on failure.
4397         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
4398         allocated.
4400 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
4402         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
4403         numbers.
4405 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
4407         * io/Makefile (aux): Add have_o_cloexec.
4408         * include/fcntl.h: Declare __have_o_cloexec.
4409         * io/have_o_cloexec.c: New file.
4410         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
4411         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
4412         fcntl call if not necessary.
4413         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
4414         of local variable.
4416         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
4417         Avoid memset, add explicit initialization.
4418         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
4419         to the end and change into zero-sized array.
4420         Move lock member to fill a hole on 64-bit platforms.
4422         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
4423         inline functions.
4424         * include/stdlib.h: Add __strto*_internal prototypes here.
4425         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
4426         inline functions.
4427         * include/wchar.h: Add __wcsto*_internal prototypes.
4428         * sysdeps/generic/inttypes.h: No need to protect the declaration
4429         of the __strto*_internal and __wcsto*_internal members here.
4431         * rt/mqueue.h: Change const to __const and add nonnull attributes.
4433 2007-08-02  Roland McGrath  <roland@redhat.com>
4435         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
4436         $(inst_bindir)/getconf if possible.
4438         * posix/Makefile ($(objpfx)getconf.speclist): New target.
4439         (generated): Add it.
4440         ($(inst_libexecdir)/getconf): Use it.
4442 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
4444         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
4445         /proc is faster and sufficient.  /sys is still needed for
4446         __get_nprocs_conf.
4448 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
4450         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
4451         syscall as __fallocate64.
4452         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
4453         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
4455 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
4457         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
4458         value.
4460         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
4461         if off_t is different rank from size_t.
4463         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
4464         uw_frame_state_for): Avoid type punning warnings.
4465         * sysdeps/generic/unwind-dw2-fde-glibc.c
4466         (_Unwind_IteratePhdrCallback): Likewise.
4467         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
4468         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
4469         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
4470         pointers.
4472 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
4474         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
4475         total processors using sysfs.
4476         (__get_nprocs): Use sysfs to determine which processors are online.
4478 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
4480         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
4481         syscall arguments count.
4483         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
4485 2007-07-30  Roland McGrath  <roland@redhat.com>
4487         * manual/libc.texinfo: Update copyrights, formatting magic, and
4488         @dircategory.  From Karl Berry <karl@freefriends.org>.
4490 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
4492         [BZ #4860]
4493         * io/Makefile (headers): Add bits/fcntl2.h.
4495         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
4496         using gcc builtin.
4497         (__CPU_EQUAL_S): Likewise.
4499         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
4500         (tests): Add tst-cpuset.
4501         * posix/sched_cpualloc.c: New file.
4502         * posix/sched_cpufree.c: New file.
4503         * posix/tst-cpuset.c: New file.
4504         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
4505         GLIBC_2.7.
4506         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
4507         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
4508         macros.  Define CPU_*_S macros.
4510 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
4512         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
4513         entry.
4515         [BZ #4858]
4516         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
4517         #.0g and value rounded to 1.0.
4518         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
4520 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
4522         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
4523         for int_frac_digits and frac_digits.
4525         * login/logout.c (logout): Avoid aliasing violation.
4526         * login/logwtmp.c (logwtmp): Likewise.
4528         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
4530         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
4531         to avoid warning.
4532         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
4533         warning.
4534         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
4535         warning.
4536         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
4537         to avoid warnings.
4539         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
4540         void **.
4541         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
4543         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
4544         char * to avoid warning.
4545         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
4547         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
4549         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
4550         allocate_arrays): Cast second argument to charmap_find_symbol
4551         to char * to avoid warnings.
4553         * locale/programs/repertoire.c (repertoire_new_char): Change
4554         from_nr, to_nr and cnt to unsigned long, adjust printf format
4555         string.
4557         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
4558         Cast second argument to new_element to char * to avoid warnings.
4560         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
4562         * intl/gettextP.h (struct loaded_domain): Change plural to const
4563         struct expression *.
4564         * intl/plural-eval.c (plural_eval): Change first argument to
4565         const struct expression *.
4566         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
4567         argument to const struct expression **.
4568         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
4569         prototypes.
4570         * intl/loadmsgcat (_nl_unload_domain): Cast away const
4571         in call to __gettext_free_exp.
4573         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
4574         unitialized wstring/wpattern var warnings.
4576         * posix/runtests.c (struct a_test): Make data field const char *.
4578         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
4579         vars if not LDBL_MANT_DIG >= 106.
4581         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
4583         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
4584         __find_specmb to avoid warning.
4586         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
4588         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
4589         to avoid warnings.
4591         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
4592         initializer.
4594         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
4595         tv var when it will be actually used.
4597         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
4598         to avoid warnings.
4600         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
4601         char array resp. pointer.
4602         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
4603         char array.
4604         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
4605         to const unsigned char **.
4606         (ucs4_to_cns11643): Change second argument to unsigned char *.
4607         * iconvdata/euc-tw.c (BODY): Change endp type to
4608         const unsigned char *.
4609         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
4610         to unsigned char *.
4611         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
4612         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
4613         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
4614         types to unsigned char pointers/arrays instead of char.
4615         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
4616         to unsigned char *.
4617         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
4618         * iconvdata/jis0212.h: Include assert.h.
4619         (ucs4_to_jisx0212): Change second argument to unsigned char *.
4620         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
4621         of trying to handle that.
4622         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
4623         shut up a warning.
4624         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
4625         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
4626         two dimensional const unsigned char arrays.
4627         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
4628         Initialize endp to inptr to shut up a warning.
4630 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
4632         [BZ #4772]
4633         * time/strptime_l.c (__strptime_internal): Silently ignore
4634         strftime modifiers and field width in recursive calls.
4636         * include/time.h (enum ptime_locale_status): Remove.
4637         (__strptime_internal): Remove decided and era_cnt arguments,
4638         add statep argument.
4639         * time/strptime_l.c (__strptime_internal): Remove decided
4640         and era_cnt arguments, add statep argument.  Don't recompute
4641         any fields in recursive calls, only update caller's tm
4642         and state, if recursive call fails, don't change tm nor
4643         any state.
4644         (get_alt_number): Adjust.
4645         (recursive): Adjust caller.
4646         (strptime): Likewise.
4647         * time/strptime.c (strptime): Likewise.
4649 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
4651         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
4652         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
4653         if from and to charsets are the same.
4654         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
4655         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
4656         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
4658 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
4660         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
4661         Don't define wint_t when __need_mbstate_t unless it
4662         is necessary.
4663         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
4664         in the typedef if possible.
4665         * wctype/wctype.h (wint_t): Define by including
4666         wchar.h with __need_wint_t instead of including stddef.h
4667         with __need_wint_t and as fallback definining it ourselves.
4668         * iconv/gconv.h (__need_wint_t): Define before including
4669         wchar.h.
4670         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
4671         or _GLIBCPP_USE_WCHAR_T.
4672         (__need_wchar_t): Don't define
4673         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
4674         (__need_wint_t): Don't define before including stddef.h,
4675         define before including wchar.h only if _LIBC or
4676         _GLIBCPP_USE_WCHAR_T.
4677         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
4678         * sysdeps/mach/hurd/_G_config.h: Likewise.
4679         * sysdeps/generic/_G_config.h: Likewise.
4680         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
4681         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
4682         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
4683         if _LIBC or _GLIBCPP_USE_WCHAR_T.
4685 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
4687         * sysdeps/posix/posix_fallocate64.c: Undefine
4688         __posix_fallocate64_l64 before alias handling.
4689         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
4690         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
4691         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
4692         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
4694         * io/tst-posix_fallocate.c: Include <fcntl.h>.
4696 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
4698         * locale/programs/ld-collate.c (atwc): New variable.
4699         (add_to_tablewc): New toplevel function, moved from collate_output.
4700         (collate_output): Remove add_to_tablewc nested function.
4702         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
4703         (name_insert): New function.
4704         (write_output): Remove hash_table and hash_size vars and name_insert
4705         nested function.
4707 2007-07-24  Roland McGrath  <roland@redhat.com>
4709         * Makerules (install-others-programs-nosubdir): New target.
4710         (install-no-libc.a-nosubdir): Depend on it.
4712         * iconv/Makefile (install-others-programs): Set this instead of
4713         install-others.
4714         * login/Makefile (install-others-programs): Likewise.
4715         * posix/Makefile (install-others-programs): Likewise.
4717         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
4718         dependencies.
4720 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
4722         * io/Makefile (tests): Add tst-posix_fallocate.
4723         * io/tst-posix_fallocate.c: New file.
4725         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4726         __ASSUME_FALLOCATE.
4728 2007-07-22  Roland McGrath  <roland@frob.com>
4730         * hurd/getdport.c: Add missing copyright year update.
4732         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
4733         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
4735 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
4737         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
4739         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
4740         O_CLOEXEC is needed.
4741         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
4742         Avoid additional fcntl to set O_CLOEXEC if not needed.
4743         * nis/nss_compat/compat-initgroups.c: Likewise.
4744         * nis/nss_compat/compat-pwd.c: Likewise.
4745         * nis/nss_compat/compat-spwd.c: Likewise.
4747 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4749         [BZ #3665]
4750         * manual/errno.texi: Change ECANCELED value to 119.
4752         [BZ #4610]
4753         * mach/lock-intern.h: Include <sys/cdefs.h>.
4755         [BZ #4178]
4756         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
4757         reading A.
4759         [BZ #4126]
4760         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
4761         to __sigsuspend.
4763         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
4765 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
4767         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
4768         `__ASSEMBLER__'.
4769         * sysdeps/mach/hurd/i386/tls.h: Likewise.
4771 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
4773         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
4774         descriptor received from nscd.
4776         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
4778         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
4779         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4780         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4781         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4782         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4783         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4785 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
4787         [BZ #4816]
4788         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
4790         [BZ #4813]
4791         * login/forkpty.c (forkpty): Close master and slave fds on
4792         fork failure.  Patch by
4793         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
4795 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
4797         * include/features.h (__USE_ISOC95): New define.
4798         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
4799         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
4800         for -std=iso9899:199409.
4801         * CONFORMANCE: Remove comments about unsupported AMD1.
4803 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
4805         * sysdeps/ia64/sched_cpucount.c: New file.
4806         * sysdeps/powerpc/sched_cpucount.c: New file.
4808         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
4809         __BEGIN_DECLS/__END_DECLS around the prototype.
4810         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
4811         pointer to const cpu_set_t.
4813         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
4814         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
4815         __need_size_t and include stddef.h.
4816         * sysvipc/sys/msg.h: Likewise.
4817         * posix/sched.h: Likewise.
4818         * hurd/hurd/signal.h (__need_size_t): Define.
4820         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
4821         neither does signal.h in pedantic ISO C namespaces.  stdio.h
4822         no longer defines wint_t or wchar_t.
4824         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
4825         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
4826         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
4827         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
4828         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
4829         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
4830         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
4831         * debug/printf_chk.c (__printf_chk): Likewise.
4832         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
4833         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
4835         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
4836         Define.
4838         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
4839         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
4841 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
4843         [BZ #4792]
4844         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
4845         * malloc/malloc.h (realloc): Likewise.
4847         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
4848         if one of proc_file_chain streams has that fileno.
4849         * stdio-common/Makefile (tests): Add tst-popen2.
4850         * stdio-common/tst-popen2.c: New test.
4852 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
4854         * elf/ldconfig.c: Allow GPLv2 or any later version.
4855         * elf/readlib.c: Likewise.
4856         * elf/chroot_canon.c: Likewise.
4857         * elf/cache.c: Likewise.
4858         * nscd/mem.c: Likewise.
4859         * nscd/getpwuid_r.c: Likewise.
4860         * nscd/grpcache.c: Likewise.
4861         * nscd/aicache.c: Likewise.
4862         * nscd/getsrvbynm_r.c: Likewise.
4863         * nscd/nscd.c: Likewise.
4864         * nscd/servicescache.c: Likewise.
4865         * nscd/getsrvbypt_r.c: Likewise.
4866         * nscd/initgrcache.c: Likewise.
4867         * nscd/gethstbyad_r.c: Likewise.
4868         * nscd/gethstbynm2_r.c: Likewise.
4869         * nscd/getgrnam_r.c: Likewise.
4870         * nscd/nscd_setup_thread.c: Likewise.
4871         * nscd/getpwnam_r.c: Likewise.
4872         * nscd/gai.c: Likewise.
4873         * nscd/connections.c: Likewise.
4874         * nscd/dbg_log.c: Likewise.
4875         * nscd/cache.c: Likewise.
4876         * nscd/hstcache.c: Likewise.
4877         * nscd/nscd_conf.c: Likewise.
4878         * nscd/getgrgid_r.c: Likewise.
4879         * nscd/pwdcache.c: Likewise.
4880         * catgets/gencat.c: Likewise.
4881         * locale/programs/linereader.h: Likewise.
4882         * locale/programs/locarchive.c: Likewise.
4883         * locale/programs/ld-paper.c: Likewise.
4884         * locale/programs/locfile-kw.h: Likewise.
4885         * locale/programs/ld-address.c: Likewise.
4886         * locale/programs/xmalloc.c: Likewise.
4887         * locale/programs/ld-time.c: Likewise.
4888         * locale/programs/localedef.c: Likewise.
4889         * locale/programs/simple-hash.c: Likewise.
4890         * locale/programs/xstrdup.c: Likewise.
4891         * locale/programs/ld-numeric.c: Likewise.
4892         * locale/programs/locfile-kw.gperf: Likewise.
4893         * locale/programs/ld-collate.c: Likewise.
4894         * locale/programs/charmap-kw.gperf: Likewise.
4895         * locale/programs/charmap.h: Likewise.
4896         * locale/programs/charmap-kw.h: Likewise.
4897         * locale/programs/config.h: Likewise.
4898         * locale/programs/locfile.c: Likewise.
4899         * locale/programs/ld-ctype.c: Likewise.
4900         * locale/programs/charmap.c: Likewise.
4901         * locale/programs/ld-messages.c: Likewise.
4902         * locale/programs/repertoire.h: Likewise.
4903         * locale/programs/locale.c: Likewise.
4904         * locale/programs/ld-name.c: Likewise.
4905         * locale/programs/linereader.c: Likewise.
4906         * locale/programs/locfile.h: Likewise.
4907         * locale/programs/3level.h: Likewise.
4908         * locale/programs/ld-monetary.c: Likewise.
4909         * locale/programs/ld-measurement.c: Likewise.
4910         * locale/programs/charmap-dir.c: Likewise.
4911         * locale/programs/ld-identification.c: Likewise.
4912         * locale/programs/localedef.h: Likewise.
4913         * locale/programs/charmap-dir.h: Likewise.
4914         * locale/programs/repertoire.c: Likewise.
4915         * locale/programs/simple-hash.h: Likewise.
4916         * locale/programs/ld-telephone.c: Likewise.
4917         * locale/programs/locale-spec.c: Likewise.
4918         * locale/programs/locfile-token.h: Likewise.
4919         * posix/getconf.c: Likewise.
4920         * iconv/dummy-repertoire.c: Likewise.
4921         * iconv/iconv_charmap.c: Likewise.
4922         * iconv/iconvconfig.c: Likewise.
4923         * iconv/iconv_prog.c: Likewise.
4924         * malloc/memusagestat.c: Likewise.
4925         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
4927 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4929         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
4930         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
4931         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
4932         check for the first argument.
4934 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
4936         [BZ #4775]
4937         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
4938         (__tgmath_real_type): Fix if expr is const int or other const
4939         qualified integral type.
4940         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
4941         expressions and handle const qualified arguments.
4942         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
4943         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
4944         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
4945         statement expressions.
4946         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
4947         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
4948         (__TGMATH_UNARY_IMAG): Define.
4949         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
4950         * math/Makefile (tests): Add test-tgmath2.
4951         (CFLAGS-test-tgmath2.c): Add.
4952         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
4953         count_cfloat, count_cldouble): New variables.
4954         (NCCALLS): Define.
4955         (main): Check number of complex calls as well.
4956         (F(compile_test)): Add complex tests and tests with const qualified
4957         arguments.
4958         (y, z, ccount): Define.
4959         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
4960         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
4961         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
4962         F(cproj)): New functions.
4963         * math/test-tgmath2.c: New test.
4965 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
4967         [BZ #4776]
4968         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
4969         RPATH etc. as "/" rather than "", don't segfault on empty paths,
4970         instead output ".".
4971         * dlfcn/Makefile (distribute): Add glreflib3.c.
4972         (module-names): Add glreflib3.
4973         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
4974         glreflib1.so.
4975         (LDFLAGS_glreflib3.so): New.
4976         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
4977         glreflib1.so.
4978         * dlfcn/glreflib3.c: New file.
4980         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
4981         returned -1, return NULL.
4982         * intl/explodename.c (_nl_explode_name): Return -1 if
4983         _nl_normalize_codeset failed.
4985 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
4987         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
4988         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
4989         and avoid branch misspredicts for > 31 bytes memset case.
4990         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
4991         Remove toc ref to __cache_line_size.
4993         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
4994         to get ISA-V2.0 branch hints.
4995         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
4996         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
4997         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
4998         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
4999         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
5000         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
5001         Remove toc ref to __cache_line_size.
5003         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
5004         Include math_ldbl_opt.h.
5006 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
5008         [BZ #4773]
5009         * time/strptime_l.c (__strptime_internal): Implement greedy
5010         matching of weekday and month names.
5012 2007-07-09  Roland McGrath  <roland@redhat.com>
5014         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
5015         (ELF_NOTE_ABI): Use it.
5016         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
5018 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
5020         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
5021         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
5023 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
5025         [BZ #4745]
5026         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
5027         in loop to look for conversion specifier to avoid testing of
5028         wrong errno value.
5029         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
5030         * stdio-common/bug18.c: New file.
5031         * stdio-common/bug18a.c: New file.
5032         * stdio-common/bug19.c: New file.
5033         * stdio-common/bug19a.c: New file.
5035 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
5037         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
5038         running awk script.
5040 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
5042         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
5043         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
5044         Return NULL if mmap failed instead of asserting it does not.
5045         (calloc): Check for integer overflow.
5047         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
5048         than LONG_MAX / 10.
5050 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
5052         [BZ #4702]
5053         * nis/nss-default.c: Include errno.h.
5054         (init): Preserve errno.
5056 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
5058         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
5060 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
5062         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
5064 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5066         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
5068 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5070         * sysdeps/s390/dl-procinfo.c: New file.
5071         * sysdeps/s390/dl-procinfo.h: New file.
5072         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
5074 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
5076         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
5077         in PT_NOTE segments with multiple notes.
5078         * elf/readelflib.c (process_elf_file): Likewise.
5080 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
5082         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
5083         ISO C compliant.
5085 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
5087         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
5089 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
5091         * include/link.h: Don't include rtld-lowlevel.h.
5092         (struct link_map): Remove l_scope_lock.
5093         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
5094         (_dl_scope_free_list): New field (variable) in _rtld_global.
5095         (DL_LOOKUP_SCOPE_LOCK): Remove.
5096         (_dl_scope_free): New prototype.
5097         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
5098         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
5099         (_dl_profile_fixup): Likewise.
5100         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
5101         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
5102         THREAD_GSCOPE_RESET_FLAG around it.
5103         * elf/dl-close.c (_dl_close_worker): Don't use
5104         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
5105         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
5106         scopes were queued or if l_scope_mem has been abandoned.
5107         * elf/dl-open.c (_dl_scope_free): New function.
5108         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
5109         * elf/dl-support.c (_dl_scope_free_list): New variable.
5110         * elf/dl-lookup.c (add_dependency): Remove flags argument.
5111         Remove DL_LOOKUP_SCOPE_LOCK handling.
5112         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
5113         handling.
5114         * elf/dl-object.c (_dl_new_object): Don't use
5115         __rtld_mrlock_initialize.
5117 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
5119         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
5120         to fill in holes
5121         (rtld_global_ro): Likewise.
5123 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5125         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
5126         Move PT_LOAD checking to...
5127         (_dl_addr_inside_object): ... here, new function.
5128         * elf/dl-sym.c (do_sym): If not l_contiguous,
5129         call _dl_addr_inside_object.
5130         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
5131         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
5132         * elf/dl-open.c (dl_open_worker): Likewise.
5133         (_dl_addr_inside_object): New function if IS_IN_rtld.
5134         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
5135         holes are present or are PROT_NONE protected.
5136         * include/link.h (struct link_map): Add l_contiguous field.
5137         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
5139 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5140             Tomas Janousek  <tjanouse@redhat.com>
5141             Ulrich Drepper  <drepper@redhat.com>
5143         [BZ #4647]
5144         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
5145         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
5146         socket.
5147         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
5148         unused member a bitmap.
5149         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
5150         servers are configured.
5152 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
5154         * elf/rtld.c (dl_main): Don't call init_tls more than once.
5156 2007-06-17  Andreas Schwab  <schwab@suse.de>
5158         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
5160 2007-06-16  Andreas Jaeger  <aj@suse.de>
5162         [BZ #4125]
5163         * sysdeps/unix/sysv/linux/sys/ptrace.h
5164         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
5165         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
5166         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
5167         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
5168         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
5169         Define.
5170         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
5171         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
5172         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
5173         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
5175 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
5177         [BZ #4599]
5178         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
5179         determining whether there are IPv4/IPv6 addresses, ignore loopback
5180         addresses.
5182 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
5184         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
5185         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
5186         as the return type.  Change type of "r" variable to CMPtype.
5187         * soft-fp/eqsf2.c (__eqsf2): Likewise.
5188         * soft-fp/eqtf2.c (__eqtf2): Likewise.
5189         * soft-fp/gedf2.c (__gedf2): Likewise.
5190         * soft-fp/gesf2.c (__gesf2): Likewise.
5191         * soft-fp/getf2.c (__getf2): Likewise.
5192         * soft-fp/ledf2.c (__ledf2): Likewise.
5193         * soft-fp/lesf2.c (__lesf2): Likewise.
5194         * soft-fp/letf2.c (__letf2): Likewise.
5195         * soft-fp/unorddf2 (__unorddf2): Likewise.
5196         * soft-fp/unordsf2 (__unordsf2): Likewise.
5197         * soft-fp/unordtf2 (__unordtf2): Likewise.
5199 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
5201         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
5202         make sure gcc doesn't mess around with this.
5204 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
5206         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
5208 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
5210         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
5211         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
5212         at most once per _dl_close_worker.
5214 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
5216         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
5217         __sched_cpucount as const.
5218         * posix/sched_cpucount.c: Adjust.
5220         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
5221         instruction for counting bits.
5222         * sysdeps/x86_64/sched_cpucount.c: New file.
5224 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
5226         * configure.in: Avoid variable named BASH.
5227         * config.make.in: Likewise.
5228         Patch in part by Mike Frysinger.
5230 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
5232         [BZ #4586]
5233         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
5234         pseudo-zeros as zero.
5235         * sysdeps/x86_64/ldbl2mpn.c: New file.
5236         * sysdeps/ia64/ldbl2mpn.c: New file.
5238 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
5240         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
5241         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
5242         Remove unreachable code at the end.
5244 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
5246         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
5247         ldbl-128ibm in comment.
5248         (fpclassifyl): Correct classification of denormals.
5249         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
5250         return value for MIN denormal. Rewrite using long double math too
5251         correctly handle denormals and canonicalize the results.
5253 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
5255         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
5256         (__mpn_construct_long_double): Fix conversion where result ought
5257         to be smaller than __LDBL_MIN__, or the low double should be
5258         denormal.  Fix decision where to negate low double - honor round
5259         to even rules.
5260         * stdio-common/tst-sprintf2.c: Include string.h.
5261         (COMPARE_LDBL): Define.
5262         (TEST): Also test whether a string hexadecimal float representation
5263         can be parsed back to the number.
5264         (main): Add a couple of further tests.
5266 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
5268         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
5269         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
5270         is non-zero, but smaller than 2 * __DBL_MIN__.
5271         * stdio-common/tst-sprintf2.c: New test.
5272         * stdio-common/Makefile (tests): Add tst-sprintf2.
5274         * math/test-misc.c (main): Don't run last batch of tests with
5275         IBM long double format.
5277 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
5279         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
5280         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
5281         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
5282         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
5283         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5284         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
5285         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
5286         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
5287         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
5288         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5289         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
5290         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
5291         New file.
5292         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
5293         New file.
5294         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
5295         New file.
5296         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
5297         New file.
5298         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
5299         New file.
5300         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
5301         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
5302         New file.
5303         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
5304         New file.
5305         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
5306         New file.
5307         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
5308         New file.
5309         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
5310         New file.
5312 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
5314         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
5315         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
5316         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
5317         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
5318         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
5319         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
5320         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
5321         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
5323 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
5325         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
5326         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5327         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
5328         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5329         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
5330         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5331         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
5332         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
5334 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
5336         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
5337         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
5338         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
5339         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
5341 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
5343         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
5344         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
5346 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
5348         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
5349         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
5350         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
5351         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
5353 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
5355         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
5356         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
5358 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
5360         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
5361         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
5363         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
5364         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
5365         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
5366         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
5368 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
5370         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
5371         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
5372         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
5373         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
5375 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
5377         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
5378         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
5379         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
5380         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5381         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
5382         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
5384 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
5386         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
5387         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
5388         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
5389         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
5391 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
5393         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
5394         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
5395         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
5396         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
5397         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
5398         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
5399         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
5400         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
5401         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
5402         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
5403         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
5404         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
5405         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
5406         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
5407         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
5408         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
5410 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
5412         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
5413         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
5415 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
5417         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
5418         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
5420 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
5422         * sysdeps/powerpc/powerpc32/970/Implies: New file.
5423         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
5424         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
5425         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
5426         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
5427         * sysdeps/powerpc/powerpc64/970/Implies: New file.
5428         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
5429         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
5430         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
5431         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
5433 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
5435         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
5437 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
5439         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
5440         branch miss-predicts. Ensure that cache line crossing does not impact
5441         dispatch grouping.
5443 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
5445         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
5446         "../../powerpc32/power4/memcopy.h".
5447         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
5448         "../../powerpc32/power4/wordcopy.c".
5450 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
5452         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
5453         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
5454         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
5455         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
5456         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
5457         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
5459 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
5461         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
5463 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
5465         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
5466         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
5467         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
5468         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
5469         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
5470         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
5471         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
5472         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
5474 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
5476         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
5478 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
5480         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
5481         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
5482         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
5483         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
5484         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
5485         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
5486         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
5488 2007-05-29  Roland McGrath  <roland@redhat.com>
5490         * po/Makefile (po-sed-cmd): New variable.
5491         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
5493 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
5495         * crypt/md5-crypt.c: Fix comment.
5497         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
5498         of crashing.  When this is the case or if the reply is malformed,
5499         don't try to close the new file descriptor since it does not
5500         exist.
5501         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
5503 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
5505         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
5506         if __NR_utimensat is not defined.
5508 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
5510         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
5512 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
5514         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
5515         (open): Fix comment typos.  Don't call __open_2 if flags
5516         is a compile time constant without O_CREAT.
5517         (__open64_2): Add nonnull attribute.
5518         (open64): Fix comment typos.  Don't call __open64_2 if flags
5519         is a compile time constant without O_CREAT.
5520         (__openat_2): Add nonnull attribute, fix nonnull attribute
5521         on redirect.
5522         (openat): Fix comment typos.  Don't call __openat_2 if flags
5523         is a compile time constant without O_CREAT.
5524         (__openat64_2): Add nonnull attribute, fix nonnull attribute
5525         on redirect.
5526         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
5527         is a compile time constant without O_CREAT.
5529 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
5531         * Makerules (sysd-rules): Define PTW for ptw-* files.
5532         * Versions: Define GLIBC_2.7 for libc.
5533         * include/stdio.h: Declare __fortify_fail.
5534         * debug/fortify_fail.c: New file.
5535         * debug/Makefile (routines): Add fortify_fail.
5536         * debug/chk_fail.c: Use __fortify_fail.
5537         * debug/stack_chk_fail.c: Likewise.
5538         * io/Versions: Export __open_2, __open64_2, __openat_2, and
5539         __openat64_2 for GLIBC_2.7.
5540         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
5541         * io/open.c: Define *_2 variant of function which checks for O_CREAT
5542         and fails if necessary.
5543         * io/open64.c: Likewise.
5544         * io/openat.c: Likewise.
5545         * io/openat64.c: Likewise.
5546         * sysdeps/unix/sysv/linux/open64.c: Likewise.
5547         * sysdeps/unix/sysv/linux/openat.c: Likewise.
5548         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
5549         * io/bits/fcntl2.h: New file.
5550         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
5551         __openat64_2.
5552         * include/bits/fcntl2.h: New file.
5553         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
5554         Add open_2.
5555         * sysdeps/unix/sysv/linux/open_2.c: New file.
5557 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
5559         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
5560         as second parameter to handle_intel.
5562         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
5563         the entry.
5565         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
5566         handling to ...
5567         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
5568         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
5569         cacheinfo.
5570         * sysdeps/x86_64/memcpy.S: Complete rewrite.
5571         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
5572         Patch by Evandro Menezes <evandro.menezes@amd.com>.
5574         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
5576 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
5578         [BZ #4525]
5579         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
5580         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
5581         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
5583         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
5585         [BZ #4514]
5586         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
5587         reinitialize workend at the start of each do_positional format spec
5588         loop, free workstart before do_positional loops.
5589         (printf_unknown): Fix size of work_buffer.
5590         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
5592         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
5593         (public_sET_STATe): If ms->version < 3, put all chunks into
5594         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
5595         chunks.
5597         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
5598         * malloc/hooks.c: Likewise.
5599         * malloc/arena.c: Likewise.
5600         * malloc/malloc.c (do_check_malloc_state): Don't assert
5601         n_mmaps is not greater than n_mmaps_max.  This removes the need
5602         for the previous change.
5604         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
5605         2007-05-07 commit.
5607 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
5609         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
5610         Define for kernel >= 2.6.22.
5612 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
5614         * elf/dl-close.c (_dl_close_worker): When removing object from
5615         global scope, wait for all lookups to finish afterwards.
5616         * elf/dl-open.c (add_to_global): When global scope array must
5617         grow, allocate a new one and free old array only after all
5618         lookups finish.
5619         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
5620         (_dl_lookup_symbol_x): Likewise.
5621         * elf/dl-support.c: Define _dl_wait_lookup_done.
5622         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
5623         _dl_wait_lookup_done.
5625         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
5626         not overlapping with arena.
5628         * malloc/mcheck.c (reallochook): If size==0, free the block.
5630         * rt/tst-shm.c: Use fstat64 instead of fstat.
5632         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
5633         __NR_sync_file_range is not defined.
5635 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
5637         Dummy files to prevent stub versions from being used.
5638         * sysdeps/x86_64/fpu/k_cosl.c: New file.
5639         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
5640         * sysdeps/x86_64/fpu/k_sinl.c: New file.
5641         * sysdeps/x86_64/fpu/k_tanl.c: New file.
5643         * version.h (VERSION): Set to 2.6.90.
5645 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
5647         * version.h (VERSION): Define to 2.6.
5648         * include/features.h (__GLIBC_MINOR__): Define to 6.
5650         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
5652         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
5653         sizes.
5655 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
5657         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
5658         number of mmaps.  n_mmaps_max is the target.
5659         * malloc/hooks.c: Likewise.
5660         * malloc/arena.c: Likewise.
5662 2007-05-12  Andreas Jaeger  <aj@suse.de>
5664         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
5665         getpid.
5667 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
5669         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
5670         adding new variables.
5672         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
5673         optimize.  Completely extend global scope array before making the
5674         new entries visible.
5676 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
5678         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
5679         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
5680         tst-getcpu.
5682         * include/link.h: Move l_version and l_nversion members around to
5683         fill gaps.
5685         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
5687         * sysdeps/unix/sysv/linux/sched_setaffinity.c
5688         (__sched_setaffinity_new): If syscall was successful and
5689         RESET_VGETCPU_CACHE is defined, use it before returning.
5690         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
5692         * io/sys/stat.h: Make sure struct timespec is defined for
5693         __USE_ATFILE.
5695         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
5696         UTIME_OMIT.
5697         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
5698         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
5699         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
5700         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
5701         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
5702         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
5703         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
5704         * io/sys/stat.h: Declare utimensat, futimens.
5705         * io/utimensat.c: New file.
5706         * io/futimens.c: New file.
5707         * sysdeps/unix/sysv/linux/utimensat.c: New file.
5708         * sysdeps/unix/sysv/linux/futimens.c: New file.
5709         * io/Makefile (routines): Add utimensat, futimens.
5710         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
5711         * sysdeps/unix/sysv/linux/lutimes.c: New file.
5712         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
5713         available.
5715         * include/sys/cdefs.h: Redefine __nonnull so that test for
5716         incorrect parameters in the libc code itself are not omitted.
5718 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
5720         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
5721         exception in addition to inexact when asked to raise only FE_INEXACT.
5723         [BZ #3427]
5724         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
5725         in *envp.
5727 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
5729         [BZ #4403]
5730         * string/strfry.c (strfry): Make result more random.
5732 2007-05-07  Richard Henderson  <rth@redhat.com>
5734         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
5735         if __NO_LONG_DOUBLE_MATH.
5736         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
5737         available in the compiler, add .arch directive to the assembly.
5739 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
5741         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
5742         compat_symbol to GLIBC_2_1.
5743         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
5744         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
5745         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
5746         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
5747         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
5748         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
5749         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
5750         libc, not libm.
5751         (__isnanl): New compat_symbol.
5753 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
5754             Jakub Jelinek  <jakub@redhat.com>
5756         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
5757         (new_heap): Initialize mprotect_size.
5758         (grow_heap): When growing, only mprotect from mprotect_size till
5759         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
5760         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
5762 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
5763             Peter Bergner  <bergner@us.ibm.com>
5765         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
5766         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
5767         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
5768         * sysdeps/powerpc/fpu/fe_mask.c: New file.
5769         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
5770         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
5771         Call __fe_mask_env() if all FP exceptions disabled.
5772         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
5773         from old FPSCR to new fenv to propagate DFP rounding modes.
5774         Call __fe_mask_env() if FP exceptions previously enabled.
5775         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
5776         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
5777         transitioning from all exceptions disabled to any exception enabled
5778         or visa versa.
5779         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
5780         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
5781         when transitioning from all exceptions disabled to any exception
5782         enabled or visa versa.
5783         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
5784         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
5785         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
5786         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
5787         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
5788         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
5790 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
5792         [BZ #4465]
5793         * posix/unistd.h: Remove __THROW from fdatasync.
5795 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
5797         [BZ #4465]
5798         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
5800 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
5802         * stdio-common/vfprintf.c (process_string_arg): Optimize
5803         ridiculous precision in wide char code printing multi-byte string.
5804         Reported by Jim Meyering <jim@meyering.net>.
5806         [BZ #4131]
5807         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
5808         boundaries to work around systems with overlapping binary loading.
5809         Based on a patch by Suzuki <suzuki@in.ibm.com>.
5811 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
5813         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
5814         __mbsnrtowcs after last change.
5816         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
5817         (get_ident): Likewise.
5819 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
5821         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
5822         with setting the sticky bit.
5823         * math/test-misc.c (main): Add more truncation tests.
5825 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
5827         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
5828         double in the function declaration.
5829         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
5830         double in the function declaration.
5831         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
5832         float in the function declaration.
5833         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
5834         float in the function declaration.
5836         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
5837         denormal operands.  Do not generate FP_EX_DENORM exception.
5838         (FP_UNPACK_RAW_EP): Ditto.
5839         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
5840         undefined _FP_UNPACK_RAW_E.
5841         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
5842         undefined _FP_UNPACK_RAW_EP.
5843         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
5844         undefined _FP_PACK_RAW_E.
5845         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
5846         undefined _FP_PACK_RAW_EP.
5848         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
5849         _FP_FRAC_COPY_2.
5850         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
5851         _FP_FRAC_COPY_4.
5853 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
5854             Jakub Jelinek  <jakub@redhat.com>
5856         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
5857         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
5858         this case.
5859         * soft-fp/op-common.h (FP_TRUNC): Ditto.
5861 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
5863         * math/test-misc.c (main): Add tests for rounding long double
5864         values close to smallest double denormalized value to double.
5866 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
5868         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
5869         condition for truncating to 0.  Set sticky bit for such
5870         truncation.
5872 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
5874         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
5875         fixed length array for ignore.
5877 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
5879         [BZ #4438]
5880         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
5881         stack for large precisions.
5882         * stdio-common/test-vfprintf.c (main): Add test for large
5883         precision.
5885 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
5887         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
5888         for exponent 0.
5889         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
5891         [BZ #4439]
5892         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
5893         account in the size check.
5894         * resolv/tst-inet_ntop.c: New test.
5895         * resolv/Makefile (tests): Add tst-inet_ntop.
5897 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
5898             Jakub Jelinek  <jakub@redhat.com>
5900         [BZ #4349]
5901         * malloc/malloc.c: Keep separate list for first blocks on the bin
5902         lists with a given size.  This helps skipping over list elements
5903         we know won't fit in two places.
5904         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
5906 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
5908         [BZ #4102]
5909         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
5910         label to Teredo tunnel addresses 2001://32.
5912 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
5914         * locale/programs/ld-collate.c (collate_read): Allow order_start
5915         after copy.
5917         * locale/programs/ld-collate.c (collate_read): Fix printing of
5918         error message.
5920         [BZ #3213]
5921         * locale/C-translit.h.in: Add entry for U2044.
5923         [BZ #4342]
5924         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
5925         hexa-decimal floats without exponent.
5926         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
5928 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
5930         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
5931         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
5932         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
5933         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
5934         GLIBC_2.6.
5935         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
5936         Add sched_getcpu.
5938 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
5940         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
5941         of 0 after the out_fail label.
5943 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
5945         [BZ #4406]
5946         * iconv/gconv_charset.h (strip): Allow ':'.
5947         * iconv/iconv_open.c (iconv_open): Adjust comment.
5949 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
5951         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
5952         version.
5954 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
5956         [BZ #4381]
5957         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
5958         alignment of buffer and tmp_buffer.
5959         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
5960         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
5961         alignment of buffer.
5962         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
5963         bigger than INT_MAX.
5964         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
5965         h_errnop arguments.  Fail if buflen is too small.
5966         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
5968 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
5970         [BZ #4405]
5971         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
5972         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
5974 2007-04-22  Roland McGrath  <roland@redhat.com>
5976         * elf/elf.h (NT_PRXFPREG): New macro.
5978 2007-04-19  Andreas Jaeger  <aj@suse.de>
5980         [BZ #3905]
5981         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
5982         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
5983         Added.
5985 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
5987         * include/sys/mman.h: Mark madvise hidden.
5988         * misc/madvise.c: Add libc_hidden_def.
5990 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
5992         * nis/nis_domain_of.c (__nis_domain_of): New function.
5993         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
5994         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
5995         * nis/nis_call.c (rec_dirsearch): Likewise.
5996         (first_shoot): Likewise.  Remove search_parent_first argument.
5997         (struct nis_server_cache): Rename search_parent_first field
5998         to search_parent.
5999         (nis_server_cache_search, nis_server_cache_add): Rename
6000         search_parent_first argument to search_parent.
6001         (__nisfind_server): Likewise.  If search_parent, call
6002         __nis_domain_of.
6004 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
6006         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
6008 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
6010         [BZ #4368]
6011         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
6013 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
6015         [BZ #4364]
6016         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
6018 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
6020         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
6021         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
6022         current number of locales in SUPPORTED.
6023         (create_archive): Initialize serial.
6024         (enlarge_archive): Preserve aliases rather than duplicating
6025         their locrecs.
6027 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
6029         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
6030         after _IO_un_link, not before it.
6032         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
6033         special case handling when wcp == wstartp + 1.  Fix a comment typo.
6034         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
6036 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
6038         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
6039         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
6040         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
6041         Remove __THROW.
6042         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
6043         _IO_file_xsgetn_maybe_mmap): Likewise.
6044         * libio/oldfileops.c (old_do_write): Likewise.
6045         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
6046         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
6047         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
6048         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
6049         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
6050         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
6051         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
6052         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
6053         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
6054         _IO_file_underflow, _IO_file_underflow_mmap,
6055         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
6056         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
6057         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
6058         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
6059         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
6060         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
6061         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
6062         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
6063         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
6064         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
6065         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
6066         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
6067         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
6068         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
6069         _IO_adjust_column_internal, _IO_default_uflow_internal,
6070         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
6071         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
6072         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
6073         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
6074         _IO_file_close_it_internal, _IO_file_underflow_internal,
6075         _IO_file_overflow_internal, _IO_file_attach_internal,
6076         _IO_file_fopen_internal, _IO_file_sync_internal,
6077         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
6078         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
6079         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
6080         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
6081         _IO_seekpos_unlocked): Likewise.
6082         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
6083         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
6085 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
6087         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
6088         argument in xmalloc size computation.
6090 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
6092         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
6093         math_opt_barrier and math_force_eval macros.
6095 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
6097         [BZ #3306]
6098         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
6099         * sysdeps/i386/fpu/math_private.h: New file.
6100         * sysdeps/x86_64/fpu/math_private.h: New file.
6101         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
6102         math_force_eval macros.  Use "+m" constraint on asm rather than
6103         "=m" and "m".
6104         * math/s_nextafter.c (__nextafter): Likewise.
6105         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
6106         Likewise.
6107         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
6108         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
6109         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6110         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
6111         math_opt_barrier and math_force_eval macros.
6112         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
6113         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
6114         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
6115         (__nexttoward): Use math_opt_barrier and
6116         math_force_eval macros.  Use "+m" constraint on asm rather than
6117         "=m" and "m".  Only use asm to force double result if
6118         FLT_EVAL_METHOD is 2.
6119         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
6120         (__nexttowardf): Use math_opt_barrier and
6121         math_force_eval macros.  Use "+m" constraint on asm rather than
6122         "=m" and "m".  Only use asm to force double result if
6123         FLT_EVAL_METHOD is not 0.
6124         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
6125         (__nexttowardf): Use math_opt_barrier and
6126         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
6127         x to float using asm.
6128         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
6129         (__nldbl_nexttowardf): Use math_opt_barrier and
6130         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
6131         x to float using asm.
6132         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
6133         (__nexttowardf): Use math_opt_barrier and math_force_eval
6134         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
6135         * math/bug-nextafter.c (zero, inf): New variables.
6136         (main): Add new tests.
6137         * math/bug-nexttoward.c (zero, inf): New variables.
6138         (main): Add new tests.
6140 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
6142         [BZ #3427]
6143         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
6144         exceptions both in SW and MXCSR.
6145         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
6146         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
6147         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6148         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6149         in MXCSR if SSE is available.
6150         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
6151         and ldsodefs.h.
6152         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
6153         Fix comment typo.
6154         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
6155         Return 0 rather than 1.
6156         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
6157         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
6158         * math/test-fenv.c (feholdexcept_tests): New function.
6159         (main): Call it.
6161 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
6163         [BZ #3427]
6164         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
6165         in SW.
6167 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
6169         [BZ #4344]
6170         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
6171         Reported by David Anderson <davea42@earthlink.net>.
6173 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
6175         * posix/sys/wait.h: Remove unnecessary forward declaration.
6177 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
6179         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
6180         with obj->do_servers after first_shoot.
6182 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
6184         * posix/Makefile (routines): Add sched_cpucount.
6185         (tests): Add tst-cpucount.
6186         * posix/sched_cpucount.c: New file.
6187         * posix/tst-cpucount.c: New file.
6188         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
6189         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
6190         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
6191         * posix/sched.h: Define CPU_COUNT.
6193 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
6195         * posix/fnmatch.c (STRUCT): Define.
6196         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
6197         * posix/fnmatch_loop.c (struct STRUCT): New type.
6198         (FCT): Add ends argument.  If ends != NULL and normal * is
6199         seen in the pattern, store current pattern and string pointers
6200         and return.  Adjust recursive calls.
6201         (EXT): Adjust FCT callers.
6202         (STRUCT): Undef at the end of the file.
6203         * posix/Makefile (tests): Add tst-fnmatch2.
6204         * posix/tst-fnmatch2.c: New test.
6206 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
6208         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
6209         and 1 on failure.
6211         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
6212         Change last argument to unsigned int.
6214 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
6216         * scripts/check-local-headers.sh: Filter out sys/capability.h.
6218 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
6220         * config.h.in (HAVE_LIBCAP): Add.
6221         * nscd/selinux.h: Include sys/capability.h rather than non-existent
6222         sys/capabilities.h.
6223         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
6224         free_caps.  Cast away const from 4th cap_set_flag argument.
6226 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
6228         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
6229         GLIBC_2.6.
6230         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6231         Add sync_file_range.
6232         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
6234 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
6236         * sysdeps/powerpc/bits/atomic.h
6237         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
6238         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
6239         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6240         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
6241         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6242         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
6243         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
6244         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6245         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6246         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6247         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
6248         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
6249         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
6250         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
6251         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6252         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
6253         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6254         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
6255         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
6256         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
6258 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
6260         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
6261         (__cache_line_size): Define the variable here.  Add
6262         attribute_hidden, remove weak_extern.
6263         (__libc_start_main): Set __cache_line_size
6264         unconditionally.
6265         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
6266         (__cache_line_size): Define the variable here.  Add
6267         attribute_hidden, remove weak_extern.
6268         (DL_PLATFORM_AUXV): Set __cache_line_size
6269         unconditionally.
6270         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
6271         weak_extern, add attribute_hidden.
6272         (__elf_machine_runtime_setup): Assume __cache_line_size is always
6273         defined in ld.so.
6274         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
6275         definition.
6276         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
6278 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
6280         [BZ #4276]
6281         * timezone/africa: Update from tzdata2007d.
6282         * timezone/asia: Likewise.
6283         * timezone/australasia: Likewise.
6284         * timezone/backward: Likewise.
6285         * timezone/europe: Likewise.
6286         * timezone/iso3166.tab: Likewise.
6287         * timezone/leapseconds: Likewise.
6288         * timezone/northamerica: Likewise.
6289         * timezone/southamerica: Likewise.
6290         * timezone/zone.tab: Likewise.
6292         * timezone/private.h: Update from tzcode2007d.
6293         * timezone/zdump.c: Likewise.
6294         * timezone/zic.c: Likewise.
6296 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
6298         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
6299         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
6300         variables.
6301         (nis_server_cache_search, nis_server_cache_add): New functions.
6302         (__nisfind_server): Use them.  Add dbp and flags argument, if
6303         call __nisbind_create.
6304         (__nisbind_create): Add server_used and current_ep arguments,
6305         only call __nis_findfastest if server_used is ~0.
6306         (__do_niscall2, __prepare_niscall): Adjust callers.
6307         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
6308         ckey_cache_euid, ckey_cache_lock): New variables.
6309         (get_ckey): New function.
6310         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
6311         __pmap_getnisport.  Save __pmap_getnisport result in
6312         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
6313         key.
6314         * nis/nis_lookup.c (nis_lookup): Likewise.
6315         * nis/nis_table.c (nis_list): Likewise.
6316         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
6317         prototypes.
6319         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
6320         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
6321         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
6322         _nss_nisplus_getservbyport_r): Likewise.
6323         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
6324         _nss_nisplus_getnetbyaddr_r): Likewise.
6325         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
6326         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
6327         _nss_nisplus_getntohost_r): Likewise.
6328         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
6329         _nss_nisplus_getrpcbynumber_r): Likewise.
6331 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
6333         * configure.in (libc_cv_gnu89_inline): Only do compile test.
6334         * configure: Rebuilt.
6336         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
6337         bit-fields.
6338         * soft-fp/extended.h (_FP_UNION_E): Likewise.
6340 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
6342         [BZ #2831]
6343         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
6344         bit-fields.
6346 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
6348         * nscd/gai.c: Include alloca.h.
6349         (__libc_use_alloca): Define.
6351 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
6353         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
6354         smaller scopes.
6355         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
6356         (DL_DST_REQUIRED): Adjust user.
6358         * include/dlfcn.h (struct link_map): New forward decl.
6360         * inet/getnameinfo.c: Include stddef.h.
6361         (getnameinfo): Use offsetof.
6363         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
6365         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
6367         * string/strerror_l.c: Include stdlib.h.
6369         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
6370         * config.make.in (gnu89-inline-CFLAGS): New variable.
6371         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
6372         -std=gnu99.
6373         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
6374         * argp/argp.h: Use it.
6375         * bits/mathinline.h: Likewise.
6376         * bits/sigset.h: Likewise.
6377         * bits/string.h: Likewise.
6378         * ctype/ctype.h: Likewise.
6379         * hurd/hurd.h: Likewise.
6380         * hurd/hurd/fd.h: Likewise.
6381         * hurd/hurd/port.h: Likewise.
6382         * hurd/hurd/signal.h: Likewise.
6383         * hurd/hurd/threadvar.h: Likewise.
6384         * hurd/hurd/userlink.h: Likewise.
6385         * io/sys/stat.h: Likewise.
6386         * libio/bits/stdio.h: Likewise.
6387         * libio/bits/stdio2.h: Likewise.
6388         * mach/lock-intern.h: Likewise.
6389         * mach/mach/mig_support.h: Likewise.
6390         * math/bits/cmathcalls.h: Likewise.
6391         * posix/bits/unistd.h: Likewise.
6392         * socket/bits/socket2.h: Likewise.
6393         * stdlib/bits/stdlib.h: Likewise.
6394         * stdlib/stdlib.h: Likewise.
6395         * string/argz.h: Likewise.
6396         * string/bits/string2.h: Likewise.
6397         * string/bits/string3.h: Likewise.
6398         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
6399         * sysdeps/generic/inttypes.h: Likewise.
6400         * sysdeps/generic/machine-lock.h: Likewise.
6401         * sysdeps/generic/machine-sp.h: Likewise.
6402         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6403         * sysdeps/i386/i486/bits/string.h: Likewise.
6404         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
6405         * sysdeps/mach/alpha/machine-lock.h: Likewise.
6406         * sysdeps/mach/alpha/machine-sp.h: Likewise.
6407         * sysdeps/mach/i386/machine-lock.h: Likewise.
6408         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
6409         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
6410         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
6411         * sysdeps/s390/bits/string.h: Likewise.
6412         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
6413         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6414         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
6415         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
6416         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
6417         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
6418         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
6419         * wcsmbs/bits/wchar2.h: Likewise.
6420         * wcsmbs/wchar.h: Likewise.
6421         * stdlib/gmp.h: Likewise.  Include <features.h> to get
6422         __extern_inline definition.
6424 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
6426         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
6427         NULL.
6429         [BZ #3919]
6430         * math/libm-test.inc (log_test): Test -Inf and NaN.
6431         (log10_test, log1p_test, log2_test): Test -Inf.
6432         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
6433         FE_INVALID when argument is qNaN.
6434         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
6435         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
6436         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
6437         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
6438         andb $1, %ah with testb $1, %ah, don't test for parity, instead
6439         testb $4, %ah and jump if non-zero.
6440         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
6441         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
6443         [BZ #4101]
6444         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
6445         ancestors with the same depths.
6446         Patch by Niels Moeller <nisse@lysator.liu.se>.
6447         (filter_doc): Don't crash if argp is NULL.
6448         * argp/Makefile (tests): Add tst-argp2.
6449         * argp/tst-argp2.c: New test.
6451         [BZ #4130]
6452         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
6453         open_not_cancel_2.
6454         (updwtmp_file): Likewise.
6456         [BZ #4181]
6457         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
6458         (inet6_opt_append): Don't check extlen is big enough if extbuf
6459         is NULL.
6460         (inet6_opt_finish): Likewise.
6461         * inet/Makefile (tests): Add test-inet6_opt.
6462         * inet/test-inet6_opt.c: New test.
6464         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
6465         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
6466         NLMSG_ERR.  Instead use a page sized buffer.
6467         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
6468         buffer.
6470 2007-03-14  Richard Henderson  <rth@redhat.com>
6472         * sysdeps/alpha/fpu/s_llround.c: New file.
6473         * sysdeps/alpha/fpu/s_llroundf.c: New file.
6474         * sysdeps/alpha/fpu/s_lround.c: New file.
6475         * sysdeps/alpha/fpu/s_lroundf.c: New file.
6476         * sysdeps/alpha/fpu/s_round.c: New file.
6477         * sysdeps/alpha/fpu/s_roundf.c: New file.
6478         * sysdeps/alpha/fpu/s_trunc.c: New file.
6479         * sysdeps/alpha/fpu/s_truncf.c: New file.
6481         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
6482         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
6483         * sysdeps/alpha/fpu/s_floor.c: Likewise.
6484         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
6485         * sysdeps/alpha/fpu/s_rint.c: Likewise.
6486         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6488         * sysdeps/alpha/fpu/s_fmax.S: New file.
6489         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
6490         * sysdeps/alpha/fpu/s_fmin.S: New file.
6491         * sysdeps/alpha/fpu/s_fminf.S: New file.
6492         * sysdeps/alpha/fpu/s_isnan.c: New file.
6493         * sysdeps/alpha/fpu/s_isnanf.c: New file.
6494         * sysdeps/alpha/fpu/s_llrint.c: New file.
6495         * sysdeps/alpha/fpu/s_llrintf.c: New file.
6496         * sysdeps/alpha/fpu/s_lrint.c: New file.
6497         * sysdeps/alpha/fpu/s_lrintf.c: New file.
6498         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
6499         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
6501         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
6502         (__fdimf, fdimf, __fdim, fdim): Remove.
6503         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
6504         (__isnanf, __isnan, __isnanl): New.
6506 2007-03-13  Richard Henderson  <rth@redhat.com>
6508         * sysdeps/ieee754/ldbl-128/Makefile: New file.
6510 2007-03-13  Richard Henderson  <rth@redhat.com>
6512         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
6513         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
6514         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
6515         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
6516         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
6517         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
6519 2007-03-13  Richard Henderson  <rth@redhat.com>
6521         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
6522         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
6523         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
6524         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
6525         Move to dl-auxv.h; initialize instead of extern weak.
6526         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
6527         weak symbol.
6528         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
6529         Extern instead of initialized.
6531 2007-03-13  Richard Henderson  <rth@redhat.com>
6533         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
6534         __sigsuspend_nocancel.
6536 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
6538         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
6539         172.16/12 address range.
6541 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
6543         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
6544         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
6545         message.
6547 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
6549         [BZ #4069]
6550         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
6551         earlier.
6552         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
6554         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
6555         for x qNaN and y either +-inf or non-integer value.
6556         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
6557         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
6558         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
6560 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
6562         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
6563         from sysdep_headers.
6565 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
6567         * time/tzfile.c (find_transition): Instead of a linear search try to
6568         guess the transition index, use a linear search if the result is at
6569         most 10 transitions away from the guess or binary search otherwise.
6571 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
6573         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
6574         memory reallocation.
6576 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
6578         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
6579         and fix some typos.
6580         Optimize use of TOLOWER.
6582         [BZ #3325]
6583         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
6584         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
6585         * sysdeps/i386/fpu/e_fmod.S: Likewise.
6587         [BZ #3458]
6588         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
6589         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
6591         [BZ #4076]
6592         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
6593         (open_dir_stream): Likewise.
6594         * io/Makefile (tests): Add bug-ftw5.
6595         * io/bug-ftw5.c: New file.
6597         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
6598         * nscd/servicescache.c (cache_addserv): Likewise.
6600         * nscd/grpcache.c (cache_addgr): In case a record changed on
6601         refresh, adjust key_copy.
6603         [BZ #4074]
6604         * nscd/pwdcache.c (cache_addpw): In case a record changed on
6605         refresh, adjust key_copy.
6607         [BZ #4070]
6608         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
6609         special cases.
6610         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
6612 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
6614         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
6615         optimization.
6617         * stdio-common/vfscanf.c: Small cleanups throughout.
6619 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
6621         [BZ #3325]
6622         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
6623         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
6624         * sysdeps/i386/fpu/e_fmod.S: Likewise.
6625         Patch by Jared Casper <jaredcasper@gmail.com>.
6627         * sysdeps/unix/closedir.c: Outside libc don't use locking.
6628         * sysdeps/unix/opendir.c: Likewise.
6629         * sysdeps/unix/readdir.c: Likewise.
6631         [BZ #2211]
6632         * stdio-common/vfscanf.c: Handle localized digits etc for floating
6633         point numbers.
6634         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
6636         * stdio-common/vfscanf.c: Fix problems in width accounting.
6637         * stdio-common/tst-sscanf.c (double_tests): New tests.
6638         (main): Hook them up.
6640         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
6641         More simplifications of floating-point reader.
6643         * stdio-common/Makefile (tests): Add tst-swscanf.
6644         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
6645         testing.
6646         * stdio-common/tst-swscanf.c: New file.
6648 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
6650         [BZ #2633]
6651         * libio/stdio.h: Define struct _IO_FILE in global namespace.
6652         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
6653         Remove using for __jmp_buf_tag.
6654         * locale/locale.h (struct lconv): Also define in std namespace.
6655         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
6657         [BZ #3842]
6658         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
6659         using __libc_enable_secure.
6661         [BZ #3818]
6662         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
6664         [BZ #3745]
6665         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
6666         of names for ellipsises.
6668         [BZ #3348]
6669         * malloc/memusage.sh: Cleanups.
6670         * debug/xtrace.sh: Quoting and trap changes.
6672 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
6674         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
6676         * locale/iso-3166.def: Update entry for Serbia.
6677         * locale/iso-4217.def: Define RSD, remove CSD.
6679         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
6680         and 64-bit operations.
6682         [BZ #4040]
6683         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
6684         16-bit operations.
6686         * nscd/nscd.c (parse_opt): One more conversion to use send instead
6687         of writev.
6689 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
6691         [BZ #3991]
6692         * assert/assert.h (assert): Simplify.
6693         (assert_perror): Likewise.
6694         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
6696         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
6697         reqdata.
6699         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
6700         change: don't pass NULL in place of an integer.
6702 2007-02-02  Bruno Haible  <bruno@clisp.org>
6704         [BZ #3954]
6705         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
6706         Add mapping for U+327E.
6707         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
6708         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
6709         mapping of 0xD9 0xE8.
6710         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
6711         mapping of U+327E.
6712         Reported by Jungshik Shin <jungshik@google.com>.
6714         [BZ #3955]
6715         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
6716         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
6717         Reported by Jungshik Shin <jungshik@google.com>.
6719 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
6721         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
6722         byte variants.
6724         [BZ #4040]
6725         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
6726         byte variants.  Patch mostly be tom@tommay.net.
6728 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
6730         [BZ #3996]
6731         * posix/glob.c (attribute_hidden): Define if not defined.
6732         (glob): Unescape dirname, filename or username when needed and not
6733         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
6734         is NULL.  Handle unescaped [ in pattern without closing ].
6735         Don't pass GLOB_CHECK down to recursive glob for directories.
6736         (__glob_pattern_type): New function.
6737         (__glob_pattern_p): Implement using __glob_pattern_type.
6738         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
6739         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
6740         Remove unreachable code.
6741         * posix/globtest.sh: Add a couple of new tests.
6743 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
6745         * po/ru.po: Update from translation team.
6747 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
6749         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
6750         to the list of i486+ CPUs.
6751         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
6753 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
6755         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
6756         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
6757         references.
6759 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
6761         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
6763         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
6764         * resolv/res_mkquery.c: Define __res_nopt.
6765         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
6766         try adding EDNS0 record.
6767         * resolv/res_send.c (send_dg): If request failed with FORMERR and
6768         EDNS0 record was send make sure we don't try it again.
6769         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
6770         * include/resolv.h: Declare __res_nopt.
6772 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
6774         [BZ #3944]
6775         * time/strptime_l.c (__strptime_internal): Set have_mon for
6776         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
6777         have been computed from tm_yday and tm_year.  Don't crash
6778         in day_of_the_week or day_of_the_year if not have_mon
6779         and tm_mon contains bogus value.
6780         * time/Makefile (tests): Add tst-strptime3.
6781         * time/tst-strptime3.c: New test.
6783 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
6785         [BZ #3957]
6786         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
6787         bit for RE_HAT_LISTS_NOT_NEWLINE.
6788         (build_charclass_op): Remove bogus comment.
6789         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
6790         * posix/bug-regex27.c: New test.
6791         * posix/bug-regex28.c: New test.
6793 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
6795         * po/sv.po: Update from translation team.
6797 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
6799         * nscd/nscd_helper.c (open_socket): Minor size optimization.
6801 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
6803         * include/locale.h (__uselocale): Add libc_hidden_proto.
6804         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
6806         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
6807         gettimeofday.
6809 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
6811         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
6812         returning.
6813         (PTR_DEMANGLE): Real definition now that it's not the same as
6814         PRT_MANGLE anymore.
6815         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
6817         * string/strerror_l.c: New file.
6818         * string/Makefile (routines): Add strerror_l.
6819         * string/string.h: Declare strerror_l.
6820         * string/Versions: Export strerror_l for GLIBC_2.6.
6822 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
6824         * nscd/nscd_helper.c (open_socket): Now takes request type and key
6825         as parameter.  Construct request record.  Try sending request
6826         before the first poll use, it usually succeeds.  Adjust all
6827         callers.
6828         * nscd/nscd-client.h: Define MAXKEYLEN.
6829         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
6831 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
6833         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
6834         from return value.
6835         * nscd/nscd_helper.c: Include string.h.
6836         (__nscd_cache_search): Remove const qualifier from return value.
6837         On strict alignment architectures check hash entry and data head
6838         alignment.
6839         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
6840         mmapped data during GC cycle contains garbage.  If
6841         __nscd_drop_map_ref fails, decrement mapped->counter when returning
6842         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
6843         dropped to 0.
6844         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
6845         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
6846         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6847         * nscd/nscd_getai.c (__nscd_getai): Likewise.
6848         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
6850 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
6852         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
6854 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
6856         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
6857         names not numbers in cfi_*.
6859 2007-01-26  Andreas Jaeger  <aj@suse.de>
6861         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
6862         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
6863         Correct values of PER_HPUX and PER_OSF4.
6865 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
6867         * elf/dl-minimal.c: Undefine _itoa first.
6868         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
6869         * malloc/mtrace.c: Revert last change.
6870         * posix/wordexp.c: Likewise.
6872 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
6874         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
6875         and __geode__ to the list of i486+ CPUs.
6876         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
6878 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
6880         * stdio-common/_itoa.c: Include <limits.h>.
6881         * stdio-common/_itowa.c: Likewise.
6883 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
6885         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
6886         platforms.
6887         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
6888         64-bit platforms.
6889         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
6890         possible.
6891         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
6892         if possible.
6894         [BZ #3902]
6895         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
6896         * stdio-common/Makefile (tests): Add bug17.
6897         * stdio-common/bug17.c: New file.
6899 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
6901         * iconvdata/brf.c: New file.
6902         * iconvdata/testdata/BRF: New file.
6903         * iconvdata/testdata/BRF..UTF8: New file.
6904         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6905         * iconvdata/Makefile: Add rules to build BRF.
6906         * iconvdata/TESTS: Add BRF entry.
6907         * iconvdata/gconv-modules: Likewise.
6908         * iconvdata/tst-tables.sh: Likewise.
6910 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
6912         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
6913         type `long long int', not `long int'.
6914         (wcstoq): Likewise.
6916 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
6918         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
6919         of values on 64-bit platforms which are too large.
6921 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
6922             Joe Kerian  <jkerian@us.us.ibm.com>
6924         [BZ #2749]
6925         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
6926         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
6927         (__copysignl): Use signbit() for comparison.
6928         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
6929         SET_LDOUBLE_WORDS64.
6931         [BZ #2423, #2749]
6932         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
6933         (__ceill): Remove calls to fegetround(), fesetround().
6934         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
6935         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
6936         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6938 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
6940         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
6942         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
6944 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
6946         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
6947         demangle pointer.
6948         * csu/libc-start.c: Likewise.
6950 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
6952         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
6953         really work anyway.
6955 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
6957         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
6958         users.
6959         (handle_request): Remove unnecessary tests.
6961         * nscd/cache.c (cache_add): Record the failure to add to the cache.
6963 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
6965         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
6966         workbits in semi-raw fraction.
6968         * math/test-misc.c: Add new tests.
6970 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
6972         * math/basic-test.c: Include test-skeleton.c.
6973         (TEST_TRUNC): Define.
6974         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
6975         (main): Rename to ...
6976         (do_test): ...this.  Run new tests.
6977         (TEST_FUNCTION): Define.
6979 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
6980             Joe Kerian  <jkerian@us.us.ibm.com>
6982         [BZ #2749]
6983         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
6984         handling for high words.
6985         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
6986         and overflow for infinity.
6988 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
6990         * nscd/connections.c (handle_request): Add a __builtin_expect.
6992         * nscd/connections.c (serv2db): Change type into structure which
6993         also says whether this is a request for data.  Renamed to
6994         servinfo.  All users changed.
6995         (handle_request): Much simpler test whether we should search the cache.
6997         * nscd/connections.c (handle_request): Fix thinko in selinux test
6998         invocation.
7000         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
7001         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
7002         it before getting dl_load_lock and then relock.
7003         (_dl_lookup_symbol_x): Pass flags to add_dependency.
7004         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
7005         case we unlocked the scope.
7006         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
7007         _dl_lookup_symbol_x in case we locked the scope.
7008         (_dl_profile_fixup): Likewise.
7009         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
7010         set DL_LOOKUP_SCOPE_LOCK.
7012 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
7014         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
7015         CFLAGS-getsrvbynpt_r.c.
7016         * nscd/getsrvbynm_r.c: New file.
7017         * nscd/getsrvbypt_r.c: New file.
7018         * nscd/nscd_getserv_r.c: New file.
7019         * nscd/servicescache.c: New file.
7020         * nscd/Makefile (routines): Add nscd_getserv_r.
7021         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
7022         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
7023         CFLAGS-getsrvbypt_r.c.
7024         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
7025         table.  Add entries for services database.
7026         * nscd/connections.c (serv2str): Mark as const.  Add entries for
7027         services database.
7028         (dbs): Add .reset_res and servdb initialization.
7029         (serv2db): Add entries for services database.
7030         (verify_persistent_db): Accept dbnr == servdb.
7031         (invalidate_cache): Rewrite database name recognition to use a table.
7032         Call res_init() if .reset_res is set for database.
7033         (handle_request): Add code to handle services database.
7034         * nscd/gai.c: Don't define __getservbyname_r.
7035         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
7036         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
7037         (serv_response_header): Define.
7038         (struct datahead): Add serv_response_header member.
7039         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
7040         using table.
7041         * nscd/nscd.conf: Add entries for services database.
7042         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
7043         Declare serv_iov_disabled.
7044         Declare addservbyname, readdservbyname, addservbyport, and
7045         readdservbyport.
7046         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
7047         (find_db): Fix error message.
7048         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
7049         __nscd_getservbyname_r, and __nscd_getservbyport_r.
7050         * nscd/selinux.c (perms): Add entries for services database.
7051         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
7052         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
7054         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
7055         * nscd/hstcache.c: Likewise.
7056         * nscd/pwdcache.c: Likewise.
7058         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
7059         computation of keylen.
7061         * include/string.h: Only redefine strndupa if this is really for
7062         libc code.
7064 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
7066         * nscd/nscd_gethst_r.c: Minor cleanups.
7068         * nscd/connections.c (handle_request): Check selinux permissions
7069         for all non-admin commands.
7071         * sysdeps/i386/i486/bits/atomic.h: Define
7072         atomic_compare_and_exchange_val_acq,
7073         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
7074         using __sync_* built-ins for gcc >= 4.1.
7075         * sysdeps/x86_64/bits/atomic.h: Likewise.
7077         [BZ #3840]
7078         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
7079         and .oS.d files.
7081 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
7083         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
7084         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
7085         (do_test): Check errno and exit(0) if ENOSYS.
7087 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
7089         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
7090         thousands separators.
7091         * stdlib/Makefile: Add rules to build and run tst-strtod4.
7092         * stdlib/tst-strtod4.c: New test.
7094         [BZ #3855]
7095         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
7096         hexadecimal digit should accept just the initial 0.
7097         * stdlib/tst-strtod2.c (tests): New variable.
7098         (do_test): Run several tests rather than just one.
7100 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
7102         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
7103         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
7105 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
7107         * io/fts.c: Make sure fts_cur is always valid after return from
7108         fts_read.
7109         Patch by Miloslav Trmac <mitr@redhat.com>.
7111 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
7113         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
7114         (R_MIPS_NUM): Bump by 1.
7116 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
7118         * posix/execvp.c: Include alloca.h.
7119         (allocate_scripts_argv): Renamed to...
7120         (scripts_argv): ... this.  Don't allocate buffer here nor count
7121         arguments.
7122         (execvp): Use alloca if possible.
7123         * posix/Makefile: Add rules to build and run tst-vfork3 test.
7124         * posix/tst-vfork3.c: New test.
7126 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
7128         * string/Makefile (tst-strxfrm2-ENV): Define.
7129         * stdlib/Makefile (tst-strtod3-ENV): Define.
7131 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
7133         * posix/getconf.c: Update copyright year.
7134         * nss/getent.c: Likewise.
7135         * iconv/iconvconfig.c: Likewise.
7136         * iconv/iconv_prog.c: Likewise.
7137         * elf/ldconfig.c: Likewise.
7138         * catgets/gencat.c: Likewise.
7139         * csu/version.c: Likewise.
7140         * elf/ldd.bash.in: Likewise.
7141         * elf/sprof.c (print_version): Likewise.
7142         * locale/programs/locale.c: Likewise.
7143         * locale/programs/localedef.c: Likewise.
7144         * nscd/nscd.c (print_version): Likewise.
7145         * debug/xtrace.sh: Likewise.
7146         * malloc/memusage.sh: Likewise.
7147         * malloc/mtrace.pl: Likewise.
7148         * debug/catchsegv.sh: Likewise.
7150 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
7152         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
7153         attempts.
7155 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
7157         * posix/wordexp.c: Remove some unnecessary tests.
7159 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
7161         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
7162         blacklist the group till after we look it up.
7164 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
7166         * include/atomic.h (atomic_forced_read): New macro.
7168 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
7170         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
7172 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
7174         * nss/getXXbyYY_r.c: Include atomic.h.
7175         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
7176         add atomic_write_barrier () in between.
7178         * stdlib/Makefile (tests): Add tst-makecontext.
7179         * stdlib/tst-makecontext.c: New test.
7181         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
7182         (__makecontext): Don't realign uc_mcontext.uc_regs.
7184 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
7186         * elf/dl-support.c: Include dl-procinfo.h.
7187         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
7188         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
7189         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
7190         Define.
7191         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
7192         hardcoded constants.
7193         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
7194         PPC_PLATFORM_* macros for array designators.
7196 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
7198         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
7199         names to the beginning.
7200         (_dl_powerpc_platforms): Add "power6x".
7201         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
7202         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
7203         (_DL_PLATFORMS_COUNT): Increase.
7204         (_dl_string_platform): Handle power6x case.
7205         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
7206         PPC_FEATURE_POWER6_EXT): Define.
7207         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
7209 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
7211         [BZ #3747]
7212         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
7213         [-2^31 .. 2^31) range.
7214         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
7215         targets.
7216         * stdlib/tst-rand48-2.c: New test.
7217         * stdlib/Makefile (tests): Add tst-rand48-2.
7219 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
7221         * misc/tst-pselect.c (do_test): Fix sigblock argument.
7223 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
7225         * misc/tst-pselect.c (do_test): Make sure the helper process is
7226         terminating when the test is aborted.
7228 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
7230         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
7231         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
7232         Handle relatime mount option.
7234         [BZ #2337]
7235         * libio/Makefile (tests): Add tst-setvbuf1.
7236         * libio/tst-setvbuf1.c: New file.
7238 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
7240         [BZ #2337]
7241         * libio/genops.c (__uflow): Fix a typo.
7242         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
7243         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
7244         the narrow buffer size.
7246 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
7248         [BZ #2337]
7249         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
7250         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
7251         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
7252         in _flags.
7253         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
7254         _IO_wstr_finish): Likewise.
7255         * libio/wmemstream.c (open_wmemstream): Likewise.
7256         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
7257         even for wide streams.
7259 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
7261         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
7262         kernel-features.h.
7264 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
7266         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
7267         separators also if no non-zero digits found.
7268         * stdlib/Makefile (tests): Add tst-strtod3.
7270 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
7272         [BZ #3632]
7273         * include/features.h: Fix comment about default value for
7274         _POSIX_C_SOURCE.
7276         [BZ #3664]
7277         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
7278         empty parsed strings.
7279         * stdlib/Makefile (tests): Add tst-strtod2.
7280         * stdlib/tst-strtod2.c: New file.
7282         [BZ #3673]
7283         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
7284         computation.
7285         * stdlib/Makefile (tests): Add tst-atof2.
7286         * stdlib/tst-atof2.c: New file.
7288         [BZ #3674]
7289         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
7290         correctly if removing trailing zero of hex-float.
7291         * stdlib/Makefile (tests): Add tst-atof1.
7292         * stdlib/tst-atof1.c: New file.
7294 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
7296         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
7297         Start searching for next comma at p rather than rest.
7298         * misc/Makefile (tests): Add tst-mntent2.
7299         * misc/tst-mntent2.c: New test.
7301         * misc/getusershell.c (initshells): Check for integer overflows.
7302         Make strings buffer one bigger as fgets always succeeds when second
7303         argument is 1.  Don't use calloc for shells array.  Disallow
7304         / as shell.
7306 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
7308         * malloc/memusage.c: Handle realloc with new size of zero and
7309         non-NULL pointer correctly.
7310         (me): Really write first record twice.
7311         (struct entry): Make format bi-arch safe.
7312         (dest): Write out more realloc statistics.
7313         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
7315 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
7317         * nis/nis_subr.c (nis_getnames): Revert last change.
7319 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
7321         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
7322         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
7323         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
7324         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
7325         ENOTTY.
7326         * io/Makefile: Add rules to build and run tst-ttyname_r test.
7327         * io/tst-ttyname_r.c: New test.
7329 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7331         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
7333 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
7335         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
7336         jump table entries.
7338 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
7340         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
7341         `clone' function to ensure proper unwinding stop of gdb.
7342         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
7344 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
7346         * nscd/nscd.init: Remove obsolete and commented-out -S option
7347         handling.
7349 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
7351         [BZ #3514]
7352         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
7354         [BZ #3515]
7355         * manual/string.texi (strtok): Remove duplicate paragraph.
7357 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
7359         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
7360         libgcc not supporting `rflags' unwinding (register # >= 17).
7362 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
7364         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
7365         succeeded.
7367 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
7368             Jakub Jelinek  <jakub@redhat.com>
7369             Jan Kratochvil  <jan.kratochvil@redhat.com>
7371         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
7372         unwind information.
7373         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
7374         'restore_rt' even in the 'signal' directory.
7375         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
7377 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
7379         [BZ #3559]
7380         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
7381         malloc crashed.  Don't allocate memory unnecessarily in each
7382         loop.
7384 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
7386         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
7388 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
7390         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
7392 2006-11-18  Bruno Haible  <bruno@clisp.org>
7394         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
7395         __sysconf only after having tried to call getgroups32.
7397 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
7399         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
7400         addresses for IPv4 queries if they can be mapped.
7402 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
7404         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
7405         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
7406         (signmask): Add .size directive.
7407         (othermask): Add .type directive.
7409 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
7411         * po/nl.po: Update from translation team.
7413         * timezone/zdump.c: Redo fix for BZ #3137.
7415 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
7417         * nss/nss_files/files-alias.c (get_next_alias): Set line back
7418         to first_unused after parsing :include: file.
7420 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
7422         * timezone/africa: Update from tzdata2006o.
7423         * timezone/antarctica: Likewise.
7424         * timezone/asia: Likewise.
7425         * timezone/australasia: Likewise.
7426         * timezone/backward: Likewise.
7427         * timezone/europe: Likewise.
7428         * timezone/iso3166.tab: Likewise.
7429         * timezone/northamerica: Likewise.
7430         * timezone/southamerica: Likewise.
7431         * timezone/zone.tab: Likewise.
7433         * time/tzfile.c (__tzfile_read): Extend to handle new file format
7434         on machines with 64-bit time_t.
7436         * timezone/checktab.awk: Update from tzcode2006o.
7437         * timezone/ialloc.c: Likewise.
7438         * timezone/private.h: Likewise.
7439         * timezone/scheck.c: Likewise.
7440         * timezone/tzfile.h: Likewise.
7441         * timezone/tzselect.ksh: Likewise.
7442         * timezone/zdump.c: Likewise.
7443         * timezone/zic.c: Likewise.
7445         [BZ #3483]
7446         * elf/ldconfig.c (main): Call setlocale and textdomain.
7447         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
7449         [BZ #3480]
7450         * manual/argp.texi: Fix typos.
7451         * manual/charset.texi: Likewise.
7452         * manual/errno.texi: Likewise.
7453         * manual/filesys.texi: Likewise.
7454         * manual/lang.texi: Likewise.
7455         * manual/maint.texi: Likewise.
7456         * manual/memory.texi: Likewise.
7457         * manual/message.texi: Likewise.
7458         * manual/resource.texi: Likewise.
7459         * manual/search.texi: Likewise.
7460         * manual/signal.texi: Likewise.
7461         * manual/startup.texi: Likewise.
7462         * manual/stdio.texi: Likewise.
7463         * manual/sysinfo.texi: Likewise.
7464         * manual/syslog.texi: Likewise.
7465         * manual/time.texi: Likewise.
7466         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7468         [BZ #3465]
7469         * sunrpc/clnt_raw.c: Minimal message improvements.
7470         * sunrpc/pm_getmaps.c: Likewise.
7471         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
7472         * nis/nis_print_group_entry.c: Likewise.
7473         * locale/programs/repertoire.c: Likewise.
7474         * locale/programs/charmap.c: Likewise.
7475         * malloc/memusage.sh: Likewise.
7476         * elf/dl-deps.c: Likewise.
7477         * locale/programs/ld-collate.c: Likewise.
7478         * libio/vswprintf.c: Likewise.
7479         * malloc/memusagestat.c: Likewise.
7480         * sunrpc/auth_unix.c: Likewise.
7481         * sunrpc/rpc_main.c: Likewise.
7482         * nscd/cache.c: Likewise.
7483         * locale/programs/repertoire.c: Unify output messages.
7484         * locale/programs/charmap.c: Likewise.
7485         * locale/programs/ld-ctype.c: Likewise.
7486         * locale/programs/ld-monetary.c: Likewise.
7487         * locale/programs/ld-numeric.c: Likewise.
7488         * locale/programs/ld-time.c: Likewise.
7489         * elf/ldconfig.c: Likewise.
7490         * nscd/selinux.c: Likewise.
7491         * elf/cache.c: Likewise.
7492         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
7494         [BZ #3451]
7495         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
7496         change atomic.
7497         (ceil): Likewise.
7499 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
7501         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
7502         if N is one bigger than return value.
7503         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
7504         and l1 last arguments, if buf is defined, verify the return value
7505         equals to strlen (buf) and verify no byte beyond passed length
7506         is modified.
7508 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
7510         * po/sv.po: Update from translation team.
7512 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
7514         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
7515         noinline attribute.
7517 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
7519         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
7520         noinline attribute.
7522         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
7523         Use __new_sys_siglist instead of _sys_siglist_internal as
7524         second macro argument.
7525         (_old_sys_siglist): Use declare_symbol_alias macro instead of
7526         strong_alias.
7528 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
7530         [BZ #3493]
7531         * posix/unistd.h (sysconf): Remove const attribute.
7533         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
7534         temporary or deprecated addresses.
7535         Patch by Sridhar Samudrala <sri@us.ibm.com>.
7537         * string/Makefile (tests): Add tst-strxfrm2.
7538         * string/tst-strxfrm2.c: New file.
7540 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
7542         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
7543         rather than r->r_brk.
7545 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
7547         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
7548         optimization even if needed > n.
7550         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
7551         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
7552         return false, otherwise return true.
7553         (cache_rpath): Return decompose_rpath return value.
7555 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
7557         * include/libc-symbols.h (declare_symbol): Rename to...
7558         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
7559         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
7560         .size directive.
7561         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
7562         changes.
7563         * sysdeps/gnu/siglist.c: Likewise.
7565 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
7567         * sysdeps/powerpc/fpu/bits/mathinline.h
7568         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
7569         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
7571 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
7573         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
7574         Update handling of cache descriptor 0x49 for new models.
7575         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
7576         Likewise.
7578 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
7580         * malloc/memusage.c (dest): Reset not_me back to false after
7581         printing statistics.
7583 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
7585         * configure.in: Work around ld --help change and avoid -z relro
7586         test completely if the architecture doesn't care about security.
7588 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
7590         * po/sv.po: Update from translation team.
7592 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
7594         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
7595         generate compatibility version.
7597 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
7599         * configure.in: Relax -z relro requirement a bit.
7601         * po/sv.po: Update from translation team.
7603 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
7605         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
7606         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
7607         * elf/dl-close.c (_dl_close_worker): Likewise.
7608         * elf/dl-open.c (_dl_open_worker): Likewise.
7609         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
7611 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
7613         * configure.in: Require assembler support for visibility, compiler
7614         support for visibility and aliases, linker support for various -z
7615         options.
7616         * Makeconfig: Remove conditional code which now is unnecessary.
7617         * config.h.in: Likewise.
7618         * config.make.in: Likewise.
7619         * dlfcn/Makefile: Likewise.
7620         * elf/Makefile: Likewise.
7621         * elf/dl-load.c: Likewise.
7622         * elf/rtld.c: Likewise.
7623         * include/libc-symbols.h: Likewise.
7624         * include/stdio.h: Likewise.
7625         * io/Makefile: Likewise.
7626         * io/fstat.c: Likewise.
7627         * io/fstat64.c: Likewise.
7628         * io/fstatat.c: Likewise.
7629         * io/fstatat64.c: Likewise.
7630         * io/lstat.c: Likewise.
7631         * io/lstat64.c: Likewise.
7632         * io/mknod.c: Likewise.
7633         * io/mknodat.c: Likewise.
7634         * io/stat.c: Likewise.
7635         * io/stat64.c: Likewise.
7636         * libio/stdio.c: Likewise.
7637         * nscd/Makefile: Likewise.
7638         * stdlib/Makefile: Likewise.
7639         * stdlib/atexit.c: Likewise.
7640         * sysdeps/generic/ldsodefs.h: Likewise.
7641         * sysdeps/i386/dl-machine.h: Likewise.
7642         * sysdeps/i386/sysdep.h: Likewise.
7643         * sysdeps/i386/i686/memcmp.S: Likewise.
7644         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
7645         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
7646         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
7648         * Makerules: USE_TLS support is now default.
7649         * tls.make.c: Likewise.
7650         * csu/Versions: Likewise.
7651         * csu/libc-start.c: Likewise.
7652         * csu/libc-tls.c: Likewise.
7653         * csu/version.c: Likewise.
7654         * dlfcn/dlinfo.c: Likewise.
7655         * elf/dl-addr.c: Likewise.
7656         * elf/dl-cache.c: Likewise.
7657         * elf/dl-close.c: Likewise.
7658         * elf/dl-iteratephdr.c: Likewise.
7659         * elf/dl-load.c: Likewise.
7660         * elf/dl-lookup.c: Likewise.
7661         * elf/dl-object.c: Likewise.
7662         * elf/dl-open.c: Likewise.
7663         * elf/dl-reloc.c: Likewise.
7664         * elf/dl-support.c: Likewise.
7665         * elf/dl-sym.c: Likewise.
7666         * elf/dl-sysdep.c: Likewise.
7667         * elf/dl-tls.c: Likewise.
7668         * elf/ldconfig.c: Likewise.
7669         * elf/rtld.c: Likewise.
7670         * elf/tst-tls-dlinfo.c: Likewise.
7671         * elf/tst-tls1.c: Likewise.
7672         * elf/tst-tls10.h: Likewise.
7673         * elf/tst-tls14.c: Likewise.
7674         * elf/tst-tls2.c: Likewise.
7675         * elf/tst-tls3.c: Likewise.
7676         * elf/tst-tls4.c: Likewise.
7677         * elf/tst-tls5.c: Likewise.
7678         * elf/tst-tls6.c: Likewise.
7679         * elf/tst-tls7.c: Likewise.
7680         * elf/tst-tls8.c: Likewise.
7681         * elf/tst-tls9.c: Likewise.
7682         * elf/tst-tlsmod1.c: Likewise.
7683         * elf/tst-tlsmod13.c: Likewise.
7684         * elf/tst-tlsmod13a.c: Likewise.
7685         * elf/tst-tlsmod14a.c: Likewise.
7686         * elf/tst-tlsmod2.c: Likewise.
7687         * elf/tst-tlsmod3.c: Likewise.
7688         * elf/tst-tlsmod4.c: Likewise.
7689         * elf/tst-tlsmod5.c: Likewise.
7690         * elf/tst-tlsmod6.c: Likewise.
7691         * include/errno.h: Likewise.
7692         * include/link.h: Likewise.
7693         * include/tls.h: Likewise.
7694         * locale/global-locale.c: Likewise.
7695         * locale/localeinfo.h: Likewise.
7696         * malloc/arena.c: Likewise.
7697         * malloc/hooks.c: Likewise.
7698         * malloc/malloc.c: Likewise.
7699         * resolv/Versions: Likewise.
7700         * sysdeps/alpha/dl-machine.h: Likewise.
7701         * sysdeps/alpha/libc-tls.c: Likewise.
7702         * sysdeps/generic/ldsodefs.h: Likewise.
7703         * sysdeps/generic/tls.h: Likewise.
7704         * sysdeps/i386/dl-machine.h: Likewise.
7705         * sysdeps/ia64/dl-machine.h: Likewise.
7706         * sysdeps/ia64/libc-tls.c: Likewise.
7707         * sysdeps/mach/hurd/fork.c: Likewise.
7708         * sysdeps/mach/hurd/i386/tls.h: Likewise.
7709         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
7710         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
7711         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
7712         * sysdeps/s390/libc-tls.c: Likewise.
7713         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7714         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7715         * sysdeps/sh/dl-machine.h: Likewise.
7716         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7717         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7718         * sysdeps/x86_64/dl-machine.h: Likewise.
7720         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
7721         split out locking and parameter checking.
7722         (_dl_close): Call _dl_close_worker after locking and checking.
7723         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
7724         _dl_close.
7725         * elf/Makefile: Add rules to build and run tst-thrlock.
7726         * elf/tst-thrlock.c:  New file.
7728         [BZ #3426]
7729         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
7730         reality.
7732         [BZ #3429]
7733         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
7734         we are sure we do not need it anymore for _dl_close.  Also move
7735         the asserts inside the lock region.
7736         Patch mostly by Suzuki <suzuki@in.ibm.com>.
7738 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
7740         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
7741         argument.
7742         (_dl_lookup_symbol_x): Adjust caller.
7744         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
7745         _ns_global_scope.
7746         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
7748         * elf/dl-libc.c: Revert l_scope name changes.
7749         * elf/dl-load.c: Likewise.
7750         * elf/dl-object.c: Likewise.
7751         * elf/rtld.c: Likewise.
7752         * elf/dl-close.c (_dl_close): Likewise.
7753         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
7754         always use __rtld_mrlock_{change,done}.  Always free old scope list
7755         here if not l_scope_mem.
7756         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
7757         change.  Never free scope list here.  Just __rtld_mrlock_lock before
7758         the lookup and __rtld_mrlock_unlock it after the lookup.
7759         * elf/dl-sym.c: Likewise.
7760         * include/link.h (struct r_scoperec): Remove.
7761         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
7762         with l_scope_mem and l_scoperec_lock with l_scope_lock.
7764 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
7766         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
7768 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
7770         * configure.in: Disable building profile libraries by default.
7772 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
7774         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
7775         as signed longs, check for x_base + pos overflow.
7776         * sunrpc/Makefile (tests): Add tst-xdrmem2.
7777         * sunrpc/tst-xdrmem2.c: New test.
7779 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
7781         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
7782         _dl_lookup_symbol_x code.
7784 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
7786         * elf/dl-runtime.c: Include sysdep-cancel.h.
7787         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
7788         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
7789         instead of catomic_* macros.
7790         * elf/dl-sym.c: Include sysdep-cancel.h.
7791         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
7792         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
7793         * elf/dl-close.c: Include sysdep-cancel.h.
7794         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
7795         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
7796         * elf/dl-open.c: Include sysdep-cancel.h.
7797         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
7798         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
7800 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
7802         [BZ #3313]
7803         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
7804         fastbin rather than end of fastbin array.
7806 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
7808         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
7809         body macro.
7810         * sysdeps/x86_64/bits/atomic.h
7811         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
7812         (catomic_decrement): Use correct body macro.
7814 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
7816         * include/atomic.h: Add a unique prefix to all local variables
7817         in macros.
7818         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
7820 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
7822         [BZ #3369]
7823         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
7824         and 7.
7826 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
7828         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
7830 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
7832         [BZ #3313]
7833         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
7834         determine highest fast bin to consolidate, always look into all of
7835         them.
7836         (do_check_malloc_state): Only require for empty bins for large
7837         sizes in main arena.
7839         * libio/stdio.h: Add more __wur attributes.
7841         * elf/dl-minimal.c (realloc): Optimize last patch.
7843 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
7845         [BZ #3352]
7846         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
7847         and use memcpy() if it does.
7849 2006-11-12  Andreas Jaeger  <aj@suse.de>
7851         [BZ #2510]
7852         * manual/search.texi (Hash Search Function): Clarify.
7853         (Array Search Function): Clarify.
7855 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
7857         [BZ #2830]
7858         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
7859         shifting.
7860         * math/atest-exp2.c (read_mpn_hex): Likewise.
7861         * math/atest-sincos.c (main): Likewise.
7863 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
7865         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
7866         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
7867         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
7868         version GLIBC_2.6.
7869         * Versions.def: Add GLIBC_2.6 for libc.
7871         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
7873         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
7875 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
7877         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
7879         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
7881         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
7882         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
7884 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
7886         * include/atomic.c: Define catomic_* operations.
7887         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
7888         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
7889         * malloc/memusage.c: Likewise.
7890         * gmon/mcount.c: Likewise.
7891         * elf/dl-close.c: Likewise.
7892         * elf/dl-open.c: Likewise.
7893         * elf/dl-profile.c: Likewise.
7894         * elf/dl-sym.c: Likewise.
7895         * elf/dl-runtime.c: Likewise.
7896         * elf/dl-fptr.c: Likewise.
7897         * resolv/res_libc.c: Likewise.
7899 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
7901         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
7902         components which lack them.
7904         * nis/nis_subr.c (nis_getnames): Make sure that we always return
7905         at least one entry consisting of the parameter concatenated with
7906         the domain.
7908 2006-10-10  Roland McGrath  <roland@frob.com>
7910         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
7911         * sysdeps/mach/hurd/futimes.c: Likewise.
7912         * sysdeps/mach/hurd/lutimes.c: Likewise.
7914 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
7915             Jakub Jelinek  <jakub@redhat.com>
7917         Implement reference counting of scope records.
7918         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
7919         from the list in objects which remain.  Always allocate new scope
7920         record.
7921         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
7922         don't resize, allocate a new one.
7923         * elf/dl-runtime.c: Update reference counters before using a scope
7924         array.
7925         * elf/dl-sym.c: Likewise.
7926         * elf/dl-libc.c: Adjust for l_scope name change.
7927         * elf/dl-load.c: Likewise.
7928         * elf/dl-object.c: Likewise.
7929         * elf/rtld.c: Likewise.
7930         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
7931         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
7932         Add l_scoperec_lock.
7933         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
7934         * sysdeps/generic/rtld-lowlevel.h: New file.
7936         * include/atomic.h: Rename atomic_and to atomic_and_val and
7937         atomic_or to atomic_or_val.  Define new macros atomic_and and
7938         atomic_or which do not return values.
7939         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
7940         Various cleanups.
7941         * sysdeps/i386/i486/bits/atomic.h: Likewise.
7943         * po/sv.po: Update from translation team.
7945 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
7947         * Versions.def: Add GLIBC_2.6 to libpthread.
7949         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
7950         (versioned_symbol): Likewise.
7951         (compat_symbol): Likewise.
7953         * po/tr.po: Update from translation team.
7955 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
7957         * nis/Banner: Removed.  It's been integral part forever and the
7958         author info is incomplete anyway.
7959         * libio/Banner: Likewise.
7961         * nis/nis_table.c (nis_list): If __follow_path fails in the new
7962         code, make sure the nis_freeresult call doesn't crash and that the
7963         result is reported correctly.
7965 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
7967         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
7968         when callback is NULL.
7970         * nis/Versions (libnss_nisplus): Add
7971         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
7972         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
7973         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
7974         _nss_create_tablename): Rename to...
7975         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
7976         ... these.  No longer static.
7977         (internal_setgrent): Adjust users.
7978         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
7979         Don't use locking around _nss_grp_create_tablename call.
7980         * nis/nss_nisplus/nisplus-initgroups.c: New file.
7982 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
7984         * version.h (VERSION): Bump to 2.5.90 for new development tree.
7986 2006-10-06  Andreas Jaeger  <aj@suse.de>
7988         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
7990 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
7992         * po/pl.po: Update from translation team.
7994         * nscd/nscd.c (main): Fix typo in message.
7995         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
7997 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
7999         [BZ #3291]
8000         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
8001         errno.h, signal.h, unistd.h and sysdep-cancel.h.
8002         (__sigprocmask): Define.
8004 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
8006         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
8007         used.
8009 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
8011         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
8012         in oldtotal and newtotal calculation.
8013         * nscd/nscd-client.h (struct mapped_database): Add datasize
8014         field.
8015         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
8016         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
8017         increased.
8018         (__nscd_cache_search): Add checks to make sure we never reference
8019         data beyond the current mapping.
8021 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
8023         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
8024         variables const to avoid compiler warnings.
8026         * io/fts.c (fts_close): Remove redundant checks.
8027         (fts_build): Likewise.
8028         (fts_palloc): Likewise.
8030         * manual/message.texi (Advanced gettext functions,
8031         Using gettextized software): Fix typos.
8033 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
8035         * posix/glob.c (glob_in_dir): Add some comments and asserts to
8036         explain why there are no leaks.
8038 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
8040         * libio/wmemstream.c: Include <wchar.h>.
8041         * libio/bug-wmemstream1.c: Likewise.
8042         * libio/tst-wmemstream1.c: Likewise.
8043         * libio/tst-wmemstream2.c: Likewise.
8045         * version.h (RELEASE): Bump to 2.5.
8046         * README: Regenerated.
8048         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
8050         [BZ #3273]
8051         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
8052         found no group members.
8053         Patch by Petr Baudis.
8055 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
8057         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
8058         assert bootstrap_map.l_tls_modid is zero.
8059         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
8060         if USE___THREAD.
8062 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
8064         * libio/stdio.h: Move open_wmemstream prototype to ...
8065         * wcsmbs/wchar.h: ... here.
8067 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
8069         [BZ #3252]
8070         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
8071         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
8072         __{,l}chown to handle the rest.
8073         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
8074         fchownat syscall and __ASSUME_32BITUIDS case inline, call
8075         __{,l}chown to handle the rest.
8076         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
8077         i386/fchownat.c.
8078         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
8079         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
8081         [BZ #3253]
8082         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8083         time, rather allocate increasingly bigger arrays of pointers, if
8084         possible with alloca, if too large with malloc.
8086 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
8088         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
8090         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
8092 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
8094         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
8095         home addresses.
8096         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
8097         IFA_F_HOMEADDRESS flag for interfaces.
8098         * include/ifaddrs.h (struct in6addrinfo): Define
8099         in6ai_homeaddress.
8101 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
8103         [BZ #3225]
8104         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
8105         PTR_DEMANGLE3): Define.
8106         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
8107         PTR_DEMANGLE3): Likewise.
8108         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
8109         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
8110         Likewise.
8111         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
8113 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
8115         * po/libc.pot: Regenerated.
8116         * po/be.po: Updated.
8117         * po/ca.po: Likewise.
8118         * po/cs.po: Likewise.
8119         * po/da.po: Likewise.
8120         * po/de.po: Likewise.
8121         * po/el.po: Likewise.
8122         * po/en_GB.po: Likewise.
8123         * po/es.po: Likewise.
8124         * po/fi.po: Likewise.
8125         * po/fr.po: Likewise.
8126         * po/gl.po: Likewise.
8127         * po/hr.po: Likewise.
8128         * po/hu.po: Likewise.
8129         * po/ja.po: Likewise.
8130         * po/ko.po: Likewise.
8131         * po/nb.po: Likewise.
8132         * po/nl.po: Likewise.
8133         * po/pl.po: Likewise.
8134         * po/pt_BR.po: Likewise.
8135         * po/ru.po: Likewise.
8136         * po/rw.po: Likewise.
8137         * po/sk.po: Likewise.
8138         * po/sv.po: Likewise.
8139         * po/tr.po: Likewise.
8140         * po/zh_CN.po: Likewise.
8141         * po/zh_TW.po: Likewise.
8143         [BZ #3137]
8144         * iconv/iconv_prog.c (main): Fix spelling in error message.
8145         * iconv/iconvconfig.c (main): Likewise.
8146         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
8147         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
8148         * locale/programs/localedef.c (main): Likewise.
8149         * locale/programs/repertoire.c (repertoire_read): Likewise.
8150         * timezone/zdump.c (main): Likewise.
8151         * nscd/connections.c (handle_request): Fix spelling in log message.
8152         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
8154 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
8156         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
8157         interfaces.
8159 2006-09-20  Andreas Jaeger  <aj@suse.de>
8161         * math/libm-test.inc (lrint_test_upward): Fix typo.
8163 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
8165         [BZ #2592]
8166         * math/libm-test.inc (lrint_test_tonearest): New function.
8167         (lrint_test_towardzero): New function.
8168         (lrint_test_downward): New function.
8169         (lrint_test_upward): New function.
8170         (main): Run these new tests.
8171         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
8172         of values near to 0.
8173         (two52): Use double not long double.
8174         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
8175         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
8176         (two23): Use float not double.
8177         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
8178         (two23): Use float not double.
8179         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
8180         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
8181         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
8182         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
8184 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8186         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
8187         Cast sp to unsigned long to avoid compiler warning.
8188         Use __makecontext_ret function instead of a trampoline on the stack.
8189         (__makecontext_ret): New function.
8190         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
8192 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
8194         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
8195         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
8196         bits.
8198 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
8200         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
8201         sure no reference to the unloaded map's search list remains in the
8202         dependency's scope.
8204 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
8206         * elf/Makefile: Add rules to build and run unload7 test.
8207         * elf/unload7.c: New test.
8208         * elf/unload7mod1.c: New file.
8209         * elf/unload7mod2.c: New file.
8211 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
8213         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
8214         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
8215         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8216         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
8217         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8218         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
8219         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
8220         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
8221         PTRACE_GETEVENTMSG): Likewise.
8222         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
8223         values.
8225 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
8227         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
8228         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
8229         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
8230         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
8232 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
8234         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
8235         write '\0' to the fd.
8236         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
8237         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
8238         Change regs to unsigned long pointer from unsigned int, fix fscr
8239         offset.
8241 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
8243         * io/Makefile (CFLAGS-fstatat.c): Set.
8244         (CFLAGS-fstatat64.c): Likewise.
8245         (CFLAGS-mknodat.c): Likewise.
8247         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
8248         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8249         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
8250         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
8252 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
8253             Steven Munroe  <sjmunroe@us.ibm.com>
8255         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
8256         names to the beginning.  Rename "cell" to "cellbe".
8257         (_dl_powerpc_platforms): New.
8258         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
8259         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
8260         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
8261         (_DL_HWCAP_PLATFORM): Define to new mask.
8262         (_dl_platform_string, _dl_string_platform): New functions.
8263         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
8264         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
8266 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
8268         [BZ #2526]
8269         * README.libm: Fix a thinko in sqrt algorithm description.
8271         [BZ #3143]
8272         * manual/string.texi (argz_delete): Fix prototype.
8273         Patch by <alpt@freaknet.org>.
8275 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
8277         [BZ #3138]
8278         * io/test-lfs.c (do_prepare): Give name_len type size_t.
8279         * io/tst-fcntl.c (do_prepare): Likewise.
8280         * posix/tst-exec.c (do_prepare): Likewise.
8281         * posix/tst-preadwrite.c (do_prepare): Likewise.
8282         * posix/tst-spawn.c (do_prepare): Likewise.
8283         * posix/tst-truncate.c (do_prepare): Likewise.
8284         * rt/tst-aio.c (do_prepare): Likewise.
8285         * rt/tst-aio64.c (do_prepare): Likewise.
8286         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
8287         size_t.
8289 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
8291         [BZ #2821]
8292         * time/mktime.c (guess_time_tm): Fix overflow detection.
8293         * time/Makefile (tests): Add bug-mktime1.
8294         * time/bug-mktime1.c: New file.
8296         [BZ #3189, #3188]
8297         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
8298         (mremap): Likewise.
8300 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
8302         [BZ #1006]
8303         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
8304         Ensure relocation doesn't clobber any bits outside of the
8305         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
8306         R_SPARC_HI22 and R_SPARC_H44.
8308         [BZ #2775]
8309         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
8310         (long) (MINSIZE + nb - old_size) is positive.
8312         * malloc/arena.c (grow_heap): When growing bail even if new_size
8313         is negative.
8315         [BZ #3155]
8316         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
8317         stack below r1.
8319 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
8321         * posix/regex_internal.c (re_string_reconstruct): Handle
8322         offset < pstr->valid_raw_len && pstr->offsets_needed case.
8323         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
8324         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
8325         re_string_context_at.
8326         * posix/Makefile: Add rules to build and run bug-regex26 test.
8327         * posix/bug-regex26.c: New test.
8329         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
8330         rather than col_sym_free.  Move seqp declaration earlier.
8332         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
8334 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
8336         * nscd/initgrcache.c (addinitgroupsX): Move any_success
8337         decl before first goto out.
8339 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
8341         * Makerules (shlib.lds): If have-hash-style, put .hash section
8342         at the end of the RO segment.
8344 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
8346         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
8347         style hash table format is used.
8349 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
8351         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
8352         randomization rather than before.
8353         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
8355 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
8357         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
8359         * malloc/malloc.c (_int_malloc): Use full list insert and not
8360         shortcut which assumes the list is empty for large requests
8361         too.
8363         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
8365 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
8367         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
8368         and offout arguments to the prototype.
8369         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
8370         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
8371         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
8372         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
8373         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
8374         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
8375         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
8376         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
8378 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
8380         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
8382         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
8383         dlopen parameters.
8385 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
8387         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
8388         only if herrno is NETDB_INTERNAL.  Handle errors other than
8389         ERANGE outside of the loops, handle TRY_AGAIN.
8391         * locale/programs/ld-ctype.c (translit_flatten): Issue error
8392         if other's ctype category was missing.
8393         * locale/programs/ld-collate.c (collate_read): Return if
8394         copy_locale's collate category is missing.
8396 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
8398         [BZ #2684]
8399         * malloc/malloc.c (public_rEALLOc): Try harder by using other
8400         arenas if allocation failed.
8401         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
8403 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
8405         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
8406         waste bins[0..1].
8407         (malloc_state): Reduce bins size by 2.
8408         (_int_malloc): Fix test for large enough buffer for early termination.
8409         When no unsorted block matches perfectly and an exiting block has
8410         to be split, use full list insert and not shortcut which assumes
8411         the list is empty.
8413         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
8414         failure.
8416 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
8418         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
8419         do anything.
8421         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
8422         symbol require exact match (these are PLTs).
8423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
8424         (_dl_ppc64_addr_sym_match): Likewise.
8426         [BZ #2683]
8427         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
8428         If symbol has a value use it.
8429         * elf/tst-dladdr1.c: New file.
8430         * elf/Makefile: Add rules to build and run tst-addr1.
8432 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
8434         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
8435         keeps failing and heap growth or new heap creation isn't
8436         successful either.
8437         * malloc/tst-malloc.c (main): Add new tests.
8439 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
8441         [BZ #2734]
8442         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
8443         as in the x86-64 code to use bswap.
8445 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
8447         [BZ #2680]
8448         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
8449         __USE_UNIX98.
8450         * posix/bits/unistd.h: Likewise.
8452 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
8454         [BZ #2751]
8455         * string/strchr.c: Add cast to avoid warning.
8457 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
8459         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
8460         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
8461         limit is needed to avoid the exploding of the address space
8462         requirement for secondary heaps.
8463         * malloc/arena.c (HEAP_MAX_SIZE): Define using
8464         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
8466 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
8468         [BZ #3018]
8469         * Makerules (depfiles): Handle extra-test-objs the same as
8470         extra-objs.
8471         (common-mostlyclean): Likewise.
8472         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
8473         instead.
8474         * elf/Makefile (extra-objs): Likewise.
8475         * stdlib/Makefile (extra-objs): Likewise.
8477 2006-08-14  Eric Blake  <ebb9@byu.net>
8479         [BZ #3044]
8480         * misc/error.h: Assume C89 or better.
8481         * misc/error.c: Likewise.
8483 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
8485         [BZ #3040]
8486         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
8487         __ASSUME_ATFCTS is defined.
8489 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
8491         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
8492         to sort in each call.
8494         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
8495         is empty simply return and use next service.
8496         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
8498         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
8499         tells us when not finding a charmap file is an error.
8500         * locale/programs/charmap.h: Adjust charmap_read prototype.
8501         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
8502         cannot find a charmap.
8503         * locale/programs/localedef.c (main): Adjust charmap_read call.
8505 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
8507         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
8508         sysdeps/posix/pause.c implementation instead.
8510 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
8512         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
8513         to EPERM.
8515 2006-08-13  Andreas Schwab  <schwab@suse.de>
8517         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
8518         Don't clobber caller's LRSAVE.
8519         (_dl_prof_resolve): Likewise.
8521 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
8523         [BZ #1996]
8524         * libio/memstream.c (open_memstream): Allocate initial buffer with
8525         calloc.
8526         * libio/wmemstream.c (open_wmemstream): Likewise.
8527         * libio/strops.c: Pretty printing.
8528         (_IO_str_overflow): Clear uninitialized part of the new buffer.
8529         (enlarge_userbuf): New function.
8530         (_IO_str_seekoff): Call it if seek position is larger than current
8531         buffer.
8532         * libio/wstrops.c: Likewise.
8533         * libio/vasprintf.c: Add comment as to why we do not have to use
8534         calloc instead of malloc to allocate initial buffer.
8535         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
8536         * libio/bug-memstream1.c: New file.
8537         * libio/bug-wmemstream1.c: New file.
8539 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
8541         * libio/wstrops.c: Remove dead macro definitions and comments.
8542         * libio/strops.c: Likewise.
8544         [BZ #2764]
8545         * login/utmpname.c (__utmpname): Remove unnecessary test.
8547 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
8549         [BZ #2832]
8550         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
8551         0s from integers.
8553 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
8555         [BZ #2987]
8556         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
8557         for CPU clocks.
8558         * sysdeps/unix/clock_settime.c: Add support for platform-specific
8559         setting of CPU clocks.
8561 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
8563         [BZ #2841]
8564         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
8565         since C99 requires the result to promote to 'int' when uint_least8_t
8566         and uint_least16_t promote to 'int'.
8568 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
8570         [BZ #3013]
8571         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
8572         lenght of one output field, correct bitmask creation.
8573         * locale/programs/ld-time.c: Add alignment.
8575         [BZ #2997]
8576         * misc/error.c: Add space between program name and message if file
8577         name is missing.
8579 2006-08-03  Eric Blake  <ebb9@byu.net>
8581         [BZ #2998]
8582         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
8584 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
8586         * malloc/memusagestat.c: Silence warnings.
8588         * malloc/malloc.c: Dynamically size mmap treshold if the program
8589         frees mmaped blocks.
8590         Patch by Valerie Henson and Arjan van de Ven.
8592 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
8594         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
8595         __USE_GNU.
8597         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
8598         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
8599         (DEF): Don't put the var into .gnu.linkonce.r.* section.
8600         Only provide var definitions in strtol_l (or for *ull*
8601         in strtoll_l).
8603         * stdio-common/bug16.c (tests): New array.
8604         (do_tests): Allow the first hexadecimal digit
8605         to be 1, 2, 4 or 8.  Do 3 additional tests.
8607         * sysdeps/s390/fpu/libm-test-ulps: Update.
8609         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
8610         fchownat syscall if available.
8611         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
8612         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
8613         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
8615 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
8617         * nis/nis_xdr.c: Avoid some function calls.
8619 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
8620             Ulrich Drepper  <drepper@redhat.com>
8622         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
8623         short cut if only one name component is stripped away.
8625 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
8627         * nis/nis_call.c: Minor cleanups throughout.
8628         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
8629         (first_shoot): Add search_parent_first parameter.  Only if it is set
8630         search parent server first.
8631         If directory for table found through cold start cache is not the same
8632         as referenced in the cache, don't use it.
8633         (__nisfind_server): Take additional parameter.  Pass it on to
8634         first_shoot.
8635         (__prepare_niscall): Adjust __nisfind_server call.
8636         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
8637         * nis/nis_table.c: Adjust __nisfind_server call.
8638         * nis/nis_lookup.c: Likewise.
8639         (nis_lookup): Don't loop endlessly if name is reduced to ".".
8641 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
8643         [BZ #2182]
8644         * math/s_cacosh.c: Return values from positive branch.
8645         * math/s_cacoshf.c: Likewise.
8646         * math/s_cacoshl.c: Likewise.
8648         [BZ #2883]
8649         * sysvipc/sys/msg.h: Change return value to ssize_t.
8650         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
8651         * sysvipc/msgrcv.c: Likewise.
8652         * include/sys/msg.h: Likewise.
8654         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
8655         test introduced in patch for bz #661.
8656         (getgrouplist): Simplify code a bit.  Don't allocate one additional
8657         element for NEWGROUPS.
8659         [BZ #2908]
8660         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
8661         'f', use '1' as leading digit not '\1'.
8662         * stdio-common/Makefile (tests): Add bug16.
8663         * stdio-common/bug16.c: New file.
8665         [BZ #2914]
8666         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
8667         and don't try to open it.  The patch introducing the macro
8668         contained a bug and used the same file name as the new file
8669         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
8670         this out completely.
8672         [BZ #2926]
8673         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
8674         Patch by Jerry James <Jerry.James@usu.edu>.
8676         * rt/Makefile (tests): Add tst-clock2.
8677         * rt/tst-clock2.c: New file.
8679         [BZ #2978]
8680         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
8681         function and its parameters and pass it to new thread.
8682         (__gai_notify): Add support for alternative waiting for completion.
8683         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
8684         waiting for completion.
8685         * resolv/getaddrinfo_a.c: Likewise.
8686         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
8687         waiting for completion is used.
8688         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
8689         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
8690         * resolv/gai_error.c: Likewise.
8691         * resolv/gai_sigqueue.c: Likewise.
8693 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
8695         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
8696         errno to EBADF and return MACH_PORT_NULL.
8698 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
8700         [BZ #2980]
8701         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
8703 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
8705         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
8706         walk them instead of the symbol table.
8708 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
8710         [BZ #2098]
8711         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
8712         status of NSS calls, not the number of returned entries.
8714         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
8715         request_key, keyctl.
8717 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
8719         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
8721 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
8723         * elf/tst-auditmod1.c: Fix typo in #error.
8725 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
8727         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
8729         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
8731 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
8733         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
8734         that the directory is empty even on non-POSIX filesystems.
8736 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
8738         * elf/dl-open.c (dl_open_worker): Add branch prediction.
8740         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
8741         the backend NSS module.  If backend setgrent call failed, don't have
8742         internal_setgrent fail.  Just remember this until it is needed.
8743         * nis/nss_compat/compat-pwd.c: Likewise.
8744         * nis/nss_compat/compat-spwd.c: Likewise.
8746 2006-07-30  Roland McGrath  <roland@redhat.com>
8748         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
8749         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
8750         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
8751         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
8753         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
8754         (nanosleep_not_cancel): New macro.
8755         (sigsuspend_not_cancel): new macro.
8756         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
8757         (do_sigsuspend): Define as inline.
8758         (__sigsuspend): Always use do_sigsuspend.
8759         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
8760         * include/signal.h: Declare __sigsuspend_nocancel.
8761         * sysdeps/posix/pause.c
8762         [! NO_CANCELLATION] (__pause_nocancel): New function.
8764         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
8765         * include/time.h (__nanosleep_nocancel): Likewise.
8767 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
8769         * locale/programs/localedef.c (add_to_readlist): Rename local
8770         variables to avoid confusion.
8772         * locale/programs/charmap.c (charmap_read): Emit error message if
8773         charmap couldn't be found or read.
8775 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
8777         * sysdeps/unix/sysv/linux/kernel-features.h: Define
8778         __ASSUME_FUTEX_LOCK_PI.
8779         * include/time.h: Declare __nanosleep_nocancel.
8780         * include/unistd.h: Declare __pause_nocancel.
8782         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
8783         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
8784         get the __stack_chk_fail_local definition when it's needed.
8786 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
8788         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
8789         * dlfcn/bug-atexit3.c: New file.
8790         * dlfcn/bug-atexit3-lib.cc: New file.
8792         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
8793         used when the namespace is not the base namespace.
8795 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
8797         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
8798         (__new_exitfn): Bump it in every successful call.
8799         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
8800         more exit handlers, call them right away.
8801         * stdlib/exit.h: Declare __new_exitfn_called.
8803 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
8805         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
8806         calling registered handler.
8808         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
8809         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8810         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8811         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
8812         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8813         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8814         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8815         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8817 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
8819         * elf/dl-lookup.c (dl_new_hash): New functions.
8820         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
8821         value here.  Compute new-style hash value.  Pass new hash value
8822         and reference to variable with the old value to do_lookup_x.
8823         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
8824         old-style hash table.
8825         (_dl_debug_bindings): Pass new hash value and reference to variable
8826         with the old value to do_lookup_x.
8827         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
8828         new-style hash value and change old-style hash value parameter to
8829         be a reference.  Reoganize functions to determine whether
8830         new-style hash table is available.  Only fall back on old-style
8831         table.  If old-style hash value is needed, compute it here.
8832         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
8833         entry.
8834         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
8835         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
8836         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
8837         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
8838         * Makeconfig: If linker supports --hash-style option add it to all
8839         linker command lines to build DSOs.
8840         * config.make.in: Define have-hash-style.
8841         * configure.in: Test whether linker supports --hash-style option.
8843         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
8844         * sysdeps/generic/ldsodefs.h: Adjust prototype.
8846 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
8848         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
8849         auditing.
8851         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
8852         RPATH of main map twice.
8854 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
8856         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
8857         look further, return original strings.
8858         (_nl_find_msg): Do not return found translation if the conversion
8859         failed.  Either signal the string is unusable or that something went
8860         wrong and the original should be used.
8862 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
8864         * string/_strerror.c (__strerror_r): Add __builtin_expect.
8866 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
8868         [BZ #2766]
8869         * misc/insremque.c (insque): Handle prev == NULL.
8870         * misc/Makefile (tests): Add tst-insremque.
8871         * misc/tst-insremque.c: New test.
8873 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
8875         [BZ #2792]
8876         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
8877         conflict with DL_DST_REQUIRED.
8879 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
8881         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
8882         match what Solaris does.
8884 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
8886         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
8887         local_setegid instead of seteuid and setegid.
8888         * sysdeps/generic/local-setxid.h: New file.
8889         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
8891         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
8893         * string/Makefile (tests): Add bug-envz1.
8894         * string/bug-envz1.c: New file.
8896 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
8898         * posix/regex_internal.c (re_string_skip_chars): If no character has
8899         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
8900         to the byte which couldn't be converted.
8901         (re_string_reconstruct): Don't clear valid_raw_len before calling
8902         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
8903         tip_context using re_string_context_at.
8904         * posix/Makefile: Add rules to build and run bug-regex25 test.
8905         * posix/bug-regex25.c: New test.
8907 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
8909         [BZ #2703]
8910         * string/envz.c (envz_strip): Correct erroneously reversed src
8911         and dest parameters to memmove() invocation.
8913 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
8915         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
8916         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
8917         to make sure the database has been already invalidated.
8918         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
8919         after the cache has been invalidated.  Use pthread_mutex_lock rather
8920         than pthread_mutex_trylock if fd != -1.
8921         * nscd/connections.c (invalidate_cache): Add fd argument, write
8922         response to fd if not calling prune_cache, pass fd to prune_cache.
8923         (handle_request): Adjust invalidate_cache caller.
8924         (nscd_run): Pass -1 as fd to prune_cache.
8926 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
8928         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
8929         the correct place.
8931 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
8933         * nscd/nscd.h (struct database_dyn): Add prunelock field.
8934         * nscd/cache.c (prune_cache): Take prunelock before starting the
8935         work.  Just return in case it is already taken.
8936         * nscd/connections.c (dbs): Initialize .prunelock.
8938 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
8940         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
8941         copying.  No need to allocate new array for group members.  Just
8942         move the pointers and update the size.
8944         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
8945         Avoid memory leak in case realloc fails.  Simplification for
8946         better code generation.
8948         Avoid deprecation warning because of libc_hidden_proto for
8949         inet6_option_alloc.
8950         * inet/inet6_option.c (option_alloc): Renamed from
8951         inet6_option_alloc.  Made static.
8952         (inet6_option_alloc): Now a simple wrapper around option_alloc.
8953         (inet6_option_append): Call option_alloc.
8954         * include/netinet/in.h: Remove libc_hidden_proto for
8955         inet6_option_alloc.
8957         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
8958         for cleanup when cb!=NULL [Coverity CID 233].
8960 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
8962         [BZ #2693]
8963         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
8964         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
8965         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
8966         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
8967         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
8968         and inet6_rth_getaddr.
8969         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
8970         array.
8971         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
8972         Mark inet6_option_* interfaces as deprecated.
8973         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
8974         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
8975         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
8976         inet6_rth_segments, and inet6_rth_getaddr.
8977         * inet/inet6_opt.c: New file.
8978         * inet/inet6_rth.c: New file.
8980         * inet/netinet/icmp6.h: Pretty printing.
8982         [BZ #2683]
8983         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
8985 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
8987         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
8988         doing it all here.  When server does not know the answer do not
8989         fail immediate, try parent first.
8991         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
8992         overflow test.
8994 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
8996         * nis/nis_call.c (__prepare_niscall): New function.  Split out
8997         from __do_niscall.
8998         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
8999         and exported.
9000         (__follow_path): New function.  Split out from nis_list.
9001         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
9002         _xdr_nis_result.
9003         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
9004         _xdr_nis_result.
9005         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
9006         and __follow_path.
9007         * nis/Versions: Export __prepare_niscall, __create_ib_request,
9008         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
9009         from libnsl for version GLIBC_PRIVATE.
9010         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
9011         Remove entry parameter from _nss_nisplus_parse_pwent and
9012         _nss_nisplus_parse_grent.
9013         * nis/nss_nisplus/nisplus-parser.c: Likewise.
9014         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
9015         again.  Rewrite getpwent handling to not use nis_first_entry and
9016         nis_next_entry.  Roll out own niscall handling.
9017         * nis/nss_nisplus/nisplus-grp.c: Likewise.
9019         * sunrpc/xdr_rec.c: Fix typo in comment.
9021 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
9023         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
9024         handling.
9026         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
9027         to allocate memory for my_pollfd.  Better initialization of
9028         cb_is_running.  Use TEMP_FAILURE_RETRY.
9030         * malloc/memusage.sh (memusageso): Add quotes.
9031         (memusagestat): Likewise.
9032         * debug/xtrace.sh (pcprofileso): Likewise.
9033         (pcprofiledump): Likewise.
9034         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
9035         replacement.
9036         * malloc/Makefile ($(objpfx)memusage): Likewise.
9038         * nis/nis_callback.c (__nis_create_callback): Calls to
9039         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
9040         asprintf call fails.
9042         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
9043         no uninitialized memory is passed to sendto.
9045 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
9047         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
9048         of snprintf+strdup.  Handle OOM.
9049         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
9050         cb->serv together.  Remove now obsolete free calls.
9051         (__nis_destroy_callback): Remove now obsolete free call.
9053 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
9055         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
9056         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
9057         and ULA respectively). Set precedence for IPv4 address to 10 as
9058         defined in RFC3484 for preferring IPv6.
9059         * posix/gai.conf: Update to match the new default tables.
9061 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
9063         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
9064         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
9065         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
9066         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
9068         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
9069         Removed.
9070         (init_nss_interface): Remove initialization of these variables.
9072 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
9074         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
9075         nis_free_directory forward to avoid duplication.
9077 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
9079         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
9080         rec_dirsearch returning NULL.
9081         (first_shoot): Handle __nis_finddirectory returning NULL.
9082         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
9084         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
9085         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
9087 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
9089         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
9090         pid changed.
9092 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
9094         * include/rpc/pmap_prot.h: Mark all functions as hidden.
9096         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
9097         * nscd/nscd_getgr_r.c: Likewise.
9099         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
9101         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
9102         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
9104         * stdlib/longlong.h (__clz_tab): Mark as hidden.
9106         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
9108         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
9110         * include/rpc/auth.h: Mark xdr_des_block_internal and
9111         xdr_opaque_auth_internal as hidden.
9113         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
9114         hidden.
9116         * include/rpc/xdr.h: Mark all _internal functions as hidden.
9118         * misc/getusershell.c (okshells): Don't use static initializers,
9119         do it dynamically.
9121         * stdlib/fmtmsg.c (keywords): Change type of len element to
9122         uint32_t to not waste space on 64bit machines.
9124         * locale/setlocale.c: Change _nl_category_names into a string.
9125         Add new _nl_category_name_idxs.  Change all users.
9126         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
9127         Declare _nl_category_name_idxs.
9128         * locale/findlocale.c: Adjust for _nl_category_names change.
9129         * locale/loadlocale.c: Likewise.
9130         * locale/newlocale.c: Likewise.
9131         * intl/dcigettext.c: Likewise.
9133         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
9134         (add_alias2): ...here.  New function.
9135         (__gconv_read_conf): Simplify builtin alias handling.
9136         (builtin_aliases): Convert to string to avoid relocations.
9137         * iconv/gconv_builtin.h: Add comment about correct formatting.
9139 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
9141         * resolv/res_debug.c (loc_ntoa): Make error const.
9143 2006-05-14  Andreas Schwab  <schwab@suse.de>
9145         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
9147 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
9149         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
9150         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
9151         sizeof (cpu_set_t).
9153 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
9155         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
9157         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
9159         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
9160         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
9162         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
9163         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
9165         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
9166         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
9167         xdr_cback_data.
9169         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
9170         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9171         xdr_ypupdate_args.
9173         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
9174         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
9176         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
9177         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
9179         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
9180         * include/rpcsvc/nis_callback.h: New file.
9182         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
9183         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
9185         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9186         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9188         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
9189         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
9191         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
9192         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
9194         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
9195         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
9196         xdr_ypdelete_args.
9198         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
9199         __BEGIN_DECLS and __END_DECLS, the header is not installed.
9201         * nis/nis_error.c: Remove table of strings.  Use position
9202         independent mechanism.
9203         * nis/nis_error.h: New file.
9205 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
9207         * locale/programs/ld-time.c (time_finish): If wide era name or
9208         format aren't provided, set both wname and wformat to L"".
9210 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
9212         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
9213         results if the call was succesful.
9215         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
9217         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
9218         as hidden.
9220 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
9222         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
9224 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
9226         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
9227         caller makes sure this is not the case.
9228         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
9230 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
9232         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
9233         calls.
9235         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
9236         [Coverity CID 229, 230]
9238         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
9239         DGETTEXT calls.
9240         (hol_help): Likewise.  [Coverity CID 226, 227]
9242         * string/argz-replace.c (__argz_replace): Unconditionally call
9243         free on SRC.  [Coverity CID 225]
9245         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
9246         the return value of __nis_default_owner and __nis_default_group,
9247         it has been especially allocated.  [Coverity CID 224]
9249         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
9250         searchgroup and searchowner.  Significantly simplified.
9251         (__nis_default_owner): Remove duplication.  Do not locally copy the
9252         string before duplicating it.
9253         (__nis_default_group): Likewise.
9255         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
9256         we must clear the variable before calling __nisfind_server.
9258         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
9259         nis_getnames.  [Coverity CID 223]
9261         * locale/programs/locfile.c (locfile_read): Use alloca instead of
9262         xmalloc to allocate local repertoire name.  [Coverity CID 222]
9264         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
9265         allocate memory for the input to add_bytes.  [Coverity CID 221]
9267         * posix/wordexp.c (w_addword): Free word if realloc fails and it
9268         was allocated here.  [Coverity CID 219, 220]
9270         * posix/getconf.c (print_all): Free confstr data after printing.
9271         [Coverity CID 218]
9273         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
9274         list allocation fails.  [Coverity CID 215]
9276         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
9277         [Coverity CID 213]
9279         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
9280         string is NULL.  [Coverity CID 212]
9281         * argp/Makefile: Add rules to build and run bug-argp1.
9282         * argp/bug-argp1.c: New file.
9284         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
9285         end of string.
9286         * stdlib/canonicalize.c (__realpath): Likewise.
9288         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
9289         pointer.  [Coverity CID 206]
9291         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
9292         in statically linked code.
9293         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
9294         statically built code, be prepared to have no link map.
9295         [Coverity CID 205]
9297         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
9298         dgettext calls. [Coverity CID 204]
9300         * argp/argp-help.c (struct uparams): Remove valid member.  Change
9301         the one user.
9302         (uparam_names): Reduce size.  Avoid relative relocations.
9303         Moved to read-only segment.
9304         (fill_in_uparams): Update for new layout.
9306         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
9307         assumed to always be != NULL. [Coverity CID 202]
9309         * argp/argp-help.c (hol_entry_help): Remove some dead code
9310         [Coverity CID 200].
9312         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
9313         away a few more unconditional yperr2nss calls.
9314         (_nss_nis_getservbyname_r): Likewise.
9316 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
9318         * sysdeps/generic/ldsodefs.h: Remove support for non-core
9319         architectures.
9321         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
9322         that unused memory passed to sendto is nevertheless initialized.
9324         [BZ #2499]
9325         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
9326         possibly unaligned memory accesses.
9328         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
9329         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
9330         and __putlong respectively.  Correct buffer overflow check for
9331         NS_NOTIFY_OP.
9333         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
9335         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
9336         (send_dg): Rewrite error handling to be more compact and avoid
9337         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
9339         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
9341         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
9342         instead of ns_get16.
9343         (res_queriesmatch): Likewise.  Minor optimization.
9345         [BZ #2499]
9346         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
9347         __libc_res_nsend might reallocate the buffer for the answer.  In
9348         this case we have to reload the HP pointer.
9350 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
9352         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
9353         some branch prediction hints.
9355         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
9356         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
9357         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
9358         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9359         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
9360         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
9361         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9362         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
9364 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
9366         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
9367         by a GOT relocation to make Scrt1.o position independent.
9368         * sysdeps/s390/s390-64/elf/start.S: Likewise.
9370         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
9371         six system call parameters.
9372         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
9374 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
9376         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
9377         malloc&bzero.
9379         * sunrpc/svc_udp.c (BZERO): Remove definition.
9380         (CALLOC): Define.
9381         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
9383         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
9384         (des_SPtrans): Use uint32_t type.
9385         (des_skb): Likewise.
9387         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
9389 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
9391         [BZ #2509]
9392         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
9393         on 32-bit arches.
9395 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
9397         * locale/programs/ld-address.c (address_finish): Fix one more
9398         place where the iso639 array might be accessed beyond the limits.
9400 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
9402         * nis/nis_table.c (nis_list): Avoid clearing res twice before
9403         filling it for the first time.
9405         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
9406         Adjust all callers.
9407         Free res object content before returning.
9409         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
9411         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
9412         client->cl_auth.
9414         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
9415         cleanup for initial thread, just the free call on TVP.
9417         * nscd/gai.c (__getline): Define.
9420 See ChangeLog.16 for earlier changes.