* sysdeps/mach/hurd/open.c: Include <stdio.h>.
[glibc.git] / ChangeLog
blob0ea85f9078270b94fe31304bc13777ea5a757287
1 2008-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3         * sysdeps/mach/hurd/open.c: Include <stdio.h>.
4         (__open_2): New function.
5         (__open64_2): New alias to __open_2.
6         * sysdeps/mach/hurd/openat.c: Include <stdio.h>.
7         (__openat_2): New function.
8         (__openat64_2): New alias to __openat_2.
10 2008-07-06  Ulrich Drepper  <drepper@redhat.com>
12         [BZ #6723]
13         * time/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
15 2008-07-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Define MSG_NOSIGNAL.
18         * hurd/hurd/fd.h (__hurd_sockfail): Add extern inline function.
19         * sysdeps/mach/hurd/recv.c (__recv): Use __hurd_sockfail instead of
20         __hurd_dfail.
21         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
22         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
23         * sysdeps/mach/hurd/send.c (__send): Likewise.
24         * sysdeps/mach/hurd/sendto.c (__sendfrom): Likewise.
25         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Likewise.
27 2008-03-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29         * sysdeps/mach/hurd/recv.c (__recv): Initialize NPORTS.
30         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
31         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Likewise.
32         * hurd/fd-read.c (_hurd_fd_read): Initialize NREAD.
33         * hurd/get-host.c (_hurd_get_host_config): Likewise.
34         * sysdeps/mach/hurd/dl-sysdep.c (__libc_read): Likewise.
36 2008-06-27  Ulrich Drepper  <drepper@redhat.com>
38         [BZ #6657]
39         * time/strptime_l.c: Don't clear s.era_cnt after successful match
40         of %EY.
41         Patch by Petr Baudis.
43 2008-06-26  Ulrich Drepper  <drepper@redhat.com>
45         * resolv/res_debug.c (__p_type_syms): Add ns_t_dname entry.
46         Patch by Peter Jones <pjones@redhat.com>.
48 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
50         [BZ #6654]
51         * stdlib/canonicalize.c (__realpath): readlink can write too much
52         into the buffer on platforms without PATH_MAX.
54 2008-06-17  Carlos O'Donell  <carlos@codesourcery.com>
56         [BZ #6653]
57         * posix/tst-regex.c (main): Rename to...
58         (do_test): ... this. Remove cmdline option processing.
59         (TIMEOUT): Define.
60         (TEST_FUNCTION): Define.
61         (CMDLINE_OPTIONS): Define.
63 2008-06-25  Ulrich Drepper  <drepper@redhat.com>
65         [BZ #5210]
66         * configure.in: Add -Werror to -fstack-protector test to catch
67         unsupported architectures.
68         Patch by Gilles Esponasse <g.esp@free.fr>.
70 2008-06-17  Joseph Myers  <joseph@codesourcery.com>
72         * stdlib/tst-setcontext.c: Set back_in_main before exit if
73         getcontext returns ENOSYS.
75 2008-06-18  Ulrich Drepper  <drepper@redhat.com>
77         * nscd/connections.c (main_loop_poll): Fix test for read error.
78         (main_loop_epoll): Likewise.
80 2008-06-13  Ulrich Drepper  <drepper@redhat.com>
82         * sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to a
83         better place so it is not called when nscd is used.
85         * nscd/connections.c: Also recognize and handle changes to the
86         resolver configuration file.
88 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
90         * time/strftime.c: Pass reference to tzset_called around to handle
91         recursive calls.
93         [BZ #6612]
94         * time/strftime.c (__strftime_internal): Call tzset() only
95         when printing timezone-dependent values.
96         Based on a patch by Petr Baudis <pasky@suse.cz>.
98         * resolv/nss_dns/dns-host.c (gaih_getanswer): Don't
99         unconditionally use second gaih_getanswer_slice result.
101         * sysdeps/posix/getaddrinfo.c (gai_inet): Remove unnecessary test.
102         (getaddrinfo): RES must always be non-NULL.
104 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
106         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Avoid using
107         cr[34] registers.
108         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
109         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
110         Likewise.
111         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Avoid using cr3
112         register.
114 2008-06-12  Ulrich Drepper  <drepper@redhat.com>
116         * nscd/nscd.h (struct database_dyn): Add inotify_descr and clear_cache
117         fields.
118         * nscd/connections.c (inotify_fd): New variable.
119         (nscd_init): Try to open an inotify descriptor.
120         If successful, watch files for databases using inotify instead of
121         having prune threads stat the files.
122         (nscd_run_prune): Recognize clear_cache flag being set and call
123         prune_cache appropriately.
124         (main_loop_poll): Add inotify descriptor to wait set and handle the
125         reported changes.
126         (main_loop_epoll): Likewise.
127         * nscd/cache.c (prune_cache): Don't stat files for databases if
128         inotify is used.
129         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
130         (CFLAGS-connections.c): Add -DHAVE_INOTIFY.
132         * nscd/grpcache.c (cache_addgr): Correctly compute size of
133         fixed-size portion of the record.
134         * nscd/servicescache.c (cache_addserv): Likewise.
135         * nscd/pwdcache.c (cache_addpw): Likewise.
136         * nscd/initgrcache.c (addinitgroupsX): Likewise.
138 2008-06-11  Ulrich Drepper  <drepper@redhat.com>
140         * nscd/mem.c (gc): Initialize obstack earlier so that if we jump
141         out we don't use uninitialized memory.
143         * nscd/hstcache.c (cache_addhst): Send correct number of bytes to
144         the client.
146 2008-06-10  Ulrich Drepper  <drepper@redhat.com>
148         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Also log and
149         ignore T_DNAME messages.
150         * resolv/arpa/nameser_compat.h (T_DNAME): Define.
152 2008-06-05  Jakub Jelinek  <jakub@redhat.com>
154         * misc/regexp.h (compile): Use __REPB_PREFIX macro.
155         Avoid segfault if first GETC returns eof/'\0'/'\n'.
157 2008-06-03  Jakub Jelinek  <jakub@redhat.com>
159         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Pass cp
160         instead of portstr to nscd_getserv_r.  Patch by
161         Roman Kagan <rkagan@mail.ru>.
163 2008-05-26  Jim Meyering  <meyering@redhat.com>
165         Remove more useless "if" tests before "free".
166         * include/inline-hashtab.h (htab_delete): Likewise.
167         * libio/freopen.c (freopen): Likewise.
168         * libio/freopen64.c (freopen64): Likewise.
169         * locale/programs/ld-collate.c (collate_read): Likewise.
170         * misc/fstab.c (libc_freeres_fn): Likewise.
171         * posix/glob.c (globfree): Likewise.
173 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
175         * string/Makefile (strop-tests): Add memmem.
176         * string/test-memmem.c: New file.
177         * string/test-string.h (BUF1PAGES): Define to 1 if undefined.
178         (test_init): Size buf1 according to BUF1PAGES.
180 2008-05-24  Jakub Jelinek  <jakub@redhat.com>
182         * libio/stdio.h (vscanf): Fix -std=c99 redirect.
183         * stdio-common/Makefile (tests): Add scanf16 and scanf17.
184         (CFLAGS-scanf17.c): New.
185         * stdio-common/scanf14.c (main): Add fscanf and scanf tests.
186         * stdio-common/scanf15.c (main): Likewise.
187         * stdio-common/scanf16.c: New file.
188         * stdio-common/scanf17.c: New file.
190 2008-05-24  Ulrich Drepper  <drepper@redhat.com>
192         * resolv/res_send.c (send_dg): If we already have one of two
193         answers and the server reports SERVFAIL, NOTIMP, or REFUSED, then
194         use the one answer insted of failing.
196 2008-02-20  Ryan S. Arnold  <rsa@us.ibm.com>
198         * math/libm-test.inc (exp_test): Exclude expl(1000.0L) from
199         being executed on PowerPC as the expected result exceeds IBM
200         long double 128 __LDBL_MAX__.
202 2008-05-21  Roland McGrath  <roland@redhat.com>
204         * shlib-versions (sparc.*-.*-.*, sparc64.*-.*-.*): Add ABI lines.
206         * Makefile (check-data): Use $(abi-name) before other guesses.
207         Look in $(add-ons) dirs before scripts/data/.
208         * elf/Makefile (check-data): Likewise.
210         * scripts/soversions.awk: Grok ABI line.
211         * Makeconfig ($(common-objpfx)soversions.mk): Likewise.
212         Emit definition for abi-name variable.
214 2008-05-21  Ulrich Drepper  <drepper@redhat.com>
216         * string/endian.h: Define new fixed-size hto* and *toh macros only
217         if [__USE_BSD].
219         * iconvdata/Depend: Add localedata.
221 2008-05-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
223         * bits/termios.h (ONLCR): Define under [__USE_XOPEN] too.
225 2008-05-08  David S. Miller  <davem@davemloft.net>
227         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Use
228         HIDDEN_JUMPTARGET.
229         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
230         (__SYSCALL_CLOBBERS): Remove %g* registers.
231         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
232         (__SYSCALL_CLOBBERS): Likewise.
233         * scripts/data/localplt-sparc-linux-gnu.data: New file.
234         * scripts/data/localplt-sparc64-linux-gnu.data: New file.
236 2008-05-21  Jakub Jelinek  <jakub@redhat.com>
238         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
239         (CALL_ERRNO_LOCATION): Define.
240         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
241         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
242         (CALL_ERRNO_LOCATION): Define.
243         (__SYSCALL_STRING, __CLONE_SYSCALL_STRING): Use it.
244         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S (__brk): Use
245         HIDDEN_JUMPTARGET for __errno_location call in libc.so.
247 2008-05-20  Ulrich Drepper  <drepper@redhat.com>
249         * include/inline-hashtab.h (higher_prime_number): Fix type of mid
250         variable.
252 2008-05-20  Jakub Jelinek  <jakub@redhat.com>
254         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
255         (FIRST_FRAME_POINTER): Define.
257 2008-05-09  David S. Miller  <davem@davemloft.net>
259         * sysdeps/sparc/sparc64/backtrace.c: New file.
261 2008-05-14  David S. Miller  <davem@davemloft.net>
263         * sysdeps/sparc/machine-gmon.h: New file.
264         * sysdeps/sparc/sparc-mcount.S: Likewise.
265         * sysdeps/sparc/Makefile: Add sparc-mcount target to
266         sysdep_routines in gmon directory.
268 2008-05-19  Jakub Jelinek  <jakub@redhat.com>
270         * elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
272 2008-05-19  Ulrich Drepper  <drepper@redhat.com>
274         * resolv/res_query.c (__libc_res_nquery): In case one of two
275         answer was too short don't try to read that answer's header.
277         * resolv/res_send.c (send_dg): In case of timeout and there are
278         two queries and one has been answered, return value indicating
279         success.
281 2008-05-18  Ulrich Drepper  <drepper@redhat.com>
283         * nscd/cache.c (cache_add): Take additional parameter specifying
284         whether this is in response of a cache refill.  Check alignment
285         of package data.  Revamp waking of pruning thread.
286         (prune_cache): Small optimization.
287         * nscd/nscd.h: Adjust cache_add prototypes.
288         * nscd/aicache.c: Adjust cache_add calls.
289         * nscd/grpcache.c: Likewise.
290         * nscd/hstcache.c: Likewise.
291         * nscd/initgrcache.c: Likewise.
292         * nscd/pwdcache.c: Likewise.
293         * nscd/servicescache.c: Likewise.
294         * nscd/connections.c (restart): Really disable cache use before
295         exec attempt.  If it fails, reenable cache.
296         (nscd_run_prune): Initialize wakeup_time.  After wakeup, set wakeup
297         time to max to be able to notice concurrent cache additions.  Unlock
298         prune_lock while performing gc.  Afterwards compute wakeup time with
299         current wakeup_time value in mind.
301 2008-05-17  Ulrich Drepper  <drepper@redhat.com>
303         * nscd/mem.c (gc): Avoid stack overflow when allocating move list.
305         * nscd/mem.c (gc): Correctly determine highest used array element
306         in mark.
308         * nscd/mem.c (markrange): Add assert to check entries are all
309         aligned.  Small cleanup in bitmap use.
311         * nscd/nscd.h (mem_in_flight): Replace blockaddr field with
312         blockoff of type nscd_ssize_t.
313         * nscd/mem.c (gc): Simplify markrange call for on-flight blocks.
314         (mempoll_alloc): Record block offset and not address.
316         * nscd/mem.c (gc): Fix test for stack overuse.
318         * nscd/aicache.c (addhstaiX): Fix a few small problems, cleanups,
319         more asserts.
321         * sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports no
322         entry is available, believe it.
324         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): If there are
325         no answers return NSS_STATUS_NOTFOUND.
326         (gaih_getanswer): Don't call gaih_getanswer_slice if the answer
327         buffer does not have any content.
329 2008-05-16  Ulrich Drepper  <drepper@redhat.com>
331         * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
333         * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
334         lookup, don't assign canon unconditionally.
336 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
338         * string/Makefile (distribute): Add str-two-way.h.
340 2008-03-29  Eric Blake  <ebb9@byu.net>
342         Rewrite string searches to O(n) rather than O(n^2).
343         * string/str-two-way.h: New file.  For linear fixed-allocation
344         string searching.
345         * string/memmem.c: New implementation.
346         * string/strstr.c: New implementation.
347         * string/strcasestr.c: New implementation.
349 2008-04-11  Paolo Bonzini  <bonzini@gnu.org>
351         * posix/regcomp.c (optimize_utf8): Add a note on why we test
352         opr.ctx_type.
353         (calc_first): Initialize constraint field.
354         (duplicate_node_closure): Use it instead of special casing ANCHORS.
355         Use search_duplicated_node to avoid loops.  Fix grammar.
356         (duplicate_node): Merge constraint field for all node types.
357         (calc_eclosure_iter): Look at constraint field for all node types.
358         * posix/regex_internal.c (create_cd_newstate): Don't look at
359         create_cd_newstate.
361 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
363         [BZ #6428]
364         * configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
366         [BZ #6442]
367         * string/endian.h: Add macros for fixed-size endian conversion.
368         * bits/byteswap.h: Allow inclusion from <endian.h>.
369         * sysdeps/i386/bits/byteswap.h: Likewise.
370         * sysdeps/ia64/bits/byteswap.h: Likewise.
371         * sysdeps/s390/bits/byteswap.h: Likewise.
372         * sysdeps/x86_64/bits/byteswap.h: Likewise.
373         * string/Makefile (tests): Add tst-endian.
374         * string/tst-endian.c: New file.
376         * iconvdata/run-iconv-test.sh: Use = instead of == in test.
377         Patch by Reuben Thomas.
379 2008-05-14  Joseph Myers  <joseph@codesourcery.com>
381         * iconvdata/Makefile (bug-iconv6-ENV, tst-iconv7-ENV): Define.
383 2008-05-14  Ulrich Drepper  <drepper@redhat.com>
385         * iconvdata/bug-iconv6.c (do_test): Use de_DE.UTF-8 locale.
387         [BZ #6461]
388         * iconv/gconv_simple.c (BODY for __gconv_transform_ascii_internal):
389         Add missing braces.
390         (BODY for __gconv_transform_internal_ascii): Likewise.
392         [BZ #6472]
393         * sysdeps/posix/getaddrinfo.c (get_scope): Loopback addresses have
394         to be treated like link-local addresses.
395         (match_prefix): Don't treat IPv4 loopback address special when
396         converting to v4 mapped addressed.
398         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call _res_hconf_init
399         if necessary.
400         * posix/tst-rfc3484.c: Add dummy definition of _res_hconf_init.
401         * posix/tst-rfc3484-2.c: Likewise.
402         * posix/tst-rfc3484-3.c: Likewise.
404         * sysdeps/posix/getaddrinfo.c: Implement handling of DCCP, UDPlite,
405         and SCTP.
407         * nss/getent.c (ahosts_keys_int): Handle all known socket types.
409         * inet/netinet/in.h (IPPIPPROTO_DCCP, IPPROTO_UDPLITE): Define.
411         * sysdeps/unix/sysv/linux/bits/socket.h (SOCK_DCCP): Define.
413 2008-05-13  Ulrich Drepper  <drepper@redhat.com>
415         * po/lt.po: New file.  From Lituanian translation team.
417 2008-01-30  Alexandre Oliva  <aoliva@redhat.com>
419         Introduce TLS descriptors for i386 and x86_64.
420         * include/inline-hashtab.h: New file, copied from 2005's
421         libiberty, with fix for memory leak imported afterwards by
422         Glauber de Oliveira Costa.
423         * elf/tlsdeschtab.h: New file.
424         * elf/dl-reloc.c (_dl_try_allocate_static_tls): Extract from...
425         (_dl_allocate_static_tls): ... here.  Rearrange failure path.
426         (CHECK_STATIC_TLS): Move to...
427         * elf/dynamic-link.h: ... this file.
428         (TRY_STATIC_TLS): New macro.
429         * elf/dl-conflict.c (CHECK_STATIC_TLS, TRY_STATIC_TLS): Override.
430         * elf/elf.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL,
431         R_386_TLS_DESC): Define.
432         (R_X86_64_PC64, R_X86_GOTOFF64, R_X86_64_GOTPC32): Merge from
433         binutils.
434         (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL,
435         R_X86_64_TLSDESC): Define.
436         (R_386_NUM, R_X86_64_NUM): Adjust.
437         * sysdeps/i386/Makefile (sysdep-dl-routines, sysdep_routines,
438         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
439         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
440         * sysdeps/i386/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
441         release tlsdesc_table.
442         * sysdeps/i386/dl-machine.h: Include dl-tlsdesc.h.
443         (elf_machine_type_class): Mark R_386_TLS_DESC as PLT class.
444         (elf_machine_rel): Handle R_386_TLS_DESC.
445         (elf_machine_rela): Likewise.
446         (elf_machine_lazy_rel): Likewise.
447         (elf_machine_lazy_rela): Likewise.
448         * sysdeps/i386/dl-tls.h (struct dl_tls_index): Name it.
449         * sysdeps/i386/dl-tlsdesc.S: New file.
450         * sysdeps/i386/dl-tlsdesc.h: New file.
451         * sysdeps/i386/tlsdesc.c: New file.
452         * sysdeps/i386/tlsdesc.sym: New file.
453         * sysdeps/i386/bits/linkmap.h (struct link_map_machine): Add
454         tlsdesc_table.
455         * sysdeps/x86_64/Makefile (sysdep-dl-routines, sysdep_routines,
456         sysdep-rtld-routines): Add tlsdesc and dl-tlsdesc for elf subdir.
457         (gen-as-const-headers): Add tlsdesc.sym to csu subdir.
458         * sysdeps/x86_64/dl-lookupcfg.h: New file.  Introduce _dl_unmap to
459         release tlsdesc_table.
460         * sysdeps/x86_64/dl-machine.h: Include dl-tlsdesc.h.
461         (elf_machine_runtime_setup): Set up lazy TLSDESC GOT entry.
462         (elf_machine_type_class): Mark R_X86_64_TLSDESC as PLT class.
463         (elf_machine_rel): Handle R_X86_64_TLSDESC.
464         (elf_machine_rela): Likewise.
465         (elf_machine_lazy_rel): Likewise.
466         * sysdeps/x86_64/dl-tls.h (struct dl_tls_index): Name it.
467         (__tls_get_addr): Do not declare for non-shared compiles.
468         * sysdeps/x86_64/dl-tlsdesc.S: New file.
469         * sysdeps/x86_64/dl-tlsdesc.h: New file.
470         * sysdeps/x86_64/tlsdesc.c: New file.
471         * sysdeps/x86_64/tlsdesc.sym: New file.
472         * sysdeps/x86_64/bits/linkmap.h (struct link_map_machine): Add
473         tlsdesc_table for both 32- and 64-bit structs.
475 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
477         * elf/dl-tls.c (__tls_get_addr): Optimize by moving slow path in
478         its own function.  This reduces the frame setup costs and more.
480 2008-02-11  Joseph Myers  <joseph@codesourcery.com>
482         [BZ #3406]
483         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value.
484         * math/libm-test.inc (exp_test): Test 88.72269439697265625.
486 2008-05-11  Ulrich Drepper  <drepper@redhat.com>
488         * io/openat.c (__openat_2): Also pass fd to __openat.
489         * io/openat64.c (__openat64_2): Also pass fd to __openat64.
490         Patch by Kristian Van Der Vliet <vanders@liqwyd.com>.
492         * string/tester.c (test_memcmp): Add a few more tests.
493         Patch by Mats Erik Andersson <ynglingatal@comhem.se>.
495 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
497         * nscd/cache.c (cache_add): Before returning with failure and this
498         is the first use of the record, mark it as unusable.
499         * nscd/aicache.c: Don't touch the dataset after cache_add returns
500         reporting a failure.
501         * nscd/grpcache.c: Likewise
502         * nscd/hstcache.c: Likewise.
503         * nscd/initgrcache.c: Likewise.
504         * nscd/pwdcache.c: Likewise.
505         * nscd/servicescache.c: Likewise.
507 2008-05-10  Roland McGrath  <roland@redhat.com>
509         [BZ #6505]
510         * sysdeps/unix/sysv/linux/sys/user.h: Replace with #error stub.
512 2008-05-08  David S. Miller  <davem@davemloft.net>
514         * misc/truncate64.c (truncate64): Use __truncate not truncate.
516         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.
517         (__ieee754_y0l): Likewise.
518         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
519         (__ieee754_y1l): Likewise.
520         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl.
521         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for
522         frexpl and ldexpl.  math_private.h provides them and the latter
523         is not even used.
524         (__log1pl): Use __frexpl.
526 2008-05-10  Ulrich Drepper  <drepper@redhat.com>
528         * include/resolv.h: Adjust __libc_res_nquery and __libc_res_nsend
529         prototypes.
530         * include/arpa/nameser_compat.h: Define T_UNSPEC.
531         * nis/Versions (libnss_nis): Export _nss_nis_gethostbyname4_r.
532         (libnss_nisplus): Export _nss_nisplus_gethostbyname4_r.
533         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Change to also handle
534         af==AF_UNSPEC.
535         (_nss_nis_gethostbyname4_r): New function.
536         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
537         Change to also handle af==AF_UNSPEC.
538         (get_tablename): New function.  Use it to avoid duplication.
539         (_nss_nisplus_gethostbyname4_r): New function.
540         * nscd/aicache.c (addhstaiX): Use gethostbyname4_r function is
541         available.
542         * nss/Versions (libnss_files): Export _nss_files_gethostbyname4_r.
543         * nss/nss.h: Define struct gaih_addrtuple.
544         * nss/nss_files/files-hosts.c (LINE_PARSER): Change to also handle
545         af==AF_UNSPEC.
546         (_nss_files_gethostbyname4_r): New function.
547         * resolv/Versions (libnss_dns): Export _nss_dns_gethostbyname4_r.
548         * resolv/gethnmaddr.c: Adjust __libc_res_nsearch and __libc_res_nquery
549         calls.
550         * resolv/res_query.c (__libc_res_nquery): Take two additional
551         parameters for second answer buffer.  Handle type=T_UNSPEC to mean
552         look up IPv4 and IPv6.
553         Change all callers.
554         * resolv/res_send.c (__libc_res_nsend): Take five aditional parameters
555         for an additional query and answer buffer.  Pass to send_vc and
556         send_dg.
557         (send_vc): Send possibly two requests and receive two answers.
558         (send_dg): Likewise.
559         * resolv/nss_dns/dns-host.c: Adjust calls to __libc_res_nsearch and
560         __libc_res_nquery.
561         (_nss_dns_gethostbyname4_r): New function.
562         (gaih_getanswer_slice): Likewise.
563         (gaih_getanswer): Likewise.
564         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Adjust
565         __libc_res_nquery call.
566         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
567         (_nss_dns_getnetbyname_r): Adjust __libc_res_nsearch call.
568         * sysdeps/posix/getaddrinfo.c: Use gethostbyname4_r function is
569         available.
571 2008-05-05  David S. Miller  <davem@davemloft.net>
573         * sysdeps/sparc/sparc32/Makefile: Use -mcpu=v7 for initfini.s build.
574         * sysdeps/sparc/sparc64/Makefile: Use -mcpu=v9 for initfini.s build.
576 2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
578         Fix termios bit macros.
579         Move *DLY definitions where they belong, in termios.h.
580         Add *[0-3] definitions.
581         Fixes confusion between VT and FF.
582         * sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
583         CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
584         are already defined to avoid collision with termios.h.
585         (NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
586         * bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
587         TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
588         [__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
589         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
590         TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
591         VTDLY, VT0, VT1): New macros.
592         [__USE_GNU] (OLCUC): Change value of macro.
593         [__USE_XOPEN] (OFILL): New macro.
594         [__USE_BSD] (CRTSCTS): Change value.
595         (CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
596         [__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
597         (B7200, B14400, B28800, B76800): New macros.
599 2008-05-01  David S. Miller  <davem@davemloft.net>
601         * sysdeps/unix/sysv/linux/sparc/sparc32/ucontext_i.sym: New file.
602         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile [$(subdir) = stdlib]:
603         (gen-as-const-headers): Add it.
604         * sysdeps/unix/sysv/linux/sparc/sparc32/getcontext.S: New file.
605         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
606         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S: Likewise.
607         * sysdeps/unix/sysv/linux/sparc/sparc32/swapcontext.S: Likewise.
609         * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S: Add support for
610         six system call parameters.
611         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
613 2008-04-30  Ulrich Drepper  <drepper@redhat.com>
615         * sysdeps/unix/sysv/linux/bits/resource.h: Define RUSAGE_THREAD and
616         RUSAGE_LWP.
617         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
618         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
620 2008-04-30  Jakub Jelinek  <jakub@redhat.com>
622         * stdlib/tst-setcontext.c: Include unistd.h.
624 2008-04-25  David S. Miller  <davem@davemloft.net>
626         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c (semctl):
627         Pass "union semun" properly in to sys_ipc, it must be passed
628         by value, not by reference.
630 2008-04-22  Jakub Jelinek  <jakub@redhat.com>
632         * nscd/Makefile (nscd-cflags): Set back to -fpie.
633         * nscd/nscd.h (mem_in_flight): Add attribute_tls_model_ie.
634         * nscd/connections.c (mem_in_flight): Likewise.
636         * nscd/nscd.h (dbs): Make hidden.
638         * sysdeps/unix/sysv/linux/times.c (__times): Fix check for EFAULT.
639         Avoid returning -1, return 0 instead.
641 2008-04-19  Ulrich Drepper  <drepper@redhat.com>
643         * resolv/res_mkquery.c (__res_nopt): Use NS_PUT16 instead of ns_put16.
645 2008-04-15  Ulrich Drepper  <drepper@redhat.com>
647         [BZ #5209]
648         * sysdeps/unix/sysv/linux/times.c: New file.
650         [BZ #5381]
651         * nscd/nscd.h: Define enum in_flight, mem_in_flight, and
652         mem_in_flight_list variables.  Add new parameter to mempool_alloc
653         prototype.
654         * nscd/mem.c (mempool_alloc): Take additional parameter.  Initialize
655         appropriate mem_in_flight element.
656         (gc): Take allocations which have not yet been committed to the
657         database into account.
658         * nscd/cache.c (cache_add): Add new parameter to mempool_alloc call.
659         Reset mem_in_flight before returning.
660         * nscd/connections.c (nscd_run_worker): Initialize mem_in_flight and
661         cue it up in mem_in_flight_list.
662         * nscd/aicache.c: Adjust mempool_alloc call.
663         * nscd/grpcache.c: Likewise.
664         * nscd/hstcache.c: Likewise.
665         * nscd/initgrcache.c: Likewise.
666         * nscd/pwdcache.c: Likewise.
667         * nscd/servicescache.c: Likewise.
668         * nscd/Makefile (nscd-flags): Until ld is fixed, use -fpic instead
669         of -fpie.
671         * nscd/connections.c (handle_request): Provide better error message
672         in case SELinux forbids the service.
674         * version.h (VERSION): Bump to 2.8.90.
676 2008-04-17  Jakub Jelinek  <jakub@redhat.com>
678         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include fcntl.h.
680 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
682         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h (__signbitl):
683         Also use for 32-bit.
684         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Use
685         __nextafter instead of nextafter to avoid local PLT.
686         * sysdeps/powerpc/fpu/e_sqrt.c: Avoid call to fetestexcept.
687         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
689         * scripts/data/localplt-powerpc64-linux-gnu.data: New file.
691         * sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto for
692         __fe_nomask_env.
693         * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def.  Include
694         <fenv_libc.h> instead of <fenv.h>.
695         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
698         * sysdeps/powerpc/bits/fenv.h: Make safe for C++.
700         * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file.
701         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename
702         function from fegetexcept and make old name weak alias.
703         * include/fenv.h: Declare __fegetexcept.
704         * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of
705         fegetexcept.
706         * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise.
707         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call
708         to fetestexcept.
709         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl
710         instead of frexpl to avoid local PLT.
711         * math/s_significandl.c (__significandl): Use __ilogbl instead of
712         ilogbl to avoid local PLT.
713         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl
714         instead of ldexpl to avoid local PLT.
715         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
716         __roundl not roundl to avoid local PLT.
717         * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid
718         local PLTs.  Use __sincosl instead of separate sinl and cosl
719         calls.
720         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
722         * sysdeps/unix/sysv/linux/configure.in: Bump minimal kernel
723         version for ppc64 to 2.4.21 since without it makecontext will fail.
725         * elf/tls-macros.h [__powerpc64__] (__TLS_GET_ADDR): Define according
726         to the ABI in use.
727         [__powerpc64__] (TLS_LD): Use __TLS_GET_ADDR instead of
728         .__tls_get_addr.
729         [__powerpc64__] (TLS_GD): Likewise.
731 2007-11-20  Ryan S. Arnold  <rsa@us.ibm.com>
733         [BZ #4997]
734         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous
735         result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the
736         mantissa.
737         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
738         Likewise.  Also account for when x is an odd number between 2^52
739         and 2^53-1.
740         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise.
741         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise.
742         * math/libm-test.inc (lround_test, llround_test): Added test cases to
743         detect aforementioned erroneous conditions.
745 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
747         * configure.in: Check for -fno-section-anchors in addition to
748         -fno-toplevel-reorder.
750 2008-04-11  Ulrich Drepper  <drepper@redhat.com>
752         * include/features.h (__GLIBC_MINOR__): Bump to 8.
754         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: Remove duplicate comment.
755         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
756         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
757         * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
758         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
759         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
761 2008-04-11  Jakub Jelinek  <jakub@redhat.com>
763         [BZ #5443]
764         * time/era.c: Transform __libc_setlocale_lock into rwlock.
765         * time/alt_digit.c: Likewise.
766         * wcsmbs/wcsmbsload.c: Likewise.
768 2008-04-10  Ulrich Drepper  <drepper@redhat.com>
770         * version.h (VERSION): Bump to 2.8.
772         * timzeone/asia: Update from tzdata2008b.
773         * timezone/backward: Likewise.
774         * timezone/europe: Likewise.
775         * timezone/northamerica: Likewise.
776         * timezone/southamerica: Likewise.
777         * timezone/iso3166.tab: Likewise.
778         * timezone/leapseconds: Likewise.
779         * timezone/zone.tab: Likewise.
780         * timezone/private.h: Update from tzcode2008a.
781         * timezone/zdump.c: Likewise.
782         * timezone/zic.c: Likewise.
784 2008-01-24  Steven Munroe  <sjmunroe@us.ibm.com>
786         [BZ #5741]
787         * sysdeps/powerpc/powerpc64/dl-machine.h (PPC_DCBT, PPC_DCBF):
788         Define additonal Data Cache Block instruction macros.
789         (elf_machine_fixup_plt): Add dcbt for opd and plt entries.
790         Replace dcbst with dcbf and sync with sync/isync.
792 2008-02-21  Alan Modra  <amodra@bigpond.net.au>
794         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
795         Always set ELF_RTYPE_CLASS_PLT.
796         (elf_machine_lookup_noexec_p, elf_machine_lookup_noplt_p): Delete.
798 2008-04-03  Steven Munroe  <sjmunroe@us.ibm.com>
800         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: New file.
801         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: New file.
802         * sysdeps/powerpc/powerpc64/hp-timing.h [_ARCH_PWR4] (HP_TIMING_NOW):
803         For ISA 2.01 and later replace mftb with mfspr 268.
805 2008-02-19  Steven Munroe  <sjmunroe@us.ibm.com>
807         [BZ #5768]
808         * sysdeps/powerpc/fpu/Makefile (libm-tests): Add test-powerpc-snan.
809         * sysdeps/powerpc/fpu/test-powerpc-snan.c: New file.
811 2008-02-18  Steven Munroe  <sjmunroe@us.ibm.com>
813         [BZ #5768]
814         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: New file.
815         * sysdeps/powerpc/powerpc32/fpu/s_isnan.c: Removed.
816         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: New file.
817         * sysdeps/powerpc/powerpc64/fpu/s_isnan.c: Removed.
819 2008-04-10  Jakub Jelinek  <jakub@redhat.com>
821         * stdlib/tst-makecontext.c (othervar): New variable.
822         (cf): Test sign extending the argument to long.
824 2008-03-03  Steven Munroe  <sjmunroe@us.ibm.com>
826         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: New file.
827         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: New file.
828         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: New file.
829         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: New file.
830         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: New file.
831         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: New file.
832         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: New file.
834 2008-02-22  Alan Modra  <amodra@bigpond.net.au>
836         * elf/Makefile (tests): Substitute tests-vis-yes here.
837         (tests-vis-yes): Delete.
838         (modules-name, modules-vis-yes): Similarly.
840 2008-02-12  Pete Eberlein  <eberlein@us.ibm.com>
842         [BZ #4407]
843         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
844         Preserve sign in signgamp when x is zero.
846 2007-10-26  Steven Munroe  <sjmunroe@us.ibm.com>
848         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: New File.
849         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: Removed.
850         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: New File.
851         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.c: Removed.
852         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: New File.
853         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: New File.
855 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
857         [BZ #4314]
858         * sysdeps/i386/i686/memcpy.S: Optimize copying of equally aligned
859         buffers.
861         [BZ #5209]
862         * sysdeps/unix/sysv/syscalls.list: The times syscall doesn't have
863         a reserved error value.
865         * stdlib/tst-makecontext.c: Change parameter to cf to negative
866         value to check for correct sign extension.
868         [BZ #5436]
869         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
870         Copy 64-bit parameter values even though this is not required in
871         the standard.
873         * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
874         PC save.
876 2008-02-14  Daniel Jacobowitz  <dan@codesourcery.com>
878         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Record return
879         PC save.
881 2008-04-09  Jakub Jelinek  <jakub@redhat.com>
883         * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
885 2008-04-09  Ulrich Drepper  <drepper@redhat.com>
887         [BZ #5998]
888         * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing
889         in line-buffered stream failed.
890         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
892 2008-04-08  Ulrich Drepper  <drepper@redhat.com>
894         [BZ #6024]
895         * scripts/abi-versions.awk: If the version specified by
896         --enable-oldest-abi is older than the first version for this
897         architecture, use the default version.
899         * locale/programs/ld-collate.c (collate_read): Ignore script lines
900         as well when ignoring the whole category.
902 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
904         [BZ #6042]
905         * sysdeps/unix/sysv/linux/net/ethernet.h: Add a few more
906         ETHERTYPE_* definitions.
907         Patch partly by Aurelien Jarno <aurelien@aurel32.net>.
909 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
911         * stdlib/mbtowc.c (__no_r_state): Remove.
912         (mbtowc): New static state variable.  Use it instead of
913         __no_r_state.
914         * stdlib/wctomb.c (__no_r_state): Remove extern decl.
915         (__wctomb_state): New hidden variable.
916         (wctomb): Use __wctomb_state instead of __no_r_state.
917         * debug/wctomb_chk.c (__no_r_state): Remove extern decl.
918         (__wctomb_state): New extern decl.
919         (__wctomb_chk): Use __wctomb_state instead of __no_r_state.
921 2008-04-07  Ulrich Drepper  <drepper@redhat.com>
923         [BZ #5475]
924         * resolv/res_init.c: Handle scope IDs in resolv.conf.
926 2008-04-07  Jakub Jelinek  <jakub@redhat.com>
928         * malloc/mtrace.pl: Use $@ instead of $* to keep perl 5.10 quiet.
930 2008-04-06  Ulrich Drepper  <drepper@redhat.com>
932         * po/nl.po: Update from translation team.
934 2008-03-31  Ulrich Drepper  <drepper@redhat.com>
936         [BZ #6007]
937         * string/strfry.c: Handle empty strings again.
939 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
941         [BZ #5443]
942         * intl/dcigettext.c (__dcigettext): Get reader lock for locale data
943         before looking for translation.
944         * locale/duplocale.c: Transform __libc_setlocale_lock into rwlock.
945         * locale/freelocale.c: Likewise.
946         * locale/newlocale.c: Likewise.
947         * locale/setlocale.c: Likewise.
948         Based partially on a patch by ryo@np.css.fujitsu.com.
950 2008-03-30  Jakub Jelinek  <jakub@redhat.com>
952         * intl/dcigettext.c (_nl_find_msg): Reread nconversions after
953         acquiring wrlock.  Do conv_tab allocation while holding lock.
954         * intl/Makefile: Add rules to build and run tst-gettext6.
955         * intl/tst-gettext6.c: New test.
956         * intl/tst-gettext6.sh: New file.
958 2008-03-30  Ulrich Drepper  <drepper@redhat.com>
960         * po/nl.po: Update from translation team.
962         * sysdeps/unix/opendir.c (__alloc_dir): If allocation fails for size
963         provided through st_blksize, try the default size before giving up.
965 2008-03-29  Ulrich Drepper  <drepper@redhat.com>
967         * stdio-common/vfprintf.c (vfprintf): Correct overflow test.
969         [BZ #5939]
970         * sysdeps/posix/tempname.c (__gen_tempname): Correct flag selection.
972         * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
973         error message.  POSIX today does not require the messages to be in
974         a specific form.  Suggested by Jim Meyering <jim@meyering.net>.
976         [BZ #5979]
977         * sunrpc/auth_unix.c: Unify printed strings.
978         * sunrpc/clnt_tcp.c: Likewise.
979         * sunrpc/clnt_udp.c: Likewise.
980         * sunrpc/clnt_unix.c: Likewise.
981         * sunrpc/svc_tcp.c: Likewise.
982         * sunrpc/svc_udp.c: Likewise.
983         * sunrpc/svc_unix.c: Likewise.
984         * sunrpc/xdr.c: Likewise.
985         * sunrpc/xdr_array.c: Likewise.
986         * sunrpc/xdr_rec.c: Likewise.
987         * sunrpc/xdr_ref.c: Likewise.
988         * locale/programs/ld-time.c (time_finish): Unify messages.
989         * locale/programs/locfile.c (handle_copy): Fix typo.
990         * nscd/nscd.c (options): Fix typo.
992         [BZ #5995]
993         * stdlib/strtod_l.c: Use correct sign for result in one more
994         underflow case.
995         Patch by Eric Blake <ebb9@byu.net>.
997 2008-03-27  Jakub Jelinek  <jakub@redhat.com>
999         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
1000         and creat system calls.
1001         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
1002         call.
1003         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
1004         system calls.
1005         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
1006         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1007         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1009 2008-03-27  Ulrich Drepper  <drepper@redhat.com>
1011         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
1012         <linux/limits.h> has defined it.
1013         * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
1014         ARG_MAX value and prevent ARG_MAX from being defined by the kernel
1015         headers.
1016         * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
1017         it instead of ARG_MAX.
1019 2008-03-25  Jakub Jelinek  <jakub@redhat.com>
1021         * posix/gai.conf: Fix comment for scope nullbits.
1022         * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
1023         default to 128 bits for v4 mapped addresses.
1025 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1027         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
1028         ptrace call to get the ieee_instruction_pointer from the kernel.
1029         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Remove PTRACE_POKEUSER
1030         ptrace call to set the ieee_instructtion_pointer.
1031         * sysdeps/unix/sysv/linux/s390/sys/user.h (struct _user_regs_struct):
1032         Add comment that ieee_instruction_pointer is always 0.
1034 2008-03-09  Andreas Jaeger  <aj@suse.de>
1036         [BZ #5857]
1037         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18.
1038         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise.
1039         Patch by Mark Elliott <mark.h.elliott@lmco.com>.
1041         * math/libm-test.inc (nearbyint_test): Add new test cases from #5857.
1042         (rint_test): Likewise.
1044 2008-03-24  Ulrich Drepper  <drepper@redhat.com>
1046         * nis/nis_call.c (nis_server_cache_search): Save errno around stat
1047         call.
1048         (__nisfind_server): Similar for open readColdStartFile call.
1049         Patch partially by Jim Meyering.
1050         * nss/nss_files/files-XXX.c (_nss_files_getXXent_r): Save errno
1051         around internal_setent call.
1053         * po/vi.po: New Vietnamese translation.
1055         * sysdeps/unix/sysv/linux/adjtime.c: Correctly use
1056         ADJ_OFFSET_SS_READ.
1058         * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
1059         remove CLONE_STOPPED.
1061 2008-02-10  Jim Meyering  <meyering@redhat.com>
1063         Remove useless "if" before "free":
1064         * elf/ldconfig.c (parse_conf_include): Likewise.
1065         * gmon/gmon.c (weak_alias): Likewise.
1066         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
1067         * inet/rcmd.c (__validuser2_sa): Likewise.
1068         * intl/bindtextdom.c (set_binding_values): Likewise.
1069         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Likewise.
1070         * libio/genops.c (save_for_backup): Likewise.
1071         * libio/wgenops.c (save_for_wbackup): Likewise.
1072         * locale/programs/ld-collate.c (collate_read): Likewise.
1073         * locale/programs/linereader.c (get_string): Likewise.
1074         * nis/nss_compat/compat-pwd.c (give_pwd_free): Likewise.
1075         * nis/nss_compat/compat-spwd.c (give_spwd_free): Likewise.
1076         * resolv/res_debug.c (do_section): Likewise.
1077         * sunrpc/xdr_sizeof.c (x_inline, xdr_sizeof): Likewise.
1078         * sysdeps/mach/hurd/if_index.c (libc_hidden_def): Likewise.
1079         * sysdeps/posix/sprofil.c (__sprofil): Likewise.
1080         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
1081         * time/tzset.c (tzset_internal): Likewise.
1083 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
1085         * sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
1086         of ASSEMBLER.
1088 2008-03-11  Ulrich Drepper  <drepper@redhat.com>
1090         [BZ #5903]
1091         * iconv/iconv_charmap.c (charmap_conversion): Pass name of output file
1092         not stream for output file.  Open output file here.
1093         * iconv/iconv_prog.c (process_lock): Take pointer to output stream
1094         and output file name.
1095         (process_fd): Likewise.
1096         (process_file): Likewise.
1097         (main): Adjust callers of changed functions.
1098         * iconv/iconv_prog.h: Adjust prototype.
1100 2008-03-09  Andreas Jaeger  <aj@suse.de>
1102         [BZ #5753]
1103         * sysdeps/ia64/ieee754.h: Use protected namespace
1104         __BIG_ENDIAN/__LITTLE_ENDIAN.
1105         * sysdeps/ieee754/ieee754.h: Likewise.
1106         Patch by Aurelien Jarno <aurelien@aurel32.net>.
1108 2008-03-08  Roland McGrath  <roland@frob.com>
1110         * hurd/hurdsig.c (_hurd_internal_post_signal): When normal rules would
1111         ignore a signal that came from a machine exception, treat it as a
1112         fatal core-dump signal instead.
1113         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
1115         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
1116         Clear DF bit in thread state's eflags.
1117         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
1119 2008-03-08  Ulrich Drepper  <drepper@redhat.com>
1121         [BZ #5774]
1122         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Consume closing brace
1123         of NAN(...) sequence.
1124         * stdlib/Makefile (tests): Add tst-strtod6.
1125         * stdlib/tst-strtod6.c: New file.
1127         * inet/inet6_opt.c (inet6_opt_init): Check extlen for overflow.
1129         [BZ #5762]
1130         * posix/getopt.c (_getopt_internal_r): Clarify error message by
1131         putting offending option character in quotes.  Clean up error
1132         messages.
1133         * po/be.po: Adjust msgstr in translation file.
1134         * po/bg.po: Likewise.
1135         * po/ca.po: Likewise.
1136         * po/cs.po: Likewise.
1137         * po/da.po: Likewise.
1138         * po/de.po: Likewise.
1139         * po/es.po: Likewise.
1140         * po/fr.po: Likewise.
1141         * po/hr.po: Likewise.
1142         * po/ko.po: Likewise.
1143         * po/nl.po: Likewise.
1144         * po/rw.po: Likewise.
1145         * po/sk.po: Likewise.
1146         * po/sv.po: Likewise.
1147         * po/tr.po: Likewise.
1148         * po/zh_CN.po: Likewise.
1149         * po/zh_TW.po: Likewise.
1151         [BZ #5760]
1152         * inet/inet6_opt.c (inet6_opt_init): Fix ip6h_len computation.
1153         Patch by Roland Bless <roland@bless.de>.
1155         * sysdeps/unix/sysv/linux/dl-sysdep.c: Avoid unnecessary code for
1156         .o file.
1157         * elf/Makefile (routines): Add dl-sysdep.
1158         (elide-routines.os): Likewise.
1160 2008-03-07  Ulrich Drepper  <drepper@redhat.com>
1162         [BZ #5786]
1163         * elf/dl-sysdep.c: Undefine ROUND after use.
1164         * sysdeps/generic/ldsodefs.h [HAVE_DL_DISCOVER_OSVERSION]
1165         (struct rtld_global_ro): Add _dl_tls_get_addr_soft element.
1166         * elf/rtld.c (rtld_global_ro): Initialize _dl_discover_osversion.
1167         * sysdeps/unix/sysv/linux/dl-osinfo.h: Move _dl_discover_osversion
1168         to ...
1169         * sysdeps/unix/sysv/linux/dl-sysdep.c: ...here.
1170         * sysdeps/unix/sysv/linux/dl-sysdep.h: Declare _dl_discover_osversion
1171         if necessary.
1172         * sysdeps/unix/sysv/linux/sysconf.c: Handle _SC_ARG_MAX here.
1174         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add
1175         _dl_tls_get_addr_soft element.
1176         * elf/rtld.c (rtld_global_ro): Initialize _dl_tls_get_addr_soft.
1177         * elf/Versions (ld): Don't export _dl_tls_get_addr_soft.
1178         * dlfcn/dlinfo.c (dlinfo_doit): Access dl_tls_get_addr_soft through
1179         GLRO.
1180         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
1181         * elf/dl-tls.c (_dl_tls_get_addr_soft): Use attribute_hidden instead
1182         of internal_function.
1184         * stdlib/Makefile (aux): Add tens_in_limb.
1185         * stdlib/strtod_l.c: Move _tens_in_limb definition to...
1186         * stdlib/tens_in_limb.c: ...here.  New file.
1188         [BZ #5778]
1189         * sysdeps/unix/sysv/linux/pathconf.h: Declare
1190         __statfs_chown_restricted.
1191         * sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
1192         for _PC_CHOWN_RESTRICTED.
1193         * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
1194         Implement __statfs_chown_restricted.
1195         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
1196         _POSIX_CHOWN_RESTRICTED value to zero.
1197         * io/tst-fchownat.c: Correctly handle _POSIX_CHOWN_RESTRICTED
1198         defined to zero.
1200         * sysdeps/x86_64/rtld-memset.c: New file.
1202 2008-02-26  Harsha Jagasia  <harsha.jagasia@amd.com>
1204         * sysdeps/x86_64/cacheinfo.c (NOT_USED_RIGHT_NOW): Remove ifdef guards.
1206         * sysdeps/x86_64/memset.S: Rewrite non-SSE code path as tuned for AMD
1207         Barcelona machine.  Make default fall through branch of
1208         __x86_64_preferred_memory_instruction check as the integer code path.
1210 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
1212         * sysdeps/x86_64/cacheinfo.c
1213         (__x86_64_preferred_memory_instruction): New variable.
1214         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
1216         * sysdeps/x86_64/memset.S: Rewrite.
1218 2008-03-04  Jakub Jelinek  <jakub@redhat.com>
1220         * include/stdio.h (__asprintf_chk, __dprintf_chk,
1221         __obstack_printf_chk): New prototypes.
1222         (__vasprintf_chk, __vdprintf_chk,
1223         __obstack_vprintf_chk): Likewise.
1224         Add libc_hidden_proto.
1225         * libio/obprintf.c
1226         (_IO_obstack_jumps): No longer static, add attribute_hidden.
1227         * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk,
1228         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
1229         __obstack_vprintf_chk): Add __LDBL_REDIR_DECL.
1230         * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk,
1231         __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk,
1232         __obstack_vprintf_chk): New prototypes.
1233         (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf,
1234         obstack_vprintf): New inlines.
1235         * debug/dprintf_chk.c: New file.
1236         * debug/vdprintf_chk.c: New file.
1237         * debug/asprintf_chk.c: New file.
1238         * debug/vasprintf_chk.c: New file.
1239         * debug/obprintf_chk.c: New file.
1240         * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests.
1241         * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk,
1242         __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export
1243         @@GLIBC_2.8.
1244         * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk,
1245         vdprintf_chk and obprintf_chk, set CFLAGS for them.
1246         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk,
1247         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add
1248         libc_hidden_proto.
1249         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk,
1250         __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes.
1251         * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk,
1252         __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk,
1253         __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export
1254         @@GLIBC_2.8.
1255         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk,
1256         vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and
1257         obstack_vprintf_chk.
1258         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file.
1259         * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file.
1260         * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file.
1261         * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file.
1262         * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file.
1263         * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
1265 2008-03-04  Ulrich Drepper  <drepper@redhat.com>
1267         [BZ #5779]
1268         * misc/sys/queue.h: Add STAILQ_CONCAT and TAILQ_CONCAT definitions.
1269         Patch by Roy Marples <roy@marples.name>.
1271         [BZ #5736]
1272         * malloc/malloc.c: Fix typo in comment.
1274         [BZ #5627]
1275         * locale/iso-639.def: Add Shuswap.
1277 2008-02-25  Jakub Jelinek  <jakub@redhat.com>
1279         [BZ #5790]
1280         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Don't
1281         overwrite *h_errnop/*errnop values from getanswer_r in case of
1282         failure.
1284 2008-03-03  Ulrich Drepper  <drepper@redhat.com>
1286         [BZ #5818]
1287         * nscd/connections.c (dbs): Add initializers for .suggested_module.
1288         (verify_persistent_db): Remove one unnecessary test and add a new one
1289         for bad configuration.
1290         (nscd_init): Improve error reported when persistent database cannot
1291         be reused.
1292         * nscd/nscd.h (DEFAULT_SUGGESTED_MODULE): Define.
1293         * nscd/nscd_conf.c (nscd_parse_file): Provide default values for
1294         .suggested_module and .max_db_size and case config file says the
1295         values are zero.
1296         * nscd/nscd_helper.c (get_mapping): Fail if hash table module is zero.
1298         [BZ #5854]
1299         * nis/ypclnt.c (yp_order): Fix handling of return value of
1300         do_ypcall_tr call.
1301         Patch by Jeff Moyer <jmoyer@redhat.com>.
1303         * po/fr.po: Update from translation team.
1305 2008-02-22  Andreas Jaeger  <aj@suse.de>,
1306             Carlos O'Donell <carlos@systemhalted.org>
1308         [BZ #5012]
1309         * FAQ.in: Describe why glibc needs to be compiled with
1310         optimization.
1312 2008-02-19  Roland McGrath  <roland@redhat.com>
1314         * elf/elf.h (SHT_GNU_ATTRIBUTES): New macro.
1316 2008-02-15  Ulrich Drepper  <drepper@redhat.com>
1318         [BZ #5737]
1319         * resolv/netdb.h: Make NI_MAXHOST and NI_MAXSERV available when
1320         __USE_MISC is defined.
1322 2008-02-10  Ulrich Drepper  <drepper@redhat.com>
1324         * sysdeps/unix/sysv/linux/sys/timerfd.h: New file.
1325         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers): Add
1326         sys/timerfd.h.
1327         * sysdeps/unix/sysv/linux/syscalls.list: Add timerfd_create,
1328         timerfd_gettime, timerfd_settime.
1329         * sysdeps/unix/sysv/linux/Versions: Add timerfd_create,
1330         timerfd_gettime, timerfd_settime for GLIBC_2.8.
1332 2008-02-08  Roland McGrath  <roland@redhat.com>
1334         * elf/elf.h (NT_PPC_SPE): New macro.
1336 2008-02-06  Roland McGrath  <roland@redhat.com>
1338         * Makerules ($(common-objpfx)sysd-rules):
1339         Depend on $(sysdep-makeconfigs).
1341 2008-01-31  Roland McGrath  <roland@redhat.com>
1343         [BZ #5442]
1344         * configure.in: Use -print-file-name if it yields a directory,
1345         for each of include and include-fixed.
1346         * configure: Regenerated.
1348         * Makeconfig (sysd-rules-targets): New variable.
1349         * sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
1350         * sysdeps/unix/Makefile (omit-deps): Append variants for each target.
1352 2008-01-30  Roland McGrath  <roland@redhat.com>
1354         * manual/libc.texinfo: Update back-cover text.
1356         * elf/elf.h (NT_386_TLS): New macro.
1358 2008-01-29  Roland McGrath  <roland@redhat.com>
1360         * Makeconfig (sysd-rules-patterns): New variable.
1361         * Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
1362         (check-inhibit-asm): New canned sequence, replaces ...
1363         (open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
1364         * elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
1365         (rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
1366         (CFLAGS-rtld): Variable removed.
1368 2008-01-24  Roland McGrath  <roland@redhat.com>
1370         * configure.in: Let configure fragments set base_os.
1371         * configure: Regenerated.
1373 2008-01-22  Ulrich Drepper  <drepper@redhat.com>
1375         * po/ko.po: Update from translation team.
1377 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
1379         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
1381 2008-01-12  Andreas Jaeger  <aj@suse.de>
1383         [BZ #5040]
1384         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (enum EPOLL_EVENTS):
1385         Add EPOLLRDHUP.
1387 2008-01-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1389         * hurd/hurdsock.c (_hurd_socket_server): Return the standard
1390         error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
1391         * sunrpc/bindrsvprt.c (bindresvport): Likewise.
1393 2007-10-23  Alexandre Oliva  <aoliva@redhat.com>
1395         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET): Define.
1396         * elf/dl-close.c (_dl_close): Check for it.
1397         * elf/dl-reloc.c (CHECK_STATIC_TLS): Likewise.
1398         (_dl_allocate_static_tls): Likewise.
1399         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
1400         (__tls_get_addr): Protect from race conditions in setting l_tls_offset
1401         to it.
1402         * elf/tst-tls16.c: New file.
1403         * elf/tst-tlsmod16a.c: New file.
1404         * elf/tst-tlsmod16b.c: New file.
1405         * elf/Makefile: Add rules to build and run tst-tls16.
1407 2008-01-16  Ulrich Drepper  <drepper@redhat.com>
1409         [BZ #5628]
1410         * bits/shm.h: Fix comment describing shmid_ds.
1411         * sysdeps/gnu/bits/shm.h: Likewise.
1412         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
1413         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
1414         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
1415         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
1416         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
1417         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
1418         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
1419         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
1420         Patch by Hareesh Nagarajan <hareesh.nagarajan@gmail.com>.
1422         [BZ #5607]
1423         * conform/data/fcntl.h-data: Fix posix_fadvise and posix_fallocate
1424         prototypes.
1425         * conform/data/limits.h-data: Adjust limits changed in v6 and add
1426         additional suffixes.
1427         * conform/data/mqueue.h-data: Fix typo in mq_curmsgs entry.
1428         Add optional functions mq_timedreceive and mq_timedsend.
1429         * conform/data/netdb.h-data: Add more AI_* and EAI_* constants.
1430         * conform/data/pthread.h-data: Fix prototype of
1431         pthread_condattr_setclock.  pthread_sigmask is not required in v6.
1432         * conform/data/semaphore.h-data: Allow time.h definitions.
1433         * conform/data/signal.h-data: Likewise.
1434         * conform/data/stdio.h-data: getw and putw are not required in v6.
1435         * conform/data/stdlib.h-data: Change setstate prototype.
1436         * conform/data/string.h-data: Fix strerror_r prototype.
1437         * conform/data/time.h-data: Fix typo in TIMER_ABSTIME definition.
1438         * conform/data/unistd.h-data: pthread_atfork not required in v6.
1439         Fix readlink prototype.
1440         * conform/data/netinet/in.h-data: Add const to in6addr_any and
1441         in6addr_loopback.
1442         * inet/netinet/in.h: Cleanup namespace.
1443         * posix/regex.h: Likewise.
1444         * resolv/netdb.h: Likewise.
1445         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
1446         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
1447         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
1448         * sysdeps/posix/getaddrinfo.c (default_labels): Adjust for change
1449         of names of in in6_addr.
1450         (default_precedence): Likewise.
1451         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c: Include <stddef.h> for
1452         NULL definition.
1454 2008-01-15  Ulrich Drepper  <drepper@redhat.com>
1456         * conform/data/fmtmsg.h-data: Add missing allows.
1457         * conform/data/ftw.h-data: Likewise.
1458         * conform/data/inttypes.h-data: Likewise.
1459         * conform/data/math.h-data: Likewise.
1460         * conform/data/signal.h-data: Likewise.
1461         * conform/data/net/if.h-data: Likewise.
1462         * conform/data/netinet/in.h-data: Likewise.
1463         * conform/data/sys/socket.h-data: Likewise.
1465         [BZ #5614]
1466         * string/bits/string2.h (__strtok_r_1c): Always update *__NEXTP.
1467         (__strtok_r): Simplify.
1468         * string/tester.c (test_strtok_r): Add test case for futile search
1469         with single-character seach string.
1471 2008-01-12  Ulrich Drepper  <drepper@redhat.com>
1473         * po/ko.po: Update from translation team.
1475 2008-01-11  Andreas Jaeger  <aj@suse.de>
1477         [BZ #5600]
1478         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
1479         signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
1480         kernel header.
1482 2008-01-10  Ulrich Drepper  <drepper@redhat.com>
1484         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result of
1485         native interface lookup in all the relevant places.
1487 2008-01-10  Jakub Jelinek  <jakub@redhat.com>
1488             Ulrich Drepper  <drepper@redhat.com>
1490         * sysdeps/posix/getaddrinfo.c (sort_results): Remove service_order
1491         field.  Use sockaddr_in6 for source_addr.
1492         (get_scope): Change type of parameter to sockaddr_in6.  Adjust.
1493         (match_prefix): Likewise.
1494         (get_label): Likewise.
1495         (get_precedence): Likewise.
1496         (rfc3484_sort): Change to use indirect access to results array.
1497         Adjust to use of sockaddr_in6.  Replace service_order test with
1498         simple index comparison.
1499         (getaddrinfo): Define order array.  Initialize it.  Don't initialize
1500         service_order field.  Adjust qsort_t calls.  Access sorted result
1501         array indirectly through order array.
1502         * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort.
1503         * posix/tst-rfc3484-2.c: Likewise.
1504         * posix/tst-rfc3484-3.c: Likewise.
1506 2008-01-09  Ulrich Drepper  <drepper@redhat.com>
1508         [BZ #5541]
1509         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Also free xports and
1510         pollfd structures.
1511         Patch by André Cruz.
1513         [BZ #5545]
1514         * sunrpc/clnt_perr.c (clnt_sperror): Don't use fixed size buffer.
1515         (clnt_spcreateerror): Likewise.
1517         [BZ #5553]
1518         * malloc/malloc.c (public_mALLOc): Set ar_ptr when trying main_arena.
1519         (public_mEMALIGn): Likewise.
1520         Patch mostly by Daniel Jacobowitz.
1522 2008-01-09  Jakub Jelinek  <jakub@redhat.com>
1524         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
1525         clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
1526         * stdlib/Makefile: Add rules to build and run tst-makecontext2.
1527         * stdlib/tst-makecontext2.c: New test.
1529 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
1531         * iconv/loop.c (UPDATE_PARAMS): Define to empty statement if not
1532         defined.
1533         (REINIT_PARAMS): Likewise.  Undefine before end of file.
1534         (STANDARD_TO_LOOP_ERR_HANDLER): Use UPDATE_PARAMS before calling
1535         transliteration hooks and REINIT_PARAMS afterwards.
1536         * iconvdata/iso-2022-jp.c (BODY): Use a separate variable for
1537         status.
1538         (REINIT_PARAMS): Define.
1539         * iconvdata/ibm1364.c (REINIT_PARAMS): Likewise.
1540         * iconvdata/ibm930.c (REINIT_PARAMS): Likewise.
1541         * iconvdata/ibm933.c (REINIT_PARAMS): Likewise.
1542         * iconvdata/ibm935.c (REINIT_PARAMS): Likewise.
1543         * iconvdata/ibm937.c (REINIT_PARAMS): Likewise.
1544         * iconvdata/ibm939.c (REINIT_PARAMS): Likewise.
1545         * iconvdata/iso-2022-cn.c (REINIT_PARAMS): Likewise.
1546         * iconvdata/iso-2022-cn-ext.c (REINIT_PARAMS): Likewise.
1547         * iconvdata/iso-2022-jp-3.c (REINIT_PARAMS): Likewise.
1548         * iconvdata/iso-2022-kr.c (REINIT_PARAMS): Likewise.
1549         * iconvdata/Makefile: Add rules to build and run tst-iconv7.c.
1550         * iconvdata/tst-iconv7.c: New test.
1552 2008-01-07  Ulrich Drepper  <drepper@redhat.com>
1554         * libio/stdio.h (vscanf): Fix definition for loser compilers.
1556 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
1558         [BZ #5112]
1559         * nscd/connections.c (restart): Fix condition.
1561 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
1563         * ctype/ctype.h (__ctype_b_loc, __ctype_tolower_loc,
1564         __ctype_toupper_loc): Add __THROW.
1566 2008-01-02  Ulrich Drepper  <drepper@redhat.com>
1568         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Fix
1569         recognition of interface family.
1571         * posix/getconf.c: Update copyright year.
1572         * nss/getent.c: Likewise.
1573         * iconv/iconvconfig.c: Likewise.
1574         * iconv/iconv_prog.c: Likewise.
1575         * elf/ldconfig.c: Likewise.
1576         * catgets/gencat.c: Likewise.
1577         * csu/version.c: Likewise.
1578         * elf/ldd.bash.in: Likewise.
1579         * elf/sprof.c (print_version): Likewise.
1580         * locale/programs/locale.c: Likewise.
1581         * locale/programs/localedef.c: Likewise.
1582         * nscd/nscd.c (print_version): Likewise.
1583         * debug/xtrace.sh: Likewise.
1584         * malloc/memusage.sh: Likewise.
1585         * malloc/mtrace.pl: Likewise.
1586         * debug/catchsegv.sh: Likewise.
1588 2007-12-26  Ulrich Drepper  <drepper@redhat.com>
1590         * nss/nsswitch.c (__nss_lookup): Actually use alternative name in
1591         second lookup.
1593 2007-12-23  Ulrich Drepper  <drepper@redhat.com>
1595         * sysdeps/x86_64/cacheinfo.c (intel_02_known): New entry 0x3f.
1596         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
1598 2007-12-17  Roland McGrath  <roland@redhat.com>
1600         * inet/ether_line.c (ether_line): Remove unused variable.
1602 2007-12-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1604         * login/forkpty.c (forkpty): Add const qualifier to parameters termp
1605         and winp.
1606         * login/openpty.c (openpty): Likewise.
1607         * login/pty.h (openpty, forkpty): Likewise.
1608         * manual/terminal.texi (openpty, forkpty): Likewise.
1610 2007-12-17  Ulrich Drepper  <drepper@redhat.com>
1612         * malloc/malloc.c (public_cALLOc): For arenas other than
1613         main_arena, count all bytes inside the mprotect_size range of the
1614         heap as uninitialized.
1616 2007-12-16  Ulrich Drepper  <drepper@redhat.com>
1618         * elf/tst-execstack.c (do_test): Don't fail if SELinux forbids
1619         executable stacks.
1621         * malloc/malloc.c (public_mTRIm): Iterate over all arenas and call
1622         mTRIm for all of them.
1623         (mTRIm): Additionally iterate over all free blocks and use madvise
1624         to free memory for all those blocks which contain at least one
1625         memory page.
1626         * malloc/tst-trim1.c: New file.
1627         * malloc/Makefile (tests): Add tst-trim1.
1629         * malloc/malloc.c (do_check_malloc_state): Minimal cleanups.
1631 2007-12-14  Ulrich Drepper  <drepper@redhat.com>
1633         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
1634         First cast argument to long
1635         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):
1636         Return long.
1637         (__vdso_clock_gettime): Likewise.
1638         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions
1639         return long.
1641 2007-12-13  Ulrich Drepper  <drepper@redhat.com>
1643         * locale/nl_langinfo.c (nl_langinfo): Just call __nl_langinfo_l.
1644         * locale/nl_langinfo_l.c: Real implementation, copied from
1645         nl_langinfo.c.
1646         * include/langinfo.h: Add libc_hidden_proto for __nl_langinfo_l.
1648 2007-12-01  Jim Meyering  <meyering@redhat.com>
1650         * posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
1651         that would inhibit utf8-optimization of a regexp containing line-
1652         or buffer-anchors, e.g., `^', `$'.
1654 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
1656         * time/bug-getdate1.c (do_test): Don't use century values which
1657         aren't valid on 32-bit systems.
1659 2007-12-12  Jakub Jelinek  <jakub@redhat.com>
1661         * sysdeps/i386/i486/bits/string.h (memmove): Define as macro.
1662         (memmove): Rename to __memmove_g, with __asm__ ("memmove").
1663         * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g,
1664         __strcat_g, __strncat_g): Add __asm__.
1666 2007-12-12  Ulrich Drepper  <drepper@redhat.com>
1668         [BZ #5477]
1669         * io/fchmodat.c: Fix typo in stub_warning use.
1670         Patch by Petr Salinger.
1672 2007-12-11  Ulrich Drepper  <drepper@redhat.com>
1674         * iconvdata/hp-thai8.c: New file.
1675         * iconvdata/Makefile: Add rules for hp-thai8.c.
1676         * iconvdata/tst-tables.sh: Add entry for HP-THAI8.
1677         * iconvdata/gconv-modules: Likewise.
1679         [BZ #5464]
1680         * iconvdata/hp-greek8.c: New file.
1681         * iconvdata/Makefile: Add rules for hp-greek8.c.
1682         * iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
1683         * iconvdata/gconv-modules: Likewise.
1685         [BZ #5463]
1686         * iconvdata/hp-turkish8.c: New file.
1687         * iconvdata/Makefile: Add rules for hp-turkish8.c.
1688         * iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
1689         * iconvdata/gconv-modules: Likewise.
1691         * malloc/arena.c (grow_heap): Split out code to shrink heap into...
1692         (shrink_heap): ... this new function.
1693         (heap_trim): Call shrink_heap instead of grow_heap.
1695         * malloc/malloc.c (_int_malloc): sYSMALLOc might fail, in this
1696         case don't call alloc_perturb.
1698 2007-12-10  Ulrich Drepper  <drepper@redhat.com>
1700         * sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ if
1701         possible.
1702         * sysdeps/unix/sysv/linux/kernel-features.h
1703         (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24.
1704         * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
1706 2007-12-08  Ulrich Drepper  <drepper@redhat.com>
1708         [BZ #5424]
1709         * stdio-common/vfprintf.c: Do not overflow when adding to done.
1710         * stdio-common/Makefile (tests): Add bug22.
1711         * stdio-common/bug22.c: New file.
1713         [BZ #5451]
1714         * time/getdate.c: Fix filling in default values.
1715         * time/bug-getdate1.c: New file.
1716         * time/Makefile: Add rules to build and run bug-getdate1.
1718         * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic.
1719         * iconvdata/ebcdic-es.c: Likewise.
1720         * iconvdata/ebcdic-es-a.c: Likewise.
1721         * iconvdata/ebcdic-uk.c: Likewise.
1722         * iconvdata/iso8859-16.c: Likewise.
1723         * iconvdata/viscii.c: Likewise.
1724         * iconvdata/iso8859-9e.c: Likewise.
1725         * iconvdata/Makefile: Adjust appropriately.
1727         [BZ #5428]
1728         * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and
1729         __need_wint_t.
1731 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
1733         [BZ #5427]
1734         * iconvdata/hp-roman9.c: New file.
1735         * iconvdata/Makefile: Add rules for hp-roman9.c.
1736         * iconvdata/tst-tables.sh: Add HP-ROMAN9.
1737         * iconvdata/gconv-modules: Likewise.
1739         * iconvdata/hp-roman8.c: Use 8bit-gap instead of 8bit-generic.
1740         * iconvdata/Makefile: Adjust appropriately.
1742         [BZ #5441]
1743         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
1744         structure, it's allocated with alloca.
1745         * stdio-common/Makefile (tests): Add bug21.
1746         * stdio-common/bug21.c: New file.
1748 2007-12-06  Aurelien Jarno  <aurelien@aurel32.net>
1750         [BZ #5452]
1751         * sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
1752         keyword for gcc's braced-groups.
1754 2007-12-07  Ulrich Drepper  <drepper@redhat.com>
1756         [BZ #5454]
1757         * inet/ether_line.c: Strip hostname of whitespaces.
1758         * inet/Makefile (tests): Add tst-ether_line.
1759         * inet/tst-ether_line.c: New file.
1761 2007-12-03  Ulrich Drepper  <drepper@redhat.com>
1763         [BZ #5439]
1764         * sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
1766         [BZ #5435]
1767         * sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
1769         * stdlib/tst-setcontext.c: Catch the case where the links gets
1770         messed up and we do not reach main again.
1772         * po/ca.po: Update from translation team.
1774 2007-11-26  Ulrich Drepper  <drepper@redhat.com>
1776         * posix/unistd.h: Declare fsync also for __USE_XOPEN2K.
1777         * posix/regex.h (REG_ENOSYS): Likewise.
1778         * wcsmbs/wchar.h: Define __need_file also for __USE_XOPEN2K.
1780 2007-11-25  Ulrich Drepper  <drepper@redhat.com>
1782         * nscd/nscd.h (MAX_STACK_USE): Define.
1783         * nscd/mem.c (MAX_STACK_USE): Remove definition here.
1784         (gc): Initialize stack_used based on allocation in prune_cache.
1785         * nscd/cache.c (prune_cache): Use heap for mark array if necessary.
1786         Clear array before use.
1788         * nscd/aicache.c (addhstaiX): Update statistics counter in case
1789         memory allocation failed.
1790         * nscd/hstcache.c (cache_addhst): Likewise.
1791         * nscd/grpcache.c (cache_addgr): Likewise.
1792         * nscd/servicescache.c (cache_addserv): Likewise.
1793         * nscd/pwdcache.c (cache_addpw): Likewise.
1794         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1796 2007-11-23  Ulrich Drepper  <drepper@redhat.com>
1798         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add open
1799         and creat system calls.
1801         * sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.
1803 2007-11-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1805         * sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
1806         Add netiucv/iucv.h.
1807         * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
1808         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
1809         protocol.
1810         * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
1811         * sysdeps/unix/sysv/linux/s390/opensock.c: New file.
1812         * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
1814 2007-11-22  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1816         * sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,
1817         strncat): Define as macros to avoid compile errors.
1819         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:  Add open and
1820         creat entries.
1822 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
1824         [BZ #5382]
1825         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
1826         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
1827         * nscd/mem.c (gc): Don't allocate arrays on the stack if they can
1828         overflow it.
1829         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
1831         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
1832         Return zero in case the thread library is not NPTL.
1834         [BZ #5375]
1835         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
1836         initializing interface list.
1838         [BZ #5378]
1839         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
1840         use result of nss_getgrgid_r if nothing was found.  For other
1841         error return with a failure.
1842         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
1844         * locale/programs/ld-collate.c (collate_read): Fix loop to match
1845         macro name.
1847 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
1849         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
1850         (get_scope): For IPv4 scope, use scopes table.
1851         (fini): Free scopes table if necessary.
1852         (free_scopelist): New function.
1853         (scopecmp): New function.
1854         (gaiconf_init): Also handle scopev4 entries.
1855         * posix/tst-rfc3484.c (do_test): Initialize scopes.
1856         * posix/tst-rfc3484-2.c (do_test): Likewise.
1857         * posix/gai.conf: Document scopev4 defaults.
1858         * posix/Makefile (tests): Add tst-rfc3484-3.
1859         * posix/tst-rfc3484-3.c: New file.
1861         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
1862         Teredo tunnels.
1863         * posix/gai.conf: Update for current default tables.
1865 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
1867         * po/tr.po: Update from translation team.
1869 2007-11-18  Roland McGrath  <roland@frob.com>
1871         * manual/arith.texi (Remainder Functions): Spelling fix.
1872         From Shaun Silk <genix@mysoul.com.au>.
1874         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
1876 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
1878         * po/zh_CN.po: Update from translation team.
1880         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
1881         Add sys/signalfd.h and sys/eventfd.h.
1883 2007-11-15  Bruno Haible  <bruno@clisp.org>
1885         [BZ #5346]
1886         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
1887         union.
1888         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
1889         (DCIGETTEXT): Change the allocation of the 'search' variable so that
1890         it needs only fixed stack space. Delay the initialization of
1891         msgid_len until it is needed.
1893 2007-11-15  Andreas Jaeger  <aj@suse.de>
1895         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
1896         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
1898 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
1900         * po/ko.po: Update from translation team.
1902 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
1904         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
1905         significantly.  The device type is also part of the ifinfomsg data.
1907         * po/sv.po: Update from translation team.
1908         * po/nl.po: Likewise.
1910         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
1911         to wake up in 24 hours.
1913         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
1915 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
1917         * po/cs.po: Update from translation team.
1918         * po/pl.po: Likewise.
1920         * include/ifaddrs.h: Remove in6ai_temporary.
1921         (struct in6addrinfo): Add index element.
1922         Declare __check_native.
1923         * inet/Makefile (aux): Add check_native.
1924         * sysdeps/unix/sysv/linux/check_native.c: New file.
1925         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
1926         IFA_F_TEMPORARY.  Pass back ifa_index.
1927         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
1928         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
1929         call __check_native if necessary.
1930         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
1931         to sort addresses.  Pass information about the results.
1932         * posix/tst-rfc3484.c: Adjust for addition of index field and change
1933         of rfc3484_sort interface.
1934         * posix/tst-rfc3484-2.c: Likewise.
1936         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
1937         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
1938         for _quicksort.
1939         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
1940         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
1941         on as third parameter to compare function and _quicksort.
1942         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
1943         to the compare function.
1944         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
1945         * Versions.def: Add GLIBC_2.8 for libc.
1947         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
1948         * posix/tst-rfc3484-2.c: Likewise.
1950         * include/kernel-features.h: Moved to...
1951         * sysdeps/mach/hurd/kernel-features.h: ...here.
1953 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1955         * sysdeps/i386/i586/memcpy_chk.S: New file.
1956         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
1957         * sysdeps/i386/i586/memset_chk.S: Likewise.
1959 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
1961         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
1962         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
1963         list of interfaces.  Also store prefix length.
1964         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
1965         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
1966         prefix if source and destination address are in the same subnet.
1967         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
1968         Always look for matching record in in6ai list.
1969         Correct source_addr_len value for IPv6->IPv4 converted records.
1971 2007-11-11  Roland McGrath  <roland@frob.com>
1973         * include/kernel-features.h: New file.
1975 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
1977         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
1978         complications for 64-bit platforms.
1980         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
1981         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
1982         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
1983         open64_2.
1984         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
1985         entries.
1986         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1987         * sysdeps/wordsize-64/alphasort.c: New file.
1988         * sysdeps/wordsize-64/alphasort64.c: New file.
1989         * sysdeps/wordsize-64/fseeko.c: New file.
1990         * sysdeps/wordsize-64/fseeko64.c: New file.
1991         * sysdeps/wordsize-64/ftello.c: New file.
1992         * sysdeps/wordsize-64/ftello64.c: New file.
1993         * sysdeps/wordsize-64/ftw.c: New file.
1994         * sysdeps/wordsize-64/ftw64.c: New file.
1995         * sysdeps/wordsize-64/iofgetpos.c: New file.
1996         * sysdeps/wordsize-64/iofgetpos64.c: New file.
1997         * sysdeps/wordsize-64/iofopen.c: New file.
1998         * sysdeps/wordsize-64/iofopen64.c: New file.
1999         * sysdeps/wordsize-64/iofsetpos.c: New file.
2000         * sysdeps/wordsize-64/iofsetpos64.c: New file.
2001         * sysdeps/wordsize-64/lockf.c: New file.
2002         * sysdeps/wordsize-64/lockf64.c: New file.
2003         * sysdeps/wordsize-64/mkostemp.c: New file.
2004         * sysdeps/wordsize-64/mkostemp64.c: New file.
2005         * sysdeps/wordsize-64/mkstemp.c: New file.
2006         * sysdeps/wordsize-64/mkstemp64.c: New file.
2007         * sysdeps/wordsize-64/scandir.c: New file.
2008         * sysdeps/wordsize-64/scandir64.c: New file.
2009         * sysdeps/wordsize-64/tmpfile.c: New file.
2010         * sysdeps/wordsize-64/tmpfile64.c: New file.
2011         * sysdeps/wordsize-64/versionsort.c: New file.
2012         * sysdeps/wordsize-64/versionsort64.c: New file.
2013         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
2014         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
2015         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
2016         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
2017         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
2018         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
2019         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
2020         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
2021         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
2022         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
2023         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
2024         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
2026         * crypt/sha256-crypt.c: Fix a comment.
2027         * crypt/sha512-crypt.c: Likewise.
2029 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
2031         * sysdeps/x86_64/memset.S: Add sfence after movnti.
2033 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
2035         [BZ #5277]
2036         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
2037         because output buffer is too small break, don't loop.
2038         * iconvdata/Makefile (tests): Add bug-iconv6.
2039         * iconvdata/bug-iconv6.c: New file.
2041 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
2043         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
2044         with size_t type.
2045         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
2046         size_t.  Add casts where needed.
2048         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
2049         old headers, don't call avc_has_perm if we don't have the
2050         permission information.
2052 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
2054         * elf/rtld.c (dl_main): Use the page size to find the map start.
2056 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
2058         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
2059         Patch by Szymon Siwek <sls@poczta.wp.pl>.
2061         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
2062         when the lookup call failed.
2064         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
2065         Add prune_cond and wakeup_time.
2066         (CACHE_PRUNE_INTERNAL): Define.
2067         Update declarations of prune_cache and setup_thread.
2068         * nscd/connections.c (dbs): Update initializers.
2069         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
2070         (nscd_init): Default number of threads is now 4.
2071         (invalidate_cache): Take lock before calling prune_cache.
2072         (handle_request): If SELinux forbids the request, say so.
2073         (readylist_cond): Use static initializer.
2074         (nscd_run_prune): New function.  Used only by pruning threads.
2075         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
2076         here.
2077         (fd_ready): Update nscd_run reference.
2078         (start_threads): No need to initialize readylist_cond.
2079         Start pruning threads separately.
2080         * nscd/nscd_setup_thread.c: Change return value type to int and always
2081         return 0.
2082         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
2083         to int and return nonzero value if we can use the TID address hack.
2084         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
2085         the database is later than the new entry's timeout, update the
2086         wakeup time and wake the cleanup thread.
2087         (prune_cache): Return seconds the next entry in the database is still
2088         valid.  Remove locking for pruning here.
2089         * nscd/nscd.conf: Document default number of threads.
2091 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
2093         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
2094         stack is properly aligned for the target function.
2095         Correct unwind info.
2097         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
2098         when using auditing libraries.
2100 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
2102         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
2103         _nss_dns_getnetbyaddr2_r.
2104         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
2105         extra parameter to getanswer_r.
2106         (_nss_dns_getnetbyaddr_r): Now a wrapper around
2107         _nss_dns_getnetbyaddr2_r.
2109         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
2110         gethstbynm3_r.
2111         * nscd/gethstbynm2_r.c: Remove.
2112         * nscd/gethstbynm3_r.c: New file.
2113         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
2114         __gethostbyaddr_r.
2115         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
2116         __gethostbyaddr_r compatibility wrapper.
2117         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
2118         determining timeout of entry.
2119         (lookup): Take new parameter and pass it to __gethostbyname3_r and
2120         __gethostbyaddr2_r.
2121         (addhstbyX): Pass reference to variable for TTL to lookup and
2122         cache_addhst.
2123         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
2124         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
2125         and __nss_next2.  Remove __nss_services_lookup.
2126         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
2127         Add compat wrapper.
2128         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
2129         __nss_next2.
2130         * nss/getXXent_r.c: Likewise.
2131         * nss/getnssent_r.c: Likewise.
2132         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
2133         does not exist in module, try the optional second name.
2134         (__nss_next2): New function.
2135         (__nss_next): Now wrapper around __nss_next2.
2136         * nss/nsswitch.h: Adjust __nss_lookup prototype.
2137         Declare __nss_next2.
2138         Adjust definition of db_lookup_function type.
2139         * nss/service-lookup.c: Define NO_COMPAT.
2140         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
2141         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
2142         * inet/ether_ntoh.c: Likewise.
2143         * sunrpc/netname.c: Likewise.
2144         * sunrpc/publickey.c: Likewise.
2145         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
2146         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
2147         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
2148         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
2149         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
2151         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
2153         * inet/getnetgrent.c (setup): Encrypt static pointer.
2155 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
2157         [BZ #5204]
2158         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
2159         * crypt/sha512c-test.c: Likewise.
2161         [BZ #5225]
2162         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
2163         to keep track of end of %[ format string element.
2164         * stdio-common/Makefile (tests): Add bug20.
2165         * stdio-common/bug20.c: New file.
2167         [BZ #5222]
2168         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
2169         path elements in counting mode.
2171 2007-10-27  Andreas Jaeger  <aj@suse.de>
2173         [BZ #5040]
2174         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
2176         [BZ #3112]
2177         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
2178         (__cleanup): Free shared library when exiting.
2179         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
2180         (__cleanup): Free shared library when exiting.
2182 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
2184         [BZ #2549]
2185         * math/libm-test.inc (check_float_internal): Support
2186         denormalized return.
2188 2007-10-23  Andreas Jaeger  <aj@suse.de>
2190         [BZ #5208]
2191         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
2192         __LONG_LONG_PAIR to handle little endian byte order.
2193         Suggested by abhishekrai@google.com
2195 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
2197         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
2199 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
2201         * nscd/cache.c (prune_cache): Move test for modified file outside
2202         of locking.
2204 2007-10-21  Andreas Jaeger  <aj@suse.de>
2206         * manual/texinfo.tex: Update to latest version.
2208         * manual/sysinfo.texi (System Parameters): Fix Formatting.
2210         * manual/arith.texi (Status bit operations): Fix formatting.
2212         * manual/errno.texi (Error Messages): Fix formatting.
2214         * manual/sysinfo.texi (System Parameters): Fix formatting.
2216         * manual/libc.texinfo: Update VERSION and UPDATED.
2218 2007-10-19  Roland McGrath  <roland@redhat.com>
2220         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
2222 2007-10-06  David S. Miller  <davem@davemloft.net>
2224         * configure.in: Add sparcv9v2 and sparc64v2.
2225         * scripts/config.sub: Likewise.
2226         * configure: Regenerate.
2227         * elf/elf.h (HWCAP_SPARC_N2): New.
2228         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
2229         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
2230         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
2231         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
2232         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
2233         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
2234         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
2236 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
2238         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
2239         even if the poll result indicates there is data to read.
2240         Patch by Jeff Moyer <jmoyer@redhat.com>.
2242 2007-10-18  Roland McGrath  <roland@redhat.com>
2244         * elf/elf.h (NT_PPC_VMX): New macro.
2246 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
2248         * version.h (VERSION): Set to 2.7.90.
2250 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
2252         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
2253         weak_alias.
2255 2007-10-17  Roland McGrath  <roland@frob.com>
2257         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
2258         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
2260 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
2262         * version.h (VERSION): Bump to 2.7.
2263         * include/features.h (__GLIBC_MINOR__): Bump to 7.
2265         [BZ #5186]
2266         * time/tzset.c (__tz_convert): Don't force testing for a change of
2267         TZ if not called from localtime.  But then also see whether the
2268         file changed, in case __use_tzfile is set.
2270         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
2271         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2272         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2273         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2274         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2275         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2276         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
2277         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
2279 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
2281         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
2282         and admin selects to be able to replace the gai.conf file, lock
2283         data structures around the qsort call.
2285 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
2287         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
2288         new memset.
2289         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
2290         too high for the improvements.  Implement bzero unconditionally for
2291         use in libc.
2293 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
2294             Jakub Jelinek  <jakub@redhat.com>
2296         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
2297         even when time_t is 32-bit.
2298         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
2299         timezone data read by __tzfile_default.  Ensure __tzname[0] is
2300         always set after the search.
2302 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
2304         * time/tzfile.c (__tzfile_read): Help the compiler recognize
2305         unreachable code on 32-bit machines.
2307 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
2309         [BZ #5184]
2310         * time/strftime_l.c: Include stdbool.h.
2311         (my_strftime): New wrapper, old function renamed to...
2312         (__strftime_internal): ... new function.  Add tzset_called
2313         argument, pass it down to recursive calls, don't call tzset ()
2314         if already true, set to true after call to tzset ().
2316 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
2318         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
2319         into account when copying TZ string.
2321 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
2323         * time/tzfile.c (__tzfile_compute): For use_last case set i to
2324         num_transition rather than num_transitions - 1.
2326 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
2328         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
2329         PIC indirect jump.
2331         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
2332         a local label rather than HIDDEN_JUMPTARGET.
2334 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
2336         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
2337         (init_cacheinfo): Initialize it.
2338         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
2339         Always define bzero.
2340         Remove non-glibc code.
2341         * sysdeps/x86_64/bzero.S: Make an empty file.
2343 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
2345         * sysdeps/x86_64/cacheinfo.c
2346         (__x86_64_preferred_memory_instruction): New.
2347         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
2349         * sysdeps/x86_64/memset.S: Rewrite.
2351 2007-10-15  Roland McGrath  <roland@redhat.com>
2353         * po/libc.pot: Regenerated.
2355 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
2357         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
2358         pointers.
2360         [BZ #3425]
2361         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
2362         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
2363         address record to T_A/T_AAAA requests.
2365 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
2367         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
2369         * posix/glob.c: Add some branch prediction throughout.
2371         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
2372         read from nscd.
2374         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
2375         service_order.
2376         (rfc3484_sort): Make sure that even if qsort doesn't support
2377         stable sorting out sorting here is stable by comparing service_order.
2378         (getaddrinfo): Initialize service_order.
2379         * posix/tst-rfc3484.c (do_test): Adjust for addition of
2380         service_order field to sorting structure.
2381         * posix/tst-rfc3484-2.c (do_test): Likewise.
2383         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
2384         * time/tzset.c (tzset_internal): Break TZ string parsing out into
2385         __tzset_parse_tz and updating of daylight, timezone, tzname into
2386         update_vars.
2387         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
2388         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
2389         happens in __tz_compute.
2390         * time/tzfile.c (__tzfile_read): Also read TZ string.
2391         (find_transition): Fold into __tzfile_compute.
2392         (__tzfile_compute): For times beyond the last transition try to
2393         use the TZ string.
2394         * timezone/tst-timezone.c: Information in daylight and tzname does
2395         change for Asia/Tokyo timezone with more concrete information.
2396         Remove the test.
2398         * include/stdio.h: Add libc_hidden_proto for ftello.
2399         * libio/ftello.c: Add libc_hidden_def.
2401         [BZ #1140]
2402         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
2403         on the specified time and not the last entries in the file.  Move
2404         code to determine tzname[] to...
2405         (find_transition): ...here.  Add ugly guess for times before the
2406         first transition.
2408 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
2410         [BZ #3195]
2411         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
2412         no entry.
2413         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
2414         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
2415         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2416         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2418         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
2419         read mechanism when there are no group members and avoid no-op
2420         read syscall in this case.
2422         [BZ #3242]
2423         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
2424         (__readall): If reading failed due to EAGAIN error wait a bit
2425         and possibly try again.
2426         (__readvall): Likewise.
2428 2007-10-13  Bruno Haible  <bruno@clisp.org>
2430         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
2431         when we cannot recode the message.
2433 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
2435         [BZ #4359]
2436         * libio/__freading.c (__freading): Don't return true for
2437         write-only streams.  For read/write streams, check whether we
2438         performed a read operation already.
2439         * libio/Makefile (tests): Add tst-ext2.
2440         * libio/tst-ext2.c: New file.
2442 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
2444         * locale/programs/repertoire.c (repertoire_read): Always free
2445         memory for repertoire file name [Coverity CID 270].
2447         * elf/cache.c (save_aux_cache): Free memory allocated for
2448         temporary file name [Coverity CID 267].
2450 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
2452         * misc/Makefile (headers): Add bits/error.h.
2454 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
2456         * posix/fnmatch_loop.c: Take rule index returned as part of
2457         findidx return value into account when accessing weights.
2458         * posix/regcomp.c: Likewise.
2459         * posix/regexec.c: Likewise.
2461         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
2462         (skip_to): Fix problems with parameter of elifdef/elifndef.
2464 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
2466         * iconv/gconv_simple.c: Add some branch prediction.
2468 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
2470         * locale/programs/ld-collate.c (collate_read): If ignore_content
2471         and nowtok is tok_define, eat any tok_eol tokens.
2473 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
2475         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
2476         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
2478         * inet/netinet/in.h: Don't include bits/socket.h.
2479         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
2480         macro.
2481         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
2483 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
2485         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
2486         and tok_elifndef.
2487         * locale/programs/locfile-kw.gperf: Likewise.
2488         * locale/programs/ld-collate.c: Implement primitive preprocessor.
2490 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
2492         * stdio-common/printf-parse.h: Include string.h and wchar.h.
2493         (__find_specwc): Change into __extern_always_inline function.
2494         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
2495         (__parse_one_specmb): Remove ps argument.
2496         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
2497         Adjust __find_specmb and __parse_one_specmb callers.
2498         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
2499         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
2500         Removed.
2501         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
2502         caller.
2504 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
2506         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
2507         with some Pentium Ds.
2509 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
2511         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
2512         __read not read.
2513         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
2514         __write not write.
2516 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
2518         [BZ #181]
2519         * locale/C-time.c: Set week_1stday data to 19971201.
2520         * locale/programs/ld-time.c (time_finish): Default for
2521         first_workday is Monday.
2523         [BZ #2633]
2524         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
2526         [BZ #5103]
2527         * posix/glob.c (glob): Recognize patterns starting \/.
2528         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
2529         (main): Add test for pattern starting \/.
2531         * misc/error.h: Use __const instead of const.
2532         * misc/bits/error.h: Likewise.
2534 2007-10-07  Andreas Jaeger  <aj@suse.de>
2536         * include/bits/error.h: New file.
2538         * misc/bits/error.h (error_at_line): Fix prototype.
2540 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
2542         [BZ #3924]
2543         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
2544         more little bugs in creating the stack frame when pltexit has to
2545         be called.
2547         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
2548         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
2550         [BZ #4407]
2551         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
2552         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
2553         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2554         * math/libm-test.inc: Add test for this case.
2556         [BZ #5010]
2557         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
2558         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
2559         map service succeeded.
2560         (svc_is_mapped): New function.
2561         (svc_unregister): Use it before trying to unmap service.
2563 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
2565         * timezone/zic.c: Update from tzcode2007h.
2567         [BZ #5063]
2568         * timezone/africa: Update from tzdata2007h.
2569         * timezone/antarctica: Likewise.
2570         * timezone/asia: Likewise.
2571         * timezone/australasia: Likewise.
2572         * timezone/europe: Likewise.
2573         * timezone/leapseconds: Likewise.
2574         * timezone/northamerica: Likewise.
2575         * timezone/southamerica: Likewise.
2576         * timzeone/zone.tab: Likewise.
2578         [BZ #5104]
2579         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
2581         [BZ #5113]
2582         * string/bits/string2.h (__strdup): Cast parameters to calloc to
2583         avoid warning with -Wconversion.
2584         (__strndup): Likewise.
2585         Half the patch by Christian Iseli <christian.iseli@licr.org>.
2587         [BZ #5112]
2588         * nscd/connections.c (restart): Don't resync if database is
2589         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
2591         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
2592         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
2594         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
2595         evetnfd_read, eventfd_write.
2596         * sysdeps/unix/sysv/linux/eventfd.c: New file.
2597         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
2598         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
2599         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
2600         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
2601         eventfd_write for GLIBC_2.7.
2603         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
2604         * sysdeps/unix/sysv/linux/signalfd.c: New file.
2605         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
2606         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
2608 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
2610         * stdlib/msort.c: Include stdint.h.
2611         (struct msort_param): New type.
2612         (msort_with_tmp): Use struct msort_param pointer for unchanging
2613         parameters.  Add optimized handling for several common sizes
2614         and indirect sorting mode.
2615         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
2616         sorting.
2617         Suggested by Belazougui Djamel .
2619         * stdlib/Makefile (tests): Add tst-qsort2.
2620         * stdlib/tst-qsort2.c: New test.
2622 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
2624         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
2625         for dup2 in case another thread races with the current one.  Retry
2626         in this case.
2628         * misc/error.h: Remove support for use outside of libc.  We have to
2629         include <features.h> now.  Include <bits/error.h> if possible.
2630         * misc/bits/error.h: New file.
2632 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
2634         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
2635         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
2636         __extern_always_inline functions unconditionally, drop macros.
2638         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
2639         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
2640         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
2642         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
2643         add __artificial__ attribute.
2645 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
2647         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
2648         backward to forward direction.
2650         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
2652         [BZ #645]
2653         * locale/programs/ld-collate.c (collate_finish): Compare against last
2654         used section which is known to have rules defined.
2655         (collate_read): After order_start, correctly record order of sections
2656         and queue sections up.
2658 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
2660         [BZ #5071]
2661         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
2662         the same number of pages.
2663         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
2665         * locale/programs/ld-collate.c (collate_read): After initial copy
2666         statement, continue in state 0.
2668         * include/stdio_ext.h (__fsetlocking): Define as macro.
2670 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
2672         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
2673         of section order.
2675         * po/pt_BR.po: Fix typo.
2677 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
2679         * iconvdata/Makefile (modules): Add ISO8859-9E.
2680         (distribute): Add iso8859-9e.c.
2681         (gen-8bit-gap-modules): Add iso8859-9e.
2682         * iconvdata/iso8859-9e.c: New file.
2683         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
2684         * iconvdata/TESTS: Likewise.
2685         * iconvdata/tst-tables.sh: Likewise.
2687         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
2689         * locale/iso-639.def: Add several new entries.
2691 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
2693         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
2694         void * pointers instead of struct link_map **.
2695         (_dl_scope_free): Change argument type to void *.
2696         * include/link.h (struct link_map): Change type of l_reldeps
2697         to struct link_map_reldeps, move l_reldepsact into that
2698         struct too.
2699         * elf/dl-deps.c: Include atomic.h.
2700         (_dl_map_object_deps): Only change l->l_initfini when it is
2701         fully populated, use _dl_scope_free for freeing it.  Optimize
2702         removal of libs from reldeps by using l_reserved flag, when
2703         some removal is needed, allocate a new list instead of
2704         reallocating and free the old with _dl_scope_free.  Adjust
2705         for l_reldeps and l_reldepsact changes.
2706         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
2707         searching in l_initfini and l_reldeps without holding dl_load_lock.
2708         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
2709         l_reldepsact changes.
2710         * elf/dl-close.c (_dl_close_worker): Likewise.
2711         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
2713 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
2715         * iconvdata/Makefile (modules): Add KOI8-RU.
2716         (distribute): Add koi8-ru.c.
2717         (gen-8bit-gap-modules): Add koi8-ru.
2718         * iconvdata/koi8-ru.c: New file.
2719         * iconvdata/gconv-modules: Add entries for KOI8-RU.
2720         * iconvdata/TESTS: Likewise.
2721         * iconvdata/tst-tables.sh: Likewise.
2723         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
2725 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
2727         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
2728         with __warning__/__error__ attributes.
2729         (__warnattr): Define.
2730         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
2731         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
2732         __warnattr.
2733         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
2734         of __*_chk if compile time detectable overflow is found.
2735         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
2736         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
2737         with __warnattr.
2738         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
2739         instead of __*_chk if compile time detectable overflow is found.
2740         (__gets_alias): Rename to...
2741         (__gets_warn): ... this.  Add __warnattr.
2742         (gets): Call __gets_warn instead of __gets_alias.
2743         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
2744         aliases with __warnattr.
2745         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
2746         time detectable overflow is found.
2747         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
2748         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
2749         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
2750         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
2751         __getdomainname_chk_warn): New aliases with __warnattr.
2752         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
2753         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
2754         __*_chk_warn instead of __*_chk if compile time detectable overflow
2755         is found.
2756         (__getgroups_chk): Rename argument to __listlen from listlen.
2757         (__getwd_alias): Rename to...
2758         (__getwd_warn): ... this.  Add __warnattr.
2759         (getwd): Call __getwd_warn instead of __getwd_alias.
2760         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
2761         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
2762         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
2763         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
2764         __wcsnrtombs_chk_warn): New aliases with __warnattr.
2765         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
2766         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
2767         compile time detectable overflow is found.
2768         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
2769         to use __*_chk or not.
2770         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
2771         in comparisons which function should be called and in __*_chk*
2772         arguments.  Call __*_chk_warn instead of __*_chk if compile time
2773         detectable overflow is found.
2774         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
2775         __*_chk argument.
2776         * debug/tst-chk1.c (do_test): Add a few more tests.
2778 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
2780         [BZ #5058]
2781         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
2782         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
2783         (_nl_unload_domain): Finalize conversions_lock.
2784         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
2785         handling table of known conversions.
2787 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
2789         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
2790         close_not_cancel_no_status instead of close.
2792 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
2794         [BZ #5028]
2795         * posix/regcomp.c (lookup_collation_sequence_value): Check that
2796         nrules != 0 for multibyte chars.
2798 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
2800         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
2801         Provide better error message in case the type is unknown.
2803         [BZ #4963]
2804         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
2805         * string/stratcliff.c: Make usable to test wide char functions.
2806         * wcsmbs/wcsatcliff.c: New file.
2807         * wcsmbs/Makefiel (tests): Add wcsatcliff.
2809         [BZ #4972]
2810         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
2811         (distribute): Add mac-centraleurope.c.
2812         (gen-8bit-gap-modules): Add mac-centraleurope.
2813         * iconvdata/mac-centraleurope.c: New file.
2814         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
2815         * iconvdata/TESTS: Likewise.
2816         * iconvdata/tst-tables.sh: Likewise.
2818         [BZ #5043]
2819         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
2821 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
2823         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
2824         from __x86_64_core_cache_size_half.
2825         (init_cacheinfo): Compute shared cache size for AMD processors with
2826         shared L3 correctly.
2827         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
2828         name change.
2829         Patch in large parts by Evandro Menezes.
2831 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
2833         * elf/dl-lookup.c (add_dependency): Handle failing memory
2834         allocation for dependency list.  Remove unnecessary check.
2836         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
2837         open/close when determining source addresses.
2839         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
2840         sha512-crypt, and sha512.
2841         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
2842         (distribute): Add sha256.h and sha512.h.
2843         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
2844         and call the appropriate code.
2845         * crypt/sha256-crypt.c: New file.
2846         * crypt/sha256.c: New file.
2847         * crypt/sha256.h: New file.
2848         * crypt/sha256c-test.c: New file.
2849         * crypt/sha256test.c: New file.
2850         * crypt/sha512-crypt.c: New file.
2851         * crypt/sha512.c: New file.
2852         * crypt/sha512.h: New file.
2853         * crypt/sha512c-test.c: New file.
2854         * crypt/sha512test.c: New file.
2856 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
2858         * misc/bits/syslog.h (syslog): Remove extraneous argument from
2859         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
2860         __syslog_chk.
2862 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
2864         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
2865         %as in fscanf format strings.
2867         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
2868         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
2869         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
2870         Likewise.
2871         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
2872         Likewise.
2874         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
2875         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
2876         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
2877         * elf/dl-sym.c (do_sym): Likewise.
2878         * include/link.h (struct link_map): Add l_serial field.
2879         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
2880         * elf/dl-lookup.c (add_dependency): Add flags argument.
2881         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
2882         flags, use THREAD_GSCOPE_RESET_FLAG before and
2883         THREAD_GSCOPE_SET_FLAG after
2884         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
2885         Don't dereference map until it has been found on some list.
2886         If map->l_serial changed, return -1.
2888 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
2890         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
2891         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
2892         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
2893         libc_hidden_proto.
2894         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
2895         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
2896         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
2897         add libc_hidden_proto.
2898         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
2899         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
2900         conformance requested.
2901         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
2902         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
2903         conformance requested.
2904         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
2905         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
2906         conformance requested.
2907         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
2908         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
2909         ISO C99 or POSIX conformance requested.
2910         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
2911         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
2912         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
2913         and __isoc99_vsscanf@@GLIBC_2.7.
2914         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
2915         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
2916         (tests): Add scanf14.
2917         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
2918         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
2919         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
2920         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
2921         CFLAGS-isoc99_scanf.c): Add $(exceptions).
2922         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
2923         from using internal headers.
2924         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
2925         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
2926         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
2927         and __isoc99_vswscanf@@GLIBC_2.7.
2928         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
2929         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
2930         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
2931         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
2932         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
2933         * stdio-common/isoc99_scanf.c: New file.
2934         * stdio-common/isoc99_vsscanf.c: New file.
2935         * stdio-common/isoc99_vscanf.c: New file.
2936         * stdio-common/isoc99_vfscanf.c: New file.
2937         * stdio-common/isoc99_fscanf.c: New file.
2938         * stdio-common/isoc99_sscanf.c: New file.
2939         * wcsmbs/isoc99_fwscanf.c: New file.
2940         * wcsmbs/isoc99_vswscanf.c: New file.
2941         * wcsmbs/isoc99_swscanf.c: New file.
2942         * wcsmbs/isoc99_wscanf.c: New file.
2943         * wcsmbs/isoc99_vwscanf.c: New file.
2944         * wcsmbs/isoc99_vfwscanf.c: New file.
2945         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
2946         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
2947         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
2948         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
2949         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
2950         * stdio-common/scanf14.c: New test.
2951         * stdio-common/scanf15.c: New test.
2952         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
2953         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
2954         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
2955         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
2956         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
2957         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
2958         __nldbl___isoc99_scanf@@GLIBC_2.7,
2959         __nldbl___isoc99_fscanf@@GLIBC_2.7,
2960         __nldbl___isoc99_sscanf@@GLIBC_2.7,
2961         __nldbl___isoc99_vscanf@@GLIBC_2.7,
2962         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
2963         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
2964         __nldbl___isoc99_wscanf@@GLIBC_2.7,
2965         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
2966         __nldbl___isoc99_swscanf@@GLIBC_2.7,
2967         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
2968         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
2969         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
2970         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
2971         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
2972         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
2973         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
2974         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
2975         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
2976         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
2977         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
2978         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
2979         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
2980         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
2981         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
2982         functions.
2983         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
2984         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
2985         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
2986         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
2987         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
2988         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
2989         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
2990         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
2991         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
2992         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
2993         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
2994         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
2996         * stdio-common/Makefile (tests): Add scanf13.
2997         (scanf13-ENV): New.
2998         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
2999         m modifier followed by l.
3000         (STRING_ARG): Add width argument.
3001         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
3002         <case L_('C')>: Handle %mlc and %mC.
3003         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
3004         arguments.
3005         * stdio-common/scanf13.c: New test.
3007         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
3008         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
3010 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
3012         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
3013         type and __THROW marker of splice, vmsplice, and tee.
3014         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3015         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3016         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3017         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3018         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3019         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
3020         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
3021         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
3022         as cancellation points.
3024 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
3026         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
3027         parse more than three parts of the version number.
3029 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
3031         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
3032         modifier.  Patch by Jakub Jelinek.
3034 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
3036         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
3037         call_fallocate in misc subdir.
3038         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
3039         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
3040         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
3041         instead of __fallocate64.
3042         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
3044 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
3046         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
3047         * rt/Makefile (headers): Add bits/mqueue2.h.
3048         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
3049         optimizing with GCC and __va_arg_pack_len is defined.
3050         * rt/bits/mqueue2.h: New file.
3051         * rt/mq_open.c (__mq_open): Renamed from mq_open.
3052         (mq_open): New strong_alias.
3053         (__mq_open_2): New function.
3054         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
3055         (mq_open): New strong_alias.
3056         (__mq_open_2): New function.
3057         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
3058         * Versions.def (librt): Add GLIBC_2.7 version.
3059         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
3060         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
3062         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
3063         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
3064         is defined rather than when not C++.
3065         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
3066         __openat64_alias): New redirects.
3067         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
3068         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
3069         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
3070         (open, open64, openat, openat64): Rewrite as __extern_always_inline
3071         functions instead of function-like macros.
3073 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3075         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
3076         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
3077         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
3079 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
3081         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
3082         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
3084 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
3086         * inet/tst-network.c: Increment ERRORS for failing tests.
3088 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
3090         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
3091         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
3092         implement as __extern_always_inline function.
3093         (vsyslog): Define as __extern_always_inline function unconditionally.
3094         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
3095         When __va_arg_pack is defined, implement as __extern_always_inline
3096         functions.
3097         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
3098         __extern_always_inline functions unconditionally.
3099         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
3100         bits/stdio2.h will be included.
3101         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
3102         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
3103         implement as __extern_always_inline functions.
3104         (vswprintf, vwprintf, vfwprintf): Define as
3105         __extern_always_inline functions unconditionally.
3106         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
3108 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
3110         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
3111         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
3112         attribute.
3113         * include/features.h (__USE_EXTERN_INLINES): Define only when
3114         __extern_inline is defined.
3115         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
3116         is defined instead of when not __cplusplus.
3117         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
3118         is defined instead of when not __cplusplus.
3119         * socket/sys/socket.h: Include bits/socket2.h when
3120         __extern_always_inline is defined instead of when not __cplusplus.
3121         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
3122         is defined instead of when not __cplusplus.
3123         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
3124         is defined instead of when not __cplusplus.
3125         * string/string.h: Include bits/string3.h when __extern_always_inline
3126         is defined instead of when not __cplusplus.
3127         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
3128         is defined instead of when not __cplusplus.
3129         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
3130         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
3131         is not defined.
3132         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
3133         defined __extern_always_inline instead of !defined __cplusplus.
3134         * libio/bits/stdio-ldbl.h: Likewise.
3135         * wcsmbs/bits/wchar-ldbl.h: Likewise.
3136         * misc/bits/syslog.h (syslog): Don't define for C++.
3137         (vsyslog): Use __extern_always_inline function for C++ instead of
3138         a macro.
3139         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
3140         whenever that macro is defined.
3141         (vprintf): Don't provide the inline for C++.
3142         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
3143         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
3144         define the macros for C++.
3145         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
3146         __extern_always_inline functions for C++.
3147         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
3148         stat64, lstat64, fstat64, fstatat64): Don't define if not
3149         __USE_EXTERN_INLINES.
3150         * wcsmbs/bits/wchar2.h: Fix #error message.
3151         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
3152         (vswprintf, vwprintf, vfwprintf): Define using
3153         __extern_always_inline functions for C++.
3154         * string/bits/string3.h: Don't #undef macros if __cplusplus.
3155         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
3156         strncpy, strcat, strncat): Define as __extern_always_inline
3157         functions instead of macros for C++.
3158         * math/bits/cmathcalls.h: Guard __extern_inline routines with
3159         defined __extern_inline.
3160         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
3161         to __extern_inline whenever that macro is defined.
3162         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
3163         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
3164         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
3165         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
3166         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
3167         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
3168         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
3169         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
3170         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
3171         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
3172         prototypes.  Only provide __extern_inline routines if
3173         __USE_EXTERN_INLINES.
3174         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
3175         tests.
3176         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
3177         For now avoid some *printf tests in C++.  Skip all testing
3178         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
3179         is not.
3180         * debug/tst-chk4.cc: New file.
3181         * debug/tst-chk5.cc: New file.
3182         * debug/tst-chk6.cc: New file.
3183         * debug/tst-lfschk4.cc: New file.
3184         * debug/tst-lfschk5.cc: New file.
3185         * debug/tst-lfschk6.cc: New file.
3186         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
3187         prototypes in C++.
3188         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
3189         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
3190         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
3192 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
3194         * po/cs.po: Update from translation team.
3196 2007-09-11  Roland McGrath  <roland@redhat.com>
3198         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
3199         compiling.
3201 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3203         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
3205 2007-09-05  Roland McGrath  <roland@redhat.com>
3207         * manual/signal.texi (Signaling Another Process): Typo fix.
3208         From Karl Berry <karl@freefriends.org>.
3210 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
3212         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
3213         zero if not defined.
3214         (make_request): Recognize optimistic addresses and treat them like
3215         deprecated addresses.
3216         Reported by Neil Horman <nhorman@redhat.com>.
3218 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
3220         * nscd/connections.c (send_ro_fd): Also transfer file size.
3221         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
3222         file size don't call fstat.
3224         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
3225         ahead and map the file.  This should always be correct and we can
3226         catch problems later.
3228 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
3230         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
3231         prototypes.
3232         (__fread_alias, __fread_unlocked_alias): New aliases.
3233         (fread): New extern inline.
3234         (fread_unlocked): Likewise.  Undef macro before definition of
3235         the inline function.
3236         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
3237         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
3238         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
3239         and __fread_unlocked_chk@@GLIBC_2.7.
3240         * debug/fread_chk.c: New file.
3241         * debug/fread_u_chk.c: New file.
3242         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
3244 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
3246         * sysdeps/unix/sysv/linux/syscalls.list
3247         (personality): Change caller to EXTRA.
3249 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
3251         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
3252         to keep gcc quiet.
3253         * iconvdata/iso-2022-cn.c (BODY): Likewise.
3255         * locale/programs/ld-collate.c (collate_output): Avoid warning if
3256         NDEBUG is defined.
3258         * Makerules: Use -p option with mkdir.
3260         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
3261         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
3262         (_xdr_directory_obj): Likewise.
3263         (xdr_entry_obj): Likewise.
3264         (xdr_group_obj): Likewise.
3265         (xdr_link_obj): Likewise.
3266         (xdr_table_obj): Likewise.
3267         (_xdr_nis_result): Likewise.
3268         (_xdr_ns_request): Likewise.
3269         (_xdr_ib_request): Likewise.
3270         (_xdr_nis_taglist): Likewise.
3271         (xdr_cback_data): Likewise.
3272         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
3273         (xdr_ypresp_maplist): Likewise.
3275         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
3277         * posix/regex_internal.h: Prevent some declarations and definitions
3278         to be seen when used in tests.
3280         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
3281         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
3283         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
3285         * config.make.in (datarootdir): Add to shut up configure.
3287         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
3288         associativity for fully-associative caches.
3290         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
3291         requests.  Fill on more associativity values for L2.
3292         Patch mostly by Evandro Menezes.
3294 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
3296         * sysdeps/unix/sysv/linux/x86_64/init-first.c
3297         (_libc_vdso_platform_setup): Avoid using exported variable by using
3298         alias.
3300         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
3302         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
3303         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
3304         defined.
3306 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
3308         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
3309         align stack for call if pltexit is to be used.
3311         [BZ #3924]
3312         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
3313         align for function call in case pltexit has to be called later.
3315         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
3316         implicit atomic operation when storing function pointer.
3317         (_dl_runtime_profile): Likewise.
3319 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
3321         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
3322         NIS_NOTFOUND.
3324 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
3326         [BZ #4566]
3327         * string/strtok.c: Fix typo in comment.
3329         [BZ #4582]
3330         * debug/segfault.c: Fix typos in comments.
3332         [BZ #4588]
3333         * stdio-common/tempnam.c: Fix comment, it is not checked that
3334         TMPDIR points to a writable directory.
3336         [BZ #4726]
3337         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
3338         memory allocated for the name server address.
3340         [BZ #4946]
3341         * nscd/connections.c (handle_request): Using sendfile always
3342         requires that mmap is used for the database.
3343         Patch by Petr Baudis <pasky@suse.cz>.
3345         [BZ #4905]
3346         * nscd/hstcache.c (cache_addhst): When reloading an entry which
3347         suddenly has two or more addresses, ignore it and remove the old
3348         entry.
3350         [BZ #4814]
3351         * resolv/res_hconf.c: Prepare for compiling outside libc.
3352         * nscd/res_hconf.c: New file.
3353         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
3354         the new file.
3355         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
3356         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
3358         * nscd/hstcache.c (cache_addhst): Minimal optimization.
3360         [BZ #4925]
3361         * debug/pcprofiledump.c: Turn on internationalization by calling
3362         setlocale.  Patch mostly by Benno Schulenberg.
3364         [BZ #4936]
3365         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
3366         the state.
3367         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
3368         * iconvdata/bug-iconv5.c: New file.
3370 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
3372         [BZ #4896]
3373         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
3374         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
3375         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
3376         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
3377         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
3378         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
3379         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
3380         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
3382 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
3384         [BZ #4937]
3385         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
3386         lookup loop.  Suggested by John Reiser.
3388 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
3390         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
3392 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
3394         * csu/libc-start.c: Don't handle VDSO_SETUP here.
3395         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
3396         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
3397         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
3398         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
3399         to...
3400         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
3402 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
3404         * po/nl.po: Update from translation team.
3406 2007-08-16  Andreas Jaeger  <aj@suse.de>
3408         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
3409         Reported by Peter Festner <peter.festner@ewetel.net>.
3411 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
3413         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
3415 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
3417         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
3418         to check for undefined symbols.
3420         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
3421         If the syscall fails, set errno to the actual returned error number
3422         rather than EINVAL.
3423         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
3424         arguments are incorrect, set errno to EINVAL, if the syscall
3425         fails, set errno to the actual returned error number.
3427         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
3428         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
3430         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
3431         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
3432         file.
3433         (ASI_PNF, ASI_BLK_P): Don't define.
3434         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
3435         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
3436         file.
3437         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
3438         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
3439         file.
3441 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
3443         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
3444         FE_UNDERFLOW on Niagara CPUs.
3446         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
3447         exceptions.
3449 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
3451         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
3452         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
3453         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
3454         flush should be used or not inside of the function.
3455         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
3457         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
3458         __thread_start): Use HIDDEN_JUMPTARGET.
3459         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
3460         __thread_start): Likewise.
3461         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
3463         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
3464         Add libc_hidden_proto.
3465         (STRTOF): Add libc_hidden_proto.
3466         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
3467         (strtold_l, wcstold_l): Use them as second argument for
3468         long_double_symbol.
3470 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
3472         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
3474 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3476         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
3478 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
3480         * po/bg.po: New file.  From the translation team.
3482 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
3484         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
3485         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
3486         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
3487         when each feature was introduced.
3489         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
3490         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
3491         (CHECK_HASH): New macro.
3492         (PREPARE_VERSION): Use it.
3494         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
3495         prototype if not __ASSUME_PSELECT.
3496         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
3497         prototype if not __ASSUME_PPOLL.
3499         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
3501         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
3502         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
3503         is defined.
3505 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
3507         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
3508         (_libc_vdso_platform_setup): If vDSO is not available point
3509         __vdso_gettimeofday to the vsyscall.
3510         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
3511         __vdso_gettimeofday instead of vsyscall.
3513 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
3515         * nscd/servicescache.c: Include kernel-features.h.
3516         * nscd/gai.c: Likewise.
3517         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
3518         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
3519         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
3520         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
3521         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
3522         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
3523         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
3524         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
3525         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
3527 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
3529         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
3530         and _dl_get_origin defines anymore.
3532         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
3533         Build fix for systems which might lack POSIX timer support.
3535         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
3536         (_libc_vdso_platform_setup): Mangle function pointers before storing
3537         them.
3538         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
3539         Demangle vdso pointer before use.
3540         (INTERNAL_VSYSCALL): Likewise.
3542         * elf/cache.c (primes): Mark as const.
3543         Noted by Roland McGrath.
3545 2007-08-01  Andreas Jaeger  <aj@suse.de>
3546             Jakub Jelinek  <jakub@redhat.com>
3548         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
3549         (options): Add option.
3550         (parse_opt): Handle option.
3551         (manual_link): Adjust process_file caller.  Call implicit_soname.
3552         (search_dir): Formatting.  Use and populate auxiliary cache.
3553         (main): Load and save auxiliary cache.
3554         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
3555         stat64 from fstat64 to caller.
3556         (implicit_soname): New function.
3557         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
3558         leave *soname as NULL.
3559         * elf/cache.c: Include libgen.h.
3560         (print_entry, print_cache, compare, save_cache, add_to_cache):
3561         Formatting and cleanups.
3562         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
3563         aux_cache_file): New structures.
3564         (AUX_CACHEMAGIC): Define.
3565         (primes): New array.
3566         (aux_hash_size, aux_hash): New variables.
3567         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
3568         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
3569         load_aux_cache, save_aux_cache): New functions.
3570         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
3571         (init_aux_cache, search_aux_cache, add_to_aux_cache,
3572         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
3573         (process_file): Adjust prototype.
3575 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
3577         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
3578         with __need_size_t.
3580 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
3582         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
3583         r_found_version structure as second parameter.
3584         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
3585         (_dl_vdso_vsym): Change type of second parameter accordingly.
3586         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
3587         (_libc_vdso_platform_setup): Adjust.
3588         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
3589         (_libc_vdso_platform_setup): Likewise.
3591         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
3592         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
3593         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
3594         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
3595         * csu/libc-start.c: Pretty printing.
3596         Use VDSO_SETUP if defined.
3597         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
3598         and let generic code call into _libc_vdso_platform_setup.
3599         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
3600         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
3601         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
3602         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
3603         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
3604         for GLIBC_PRIVATE.
3605         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
3606         (sysdep_rountines): Add dl-vdso.
3608         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
3609         of routines.
3611         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
3612         attribute_hidden to __vdso_gettimeofday prototype.
3614 2007-08-12  Roland McGrath  <roland@redhat.com>
3616         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
3617         From: Karl Berry <karl@freefriends.org>.
3619 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
3621         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
3622         an atime update for the files we read.
3624 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
3626         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
3628         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
3629         instead of mkstemp.
3631         * misc/Makefile (routines): Add mkostemp and mkostemp64.
3632         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
3633         * misc/mkostemp.c: New file.
3634         * misc/mkostemp64.c: New file.
3635         * stdlib/stdlib.h: Declare the new functions.
3636         * sysdeps/posix/tempname.c: Add new parameter which is added to
3637         the flags for open.  Remove __GT_BIGFILE handling.
3638         * stdio-common/tempname.c: Likewise.
3639         * include/stdio.h: Adjust __gen_tempname prototype.
3640         Renumber __GT_* constants.
3641         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
3642         * misc/mkdtemp.c: Likewise.
3643         * misc/mkstemp.c: Likewise.
3644         * misc/mkstemp64.c: Likewise.
3645         * misc/mktemp.c: Likewise.
3646         * stdio-common/tempnam.c: Likewise.
3647         * stdio-common/tmpfile.c: Likewise.
3648         * stdio-common/tmpfile64.c: Likewise.
3649         * stdio-common/tmpnam.c: Likewise.
3650         * stdio-common/tmpnam_r.c: Likewise.
3652 2007-08-10  Roland McGrath  <roland@frob.com>
3654         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
3655         New macros.
3656         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
3657         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
3659 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
3661         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
3662         possible.
3663         * nss/nss_files/files-alias.c (internal_setent): Likewise.
3664         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
3665         * nss/nss_files/files-have_o_cloexec.c: New file.
3667         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
3668         available.
3670 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
3672         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
3673         ___new_wcstold_l): New weak aliases.
3674         (strtold_l, wcstold_l): Use them as second argument for
3675         long_double_symbol.
3677 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
3679         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
3680         register in test for error.
3682         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
3683         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
3685         * po/sv.po: Update from translation team.
3687 2007-08-06  Roland McGrath  <roland@redhat.com>
3689         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
3690         Remove __strto*_l inlines.
3691         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
3692         * stdlib/strtod.c: Add libc_hidden_def.
3693         * stdlib/strtod_l.c: Likewise.
3694         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
3695         for __new_strtold and __new_wcstold.
3696         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
3697         __STRTOF, STRTOF.
3698         * stdlib/strtol.c: Add libc_hidden_def.
3699         * stdlib/strtol_l.c: Likewise.
3700         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
3701         strtoq.
3703         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
3705         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
3706         * scripts/data/localplt-generic.data: ... here.
3707         * elf/Makefile (check-data): Get generic file if no other.
3708         ($(objpfx)check-localplt.out): Make target unconditional.
3710         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
3711         Use ElfW(Nhdr).
3713 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
3715         * po/zh_CN.po: Updated translation from translation team.
3717 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
3719         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
3720         Don't use CGOTSETUP and CGOTRESTORE macros.
3722 2007-08-04  Roland McGrath  <roland@redhat.com>
3724         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
3726 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
3728         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
3729         __extension__ around the whole statement expression.
3731 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
3733         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
3734         elements during initialization.
3736         * po/pl.po: Updated translation from translation team.
3737         * po/tr.po: Likewise.
3738         * po/nl.po: Likewise.
3740 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
3742         * rt/aio.h: Add __nonnull attributes.
3744 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
3746         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
3747         * stdlib/Makefile (tests): Add tst-strtod5.
3748         (tst-strtod5-ENV): New.
3749         * stdlib/tst-strtod5.c: New file.
3751         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
3752         failed.
3753         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
3754         on failure.
3756         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
3757         allocated.
3759 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
3761         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
3762         numbers.
3764 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
3766         * io/Makefile (aux): Add have_o_cloexec.
3767         * include/fcntl.h: Declare __have_o_cloexec.
3768         * io/have_o_cloexec.c: New file.
3769         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
3770         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
3771         fcntl call if not necessary.
3772         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
3773         of local variable.
3775         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
3776         Avoid memset, add explicit initialization.
3777         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
3778         to the end and change into zero-sized array.
3779         Move lock member to fill a hole on 64-bit platforms.
3781         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
3782         inline functions.
3783         * include/stdlib.h: Add __strto*_internal prototypes here.
3784         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
3785         inline functions.
3786         * include/wchar.h: Add __wcsto*_internal prototypes.
3787         * sysdeps/generic/inttypes.h: No need to protect the declaration
3788         of the __strto*_internal and __wcsto*_internal members here.
3790         * rt/mqueue.h: Change const to __const and add nonnull attributes.
3792 2007-08-02  Roland McGrath  <roland@redhat.com>
3794         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
3795         $(inst_bindir)/getconf if possible.
3797         * posix/Makefile ($(objpfx)getconf.speclist): New target.
3798         (generated): Add it.
3799         ($(inst_libexecdir)/getconf): Use it.
3801 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
3803         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
3804         /proc is faster and sufficient.  /sys is still needed for
3805         __get_nprocs_conf.
3807 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
3809         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
3810         syscall as __fallocate64.
3811         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
3812         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
3814 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
3816         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
3817         value.
3819         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
3820         if off_t is different rank from size_t.
3822         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
3823         uw_frame_state_for): Avoid type punning warnings.
3824         * sysdeps/generic/unwind-dw2-fde-glibc.c
3825         (_Unwind_IteratePhdrCallback): Likewise.
3826         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
3827         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
3828         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
3829         pointers.
3831 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
3833         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
3834         total processors using sysfs.
3835         (__get_nprocs): Use sysfs to determine which processors are online.
3837 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
3839         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
3840         syscall arguments count.
3842         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
3844 2007-07-30  Roland McGrath  <roland@redhat.com>
3846         * manual/libc.texinfo: Update copyrights, formatting magic, and
3847         @dircategory.  From Karl Berry <karl@freefriends.org>.
3849 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
3851         [BZ #4860]
3852         * io/Makefile (headers): Add bits/fcntl2.h.
3854         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
3855         using gcc builtin.
3856         (__CPU_EQUAL_S): Likewise.
3858         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
3859         (tests): Add tst-cpuset.
3860         * posix/sched_cpualloc.c: New file.
3861         * posix/sched_cpufree.c: New file.
3862         * posix/tst-cpuset.c: New file.
3863         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
3864         GLIBC_2.7.
3865         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
3866         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
3867         macros.  Define CPU_*_S macros.
3869 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
3871         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
3872         entry.
3874         [BZ #4858]
3875         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
3876         #.0g and value rounded to 1.0.
3877         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
3879 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
3881         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
3882         for int_frac_digits and frac_digits.
3884         * login/logout.c (logout): Avoid aliasing violation.
3885         * login/logwtmp.c (logwtmp): Likewise.
3887         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
3889         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
3890         to avoid warning.
3891         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
3892         warning.
3893         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
3894         warning.
3895         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
3896         to avoid warnings.
3898         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
3899         void **.
3900         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
3902         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
3903         char * to avoid warning.
3904         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
3906         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
3908         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
3909         allocate_arrays): Cast second argument to charmap_find_symbol
3910         to char * to avoid warnings.
3912         * locale/programs/repertoire.c (repertoire_new_char): Change
3913         from_nr, to_nr and cnt to unsigned long, adjust printf format
3914         string.
3916         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
3917         Cast second argument to new_element to char * to avoid warnings.
3919         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
3921         * intl/gettextP.h (struct loaded_domain): Change plural to const
3922         struct expression *.
3923         * intl/plural-eval.c (plural_eval): Change first argument to
3924         const struct expression *.
3925         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
3926         argument to const struct expression **.
3927         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
3928         prototypes.
3929         * intl/loadmsgcat (_nl_unload_domain): Cast away const
3930         in call to __gettext_free_exp.
3932         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
3933         unitialized wstring/wpattern var warnings.
3935         * posix/runtests.c (struct a_test): Make data field const char *.
3937         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
3938         vars if not LDBL_MANT_DIG >= 106.
3940         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
3942         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
3943         __find_specmb to avoid warning.
3945         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
3947         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
3948         to avoid warnings.
3950         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
3951         initializer.
3953         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
3954         tv var when it will be actually used.
3956         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
3957         to avoid warnings.
3959         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
3960         char array resp. pointer.
3961         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
3962         char array.
3963         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
3964         to const unsigned char **.
3965         (ucs4_to_cns11643): Change second argument to unsigned char *.
3966         * iconvdata/euc-tw.c (BODY): Change endp type to
3967         const unsigned char *.
3968         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
3969         to unsigned char *.
3970         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
3971         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
3972         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
3973         types to unsigned char pointers/arrays instead of char.
3974         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
3975         to unsigned char *.
3976         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
3977         * iconvdata/jis0212.h: Include assert.h.
3978         (ucs4_to_jisx0212): Change second argument to unsigned char *.
3979         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
3980         of trying to handle that.
3981         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
3982         shut up a warning.
3983         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
3984         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
3985         two dimensional const unsigned char arrays.
3986         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
3987         Initialize endp to inptr to shut up a warning.
3989 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
3991         [BZ #4772]
3992         * time/strptime_l.c (__strptime_internal): Silently ignore
3993         strftime modifiers and field width in recursive calls.
3995         * include/time.h (enum ptime_locale_status): Remove.
3996         (__strptime_internal): Remove decided and era_cnt arguments,
3997         add statep argument.
3998         * time/strptime_l.c (__strptime_internal): Remove decided
3999         and era_cnt arguments, add statep argument.  Don't recompute
4000         any fields in recursive calls, only update caller's tm
4001         and state, if recursive call fails, don't change tm nor
4002         any state.
4003         (get_alt_number): Adjust.
4004         (recursive): Adjust caller.
4005         (strptime): Likewise.
4006         * time/strptime.c (strptime): Likewise.
4008 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
4010         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
4011         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
4012         if from and to charsets are the same.
4013         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
4014         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
4015         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
4017 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
4019         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
4020         Don't define wint_t when __need_mbstate_t unless it
4021         is necessary.
4022         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
4023         in the typedef if possible.
4024         * wctype/wctype.h (wint_t): Define by including
4025         wchar.h with __need_wint_t instead of including stddef.h
4026         with __need_wint_t and as fallback definining it ourselves.
4027         * iconv/gconv.h (__need_wint_t): Define before including
4028         wchar.h.
4029         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
4030         or _GLIBCPP_USE_WCHAR_T.
4031         (__need_wchar_t): Don't define
4032         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
4033         (__need_wint_t): Don't define before including stddef.h,
4034         define before including wchar.h only if _LIBC or
4035         _GLIBCPP_USE_WCHAR_T.
4036         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
4037         * sysdeps/mach/hurd/_G_config.h: Likewise.
4038         * sysdeps/generic/_G_config.h: Likewise.
4039         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
4040         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
4041         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
4042         if _LIBC or _GLIBCPP_USE_WCHAR_T.
4044 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
4046         * sysdeps/posix/posix_fallocate64.c: Undefine
4047         __posix_fallocate64_l64 before alias handling.
4048         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
4049         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
4050         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
4051         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
4053         * io/tst-posix_fallocate.c: Include <fcntl.h>.
4055 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
4057         * locale/programs/ld-collate.c (atwc): New variable.
4058         (add_to_tablewc): New toplevel function, moved from collate_output.
4059         (collate_output): Remove add_to_tablewc nested function.
4061         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
4062         (name_insert): New function.
4063         (write_output): Remove hash_table and hash_size vars and name_insert
4064         nested function.
4066 2007-07-24  Roland McGrath  <roland@redhat.com>
4068         * Makerules (install-others-programs-nosubdir): New target.
4069         (install-no-libc.a-nosubdir): Depend on it.
4071         * iconv/Makefile (install-others-programs): Set this instead of
4072         install-others.
4073         * login/Makefile (install-others-programs): Likewise.
4074         * posix/Makefile (install-others-programs): Likewise.
4076         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
4077         dependencies.
4079 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
4081         * io/Makefile (tests): Add tst-posix_fallocate.
4082         * io/tst-posix_fallocate.c: New file.
4084         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4085         __ASSUME_FALLOCATE.
4087 2007-07-22  Roland McGrath  <roland@frob.com>
4089         * hurd/getdport.c: Add missing copyright year update.
4091         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
4092         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
4094 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
4096         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
4098         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
4099         O_CLOEXEC is needed.
4100         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
4101         Avoid additional fcntl to set O_CLOEXEC if not needed.
4102         * nis/nss_compat/compat-initgroups.c: Likewise.
4103         * nis/nss_compat/compat-pwd.c: Likewise.
4104         * nis/nss_compat/compat-spwd.c: Likewise.
4106 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4108         [BZ #3665]
4109         * manual/errno.texi: Change ECANCELED value to 119.
4111         [BZ #4610]
4112         * mach/lock-intern.h: Include <sys/cdefs.h>.
4114         [BZ #4178]
4115         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
4116         reading A.
4118         [BZ #4126]
4119         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
4120         to __sigsuspend.
4122         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
4124 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
4126         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
4127         `__ASSEMBLER__'.
4128         * sysdeps/mach/hurd/i386/tls.h: Likewise.
4130 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
4132         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
4133         descriptor received from nscd.
4135         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
4137         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
4138         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
4139         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
4140         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
4141         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
4142         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
4144 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
4146         [BZ #4816]
4147         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
4149         [BZ #4813]
4150         * login/forkpty.c (forkpty): Close master and slave fds on
4151         fork failure.  Patch by
4152         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
4154 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
4156         * include/features.h (__USE_ISOC95): New define.
4157         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
4158         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
4159         for -std=iso9899:199409.
4160         * CONFORMANCE: Remove comments about unsupported AMD1.
4162 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
4164         * sysdeps/ia64/sched_cpucount.c: New file.
4165         * sysdeps/powerpc/sched_cpucount.c: New file.
4167         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
4168         __BEGIN_DECLS/__END_DECLS around the prototype.
4169         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
4170         pointer to const cpu_set_t.
4172         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
4173         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
4174         __need_size_t and include stddef.h.
4175         * sysvipc/sys/msg.h: Likewise.
4176         * posix/sched.h: Likewise.
4177         * hurd/hurd/signal.h (__need_size_t): Define.
4179         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
4180         neither does signal.h in pedantic ISO C namespaces.  stdio.h
4181         no longer defines wint_t or wchar_t.
4183         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
4184         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
4185         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
4186         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
4187         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
4188         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
4189         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
4190         * debug/printf_chk.c (__printf_chk): Likewise.
4191         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
4192         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
4194         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
4195         Define.
4197         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
4198         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
4200 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
4202         [BZ #4792]
4203         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
4204         * malloc/malloc.h (realloc): Likewise.
4206         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
4207         if one of proc_file_chain streams has that fileno.
4208         * stdio-common/Makefile (tests): Add tst-popen2.
4209         * stdio-common/tst-popen2.c: New test.
4211 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
4213         * elf/ldconfig.c: Allow GPLv2 or any later version.
4214         * elf/readlib.c: Likewise.
4215         * elf/chroot_canon.c: Likewise.
4216         * elf/cache.c: Likewise.
4217         * nscd/mem.c: Likewise.
4218         * nscd/getpwuid_r.c: Likewise.
4219         * nscd/grpcache.c: Likewise.
4220         * nscd/aicache.c: Likewise.
4221         * nscd/getsrvbynm_r.c: Likewise.
4222         * nscd/nscd.c: Likewise.
4223         * nscd/servicescache.c: Likewise.
4224         * nscd/getsrvbypt_r.c: Likewise.
4225         * nscd/initgrcache.c: Likewise.
4226         * nscd/gethstbyad_r.c: Likewise.
4227         * nscd/gethstbynm2_r.c: Likewise.
4228         * nscd/getgrnam_r.c: Likewise.
4229         * nscd/nscd_setup_thread.c: Likewise.
4230         * nscd/getpwnam_r.c: Likewise.
4231         * nscd/gai.c: Likewise.
4232         * nscd/connections.c: Likewise.
4233         * nscd/dbg_log.c: Likewise.
4234         * nscd/cache.c: Likewise.
4235         * nscd/hstcache.c: Likewise.
4236         * nscd/nscd_conf.c: Likewise.
4237         * nscd/getgrgid_r.c: Likewise.
4238         * nscd/pwdcache.c: Likewise.
4239         * catgets/gencat.c: Likewise.
4240         * locale/programs/linereader.h: Likewise.
4241         * locale/programs/locarchive.c: Likewise.
4242         * locale/programs/ld-paper.c: Likewise.
4243         * locale/programs/locfile-kw.h: Likewise.
4244         * locale/programs/ld-address.c: Likewise.
4245         * locale/programs/xmalloc.c: Likewise.
4246         * locale/programs/ld-time.c: Likewise.
4247         * locale/programs/localedef.c: Likewise.
4248         * locale/programs/simple-hash.c: Likewise.
4249         * locale/programs/xstrdup.c: Likewise.
4250         * locale/programs/ld-numeric.c: Likewise.
4251         * locale/programs/locfile-kw.gperf: Likewise.
4252         * locale/programs/ld-collate.c: Likewise.
4253         * locale/programs/charmap-kw.gperf: Likewise.
4254         * locale/programs/charmap.h: Likewise.
4255         * locale/programs/charmap-kw.h: Likewise.
4256         * locale/programs/config.h: Likewise.
4257         * locale/programs/locfile.c: Likewise.
4258         * locale/programs/ld-ctype.c: Likewise.
4259         * locale/programs/charmap.c: Likewise.
4260         * locale/programs/ld-messages.c: Likewise.
4261         * locale/programs/repertoire.h: Likewise.
4262         * locale/programs/locale.c: Likewise.
4263         * locale/programs/ld-name.c: Likewise.
4264         * locale/programs/linereader.c: Likewise.
4265         * locale/programs/locfile.h: Likewise.
4266         * locale/programs/3level.h: Likewise.
4267         * locale/programs/ld-monetary.c: Likewise.
4268         * locale/programs/ld-measurement.c: Likewise.
4269         * locale/programs/charmap-dir.c: Likewise.
4270         * locale/programs/ld-identification.c: Likewise.
4271         * locale/programs/localedef.h: Likewise.
4272         * locale/programs/charmap-dir.h: Likewise.
4273         * locale/programs/repertoire.c: Likewise.
4274         * locale/programs/simple-hash.h: Likewise.
4275         * locale/programs/ld-telephone.c: Likewise.
4276         * locale/programs/locale-spec.c: Likewise.
4277         * locale/programs/locfile-token.h: Likewise.
4278         * posix/getconf.c: Likewise.
4279         * iconv/dummy-repertoire.c: Likewise.
4280         * iconv/iconv_charmap.c: Likewise.
4281         * iconv/iconvconfig.c: Likewise.
4282         * iconv/iconv_prog.c: Likewise.
4283         * malloc/memusagestat.c: Likewise.
4284         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
4286 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4288         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
4289         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
4290         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
4291         check for the first argument.
4293 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
4295         [BZ #4775]
4296         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
4297         (__tgmath_real_type): Fix if expr is const int or other const
4298         qualified integral type.
4299         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
4300         expressions and handle const qualified arguments.
4301         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
4302         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
4303         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
4304         statement expressions.
4305         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
4306         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
4307         (__TGMATH_UNARY_IMAG): Define.
4308         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
4309         * math/Makefile (tests): Add test-tgmath2.
4310         (CFLAGS-test-tgmath2.c): Add.
4311         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
4312         count_cfloat, count_cldouble): New variables.
4313         (NCCALLS): Define.
4314         (main): Check number of complex calls as well.
4315         (F(compile_test)): Add complex tests and tests with const qualified
4316         arguments.
4317         (y, z, ccount): Define.
4318         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
4319         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
4320         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
4321         F(cproj)): New functions.
4322         * math/test-tgmath2.c: New test.
4324 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
4326         [BZ #4776]
4327         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
4328         RPATH etc. as "/" rather than "", don't segfault on empty paths,
4329         instead output ".".
4330         * dlfcn/Makefile (distribute): Add glreflib3.c.
4331         (module-names): Add glreflib3.
4332         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
4333         glreflib1.so.
4334         (LDFLAGS_glreflib3.so): New.
4335         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
4336         glreflib1.so.
4337         * dlfcn/glreflib3.c: New file.
4339         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
4340         returned -1, return NULL.
4341         * intl/explodename.c (_nl_explode_name): Return -1 if
4342         _nl_normalize_codeset failed.
4344 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
4346         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
4347         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
4348         and avoid branch misspredicts for > 31 bytes memset case.
4349         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
4350         Remove toc ref to __cache_line_size.
4352         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
4353         to get ISA-V2.0 branch hints.
4354         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
4355         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
4356         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
4357         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
4358         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
4359         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
4360         Remove toc ref to __cache_line_size.
4362         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
4363         Include math_ldbl_opt.h.
4365 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
4367         [BZ #4773]
4368         * time/strptime_l.c (__strptime_internal): Implement greedy
4369         matching of weekday and month names.
4371 2007-07-09  Roland McGrath  <roland@redhat.com>
4373         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
4374         (ELF_NOTE_ABI): Use it.
4375         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
4377 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
4379         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
4380         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
4382 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
4384         [BZ #4745]
4385         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
4386         in loop to look for conversion specifier to avoid testing of
4387         wrong errno value.
4388         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
4389         * stdio-common/bug18.c: New file.
4390         * stdio-common/bug18a.c: New file.
4391         * stdio-common/bug19.c: New file.
4392         * stdio-common/bug19a.c: New file.
4394 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
4396         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
4397         running awk script.
4399 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
4401         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
4402         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
4403         Return NULL if mmap failed instead of asserting it does not.
4404         (calloc): Check for integer overflow.
4406         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
4407         than LONG_MAX / 10.
4409 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
4411         [BZ #4702]
4412         * nis/nss-default.c: Include errno.h.
4413         (init): Preserve errno.
4415 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
4417         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
4419 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
4421         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
4423 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4425         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
4427 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4429         * sysdeps/s390/dl-procinfo.c: New file.
4430         * sysdeps/s390/dl-procinfo.h: New file.
4431         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
4433 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
4435         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
4436         in PT_NOTE segments with multiple notes.
4437         * elf/readelflib.c (process_elf_file): Likewise.
4439 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
4441         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
4442         ISO C compliant.
4444 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
4446         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
4448 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
4450         * include/link.h: Don't include rtld-lowlevel.h.
4451         (struct link_map): Remove l_scope_lock.
4452         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
4453         (_dl_scope_free_list): New field (variable) in _rtld_global.
4454         (DL_LOOKUP_SCOPE_LOCK): Remove.
4455         (_dl_scope_free): New prototype.
4456         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
4457         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
4458         (_dl_profile_fixup): Likewise.
4459         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
4460         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
4461         THREAD_GSCOPE_RESET_FLAG around it.
4462         * elf/dl-close.c (_dl_close_worker): Don't use
4463         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
4464         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
4465         scopes were queued or if l_scope_mem has been abandoned.
4466         * elf/dl-open.c (_dl_scope_free): New function.
4467         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
4468         * elf/dl-support.c (_dl_scope_free_list): New variable.
4469         * elf/dl-lookup.c (add_dependency): Remove flags argument.
4470         Remove DL_LOOKUP_SCOPE_LOCK handling.
4471         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
4472         handling.
4473         * elf/dl-object.c (_dl_new_object): Don't use
4474         __rtld_mrlock_initialize.
4476 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
4478         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
4479         to fill in holes
4480         (rtld_global_ro): Likewise.
4482 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
4484         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
4485         Move PT_LOAD checking to...
4486         (_dl_addr_inside_object): ... here, new function.
4487         * elf/dl-sym.c (do_sym): If not l_contiguous,
4488         call _dl_addr_inside_object.
4489         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
4490         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
4491         * elf/dl-open.c (dl_open_worker): Likewise.
4492         (_dl_addr_inside_object): New function if IS_IN_rtld.
4493         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
4494         holes are present or are PROT_NONE protected.
4495         * include/link.h (struct link_map): Add l_contiguous field.
4496         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
4498 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
4499             Tomas Janousek  <tjanouse@redhat.com>
4500             Ulrich Drepper  <drepper@redhat.com>
4502         [BZ #4647]
4503         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
4504         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
4505         socket.
4506         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
4507         unused member a bitmap.
4508         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
4509         servers are configured.
4511 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
4513         * elf/rtld.c (dl_main): Don't call init_tls more than once.
4515 2007-06-17  Andreas Schwab  <schwab@suse.de>
4517         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
4519 2007-06-16  Andreas Jaeger  <aj@suse.de>
4521         [BZ #4125]
4522         * sysdeps/unix/sysv/linux/sys/ptrace.h
4523         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
4524         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
4525         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
4526         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
4527         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
4528         Define.
4529         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
4530         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
4531         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
4532         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
4534 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
4536         [BZ #4599]
4537         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
4538         determining whether there are IPv4/IPv6 addresses, ignore loopback
4539         addresses.
4541 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
4543         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
4544         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
4545         as the return type.  Change type of "r" variable to CMPtype.
4546         * soft-fp/eqsf2.c (__eqsf2): Likewise.
4547         * soft-fp/eqtf2.c (__eqtf2): Likewise.
4548         * soft-fp/gedf2.c (__gedf2): Likewise.
4549         * soft-fp/gesf2.c (__gesf2): Likewise.
4550         * soft-fp/getf2.c (__getf2): Likewise.
4551         * soft-fp/ledf2.c (__ledf2): Likewise.
4552         * soft-fp/lesf2.c (__lesf2): Likewise.
4553         * soft-fp/letf2.c (__letf2): Likewise.
4554         * soft-fp/unorddf2 (__unorddf2): Likewise.
4555         * soft-fp/unordsf2 (__unordsf2): Likewise.
4556         * soft-fp/unordtf2 (__unordtf2): Likewise.
4558 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
4560         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
4561         make sure gcc doesn't mess around with this.
4563 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
4565         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
4567 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
4569         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
4570         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
4571         at most once per _dl_close_worker.
4573 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
4575         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
4576         __sched_cpucount as const.
4577         * posix/sched_cpucount.c: Adjust.
4579         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
4580         instruction for counting bits.
4581         * sysdeps/x86_64/sched_cpucount.c: New file.
4583 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
4585         * configure.in: Avoid variable named BASH.
4586         * config.make.in: Likewise.
4587         Patch in part by Mike Frysinger.
4589 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
4591         [BZ #4586]
4592         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
4593         pseudo-zeros as zero.
4594         * sysdeps/x86_64/ldbl2mpn.c: New file.
4595         * sysdeps/ia64/ldbl2mpn.c: New file.
4597 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
4599         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
4600         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
4601         Remove unreachable code at the end.
4603 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
4605         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
4606         ldbl-128ibm in comment.
4607         (fpclassifyl): Correct classification of denormals.
4608         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
4609         return value for MIN denormal. Rewrite using long double math too
4610         correctly handle denormals and canonicalize the results.
4612 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
4614         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
4615         (__mpn_construct_long_double): Fix conversion where result ought
4616         to be smaller than __LDBL_MIN__, or the low double should be
4617         denormal.  Fix decision where to negate low double - honor round
4618         to even rules.
4619         * stdio-common/tst-sprintf2.c: Include string.h.
4620         (COMPARE_LDBL): Define.
4621         (TEST): Also test whether a string hexadecimal float representation
4622         can be parsed back to the number.
4623         (main): Add a couple of further tests.
4625 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
4627         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
4628         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
4629         is non-zero, but smaller than 2 * __DBL_MIN__.
4630         * stdio-common/tst-sprintf2.c: New test.
4631         * stdio-common/Makefile (tests): Add tst-sprintf2.
4633         * math/test-misc.c (main): Don't run last batch of tests with
4634         IBM long double format.
4636 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
4638         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
4639         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
4640         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
4641         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
4642         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
4643         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
4644         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
4645         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
4646         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
4647         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
4648         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
4649         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
4650         New file.
4651         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
4652         New file.
4653         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
4654         New file.
4655         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
4656         New file.
4657         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
4658         New file.
4659         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
4660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
4661         New file.
4662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
4663         New file.
4664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
4665         New file.
4666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
4667         New file.
4668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
4669         New file.
4671 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
4673         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
4674         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
4675         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
4676         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
4677         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
4678         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
4679         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
4680         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
4682 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
4684         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
4685         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
4686         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
4687         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
4688         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
4689         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
4690         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
4691         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
4693 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
4695         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
4696         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
4697         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
4698         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
4700 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
4702         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
4703         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
4705 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
4707         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
4708         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
4709         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
4710         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
4712 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
4714         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
4715         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
4717 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
4719         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
4720         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
4722         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
4723         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
4724         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
4725         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
4727 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
4729         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
4730         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
4731         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
4732         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
4734 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
4736         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
4737         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
4738         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
4739         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
4740         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
4741         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
4743 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
4745         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
4746         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
4747         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
4748         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
4750 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
4752         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
4753         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
4754         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
4755         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
4756         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
4757         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
4758         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
4759         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
4760         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
4761         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
4762         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
4763         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
4764         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
4765         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
4766         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
4767         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
4769 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
4771         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
4772         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
4774 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
4776         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
4777         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
4779 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
4781         * sysdeps/powerpc/powerpc32/970/Implies: New file.
4782         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
4783         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
4784         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
4785         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
4786         * sysdeps/powerpc/powerpc64/970/Implies: New file.
4787         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
4788         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
4789         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
4790         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
4792 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
4794         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
4796 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
4798         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
4799         branch miss-predicts. Ensure that cache line crossing does not impact
4800         dispatch grouping.
4802 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
4804         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
4805         "../../powerpc32/power4/memcopy.h".
4806         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
4807         "../../powerpc32/power4/wordcopy.c".
4809 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
4811         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
4812         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
4813         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
4814         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
4815         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
4816         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
4818 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
4820         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
4822 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
4824         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
4825         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
4826         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
4827         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
4828         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
4829         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
4830         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
4831         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
4833 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
4835         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
4837 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
4839         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
4840         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
4841         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
4842         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
4843         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
4844         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
4845         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
4847 2007-05-29  Roland McGrath  <roland@redhat.com>
4849         * po/Makefile (po-sed-cmd): New variable.
4850         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
4852 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
4854         * crypt/md5-crypt.c: Fix comment.
4856         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
4857         of crashing.  When this is the case or if the reply is malformed,
4858         don't try to close the new file descriptor since it does not
4859         exist.
4860         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
4862 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
4864         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
4865         if __NR_utimensat is not defined.
4867 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
4869         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
4871 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
4873         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
4874         (open): Fix comment typos.  Don't call __open_2 if flags
4875         is a compile time constant without O_CREAT.
4876         (__open64_2): Add nonnull attribute.
4877         (open64): Fix comment typos.  Don't call __open64_2 if flags
4878         is a compile time constant without O_CREAT.
4879         (__openat_2): Add nonnull attribute, fix nonnull attribute
4880         on redirect.
4881         (openat): Fix comment typos.  Don't call __openat_2 if flags
4882         is a compile time constant without O_CREAT.
4883         (__openat64_2): Add nonnull attribute, fix nonnull attribute
4884         on redirect.
4885         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
4886         is a compile time constant without O_CREAT.
4888 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
4890         * Makerules (sysd-rules): Define PTW for ptw-* files.
4891         * Versions: Define GLIBC_2.7 for libc.
4892         * include/stdio.h: Declare __fortify_fail.
4893         * debug/fortify_fail.c: New file.
4894         * debug/Makefile (routines): Add fortify_fail.
4895         * debug/chk_fail.c: Use __fortify_fail.
4896         * debug/stack_chk_fail.c: Likewise.
4897         * io/Versions: Export __open_2, __open64_2, __openat_2, and
4898         __openat64_2 for GLIBC_2.7.
4899         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
4900         * io/open.c: Define *_2 variant of function which checks for O_CREAT
4901         and fails if necessary.
4902         * io/open64.c: Likewise.
4903         * io/openat.c: Likewise.
4904         * io/openat64.c: Likewise.
4905         * sysdeps/unix/sysv/linux/open64.c: Likewise.
4906         * sysdeps/unix/sysv/linux/openat.c: Likewise.
4907         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
4908         * io/bits/fcntl2.h: New file.
4909         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
4910         __openat64_2.
4911         * include/bits/fcntl2.h: New file.
4912         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
4913         Add open_2.
4914         * sysdeps/unix/sysv/linux/open_2.c: New file.
4916 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
4918         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
4919         as second parameter to handle_intel.
4921         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
4922         the entry.
4924         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
4925         handling to ...
4926         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
4927         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
4928         cacheinfo.
4929         * sysdeps/x86_64/memcpy.S: Complete rewrite.
4930         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
4931         Patch by Evandro Menezes <evandro.menezes@amd.com>.
4933         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
4935 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
4937         [BZ #4525]
4938         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
4939         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
4940         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
4942         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
4944         [BZ #4514]
4945         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
4946         reinitialize workend at the start of each do_positional format spec
4947         loop, free workstart before do_positional loops.
4948         (printf_unknown): Fix size of work_buffer.
4949         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
4951         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
4952         (public_sET_STATe): If ms->version < 3, put all chunks into
4953         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
4954         chunks.
4956         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
4957         * malloc/hooks.c: Likewise.
4958         * malloc/arena.c: Likewise.
4959         * malloc/malloc.c (do_check_malloc_state): Don't assert
4960         n_mmaps is not greater than n_mmaps_max.  This removes the need
4961         for the previous change.
4963         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
4964         2007-05-07 commit.
4966 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
4968         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
4969         Define for kernel >= 2.6.22.
4971 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
4973         * elf/dl-close.c (_dl_close_worker): When removing object from
4974         global scope, wait for all lookups to finish afterwards.
4975         * elf/dl-open.c (add_to_global): When global scope array must
4976         grow, allocate a new one and free old array only after all
4977         lookups finish.
4978         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
4979         (_dl_lookup_symbol_x): Likewise.
4980         * elf/dl-support.c: Define _dl_wait_lookup_done.
4981         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
4982         _dl_wait_lookup_done.
4984         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
4985         not overlapping with arena.
4987         * malloc/mcheck.c (reallochook): If size==0, free the block.
4989         * rt/tst-shm.c: Use fstat64 instead of fstat.
4991         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
4992         __NR_sync_file_range is not defined.
4994 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
4996         Dummy files to prevent stub versions from being used.
4997         * sysdeps/x86_64/fpu/k_cosl.c: New file.
4998         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
4999         * sysdeps/x86_64/fpu/k_sinl.c: New file.
5000         * sysdeps/x86_64/fpu/k_tanl.c: New file.
5002         * version.h (VERSION): Set to 2.6.90.
5004 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
5006         * version.h (VERSION): Define to 2.6.
5007         * include/features.h (__GLIBC_MINOR__): Define to 6.
5009         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
5011         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
5012         sizes.
5014 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
5016         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
5017         number of mmaps.  n_mmaps_max is the target.
5018         * malloc/hooks.c: Likewise.
5019         * malloc/arena.c: Likewise.
5021 2007-05-12  Andreas Jaeger  <aj@suse.de>
5023         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
5024         getpid.
5026 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
5028         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
5029         adding new variables.
5031         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
5032         optimize.  Completely extend global scope array before making the
5033         new entries visible.
5035 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
5037         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
5038         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
5039         tst-getcpu.
5041         * include/link.h: Move l_version and l_nversion members around to
5042         fill gaps.
5044         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
5046         * sysdeps/unix/sysv/linux/sched_setaffinity.c
5047         (__sched_setaffinity_new): If syscall was successful and
5048         RESET_VGETCPU_CACHE is defined, use it before returning.
5049         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
5051         * io/sys/stat.h: Make sure struct timespec is defined for
5052         __USE_ATFILE.
5054         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
5055         UTIME_OMIT.
5056         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
5057         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
5058         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
5059         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
5060         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
5061         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
5062         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
5063         * io/sys/stat.h: Declare utimensat, futimens.
5064         * io/utimensat.c: New file.
5065         * io/futimens.c: New file.
5066         * sysdeps/unix/sysv/linux/utimensat.c: New file.
5067         * sysdeps/unix/sysv/linux/futimens.c: New file.
5068         * io/Makefile (routines): Add utimensat, futimens.
5069         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
5070         * sysdeps/unix/sysv/linux/lutimes.c: New file.
5071         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
5072         available.
5074         * include/sys/cdefs.h: Redefine __nonnull so that test for
5075         incorrect parameters in the libc code itself are not omitted.
5077 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
5079         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
5080         exception in addition to inexact when asked to raise only FE_INEXACT.
5082         [BZ #3427]
5083         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
5084         in *envp.
5086 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
5088         [BZ #4403]
5089         * string/strfry.c (strfry): Make result more random.
5091 2007-05-07  Richard Henderson  <rth@redhat.com>
5093         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
5094         if __NO_LONG_DOUBLE_MATH.
5095         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
5096         available in the compiler, add .arch directive to the assembly.
5098 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
5100         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
5101         compat_symbol to GLIBC_2_1.
5102         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
5103         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
5104         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
5105         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
5106         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
5107         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
5108         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
5109         libc, not libm.
5110         (__isnanl): New compat_symbol.
5112 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
5113             Jakub Jelinek  <jakub@redhat.com>
5115         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
5116         (new_heap): Initialize mprotect_size.
5117         (grow_heap): When growing, only mprotect from mprotect_size till
5118         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
5119         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
5121 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
5122             Peter Bergner  <bergner@us.ibm.com>
5124         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
5125         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
5126         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
5127         * sysdeps/powerpc/fpu/fe_mask.c: New file.
5128         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
5129         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
5130         Call __fe_mask_env() if all FP exceptions disabled.
5131         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
5132         from old FPSCR to new fenv to propagate DFP rounding modes.
5133         Call __fe_mask_env() if FP exceptions previously enabled.
5134         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
5135         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
5136         transitioning from all exceptions disabled to any exception enabled
5137         or visa versa.
5138         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
5139         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
5140         when transitioning from all exceptions disabled to any exception
5141         enabled or visa versa.
5142         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
5143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
5144         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
5145         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
5146         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
5147         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
5149 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
5151         [BZ #4465]
5152         * posix/unistd.h: Remove __THROW from fdatasync.
5154 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
5156         [BZ #4465]
5157         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
5159 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
5161         * stdio-common/vfprintf.c (process_string_arg): Optimize
5162         ridiculous precision in wide char code printing multi-byte string.
5163         Reported by Jim Meyering <jim@meyering.net>.
5165         [BZ #4131]
5166         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
5167         boundaries to work around systems with overlapping binary loading.
5168         Based on a patch by Suzuki <suzuki@in.ibm.com>.
5170 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
5172         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
5173         __mbsnrtowcs after last change.
5175         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
5176         (get_ident): Likewise.
5178 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
5180         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
5181         with setting the sticky bit.
5182         * math/test-misc.c (main): Add more truncation tests.
5184 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
5186         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
5187         double in the function declaration.
5188         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
5189         double in the function declaration.
5190         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
5191         float in the function declaration.
5192         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
5193         float in the function declaration.
5195         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
5196         denormal operands.  Do not generate FP_EX_DENORM exception.
5197         (FP_UNPACK_RAW_EP): Ditto.
5198         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
5199         undefined _FP_UNPACK_RAW_E.
5200         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
5201         undefined _FP_UNPACK_RAW_EP.
5202         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
5203         undefined _FP_PACK_RAW_E.
5204         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
5205         undefined _FP_PACK_RAW_EP.
5207         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
5208         _FP_FRAC_COPY_2.
5209         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
5210         _FP_FRAC_COPY_4.
5212 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
5213             Jakub Jelinek  <jakub@redhat.com>
5215         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
5216         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
5217         this case.
5218         * soft-fp/op-common.h (FP_TRUNC): Ditto.
5220 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
5222         * math/test-misc.c (main): Add tests for rounding long double
5223         values close to smallest double denormalized value to double.
5225 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
5227         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
5228         condition for truncating to 0.  Set sticky bit for such
5229         truncation.
5231 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
5233         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
5234         fixed length array for ignore.
5236 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
5238         [BZ #4438]
5239         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
5240         stack for large precisions.
5241         * stdio-common/test-vfprintf.c (main): Add test for large
5242         precision.
5244 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
5246         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
5247         for exponent 0.
5248         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
5250         [BZ #4439]
5251         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
5252         account in the size check.
5253         * resolv/tst-inet_ntop.c: New test.
5254         * resolv/Makefile (tests): Add tst-inet_ntop.
5256 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
5257             Jakub Jelinek  <jakub@redhat.com>
5259         [BZ #4349]
5260         * malloc/malloc.c: Keep separate list for first blocks on the bin
5261         lists with a given size.  This helps skipping over list elements
5262         we know won't fit in two places.
5263         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
5265 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
5267         [BZ #4102]
5268         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
5269         label to Teredo tunnel addresses 2001://32.
5271 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
5273         * locale/programs/ld-collate.c (collate_read): Allow order_start
5274         after copy.
5276         * locale/programs/ld-collate.c (collate_read): Fix printing of
5277         error message.
5279         [BZ #3213]
5280         * locale/C-translit.h.in: Add entry for U2044.
5282         [BZ #4342]
5283         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
5284         hexa-decimal floats without exponent.
5285         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
5287 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
5289         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
5290         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
5291         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
5292         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
5293         GLIBC_2.6.
5294         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
5295         Add sched_getcpu.
5297 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
5299         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
5300         of 0 after the out_fail label.
5302 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
5304         [BZ #4406]
5305         * iconv/gconv_charset.h (strip): Allow ':'.
5306         * iconv/iconv_open.c (iconv_open): Adjust comment.
5308 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
5310         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
5311         version.
5313 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
5315         [BZ #4381]
5316         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
5317         alignment of buffer and tmp_buffer.
5318         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
5319         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
5320         alignment of buffer.
5321         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
5322         bigger than INT_MAX.
5323         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
5324         h_errnop arguments.  Fail if buflen is too small.
5325         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
5327 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
5329         [BZ #4405]
5330         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
5331         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
5333 2007-04-22  Roland McGrath  <roland@redhat.com>
5335         * elf/elf.h (NT_PRXFPREG): New macro.
5337 2007-04-19  Andreas Jaeger  <aj@suse.de>
5339         [BZ #3905]
5340         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
5341         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
5342         Added.
5344 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
5346         * include/sys/mman.h: Mark madvise hidden.
5347         * misc/madvise.c: Add libc_hidden_def.
5349 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
5351         * nis/nis_domain_of.c (__nis_domain_of): New function.
5352         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
5353         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
5354         * nis/nis_call.c (rec_dirsearch): Likewise.
5355         (first_shoot): Likewise.  Remove search_parent_first argument.
5356         (struct nis_server_cache): Rename search_parent_first field
5357         to search_parent.
5358         (nis_server_cache_search, nis_server_cache_add): Rename
5359         search_parent_first argument to search_parent.
5360         (__nisfind_server): Likewise.  If search_parent, call
5361         __nis_domain_of.
5363 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
5365         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
5367 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
5369         [BZ #4368]
5370         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
5372 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
5374         [BZ #4364]
5375         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
5377 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
5379         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
5380         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
5381         current number of locales in SUPPORTED.
5382         (create_archive): Initialize serial.
5383         (enlarge_archive): Preserve aliases rather than duplicating
5384         their locrecs.
5386 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
5388         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
5389         after _IO_un_link, not before it.
5391         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
5392         special case handling when wcp == wstartp + 1.  Fix a comment typo.
5393         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
5395 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
5397         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
5398         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
5399         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
5400         Remove __THROW.
5401         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
5402         _IO_file_xsgetn_maybe_mmap): Likewise.
5403         * libio/oldfileops.c (old_do_write): Likewise.
5404         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
5405         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
5406         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
5407         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
5408         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
5409         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
5410         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
5411         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
5412         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
5413         _IO_file_underflow, _IO_file_underflow_mmap,
5414         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
5415         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
5416         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
5417         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
5418         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
5419         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
5420         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
5421         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
5422         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
5423         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
5424         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
5425         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
5426         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
5427         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
5428         _IO_adjust_column_internal, _IO_default_uflow_internal,
5429         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
5430         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
5431         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
5432         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
5433         _IO_file_close_it_internal, _IO_file_underflow_internal,
5434         _IO_file_overflow_internal, _IO_file_attach_internal,
5435         _IO_file_fopen_internal, _IO_file_sync_internal,
5436         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
5437         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
5438         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
5439         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
5440         _IO_seekpos_unlocked): Likewise.
5441         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
5442         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
5444 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
5446         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
5447         argument in xmalloc size computation.
5449 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
5451         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
5452         math_opt_barrier and math_force_eval macros.
5454 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
5456         [BZ #3306]
5457         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
5458         * sysdeps/i386/fpu/math_private.h: New file.
5459         * sysdeps/x86_64/fpu/math_private.h: New file.
5460         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
5461         math_force_eval macros.  Use "+m" constraint on asm rather than
5462         "=m" and "m".
5463         * math/s_nextafter.c (__nextafter): Likewise.
5464         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
5465         Likewise.
5466         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
5467         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
5468         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
5469         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
5470         math_opt_barrier and math_force_eval macros.
5471         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
5472         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
5473         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
5474         (__nexttoward): Use math_opt_barrier and
5475         math_force_eval macros.  Use "+m" constraint on asm rather than
5476         "=m" and "m".  Only use asm to force double result if
5477         FLT_EVAL_METHOD is 2.
5478         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
5479         (__nexttowardf): Use math_opt_barrier and
5480         math_force_eval macros.  Use "+m" constraint on asm rather than
5481         "=m" and "m".  Only use asm to force double result if
5482         FLT_EVAL_METHOD is not 0.
5483         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
5484         (__nexttowardf): Use math_opt_barrier and
5485         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
5486         x to float using asm.
5487         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
5488         (__nldbl_nexttowardf): Use math_opt_barrier and
5489         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
5490         x to float using asm.
5491         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
5492         (__nexttowardf): Use math_opt_barrier and math_force_eval
5493         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
5494         * math/bug-nextafter.c (zero, inf): New variables.
5495         (main): Add new tests.
5496         * math/bug-nexttoward.c (zero, inf): New variables.
5497         (main): Add new tests.
5499 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
5501         [BZ #3427]
5502         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
5503         exceptions both in SW and MXCSR.
5504         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
5505         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
5506         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
5507         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
5508         in MXCSR if SSE is available.
5509         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
5510         and ldsodefs.h.
5511         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
5512         Fix comment typo.
5513         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
5514         Return 0 rather than 1.
5515         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
5516         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
5517         * math/test-fenv.c (feholdexcept_tests): New function.
5518         (main): Call it.
5520 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
5522         [BZ #3427]
5523         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
5524         in SW.
5526 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
5528         [BZ #4344]
5529         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
5530         Reported by David Anderson <davea42@earthlink.net>.
5532 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
5534         * posix/sys/wait.h: Remove unnecessary forward declaration.
5536 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
5538         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
5539         with obj->do_servers after first_shoot.
5541 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
5543         * posix/Makefile (routines): Add sched_cpucount.
5544         (tests): Add tst-cpucount.
5545         * posix/sched_cpucount.c: New file.
5546         * posix/tst-cpucount.c: New file.
5547         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
5548         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
5549         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
5550         * posix/sched.h: Define CPU_COUNT.
5552 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
5554         * posix/fnmatch.c (STRUCT): Define.
5555         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
5556         * posix/fnmatch_loop.c (struct STRUCT): New type.
5557         (FCT): Add ends argument.  If ends != NULL and normal * is
5558         seen in the pattern, store current pattern and string pointers
5559         and return.  Adjust recursive calls.
5560         (EXT): Adjust FCT callers.
5561         (STRUCT): Undef at the end of the file.
5562         * posix/Makefile (tests): Add tst-fnmatch2.
5563         * posix/tst-fnmatch2.c: New test.
5565 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
5567         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
5568         and 1 on failure.
5570         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
5571         Change last argument to unsigned int.
5573 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
5575         * scripts/check-local-headers.sh: Filter out sys/capability.h.
5577 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
5579         * config.h.in (HAVE_LIBCAP): Add.
5580         * nscd/selinux.h: Include sys/capability.h rather than non-existent
5581         sys/capabilities.h.
5582         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
5583         free_caps.  Cast away const from 4th cap_set_flag argument.
5585 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
5587         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
5588         GLIBC_2.6.
5589         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
5590         Add sync_file_range.
5591         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
5593 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
5595         * sysdeps/powerpc/bits/atomic.h
5596         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
5597         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
5598         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
5599         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
5600         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
5601         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
5602         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
5603         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
5604         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
5605         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
5606         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
5607         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
5608         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
5609         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
5610         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
5611         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
5612         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
5613         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
5614         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
5615         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
5617 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
5619         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
5620         (__cache_line_size): Define the variable here.  Add
5621         attribute_hidden, remove weak_extern.
5622         (__libc_start_main): Set __cache_line_size
5623         unconditionally.
5624         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
5625         (__cache_line_size): Define the variable here.  Add
5626         attribute_hidden, remove weak_extern.
5627         (DL_PLATFORM_AUXV): Set __cache_line_size
5628         unconditionally.
5629         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
5630         weak_extern, add attribute_hidden.
5631         (__elf_machine_runtime_setup): Assume __cache_line_size is always
5632         defined in ld.so.
5633         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
5634         definition.
5635         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
5637 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
5639         [BZ #4276]
5640         * timezone/africa: Update from tzdata2007d.
5641         * timezone/asia: Likewise.
5642         * timezone/australasia: Likewise.
5643         * timezone/backward: Likewise.
5644         * timezone/europe: Likewise.
5645         * timezone/iso3166.tab: Likewise.
5646         * timezone/leapseconds: Likewise.
5647         * timezone/northamerica: Likewise.
5648         * timezone/southamerica: Likewise.
5649         * timezone/zone.tab: Likewise.
5651         * timezone/private.h: Update from tzcode2007d.
5652         * timezone/zdump.c: Likewise.
5653         * timezone/zic.c: Likewise.
5655 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
5657         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
5658         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
5659         variables.
5660         (nis_server_cache_search, nis_server_cache_add): New functions.
5661         (__nisfind_server): Use them.  Add dbp and flags argument, if
5662         call __nisbind_create.
5663         (__nisbind_create): Add server_used and current_ep arguments,
5664         only call __nis_findfastest if server_used is ~0.
5665         (__do_niscall2, __prepare_niscall): Adjust callers.
5666         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
5667         ckey_cache_euid, ckey_cache_lock): New variables.
5668         (get_ckey): New function.
5669         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
5670         __pmap_getnisport.  Save __pmap_getnisport result in
5671         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
5672         key.
5673         * nis/nis_lookup.c (nis_lookup): Likewise.
5674         * nis/nis_table.c (nis_list): Likewise.
5675         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
5676         prototypes.
5678         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
5679         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
5680         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
5681         _nss_nisplus_getservbyport_r): Likewise.
5682         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
5683         _nss_nisplus_getnetbyaddr_r): Likewise.
5684         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
5685         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
5686         _nss_nisplus_getntohost_r): Likewise.
5687         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
5688         _nss_nisplus_getrpcbynumber_r): Likewise.
5690 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
5692         * configure.in (libc_cv_gnu89_inline): Only do compile test.
5693         * configure: Rebuilt.
5695         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
5696         bit-fields.
5697         * soft-fp/extended.h (_FP_UNION_E): Likewise.
5699 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
5701         [BZ #2831]
5702         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
5703         bit-fields.
5705 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
5707         * nscd/gai.c: Include alloca.h.
5708         (__libc_use_alloca): Define.
5710 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
5712         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
5713         smaller scopes.
5714         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
5715         (DL_DST_REQUIRED): Adjust user.
5717         * include/dlfcn.h (struct link_map): New forward decl.
5719         * inet/getnameinfo.c: Include stddef.h.
5720         (getnameinfo): Use offsetof.
5722         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
5724         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
5726         * string/strerror_l.c: Include stdlib.h.
5728         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
5729         * config.make.in (gnu89-inline-CFLAGS): New variable.
5730         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
5731         -std=gnu99.
5732         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
5733         * argp/argp.h: Use it.
5734         * bits/mathinline.h: Likewise.
5735         * bits/sigset.h: Likewise.
5736         * bits/string.h: Likewise.
5737         * ctype/ctype.h: Likewise.
5738         * hurd/hurd.h: Likewise.
5739         * hurd/hurd/fd.h: Likewise.
5740         * hurd/hurd/port.h: Likewise.
5741         * hurd/hurd/signal.h: Likewise.
5742         * hurd/hurd/threadvar.h: Likewise.
5743         * hurd/hurd/userlink.h: Likewise.
5744         * io/sys/stat.h: Likewise.
5745         * libio/bits/stdio.h: Likewise.
5746         * libio/bits/stdio2.h: Likewise.
5747         * mach/lock-intern.h: Likewise.
5748         * mach/mach/mig_support.h: Likewise.
5749         * math/bits/cmathcalls.h: Likewise.
5750         * posix/bits/unistd.h: Likewise.
5751         * socket/bits/socket2.h: Likewise.
5752         * stdlib/bits/stdlib.h: Likewise.
5753         * stdlib/stdlib.h: Likewise.
5754         * string/argz.h: Likewise.
5755         * string/bits/string2.h: Likewise.
5756         * string/bits/string3.h: Likewise.
5757         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
5758         * sysdeps/generic/inttypes.h: Likewise.
5759         * sysdeps/generic/machine-lock.h: Likewise.
5760         * sysdeps/generic/machine-sp.h: Likewise.
5761         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
5762         * sysdeps/i386/i486/bits/string.h: Likewise.
5763         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
5764         * sysdeps/mach/alpha/machine-lock.h: Likewise.
5765         * sysdeps/mach/alpha/machine-sp.h: Likewise.
5766         * sysdeps/mach/i386/machine-lock.h: Likewise.
5767         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
5768         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
5769         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
5770         * sysdeps/s390/bits/string.h: Likewise.
5771         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
5772         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
5773         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
5774         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
5775         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
5776         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
5777         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
5778         * wcsmbs/bits/wchar2.h: Likewise.
5779         * wcsmbs/wchar.h: Likewise.
5780         * stdlib/gmp.h: Likewise.  Include <features.h> to get
5781         __extern_inline definition.
5783 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
5785         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
5786         NULL.
5788         [BZ #3919]
5789         * math/libm-test.inc (log_test): Test -Inf and NaN.
5790         (log10_test, log1p_test, log2_test): Test -Inf.
5791         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
5792         FE_INVALID when argument is qNaN.
5793         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
5794         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
5795         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
5796         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
5797         andb $1, %ah with testb $1, %ah, don't test for parity, instead
5798         testb $4, %ah and jump if non-zero.
5799         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
5800         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
5802         [BZ #4101]
5803         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
5804         ancestors with the same depths.
5805         Patch by Niels Moeller <nisse@lysator.liu.se>.
5806         (filter_doc): Don't crash if argp is NULL.
5807         * argp/Makefile (tests): Add tst-argp2.
5808         * argp/tst-argp2.c: New test.
5810         [BZ #4130]
5811         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
5812         open_not_cancel_2.
5813         (updwtmp_file): Likewise.
5815         [BZ #4181]
5816         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
5817         (inet6_opt_append): Don't check extlen is big enough if extbuf
5818         is NULL.
5819         (inet6_opt_finish): Likewise.
5820         * inet/Makefile (tests): Add test-inet6_opt.
5821         * inet/test-inet6_opt.c: New test.
5823         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
5824         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
5825         NLMSG_ERR.  Instead use a page sized buffer.
5826         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
5827         buffer.
5829 2007-03-14  Richard Henderson  <rth@redhat.com>
5831         * sysdeps/alpha/fpu/s_llround.c: New file.
5832         * sysdeps/alpha/fpu/s_llroundf.c: New file.
5833         * sysdeps/alpha/fpu/s_lround.c: New file.
5834         * sysdeps/alpha/fpu/s_lroundf.c: New file.
5835         * sysdeps/alpha/fpu/s_round.c: New file.
5836         * sysdeps/alpha/fpu/s_roundf.c: New file.
5837         * sysdeps/alpha/fpu/s_trunc.c: New file.
5838         * sysdeps/alpha/fpu/s_truncf.c: New file.
5840         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
5841         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
5842         * sysdeps/alpha/fpu/s_floor.c: Likewise.
5843         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
5844         * sysdeps/alpha/fpu/s_rint.c: Likewise.
5845         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
5847         * sysdeps/alpha/fpu/s_fmax.S: New file.
5848         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
5849         * sysdeps/alpha/fpu/s_fmin.S: New file.
5850         * sysdeps/alpha/fpu/s_fminf.S: New file.
5851         * sysdeps/alpha/fpu/s_isnan.c: New file.
5852         * sysdeps/alpha/fpu/s_isnanf.c: New file.
5853         * sysdeps/alpha/fpu/s_llrint.c: New file.
5854         * sysdeps/alpha/fpu/s_llrintf.c: New file.
5855         * sysdeps/alpha/fpu/s_lrint.c: New file.
5856         * sysdeps/alpha/fpu/s_lrintf.c: New file.
5857         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
5858         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
5860         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
5861         (__fdimf, fdimf, __fdim, fdim): Remove.
5862         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
5863         (__isnanf, __isnan, __isnanl): New.
5865 2007-03-13  Richard Henderson  <rth@redhat.com>
5867         * sysdeps/ieee754/ldbl-128/Makefile: New file.
5869 2007-03-13  Richard Henderson  <rth@redhat.com>
5871         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
5872         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
5873         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
5874         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
5875         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
5876         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
5878 2007-03-13  Richard Henderson  <rth@redhat.com>
5880         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
5881         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
5882         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
5883         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
5884         Move to dl-auxv.h; initialize instead of extern weak.
5885         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
5886         weak symbol.
5887         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
5888         Extern instead of initialized.
5890 2007-03-13  Richard Henderson  <rth@redhat.com>
5892         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
5893         __sigsuspend_nocancel.
5895 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
5897         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
5898         172.16/12 address range.
5900 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
5902         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
5903         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
5904         message.
5906 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
5908         [BZ #4069]
5909         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
5910         earlier.
5911         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
5913         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
5914         for x qNaN and y either +-inf or non-integer value.
5915         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
5916         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
5917         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
5919 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
5921         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
5922         from sysdep_headers.
5924 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
5926         * time/tzfile.c (find_transition): Instead of a linear search try to
5927         guess the transition index, use a linear search if the result is at
5928         most 10 transitions away from the guess or binary search otherwise.
5930 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
5932         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
5933         memory reallocation.
5935 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
5937         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
5938         and fix some typos.
5939         Optimize use of TOLOWER.
5941         [BZ #3325]
5942         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
5943         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
5944         * sysdeps/i386/fpu/e_fmod.S: Likewise.
5946         [BZ #3458]
5947         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
5948         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
5950         [BZ #4076]
5951         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
5952         (open_dir_stream): Likewise.
5953         * io/Makefile (tests): Add bug-ftw5.
5954         * io/bug-ftw5.c: New file.
5956         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
5957         * nscd/servicescache.c (cache_addserv): Likewise.
5959         * nscd/grpcache.c (cache_addgr): In case a record changed on
5960         refresh, adjust key_copy.
5962         [BZ #4074]
5963         * nscd/pwdcache.c (cache_addpw): In case a record changed on
5964         refresh, adjust key_copy.
5966         [BZ #4070]
5967         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
5968         special cases.
5969         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
5971 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
5973         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
5974         optimization.
5976         * stdio-common/vfscanf.c: Small cleanups throughout.
5978 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
5980         [BZ #3325]
5981         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
5982         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
5983         * sysdeps/i386/fpu/e_fmod.S: Likewise.
5984         Patch by Jared Casper <jaredcasper@gmail.com>.
5986         * sysdeps/unix/closedir.c: Outside libc don't use locking.
5987         * sysdeps/unix/opendir.c: Likewise.
5988         * sysdeps/unix/readdir.c: Likewise.
5990         [BZ #2211]
5991         * stdio-common/vfscanf.c: Handle localized digits etc for floating
5992         point numbers.
5993         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
5995         * stdio-common/vfscanf.c: Fix problems in width accounting.
5996         * stdio-common/tst-sscanf.c (double_tests): New tests.
5997         (main): Hook them up.
5999         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
6000         More simplifications of floating-point reader.
6002         * stdio-common/Makefile (tests): Add tst-swscanf.
6003         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
6004         testing.
6005         * stdio-common/tst-swscanf.c: New file.
6007 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
6009         [BZ #2633]
6010         * libio/stdio.h: Define struct _IO_FILE in global namespace.
6011         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
6012         Remove using for __jmp_buf_tag.
6013         * locale/locale.h (struct lconv): Also define in std namespace.
6014         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
6016         [BZ #3842]
6017         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
6018         using __libc_enable_secure.
6020         [BZ #3818]
6021         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
6023         [BZ #3745]
6024         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
6025         of names for ellipsises.
6027         [BZ #3348]
6028         * malloc/memusage.sh: Cleanups.
6029         * debug/xtrace.sh: Quoting and trap changes.
6031 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
6033         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
6035         * locale/iso-3166.def: Update entry for Serbia.
6036         * locale/iso-4217.def: Define RSD, remove CSD.
6038         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
6039         and 64-bit operations.
6041         [BZ #4040]
6042         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
6043         16-bit operations.
6045         * nscd/nscd.c (parse_opt): One more conversion to use send instead
6046         of writev.
6048 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
6050         [BZ #3991]
6051         * assert/assert.h (assert): Simplify.
6052         (assert_perror): Likewise.
6053         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
6055         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
6056         reqdata.
6058         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
6059         change: don't pass NULL in place of an integer.
6061 2007-02-02  Bruno Haible  <bruno@clisp.org>
6063         [BZ #3954]
6064         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
6065         Add mapping for U+327E.
6066         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
6067         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
6068         mapping of 0xD9 0xE8.
6069         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
6070         mapping of U+327E.
6071         Reported by Jungshik Shin <jungshik@google.com>.
6073         [BZ #3955]
6074         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
6075         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
6076         Reported by Jungshik Shin <jungshik@google.com>.
6078 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
6080         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
6081         byte variants.
6083         [BZ #4040]
6084         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
6085         byte variants.  Patch mostly be tom@tommay.net.
6087 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
6089         [BZ #3996]
6090         * posix/glob.c (attribute_hidden): Define if not defined.
6091         (glob): Unescape dirname, filename or username when needed and not
6092         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
6093         is NULL.  Handle unescaped [ in pattern without closing ].
6094         Don't pass GLOB_CHECK down to recursive glob for directories.
6095         (__glob_pattern_type): New function.
6096         (__glob_pattern_p): Implement using __glob_pattern_type.
6097         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
6098         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
6099         Remove unreachable code.
6100         * posix/globtest.sh: Add a couple of new tests.
6102 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
6104         * po/ru.po: Update from translation team.
6106 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
6108         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
6109         to the list of i486+ CPUs.
6110         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
6112 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
6114         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
6115         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
6116         references.
6118 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
6120         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
6122         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
6123         * resolv/res_mkquery.c: Define __res_nopt.
6124         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
6125         try adding EDNS0 record.
6126         * resolv/res_send.c (send_dg): If request failed with FORMERR and
6127         EDNS0 record was send make sure we don't try it again.
6128         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
6129         * include/resolv.h: Declare __res_nopt.
6131 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
6133         [BZ #3944]
6134         * time/strptime_l.c (__strptime_internal): Set have_mon for
6135         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
6136         have been computed from tm_yday and tm_year.  Don't crash
6137         in day_of_the_week or day_of_the_year if not have_mon
6138         and tm_mon contains bogus value.
6139         * time/Makefile (tests): Add tst-strptime3.
6140         * time/tst-strptime3.c: New test.
6142 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
6144         [BZ #3957]
6145         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
6146         bit for RE_HAT_LISTS_NOT_NEWLINE.
6147         (build_charclass_op): Remove bogus comment.
6148         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
6149         * posix/bug-regex27.c: New test.
6150         * posix/bug-regex28.c: New test.
6152 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
6154         * po/sv.po: Update from translation team.
6156 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
6158         * nscd/nscd_helper.c (open_socket): Minor size optimization.
6160 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
6162         * include/locale.h (__uselocale): Add libc_hidden_proto.
6163         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
6165         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
6166         gettimeofday.
6168 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
6170         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
6171         returning.
6172         (PTR_DEMANGLE): Real definition now that it's not the same as
6173         PRT_MANGLE anymore.
6174         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
6176         * string/strerror_l.c: New file.
6177         * string/Makefile (routines): Add strerror_l.
6178         * string/string.h: Declare strerror_l.
6179         * string/Versions: Export strerror_l for GLIBC_2.6.
6181 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
6183         * nscd/nscd_helper.c (open_socket): Now takes request type and key
6184         as parameter.  Construct request record.  Try sending request
6185         before the first poll use, it usually succeeds.  Adjust all
6186         callers.
6187         * nscd/nscd-client.h: Define MAXKEYLEN.
6188         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
6190 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
6192         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
6193         from return value.
6194         * nscd/nscd_helper.c: Include string.h.
6195         (__nscd_cache_search): Remove const qualifier from return value.
6196         On strict alignment architectures check hash entry and data head
6197         alignment.
6198         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
6199         mmapped data during GC cycle contains garbage.  If
6200         __nscd_drop_map_ref fails, decrement mapped->counter when returning
6201         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
6202         dropped to 0.
6203         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
6204         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
6205         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6206         * nscd/nscd_getai.c (__nscd_getai): Likewise.
6207         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
6209 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
6211         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
6213 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
6215         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
6216         names not numbers in cfi_*.
6218 2007-01-26  Andreas Jaeger  <aj@suse.de>
6220         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
6221         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
6222         Correct values of PER_HPUX and PER_OSF4.
6224 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
6226         * elf/dl-minimal.c: Undefine _itoa first.
6227         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
6228         * malloc/mtrace.c: Revert last change.
6229         * posix/wordexp.c: Likewise.
6231 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
6233         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
6234         and __geode__ to the list of i486+ CPUs.
6235         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
6237 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
6239         * stdio-common/_itoa.c: Include <limits.h>.
6240         * stdio-common/_itowa.c: Likewise.
6242 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
6244         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
6245         platforms.
6246         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
6247         64-bit platforms.
6248         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
6249         possible.
6250         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
6251         if possible.
6253         [BZ #3902]
6254         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
6255         * stdio-common/Makefile (tests): Add bug17.
6256         * stdio-common/bug17.c: New file.
6258 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
6260         * iconvdata/brf.c: New file.
6261         * iconvdata/testdata/BRF: New file.
6262         * iconvdata/testdata/BRF..UTF8: New file.
6263         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
6264         * iconvdata/Makefile: Add rules to build BRF.
6265         * iconvdata/TESTS: Add BRF entry.
6266         * iconvdata/gconv-modules: Likewise.
6267         * iconvdata/tst-tables.sh: Likewise.
6269 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
6271         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
6272         type `long long int', not `long int'.
6273         (wcstoq): Likewise.
6275 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
6277         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
6278         of values on 64-bit platforms which are too large.
6280 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
6281             Joe Kerian  <jkerian@us.us.ibm.com>
6283         [BZ #2749]
6284         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
6285         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
6286         (__copysignl): Use signbit() for comparison.
6287         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
6288         SET_LDOUBLE_WORDS64.
6290         [BZ #2423, #2749]
6291         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
6292         (__ceill): Remove calls to fegetround(), fesetround().
6293         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
6294         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
6295         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6297 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
6299         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
6301         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
6303 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
6305         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
6306         demangle pointer.
6307         * csu/libc-start.c: Likewise.
6309 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
6311         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
6312         really work anyway.
6314 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
6316         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
6317         users.
6318         (handle_request): Remove unnecessary tests.
6320         * nscd/cache.c (cache_add): Record the failure to add to the cache.
6322 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
6324         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
6325         workbits in semi-raw fraction.
6327         * math/test-misc.c: Add new tests.
6329 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
6331         * math/basic-test.c: Include test-skeleton.c.
6332         (TEST_TRUNC): Define.
6333         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
6334         (main): Rename to ...
6335         (do_test): ...this.  Run new tests.
6336         (TEST_FUNCTION): Define.
6338 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
6339             Joe Kerian  <jkerian@us.us.ibm.com>
6341         [BZ #2749]
6342         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
6343         handling for high words.
6344         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
6345         and overflow for infinity.
6347 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
6349         * nscd/connections.c (handle_request): Add a __builtin_expect.
6351         * nscd/connections.c (serv2db): Change type into structure which
6352         also says whether this is a request for data.  Renamed to
6353         servinfo.  All users changed.
6354         (handle_request): Much simpler test whether we should search the cache.
6356         * nscd/connections.c (handle_request): Fix thinko in selinux test
6357         invocation.
6359         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
6360         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
6361         it before getting dl_load_lock and then relock.
6362         (_dl_lookup_symbol_x): Pass flags to add_dependency.
6363         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
6364         case we unlocked the scope.
6365         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
6366         _dl_lookup_symbol_x in case we locked the scope.
6367         (_dl_profile_fixup): Likewise.
6368         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
6369         set DL_LOOKUP_SCOPE_LOCK.
6371 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
6373         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
6374         CFLAGS-getsrvbynpt_r.c.
6375         * nscd/getsrvbynm_r.c: New file.
6376         * nscd/getsrvbypt_r.c: New file.
6377         * nscd/nscd_getserv_r.c: New file.
6378         * nscd/servicescache.c: New file.
6379         * nscd/Makefile (routines): Add nscd_getserv_r.
6380         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
6381         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
6382         CFLAGS-getsrvbypt_r.c.
6383         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
6384         table.  Add entries for services database.
6385         * nscd/connections.c (serv2str): Mark as const.  Add entries for
6386         services database.
6387         (dbs): Add .reset_res and servdb initialization.
6388         (serv2db): Add entries for services database.
6389         (verify_persistent_db): Accept dbnr == servdb.
6390         (invalidate_cache): Rewrite database name recognition to use a table.
6391         Call res_init() if .reset_res is set for database.
6392         (handle_request): Add code to handle services database.
6393         * nscd/gai.c: Don't define __getservbyname_r.
6394         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
6395         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
6396         (serv_response_header): Define.
6397         (struct datahead): Add serv_response_header member.
6398         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
6399         using table.
6400         * nscd/nscd.conf: Add entries for services database.
6401         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
6402         Declare serv_iov_disabled.
6403         Declare addservbyname, readdservbyname, addservbyport, and
6404         readdservbyport.
6405         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
6406         (find_db): Fix error message.
6407         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
6408         __nscd_getservbyname_r, and __nscd_getservbyport_r.
6409         * nscd/selinux.c (perms): Add entries for services database.
6410         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
6411         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
6413         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
6414         * nscd/hstcache.c: Likewise.
6415         * nscd/pwdcache.c: Likewise.
6417         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
6418         computation of keylen.
6420         * include/string.h: Only redefine strndupa if this is really for
6421         libc code.
6423 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
6425         * nscd/nscd_gethst_r.c: Minor cleanups.
6427         * nscd/connections.c (handle_request): Check selinux permissions
6428         for all non-admin commands.
6430         * sysdeps/i386/i486/bits/atomic.h: Define
6431         atomic_compare_and_exchange_val_acq,
6432         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
6433         using __sync_* built-ins for gcc >= 4.1.
6434         * sysdeps/x86_64/bits/atomic.h: Likewise.
6436         [BZ #3840]
6437         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
6438         and .oS.d files.
6440 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
6442         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
6443         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
6444         (do_test): Check errno and exit(0) if ENOSYS.
6446 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
6448         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
6449         thousands separators.
6450         * stdlib/Makefile: Add rules to build and run tst-strtod4.
6451         * stdlib/tst-strtod4.c: New test.
6453         [BZ #3855]
6454         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
6455         hexadecimal digit should accept just the initial 0.
6456         * stdlib/tst-strtod2.c (tests): New variable.
6457         (do_test): Run several tests rather than just one.
6459 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
6461         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
6462         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
6464 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
6466         * io/fts.c: Make sure fts_cur is always valid after return from
6467         fts_read.
6468         Patch by Miloslav Trmac <mitr@redhat.com>.
6470 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
6472         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
6473         (R_MIPS_NUM): Bump by 1.
6475 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
6477         * posix/execvp.c: Include alloca.h.
6478         (allocate_scripts_argv): Renamed to...
6479         (scripts_argv): ... this.  Don't allocate buffer here nor count
6480         arguments.
6481         (execvp): Use alloca if possible.
6482         * posix/Makefile: Add rules to build and run tst-vfork3 test.
6483         * posix/tst-vfork3.c: New test.
6485 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
6487         * string/Makefile (tst-strxfrm2-ENV): Define.
6488         * stdlib/Makefile (tst-strtod3-ENV): Define.
6490 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
6492         * posix/getconf.c: Update copyright year.
6493         * nss/getent.c: Likewise.
6494         * iconv/iconvconfig.c: Likewise.
6495         * iconv/iconv_prog.c: Likewise.
6496         * elf/ldconfig.c: Likewise.
6497         * catgets/gencat.c: Likewise.
6498         * csu/version.c: Likewise.
6499         * elf/ldd.bash.in: Likewise.
6500         * elf/sprof.c (print_version): Likewise.
6501         * locale/programs/locale.c: Likewise.
6502         * locale/programs/localedef.c: Likewise.
6503         * nscd/nscd.c (print_version): Likewise.
6504         * debug/xtrace.sh: Likewise.
6505         * malloc/memusage.sh: Likewise.
6506         * malloc/mtrace.pl: Likewise.
6507         * debug/catchsegv.sh: Likewise.
6509 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
6511         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
6512         attempts.
6514 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
6516         * posix/wordexp.c: Remove some unnecessary tests.
6518 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
6520         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
6521         blacklist the group till after we look it up.
6523 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
6525         * include/atomic.h (atomic_forced_read): New macro.
6527 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
6529         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
6531 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
6533         * nss/getXXbyYY_r.c: Include atomic.h.
6534         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
6535         add atomic_write_barrier () in between.
6537         * stdlib/Makefile (tests): Add tst-makecontext.
6538         * stdlib/tst-makecontext.c: New test.
6540         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
6541         (__makecontext): Don't realign uc_mcontext.uc_regs.
6543 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
6545         * elf/dl-support.c: Include dl-procinfo.h.
6546         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
6547         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
6548         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
6549         Define.
6550         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
6551         hardcoded constants.
6552         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
6553         PPC_PLATFORM_* macros for array designators.
6555 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
6557         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
6558         names to the beginning.
6559         (_dl_powerpc_platforms): Add "power6x".
6560         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
6561         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
6562         (_DL_PLATFORMS_COUNT): Increase.
6563         (_dl_string_platform): Handle power6x case.
6564         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
6565         PPC_FEATURE_POWER6_EXT): Define.
6566         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
6568 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
6570         [BZ #3747]
6571         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
6572         [-2^31 .. 2^31) range.
6573         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
6574         targets.
6575         * stdlib/tst-rand48-2.c: New test.
6576         * stdlib/Makefile (tests): Add tst-rand48-2.
6578 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
6580         * misc/tst-pselect.c (do_test): Fix sigblock argument.
6582 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
6584         * misc/tst-pselect.c (do_test): Make sure the helper process is
6585         terminating when the test is aborted.
6587 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
6589         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
6590         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
6591         Handle relatime mount option.
6593         [BZ #2337]
6594         * libio/Makefile (tests): Add tst-setvbuf1.
6595         * libio/tst-setvbuf1.c: New file.
6597 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
6599         [BZ #2337]
6600         * libio/genops.c (__uflow): Fix a typo.
6601         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
6602         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
6603         the narrow buffer size.
6605 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
6607         [BZ #2337]
6608         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
6609         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
6610         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
6611         in _flags.
6612         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
6613         _IO_wstr_finish): Likewise.
6614         * libio/wmemstream.c (open_wmemstream): Likewise.
6615         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
6616         even for wide streams.
6618 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
6620         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
6621         kernel-features.h.
6623 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
6625         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
6626         separators also if no non-zero digits found.
6627         * stdlib/Makefile (tests): Add tst-strtod3.
6629 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
6631         [BZ #3632]
6632         * include/features.h: Fix comment about default value for
6633         _POSIX_C_SOURCE.
6635         [BZ #3664]
6636         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
6637         empty parsed strings.
6638         * stdlib/Makefile (tests): Add tst-strtod2.
6639         * stdlib/tst-strtod2.c: New file.
6641         [BZ #3673]
6642         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
6643         computation.
6644         * stdlib/Makefile (tests): Add tst-atof2.
6645         * stdlib/tst-atof2.c: New file.
6647         [BZ #3674]
6648         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
6649         correctly if removing trailing zero of hex-float.
6650         * stdlib/Makefile (tests): Add tst-atof1.
6651         * stdlib/tst-atof1.c: New file.
6653 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
6655         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
6656         Start searching for next comma at p rather than rest.
6657         * misc/Makefile (tests): Add tst-mntent2.
6658         * misc/tst-mntent2.c: New test.
6660         * misc/getusershell.c (initshells): Check for integer overflows.
6661         Make strings buffer one bigger as fgets always succeeds when second
6662         argument is 1.  Don't use calloc for shells array.  Disallow
6663         / as shell.
6665 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
6667         * malloc/memusage.c: Handle realloc with new size of zero and
6668         non-NULL pointer correctly.
6669         (me): Really write first record twice.
6670         (struct entry): Make format bi-arch safe.
6671         (dest): Write out more realloc statistics.
6672         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
6674 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
6676         * nis/nis_subr.c (nis_getnames): Revert last change.
6678 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
6680         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
6681         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
6682         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
6683         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
6684         ENOTTY.
6685         * io/Makefile: Add rules to build and run tst-ttyname_r test.
6686         * io/tst-ttyname_r.c: New test.
6688 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6690         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
6692 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
6694         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
6695         jump table entries.
6697 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
6699         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
6700         `clone' function to ensure proper unwinding stop of gdb.
6701         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
6703 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
6705         * nscd/nscd.init: Remove obsolete and commented-out -S option
6706         handling.
6708 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
6710         [BZ #3514]
6711         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
6713         [BZ #3515]
6714         * manual/string.texi (strtok): Remove duplicate paragraph.
6716 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
6718         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
6719         libgcc not supporting `rflags' unwinding (register # >= 17).
6721 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
6723         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
6724         succeeded.
6726 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
6727             Jakub Jelinek  <jakub@redhat.com>
6728             Jan Kratochvil  <jan.kratochvil@redhat.com>
6730         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
6731         unwind information.
6732         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
6733         'restore_rt' even in the 'signal' directory.
6734         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
6736 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
6738         [BZ #3559]
6739         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
6740         malloc crashed.  Don't allocate memory unnecessarily in each
6741         loop.
6743 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
6745         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
6747 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
6749         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
6751 2006-11-18  Bruno Haible  <bruno@clisp.org>
6753         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
6754         __sysconf only after having tried to call getgroups32.
6756 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
6758         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
6759         addresses for IPv4 queries if they can be mapped.
6761 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
6763         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
6764         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
6765         (signmask): Add .size directive.
6766         (othermask): Add .type directive.
6768 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
6770         * po/nl.po: Update from translation team.
6772         * timezone/zdump.c: Redo fix for BZ #3137.
6774 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
6776         * nss/nss_files/files-alias.c (get_next_alias): Set line back
6777         to first_unused after parsing :include: file.
6779 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
6781         * timezone/africa: Update from tzdata2006o.
6782         * timezone/antarctica: Likewise.
6783         * timezone/asia: Likewise.
6784         * timezone/australasia: Likewise.
6785         * timezone/backward: Likewise.
6786         * timezone/europe: Likewise.
6787         * timezone/iso3166.tab: Likewise.
6788         * timezone/northamerica: Likewise.
6789         * timezone/southamerica: Likewise.
6790         * timezone/zone.tab: Likewise.
6792         * time/tzfile.c (__tzfile_read): Extend to handle new file format
6793         on machines with 64-bit time_t.
6795         * timezone/checktab.awk: Update from tzcode2006o.
6796         * timezone/ialloc.c: Likewise.
6797         * timezone/private.h: Likewise.
6798         * timezone/scheck.c: Likewise.
6799         * timezone/tzfile.h: Likewise.
6800         * timezone/tzselect.ksh: Likewise.
6801         * timezone/zdump.c: Likewise.
6802         * timezone/zic.c: Likewise.
6804         [BZ #3483]
6805         * elf/ldconfig.c (main): Call setlocale and textdomain.
6806         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
6808         [BZ #3480]
6809         * manual/argp.texi: Fix typos.
6810         * manual/charset.texi: Likewise.
6811         * manual/errno.texi: Likewise.
6812         * manual/filesys.texi: Likewise.
6813         * manual/lang.texi: Likewise.
6814         * manual/maint.texi: Likewise.
6815         * manual/memory.texi: Likewise.
6816         * manual/message.texi: Likewise.
6817         * manual/resource.texi: Likewise.
6818         * manual/search.texi: Likewise.
6819         * manual/signal.texi: Likewise.
6820         * manual/startup.texi: Likewise.
6821         * manual/stdio.texi: Likewise.
6822         * manual/sysinfo.texi: Likewise.
6823         * manual/syslog.texi: Likewise.
6824         * manual/time.texi: Likewise.
6825         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6827         [BZ #3465]
6828         * sunrpc/clnt_raw.c: Minimal message improvements.
6829         * sunrpc/pm_getmaps.c: Likewise.
6830         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
6831         * nis/nis_print_group_entry.c: Likewise.
6832         * locale/programs/repertoire.c: Likewise.
6833         * locale/programs/charmap.c: Likewise.
6834         * malloc/memusage.sh: Likewise.
6835         * elf/dl-deps.c: Likewise.
6836         * locale/programs/ld-collate.c: Likewise.
6837         * libio/vswprintf.c: Likewise.
6838         * malloc/memusagestat.c: Likewise.
6839         * sunrpc/auth_unix.c: Likewise.
6840         * sunrpc/rpc_main.c: Likewise.
6841         * nscd/cache.c: Likewise.
6842         * locale/programs/repertoire.c: Unify output messages.
6843         * locale/programs/charmap.c: Likewise.
6844         * locale/programs/ld-ctype.c: Likewise.
6845         * locale/programs/ld-monetary.c: Likewise.
6846         * locale/programs/ld-numeric.c: Likewise.
6847         * locale/programs/ld-time.c: Likewise.
6848         * elf/ldconfig.c: Likewise.
6849         * nscd/selinux.c: Likewise.
6850         * elf/cache.c: Likewise.
6851         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
6853         [BZ #3451]
6854         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
6855         change atomic.
6856         (ceil): Likewise.
6858 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
6860         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
6861         if N is one bigger than return value.
6862         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
6863         and l1 last arguments, if buf is defined, verify the return value
6864         equals to strlen (buf) and verify no byte beyond passed length
6865         is modified.
6867 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
6869         * po/sv.po: Update from translation team.
6871 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
6873         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
6874         noinline attribute.
6876 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
6878         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
6879         noinline attribute.
6881         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
6882         Use __new_sys_siglist instead of _sys_siglist_internal as
6883         second macro argument.
6884         (_old_sys_siglist): Use declare_symbol_alias macro instead of
6885         strong_alias.
6887 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
6889         [BZ #3493]
6890         * posix/unistd.h (sysconf): Remove const attribute.
6892         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
6893         temporary or deprecated addresses.
6894         Patch by Sridhar Samudrala <sri@us.ibm.com>.
6896         * string/Makefile (tests): Add tst-strxfrm2.
6897         * string/tst-strxfrm2.c: New file.
6899 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
6901         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
6902         rather than r->r_brk.
6904 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
6906         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
6907         optimization even if needed > n.
6909         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
6910         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
6911         return false, otherwise return true.
6912         (cache_rpath): Return decompose_rpath return value.
6914 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
6916         * include/libc-symbols.h (declare_symbol): Rename to...
6917         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
6918         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
6919         .size directive.
6920         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
6921         changes.
6922         * sysdeps/gnu/siglist.c: Likewise.
6924 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
6926         * sysdeps/powerpc/fpu/bits/mathinline.h
6927         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
6928         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
6930 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
6932         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
6933         Update handling of cache descriptor 0x49 for new models.
6934         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
6935         Likewise.
6937 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
6939         * malloc/memusage.c (dest): Reset not_me back to false after
6940         printing statistics.
6942 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
6944         * configure.in: Work around ld --help change and avoid -z relro
6945         test completely if the architecture doesn't care about security.
6947 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
6949         * po/sv.po: Update from translation team.
6951 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
6953         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
6954         generate compatibility version.
6956 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
6958         * configure.in: Relax -z relro requirement a bit.
6960         * po/sv.po: Update from translation team.
6962 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
6964         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
6965         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
6966         * elf/dl-close.c (_dl_close_worker): Likewise.
6967         * elf/dl-open.c (_dl_open_worker): Likewise.
6968         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
6970 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
6972         * configure.in: Require assembler support for visibility, compiler
6973         support for visibility and aliases, linker support for various -z
6974         options.
6975         * Makeconfig: Remove conditional code which now is unnecessary.
6976         * config.h.in: Likewise.
6977         * config.make.in: Likewise.
6978         * dlfcn/Makefile: Likewise.
6979         * elf/Makefile: Likewise.
6980         * elf/dl-load.c: Likewise.
6981         * elf/rtld.c: Likewise.
6982         * include/libc-symbols.h: Likewise.
6983         * include/stdio.h: Likewise.
6984         * io/Makefile: Likewise.
6985         * io/fstat.c: Likewise.
6986         * io/fstat64.c: Likewise.
6987         * io/fstatat.c: Likewise.
6988         * io/fstatat64.c: Likewise.
6989         * io/lstat.c: Likewise.
6990         * io/lstat64.c: Likewise.
6991         * io/mknod.c: Likewise.
6992         * io/mknodat.c: Likewise.
6993         * io/stat.c: Likewise.
6994         * io/stat64.c: Likewise.
6995         * libio/stdio.c: Likewise.
6996         * nscd/Makefile: Likewise.
6997         * stdlib/Makefile: Likewise.
6998         * stdlib/atexit.c: Likewise.
6999         * sysdeps/generic/ldsodefs.h: Likewise.
7000         * sysdeps/i386/dl-machine.h: Likewise.
7001         * sysdeps/i386/sysdep.h: Likewise.
7002         * sysdeps/i386/i686/memcmp.S: Likewise.
7003         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
7004         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
7005         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
7007         * Makerules: USE_TLS support is now default.
7008         * tls.make.c: Likewise.
7009         * csu/Versions: Likewise.
7010         * csu/libc-start.c: Likewise.
7011         * csu/libc-tls.c: Likewise.
7012         * csu/version.c: Likewise.
7013         * dlfcn/dlinfo.c: Likewise.
7014         * elf/dl-addr.c: Likewise.
7015         * elf/dl-cache.c: Likewise.
7016         * elf/dl-close.c: Likewise.
7017         * elf/dl-iteratephdr.c: Likewise.
7018         * elf/dl-load.c: Likewise.
7019         * elf/dl-lookup.c: Likewise.
7020         * elf/dl-object.c: Likewise.
7021         * elf/dl-open.c: Likewise.
7022         * elf/dl-reloc.c: Likewise.
7023         * elf/dl-support.c: Likewise.
7024         * elf/dl-sym.c: Likewise.
7025         * elf/dl-sysdep.c: Likewise.
7026         * elf/dl-tls.c: Likewise.
7027         * elf/ldconfig.c: Likewise.
7028         * elf/rtld.c: Likewise.
7029         * elf/tst-tls-dlinfo.c: Likewise.
7030         * elf/tst-tls1.c: Likewise.
7031         * elf/tst-tls10.h: Likewise.
7032         * elf/tst-tls14.c: Likewise.
7033         * elf/tst-tls2.c: Likewise.
7034         * elf/tst-tls3.c: Likewise.
7035         * elf/tst-tls4.c: Likewise.
7036         * elf/tst-tls5.c: Likewise.
7037         * elf/tst-tls6.c: Likewise.
7038         * elf/tst-tls7.c: Likewise.
7039         * elf/tst-tls8.c: Likewise.
7040         * elf/tst-tls9.c: Likewise.
7041         * elf/tst-tlsmod1.c: Likewise.
7042         * elf/tst-tlsmod13.c: Likewise.
7043         * elf/tst-tlsmod13a.c: Likewise.
7044         * elf/tst-tlsmod14a.c: Likewise.
7045         * elf/tst-tlsmod2.c: Likewise.
7046         * elf/tst-tlsmod3.c: Likewise.
7047         * elf/tst-tlsmod4.c: Likewise.
7048         * elf/tst-tlsmod5.c: Likewise.
7049         * elf/tst-tlsmod6.c: Likewise.
7050         * include/errno.h: Likewise.
7051         * include/link.h: Likewise.
7052         * include/tls.h: Likewise.
7053         * locale/global-locale.c: Likewise.
7054         * locale/localeinfo.h: Likewise.
7055         * malloc/arena.c: Likewise.
7056         * malloc/hooks.c: Likewise.
7057         * malloc/malloc.c: Likewise.
7058         * resolv/Versions: Likewise.
7059         * sysdeps/alpha/dl-machine.h: Likewise.
7060         * sysdeps/alpha/libc-tls.c: Likewise.
7061         * sysdeps/generic/ldsodefs.h: Likewise.
7062         * sysdeps/generic/tls.h: Likewise.
7063         * sysdeps/i386/dl-machine.h: Likewise.
7064         * sysdeps/ia64/dl-machine.h: Likewise.
7065         * sysdeps/ia64/libc-tls.c: Likewise.
7066         * sysdeps/mach/hurd/fork.c: Likewise.
7067         * sysdeps/mach/hurd/i386/tls.h: Likewise.
7068         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
7069         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
7070         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
7071         * sysdeps/s390/libc-tls.c: Likewise.
7072         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7073         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7074         * sysdeps/sh/dl-machine.h: Likewise.
7075         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7076         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7077         * sysdeps/x86_64/dl-machine.h: Likewise.
7079         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
7080         split out locking and parameter checking.
7081         (_dl_close): Call _dl_close_worker after locking and checking.
7082         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
7083         _dl_close.
7084         * elf/Makefile: Add rules to build and run tst-thrlock.
7085         * elf/tst-thrlock.c:  New file.
7087         [BZ #3426]
7088         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
7089         reality.
7091         [BZ #3429]
7092         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
7093         we are sure we do not need it anymore for _dl_close.  Also move
7094         the asserts inside the lock region.
7095         Patch mostly by Suzuki <suzuki@in.ibm.com>.
7097 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
7099         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
7100         argument.
7101         (_dl_lookup_symbol_x): Adjust caller.
7103         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
7104         _ns_global_scope.
7105         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
7107         * elf/dl-libc.c: Revert l_scope name changes.
7108         * elf/dl-load.c: Likewise.
7109         * elf/dl-object.c: Likewise.
7110         * elf/rtld.c: Likewise.
7111         * elf/dl-close.c (_dl_close): Likewise.
7112         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
7113         always use __rtld_mrlock_{change,done}.  Always free old scope list
7114         here if not l_scope_mem.
7115         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
7116         change.  Never free scope list here.  Just __rtld_mrlock_lock before
7117         the lookup and __rtld_mrlock_unlock it after the lookup.
7118         * elf/dl-sym.c: Likewise.
7119         * include/link.h (struct r_scoperec): Remove.
7120         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
7121         with l_scope_mem and l_scoperec_lock with l_scope_lock.
7123 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
7125         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
7127 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
7129         * configure.in: Disable building profile libraries by default.
7131 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
7133         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
7134         as signed longs, check for x_base + pos overflow.
7135         * sunrpc/Makefile (tests): Add tst-xdrmem2.
7136         * sunrpc/tst-xdrmem2.c: New test.
7138 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
7140         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
7141         _dl_lookup_symbol_x code.
7143 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
7145         * elf/dl-runtime.c: Include sysdep-cancel.h.
7146         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
7147         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
7148         instead of catomic_* macros.
7149         * elf/dl-sym.c: Include sysdep-cancel.h.
7150         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
7151         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
7152         * elf/dl-close.c: Include sysdep-cancel.h.
7153         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
7154         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
7155         * elf/dl-open.c: Include sysdep-cancel.h.
7156         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
7157         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
7159 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
7161         [BZ #3313]
7162         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
7163         fastbin rather than end of fastbin array.
7165 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
7167         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
7168         body macro.
7169         * sysdeps/x86_64/bits/atomic.h
7170         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
7171         (catomic_decrement): Use correct body macro.
7173 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
7175         * include/atomic.h: Add a unique prefix to all local variables
7176         in macros.
7177         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
7179 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
7181         [BZ #3369]
7182         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
7183         and 7.
7185 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
7187         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
7189 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
7191         [BZ #3313]
7192         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
7193         determine highest fast bin to consolidate, always look into all of
7194         them.
7195         (do_check_malloc_state): Only require for empty bins for large
7196         sizes in main arena.
7198         * libio/stdio.h: Add more __wur attributes.
7200         * elf/dl-minimal.c (realloc): Optimize last patch.
7202 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
7204         [BZ #3352]
7205         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
7206         and use memcpy() if it does.
7208 2006-11-12  Andreas Jaeger  <aj@suse.de>
7210         [BZ #2510]
7211         * manual/search.texi (Hash Search Function): Clarify.
7212         (Array Search Function): Clarify.
7214 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
7216         [BZ #2830]
7217         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
7218         shifting.
7219         * math/atest-exp2.c (read_mpn_hex): Likewise.
7220         * math/atest-sincos.c (main): Likewise.
7222 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
7224         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
7225         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
7226         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
7227         version GLIBC_2.6.
7228         * Versions.def: Add GLIBC_2.6 for libc.
7230         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
7232         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
7234 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
7236         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
7238         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
7240         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
7241         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
7243 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
7245         * include/atomic.c: Define catomic_* operations.
7246         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
7247         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
7248         * malloc/memusage.c: Likewise.
7249         * gmon/mcount.c: Likewise.
7250         * elf/dl-close.c: Likewise.
7251         * elf/dl-open.c: Likewise.
7252         * elf/dl-profile.c: Likewise.
7253         * elf/dl-sym.c: Likewise.
7254         * elf/dl-runtime.c: Likewise.
7255         * elf/dl-fptr.c: Likewise.
7256         * resolv/res_libc.c: Likewise.
7258 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
7260         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
7261         components which lack them.
7263         * nis/nis_subr.c (nis_getnames): Make sure that we always return
7264         at least one entry consisting of the parameter concatenated with
7265         the domain.
7267 2006-10-10  Roland McGrath  <roland@frob.com>
7269         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
7270         * sysdeps/mach/hurd/futimes.c: Likewise.
7271         * sysdeps/mach/hurd/lutimes.c: Likewise.
7273 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
7274             Jakub Jelinek  <jakub@redhat.com>
7276         Implement reference counting of scope records.
7277         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
7278         from the list in objects which remain.  Always allocate new scope
7279         record.
7280         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
7281         don't resize, allocate a new one.
7282         * elf/dl-runtime.c: Update reference counters before using a scope
7283         array.
7284         * elf/dl-sym.c: Likewise.
7285         * elf/dl-libc.c: Adjust for l_scope name change.
7286         * elf/dl-load.c: Likewise.
7287         * elf/dl-object.c: Likewise.
7288         * elf/rtld.c: Likewise.
7289         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
7290         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
7291         Add l_scoperec_lock.
7292         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
7293         * sysdeps/generic/rtld-lowlevel.h: New file.
7295         * include/atomic.h: Rename atomic_and to atomic_and_val and
7296         atomic_or to atomic_or_val.  Define new macros atomic_and and
7297         atomic_or which do not return values.
7298         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
7299         Various cleanups.
7300         * sysdeps/i386/i486/bits/atomic.h: Likewise.
7302         * po/sv.po: Update from translation team.
7304 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
7306         * Versions.def: Add GLIBC_2.6 to libpthread.
7308         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
7309         (versioned_symbol): Likewise.
7310         (compat_symbol): Likewise.
7312         * po/tr.po: Update from translation team.
7314 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
7316         * nis/Banner: Removed.  It's been integral part forever and the
7317         author info is incomplete anyway.
7318         * libio/Banner: Likewise.
7320         * nis/nis_table.c (nis_list): If __follow_path fails in the new
7321         code, make sure the nis_freeresult call doesn't crash and that the
7322         result is reported correctly.
7324 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
7326         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
7327         when callback is NULL.
7329         * nis/Versions (libnss_nisplus): Add
7330         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
7331         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
7332         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
7333         _nss_create_tablename): Rename to...
7334         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
7335         ... these.  No longer static.
7336         (internal_setgrent): Adjust users.
7337         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
7338         Don't use locking around _nss_grp_create_tablename call.
7339         * nis/nss_nisplus/nisplus-initgroups.c: New file.
7341 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
7343         * version.h (VERSION): Bump to 2.5.90 for new development tree.
7345 2006-10-06  Andreas Jaeger  <aj@suse.de>
7347         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
7349 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
7351         * po/pl.po: Update from translation team.
7353         * nscd/nscd.c (main): Fix typo in message.
7354         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
7356 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
7358         [BZ #3291]
7359         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
7360         errno.h, signal.h, unistd.h and sysdep-cancel.h.
7361         (__sigprocmask): Define.
7363 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
7365         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
7366         used.
7368 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
7370         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
7371         in oldtotal and newtotal calculation.
7372         * nscd/nscd-client.h (struct mapped_database): Add datasize
7373         field.
7374         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
7375         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
7376         increased.
7377         (__nscd_cache_search): Add checks to make sure we never reference
7378         data beyond the current mapping.
7380 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
7382         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
7383         variables const to avoid compiler warnings.
7385         * io/fts.c (fts_close): Remove redundant checks.
7386         (fts_build): Likewise.
7387         (fts_palloc): Likewise.
7389         * manual/message.texi (Advanced gettext functions,
7390         Using gettextized software): Fix typos.
7392 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
7394         * posix/glob.c (glob_in_dir): Add some comments and asserts to
7395         explain why there are no leaks.
7397 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
7399         * libio/wmemstream.c: Include <wchar.h>.
7400         * libio/bug-wmemstream1.c: Likewise.
7401         * libio/tst-wmemstream1.c: Likewise.
7402         * libio/tst-wmemstream2.c: Likewise.
7404         * version.h (RELEASE): Bump to 2.5.
7405         * README: Regenerated.
7407         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
7409         [BZ #3273]
7410         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
7411         found no group members.
7412         Patch by Petr Baudis.
7414 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
7416         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
7417         assert bootstrap_map.l_tls_modid is zero.
7418         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
7419         if USE___THREAD.
7421 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
7423         * libio/stdio.h: Move open_wmemstream prototype to ...
7424         * wcsmbs/wchar.h: ... here.
7426 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
7428         [BZ #3252]
7429         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
7430         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
7431         __{,l}chown to handle the rest.
7432         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
7433         fchownat syscall and __ASSUME_32BITUIDS case inline, call
7434         __{,l}chown to handle the rest.
7435         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
7436         i386/fchownat.c.
7437         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
7438         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
7440         [BZ #3253]
7441         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
7442         time, rather allocate increasingly bigger arrays of pointers, if
7443         possible with alloca, if too large with malloc.
7445 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
7447         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
7449         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
7451 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
7453         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
7454         home addresses.
7455         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
7456         IFA_F_HOMEADDRESS flag for interfaces.
7457         * include/ifaddrs.h (struct in6addrinfo): Define
7458         in6ai_homeaddress.
7460 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
7462         [BZ #3225]
7463         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
7464         PTR_DEMANGLE3): Define.
7465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
7466         PTR_DEMANGLE3): Likewise.
7467         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
7468         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
7469         Likewise.
7470         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
7472 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
7474         * po/libc.pot: Regenerated.
7475         * po/be.po: Updated.
7476         * po/ca.po: Likewise.
7477         * po/cs.po: Likewise.
7478         * po/da.po: Likewise.
7479         * po/de.po: Likewise.
7480         * po/el.po: Likewise.
7481         * po/en_GB.po: Likewise.
7482         * po/es.po: Likewise.
7483         * po/fi.po: Likewise.
7484         * po/fr.po: Likewise.
7485         * po/gl.po: Likewise.
7486         * po/hr.po: Likewise.
7487         * po/hu.po: Likewise.
7488         * po/ja.po: Likewise.
7489         * po/ko.po: Likewise.
7490         * po/nb.po: Likewise.
7491         * po/nl.po: Likewise.
7492         * po/pl.po: Likewise.
7493         * po/pt_BR.po: Likewise.
7494         * po/ru.po: Likewise.
7495         * po/rw.po: Likewise.
7496         * po/sk.po: Likewise.
7497         * po/sv.po: Likewise.
7498         * po/tr.po: Likewise.
7499         * po/zh_CN.po: Likewise.
7500         * po/zh_TW.po: Likewise.
7502         [BZ #3137]
7503         * iconv/iconv_prog.c (main): Fix spelling in error message.
7504         * iconv/iconvconfig.c (main): Likewise.
7505         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
7506         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
7507         * locale/programs/localedef.c (main): Likewise.
7508         * locale/programs/repertoire.c (repertoire_read): Likewise.
7509         * timezone/zdump.c (main): Likewise.
7510         * nscd/connections.c (handle_request): Fix spelling in log message.
7511         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
7513 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
7515         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
7516         interfaces.
7518 2006-09-20  Andreas Jaeger  <aj@suse.de>
7520         * math/libm-test.inc (lrint_test_upward): Fix typo.
7522 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
7524         [BZ #2592]
7525         * math/libm-test.inc (lrint_test_tonearest): New function.
7526         (lrint_test_towardzero): New function.
7527         (lrint_test_downward): New function.
7528         (lrint_test_upward): New function.
7529         (main): Run these new tests.
7530         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
7531         of values near to 0.
7532         (two52): Use double not long double.
7533         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
7534         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
7535         (two23): Use float not double.
7536         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
7537         (two23): Use float not double.
7538         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
7539         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
7540         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
7541         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
7543 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7545         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
7546         Cast sp to unsigned long to avoid compiler warning.
7547         Use __makecontext_ret function instead of a trampoline on the stack.
7548         (__makecontext_ret): New function.
7549         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
7551 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
7553         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
7554         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
7555         bits.
7557 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
7559         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
7560         sure no reference to the unloaded map's search list remains in the
7561         dependency's scope.
7563 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
7565         * elf/Makefile: Add rules to build and run unload7 test.
7566         * elf/unload7.c: New test.
7567         * elf/unload7mod1.c: New file.
7568         * elf/unload7mod2.c: New file.
7570 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
7572         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
7573         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
7574         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
7575         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
7576         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
7577         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
7578         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
7579         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
7580         PTRACE_GETEVENTMSG): Likewise.
7581         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
7582         values.
7584 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
7586         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
7587         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
7588         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
7589         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
7591 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
7593         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
7594         write '\0' to the fd.
7595         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
7596         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
7597         Change regs to unsigned long pointer from unsigned int, fix fscr
7598         offset.
7600 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
7602         * io/Makefile (CFLAGS-fstatat.c): Set.
7603         (CFLAGS-fstatat64.c): Likewise.
7604         (CFLAGS-mknodat.c): Likewise.
7606         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
7607         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7608         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
7609         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
7611 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
7612             Steven Munroe  <sjmunroe@us.ibm.com>
7614         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
7615         names to the beginning.  Rename "cell" to "cellbe".
7616         (_dl_powerpc_platforms): New.
7617         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
7618         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
7619         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
7620         (_DL_HWCAP_PLATFORM): Define to new mask.
7621         (_dl_platform_string, _dl_string_platform): New functions.
7622         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
7623         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
7625 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
7627         [BZ #2526]
7628         * README.libm: Fix a thinko in sqrt algorithm description.
7630         [BZ #3143]
7631         * manual/string.texi (argz_delete): Fix prototype.
7632         Patch by <alpt@freaknet.org>.
7634 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
7636         [BZ #3138]
7637         * io/test-lfs.c (do_prepare): Give name_len type size_t.
7638         * io/tst-fcntl.c (do_prepare): Likewise.
7639         * posix/tst-exec.c (do_prepare): Likewise.
7640         * posix/tst-preadwrite.c (do_prepare): Likewise.
7641         * posix/tst-spawn.c (do_prepare): Likewise.
7642         * posix/tst-truncate.c (do_prepare): Likewise.
7643         * rt/tst-aio.c (do_prepare): Likewise.
7644         * rt/tst-aio64.c (do_prepare): Likewise.
7645         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
7646         size_t.
7648 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
7650         [BZ #2821]
7651         * time/mktime.c (guess_time_tm): Fix overflow detection.
7652         * time/Makefile (tests): Add bug-mktime1.
7653         * time/bug-mktime1.c: New file.
7655         [BZ #3189, #3188]
7656         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
7657         (mremap): Likewise.
7659 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
7661         [BZ #1006]
7662         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
7663         Ensure relocation doesn't clobber any bits outside of the
7664         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
7665         R_SPARC_HI22 and R_SPARC_H44.
7667         [BZ #2775]
7668         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
7669         (long) (MINSIZE + nb - old_size) is positive.
7671         * malloc/arena.c (grow_heap): When growing bail even if new_size
7672         is negative.
7674         [BZ #3155]
7675         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
7676         stack below r1.
7678 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
7680         * posix/regex_internal.c (re_string_reconstruct): Handle
7681         offset < pstr->valid_raw_len && pstr->offsets_needed case.
7682         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
7683         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
7684         re_string_context_at.
7685         * posix/Makefile: Add rules to build and run bug-regex26 test.
7686         * posix/bug-regex26.c: New test.
7688         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
7689         rather than col_sym_free.  Move seqp declaration earlier.
7691         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
7693 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
7695         * nscd/initgrcache.c (addinitgroupsX): Move any_success
7696         decl before first goto out.
7698 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
7700         * Makerules (shlib.lds): If have-hash-style, put .hash section
7701         at the end of the RO segment.
7703 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
7705         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
7706         style hash table format is used.
7708 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
7710         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
7711         randomization rather than before.
7712         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
7714 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
7716         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
7718         * malloc/malloc.c (_int_malloc): Use full list insert and not
7719         shortcut which assumes the list is empty for large requests
7720         too.
7722         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
7724 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
7726         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
7727         and offout arguments to the prototype.
7728         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
7729         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
7730         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
7731         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
7732         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
7733         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
7734         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
7735         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
7737 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
7739         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
7741         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
7742         dlopen parameters.
7744 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
7746         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
7747         only if herrno is NETDB_INTERNAL.  Handle errors other than
7748         ERANGE outside of the loops, handle TRY_AGAIN.
7750         * locale/programs/ld-ctype.c (translit_flatten): Issue error
7751         if other's ctype category was missing.
7752         * locale/programs/ld-collate.c (collate_read): Return if
7753         copy_locale's collate category is missing.
7755 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
7757         [BZ #2684]
7758         * malloc/malloc.c (public_rEALLOc): Try harder by using other
7759         arenas if allocation failed.
7760         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
7762 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
7764         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
7765         waste bins[0..1].
7766         (malloc_state): Reduce bins size by 2.
7767         (_int_malloc): Fix test for large enough buffer for early termination.
7768         When no unsorted block matches perfectly and an exiting block has
7769         to be split, use full list insert and not shortcut which assumes
7770         the list is empty.
7772         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
7773         failure.
7775 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
7777         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
7778         do anything.
7780         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
7781         symbol require exact match (these are PLTs).
7782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
7783         (_dl_ppc64_addr_sym_match): Likewise.
7785         [BZ #2683]
7786         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
7787         If symbol has a value use it.
7788         * elf/tst-dladdr1.c: New file.
7789         * elf/Makefile: Add rules to build and run tst-addr1.
7791 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
7793         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
7794         keeps failing and heap growth or new heap creation isn't
7795         successful either.
7796         * malloc/tst-malloc.c (main): Add new tests.
7798 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
7800         [BZ #2734]
7801         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
7802         as in the x86-64 code to use bswap.
7804 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
7806         [BZ #2680]
7807         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
7808         __USE_UNIX98.
7809         * posix/bits/unistd.h: Likewise.
7811 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
7813         [BZ #2751]
7814         * string/strchr.c: Add cast to avoid warning.
7816 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
7818         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
7819         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
7820         limit is needed to avoid the exploding of the address space
7821         requirement for secondary heaps.
7822         * malloc/arena.c (HEAP_MAX_SIZE): Define using
7823         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
7825 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
7827         [BZ #3018]
7828         * Makerules (depfiles): Handle extra-test-objs the same as
7829         extra-objs.
7830         (common-mostlyclean): Likewise.
7831         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
7832         instead.
7833         * elf/Makefile (extra-objs): Likewise.
7834         * stdlib/Makefile (extra-objs): Likewise.
7836 2006-08-14  Eric Blake  <ebb9@byu.net>
7838         [BZ #3044]
7839         * misc/error.h: Assume C89 or better.
7840         * misc/error.c: Likewise.
7842 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
7844         [BZ #3040]
7845         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
7846         __ASSUME_ATFCTS is defined.
7848 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
7850         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
7851         to sort in each call.
7853         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
7854         is empty simply return and use next service.
7855         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
7857         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
7858         tells us when not finding a charmap file is an error.
7859         * locale/programs/charmap.h: Adjust charmap_read prototype.
7860         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
7861         cannot find a charmap.
7862         * locale/programs/localedef.c (main): Adjust charmap_read call.
7864 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
7866         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
7867         sysdeps/posix/pause.c implementation instead.
7869 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
7871         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
7872         to EPERM.
7874 2006-08-13  Andreas Schwab  <schwab@suse.de>
7876         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
7877         Don't clobber caller's LRSAVE.
7878         (_dl_prof_resolve): Likewise.
7880 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
7882         [BZ #1996]
7883         * libio/memstream.c (open_memstream): Allocate initial buffer with
7884         calloc.
7885         * libio/wmemstream.c (open_wmemstream): Likewise.
7886         * libio/strops.c: Pretty printing.
7887         (_IO_str_overflow): Clear uninitialized part of the new buffer.
7888         (enlarge_userbuf): New function.
7889         (_IO_str_seekoff): Call it if seek position is larger than current
7890         buffer.
7891         * libio/wstrops.c: Likewise.
7892         * libio/vasprintf.c: Add comment as to why we do not have to use
7893         calloc instead of malloc to allocate initial buffer.
7894         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
7895         * libio/bug-memstream1.c: New file.
7896         * libio/bug-wmemstream1.c: New file.
7898 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
7900         * libio/wstrops.c: Remove dead macro definitions and comments.
7901         * libio/strops.c: Likewise.
7903         [BZ #2764]
7904         * login/utmpname.c (__utmpname): Remove unnecessary test.
7906 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
7908         [BZ #2832]
7909         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
7910         0s from integers.
7912 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
7914         [BZ #2987]
7915         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
7916         for CPU clocks.
7917         * sysdeps/unix/clock_settime.c: Add support for platform-specific
7918         setting of CPU clocks.
7920 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
7922         [BZ #2841]
7923         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
7924         since C99 requires the result to promote to 'int' when uint_least8_t
7925         and uint_least16_t promote to 'int'.
7927 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
7929         [BZ #3013]
7930         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
7931         lenght of one output field, correct bitmask creation.
7932         * locale/programs/ld-time.c: Add alignment.
7934         [BZ #2997]
7935         * misc/error.c: Add space between program name and message if file
7936         name is missing.
7938 2006-08-03  Eric Blake  <ebb9@byu.net>
7940         [BZ #2998]
7941         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
7943 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
7945         * malloc/memusagestat.c: Silence warnings.
7947         * malloc/malloc.c: Dynamically size mmap treshold if the program
7948         frees mmaped blocks.
7949         Patch by Valerie Henson and Arjan van de Ven.
7951 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
7953         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
7954         __USE_GNU.
7956         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
7957         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
7958         (DEF): Don't put the var into .gnu.linkonce.r.* section.
7959         Only provide var definitions in strtol_l (or for *ull*
7960         in strtoll_l).
7962         * stdio-common/bug16.c (tests): New array.
7963         (do_tests): Allow the first hexadecimal digit
7964         to be 1, 2, 4 or 8.  Do 3 additional tests.
7966         * sysdeps/s390/fpu/libm-test-ulps: Update.
7968         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
7969         fchownat syscall if available.
7970         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
7971         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
7972         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
7974 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
7976         * nis/nis_xdr.c: Avoid some function calls.
7978 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
7979             Ulrich Drepper  <drepper@redhat.com>
7981         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
7982         short cut if only one name component is stripped away.
7984 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
7986         * nis/nis_call.c: Minor cleanups throughout.
7987         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
7988         (first_shoot): Add search_parent_first parameter.  Only if it is set
7989         search parent server first.
7990         If directory for table found through cold start cache is not the same
7991         as referenced in the cache, don't use it.
7992         (__nisfind_server): Take additional parameter.  Pass it on to
7993         first_shoot.
7994         (__prepare_niscall): Adjust __nisfind_server call.
7995         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
7996         * nis/nis_table.c: Adjust __nisfind_server call.
7997         * nis/nis_lookup.c: Likewise.
7998         (nis_lookup): Don't loop endlessly if name is reduced to ".".
8000 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
8002         [BZ #2182]
8003         * math/s_cacosh.c: Return values from positive branch.
8004         * math/s_cacoshf.c: Likewise.
8005         * math/s_cacoshl.c: Likewise.
8007         [BZ #2883]
8008         * sysvipc/sys/msg.h: Change return value to ssize_t.
8009         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
8010         * sysvipc/msgrcv.c: Likewise.
8011         * include/sys/msg.h: Likewise.
8013         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
8014         test introduced in patch for bz #661.
8015         (getgrouplist): Simplify code a bit.  Don't allocate one additional
8016         element for NEWGROUPS.
8018         [BZ #2908]
8019         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
8020         'f', use '1' as leading digit not '\1'.
8021         * stdio-common/Makefile (tests): Add bug16.
8022         * stdio-common/bug16.c: New file.
8024         [BZ #2914]
8025         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
8026         and don't try to open it.  The patch introducing the macro
8027         contained a bug and used the same file name as the new file
8028         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
8029         this out completely.
8031         [BZ #2926]
8032         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
8033         Patch by Jerry James <Jerry.James@usu.edu>.
8035         * rt/Makefile (tests): Add tst-clock2.
8036         * rt/tst-clock2.c: New file.
8038         [BZ #2978]
8039         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
8040         function and its parameters and pass it to new thread.
8041         (__gai_notify): Add support for alternative waiting for completion.
8042         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
8043         waiting for completion.
8044         * resolv/getaddrinfo_a.c: Likewise.
8045         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
8046         waiting for completion is used.
8047         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
8048         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
8049         * resolv/gai_error.c: Likewise.
8050         * resolv/gai_sigqueue.c: Likewise.
8052 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
8054         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
8055         errno to EBADF and return MACH_PORT_NULL.
8057 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
8059         [BZ #2980]
8060         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
8062 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
8064         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
8065         walk them instead of the symbol table.
8067 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
8069         [BZ #2098]
8070         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
8071         status of NSS calls, not the number of returned entries.
8073         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
8074         request_key, keyctl.
8076 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
8078         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
8080 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
8082         * elf/tst-auditmod1.c: Fix typo in #error.
8084 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
8086         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
8088         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
8090 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
8092         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
8093         that the directory is empty even on non-POSIX filesystems.
8095 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
8097         * elf/dl-open.c (dl_open_worker): Add branch prediction.
8099         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
8100         the backend NSS module.  If backend setgrent call failed, don't have
8101         internal_setgrent fail.  Just remember this until it is needed.
8102         * nis/nss_compat/compat-pwd.c: Likewise.
8103         * nis/nss_compat/compat-spwd.c: Likewise.
8105 2006-07-30  Roland McGrath  <roland@redhat.com>
8107         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
8108         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
8109         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
8110         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
8112         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
8113         (nanosleep_not_cancel): New macro.
8114         (sigsuspend_not_cancel): new macro.
8115         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
8116         (do_sigsuspend): Define as inline.
8117         (__sigsuspend): Always use do_sigsuspend.
8118         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
8119         * include/signal.h: Declare __sigsuspend_nocancel.
8120         * sysdeps/posix/pause.c
8121         [! NO_CANCELLATION] (__pause_nocancel): New function.
8123         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
8124         * include/time.h (__nanosleep_nocancel): Likewise.
8126 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
8128         * locale/programs/localedef.c (add_to_readlist): Rename local
8129         variables to avoid confusion.
8131         * locale/programs/charmap.c (charmap_read): Emit error message if
8132         charmap couldn't be found or read.
8134 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
8136         * sysdeps/unix/sysv/linux/kernel-features.h: Define
8137         __ASSUME_FUTEX_LOCK_PI.
8138         * include/time.h: Declare __nanosleep_nocancel.
8139         * include/unistd.h: Declare __pause_nocancel.
8141         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
8142         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
8143         get the __stack_chk_fail_local definition when it's needed.
8145 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
8147         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
8148         * dlfcn/bug-atexit3.c: New file.
8149         * dlfcn/bug-atexit3-lib.cc: New file.
8151         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
8152         used when the namespace is not the base namespace.
8154 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
8156         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
8157         (__new_exitfn): Bump it in every successful call.
8158         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
8159         more exit handlers, call them right away.
8160         * stdlib/exit.h: Declare __new_exitfn_called.
8162 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
8164         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
8165         calling registered handler.
8167         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
8168         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8169         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8170         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
8171         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8172         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8173         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8174         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8176 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
8178         * elf/dl-lookup.c (dl_new_hash): New functions.
8179         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
8180         value here.  Compute new-style hash value.  Pass new hash value
8181         and reference to variable with the old value to do_lookup_x.
8182         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
8183         old-style hash table.
8184         (_dl_debug_bindings): Pass new hash value and reference to variable
8185         with the old value to do_lookup_x.
8186         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
8187         new-style hash value and change old-style hash value parameter to
8188         be a reference.  Reoganize functions to determine whether
8189         new-style hash table is available.  Only fall back on old-style
8190         table.  If old-style hash value is needed, compute it here.
8191         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
8192         entry.
8193         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
8194         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
8195         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
8196         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
8197         * Makeconfig: If linker supports --hash-style option add it to all
8198         linker command lines to build DSOs.
8199         * config.make.in: Define have-hash-style.
8200         * configure.in: Test whether linker supports --hash-style option.
8202         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
8203         * sysdeps/generic/ldsodefs.h: Adjust prototype.
8205 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
8207         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
8208         auditing.
8210         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
8211         RPATH of main map twice.
8213 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
8215         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
8216         look further, return original strings.
8217         (_nl_find_msg): Do not return found translation if the conversion
8218         failed.  Either signal the string is unusable or that something went
8219         wrong and the original should be used.
8221 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
8223         * string/_strerror.c (__strerror_r): Add __builtin_expect.
8225 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
8227         [BZ #2766]
8228         * misc/insremque.c (insque): Handle prev == NULL.
8229         * misc/Makefile (tests): Add tst-insremque.
8230         * misc/tst-insremque.c: New test.
8232 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
8234         [BZ #2792]
8235         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
8236         conflict with DL_DST_REQUIRED.
8238 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
8240         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
8241         match what Solaris does.
8243 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
8245         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
8246         local_setegid instead of seteuid and setegid.
8247         * sysdeps/generic/local-setxid.h: New file.
8248         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
8250         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
8252         * string/Makefile (tests): Add bug-envz1.
8253         * string/bug-envz1.c: New file.
8255 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
8257         * posix/regex_internal.c (re_string_skip_chars): If no character has
8258         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
8259         to the byte which couldn't be converted.
8260         (re_string_reconstruct): Don't clear valid_raw_len before calling
8261         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
8262         tip_context using re_string_context_at.
8263         * posix/Makefile: Add rules to build and run bug-regex25 test.
8264         * posix/bug-regex25.c: New test.
8266 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
8268         [BZ #2703]
8269         * string/envz.c (envz_strip): Correct erroneously reversed src
8270         and dest parameters to memmove() invocation.
8272 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
8274         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
8275         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
8276         to make sure the database has been already invalidated.
8277         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
8278         after the cache has been invalidated.  Use pthread_mutex_lock rather
8279         than pthread_mutex_trylock if fd != -1.
8280         * nscd/connections.c (invalidate_cache): Add fd argument, write
8281         response to fd if not calling prune_cache, pass fd to prune_cache.
8282         (handle_request): Adjust invalidate_cache caller.
8283         (nscd_run): Pass -1 as fd to prune_cache.
8285 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
8287         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
8288         the correct place.
8290 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
8292         * nscd/nscd.h (struct database_dyn): Add prunelock field.
8293         * nscd/cache.c (prune_cache): Take prunelock before starting the
8294         work.  Just return in case it is already taken.
8295         * nscd/connections.c (dbs): Initialize .prunelock.
8297 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
8299         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
8300         copying.  No need to allocate new array for group members.  Just
8301         move the pointers and update the size.
8303         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
8304         Avoid memory leak in case realloc fails.  Simplification for
8305         better code generation.
8307         Avoid deprecation warning because of libc_hidden_proto for
8308         inet6_option_alloc.
8309         * inet/inet6_option.c (option_alloc): Renamed from
8310         inet6_option_alloc.  Made static.
8311         (inet6_option_alloc): Now a simple wrapper around option_alloc.
8312         (inet6_option_append): Call option_alloc.
8313         * include/netinet/in.h: Remove libc_hidden_proto for
8314         inet6_option_alloc.
8316         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
8317         for cleanup when cb!=NULL [Coverity CID 233].
8319 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
8321         [BZ #2693]
8322         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
8323         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
8324         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
8325         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
8326         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
8327         and inet6_rth_getaddr.
8328         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
8329         array.
8330         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
8331         Mark inet6_option_* interfaces as deprecated.
8332         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
8333         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
8334         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
8335         inet6_rth_segments, and inet6_rth_getaddr.
8336         * inet/inet6_opt.c: New file.
8337         * inet/inet6_rth.c: New file.
8339         * inet/netinet/icmp6.h: Pretty printing.
8341         [BZ #2683]
8342         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
8344 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
8346         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
8347         doing it all here.  When server does not know the answer do not
8348         fail immediate, try parent first.
8350         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
8351         overflow test.
8353 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
8355         * nis/nis_call.c (__prepare_niscall): New function.  Split out
8356         from __do_niscall.
8357         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
8358         and exported.
8359         (__follow_path): New function.  Split out from nis_list.
8360         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
8361         _xdr_nis_result.
8362         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
8363         _xdr_nis_result.
8364         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
8365         and __follow_path.
8366         * nis/Versions: Export __prepare_niscall, __create_ib_request,
8367         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
8368         from libnsl for version GLIBC_PRIVATE.
8369         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
8370         Remove entry parameter from _nss_nisplus_parse_pwent and
8371         _nss_nisplus_parse_grent.
8372         * nis/nss_nisplus/nisplus-parser.c: Likewise.
8373         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
8374         again.  Rewrite getpwent handling to not use nis_first_entry and
8375         nis_next_entry.  Roll out own niscall handling.
8376         * nis/nss_nisplus/nisplus-grp.c: Likewise.
8378         * sunrpc/xdr_rec.c: Fix typo in comment.
8380 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
8382         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
8383         handling.
8385         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
8386         to allocate memory for my_pollfd.  Better initialization of
8387         cb_is_running.  Use TEMP_FAILURE_RETRY.
8389         * malloc/memusage.sh (memusageso): Add quotes.
8390         (memusagestat): Likewise.
8391         * debug/xtrace.sh (pcprofileso): Likewise.
8392         (pcprofiledump): Likewise.
8393         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
8394         replacement.
8395         * malloc/Makefile ($(objpfx)memusage): Likewise.
8397         * nis/nis_callback.c (__nis_create_callback): Calls to
8398         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
8399         asprintf call fails.
8401         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
8402         no uninitialized memory is passed to sendto.
8404 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
8406         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
8407         of snprintf+strdup.  Handle OOM.
8408         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
8409         cb->serv together.  Remove now obsolete free calls.
8410         (__nis_destroy_callback): Remove now obsolete free call.
8412 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
8414         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
8415         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
8416         and ULA respectively). Set precedence for IPv4 address to 10 as
8417         defined in RFC3484 for preferring IPv6.
8418         * posix/gai.conf: Update to match the new default tables.
8420 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
8422         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
8423         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
8424         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
8425         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
8427         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
8428         Removed.
8429         (init_nss_interface): Remove initialization of these variables.
8431 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
8433         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
8434         nis_free_directory forward to avoid duplication.
8436 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
8438         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
8439         rec_dirsearch returning NULL.
8440         (first_shoot): Handle __nis_finddirectory returning NULL.
8441         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
8443         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
8444         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
8446 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
8448         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
8449         pid changed.
8451 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
8453         * include/rpc/pmap_prot.h: Mark all functions as hidden.
8455         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
8456         * nscd/nscd_getgr_r.c: Likewise.
8458         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
8460         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
8461         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
8463         * stdlib/longlong.h (__clz_tab): Mark as hidden.
8465         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
8467         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
8469         * include/rpc/auth.h: Mark xdr_des_block_internal and
8470         xdr_opaque_auth_internal as hidden.
8472         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
8473         hidden.
8475         * include/rpc/xdr.h: Mark all _internal functions as hidden.
8477         * misc/getusershell.c (okshells): Don't use static initializers,
8478         do it dynamically.
8480         * stdlib/fmtmsg.c (keywords): Change type of len element to
8481         uint32_t to not waste space on 64bit machines.
8483         * locale/setlocale.c: Change _nl_category_names into a string.
8484         Add new _nl_category_name_idxs.  Change all users.
8485         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
8486         Declare _nl_category_name_idxs.
8487         * locale/findlocale.c: Adjust for _nl_category_names change.
8488         * locale/loadlocale.c: Likewise.
8489         * locale/newlocale.c: Likewise.
8490         * intl/dcigettext.c: Likewise.
8492         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
8493         (add_alias2): ...here.  New function.
8494         (__gconv_read_conf): Simplify builtin alias handling.
8495         (builtin_aliases): Convert to string to avoid relocations.
8496         * iconv/gconv_builtin.h: Add comment about correct formatting.
8498 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
8500         * resolv/res_debug.c (loc_ntoa): Make error const.
8502 2006-05-14  Andreas Schwab  <schwab@suse.de>
8504         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
8506 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
8508         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
8509         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
8510         sizeof (cpu_set_t).
8512 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
8514         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
8516         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
8518         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
8519         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
8521         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
8522         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
8524         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
8525         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
8526         xdr_cback_data.
8528         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
8529         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
8530         xdr_ypupdate_args.
8532         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
8533         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
8535         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
8536         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
8538         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
8539         * include/rpcsvc/nis_callback.h: New file.
8541         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
8542         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
8544         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
8545         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
8547         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
8548         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
8550         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
8551         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
8553         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
8554         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
8555         xdr_ypdelete_args.
8557         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
8558         __BEGIN_DECLS and __END_DECLS, the header is not installed.
8560         * nis/nis_error.c: Remove table of strings.  Use position
8561         independent mechanism.
8562         * nis/nis_error.h: New file.
8564 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
8566         * locale/programs/ld-time.c (time_finish): If wide era name or
8567         format aren't provided, set both wname and wformat to L"".
8569 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
8571         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
8572         results if the call was succesful.
8574         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
8576         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
8577         as hidden.
8579 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
8581         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
8583 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
8585         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
8586         caller makes sure this is not the case.
8587         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
8589 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
8591         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
8592         calls.
8594         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
8595         [Coverity CID 229, 230]
8597         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
8598         DGETTEXT calls.
8599         (hol_help): Likewise.  [Coverity CID 226, 227]
8601         * string/argz-replace.c (__argz_replace): Unconditionally call
8602         free on SRC.  [Coverity CID 225]
8604         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
8605         the return value of __nis_default_owner and __nis_default_group,
8606         it has been especially allocated.  [Coverity CID 224]
8608         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
8609         searchgroup and searchowner.  Significantly simplified.
8610         (__nis_default_owner): Remove duplication.  Do not locally copy the
8611         string before duplicating it.
8612         (__nis_default_group): Likewise.
8614         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
8615         we must clear the variable before calling __nisfind_server.
8617         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
8618         nis_getnames.  [Coverity CID 223]
8620         * locale/programs/locfile.c (locfile_read): Use alloca instead of
8621         xmalloc to allocate local repertoire name.  [Coverity CID 222]
8623         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
8624         allocate memory for the input to add_bytes.  [Coverity CID 221]
8626         * posix/wordexp.c (w_addword): Free word if realloc fails and it
8627         was allocated here.  [Coverity CID 219, 220]
8629         * posix/getconf.c (print_all): Free confstr data after printing.
8630         [Coverity CID 218]
8632         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
8633         list allocation fails.  [Coverity CID 215]
8635         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
8636         [Coverity CID 213]
8638         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
8639         string is NULL.  [Coverity CID 212]
8640         * argp/Makefile: Add rules to build and run bug-argp1.
8641         * argp/bug-argp1.c: New file.
8643         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
8644         end of string.
8645         * stdlib/canonicalize.c (__realpath): Likewise.
8647         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
8648         pointer.  [Coverity CID 206]
8650         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
8651         in statically linked code.
8652         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
8653         statically built code, be prepared to have no link map.
8654         [Coverity CID 205]
8656         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
8657         dgettext calls. [Coverity CID 204]
8659         * argp/argp-help.c (struct uparams): Remove valid member.  Change
8660         the one user.
8661         (uparam_names): Reduce size.  Avoid relative relocations.
8662         Moved to read-only segment.
8663         (fill_in_uparams): Update for new layout.
8665         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
8666         assumed to always be != NULL. [Coverity CID 202]
8668         * argp/argp-help.c (hol_entry_help): Remove some dead code
8669         [Coverity CID 200].
8671         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
8672         away a few more unconditional yperr2nss calls.
8673         (_nss_nis_getservbyname_r): Likewise.
8675 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
8677         * sysdeps/generic/ldsodefs.h: Remove support for non-core
8678         architectures.
8680         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
8681         that unused memory passed to sendto is nevertheless initialized.
8683         [BZ #2499]
8684         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
8685         possibly unaligned memory accesses.
8687         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
8688         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
8689         and __putlong respectively.  Correct buffer overflow check for
8690         NS_NOTIFY_OP.
8692         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
8694         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
8695         (send_dg): Rewrite error handling to be more compact and avoid
8696         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
8698         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
8700         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
8701         instead of ns_get16.
8702         (res_queriesmatch): Likewise.  Minor optimization.
8704         [BZ #2499]
8705         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
8706         __libc_res_nsend might reallocate the buffer for the answer.  In
8707         this case we have to reload the HP pointer.
8709 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
8711         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
8712         some branch prediction hints.
8714         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
8715         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
8716         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
8717         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
8718         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
8719         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
8720         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8721         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
8723 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8725         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
8726         by a GOT relocation to make Scrt1.o position independent.
8727         * sysdeps/s390/s390-64/elf/start.S: Likewise.
8729         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
8730         six system call parameters.
8731         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
8733 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
8735         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
8736         malloc&bzero.
8738         * sunrpc/svc_udp.c (BZERO): Remove definition.
8739         (CALLOC): Define.
8740         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
8742         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
8743         (des_SPtrans): Use uint32_t type.
8744         (des_skb): Likewise.
8746         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
8748 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
8750         [BZ #2509]
8751         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
8752         on 32-bit arches.
8754 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
8756         * locale/programs/ld-address.c (address_finish): Fix one more
8757         place where the iso639 array might be accessed beyond the limits.
8759 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
8761         * nis/nis_table.c (nis_list): Avoid clearing res twice before
8762         filling it for the first time.
8764         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
8765         Adjust all callers.
8766         Free res object content before returning.
8768         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
8770         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
8771         client->cl_auth.
8773         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
8774         cleanup for initial thread, just the free call on TVP.
8776         * nscd/gai.c (__getline): Define.
8779 See ChangeLog.16 for earlier changes.