Partially based on a patch by Petr Baudis <pasky@suse.cz>.
[glibc/pb-stable.git] / ChangeLog
blob953508a3fe8906ada979fdd8aa5f3e3595ab00f6
1 2007-11-22  Ulrich Drepper  <drepper@redhat.com>
3         [BZ #5382]
4         * nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define.
5         * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE.
6         * nscd/mem.c (gc): Don't allocate arrays on stack if it can
7         overflow it.
8         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
10         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
11         Return zero in case thread library is not NPTL.
13         [BZ #5375]
14         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix locking when
15         initializing interface list.
17         [BZ #5378]
18         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
19         use result of nss_getgrgid_r if nothing was found.  For other
20         error return with a failure.
21         Partially based on a patch by Petr Baudis <pasky@suse.cz>.
23         * locale/programs/ld-collate.c (collate_read): Fix loop to match
24         macro name.
26 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
28         * sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
29         (get_scope): For IPv4 scope, use scopes table.
30         (fini): Free scopes table if necessary.
31         (free_scopelist): New function.
32         (scopecmp): New function.
33         (gaiconf_init): Also handle scopev4 entries.
34         * posix/tst-rfc3484.c (do_test): Initialize scopes.
35         * posix/tst-rfc3484-2.c (do_test): Likewise.
36         * posix/gai.conf: Document scopev4 defaults.
37         * posix/Makefile (tests): Add tst-rfc3484-3.
38         * posix/tst-rfc3484-3.c: New file.
40         * sysdeps/posix/getaddrinfo.c (default_labels): Describe entry for
41         Teredo tunnels.
42         * posix/gai.conf: Update for current default tables.
44 2007-11-19  Ulrich Drepper  <drepper@redhat.com>
46         * po/tr.po: Update from translation team.
48 2007-11-18  Roland McGrath  <roland@frob.com>
50         * manual/arith.texi (Remainder Functions): Spelling fix.
51         From Shaun Silk <genix@mysoul.com.au>.
53         * sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
55 2007-11-17  Ulrich Drepper  <drepper@redhat.com>
57         * po/zh_CN.po: Update from translation team.
59         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
60         Add sys/signalfd.h and sys/eventfd.h.
62 2007-11-15  Bruno Haible  <bruno@clisp.org>
64         [BZ #5346]
65         * intl/dcigettext.c (struct known_translation_t): Turn msgid into a
66         union.
67         (transcmp): Use the appropriate part of s1->msgid and s2->msgid.
68         (DCIGETTEXT): Change the allocation of the 'search' variable so that
69         it needs only fixed stack space. Delay the initialization of
70         msgid_len until it is needed.
72 2007-11-15  Andreas Jaeger  <aj@suse.de>
74         * sysdeps/ieee754/dbl-64/sincos.tbl: Fix size of union.
75         Reported by Christoph Quirin Lauter <christoph.lauter@ens-lyon.fr>.
77 2007-11-15  Ulrich Drepper  <drepper@redhat.com>
79         * po/ko.po: Update from translation team.
81 2007-11-14  Ulrich Drepper  <drepper@redhat.com>
83         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Simplify
84         significantly.  The device type is also part of the ifinfomsg data.
86         * po/sv.po: Update from translation team.
87         * po/nl.po: Likewise.
89         * nscd/cache.c (prune_cache): If cache is empty, instruct caller
90         to wake up in 24 hours.
92         * nscd/gai.c (__ioctl): Define.  Include check_native.c.
94 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
96         * po/cs.po: Update from translation team.
97         * po/pl.po: Likewise.
99         * include/ifaddrs.h: Remove in6ai_temporary.
100         (struct in6addrinfo): Add index element.
101         Declare __check_native.
102         * inet/Makefile (aux): Add check_native.
103         * sysdeps/unix/sysv/linux/check_native.c: New file.
104         * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize
105         IFA_F_TEMPORARY.  Pass back ifa_index.
106         * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code.
107         (rfc3484_sort): Add new parameter.  Implement rule 7 correctly:
108         call __check_native if necessary.
109         (getaddrinfo): Fill in index field.  Use qsort_r instead of qsort
110         to sort addresses.  Pass information about the results.
111         * posix/tst-rfc3484.c: Adjust for addition of index field and change
112         of rfc3484_sort interface.
113         * posix/tst-rfc3484-2.c: Likewise.
115         * stdlib/stdlib.h: Define __compar_d_fn_t.  Declare qsort_r.
116         * include/stdlib.h: Add hidden_proto for qsort_t and adjust protoype
117         for _quicksort.
118         * stdlib/msort.c (qsort): Now a wrapper around qsort_r.
119         (qsort_r): Renamed from qsort.  Take additional parameter and pass it
120         on as third parameter to compare function and _quicksort.
121         * stdlib/qsort.c (_quicksort): Take additional parameter and pass on
122         to the compare function.
123         * stdlib/Versions [libc] (GLIBC_2.8): Add qsort_r.
124         * Versions.def: Add GLIBC_2.8 for libc.
126         * posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
127         * posix/tst-rfc3484-2.c: Likewise.
129         * include/kernel-features.h: Moved to...
130         * sysdeps/mach/hurd/kernel-features.h: ...here.
132 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
134         * sysdeps/i386/i586/memcpy_chk.S: New file.
135         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
136         * sysdeps/i386/i586/memset_chk.S: Likewise.
138 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
140         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
141         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
142         list of interfaces.  Also store prefix length.
143         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
144         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
145         prefix if source and destination address are in the same subnet.
146         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
147         Always look for matching record in in6ai list.
148         Correct source_addr_len value for IPv6->IPv4 converted records.
150 2007-11-11  Roland McGrath  <roland@frob.com>
152         * include/kernel-features.h: New file.
154 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
156         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
157         complications for 64-bit platforms.
159         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
160         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
161         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
162         open64_2.
163         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
164         entries.
165         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
166         * sysdeps/wordsize-64/alphasort.c: New file.
167         * sysdeps/wordsize-64/alphasort64.c: New file.
168         * sysdeps/wordsize-64/fseeko.c: New file.
169         * sysdeps/wordsize-64/fseeko64.c: New file.
170         * sysdeps/wordsize-64/ftello.c: New file.
171         * sysdeps/wordsize-64/ftello64.c: New file.
172         * sysdeps/wordsize-64/ftw.c: New file.
173         * sysdeps/wordsize-64/ftw64.c: New file.
174         * sysdeps/wordsize-64/iofgetpos.c: New file.
175         * sysdeps/wordsize-64/iofgetpos64.c: New file.
176         * sysdeps/wordsize-64/iofopen.c: New file.
177         * sysdeps/wordsize-64/iofopen64.c: New file.
178         * sysdeps/wordsize-64/iofsetpos.c: New file.
179         * sysdeps/wordsize-64/iofsetpos64.c: New file.
180         * sysdeps/wordsize-64/lockf.c: New file.
181         * sysdeps/wordsize-64/lockf64.c: New file.
182         * sysdeps/wordsize-64/mkostemp.c: New file.
183         * sysdeps/wordsize-64/mkostemp64.c: New file.
184         * sysdeps/wordsize-64/mkstemp.c: New file.
185         * sysdeps/wordsize-64/mkstemp64.c: New file.
186         * sysdeps/wordsize-64/scandir.c: New file.
187         * sysdeps/wordsize-64/scandir64.c: New file.
188         * sysdeps/wordsize-64/tmpfile.c: New file.
189         * sysdeps/wordsize-64/tmpfile64.c: New file.
190         * sysdeps/wordsize-64/versionsort.c: New file.
191         * sysdeps/wordsize-64/versionsort64.c: New file.
192         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
193         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
194         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
195         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
196         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
197         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
198         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
199         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
200         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
201         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
202         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
203         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
205         * crypt/sha256-crypt.c: Fix a comment.
206         * crypt/sha512-crypt.c: Likewise.
208 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
210         * sysdeps/x86_64/memset.S: Add sfence after movnti.
212 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
214         [BZ #5277]
215         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
216         because output buffer is too small break, don't loop.
217         * iconvdata/Makefile (tests): Add bug-iconv6.
218         * iconvdata/bug-iconv6.c: New file.
220 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
222         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
223         with size_t type.
224         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
225         size_t.  Add casts where needed.
227         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
228         old headers, don't call avc_has_perm if we don't have the
229         permission information.
231 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
233         * elf/rtld.c (dl_main): Use the page size to find the map start.
235 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
237         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
238         Patch by Szymon Siwek <sls@poczta.wp.pl>.
240         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
241         when the lookup call failed.
243         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
244         Add prune_cond and wakeup_time.
245         (CACHE_PRUNE_INTERNAL): Define.
246         Update declarations of prune_cache and setup_thread.
247         * nscd/connections.c (dbs): Update initializers.
248         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
249         (nscd_init): Default number of threads is now 4.
250         (invalidate_cache): Take lock before calling prune_cache.
251         (handle_request): If SELinux forbids the request, say so.
252         (readylist_cond): Use static initializer.
253         (nscd_run_prune): New function.  Used only by pruning threads.
254         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
255         here.
256         (fd_ready): Update nscd_run reference.
257         (start_threads): No need to initialize readylist_cond.
258         Start pruning threads separately.
259         * nscd/nscd_setup_thread.c: Change return value type to int and always
260         return 0.
261         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
262         to int and return nonzero value if we can use the TID address hack.
263         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
264         the database is later than the new entry's timeout, update the
265         wakeup time and wake the cleanup thread.
266         (prune_cache): Return seconds the next entry in the database is still
267         valid.  Remove locking for pruning here.
268         * nscd/nscd.conf: Document default number of threads.
270 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
272         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
273         stack is properly aligned for the target function.
274         Correct unwind info.
276         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
277         when using auditing libraries.
279 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
281         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
282         _nss_dns_getnetbyaddr2_r.
283         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
284         extra parameter to getanswer_r.
285         (_nss_dns_getnetbyaddr_r): Now a wrapper around
286         _nss_dns_getnetbyaddr2_r.
288         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
289         gethstbynm3_r.
290         * nscd/gethstbynm2_r.c: Remove.
291         * nscd/gethstbynm3_r.c: New file.
292         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
293         __gethostbyaddr_r.
294         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
295         __gethostbyaddr_r compatibility wrapper.
296         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
297         determining timeout of entry.
298         (lookup): Take new parameter and pass it to __gethostbyname3_r and
299         __gethostbyaddr2_r.
300         (addhstbyX): Pass reference to variable for TTL to lookup and
301         cache_addhst.
302         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
303         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
304         and __nss_next2.  Remove __nss_services_lookup.
305         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
306         Add compat wrapper.
307         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
308         __nss_next2.
309         * nss/getXXent_r.c: Likewise.
310         * nss/getnssent_r.c: Likewise.
311         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
312         does not exist in module, try the optional second name.
313         (__nss_next2): New function.
314         (__nss_next): Now wrapper around __nss_next2.
315         * nss/nsswitch.h: Adjust __nss_lookup prototype.
316         Declare __nss_next2.
317         Adjust definition of db_lookup_function type.
318         * nss/service-lookup.c: Define NO_COMPAT.
319         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
320         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
321         * inet/ether_ntoh.c: Likewise.
322         * sunrpc/netname.c: Likewise.
323         * sunrpc/publickey.c: Likewise.
324         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
325         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
326         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
327         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
328         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
330         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
332         * inet/getnetgrent.c (setup): Encrypt static pointer.
334 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
336         [BZ #5204]
337         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
338         * crypt/sha512c-test.c: Likewise.
340         [BZ #5225]
341         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
342         to keep track of end of %[ format string element.
343         * stdio-common/Makefile (tests): Add bug20.
344         * stdio-common/bug20.c: New file.
346         [BZ #5222]
347         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
348         path elements in counting mode.
350 2007-10-27  Andreas Jaeger  <aj@suse.de>
352         [BZ #5040]
353         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
355         [BZ #3112]
356         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
357         (__cleanup): Free shared library when exiting.
358         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
359         (__cleanup): Free shared library when exiting.
361 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
363         [BZ #2549]
364         * math/libm-test.inc (check_float_internal): Support
365         denormalized return.
367 2007-10-23  Andreas Jaeger  <aj@suse.de>
369         [BZ #5208]
370         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
371         __LONG_LONG_PAIR to handle little endian byte order.
372         Suggested by abhishekrai@google.com
374 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
376         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
378 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
380         * nscd/cache.c (prune_cache): Move test for modified file outside
381         of locking.
383 2007-10-21  Andreas Jaeger  <aj@suse.de>
385         * manual/texinfo.tex: Update to latest version.
387         * manual/sysinfo.texi (System Parameters): Fix Formatting.
389         * manual/arith.texi (Status bit operations): Fix formatting.
391         * manual/errno.texi (Error Messages): Fix formatting.
393         * manual/sysinfo.texi (System Parameters): Fix formatting.
395         * manual/libc.texinfo: Update VERSION and UPDATED.
397 2007-10-19  Roland McGrath  <roland@redhat.com>
399         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
401 2007-10-06  David S. Miller  <davem@davemloft.net>
403         * configure.in: Add sparcv9v2 and sparc64v2.
404         * scripts/config.sub: Likewise.
405         * configure: Regenerate.
406         * elf/elf.h (HWCAP_SPARC_N2): New.
407         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
408         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
409         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
410         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
411         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
412         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
413         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
415 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
417         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
418         even if the poll result indicates there is data to read.
419         Patch by Jeff Moyer <jmoyer@redhat.com>.
421 2007-10-18  Roland McGrath  <roland@redhat.com>
423         * elf/elf.h (NT_PPC_VMX): New macro.
425 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
427         * version.h (VERSION): Set to 2.7.90.
429 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
431         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
432         weak_alias.
434 2007-10-17  Roland McGrath  <roland@frob.com>
436         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
437         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
439 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
441         * version.h (VERSION): Bump to 2.7.
442         * include/features.h (__GLIBC_MINOR__): Bump to 7.
444         [BZ #5186]
445         * time/tzset.c (__tz_convert): Don't force testing for a change of
446         TZ if not called from localtime.  But then also see whether the
447         file changed, in case __use_tzfile is set.
449         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
450         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
451         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
452         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
453         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
454         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
455         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
456         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
458 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
460         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
461         and admin selects to be able to replace the gai.conf file, lock
462         data structures around the qsort call.
464 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
466         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
467         new memset.
468         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
469         too high for the improvements.  Implement bzero unconditionally for
470         use in libc.
472 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
473             Jakub Jelinek  <jakub@redhat.com>
475         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
476         even when time_t is 32-bit.
477         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
478         timezone data read by __tzfile_default.  Ensure __tzname[0] is
479         always set after the search.
481 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
483         * time/tzfile.c (__tzfile_read): Help the compiler recognize
484         unreachable code on 32-bit machines.
486 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
488         [BZ #5184]
489         * time/strftime_l.c: Include stdbool.h.
490         (my_strftime): New wrapper, old function renamed to...
491         (__strftime_internal): ... new function.  Add tzset_called
492         argument, pass it down to recursive calls, don't call tzset ()
493         if already true, set to true after call to tzset ().
495 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
497         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
498         into account when copying TZ string.
500 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
502         * time/tzfile.c (__tzfile_compute): For use_last case set i to
503         num_transition rather than num_transitions - 1.
505 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
507         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
508         PIC indirect jump.
510         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
511         a local label rather than HIDDEN_JUMPTARGET.
513 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
515         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
516         (init_cacheinfo): Initialize it.
517         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
518         Always define bzero.
519         Remove non-glibc code.
520         * sysdeps/x86_64/bzero.S: Make an empty file.
522 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
524         * sysdeps/x86_64/cacheinfo.c
525         (__x86_64_preferred_memory_instruction): New.
526         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
528         * sysdeps/x86_64/memset.S: Rewrite.
530 2007-10-15  Roland McGrath  <roland@redhat.com>
532         * po/libc.pot: Regenerated.
534 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
536         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
537         pointers.
539         [BZ #3425]
540         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
541         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
542         address record to T_A/T_AAAA requests.
544 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
546         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
548         * posix/glob.c: Add some branch prediction throughout.
550         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
551         read from nscd.
553         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
554         service_order.
555         (rfc3484_sort): Make sure that even if qsort doesn't support
556         stable sorting out sorting here is stable by comparing service_order.
557         (getaddrinfo): Initialize service_order.
558         * posix/tst-rfc3484.c (do_test): Adjust for addition of
559         service_order field to sorting structure.
560         * posix/tst-rfc3484-2.c (do_test): Likewise.
562         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
563         * time/tzset.c (tzset_internal): Break TZ string parsing out into
564         __tzset_parse_tz and updating of daylight, timezone, tzname into
565         update_vars.
566         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
567         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
568         happens in __tz_compute.
569         * time/tzfile.c (__tzfile_read): Also read TZ string.
570         (find_transition): Fold into __tzfile_compute.
571         (__tzfile_compute): For times beyond the last transition try to
572         use the TZ string.
573         * timezone/tst-timezone.c: Information in daylight and tzname does
574         change for Asia/Tokyo timezone with more concrete information.
575         Remove the test.
577         * include/stdio.h: Add libc_hidden_proto for ftello.
578         * libio/ftello.c: Add libc_hidden_def.
580         [BZ #1140]
581         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
582         on the specified time and not the last entries in the file.  Move
583         code to determine tzname[] to...
584         (find_transition): ...here.  Add ugly guess for times before the
585         first transition.
587 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
589         [BZ #3195]
590         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
591         no entry.
592         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
593         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
594         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
595         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
597         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
598         read mechanism when there are no group members and avoid no-op
599         read syscall in this case.
601         [BZ #3242]
602         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
603         (__readall): If reading failed due to EAGAIN error wait a bit
604         and possibly try again.
605         (__readvall): Likewise.
607 2007-10-13  Bruno Haible  <bruno@clisp.org>
609         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
610         when we cannot recode the message.
612 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
614         [BZ #4359]
615         * libio/__freading.c (__freading): Don't return true for
616         write-only streams.  For read/write streams, check whether we
617         performed a read operation already.
618         * libio/Makefile (tests): Add tst-ext2.
619         * libio/tst-ext2.c: New file.
621 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
623         * locale/programs/repertoire.c (repertoire_read): Always free
624         memory for repertoire file name [Coverity CID 270].
626         * elf/cache.c (save_aux_cache): Free memory allocated for
627         temporary file name [Coverity CID 267].
629 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
631         * misc/Makefile (headers): Add bits/error.h.
633 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
635         * posix/fnmatch_loop.c: Take rule index returned as part of
636         findidx return value into account when accessing weights.
637         * posix/regcomp.c: Likewise.
638         * posix/regexec.c: Likewise.
640         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
641         (skip_to): Fix problems with parameter of elifdef/elifndef.
643 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
645         * iconv/gconv_simple.c: Add some branch prediction.
647 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
649         * locale/programs/ld-collate.c (collate_read): If ignore_content
650         and nowtok is tok_define, eat any tok_eol tokens.
652 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
654         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
655         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
657         * inet/netinet/in.h: Don't include bits/socket.h.
658         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
659         macro.
660         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
662 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
664         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
665         and tok_elifndef.
666         * locale/programs/locfile-kw.gperf: Likewise.
667         * locale/programs/ld-collate.c: Implement primitive preprocessor.
669 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
671         * stdio-common/printf-parse.h: Include string.h and wchar.h.
672         (__find_specwc): Change into __extern_always_inline function.
673         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
674         (__parse_one_specmb): Remove ps argument.
675         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
676         Adjust __find_specmb and __parse_one_specmb callers.
677         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
678         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
679         Removed.
680         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
681         caller.
683 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
685         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
686         with some Pentium Ds.
688 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
690         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
691         __read not read.
692         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
693         __write not write.
695 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
697         [BZ #181]
698         * locale/C-time.c: Set week_1stday data to 19971201.
699         * locale/programs/ld-time.c (time_finish): Default for
700         first_workday is Monday.
702         [BZ #2633]
703         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
705         [BZ #5103]
706         * posix/glob.c (glob): Recognize patterns starting \/.
707         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
708         (main): Add test for pattern starting \/.
710         * misc/error.h: Use __const instead of const.
711         * misc/bits/error.h: Likewise.
713 2007-10-07  Andreas Jaeger  <aj@suse.de>
715         * include/bits/error.h: New file.
717         * misc/bits/error.h (error_at_line): Fix prototype.
719 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
721         [BZ #3924]
722         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
723         more little bugs in creating the stack frame when pltexit has to
724         be called.
726         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
727         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
729         [BZ #4407]
730         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
731         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
732         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
733         * math/libm-test.inc: Add test for this case.
735         [BZ #5010]
736         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
737         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
738         map service succeeded.
739         (svc_is_mapped): New function.
740         (svc_unregister): Use it before trying to unmap service.
742 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
744         * timezone/zic.c: Update from tzcode2007h.
746         [BZ #5063]
747         * timezone/africa: Update from tzdata2007h.
748         * timezone/antarctica: Likewise.
749         * timezone/asia: Likewise.
750         * timezone/australasia: Likewise.
751         * timezone/europe: Likewise.
752         * timezone/leapseconds: Likewise.
753         * timezone/northamerica: Likewise.
754         * timezone/southamerica: Likewise.
755         * timzeone/zone.tab: Likewise.
757         [BZ #5104]
758         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
760         [BZ #5113]
761         * string/bits/string2.h (__strdup): Cast parameters to calloc to
762         avoid warning with -Wconversion.
763         (__strndup): Likewise.
764         Half the patch by Christian Iseli <christian.iseli@licr.org>.
766         [BZ #5112]
767         * nscd/connections.c (restart): Don't resync if database is
768         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
770         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
771         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
773         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
774         evetnfd_read, eventfd_write.
775         * sysdeps/unix/sysv/linux/eventfd.c: New file.
776         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
777         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
778         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
779         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
780         eventfd_write for GLIBC_2.7.
782         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
783         * sysdeps/unix/sysv/linux/signalfd.c: New file.
784         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
785         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
787 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
789         * stdlib/msort.c: Include stdint.h.
790         (struct msort_param): New type.
791         (msort_with_tmp): Use struct msort_param pointer for unchanging
792         parameters.  Add optimized handling for several common sizes
793         and indirect sorting mode.
794         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
795         sorting.
796         Suggested by Belazougui Djamel .
798         * stdlib/Makefile (tests): Add tst-qsort2.
799         * stdlib/tst-qsort2.c: New test.
801 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
803         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
804         for dup2 in case another thread races with the current one.  Retry
805         in this case.
807         * misc/error.h: Remove support for use outside of libc.  We have to
808         include <features.h> now.  Include <bits/error.h> if possible.
809         * misc/bits/error.h: New file.
811 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
813         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
814         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
815         __extern_always_inline functions unconditionally, drop macros.
817         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
818         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
819         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
821         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
822         add __artificial__ attribute.
824 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
826         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
827         backward to forward direction.
829         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
831         [BZ #645]
832         * locale/programs/ld-collate.c (collate_finish): Compare against last
833         used section which is known to have rules defined.
834         (collate_read): After order_start, correctly record order of sections
835         and queue sections up.
837 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
839         [BZ #5071]
840         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
841         the same number of pages.
842         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
844         * locale/programs/ld-collate.c (collate_read): After initial copy
845         statement, continue in state 0.
847         * include/stdio_ext.h (__fsetlocking): Define as macro.
849 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
851         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
852         of section order.
854         * po/pt_BR.po: Fix typo.
856 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
858         * iconvdata/Makefile (modules): Add ISO8859-9E.
859         (distribute): Add iso8859-9e.c.
860         (gen-8bit-gap-modules): Add iso8859-9e.
861         * iconvdata/iso8859-9e.c: New file.
862         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
863         * iconvdata/TESTS: Likewise.
864         * iconvdata/tst-tables.sh: Likewise.
866         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
868         * locale/iso-639.def: Add several new entries.
870 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
872         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
873         void * pointers instead of struct link_map **.
874         (_dl_scope_free): Change argument type to void *.
875         * include/link.h (struct link_map): Change type of l_reldeps
876         to struct link_map_reldeps, move l_reldepsact into that
877         struct too.
878         * elf/dl-deps.c: Include atomic.h.
879         (_dl_map_object_deps): Only change l->l_initfini when it is
880         fully populated, use _dl_scope_free for freeing it.  Optimize
881         removal of libs from reldeps by using l_reserved flag, when
882         some removal is needed, allocate a new list instead of
883         reallocating and free the old with _dl_scope_free.  Adjust
884         for l_reldeps and l_reldepsact changes.
885         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
886         searching in l_initfini and l_reldeps without holding dl_load_lock.
887         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
888         l_reldepsact changes.
889         * elf/dl-close.c (_dl_close_worker): Likewise.
890         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
892 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
894         * iconvdata/Makefile (modules): Add KOI8-RU.
895         (distribute): Add koi8-ru.c.
896         (gen-8bit-gap-modules): Add koi8-ru.
897         * iconvdata/koi8-ru.c: New file.
898         * iconvdata/gconv-modules: Add entries for KOI8-RU.
899         * iconvdata/TESTS: Likewise.
900         * iconvdata/tst-tables.sh: Likewise.
902         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
904 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
906         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
907         with __warning__/__error__ attributes.
908         (__warnattr): Define.
909         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
910         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
911         __warnattr.
912         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
913         of __*_chk if compile time detectable overflow is found.
914         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
915         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
916         with __warnattr.
917         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
918         instead of __*_chk if compile time detectable overflow is found.
919         (__gets_alias): Rename to...
920         (__gets_warn): ... this.  Add __warnattr.
921         (gets): Call __gets_warn instead of __gets_alias.
922         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
923         aliases with __warnattr.
924         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
925         time detectable overflow is found.
926         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
927         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
928         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
929         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
930         __getdomainname_chk_warn): New aliases with __warnattr.
931         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
932         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
933         __*_chk_warn instead of __*_chk if compile time detectable overflow
934         is found.
935         (__getgroups_chk): Rename argument to __listlen from listlen.
936         (__getwd_alias): Rename to...
937         (__getwd_warn): ... this.  Add __warnattr.
938         (getwd): Call __getwd_warn instead of __getwd_alias.
939         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
940         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
941         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
942         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
943         __wcsnrtombs_chk_warn): New aliases with __warnattr.
944         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
945         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
946         compile time detectable overflow is found.
947         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
948         to use __*_chk or not.
949         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
950         in comparisons which function should be called and in __*_chk*
951         arguments.  Call __*_chk_warn instead of __*_chk if compile time
952         detectable overflow is found.
953         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
954         __*_chk argument.
955         * debug/tst-chk1.c (do_test): Add a few more tests.
957 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
959         [BZ #5058]
960         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
961         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
962         (_nl_unload_domain): Finalize conversions_lock.
963         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
964         handling table of known conversions.
966 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
968         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
969         close_not_cancel_no_status instead of close.
971 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
973         [BZ #5028]
974         * posix/regcomp.c (lookup_collation_sequence_value): Check that
975         nrules != 0 for multibyte chars.
977 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
979         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
980         Provide better error message in case the type is unknown.
982         [BZ #4963]
983         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
984         * string/stratcliff.c: Make usable to test wide char functions.
985         * wcsmbs/wcsatcliff.c: New file.
986         * wcsmbs/Makefiel (tests): Add wcsatcliff.
988         [BZ #4972]
989         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
990         (distribute): Add mac-centraleurope.c.
991         (gen-8bit-gap-modules): Add mac-centraleurope.
992         * iconvdata/mac-centraleurope.c: New file.
993         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
994         * iconvdata/TESTS: Likewise.
995         * iconvdata/tst-tables.sh: Likewise.
997         [BZ #5043]
998         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
1000 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
1002         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
1003         from __x86_64_core_cache_size_half.
1004         (init_cacheinfo): Compute shared cache size for AMD processors with
1005         shared L3 correctly.
1006         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
1007         name change.
1008         Patch in large parts by Evandro Menezes.
1010 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
1012         * elf/dl-lookup.c (add_dependency): Handle failing memory
1013         allocation for dependency list.  Remove unnecessary check.
1015         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
1016         open/close when determining source addresses.
1018         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
1019         sha512-crypt, and sha512.
1020         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
1021         (distribute): Add sha256.h and sha512.h.
1022         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
1023         and call the appropriate code.
1024         * crypt/sha256-crypt.c: New file.
1025         * crypt/sha256.c: New file.
1026         * crypt/sha256.h: New file.
1027         * crypt/sha256c-test.c: New file.
1028         * crypt/sha256test.c: New file.
1029         * crypt/sha512-crypt.c: New file.
1030         * crypt/sha512.c: New file.
1031         * crypt/sha512.h: New file.
1032         * crypt/sha512c-test.c: New file.
1033         * crypt/sha512test.c: New file.
1035 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
1037         * misc/bits/syslog.h (syslog): Remove extraneous argument from
1038         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
1039         __syslog_chk.
1041 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
1043         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
1044         %as in fscanf format strings.
1046         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
1047         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
1048         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
1049         Likewise.
1050         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
1051         Likewise.
1053         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
1054         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
1055         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
1056         * elf/dl-sym.c (do_sym): Likewise.
1057         * include/link.h (struct link_map): Add l_serial field.
1058         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
1059         * elf/dl-lookup.c (add_dependency): Add flags argument.
1060         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
1061         flags, use THREAD_GSCOPE_RESET_FLAG before and
1062         THREAD_GSCOPE_SET_FLAG after
1063         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
1064         Don't dereference map until it has been found on some list.
1065         If map->l_serial changed, return -1.
1067 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
1069         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
1070         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
1071         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
1072         libc_hidden_proto.
1073         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
1074         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
1075         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
1076         add libc_hidden_proto.
1077         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
1078         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
1079         conformance requested.
1080         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
1081         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
1082         conformance requested.
1083         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
1084         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
1085         conformance requested.
1086         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
1087         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
1088         ISO C99 or POSIX conformance requested.
1089         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
1090         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
1091         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
1092         and __isoc99_vsscanf@@GLIBC_2.7.
1093         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
1094         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
1095         (tests): Add scanf14.
1096         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
1097         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
1098         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
1099         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
1100         CFLAGS-isoc99_scanf.c): Add $(exceptions).
1101         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
1102         from using internal headers.
1103         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
1104         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
1105         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
1106         and __isoc99_vswscanf@@GLIBC_2.7.
1107         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
1108         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
1109         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
1110         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
1111         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
1112         * stdio-common/isoc99_scanf.c: New file.
1113         * stdio-common/isoc99_vsscanf.c: New file.
1114         * stdio-common/isoc99_vscanf.c: New file.
1115         * stdio-common/isoc99_vfscanf.c: New file.
1116         * stdio-common/isoc99_fscanf.c: New file.
1117         * stdio-common/isoc99_sscanf.c: New file.
1118         * wcsmbs/isoc99_fwscanf.c: New file.
1119         * wcsmbs/isoc99_vswscanf.c: New file.
1120         * wcsmbs/isoc99_swscanf.c: New file.
1121         * wcsmbs/isoc99_wscanf.c: New file.
1122         * wcsmbs/isoc99_vwscanf.c: New file.
1123         * wcsmbs/isoc99_vfwscanf.c: New file.
1124         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
1125         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
1126         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
1127         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
1128         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
1129         * stdio-common/scanf14.c: New test.
1130         * stdio-common/scanf15.c: New test.
1131         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
1132         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
1133         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
1134         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
1135         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
1136         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
1137         __nldbl___isoc99_scanf@@GLIBC_2.7,
1138         __nldbl___isoc99_fscanf@@GLIBC_2.7,
1139         __nldbl___isoc99_sscanf@@GLIBC_2.7,
1140         __nldbl___isoc99_vscanf@@GLIBC_2.7,
1141         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
1142         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
1143         __nldbl___isoc99_wscanf@@GLIBC_2.7,
1144         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
1145         __nldbl___isoc99_swscanf@@GLIBC_2.7,
1146         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
1147         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
1148         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
1149         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
1150         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
1151         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
1152         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
1153         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
1154         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1155         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
1156         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
1157         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
1158         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
1159         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
1160         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
1161         functions.
1162         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
1163         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
1164         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
1165         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
1166         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
1167         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
1168         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
1169         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
1170         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
1171         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
1172         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
1173         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
1175         * stdio-common/Makefile (tests): Add scanf13.
1176         (scanf13-ENV): New.
1177         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
1178         m modifier followed by l.
1179         (STRING_ARG): Add width argument.
1180         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
1181         <case L_('C')>: Handle %mlc and %mC.
1182         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
1183         arguments.
1184         * stdio-common/scanf13.c: New test.
1186         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
1187         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
1189 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
1191         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
1192         type and __THROW marker of splice, vmsplice, and tee.
1193         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1194         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1195         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1196         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1197         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1198         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1199         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
1200         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
1201         as cancellation points.
1203 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
1205         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
1206         parse more than three parts of the version number.
1208 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
1210         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
1211         modifier.  Patch by Jakub Jelinek.
1213 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
1215         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
1216         call_fallocate in misc subdir.
1217         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
1218         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
1219         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
1220         instead of __fallocate64.
1221         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
1223 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
1225         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
1226         * rt/Makefile (headers): Add bits/mqueue2.h.
1227         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
1228         optimizing with GCC and __va_arg_pack_len is defined.
1229         * rt/bits/mqueue2.h: New file.
1230         * rt/mq_open.c (__mq_open): Renamed from mq_open.
1231         (mq_open): New strong_alias.
1232         (__mq_open_2): New function.
1233         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
1234         (mq_open): New strong_alias.
1235         (__mq_open_2): New function.
1236         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
1237         * Versions.def (librt): Add GLIBC_2.7 version.
1238         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
1239         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
1241         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
1242         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
1243         is defined rather than when not C++.
1244         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
1245         __openat64_alias): New redirects.
1246         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
1247         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
1248         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
1249         (open, open64, openat, openat64): Rewrite as __extern_always_inline
1250         functions instead of function-like macros.
1252 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
1254         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
1255         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
1256         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
1258 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
1260         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
1261         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
1263 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
1265         * inet/tst-network.c: Increment ERRORS for failing tests.
1267 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
1269         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
1270         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
1271         implement as __extern_always_inline function.
1272         (vsyslog): Define as __extern_always_inline function unconditionally.
1273         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
1274         When __va_arg_pack is defined, implement as __extern_always_inline
1275         functions.
1276         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
1277         __extern_always_inline functions unconditionally.
1278         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
1279         bits/stdio2.h will be included.
1280         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
1281         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
1282         implement as __extern_always_inline functions.
1283         (vswprintf, vwprintf, vfwprintf): Define as
1284         __extern_always_inline functions unconditionally.
1285         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
1287 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
1289         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
1290         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
1291         attribute.
1292         * include/features.h (__USE_EXTERN_INLINES): Define only when
1293         __extern_inline is defined.
1294         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
1295         is defined instead of when not __cplusplus.
1296         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
1297         is defined instead of when not __cplusplus.
1298         * socket/sys/socket.h: Include bits/socket2.h when
1299         __extern_always_inline is defined instead of when not __cplusplus.
1300         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
1301         is defined instead of when not __cplusplus.
1302         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
1303         is defined instead of when not __cplusplus.
1304         * string/string.h: Include bits/string3.h when __extern_always_inline
1305         is defined instead of when not __cplusplus.
1306         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
1307         is defined instead of when not __cplusplus.
1308         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
1309         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
1310         is not defined.
1311         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
1312         defined __extern_always_inline instead of !defined __cplusplus.
1313         * libio/bits/stdio-ldbl.h: Likewise.
1314         * wcsmbs/bits/wchar-ldbl.h: Likewise.
1315         * misc/bits/syslog.h (syslog): Don't define for C++.
1316         (vsyslog): Use __extern_always_inline function for C++ instead of
1317         a macro.
1318         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
1319         whenever that macro is defined.
1320         (vprintf): Don't provide the inline for C++.
1321         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
1322         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
1323         define the macros for C++.
1324         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
1325         __extern_always_inline functions for C++.
1326         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
1327         stat64, lstat64, fstat64, fstatat64): Don't define if not
1328         __USE_EXTERN_INLINES.
1329         * wcsmbs/bits/wchar2.h: Fix #error message.
1330         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
1331         (vswprintf, vwprintf, vfwprintf): Define using
1332         __extern_always_inline functions for C++.
1333         * string/bits/string3.h: Don't #undef macros if __cplusplus.
1334         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
1335         strncpy, strcat, strncat): Define as __extern_always_inline
1336         functions instead of macros for C++.
1337         * math/bits/cmathcalls.h: Guard __extern_inline routines with
1338         defined __extern_inline.
1339         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
1340         to __extern_inline whenever that macro is defined.
1341         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
1342         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
1343         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
1344         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
1345         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
1346         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
1347         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
1348         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
1349         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
1350         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
1351         prototypes.  Only provide __extern_inline routines if
1352         __USE_EXTERN_INLINES.
1353         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
1354         tests.
1355         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
1356         For now avoid some *printf tests in C++.  Skip all testing
1357         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
1358         is not.
1359         * debug/tst-chk4.cc: New file.
1360         * debug/tst-chk5.cc: New file.
1361         * debug/tst-chk6.cc: New file.
1362         * debug/tst-lfschk4.cc: New file.
1363         * debug/tst-lfschk5.cc: New file.
1364         * debug/tst-lfschk6.cc: New file.
1365         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
1366         prototypes in C++.
1367         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
1368         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
1369         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
1371 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
1373         * po/cs.po: Update from translation team.
1375 2007-09-11  Roland McGrath  <roland@redhat.com>
1377         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
1378         compiling.
1380 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1382         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
1384 2007-09-05  Roland McGrath  <roland@redhat.com>
1386         * manual/signal.texi (Signaling Another Process): Typo fix.
1387         From Karl Berry <karl@freefriends.org>.
1389 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
1391         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
1392         zero if not defined.
1393         (make_request): Recognize optimistic addresses and treat them like
1394         deprecated addresses.
1395         Reported by Neil Horman <nhorman@redhat.com>.
1397 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
1399         * nscd/connections.c (send_ro_fd): Also transfer file size.
1400         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
1401         file size don't call fstat.
1403         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
1404         ahead and map the file.  This should always be correct and we can
1405         catch problems later.
1407 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
1409         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
1410         prototypes.
1411         (__fread_alias, __fread_unlocked_alias): New aliases.
1412         (fread): New extern inline.
1413         (fread_unlocked): Likewise.  Undef macro before definition of
1414         the inline function.
1415         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
1416         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
1417         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
1418         and __fread_unlocked_chk@@GLIBC_2.7.
1419         * debug/fread_chk.c: New file.
1420         * debug/fread_u_chk.c: New file.
1421         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
1423 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
1425         * sysdeps/unix/sysv/linux/syscalls.list
1426         (personality): Change caller to EXTRA.
1428 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
1430         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
1431         to keep gcc quiet.
1432         * iconvdata/iso-2022-cn.c (BODY): Likewise.
1434         * locale/programs/ld-collate.c (collate_output): Avoid warning if
1435         NDEBUG is defined.
1437         * Makerules: Use -p option with mkdir.
1439         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
1440         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
1441         (_xdr_directory_obj): Likewise.
1442         (xdr_entry_obj): Likewise.
1443         (xdr_group_obj): Likewise.
1444         (xdr_link_obj): Likewise.
1445         (xdr_table_obj): Likewise.
1446         (_xdr_nis_result): Likewise.
1447         (_xdr_ns_request): Likewise.
1448         (_xdr_ib_request): Likewise.
1449         (_xdr_nis_taglist): Likewise.
1450         (xdr_cback_data): Likewise.
1451         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
1452         (xdr_ypresp_maplist): Likewise.
1454         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
1456         * posix/regex_internal.h: Prevent some declarations and definitions
1457         to be seen when used in tests.
1459         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
1460         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
1462         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
1464         * config.make.in (datarootdir): Add to shut up configure.
1466         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
1467         associativity for fully-associative caches.
1469         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
1470         requests.  Fill on more associativity values for L2.
1471         Patch mostly by Evandro Menezes.
1473 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
1475         * sysdeps/unix/sysv/linux/x86_64/init-first.c
1476         (_libc_vdso_platform_setup): Avoid using exported variable by using
1477         alias.
1479         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
1481         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
1482         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
1483         defined.
1485 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
1487         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
1488         align stack for call if pltexit is to be used.
1490         [BZ #3924]
1491         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
1492         align for function call in case pltexit has to be called later.
1494         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
1495         implicit atomic operation when storing function pointer.
1496         (_dl_runtime_profile): Likewise.
1498 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
1500         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
1501         NIS_NOTFOUND.
1503 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
1505         [BZ #4566]
1506         * string/strtok.c: Fix typo in comment.
1508         [BZ #4582]
1509         * debug/segfault.c: Fix typos in comments.
1511         [BZ #4588]
1512         * stdio-common/tempnam.c: Fix comment, it is not checked that
1513         TMPDIR points to a writable directory.
1515         [BZ #4726]
1516         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
1517         memory allocated for the name server address.
1519         [BZ #4946]
1520         * nscd/connections.c (handle_request): Using sendfile always
1521         requires that mmap is used for the database.
1522         Patch by Petr Baudis <pasky@suse.cz>.
1524         [BZ #4905]
1525         * nscd/hstcache.c (cache_addhst): When reloading an entry which
1526         suddenly has two or more addresses, ignore it and remove the old
1527         entry.
1529         [BZ #4814]
1530         * resolv/res_hconf.c: Prepare for compiling outside libc.
1531         * nscd/res_hconf.c: New file.
1532         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
1533         the new file.
1534         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
1535         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
1537         * nscd/hstcache.c (cache_addhst): Minimal optimization.
1539         [BZ #4925]
1540         * debug/pcprofiledump.c: Turn on internationalization by calling
1541         setlocale.  Patch mostly by Benno Schulenberg.
1543         [BZ #4936]
1544         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
1545         the state.
1546         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
1547         * iconvdata/bug-iconv5.c: New file.
1549 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
1551         [BZ #4896]
1552         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
1553         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
1554         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
1555         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
1556         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
1557         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
1558         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
1559         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
1561 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
1563         [BZ #4937]
1564         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
1565         lookup loop.  Suggested by John Reiser.
1567 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
1569         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
1571 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
1573         * csu/libc-start.c: Don't handle VDSO_SETUP here.
1574         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
1575         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
1576         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
1577         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
1578         to...
1579         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
1581 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
1583         * po/nl.po: Update from translation team.
1585 2007-08-16  Andreas Jaeger  <aj@suse.de>
1587         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
1588         Reported by Peter Festner <peter.festner@ewetel.net>.
1590 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
1592         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
1594 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
1596         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
1597         to check for undefined symbols.
1599         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
1600         If the syscall fails, set errno to the actual returned error number
1601         rather than EINVAL.
1602         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
1603         arguments are incorrect, set errno to EINVAL, if the syscall
1604         fails, set errno to the actual returned error number.
1606         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
1607         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
1609         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
1610         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
1611         file.
1612         (ASI_PNF, ASI_BLK_P): Don't define.
1613         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
1614         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
1615         file.
1616         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
1617         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
1618         file.
1620 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
1622         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
1623         FE_UNDERFLOW on Niagara CPUs.
1625         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
1626         exceptions.
1628 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
1630         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
1631         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
1632         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
1633         flush should be used or not inside of the function.
1634         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
1636         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
1637         __thread_start): Use HIDDEN_JUMPTARGET.
1638         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
1639         __thread_start): Likewise.
1640         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
1642         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
1643         Add libc_hidden_proto.
1644         (STRTOF): Add libc_hidden_proto.
1645         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
1646         (strtold_l, wcstold_l): Use them as second argument for
1647         long_double_symbol.
1649 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
1651         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
1653 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1655         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
1657 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
1659         * po/bg.po: New file.  From the translation team.
1661 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
1663         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
1664         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
1665         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
1666         when each feature was introduced.
1668         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
1669         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
1670         (CHECK_HASH): New macro.
1671         (PREPARE_VERSION): Use it.
1673         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
1674         prototype if not __ASSUME_PSELECT.
1675         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
1676         prototype if not __ASSUME_PPOLL.
1678         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
1680         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
1681         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
1682         is defined.
1684 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
1686         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
1687         (_libc_vdso_platform_setup): If vDSO is not available point
1688         __vdso_gettimeofday to the vsyscall.
1689         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
1690         __vdso_gettimeofday instead of vsyscall.
1692 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
1694         * nscd/servicescache.c: Include kernel-features.h.
1695         * nscd/gai.c: Likewise.
1696         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
1697         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
1698         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1699         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
1700         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
1701         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
1702         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
1703         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
1704         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
1706 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
1708         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
1709         and _dl_get_origin defines anymore.
1711         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
1712         Build fix for systems which might lack POSIX timer support.
1714         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
1715         (_libc_vdso_platform_setup): Mangle function pointers before storing
1716         them.
1717         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
1718         Demangle vdso pointer before use.
1719         (INTERNAL_VSYSCALL): Likewise.
1721         * elf/cache.c (primes): Mark as const.
1722         Noted by Roland McGrath.
1724 2007-08-01  Andreas Jaeger  <aj@suse.de>
1725             Jakub Jelinek  <jakub@redhat.com>
1727         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
1728         (options): Add option.
1729         (parse_opt): Handle option.
1730         (manual_link): Adjust process_file caller.  Call implicit_soname.
1731         (search_dir): Formatting.  Use and populate auxiliary cache.
1732         (main): Load and save auxiliary cache.
1733         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
1734         stat64 from fstat64 to caller.
1735         (implicit_soname): New function.
1736         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
1737         leave *soname as NULL.
1738         * elf/cache.c: Include libgen.h.
1739         (print_entry, print_cache, compare, save_cache, add_to_cache):
1740         Formatting and cleanups.
1741         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
1742         aux_cache_file): New structures.
1743         (AUX_CACHEMAGIC): Define.
1744         (primes): New array.
1745         (aux_hash_size, aux_hash): New variables.
1746         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
1747         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
1748         load_aux_cache, save_aux_cache): New functions.
1749         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
1750         (init_aux_cache, search_aux_cache, add_to_aux_cache,
1751         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
1752         (process_file): Adjust prototype.
1754 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
1756         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
1757         with __need_size_t.
1759 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
1761         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
1762         r_found_version structure as second parameter.
1763         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
1764         (_dl_vdso_vsym): Change type of second parameter accordingly.
1765         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
1766         (_libc_vdso_platform_setup): Adjust.
1767         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
1768         (_libc_vdso_platform_setup): Likewise.
1770         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
1771         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
1772         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
1773         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
1774         * csu/libc-start.c: Pretty printing.
1775         Use VDSO_SETUP if defined.
1776         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
1777         and let generic code call into _libc_vdso_platform_setup.
1778         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
1779         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
1780         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
1781         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
1782         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
1783         for GLIBC_PRIVATE.
1784         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
1785         (sysdep_rountines): Add dl-vdso.
1787         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
1788         of routines.
1790         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
1791         attribute_hidden to __vdso_gettimeofday prototype.
1793 2007-08-12  Roland McGrath  <roland@redhat.com>
1795         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
1796         From: Karl Berry <karl@freefriends.org>.
1798 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
1800         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
1801         an atime update for the files we read.
1803 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
1805         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
1807         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
1808         instead of mkstemp.
1810         * misc/Makefile (routines): Add mkostemp and mkostemp64.
1811         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
1812         * misc/mkostemp.c: New file.
1813         * misc/mkostemp64.c: New file.
1814         * stdlib/stdlib.h: Declare the new functions.
1815         * sysdeps/posix/tempname.c: Add new parameter which is added to
1816         the flags for open.  Remove __GT_BIGFILE handling.
1817         * stdio-common/tempname.c: Likewise.
1818         * include/stdio.h: Adjust __gen_tempname prototype.
1819         Renumber __GT_* constants.
1820         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
1821         * misc/mkdtemp.c: Likewise.
1822         * misc/mkstemp.c: Likewise.
1823         * misc/mkstemp64.c: Likewise.
1824         * misc/mktemp.c: Likewise.
1825         * stdio-common/tempnam.c: Likewise.
1826         * stdio-common/tmpfile.c: Likewise.
1827         * stdio-common/tmpfile64.c: Likewise.
1828         * stdio-common/tmpnam.c: Likewise.
1829         * stdio-common/tmpnam_r.c: Likewise.
1831 2007-08-10  Roland McGrath  <roland@frob.com>
1833         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
1834         New macros.
1835         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
1836         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
1838 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
1840         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
1841         possible.
1842         * nss/nss_files/files-alias.c (internal_setent): Likewise.
1843         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
1844         * nss/nss_files/files-have_o_cloexec.c: New file.
1846         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
1847         available.
1849 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
1851         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
1852         ___new_wcstold_l): New weak aliases.
1853         (strtold_l, wcstold_l): Use them as second argument for
1854         long_double_symbol.
1856 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
1858         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
1859         register in test for error.
1861         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
1862         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
1864         * po/sv.po: Update from translation team.
1866 2007-08-06  Roland McGrath  <roland@redhat.com>
1868         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
1869         Remove __strto*_l inlines.
1870         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
1871         * stdlib/strtod.c: Add libc_hidden_def.
1872         * stdlib/strtod_l.c: Likewise.
1873         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
1874         for __new_strtold and __new_wcstold.
1875         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
1876         __STRTOF, STRTOF.
1877         * stdlib/strtol.c: Add libc_hidden_def.
1878         * stdlib/strtol_l.c: Likewise.
1879         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
1880         strtoq.
1882         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
1884         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
1885         * scripts/data/localplt-generic.data: ... here.
1886         * elf/Makefile (check-data): Get generic file if no other.
1887         ($(objpfx)check-localplt.out): Make target unconditional.
1889         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
1890         Use ElfW(Nhdr).
1892 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
1894         * po/zh_CN.po: Updated translation from translation team.
1896 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
1898         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
1899         Don't use CGOTSETUP and CGOTRESTORE macros.
1901 2007-08-04  Roland McGrath  <roland@redhat.com>
1903         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
1905 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
1907         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
1908         __extension__ around the whole statement expression.
1910 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
1912         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
1913         elements during initialization.
1915         * po/pl.po: Updated translation from translation team.
1916         * po/tr.po: Likewise.
1917         * po/nl.po: Likewise.
1919 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
1921         * rt/aio.h: Add __nonnull attributes.
1923 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
1925         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
1926         * stdlib/Makefile (tests): Add tst-strtod5.
1927         (tst-strtod5-ENV): New.
1928         * stdlib/tst-strtod5.c: New file.
1930         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
1931         failed.
1932         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
1933         on failure.
1935         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
1936         allocated.
1938 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
1940         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
1941         numbers.
1943 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
1945         * io/Makefile (aux): Add have_o_cloexec.
1946         * include/fcntl.h: Declare __have_o_cloexec.
1947         * io/have_o_cloexec.c: New file.
1948         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
1949         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
1950         fcntl call if not necessary.
1951         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
1952         of local variable.
1954         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
1955         Avoid memset, add explicit initialization.
1956         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
1957         to the end and change into zero-sized array.
1958         Move lock member to fill a hole on 64-bit platforms.
1960         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
1961         inline functions.
1962         * include/stdlib.h: Add __strto*_internal prototypes here.
1963         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
1964         inline functions.
1965         * include/wchar.h: Add __wcsto*_internal prototypes.
1966         * sysdeps/generic/inttypes.h: No need to protect the declaration
1967         of the __strto*_internal and __wcsto*_internal members here.
1969         * rt/mqueue.h: Change const to __const and add nonnull attributes.
1971 2007-08-02  Roland McGrath  <roland@redhat.com>
1973         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
1974         $(inst_bindir)/getconf if possible.
1976         * posix/Makefile ($(objpfx)getconf.speclist): New target.
1977         (generated): Add it.
1978         ($(inst_libexecdir)/getconf): Use it.
1980 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
1982         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
1983         /proc is faster and sufficient.  /sys is still needed for
1984         __get_nprocs_conf.
1986 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
1988         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
1989         syscall as __fallocate64.
1990         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
1991         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
1993 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
1995         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
1996         value.
1998         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
1999         if off_t is different rank from size_t.
2001         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
2002         uw_frame_state_for): Avoid type punning warnings.
2003         * sysdeps/generic/unwind-dw2-fde-glibc.c
2004         (_Unwind_IteratePhdrCallback): Likewise.
2005         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
2006         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
2007         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
2008         pointers.
2010 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
2012         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
2013         total processors using sysfs.
2014         (__get_nprocs): Use sysfs to determine which processors are online.
2016 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
2018         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
2019         syscall arguments count.
2021         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
2023 2007-07-30  Roland McGrath  <roland@redhat.com>
2025         * manual/libc.texinfo: Update copyrights, formatting magic, and
2026         @dircategory.  From Karl Berry <karl@freefriends.org>.
2028 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
2030         [BZ #4860]
2031         * io/Makefile (headers): Add bits/fcntl2.h.
2033         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
2034         using gcc builtin.
2035         (__CPU_EQUAL_S): Likewise.
2037         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
2038         (tests): Add tst-cpuset.
2039         * posix/sched_cpualloc.c: New file.
2040         * posix/sched_cpufree.c: New file.
2041         * posix/tst-cpuset.c: New file.
2042         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
2043         GLIBC_2.7.
2044         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
2045         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
2046         macros.  Define CPU_*_S macros.
2048 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
2050         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
2051         entry.
2053         [BZ #4858]
2054         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
2055         #.0g and value rounded to 1.0.
2056         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
2058 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
2060         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
2061         for int_frac_digits and frac_digits.
2063         * login/logout.c (logout): Avoid aliasing violation.
2064         * login/logwtmp.c (logwtmp): Likewise.
2066         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
2068         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
2069         to avoid warning.
2070         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
2071         warning.
2072         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
2073         warning.
2074         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
2075         to avoid warnings.
2077         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
2078         void **.
2079         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
2081         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
2082         char * to avoid warning.
2083         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
2085         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
2087         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
2088         allocate_arrays): Cast second argument to charmap_find_symbol
2089         to char * to avoid warnings.
2091         * locale/programs/repertoire.c (repertoire_new_char): Change
2092         from_nr, to_nr and cnt to unsigned long, adjust printf format
2093         string.
2095         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
2096         Cast second argument to new_element to char * to avoid warnings.
2098         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
2100         * intl/gettextP.h (struct loaded_domain): Change plural to const
2101         struct expression *.
2102         * intl/plural-eval.c (plural_eval): Change first argument to
2103         const struct expression *.
2104         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
2105         argument to const struct expression **.
2106         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
2107         prototypes.
2108         * intl/loadmsgcat (_nl_unload_domain): Cast away const
2109         in call to __gettext_free_exp.
2111         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
2112         unitialized wstring/wpattern var warnings.
2114         * posix/runtests.c (struct a_test): Make data field const char *.
2116         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
2117         vars if not LDBL_MANT_DIG >= 106.
2119         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
2121         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
2122         __find_specmb to avoid warning.
2124         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
2126         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
2127         to avoid warnings.
2129         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
2130         initializer.
2132         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
2133         tv var when it will be actually used.
2135         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
2136         to avoid warnings.
2138         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
2139         char array resp. pointer.
2140         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
2141         char array.
2142         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
2143         to const unsigned char **.
2144         (ucs4_to_cns11643): Change second argument to unsigned char *.
2145         * iconvdata/euc-tw.c (BODY): Change endp type to
2146         const unsigned char *.
2147         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
2148         to unsigned char *.
2149         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
2150         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
2151         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
2152         types to unsigned char pointers/arrays instead of char.
2153         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
2154         to unsigned char *.
2155         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
2156         * iconvdata/jis0212.h: Include assert.h.
2157         (ucs4_to_jisx0212): Change second argument to unsigned char *.
2158         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
2159         of trying to handle that.
2160         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
2161         shut up a warning.
2162         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
2163         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
2164         two dimensional const unsigned char arrays.
2165         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
2166         Initialize endp to inptr to shut up a warning.
2168 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
2170         [BZ #4772]
2171         * time/strptime_l.c (__strptime_internal): Silently ignore
2172         strftime modifiers and field width in recursive calls.
2174         * include/time.h (enum ptime_locale_status): Remove.
2175         (__strptime_internal): Remove decided and era_cnt arguments,
2176         add statep argument.
2177         * time/strptime_l.c (__strptime_internal): Remove decided
2178         and era_cnt arguments, add statep argument.  Don't recompute
2179         any fields in recursive calls, only update caller's tm
2180         and state, if recursive call fails, don't change tm nor
2181         any state.
2182         (get_alt_number): Adjust.
2183         (recursive): Adjust caller.
2184         (strptime): Likewise.
2185         * time/strptime.c (strptime): Likewise.
2187 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
2189         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
2190         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
2191         if from and to charsets are the same.
2192         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
2193         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
2194         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
2196 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
2198         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
2199         Don't define wint_t when __need_mbstate_t unless it
2200         is necessary.
2201         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
2202         in the typedef if possible.
2203         * wctype/wctype.h (wint_t): Define by including
2204         wchar.h with __need_wint_t instead of including stddef.h
2205         with __need_wint_t and as fallback definining it ourselves.
2206         * iconv/gconv.h (__need_wint_t): Define before including
2207         wchar.h.
2208         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
2209         or _GLIBCPP_USE_WCHAR_T.
2210         (__need_wchar_t): Don't define
2211         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
2212         (__need_wint_t): Don't define before including stddef.h,
2213         define before including wchar.h only if _LIBC or
2214         _GLIBCPP_USE_WCHAR_T.
2215         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
2216         * sysdeps/mach/hurd/_G_config.h: Likewise.
2217         * sysdeps/generic/_G_config.h: Likewise.
2218         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
2219         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
2220         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
2221         if _LIBC or _GLIBCPP_USE_WCHAR_T.
2223 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
2225         * sysdeps/posix/posix_fallocate64.c: Undefine
2226         __posix_fallocate64_l64 before alias handling.
2227         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
2228         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
2229         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
2230         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
2232         * io/tst-posix_fallocate.c: Include <fcntl.h>.
2234 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
2236         * locale/programs/ld-collate.c (atwc): New variable.
2237         (add_to_tablewc): New toplevel function, moved from collate_output.
2238         (collate_output): Remove add_to_tablewc nested function.
2240         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
2241         (name_insert): New function.
2242         (write_output): Remove hash_table and hash_size vars and name_insert
2243         nested function.
2245 2007-07-24  Roland McGrath  <roland@redhat.com>
2247         * Makerules (install-others-programs-nosubdir): New target.
2248         (install-no-libc.a-nosubdir): Depend on it.
2250         * iconv/Makefile (install-others-programs): Set this instead of
2251         install-others.
2252         * login/Makefile (install-others-programs): Likewise.
2253         * posix/Makefile (install-others-programs): Likewise.
2255         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
2256         dependencies.
2258 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
2260         * io/Makefile (tests): Add tst-posix_fallocate.
2261         * io/tst-posix_fallocate.c: New file.
2263         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2264         __ASSUME_FALLOCATE.
2266 2007-07-22  Roland McGrath  <roland@frob.com>
2268         * hurd/getdport.c: Add missing copyright year update.
2270         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
2271         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
2273 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
2275         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
2277         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
2278         O_CLOEXEC is needed.
2279         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
2280         Avoid additional fcntl to set O_CLOEXEC if not needed.
2281         * nis/nss_compat/compat-initgroups.c: Likewise.
2282         * nis/nss_compat/compat-pwd.c: Likewise.
2283         * nis/nss_compat/compat-spwd.c: Likewise.
2285 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2287         [BZ #3665]
2288         * manual/errno.texi: Change ECANCELED value to 119.
2290         [BZ #4610]
2291         * mach/lock-intern.h: Include <sys/cdefs.h>.
2293         [BZ #4178]
2294         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
2295         reading A.
2297         [BZ #4126]
2298         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
2299         to __sigsuspend.
2301         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
2303 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
2305         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
2306         `__ASSEMBLER__'.
2307         * sysdeps/mach/hurd/i386/tls.h: Likewise.
2309 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
2311         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
2312         descriptor received from nscd.
2314         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
2316         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
2317         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2318         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2319         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2320         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2321         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2323 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
2325         [BZ #4816]
2326         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
2328         [BZ #4813]
2329         * login/forkpty.c (forkpty): Close master and slave fds on
2330         fork failure.  Patch by
2331         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
2333 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
2335         * include/features.h (__USE_ISOC95): New define.
2336         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
2337         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
2338         for -std=iso9899:199409.
2339         * CONFORMANCE: Remove comments about unsupported AMD1.
2341 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
2343         * sysdeps/ia64/sched_cpucount.c: New file.
2344         * sysdeps/powerpc/sched_cpucount.c: New file.
2346         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
2347         __BEGIN_DECLS/__END_DECLS around the prototype.
2348         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
2349         pointer to const cpu_set_t.
2351         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
2352         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
2353         __need_size_t and include stddef.h.
2354         * sysvipc/sys/msg.h: Likewise.
2355         * posix/sched.h: Likewise.
2356         * hurd/hurd/signal.h (__need_size_t): Define.
2358         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
2359         neither does signal.h in pedantic ISO C namespaces.  stdio.h
2360         no longer defines wint_t or wchar_t.
2362         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
2363         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
2364         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
2365         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
2366         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
2367         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
2368         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
2369         * debug/printf_chk.c (__printf_chk): Likewise.
2370         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
2371         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
2373         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
2374         Define.
2376         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
2377         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
2379 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
2381         [BZ #4792]
2382         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
2383         * malloc/malloc.h (realloc): Likewise.
2385         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
2386         if one of proc_file_chain streams has that fileno.
2387         * stdio-common/Makefile (tests): Add tst-popen2.
2388         * stdio-common/tst-popen2.c: New test.
2390 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
2392         * elf/ldconfig.c: Allow GPLv2 or any later version.
2393         * elf/readlib.c: Likewise.
2394         * elf/chroot_canon.c: Likewise.
2395         * elf/cache.c: Likewise.
2396         * nscd/mem.c: Likewise.
2397         * nscd/getpwuid_r.c: Likewise.
2398         * nscd/grpcache.c: Likewise.
2399         * nscd/aicache.c: Likewise.
2400         * nscd/getsrvbynm_r.c: Likewise.
2401         * nscd/nscd.c: Likewise.
2402         * nscd/servicescache.c: Likewise.
2403         * nscd/getsrvbypt_r.c: Likewise.
2404         * nscd/initgrcache.c: Likewise.
2405         * nscd/gethstbyad_r.c: Likewise.
2406         * nscd/gethstbynm2_r.c: Likewise.
2407         * nscd/getgrnam_r.c: Likewise.
2408         * nscd/nscd_setup_thread.c: Likewise.
2409         * nscd/getpwnam_r.c: Likewise.
2410         * nscd/gai.c: Likewise.
2411         * nscd/connections.c: Likewise.
2412         * nscd/dbg_log.c: Likewise.
2413         * nscd/cache.c: Likewise.
2414         * nscd/hstcache.c: Likewise.
2415         * nscd/nscd_conf.c: Likewise.
2416         * nscd/getgrgid_r.c: Likewise.
2417         * nscd/pwdcache.c: Likewise.
2418         * catgets/gencat.c: Likewise.
2419         * locale/programs/linereader.h: Likewise.
2420         * locale/programs/locarchive.c: Likewise.
2421         * locale/programs/ld-paper.c: Likewise.
2422         * locale/programs/locfile-kw.h: Likewise.
2423         * locale/programs/ld-address.c: Likewise.
2424         * locale/programs/xmalloc.c: Likewise.
2425         * locale/programs/ld-time.c: Likewise.
2426         * locale/programs/localedef.c: Likewise.
2427         * locale/programs/simple-hash.c: Likewise.
2428         * locale/programs/xstrdup.c: Likewise.
2429         * locale/programs/ld-numeric.c: Likewise.
2430         * locale/programs/locfile-kw.gperf: Likewise.
2431         * locale/programs/ld-collate.c: Likewise.
2432         * locale/programs/charmap-kw.gperf: Likewise.
2433         * locale/programs/charmap.h: Likewise.
2434         * locale/programs/charmap-kw.h: Likewise.
2435         * locale/programs/config.h: Likewise.
2436         * locale/programs/locfile.c: Likewise.
2437         * locale/programs/ld-ctype.c: Likewise.
2438         * locale/programs/charmap.c: Likewise.
2439         * locale/programs/ld-messages.c: Likewise.
2440         * locale/programs/repertoire.h: Likewise.
2441         * locale/programs/locale.c: Likewise.
2442         * locale/programs/ld-name.c: Likewise.
2443         * locale/programs/linereader.c: Likewise.
2444         * locale/programs/locfile.h: Likewise.
2445         * locale/programs/3level.h: Likewise.
2446         * locale/programs/ld-monetary.c: Likewise.
2447         * locale/programs/ld-measurement.c: Likewise.
2448         * locale/programs/charmap-dir.c: Likewise.
2449         * locale/programs/ld-identification.c: Likewise.
2450         * locale/programs/localedef.h: Likewise.
2451         * locale/programs/charmap-dir.h: Likewise.
2452         * locale/programs/repertoire.c: Likewise.
2453         * locale/programs/simple-hash.h: Likewise.
2454         * locale/programs/ld-telephone.c: Likewise.
2455         * locale/programs/locale-spec.c: Likewise.
2456         * locale/programs/locfile-token.h: Likewise.
2457         * posix/getconf.c: Likewise.
2458         * iconv/dummy-repertoire.c: Likewise.
2459         * iconv/iconv_charmap.c: Likewise.
2460         * iconv/iconvconfig.c: Likewise.
2461         * iconv/iconv_prog.c: Likewise.
2462         * malloc/memusagestat.c: Likewise.
2463         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
2465 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2467         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
2468         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
2469         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
2470         check for the first argument.
2472 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
2474         [BZ #4775]
2475         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
2476         (__tgmath_real_type): Fix if expr is const int or other const
2477         qualified integral type.
2478         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
2479         expressions and handle const qualified arguments.
2480         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
2481         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
2482         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
2483         statement expressions.
2484         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
2485         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
2486         (__TGMATH_UNARY_IMAG): Define.
2487         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
2488         * math/Makefile (tests): Add test-tgmath2.
2489         (CFLAGS-test-tgmath2.c): Add.
2490         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
2491         count_cfloat, count_cldouble): New variables.
2492         (NCCALLS): Define.
2493         (main): Check number of complex calls as well.
2494         (F(compile_test)): Add complex tests and tests with const qualified
2495         arguments.
2496         (y, z, ccount): Define.
2497         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
2498         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
2499         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
2500         F(cproj)): New functions.
2501         * math/test-tgmath2.c: New test.
2503 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
2505         [BZ #4776]
2506         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
2507         RPATH etc. as "/" rather than "", don't segfault on empty paths,
2508         instead output ".".
2509         * dlfcn/Makefile (distribute): Add glreflib3.c.
2510         (module-names): Add glreflib3.
2511         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
2512         glreflib1.so.
2513         (LDFLAGS_glreflib3.so): New.
2514         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
2515         glreflib1.so.
2516         * dlfcn/glreflib3.c: New file.
2518         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
2519         returned -1, return NULL.
2520         * intl/explodename.c (_nl_explode_name): Return -1 if
2521         _nl_normalize_codeset failed.
2523 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
2525         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
2526         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
2527         and avoid branch misspredicts for > 31 bytes memset case.
2528         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
2529         Remove toc ref to __cache_line_size.
2531         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
2532         to get ISA-V2.0 branch hints.
2533         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
2534         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
2535         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
2536         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
2537         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
2538         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
2539         Remove toc ref to __cache_line_size.
2541         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
2542         Include math_ldbl_opt.h.
2544 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
2546         [BZ #4773]
2547         * time/strptime_l.c (__strptime_internal): Implement greedy
2548         matching of weekday and month names.
2550 2007-07-09  Roland McGrath  <roland@redhat.com>
2552         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
2553         (ELF_NOTE_ABI): Use it.
2554         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
2556 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
2558         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
2559         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2561 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
2563         [BZ #4745]
2564         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
2565         in loop to look for conversion specifier to avoid testing of
2566         wrong errno value.
2567         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
2568         * stdio-common/bug18.c: New file.
2569         * stdio-common/bug18a.c: New file.
2570         * stdio-common/bug19.c: New file.
2571         * stdio-common/bug19a.c: New file.
2573 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
2575         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
2576         running awk script.
2578 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
2580         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
2581         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
2582         Return NULL if mmap failed instead of asserting it does not.
2583         (calloc): Check for integer overflow.
2585         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
2586         than LONG_MAX / 10.
2588 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
2590         [BZ #4702]
2591         * nis/nss-default.c: Include errno.h.
2592         (init): Preserve errno.
2594 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
2596         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
2598 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
2600         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
2602 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2604         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
2606 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2608         * sysdeps/s390/dl-procinfo.c: New file.
2609         * sysdeps/s390/dl-procinfo.h: New file.
2610         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
2612 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
2614         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
2615         in PT_NOTE segments with multiple notes.
2616         * elf/readelflib.c (process_elf_file): Likewise.
2618 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
2620         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
2621         ISO C compliant.
2623 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
2625         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
2627 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
2629         * include/link.h: Don't include rtld-lowlevel.h.
2630         (struct link_map): Remove l_scope_lock.
2631         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
2632         (_dl_scope_free_list): New field (variable) in _rtld_global.
2633         (DL_LOOKUP_SCOPE_LOCK): Remove.
2634         (_dl_scope_free): New prototype.
2635         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
2636         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
2637         (_dl_profile_fixup): Likewise.
2638         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
2639         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
2640         THREAD_GSCOPE_RESET_FLAG around it.
2641         * elf/dl-close.c (_dl_close_worker): Don't use
2642         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
2643         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
2644         scopes were queued or if l_scope_mem has been abandoned.
2645         * elf/dl-open.c (_dl_scope_free): New function.
2646         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
2647         * elf/dl-support.c (_dl_scope_free_list): New variable.
2648         * elf/dl-lookup.c (add_dependency): Remove flags argument.
2649         Remove DL_LOOKUP_SCOPE_LOCK handling.
2650         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
2651         handling.
2652         * elf/dl-object.c (_dl_new_object): Don't use
2653         __rtld_mrlock_initialize.
2655 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
2657         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
2658         to fill in holes
2659         (rtld_global_ro): Likewise.
2661 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
2663         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
2664         Move PT_LOAD checking to...
2665         (_dl_addr_inside_object): ... here, new function.
2666         * elf/dl-sym.c (do_sym): If not l_contiguous,
2667         call _dl_addr_inside_object.
2668         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2669         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
2670         * elf/dl-open.c (dl_open_worker): Likewise.
2671         (_dl_addr_inside_object): New function if IS_IN_rtld.
2672         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
2673         holes are present or are PROT_NONE protected.
2674         * include/link.h (struct link_map): Add l_contiguous field.
2675         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
2677 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
2678             Tomas Janousek  <tjanouse@redhat.com>
2679             Ulrich Drepper  <drepper@redhat.com>
2681         [BZ #4647]
2682         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
2683         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
2684         socket.
2685         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
2686         unused member a bitmap.
2687         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
2688         servers are configured.
2690 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
2692         * elf/rtld.c (dl_main): Don't call init_tls more than once.
2694 2007-06-17  Andreas Schwab  <schwab@suse.de>
2696         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
2698 2007-06-16  Andreas Jaeger  <aj@suse.de>
2700         [BZ #4125]
2701         * sysdeps/unix/sysv/linux/sys/ptrace.h
2702         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
2703         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
2704         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
2705         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
2706         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
2707         Define.
2708         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
2709         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
2710         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
2711         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
2713 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
2715         [BZ #4599]
2716         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
2717         determining whether there are IPv4/IPv6 addresses, ignore loopback
2718         addresses.
2720 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
2722         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
2723         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
2724         as the return type.  Change type of "r" variable to CMPtype.
2725         * soft-fp/eqsf2.c (__eqsf2): Likewise.
2726         * soft-fp/eqtf2.c (__eqtf2): Likewise.
2727         * soft-fp/gedf2.c (__gedf2): Likewise.
2728         * soft-fp/gesf2.c (__gesf2): Likewise.
2729         * soft-fp/getf2.c (__getf2): Likewise.
2730         * soft-fp/ledf2.c (__ledf2): Likewise.
2731         * soft-fp/lesf2.c (__lesf2): Likewise.
2732         * soft-fp/letf2.c (__letf2): Likewise.
2733         * soft-fp/unorddf2 (__unorddf2): Likewise.
2734         * soft-fp/unordsf2 (__unordsf2): Likewise.
2735         * soft-fp/unordtf2 (__unordtf2): Likewise.
2737 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
2739         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
2740         make sure gcc doesn't mess around with this.
2742 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
2744         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
2746 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
2748         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
2749         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
2750         at most once per _dl_close_worker.
2752 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
2754         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
2755         __sched_cpucount as const.
2756         * posix/sched_cpucount.c: Adjust.
2758         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
2759         instruction for counting bits.
2760         * sysdeps/x86_64/sched_cpucount.c: New file.
2762 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
2764         * configure.in: Avoid variable named BASH.
2765         * config.make.in: Likewise.
2766         Patch in part by Mike Frysinger.
2768 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
2770         [BZ #4586]
2771         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
2772         pseudo-zeros as zero.
2773         * sysdeps/x86_64/ldbl2mpn.c: New file.
2774         * sysdeps/ia64/ldbl2mpn.c: New file.
2776 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
2778         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
2779         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
2780         Remove unreachable code at the end.
2782 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
2784         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
2785         ldbl-128ibm in comment.
2786         (fpclassifyl): Correct classification of denormals.
2787         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
2788         return value for MIN denormal. Rewrite using long double math too
2789         correctly handle denormals and canonicalize the results.
2791 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
2793         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
2794         (__mpn_construct_long_double): Fix conversion where result ought
2795         to be smaller than __LDBL_MIN__, or the low double should be
2796         denormal.  Fix decision where to negate low double - honor round
2797         to even rules.
2798         * stdio-common/tst-sprintf2.c: Include string.h.
2799         (COMPARE_LDBL): Define.
2800         (TEST): Also test whether a string hexadecimal float representation
2801         can be parsed back to the number.
2802         (main): Add a couple of further tests.
2804 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
2806         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
2807         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
2808         is non-zero, but smaller than 2 * __DBL_MIN__.
2809         * stdio-common/tst-sprintf2.c: New test.
2810         * stdio-common/Makefile (tests): Add tst-sprintf2.
2812         * math/test-misc.c (main): Don't run last batch of tests with
2813         IBM long double format.
2815 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
2817         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
2818         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
2819         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
2820         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
2821         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
2822         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
2823         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
2824         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
2825         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
2826         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
2827         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
2828         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
2829         New file.
2830         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
2831         New file.
2832         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
2833         New file.
2834         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
2835         New file.
2836         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
2837         New file.
2838         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
2839         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
2840         New file.
2841         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
2842         New file.
2843         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
2844         New file.
2845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
2846         New file.
2847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
2848         New file.
2850 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
2852         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
2853         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
2854         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
2855         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
2856         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
2857         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
2858         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
2859         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
2861 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
2863         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
2864         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
2865         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
2866         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
2867         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
2868         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
2869         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
2870         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
2872 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
2874         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
2875         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
2876         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
2877         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
2879 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
2881         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
2882         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
2884 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
2886         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
2887         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
2888         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
2889         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
2891 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
2893         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
2894         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
2896 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
2898         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
2899         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
2901         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
2902         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
2903         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
2904         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
2906 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
2908         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
2909         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
2910         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
2911         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
2913 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
2915         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
2916         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
2917         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
2918         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
2919         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
2920         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
2922 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
2924         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
2925         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
2926         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
2927         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
2929 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
2931         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
2932         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
2933         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
2934         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
2935         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
2936         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
2937         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
2938         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
2939         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
2940         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
2941         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
2942         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
2943         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
2944         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
2945         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
2946         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
2948 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
2950         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
2951         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
2953 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
2955         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
2956         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
2958 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
2960         * sysdeps/powerpc/powerpc32/970/Implies: New file.
2961         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
2962         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
2963         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
2964         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
2965         * sysdeps/powerpc/powerpc64/970/Implies: New file.
2966         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
2967         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
2968         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
2969         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
2971 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
2973         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
2975 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
2977         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
2978         branch miss-predicts. Ensure that cache line crossing does not impact
2979         dispatch grouping.
2981 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
2983         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
2984         "../../powerpc32/power4/memcopy.h".
2985         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
2986         "../../powerpc32/power4/wordcopy.c".
2988 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
2990         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
2991         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
2992         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
2993         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
2994         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
2995         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
2997 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
2999         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
3001 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
3003         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
3004         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
3005         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
3006         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
3007         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
3008         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
3009         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
3010         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
3012 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
3014         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
3016 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
3018         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
3019         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
3020         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
3021         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
3022         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
3023         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
3024         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
3026 2007-05-29  Roland McGrath  <roland@redhat.com>
3028         * po/Makefile (po-sed-cmd): New variable.
3029         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
3031 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
3033         * crypt/md5-crypt.c: Fix comment.
3035         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
3036         of crashing.  When this is the case or if the reply is malformed,
3037         don't try to close the new file descriptor since it does not
3038         exist.
3039         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
3041 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
3043         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
3044         if __NR_utimensat is not defined.
3046 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
3048         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
3050 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
3052         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
3053         (open): Fix comment typos.  Don't call __open_2 if flags
3054         is a compile time constant without O_CREAT.
3055         (__open64_2): Add nonnull attribute.
3056         (open64): Fix comment typos.  Don't call __open64_2 if flags
3057         is a compile time constant without O_CREAT.
3058         (__openat_2): Add nonnull attribute, fix nonnull attribute
3059         on redirect.
3060         (openat): Fix comment typos.  Don't call __openat_2 if flags
3061         is a compile time constant without O_CREAT.
3062         (__openat64_2): Add nonnull attribute, fix nonnull attribute
3063         on redirect.
3064         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
3065         is a compile time constant without O_CREAT.
3067 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
3069         * Makerules (sysd-rules): Define PTW for ptw-* files.
3070         * Versions: Define GLIBC_2.7 for libc.
3071         * include/stdio.h: Declare __fortify_fail.
3072         * debug/fortify_fail.c: New file.
3073         * debug/Makefile (routines): Add fortify_fail.
3074         * debug/chk_fail.c: Use __fortify_fail.
3075         * debug/stack_chk_fail.c: Likewise.
3076         * io/Versions: Export __open_2, __open64_2, __openat_2, and
3077         __openat64_2 for GLIBC_2.7.
3078         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
3079         * io/open.c: Define *_2 variant of function which checks for O_CREAT
3080         and fails if necessary.
3081         * io/open64.c: Likewise.
3082         * io/openat.c: Likewise.
3083         * io/openat64.c: Likewise.
3084         * sysdeps/unix/sysv/linux/open64.c: Likewise.
3085         * sysdeps/unix/sysv/linux/openat.c: Likewise.
3086         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
3087         * io/bits/fcntl2.h: New file.
3088         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
3089         __openat64_2.
3090         * include/bits/fcntl2.h: New file.
3091         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3092         Add open_2.
3093         * sysdeps/unix/sysv/linux/open_2.c: New file.
3095 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
3097         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
3098         as second parameter to handle_intel.
3100         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
3101         the entry.
3103         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
3104         handling to ...
3105         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
3106         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
3107         cacheinfo.
3108         * sysdeps/x86_64/memcpy.S: Complete rewrite.
3109         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
3110         Patch by Evandro Menezes <evandro.menezes@amd.com>.
3112         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
3114 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
3116         [BZ #4525]
3117         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
3118         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
3119         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
3121         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
3123         [BZ #4514]
3124         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
3125         reinitialize workend at the start of each do_positional format spec
3126         loop, free workstart before do_positional loops.
3127         (printf_unknown): Fix size of work_buffer.
3128         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
3130         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
3131         (public_sET_STATe): If ms->version < 3, put all chunks into
3132         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
3133         chunks.
3135         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
3136         * malloc/hooks.c: Likewise.
3137         * malloc/arena.c: Likewise.
3138         * malloc/malloc.c (do_check_malloc_state): Don't assert
3139         n_mmaps is not greater than n_mmaps_max.  This removes the need
3140         for the previous change.
3142         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
3143         2007-05-07 commit.
3145 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
3147         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
3148         Define for kernel >= 2.6.22.
3150 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
3152         * elf/dl-close.c (_dl_close_worker): When removing object from
3153         global scope, wait for all lookups to finish afterwards.
3154         * elf/dl-open.c (add_to_global): When global scope array must
3155         grow, allocate a new one and free old array only after all
3156         lookups finish.
3157         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
3158         (_dl_lookup_symbol_x): Likewise.
3159         * elf/dl-support.c: Define _dl_wait_lookup_done.
3160         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
3161         _dl_wait_lookup_done.
3163         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
3164         not overlapping with arena.
3166         * malloc/mcheck.c (reallochook): If size==0, free the block.
3168         * rt/tst-shm.c: Use fstat64 instead of fstat.
3170         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
3171         __NR_sync_file_range is not defined.
3173 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
3175         Dummy files to prevent stub versions from being used.
3176         * sysdeps/x86_64/fpu/k_cosl.c: New file.
3177         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
3178         * sysdeps/x86_64/fpu/k_sinl.c: New file.
3179         * sysdeps/x86_64/fpu/k_tanl.c: New file.
3181         * version.h (VERSION): Set to 2.6.90.
3183 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
3185         * version.h (VERSION): Define to 2.6.
3186         * include/features.h (__GLIBC_MINOR__): Define to 6.
3188         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
3190         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
3191         sizes.
3193 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
3195         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
3196         number of mmaps.  n_mmaps_max is the target.
3197         * malloc/hooks.c: Likewise.
3198         * malloc/arena.c: Likewise.
3200 2007-05-12  Andreas Jaeger  <aj@suse.de>
3202         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
3203         getpid.
3205 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
3207         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
3208         adding new variables.
3210         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
3211         optimize.  Completely extend global scope array before making the
3212         new entries visible.
3214 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
3216         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
3217         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
3218         tst-getcpu.
3220         * include/link.h: Move l_version and l_nversion members around to
3221         fill gaps.
3223         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
3225         * sysdeps/unix/sysv/linux/sched_setaffinity.c
3226         (__sched_setaffinity_new): If syscall was successful and
3227         RESET_VGETCPU_CACHE is defined, use it before returning.
3228         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
3230         * io/sys/stat.h: Make sure struct timespec is defined for
3231         __USE_ATFILE.
3233         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
3234         UTIME_OMIT.
3235         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3236         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3237         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
3238         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
3239         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
3240         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3241         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
3242         * io/sys/stat.h: Declare utimensat, futimens.
3243         * io/utimensat.c: New file.
3244         * io/futimens.c: New file.
3245         * sysdeps/unix/sysv/linux/utimensat.c: New file.
3246         * sysdeps/unix/sysv/linux/futimens.c: New file.
3247         * io/Makefile (routines): Add utimensat, futimens.
3248         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
3249         * sysdeps/unix/sysv/linux/lutimes.c: New file.
3250         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
3251         available.
3253         * include/sys/cdefs.h: Redefine __nonnull so that test for
3254         incorrect parameters in the libc code itself are not omitted.
3256 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
3258         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
3259         exception in addition to inexact when asked to raise only FE_INEXACT.
3261         [BZ #3427]
3262         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
3263         in *envp.
3265 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
3267         [BZ #4403]
3268         * string/strfry.c (strfry): Make result more random.
3270 2007-05-07  Richard Henderson  <rth@redhat.com>
3272         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
3273         if __NO_LONG_DOUBLE_MATH.
3274         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
3275         available in the compiler, add .arch directive to the assembly.
3277 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
3279         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
3280         compat_symbol to GLIBC_2_1.
3281         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
3282         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
3283         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
3284         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
3285         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
3286         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
3287         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
3288         libc, not libm.
3289         (__isnanl): New compat_symbol.
3291 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
3292             Jakub Jelinek  <jakub@redhat.com>
3294         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
3295         (new_heap): Initialize mprotect_size.
3296         (grow_heap): When growing, only mprotect from mprotect_size till
3297         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
3298         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
3300 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
3301             Peter Bergner  <bergner@us.ibm.com>
3303         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
3304         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
3305         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
3306         * sysdeps/powerpc/fpu/fe_mask.c: New file.
3307         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
3308         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
3309         Call __fe_mask_env() if all FP exceptions disabled.
3310         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
3311         from old FPSCR to new fenv to propagate DFP rounding modes.
3312         Call __fe_mask_env() if FP exceptions previously enabled.
3313         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
3314         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
3315         transitioning from all exceptions disabled to any exception enabled
3316         or visa versa.
3317         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
3318         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
3319         when transitioning from all exceptions disabled to any exception
3320         enabled or visa versa.
3321         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
3322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
3323         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
3324         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
3325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
3326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
3328 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
3330         [BZ #4465]
3331         * posix/unistd.h: Remove __THROW from fdatasync.
3333 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
3335         [BZ #4465]
3336         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
3338 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
3340         * stdio-common/vfprintf.c (process_string_arg): Optimize
3341         ridiculous precision in wide char code printing multi-byte string.
3342         Reported by Jim Meyering <jim@meyering.net>.
3344         [BZ #4131]
3345         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
3346         boundaries to work around systems with overlapping binary loading.
3347         Based on a patch by Suzuki <suzuki@in.ibm.com>.
3349 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
3351         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
3352         __mbsnrtowcs after last change.
3354         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
3355         (get_ident): Likewise.
3357 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
3359         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
3360         with setting the sticky bit.
3361         * math/test-misc.c (main): Add more truncation tests.
3363 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
3365         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
3366         double in the function declaration.
3367         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
3368         double in the function declaration.
3369         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
3370         float in the function declaration.
3371         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
3372         float in the function declaration.
3374         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
3375         denormal operands.  Do not generate FP_EX_DENORM exception.
3376         (FP_UNPACK_RAW_EP): Ditto.
3377         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
3378         undefined _FP_UNPACK_RAW_E.
3379         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
3380         undefined _FP_UNPACK_RAW_EP.
3381         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
3382         undefined _FP_PACK_RAW_E.
3383         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
3384         undefined _FP_PACK_RAW_EP.
3386         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
3387         _FP_FRAC_COPY_2.
3388         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
3389         _FP_FRAC_COPY_4.
3391 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
3392             Jakub Jelinek  <jakub@redhat.com>
3394         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
3395         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
3396         this case.
3397         * soft-fp/op-common.h (FP_TRUNC): Ditto.
3399 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
3401         * math/test-misc.c (main): Add tests for rounding long double
3402         values close to smallest double denormalized value to double.
3404 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
3406         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
3407         condition for truncating to 0.  Set sticky bit for such
3408         truncation.
3410 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
3412         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
3413         fixed length array for ignore.
3415 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
3417         [BZ #4438]
3418         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
3419         stack for large precisions.
3420         * stdio-common/test-vfprintf.c (main): Add test for large
3421         precision.
3423 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
3425         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
3426         for exponent 0.
3427         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
3429         [BZ #4439]
3430         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
3431         account in the size check.
3432         * resolv/tst-inet_ntop.c: New test.
3433         * resolv/Makefile (tests): Add tst-inet_ntop.
3435 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
3436             Jakub Jelinek  <jakub@redhat.com>
3438         [BZ #4349]
3439         * malloc/malloc.c: Keep separate list for first blocks on the bin
3440         lists with a given size.  This helps skipping over list elements
3441         we know won't fit in two places.
3442         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
3444 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
3446         [BZ #4102]
3447         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
3448         label to Teredo tunnel addresses 2001://32.
3450 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
3452         * locale/programs/ld-collate.c (collate_read): Allow order_start
3453         after copy.
3455         * locale/programs/ld-collate.c (collate_read): Fix printing of
3456         error message.
3458         [BZ #3213]
3459         * locale/C-translit.h.in: Add entry for U2044.
3461         [BZ #4342]
3462         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
3463         hexa-decimal floats without exponent.
3464         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
3466 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
3468         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
3469         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
3470         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
3471         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
3472         GLIBC_2.6.
3473         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
3474         Add sched_getcpu.
3476 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
3478         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
3479         of 0 after the out_fail label.
3481 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
3483         [BZ #4406]
3484         * iconv/gconv_charset.h (strip): Allow ':'.
3485         * iconv/iconv_open.c (iconv_open): Adjust comment.
3487 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
3489         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
3490         version.
3492 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
3494         [BZ #4381]
3495         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
3496         alignment of buffer and tmp_buffer.
3497         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
3498         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
3499         alignment of buffer.
3500         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
3501         bigger than INT_MAX.
3502         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
3503         h_errnop arguments.  Fail if buflen is too small.
3504         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
3506 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
3508         [BZ #4405]
3509         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
3510         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
3512 2007-04-22  Roland McGrath  <roland@redhat.com>
3514         * elf/elf.h (NT_PRXFPREG): New macro.
3516 2007-04-19  Andreas Jaeger  <aj@suse.de>
3518         [BZ #3905]
3519         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
3520         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
3521         Added.
3523 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
3525         * include/sys/mman.h: Mark madvise hidden.
3526         * misc/madvise.c: Add libc_hidden_def.
3528 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
3530         * nis/nis_domain_of.c (__nis_domain_of): New function.
3531         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
3532         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
3533         * nis/nis_call.c (rec_dirsearch): Likewise.
3534         (first_shoot): Likewise.  Remove search_parent_first argument.
3535         (struct nis_server_cache): Rename search_parent_first field
3536         to search_parent.
3537         (nis_server_cache_search, nis_server_cache_add): Rename
3538         search_parent_first argument to search_parent.
3539         (__nisfind_server): Likewise.  If search_parent, call
3540         __nis_domain_of.
3542 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
3544         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
3546 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
3548         [BZ #4368]
3549         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
3551 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
3553         [BZ #4364]
3554         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
3556 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
3558         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
3559         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
3560         current number of locales in SUPPORTED.
3561         (create_archive): Initialize serial.
3562         (enlarge_archive): Preserve aliases rather than duplicating
3563         their locrecs.
3565 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
3567         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
3568         after _IO_un_link, not before it.
3570         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
3571         special case handling when wcp == wstartp + 1.  Fix a comment typo.
3572         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
3574 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
3576         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
3577         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
3578         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
3579         Remove __THROW.
3580         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
3581         _IO_file_xsgetn_maybe_mmap): Likewise.
3582         * libio/oldfileops.c (old_do_write): Likewise.
3583         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
3584         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
3585         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
3586         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
3587         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
3588         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
3589         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
3590         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
3591         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
3592         _IO_file_underflow, _IO_file_underflow_mmap,
3593         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
3594         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
3595         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
3596         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
3597         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
3598         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
3599         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
3600         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
3601         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
3602         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
3603         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
3604         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
3605         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
3606         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
3607         _IO_adjust_column_internal, _IO_default_uflow_internal,
3608         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
3609         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
3610         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
3611         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
3612         _IO_file_close_it_internal, _IO_file_underflow_internal,
3613         _IO_file_overflow_internal, _IO_file_attach_internal,
3614         _IO_file_fopen_internal, _IO_file_sync_internal,
3615         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
3616         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
3617         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
3618         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
3619         _IO_seekpos_unlocked): Likewise.
3620         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
3621         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
3623 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
3625         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
3626         argument in xmalloc size computation.
3628 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
3630         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
3631         math_opt_barrier and math_force_eval macros.
3633 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
3635         [BZ #3306]
3636         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
3637         * sysdeps/i386/fpu/math_private.h: New file.
3638         * sysdeps/x86_64/fpu/math_private.h: New file.
3639         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
3640         math_force_eval macros.  Use "+m" constraint on asm rather than
3641         "=m" and "m".
3642         * math/s_nextafter.c (__nextafter): Likewise.
3643         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
3644         Likewise.
3645         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
3646         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
3647         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
3648         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
3649         math_opt_barrier and math_force_eval macros.
3650         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
3651         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
3652         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
3653         (__nexttoward): Use math_opt_barrier and
3654         math_force_eval macros.  Use "+m" constraint on asm rather than
3655         "=m" and "m".  Only use asm to force double result if
3656         FLT_EVAL_METHOD is 2.
3657         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
3658         (__nexttowardf): Use math_opt_barrier and
3659         math_force_eval macros.  Use "+m" constraint on asm rather than
3660         "=m" and "m".  Only use asm to force double result if
3661         FLT_EVAL_METHOD is not 0.
3662         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
3663         (__nexttowardf): Use math_opt_barrier and
3664         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
3665         x to float using asm.
3666         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
3667         (__nldbl_nexttowardf): Use math_opt_barrier and
3668         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
3669         x to float using asm.
3670         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
3671         (__nexttowardf): Use math_opt_barrier and math_force_eval
3672         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
3673         * math/bug-nextafter.c (zero, inf): New variables.
3674         (main): Add new tests.
3675         * math/bug-nexttoward.c (zero, inf): New variables.
3676         (main): Add new tests.
3678 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
3680         [BZ #3427]
3681         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
3682         exceptions both in SW and MXCSR.
3683         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
3684         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
3685         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3686         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
3687         in MXCSR if SSE is available.
3688         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
3689         and ldsodefs.h.
3690         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
3691         Fix comment typo.
3692         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
3693         Return 0 rather than 1.
3694         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
3695         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
3696         * math/test-fenv.c (feholdexcept_tests): New function.
3697         (main): Call it.
3699 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
3701         [BZ #3427]
3702         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
3703         in SW.
3705 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
3707         [BZ #4344]
3708         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
3709         Reported by David Anderson <davea42@earthlink.net>.
3711 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
3713         * posix/sys/wait.h: Remove unnecessary forward declaration.
3715 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
3717         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
3718         with obj->do_servers after first_shoot.
3720 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
3722         * posix/Makefile (routines): Add sched_cpucount.
3723         (tests): Add tst-cpucount.
3724         * posix/sched_cpucount.c: New file.
3725         * posix/tst-cpucount.c: New file.
3726         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
3727         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
3728         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
3729         * posix/sched.h: Define CPU_COUNT.
3731 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
3733         * posix/fnmatch.c (STRUCT): Define.
3734         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
3735         * posix/fnmatch_loop.c (struct STRUCT): New type.
3736         (FCT): Add ends argument.  If ends != NULL and normal * is
3737         seen in the pattern, store current pattern and string pointers
3738         and return.  Adjust recursive calls.
3739         (EXT): Adjust FCT callers.
3740         (STRUCT): Undef at the end of the file.
3741         * posix/Makefile (tests): Add tst-fnmatch2.
3742         * posix/tst-fnmatch2.c: New test.
3744 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
3746         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
3747         and 1 on failure.
3749         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
3750         Change last argument to unsigned int.
3752 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
3754         * scripts/check-local-headers.sh: Filter out sys/capability.h.
3756 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
3758         * config.h.in (HAVE_LIBCAP): Add.
3759         * nscd/selinux.h: Include sys/capability.h rather than non-existent
3760         sys/capabilities.h.
3761         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
3762         free_caps.  Cast away const from 4th cap_set_flag argument.
3764 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
3766         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
3767         GLIBC_2.6.
3768         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3769         Add sync_file_range.
3770         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
3772 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
3774         * sysdeps/powerpc/bits/atomic.h
3775         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
3776         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
3777         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
3778         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
3779         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
3780         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
3781         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
3782         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
3783         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
3784         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
3785         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
3786         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
3787         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
3788         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
3789         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
3790         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
3791         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
3792         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
3793         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
3794         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
3796 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
3798         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
3799         (__cache_line_size): Define the variable here.  Add
3800         attribute_hidden, remove weak_extern.
3801         (__libc_start_main): Set __cache_line_size
3802         unconditionally.
3803         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3804         (__cache_line_size): Define the variable here.  Add
3805         attribute_hidden, remove weak_extern.
3806         (DL_PLATFORM_AUXV): Set __cache_line_size
3807         unconditionally.
3808         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
3809         weak_extern, add attribute_hidden.
3810         (__elf_machine_runtime_setup): Assume __cache_line_size is always
3811         defined in ld.so.
3812         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
3813         definition.
3814         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
3816 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
3818         [BZ #4276]
3819         * timezone/africa: Update from tzdata2007d.
3820         * timezone/asia: Likewise.
3821         * timezone/australasia: Likewise.
3822         * timezone/backward: Likewise.
3823         * timezone/europe: Likewise.
3824         * timezone/iso3166.tab: Likewise.
3825         * timezone/leapseconds: Likewise.
3826         * timezone/northamerica: Likewise.
3827         * timezone/southamerica: Likewise.
3828         * timezone/zone.tab: Likewise.
3830         * timezone/private.h: Update from tzcode2007d.
3831         * timezone/zdump.c: Likewise.
3832         * timezone/zic.c: Likewise.
3834 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
3836         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
3837         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
3838         variables.
3839         (nis_server_cache_search, nis_server_cache_add): New functions.
3840         (__nisfind_server): Use them.  Add dbp and flags argument, if
3841         call __nisbind_create.
3842         (__nisbind_create): Add server_used and current_ep arguments,
3843         only call __nis_findfastest if server_used is ~0.
3844         (__do_niscall2, __prepare_niscall): Adjust callers.
3845         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
3846         ckey_cache_euid, ckey_cache_lock): New variables.
3847         (get_ckey): New function.
3848         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
3849         __pmap_getnisport.  Save __pmap_getnisport result in
3850         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
3851         key.
3852         * nis/nis_lookup.c (nis_lookup): Likewise.
3853         * nis/nis_table.c (nis_list): Likewise.
3854         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
3855         prototypes.
3857         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
3858         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
3859         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
3860         _nss_nisplus_getservbyport_r): Likewise.
3861         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
3862         _nss_nisplus_getnetbyaddr_r): Likewise.
3863         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
3864         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
3865         _nss_nisplus_getntohost_r): Likewise.
3866         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
3867         _nss_nisplus_getrpcbynumber_r): Likewise.
3869 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
3871         * configure.in (libc_cv_gnu89_inline): Only do compile test.
3872         * configure: Rebuilt.
3874         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
3875         bit-fields.
3876         * soft-fp/extended.h (_FP_UNION_E): Likewise.
3878 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
3880         [BZ #2831]
3881         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
3882         bit-fields.
3884 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
3886         * nscd/gai.c: Include alloca.h.
3887         (__libc_use_alloca): Define.
3889 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
3891         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
3892         smaller scopes.
3893         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
3894         (DL_DST_REQUIRED): Adjust user.
3896         * include/dlfcn.h (struct link_map): New forward decl.
3898         * inet/getnameinfo.c: Include stddef.h.
3899         (getnameinfo): Use offsetof.
3901         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
3903         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
3905         * string/strerror_l.c: Include stdlib.h.
3907         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
3908         * config.make.in (gnu89-inline-CFLAGS): New variable.
3909         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
3910         -std=gnu99.
3911         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
3912         * argp/argp.h: Use it.
3913         * bits/mathinline.h: Likewise.
3914         * bits/sigset.h: Likewise.
3915         * bits/string.h: Likewise.
3916         * ctype/ctype.h: Likewise.
3917         * hurd/hurd.h: Likewise.
3918         * hurd/hurd/fd.h: Likewise.
3919         * hurd/hurd/port.h: Likewise.
3920         * hurd/hurd/signal.h: Likewise.
3921         * hurd/hurd/threadvar.h: Likewise.
3922         * hurd/hurd/userlink.h: Likewise.
3923         * io/sys/stat.h: Likewise.
3924         * libio/bits/stdio.h: Likewise.
3925         * libio/bits/stdio2.h: Likewise.
3926         * mach/lock-intern.h: Likewise.
3927         * mach/mach/mig_support.h: Likewise.
3928         * math/bits/cmathcalls.h: Likewise.
3929         * posix/bits/unistd.h: Likewise.
3930         * socket/bits/socket2.h: Likewise.
3931         * stdlib/bits/stdlib.h: Likewise.
3932         * stdlib/stdlib.h: Likewise.
3933         * string/argz.h: Likewise.
3934         * string/bits/string2.h: Likewise.
3935         * string/bits/string3.h: Likewise.
3936         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
3937         * sysdeps/generic/inttypes.h: Likewise.
3938         * sysdeps/generic/machine-lock.h: Likewise.
3939         * sysdeps/generic/machine-sp.h: Likewise.
3940         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
3941         * sysdeps/i386/i486/bits/string.h: Likewise.
3942         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
3943         * sysdeps/mach/alpha/machine-lock.h: Likewise.
3944         * sysdeps/mach/alpha/machine-sp.h: Likewise.
3945         * sysdeps/mach/i386/machine-lock.h: Likewise.
3946         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
3947         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
3948         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
3949         * sysdeps/s390/bits/string.h: Likewise.
3950         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
3951         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
3952         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
3953         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
3954         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
3955         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
3956         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
3957         * wcsmbs/bits/wchar2.h: Likewise.
3958         * wcsmbs/wchar.h: Likewise.
3959         * stdlib/gmp.h: Likewise.  Include <features.h> to get
3960         __extern_inline definition.
3962 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
3964         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
3965         NULL.
3967         [BZ #3919]
3968         * math/libm-test.inc (log_test): Test -Inf and NaN.
3969         (log10_test, log1p_test, log2_test): Test -Inf.
3970         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
3971         FE_INVALID when argument is qNaN.
3972         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
3973         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
3974         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
3975         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
3976         andb $1, %ah with testb $1, %ah, don't test for parity, instead
3977         testb $4, %ah and jump if non-zero.
3978         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
3979         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
3981         [BZ #4101]
3982         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
3983         ancestors with the same depths.
3984         Patch by Niels Moeller <nisse@lysator.liu.se>.
3985         (filter_doc): Don't crash if argp is NULL.
3986         * argp/Makefile (tests): Add tst-argp2.
3987         * argp/tst-argp2.c: New test.
3989         [BZ #4130]
3990         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
3991         open_not_cancel_2.
3992         (updwtmp_file): Likewise.
3994         [BZ #4181]
3995         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
3996         (inet6_opt_append): Don't check extlen is big enough if extbuf
3997         is NULL.
3998         (inet6_opt_finish): Likewise.
3999         * inet/Makefile (tests): Add test-inet6_opt.
4000         * inet/test-inet6_opt.c: New test.
4002         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
4003         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
4004         NLMSG_ERR.  Instead use a page sized buffer.
4005         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
4006         buffer.
4008 2007-03-14  Richard Henderson  <rth@redhat.com>
4010         * sysdeps/alpha/fpu/s_llround.c: New file.
4011         * sysdeps/alpha/fpu/s_llroundf.c: New file.
4012         * sysdeps/alpha/fpu/s_lround.c: New file.
4013         * sysdeps/alpha/fpu/s_lroundf.c: New file.
4014         * sysdeps/alpha/fpu/s_round.c: New file.
4015         * sysdeps/alpha/fpu/s_roundf.c: New file.
4016         * sysdeps/alpha/fpu/s_trunc.c: New file.
4017         * sysdeps/alpha/fpu/s_truncf.c: New file.
4019         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
4020         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
4021         * sysdeps/alpha/fpu/s_floor.c: Likewise.
4022         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
4023         * sysdeps/alpha/fpu/s_rint.c: Likewise.
4024         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
4026         * sysdeps/alpha/fpu/s_fmax.S: New file.
4027         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
4028         * sysdeps/alpha/fpu/s_fmin.S: New file.
4029         * sysdeps/alpha/fpu/s_fminf.S: New file.
4030         * sysdeps/alpha/fpu/s_isnan.c: New file.
4031         * sysdeps/alpha/fpu/s_isnanf.c: New file.
4032         * sysdeps/alpha/fpu/s_llrint.c: New file.
4033         * sysdeps/alpha/fpu/s_llrintf.c: New file.
4034         * sysdeps/alpha/fpu/s_lrint.c: New file.
4035         * sysdeps/alpha/fpu/s_lrintf.c: New file.
4036         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
4037         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
4039         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
4040         (__fdimf, fdimf, __fdim, fdim): Remove.
4041         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
4042         (__isnanf, __isnan, __isnanl): New.
4044 2007-03-13  Richard Henderson  <rth@redhat.com>
4046         * sysdeps/ieee754/ldbl-128/Makefile: New file.
4048 2007-03-13  Richard Henderson  <rth@redhat.com>
4050         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
4051         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
4052         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
4053         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
4054         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
4055         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
4057 2007-03-13  Richard Henderson  <rth@redhat.com>
4059         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
4060         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
4061         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
4062         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
4063         Move to dl-auxv.h; initialize instead of extern weak.
4064         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
4065         weak symbol.
4066         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
4067         Extern instead of initialized.
4069 2007-03-13  Richard Henderson  <rth@redhat.com>
4071         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
4072         __sigsuspend_nocancel.
4074 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
4076         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
4077         172.16/12 address range.
4079 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
4081         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
4082         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
4083         message.
4085 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
4087         [BZ #4069]
4088         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
4089         earlier.
4090         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
4092         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
4093         for x qNaN and y either +-inf or non-integer value.
4094         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
4095         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
4096         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
4098 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
4100         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
4101         from sysdep_headers.
4103 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
4105         * time/tzfile.c (find_transition): Instead of a linear search try to
4106         guess the transition index, use a linear search if the result is at
4107         most 10 transitions away from the guess or binary search otherwise.
4109 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
4111         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
4112         memory reallocation.
4114 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
4116         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
4117         and fix some typos.
4118         Optimize use of TOLOWER.
4120         [BZ #3325]
4121         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
4122         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
4123         * sysdeps/i386/fpu/e_fmod.S: Likewise.
4125         [BZ #3458]
4126         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
4127         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
4129         [BZ #4076]
4130         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
4131         (open_dir_stream): Likewise.
4132         * io/Makefile (tests): Add bug-ftw5.
4133         * io/bug-ftw5.c: New file.
4135         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
4136         * nscd/servicescache.c (cache_addserv): Likewise.
4138         * nscd/grpcache.c (cache_addgr): In case a record changed on
4139         refresh, adjust key_copy.
4141         [BZ #4074]
4142         * nscd/pwdcache.c (cache_addpw): In case a record changed on
4143         refresh, adjust key_copy.
4145         [BZ #4070]
4146         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
4147         special cases.
4148         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
4150 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
4152         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
4153         optimization.
4155         * stdio-common/vfscanf.c: Small cleanups throughout.
4157 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
4159         [BZ #3325]
4160         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
4161         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
4162         * sysdeps/i386/fpu/e_fmod.S: Likewise.
4163         Patch by Jared Casper <jaredcasper@gmail.com>.
4165         * sysdeps/unix/closedir.c: Outside libc don't use locking.
4166         * sysdeps/unix/opendir.c: Likewise.
4167         * sysdeps/unix/readdir.c: Likewise.
4169         [BZ #2211]
4170         * stdio-common/vfscanf.c: Handle localized digits etc for floating
4171         point numbers.
4172         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
4174         * stdio-common/vfscanf.c: Fix problems in width accounting.
4175         * stdio-common/tst-sscanf.c (double_tests): New tests.
4176         (main): Hook them up.
4178         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
4179         More simplifications of floating-point reader.
4181         * stdio-common/Makefile (tests): Add tst-swscanf.
4182         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
4183         testing.
4184         * stdio-common/tst-swscanf.c: New file.
4186 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
4188         [BZ #2633]
4189         * libio/stdio.h: Define struct _IO_FILE in global namespace.
4190         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
4191         Remove using for __jmp_buf_tag.
4192         * locale/locale.h (struct lconv): Also define in std namespace.
4193         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
4195         [BZ #3842]
4196         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
4197         using __libc_enable_secure.
4199         [BZ #3818]
4200         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
4202         [BZ #3745]
4203         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
4204         of names for ellipsises.
4206         [BZ #3348]
4207         * malloc/memusage.sh: Cleanups.
4208         * debug/xtrace.sh: Quoting and trap changes.
4210 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
4212         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
4214         * locale/iso-3166.def: Update entry for Serbia.
4215         * locale/iso-4217.def: Define RSD, remove CSD.
4217         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
4218         and 64-bit operations.
4220         [BZ #4040]
4221         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
4222         16-bit operations.
4224         * nscd/nscd.c (parse_opt): One more conversion to use send instead
4225         of writev.
4227 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
4229         [BZ #3991]
4230         * assert/assert.h (assert): Simplify.
4231         (assert_perror): Likewise.
4232         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
4234         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
4235         reqdata.
4237         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
4238         change: don't pass NULL in place of an integer.
4240 2007-02-02  Bruno Haible  <bruno@clisp.org>
4242         [BZ #3954]
4243         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
4244         Add mapping for U+327E.
4245         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
4246         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
4247         mapping of 0xD9 0xE8.
4248         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
4249         mapping of U+327E.
4250         Reported by Jungshik Shin <jungshik@google.com>.
4252         [BZ #3955]
4253         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
4254         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
4255         Reported by Jungshik Shin <jungshik@google.com>.
4257 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
4259         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
4260         byte variants.
4262         [BZ #4040]
4263         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
4264         byte variants.  Patch mostly be tom@tommay.net.
4266 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
4268         [BZ #3996]
4269         * posix/glob.c (attribute_hidden): Define if not defined.
4270         (glob): Unescape dirname, filename or username when needed and not
4271         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
4272         is NULL.  Handle unescaped [ in pattern without closing ].
4273         Don't pass GLOB_CHECK down to recursive glob for directories.
4274         (__glob_pattern_type): New function.
4275         (__glob_pattern_p): Implement using __glob_pattern_type.
4276         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
4277         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
4278         Remove unreachable code.
4279         * posix/globtest.sh: Add a couple of new tests.
4281 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
4283         * po/ru.po: Update from translation team.
4285 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
4287         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
4288         to the list of i486+ CPUs.
4289         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
4291 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
4293         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
4294         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
4295         references.
4297 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
4299         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
4301         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
4302         * resolv/res_mkquery.c: Define __res_nopt.
4303         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
4304         try adding EDNS0 record.
4305         * resolv/res_send.c (send_dg): If request failed with FORMERR and
4306         EDNS0 record was send make sure we don't try it again.
4307         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
4308         * include/resolv.h: Declare __res_nopt.
4310 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
4312         [BZ #3944]
4313         * time/strptime_l.c (__strptime_internal): Set have_mon for
4314         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
4315         have been computed from tm_yday and tm_year.  Don't crash
4316         in day_of_the_week or day_of_the_year if not have_mon
4317         and tm_mon contains bogus value.
4318         * time/Makefile (tests): Add tst-strptime3.
4319         * time/tst-strptime3.c: New test.
4321 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
4323         [BZ #3957]
4324         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
4325         bit for RE_HAT_LISTS_NOT_NEWLINE.
4326         (build_charclass_op): Remove bogus comment.
4327         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
4328         * posix/bug-regex27.c: New test.
4329         * posix/bug-regex28.c: New test.
4331 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
4333         * po/sv.po: Update from translation team.
4335 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
4337         * nscd/nscd_helper.c (open_socket): Minor size optimization.
4339 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
4341         * include/locale.h (__uselocale): Add libc_hidden_proto.
4342         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
4344         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
4345         gettimeofday.
4347 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
4349         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
4350         returning.
4351         (PTR_DEMANGLE): Real definition now that it's not the same as
4352         PRT_MANGLE anymore.
4353         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
4355         * string/strerror_l.c: New file.
4356         * string/Makefile (routines): Add strerror_l.
4357         * string/string.h: Declare strerror_l.
4358         * string/Versions: Export strerror_l for GLIBC_2.6.
4360 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
4362         * nscd/nscd_helper.c (open_socket): Now takes request type and key
4363         as parameter.  Construct request record.  Try sending request
4364         before the first poll use, it usually succeeds.  Adjust all
4365         callers.
4366         * nscd/nscd-client.h: Define MAXKEYLEN.
4367         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
4369 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
4371         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
4372         from return value.
4373         * nscd/nscd_helper.c: Include string.h.
4374         (__nscd_cache_search): Remove const qualifier from return value.
4375         On strict alignment architectures check hash entry and data head
4376         alignment.
4377         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
4378         mmapped data during GC cycle contains garbage.  If
4379         __nscd_drop_map_ref fails, decrement mapped->counter when returning
4380         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
4381         dropped to 0.
4382         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
4383         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
4384         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
4385         * nscd/nscd_getai.c (__nscd_getai): Likewise.
4386         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
4388 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
4390         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
4392 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
4394         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
4395         names not numbers in cfi_*.
4397 2007-01-26  Andreas Jaeger  <aj@suse.de>
4399         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
4400         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
4401         Correct values of PER_HPUX and PER_OSF4.
4403 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
4405         * elf/dl-minimal.c: Undefine _itoa first.
4406         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
4407         * malloc/mtrace.c: Revert last change.
4408         * posix/wordexp.c: Likewise.
4410 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
4412         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
4413         and __geode__ to the list of i486+ CPUs.
4414         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
4416 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
4418         * stdio-common/_itoa.c: Include <limits.h>.
4419         * stdio-common/_itowa.c: Likewise.
4421 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
4423         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
4424         platforms.
4425         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
4426         64-bit platforms.
4427         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
4428         possible.
4429         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
4430         if possible.
4432         [BZ #3902]
4433         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
4434         * stdio-common/Makefile (tests): Add bug17.
4435         * stdio-common/bug17.c: New file.
4437 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
4439         * iconvdata/brf.c: New file.
4440         * iconvdata/testdata/BRF: New file.
4441         * iconvdata/testdata/BRF..UTF8: New file.
4442         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4443         * iconvdata/Makefile: Add rules to build BRF.
4444         * iconvdata/TESTS: Add BRF entry.
4445         * iconvdata/gconv-modules: Likewise.
4446         * iconvdata/tst-tables.sh: Likewise.
4448 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
4450         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
4451         type `long long int', not `long int'.
4452         (wcstoq): Likewise.
4454 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
4456         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
4457         of values on 64-bit platforms which are too large.
4459 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
4460             Joe Kerian  <jkerian@us.us.ibm.com>
4462         [BZ #2749]
4463         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
4464         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
4465         (__copysignl): Use signbit() for comparison.
4466         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
4467         SET_LDOUBLE_WORDS64.
4469         [BZ #2423, #2749]
4470         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
4471         (__ceill): Remove calls to fegetround(), fesetround().
4472         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
4473         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
4474         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
4476 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
4478         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
4480         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
4482 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
4484         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
4485         demangle pointer.
4486         * csu/libc-start.c: Likewise.
4488 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
4490         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
4491         really work anyway.
4493 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
4495         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
4496         users.
4497         (handle_request): Remove unnecessary tests.
4499         * nscd/cache.c (cache_add): Record the failure to add to the cache.
4501 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
4503         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
4504         workbits in semi-raw fraction.
4506         * math/test-misc.c: Add new tests.
4508 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
4510         * math/basic-test.c: Include test-skeleton.c.
4511         (TEST_TRUNC): Define.
4512         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
4513         (main): Rename to ...
4514         (do_test): ...this.  Run new tests.
4515         (TEST_FUNCTION): Define.
4517 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
4518             Joe Kerian  <jkerian@us.us.ibm.com>
4520         [BZ #2749]
4521         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
4522         handling for high words.
4523         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
4524         and overflow for infinity.
4526 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
4528         * nscd/connections.c (handle_request): Add a __builtin_expect.
4530         * nscd/connections.c (serv2db): Change type into structure which
4531         also says whether this is a request for data.  Renamed to
4532         servinfo.  All users changed.
4533         (handle_request): Much simpler test whether we should search the cache.
4535         * nscd/connections.c (handle_request): Fix thinko in selinux test
4536         invocation.
4538         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
4539         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
4540         it before getting dl_load_lock and then relock.
4541         (_dl_lookup_symbol_x): Pass flags to add_dependency.
4542         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
4543         case we unlocked the scope.
4544         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
4545         _dl_lookup_symbol_x in case we locked the scope.
4546         (_dl_profile_fixup): Likewise.
4547         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
4548         set DL_LOOKUP_SCOPE_LOCK.
4550 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
4552         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
4553         CFLAGS-getsrvbynpt_r.c.
4554         * nscd/getsrvbynm_r.c: New file.
4555         * nscd/getsrvbypt_r.c: New file.
4556         * nscd/nscd_getserv_r.c: New file.
4557         * nscd/servicescache.c: New file.
4558         * nscd/Makefile (routines): Add nscd_getserv_r.
4559         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
4560         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
4561         CFLAGS-getsrvbypt_r.c.
4562         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
4563         table.  Add entries for services database.
4564         * nscd/connections.c (serv2str): Mark as const.  Add entries for
4565         services database.
4566         (dbs): Add .reset_res and servdb initialization.
4567         (serv2db): Add entries for services database.
4568         (verify_persistent_db): Accept dbnr == servdb.
4569         (invalidate_cache): Rewrite database name recognition to use a table.
4570         Call res_init() if .reset_res is set for database.
4571         (handle_request): Add code to handle services database.
4572         * nscd/gai.c: Don't define __getservbyname_r.
4573         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
4574         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
4575         (serv_response_header): Define.
4576         (struct datahead): Add serv_response_header member.
4577         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
4578         using table.
4579         * nscd/nscd.conf: Add entries for services database.
4580         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
4581         Declare serv_iov_disabled.
4582         Declare addservbyname, readdservbyname, addservbyport, and
4583         readdservbyport.
4584         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
4585         (find_db): Fix error message.
4586         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
4587         __nscd_getservbyname_r, and __nscd_getservbyport_r.
4588         * nscd/selinux.c (perms): Add entries for services database.
4589         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
4590         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
4592         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
4593         * nscd/hstcache.c: Likewise.
4594         * nscd/pwdcache.c: Likewise.
4596         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
4597         computation of keylen.
4599         * include/string.h: Only redefine strndupa if this is really for
4600         libc code.
4602 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
4604         * nscd/nscd_gethst_r.c: Minor cleanups.
4606         * nscd/connections.c (handle_request): Check selinux permissions
4607         for all non-admin commands.
4609         * sysdeps/i386/i486/bits/atomic.h: Define
4610         atomic_compare_and_exchange_val_acq,
4611         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
4612         using __sync_* built-ins for gcc >= 4.1.
4613         * sysdeps/x86_64/bits/atomic.h: Likewise.
4615         [BZ #3840]
4616         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
4617         and .oS.d files.
4619 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
4621         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
4622         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
4623         (do_test): Check errno and exit(0) if ENOSYS.
4625 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
4627         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
4628         thousands separators.
4629         * stdlib/Makefile: Add rules to build and run tst-strtod4.
4630         * stdlib/tst-strtod4.c: New test.
4632         [BZ #3855]
4633         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
4634         hexadecimal digit should accept just the initial 0.
4635         * stdlib/tst-strtod2.c (tests): New variable.
4636         (do_test): Run several tests rather than just one.
4638 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
4640         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
4641         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
4643 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
4645         * io/fts.c: Make sure fts_cur is always valid after return from
4646         fts_read.
4647         Patch by Miloslav Trmac <mitr@redhat.com>.
4649 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
4651         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
4652         (R_MIPS_NUM): Bump by 1.
4654 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
4656         * posix/execvp.c: Include alloca.h.
4657         (allocate_scripts_argv): Renamed to...
4658         (scripts_argv): ... this.  Don't allocate buffer here nor count
4659         arguments.
4660         (execvp): Use alloca if possible.
4661         * posix/Makefile: Add rules to build and run tst-vfork3 test.
4662         * posix/tst-vfork3.c: New test.
4664 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
4666         * string/Makefile (tst-strxfrm2-ENV): Define.
4667         * stdlib/Makefile (tst-strtod3-ENV): Define.
4669 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
4671         * posix/getconf.c: Update copyright year.
4672         * nss/getent.c: Likewise.
4673         * iconv/iconvconfig.c: Likewise.
4674         * iconv/iconv_prog.c: Likewise.
4675         * elf/ldconfig.c: Likewise.
4676         * catgets/gencat.c: Likewise.
4677         * csu/version.c: Likewise.
4678         * elf/ldd.bash.in: Likewise.
4679         * elf/sprof.c (print_version): Likewise.
4680         * locale/programs/locale.c: Likewise.
4681         * locale/programs/localedef.c: Likewise.
4682         * nscd/nscd.c (print_version): Likewise.
4683         * debug/xtrace.sh: Likewise.
4684         * malloc/memusage.sh: Likewise.
4685         * malloc/mtrace.pl: Likewise.
4686         * debug/catchsegv.sh: Likewise.
4688 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
4690         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
4691         attempts.
4693 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
4695         * posix/wordexp.c: Remove some unnecessary tests.
4697 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
4699         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
4700         blacklist the group till after we look it up.
4702 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
4704         * include/atomic.h (atomic_forced_read): New macro.
4706 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
4708         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
4710 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
4712         * nss/getXXbyYY_r.c: Include atomic.h.
4713         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
4714         add atomic_write_barrier () in between.
4716         * stdlib/Makefile (tests): Add tst-makecontext.
4717         * stdlib/tst-makecontext.c: New test.
4719         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
4720         (__makecontext): Don't realign uc_mcontext.uc_regs.
4722 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
4724         * elf/dl-support.c: Include dl-procinfo.h.
4725         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
4726         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
4727         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
4728         Define.
4729         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
4730         hardcoded constants.
4731         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
4732         PPC_PLATFORM_* macros for array designators.
4734 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
4736         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
4737         names to the beginning.
4738         (_dl_powerpc_platforms): Add "power6x".
4739         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
4740         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
4741         (_DL_PLATFORMS_COUNT): Increase.
4742         (_dl_string_platform): Handle power6x case.
4743         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
4744         PPC_FEATURE_POWER6_EXT): Define.
4745         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
4747 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
4749         [BZ #3747]
4750         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
4751         [-2^31 .. 2^31) range.
4752         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
4753         targets.
4754         * stdlib/tst-rand48-2.c: New test.
4755         * stdlib/Makefile (tests): Add tst-rand48-2.
4757 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
4759         * misc/tst-pselect.c (do_test): Fix sigblock argument.
4761 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
4763         * misc/tst-pselect.c (do_test): Make sure the helper process is
4764         terminating when the test is aborted.
4766 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
4768         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
4769         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
4770         Handle relatime mount option.
4772         [BZ #2337]
4773         * libio/Makefile (tests): Add tst-setvbuf1.
4774         * libio/tst-setvbuf1.c: New file.
4776 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
4778         [BZ #2337]
4779         * libio/genops.c (__uflow): Fix a typo.
4780         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
4781         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
4782         the narrow buffer size.
4784 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
4786         [BZ #2337]
4787         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
4788         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
4789         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
4790         in _flags.
4791         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
4792         _IO_wstr_finish): Likewise.
4793         * libio/wmemstream.c (open_wmemstream): Likewise.
4794         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
4795         even for wide streams.
4797 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
4799         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
4800         kernel-features.h.
4802 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
4804         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
4805         separators also if no non-zero digits found.
4806         * stdlib/Makefile (tests): Add tst-strtod3.
4808 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
4810         [BZ #3632]
4811         * include/features.h: Fix comment about default value for
4812         _POSIX_C_SOURCE.
4814         [BZ #3664]
4815         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
4816         empty parsed strings.
4817         * stdlib/Makefile (tests): Add tst-strtod2.
4818         * stdlib/tst-strtod2.c: New file.
4820         [BZ #3673]
4821         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
4822         computation.
4823         * stdlib/Makefile (tests): Add tst-atof2.
4824         * stdlib/tst-atof2.c: New file.
4826         [BZ #3674]
4827         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
4828         correctly if removing trailing zero of hex-float.
4829         * stdlib/Makefile (tests): Add tst-atof1.
4830         * stdlib/tst-atof1.c: New file.
4832 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
4834         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
4835         Start searching for next comma at p rather than rest.
4836         * misc/Makefile (tests): Add tst-mntent2.
4837         * misc/tst-mntent2.c: New test.
4839         * misc/getusershell.c (initshells): Check for integer overflows.
4840         Make strings buffer one bigger as fgets always succeeds when second
4841         argument is 1.  Don't use calloc for shells array.  Disallow
4842         / as shell.
4844 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
4846         * malloc/memusage.c: Handle realloc with new size of zero and
4847         non-NULL pointer correctly.
4848         (me): Really write first record twice.
4849         (struct entry): Make format bi-arch safe.
4850         (dest): Write out more realloc statistics.
4851         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
4853 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
4855         * nis/nis_subr.c (nis_getnames): Revert last change.
4857 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
4859         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
4860         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
4861         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
4862         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
4863         ENOTTY.
4864         * io/Makefile: Add rules to build and run tst-ttyname_r test.
4865         * io/tst-ttyname_r.c: New test.
4867 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4869         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
4871 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
4873         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
4874         jump table entries.
4876 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
4878         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
4879         `clone' function to ensure proper unwinding stop of gdb.
4880         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
4882 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
4884         * nscd/nscd.init: Remove obsolete and commented-out -S option
4885         handling.
4887 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
4889         [BZ #3514]
4890         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
4892         [BZ #3515]
4893         * manual/string.texi (strtok): Remove duplicate paragraph.
4895 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4897         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
4898         libgcc not supporting `rflags' unwinding (register # >= 17).
4900 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
4902         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
4903         succeeded.
4905 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
4906             Jakub Jelinek  <jakub@redhat.com>
4907             Jan Kratochvil  <jan.kratochvil@redhat.com>
4909         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
4910         unwind information.
4911         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
4912         'restore_rt' even in the 'signal' directory.
4913         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
4915 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
4917         [BZ #3559]
4918         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
4919         malloc crashed.  Don't allocate memory unnecessarily in each
4920         loop.
4922 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
4924         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
4926 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
4928         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
4930 2006-11-18  Bruno Haible  <bruno@clisp.org>
4932         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
4933         __sysconf only after having tried to call getgroups32.
4935 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
4937         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
4938         addresses for IPv4 queries if they can be mapped.
4940 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
4942         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
4943         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
4944         (signmask): Add .size directive.
4945         (othermask): Add .type directive.
4947 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
4949         * po/nl.po: Update from translation team.
4951         * timezone/zdump.c: Redo fix for BZ #3137.
4953 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
4955         * nss/nss_files/files-alias.c (get_next_alias): Set line back
4956         to first_unused after parsing :include: file.
4958 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
4960         * timezone/africa: Update from tzdata2006o.
4961         * timezone/antarctica: Likewise.
4962         * timezone/asia: Likewise.
4963         * timezone/australasia: Likewise.
4964         * timezone/backward: Likewise.
4965         * timezone/europe: Likewise.
4966         * timezone/iso3166.tab: Likewise.
4967         * timezone/northamerica: Likewise.
4968         * timezone/southamerica: Likewise.
4969         * timezone/zone.tab: Likewise.
4971         * time/tzfile.c (__tzfile_read): Extend to handle new file format
4972         on machines with 64-bit time_t.
4974         * timezone/checktab.awk: Update from tzcode2006o.
4975         * timezone/ialloc.c: Likewise.
4976         * timezone/private.h: Likewise.
4977         * timezone/scheck.c: Likewise.
4978         * timezone/tzfile.h: Likewise.
4979         * timezone/tzselect.ksh: Likewise.
4980         * timezone/zdump.c: Likewise.
4981         * timezone/zic.c: Likewise.
4983         [BZ #3483]
4984         * elf/ldconfig.c (main): Call setlocale and textdomain.
4985         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
4987         [BZ #3480]
4988         * manual/argp.texi: Fix typos.
4989         * manual/charset.texi: Likewise.
4990         * manual/errno.texi: Likewise.
4991         * manual/filesys.texi: Likewise.
4992         * manual/lang.texi: Likewise.
4993         * manual/maint.texi: Likewise.
4994         * manual/memory.texi: Likewise.
4995         * manual/message.texi: Likewise.
4996         * manual/resource.texi: Likewise.
4997         * manual/search.texi: Likewise.
4998         * manual/signal.texi: Likewise.
4999         * manual/startup.texi: Likewise.
5000         * manual/stdio.texi: Likewise.
5001         * manual/sysinfo.texi: Likewise.
5002         * manual/syslog.texi: Likewise.
5003         * manual/time.texi: Likewise.
5004         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5006         [BZ #3465]
5007         * sunrpc/clnt_raw.c: Minimal message improvements.
5008         * sunrpc/pm_getmaps.c: Likewise.
5009         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
5010         * nis/nis_print_group_entry.c: Likewise.
5011         * locale/programs/repertoire.c: Likewise.
5012         * locale/programs/charmap.c: Likewise.
5013         * malloc/memusage.sh: Likewise.
5014         * elf/dl-deps.c: Likewise.
5015         * locale/programs/ld-collate.c: Likewise.
5016         * libio/vswprintf.c: Likewise.
5017         * malloc/memusagestat.c: Likewise.
5018         * sunrpc/auth_unix.c: Likewise.
5019         * sunrpc/rpc_main.c: Likewise.
5020         * nscd/cache.c: Likewise.
5021         * locale/programs/repertoire.c: Unify output messages.
5022         * locale/programs/charmap.c: Likewise.
5023         * locale/programs/ld-ctype.c: Likewise.
5024         * locale/programs/ld-monetary.c: Likewise.
5025         * locale/programs/ld-numeric.c: Likewise.
5026         * locale/programs/ld-time.c: Likewise.
5027         * elf/ldconfig.c: Likewise.
5028         * nscd/selinux.c: Likewise.
5029         * elf/cache.c: Likewise.
5030         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
5032         [BZ #3451]
5033         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
5034         change atomic.
5035         (ceil): Likewise.
5037 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
5039         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
5040         if N is one bigger than return value.
5041         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
5042         and l1 last arguments, if buf is defined, verify the return value
5043         equals to strlen (buf) and verify no byte beyond passed length
5044         is modified.
5046 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
5048         * po/sv.po: Update from translation team.
5050 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
5052         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
5053         noinline attribute.
5055 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
5057         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
5058         noinline attribute.
5060         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
5061         Use __new_sys_siglist instead of _sys_siglist_internal as
5062         second macro argument.
5063         (_old_sys_siglist): Use declare_symbol_alias macro instead of
5064         strong_alias.
5066 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
5068         [BZ #3493]
5069         * posix/unistd.h (sysconf): Remove const attribute.
5071         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
5072         temporary or deprecated addresses.
5073         Patch by Sridhar Samudrala <sri@us.ibm.com>.
5075         * string/Makefile (tests): Add tst-strxfrm2.
5076         * string/tst-strxfrm2.c: New file.
5078 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
5080         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
5081         rather than r->r_brk.
5083 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
5085         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
5086         optimization even if needed > n.
5088         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
5089         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
5090         return false, otherwise return true.
5091         (cache_rpath): Return decompose_rpath return value.
5093 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
5095         * include/libc-symbols.h (declare_symbol): Rename to...
5096         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
5097         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
5098         .size directive.
5099         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
5100         changes.
5101         * sysdeps/gnu/siglist.c: Likewise.
5103 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
5105         * sysdeps/powerpc/fpu/bits/mathinline.h
5106         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
5107         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
5109 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
5111         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
5112         Update handling of cache descriptor 0x49 for new models.
5113         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
5114         Likewise.
5116 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
5118         * malloc/memusage.c (dest): Reset not_me back to false after
5119         printing statistics.
5121 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
5123         * configure.in: Work around ld --help change and avoid -z relro
5124         test completely if the architecture doesn't care about security.
5126 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
5128         * po/sv.po: Update from translation team.
5130 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
5132         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
5133         generate compatibility version.
5135 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
5137         * configure.in: Relax -z relro requirement a bit.
5139         * po/sv.po: Update from translation team.
5141 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
5143         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
5144         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
5145         * elf/dl-close.c (_dl_close_worker): Likewise.
5146         * elf/dl-open.c (_dl_open_worker): Likewise.
5147         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
5149 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
5151         * configure.in: Require assembler support for visibility, compiler
5152         support for visibility and aliases, linker support for various -z
5153         options.
5154         * Makeconfig: Remove conditional code which now is unnecessary.
5155         * config.h.in: Likewise.
5156         * config.make.in: Likewise.
5157         * dlfcn/Makefile: Likewise.
5158         * elf/Makefile: Likewise.
5159         * elf/dl-load.c: Likewise.
5160         * elf/rtld.c: Likewise.
5161         * include/libc-symbols.h: Likewise.
5162         * include/stdio.h: Likewise.
5163         * io/Makefile: Likewise.
5164         * io/fstat.c: Likewise.
5165         * io/fstat64.c: Likewise.
5166         * io/fstatat.c: Likewise.
5167         * io/fstatat64.c: Likewise.
5168         * io/lstat.c: Likewise.
5169         * io/lstat64.c: Likewise.
5170         * io/mknod.c: Likewise.
5171         * io/mknodat.c: Likewise.
5172         * io/stat.c: Likewise.
5173         * io/stat64.c: Likewise.
5174         * libio/stdio.c: Likewise.
5175         * nscd/Makefile: Likewise.
5176         * stdlib/Makefile: Likewise.
5177         * stdlib/atexit.c: Likewise.
5178         * sysdeps/generic/ldsodefs.h: Likewise.
5179         * sysdeps/i386/dl-machine.h: Likewise.
5180         * sysdeps/i386/sysdep.h: Likewise.
5181         * sysdeps/i386/i686/memcmp.S: Likewise.
5182         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
5183         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5184         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
5186         * Makerules: USE_TLS support is now default.
5187         * tls.make.c: Likewise.
5188         * csu/Versions: Likewise.
5189         * csu/libc-start.c: Likewise.
5190         * csu/libc-tls.c: Likewise.
5191         * csu/version.c: Likewise.
5192         * dlfcn/dlinfo.c: Likewise.
5193         * elf/dl-addr.c: Likewise.
5194         * elf/dl-cache.c: Likewise.
5195         * elf/dl-close.c: Likewise.
5196         * elf/dl-iteratephdr.c: Likewise.
5197         * elf/dl-load.c: Likewise.
5198         * elf/dl-lookup.c: Likewise.
5199         * elf/dl-object.c: Likewise.
5200         * elf/dl-open.c: Likewise.
5201         * elf/dl-reloc.c: Likewise.
5202         * elf/dl-support.c: Likewise.
5203         * elf/dl-sym.c: Likewise.
5204         * elf/dl-sysdep.c: Likewise.
5205         * elf/dl-tls.c: Likewise.
5206         * elf/ldconfig.c: Likewise.
5207         * elf/rtld.c: Likewise.
5208         * elf/tst-tls-dlinfo.c: Likewise.
5209         * elf/tst-tls1.c: Likewise.
5210         * elf/tst-tls10.h: Likewise.
5211         * elf/tst-tls14.c: Likewise.
5212         * elf/tst-tls2.c: Likewise.
5213         * elf/tst-tls3.c: Likewise.
5214         * elf/tst-tls4.c: Likewise.
5215         * elf/tst-tls5.c: Likewise.
5216         * elf/tst-tls6.c: Likewise.
5217         * elf/tst-tls7.c: Likewise.
5218         * elf/tst-tls8.c: Likewise.
5219         * elf/tst-tls9.c: Likewise.
5220         * elf/tst-tlsmod1.c: Likewise.
5221         * elf/tst-tlsmod13.c: Likewise.
5222         * elf/tst-tlsmod13a.c: Likewise.
5223         * elf/tst-tlsmod14a.c: Likewise.
5224         * elf/tst-tlsmod2.c: Likewise.
5225         * elf/tst-tlsmod3.c: Likewise.
5226         * elf/tst-tlsmod4.c: Likewise.
5227         * elf/tst-tlsmod5.c: Likewise.
5228         * elf/tst-tlsmod6.c: Likewise.
5229         * include/errno.h: Likewise.
5230         * include/link.h: Likewise.
5231         * include/tls.h: Likewise.
5232         * locale/global-locale.c: Likewise.
5233         * locale/localeinfo.h: Likewise.
5234         * malloc/arena.c: Likewise.
5235         * malloc/hooks.c: Likewise.
5236         * malloc/malloc.c: Likewise.
5237         * resolv/Versions: Likewise.
5238         * sysdeps/alpha/dl-machine.h: Likewise.
5239         * sysdeps/alpha/libc-tls.c: Likewise.
5240         * sysdeps/generic/ldsodefs.h: Likewise.
5241         * sysdeps/generic/tls.h: Likewise.
5242         * sysdeps/i386/dl-machine.h: Likewise.
5243         * sysdeps/ia64/dl-machine.h: Likewise.
5244         * sysdeps/ia64/libc-tls.c: Likewise.
5245         * sysdeps/mach/hurd/fork.c: Likewise.
5246         * sysdeps/mach/hurd/i386/tls.h: Likewise.
5247         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
5248         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
5249         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
5250         * sysdeps/s390/libc-tls.c: Likewise.
5251         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
5252         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5253         * sysdeps/sh/dl-machine.h: Likewise.
5254         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
5255         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
5256         * sysdeps/x86_64/dl-machine.h: Likewise.
5258         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
5259         split out locking and parameter checking.
5260         (_dl_close): Call _dl_close_worker after locking and checking.
5261         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
5262         _dl_close.
5263         * elf/Makefile: Add rules to build and run tst-thrlock.
5264         * elf/tst-thrlock.c:  New file.
5266         [BZ #3426]
5267         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
5268         reality.
5270         [BZ #3429]
5271         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
5272         we are sure we do not need it anymore for _dl_close.  Also move
5273         the asserts inside the lock region.
5274         Patch mostly by Suzuki <suzuki@in.ibm.com>.
5276 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
5278         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
5279         argument.
5280         (_dl_lookup_symbol_x): Adjust caller.
5282         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
5283         _ns_global_scope.
5284         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
5286         * elf/dl-libc.c: Revert l_scope name changes.
5287         * elf/dl-load.c: Likewise.
5288         * elf/dl-object.c: Likewise.
5289         * elf/rtld.c: Likewise.
5290         * elf/dl-close.c (_dl_close): Likewise.
5291         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
5292         always use __rtld_mrlock_{change,done}.  Always free old scope list
5293         here if not l_scope_mem.
5294         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
5295         change.  Never free scope list here.  Just __rtld_mrlock_lock before
5296         the lookup and __rtld_mrlock_unlock it after the lookup.
5297         * elf/dl-sym.c: Likewise.
5298         * include/link.h (struct r_scoperec): Remove.
5299         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
5300         with l_scope_mem and l_scoperec_lock with l_scope_lock.
5302 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
5304         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
5306 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
5308         * configure.in: Disable building profile libraries by default.
5310 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
5312         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
5313         as signed longs, check for x_base + pos overflow.
5314         * sunrpc/Makefile (tests): Add tst-xdrmem2.
5315         * sunrpc/tst-xdrmem2.c: New test.
5317 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
5319         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
5320         _dl_lookup_symbol_x code.
5322 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
5324         * elf/dl-runtime.c: Include sysdep-cancel.h.
5325         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
5326         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
5327         instead of catomic_* macros.
5328         * elf/dl-sym.c: Include sysdep-cancel.h.
5329         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
5330         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
5331         * elf/dl-close.c: Include sysdep-cancel.h.
5332         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
5333         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
5334         * elf/dl-open.c: Include sysdep-cancel.h.
5335         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
5336         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
5338 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
5340         [BZ #3313]
5341         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
5342         fastbin rather than end of fastbin array.
5344 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
5346         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
5347         body macro.
5348         * sysdeps/x86_64/bits/atomic.h
5349         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
5350         (catomic_decrement): Use correct body macro.
5352 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
5354         * include/atomic.h: Add a unique prefix to all local variables
5355         in macros.
5356         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
5358 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
5360         [BZ #3369]
5361         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
5362         and 7.
5364 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
5366         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
5368 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
5370         [BZ #3313]
5371         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
5372         determine highest fast bin to consolidate, always look into all of
5373         them.
5374         (do_check_malloc_state): Only require for empty bins for large
5375         sizes in main arena.
5377         * libio/stdio.h: Add more __wur attributes.
5379         * elf/dl-minimal.c (realloc): Optimize last patch.
5381 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
5383         [BZ #3352]
5384         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
5385         and use memcpy() if it does.
5387 2006-11-12  Andreas Jaeger  <aj@suse.de>
5389         [BZ #2510]
5390         * manual/search.texi (Hash Search Function): Clarify.
5391         (Array Search Function): Clarify.
5393 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
5395         [BZ #2830]
5396         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
5397         shifting.
5398         * math/atest-exp2.c (read_mpn_hex): Likewise.
5399         * math/atest-sincos.c (main): Likewise.
5401 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
5403         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
5404         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
5405         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
5406         version GLIBC_2.6.
5407         * Versions.def: Add GLIBC_2.6 for libc.
5409         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
5411         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
5413 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
5415         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
5417         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
5419         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
5420         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
5422 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
5424         * include/atomic.c: Define catomic_* operations.
5425         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
5426         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
5427         * malloc/memusage.c: Likewise.
5428         * gmon/mcount.c: Likewise.
5429         * elf/dl-close.c: Likewise.
5430         * elf/dl-open.c: Likewise.
5431         * elf/dl-profile.c: Likewise.
5432         * elf/dl-sym.c: Likewise.
5433         * elf/dl-runtime.c: Likewise.
5434         * elf/dl-fptr.c: Likewise.
5435         * resolv/res_libc.c: Likewise.
5437 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
5439         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
5440         components which lack them.
5442         * nis/nis_subr.c (nis_getnames): Make sure that we always return
5443         at least one entry consisting of the parameter concatenated with
5444         the domain.
5446 2006-10-10  Roland McGrath  <roland@frob.com>
5448         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
5449         * sysdeps/mach/hurd/futimes.c: Likewise.
5450         * sysdeps/mach/hurd/lutimes.c: Likewise.
5452 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
5453             Jakub Jelinek  <jakub@redhat.com>
5455         Implement reference counting of scope records.
5456         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
5457         from the list in objects which remain.  Always allocate new scope
5458         record.
5459         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
5460         don't resize, allocate a new one.
5461         * elf/dl-runtime.c: Update reference counters before using a scope
5462         array.
5463         * elf/dl-sym.c: Likewise.
5464         * elf/dl-libc.c: Adjust for l_scope name change.
5465         * elf/dl-load.c: Likewise.
5466         * elf/dl-object.c: Likewise.
5467         * elf/rtld.c: Likewise.
5468         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
5469         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
5470         Add l_scoperec_lock.
5471         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
5472         * sysdeps/generic/rtld-lowlevel.h: New file.
5474         * include/atomic.h: Rename atomic_and to atomic_and_val and
5475         atomic_or to atomic_or_val.  Define new macros atomic_and and
5476         atomic_or which do not return values.
5477         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
5478         Various cleanups.
5479         * sysdeps/i386/i486/bits/atomic.h: Likewise.
5481         * po/sv.po: Update from translation team.
5483 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
5485         * Versions.def: Add GLIBC_2.6 to libpthread.
5487         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
5488         (versioned_symbol): Likewise.
5489         (compat_symbol): Likewise.
5491         * po/tr.po: Update from translation team.
5493 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
5495         * nis/Banner: Removed.  It's been integral part forever and the
5496         author info is incomplete anyway.
5497         * libio/Banner: Likewise.
5499         * nis/nis_table.c (nis_list): If __follow_path fails in the new
5500         code, make sure the nis_freeresult call doesn't crash and that the
5501         result is reported correctly.
5503 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
5505         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
5506         when callback is NULL.
5508         * nis/Versions (libnss_nisplus): Add
5509         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
5510         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
5511         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
5512         _nss_create_tablename): Rename to...
5513         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
5514         ... these.  No longer static.
5515         (internal_setgrent): Adjust users.
5516         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
5517         Don't use locking around _nss_grp_create_tablename call.
5518         * nis/nss_nisplus/nisplus-initgroups.c: New file.
5520 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
5522         * version.h (VERSION): Bump to 2.5.90 for new development tree.
5524 2006-10-06  Andreas Jaeger  <aj@suse.de>
5526         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
5528 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
5530         * po/pl.po: Update from translation team.
5532         * nscd/nscd.c (main): Fix typo in message.
5533         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
5535 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
5537         [BZ #3291]
5538         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
5539         errno.h, signal.h, unistd.h and sysdep-cancel.h.
5540         (__sigprocmask): Define.
5542 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
5544         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
5545         used.
5547 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
5549         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
5550         in oldtotal and newtotal calculation.
5551         * nscd/nscd-client.h (struct mapped_database): Add datasize
5552         field.
5553         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
5554         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
5555         increased.
5556         (__nscd_cache_search): Add checks to make sure we never reference
5557         data beyond the current mapping.
5559 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
5561         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
5562         variables const to avoid compiler warnings.
5564         * io/fts.c (fts_close): Remove redundant checks.
5565         (fts_build): Likewise.
5566         (fts_palloc): Likewise.
5568         * manual/message.texi (Advanced gettext functions,
5569         Using gettextized software): Fix typos.
5571 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
5573         * posix/glob.c (glob_in_dir): Add some comments and asserts to
5574         explain why there are no leaks.
5576 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
5578         * libio/wmemstream.c: Include <wchar.h>.
5579         * libio/bug-wmemstream1.c: Likewise.
5580         * libio/tst-wmemstream1.c: Likewise.
5581         * libio/tst-wmemstream2.c: Likewise.
5583         * version.h (RELEASE): Bump to 2.5.
5584         * README: Regenerated.
5586         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
5588         [BZ #3273]
5589         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
5590         found no group members.
5591         Patch by Petr Baudis.
5593 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
5595         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
5596         assert bootstrap_map.l_tls_modid is zero.
5597         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
5598         if USE___THREAD.
5600 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
5602         * libio/stdio.h: Move open_wmemstream prototype to ...
5603         * wcsmbs/wchar.h: ... here.
5605 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
5607         [BZ #3252]
5608         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
5609         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
5610         __{,l}chown to handle the rest.
5611         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
5612         fchownat syscall and __ASSUME_32BITUIDS case inline, call
5613         __{,l}chown to handle the rest.
5614         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
5615         i386/fchownat.c.
5616         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
5617         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
5619         [BZ #3253]
5620         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
5621         time, rather allocate increasingly bigger arrays of pointers, if
5622         possible with alloca, if too large with malloc.
5624 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
5626         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
5628         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
5630 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
5632         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
5633         home addresses.
5634         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
5635         IFA_F_HOMEADDRESS flag for interfaces.
5636         * include/ifaddrs.h (struct in6addrinfo): Define
5637         in6ai_homeaddress.
5639 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
5641         [BZ #3225]
5642         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
5643         PTR_DEMANGLE3): Define.
5644         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
5645         PTR_DEMANGLE3): Likewise.
5646         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
5647         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
5648         Likewise.
5649         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
5651 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
5653         * po/libc.pot: Regenerated.
5654         * po/be.po: Updated.
5655         * po/ca.po: Likewise.
5656         * po/cs.po: Likewise.
5657         * po/da.po: Likewise.
5658         * po/de.po: Likewise.
5659         * po/el.po: Likewise.
5660         * po/en_GB.po: Likewise.
5661         * po/es.po: Likewise.
5662         * po/fi.po: Likewise.
5663         * po/fr.po: Likewise.
5664         * po/gl.po: Likewise.
5665         * po/hr.po: Likewise.
5666         * po/hu.po: Likewise.
5667         * po/ja.po: Likewise.
5668         * po/ko.po: Likewise.
5669         * po/nb.po: Likewise.
5670         * po/nl.po: Likewise.
5671         * po/pl.po: Likewise.
5672         * po/pt_BR.po: Likewise.
5673         * po/ru.po: Likewise.
5674         * po/rw.po: Likewise.
5675         * po/sk.po: Likewise.
5676         * po/sv.po: Likewise.
5677         * po/tr.po: Likewise.
5678         * po/zh_CN.po: Likewise.
5679         * po/zh_TW.po: Likewise.
5681         [BZ #3137]
5682         * iconv/iconv_prog.c (main): Fix spelling in error message.
5683         * iconv/iconvconfig.c (main): Likewise.
5684         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
5685         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
5686         * locale/programs/localedef.c (main): Likewise.
5687         * locale/programs/repertoire.c (repertoire_read): Likewise.
5688         * timezone/zdump.c (main): Likewise.
5689         * nscd/connections.c (handle_request): Fix spelling in log message.
5690         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
5692 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
5694         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
5695         interfaces.
5697 2006-09-20  Andreas Jaeger  <aj@suse.de>
5699         * math/libm-test.inc (lrint_test_upward): Fix typo.
5701 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
5703         [BZ #2592]
5704         * math/libm-test.inc (lrint_test_tonearest): New function.
5705         (lrint_test_towardzero): New function.
5706         (lrint_test_downward): New function.
5707         (lrint_test_upward): New function.
5708         (main): Run these new tests.
5709         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
5710         of values near to 0.
5711         (two52): Use double not long double.
5712         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
5713         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
5714         (two23): Use float not double.
5715         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
5716         (two23): Use float not double.
5717         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
5718         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
5719         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
5720         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
5722 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5724         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
5725         Cast sp to unsigned long to avoid compiler warning.
5726         Use __makecontext_ret function instead of a trampoline on the stack.
5727         (__makecontext_ret): New function.
5728         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
5730 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
5732         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
5733         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
5734         bits.
5736 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
5738         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
5739         sure no reference to the unloaded map's search list remains in the
5740         dependency's scope.
5742 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
5744         * elf/Makefile: Add rules to build and run unload7 test.
5745         * elf/unload7.c: New test.
5746         * elf/unload7mod1.c: New file.
5747         * elf/unload7mod2.c: New file.
5749 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
5751         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
5752         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
5753         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
5754         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
5755         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
5756         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
5757         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
5758         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
5759         PTRACE_GETEVENTMSG): Likewise.
5760         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
5761         values.
5763 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
5765         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
5766         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
5767         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
5768         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
5770 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
5772         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
5773         write '\0' to the fd.
5774         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
5775         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
5776         Change regs to unsigned long pointer from unsigned int, fix fscr
5777         offset.
5779 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
5781         * io/Makefile (CFLAGS-fstatat.c): Set.
5782         (CFLAGS-fstatat64.c): Likewise.
5783         (CFLAGS-mknodat.c): Likewise.
5785         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
5786         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
5787         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
5788         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
5790 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
5791             Steven Munroe  <sjmunroe@us.ibm.com>
5793         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
5794         names to the beginning.  Rename "cell" to "cellbe".
5795         (_dl_powerpc_platforms): New.
5796         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
5797         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
5798         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
5799         (_DL_HWCAP_PLATFORM): Define to new mask.
5800         (_dl_platform_string, _dl_string_platform): New functions.
5801         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
5802         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
5804 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
5806         [BZ #2526]
5807         * README.libm: Fix a thinko in sqrt algorithm description.
5809         [BZ #3143]
5810         * manual/string.texi (argz_delete): Fix prototype.
5811         Patch by <alpt@freaknet.org>.
5813 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
5815         [BZ #3138]
5816         * io/test-lfs.c (do_prepare): Give name_len type size_t.
5817         * io/tst-fcntl.c (do_prepare): Likewise.
5818         * posix/tst-exec.c (do_prepare): Likewise.
5819         * posix/tst-preadwrite.c (do_prepare): Likewise.
5820         * posix/tst-spawn.c (do_prepare): Likewise.
5821         * posix/tst-truncate.c (do_prepare): Likewise.
5822         * rt/tst-aio.c (do_prepare): Likewise.
5823         * rt/tst-aio64.c (do_prepare): Likewise.
5824         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
5825         size_t.
5827 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
5829         [BZ #2821]
5830         * time/mktime.c (guess_time_tm): Fix overflow detection.
5831         * time/Makefile (tests): Add bug-mktime1.
5832         * time/bug-mktime1.c: New file.
5834         [BZ #3189, #3188]
5835         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
5836         (mremap): Likewise.
5838 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
5840         [BZ #1006]
5841         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
5842         Ensure relocation doesn't clobber any bits outside of the
5843         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
5844         R_SPARC_HI22 and R_SPARC_H44.
5846         [BZ #2775]
5847         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
5848         (long) (MINSIZE + nb - old_size) is positive.
5850         * malloc/arena.c (grow_heap): When growing bail even if new_size
5851         is negative.
5853         [BZ #3155]
5854         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
5855         stack below r1.
5857 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
5859         * posix/regex_internal.c (re_string_reconstruct): Handle
5860         offset < pstr->valid_raw_len && pstr->offsets_needed case.
5861         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
5862         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
5863         re_string_context_at.
5864         * posix/Makefile: Add rules to build and run bug-regex26 test.
5865         * posix/bug-regex26.c: New test.
5867         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
5868         rather than col_sym_free.  Move seqp declaration earlier.
5870         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
5872 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
5874         * nscd/initgrcache.c (addinitgroupsX): Move any_success
5875         decl before first goto out.
5877 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
5879         * Makerules (shlib.lds): If have-hash-style, put .hash section
5880         at the end of the RO segment.
5882 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
5884         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
5885         style hash table format is used.
5887 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
5889         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
5890         randomization rather than before.
5891         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
5893 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
5895         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
5897         * malloc/malloc.c (_int_malloc): Use full list insert and not
5898         shortcut which assumes the list is empty for large requests
5899         too.
5901         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
5903 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
5905         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
5906         and offout arguments to the prototype.
5907         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
5908         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
5909         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
5910         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
5911         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
5912         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
5913         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
5914         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
5916 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
5918         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
5920         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
5921         dlopen parameters.
5923 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
5925         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
5926         only if herrno is NETDB_INTERNAL.  Handle errors other than
5927         ERANGE outside of the loops, handle TRY_AGAIN.
5929         * locale/programs/ld-ctype.c (translit_flatten): Issue error
5930         if other's ctype category was missing.
5931         * locale/programs/ld-collate.c (collate_read): Return if
5932         copy_locale's collate category is missing.
5934 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
5936         [BZ #2684]
5937         * malloc/malloc.c (public_rEALLOc): Try harder by using other
5938         arenas if allocation failed.
5939         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
5941 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
5943         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
5944         waste bins[0..1].
5945         (malloc_state): Reduce bins size by 2.
5946         (_int_malloc): Fix test for large enough buffer for early termination.
5947         When no unsorted block matches perfectly and an exiting block has
5948         to be split, use full list insert and not shortcut which assumes
5949         the list is empty.
5951         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
5952         failure.
5954 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
5956         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
5957         do anything.
5959         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
5960         symbol require exact match (these are PLTs).
5961         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
5962         (_dl_ppc64_addr_sym_match): Likewise.
5964         [BZ #2683]
5965         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
5966         If symbol has a value use it.
5967         * elf/tst-dladdr1.c: New file.
5968         * elf/Makefile: Add rules to build and run tst-addr1.
5970 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
5972         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
5973         keeps failing and heap growth or new heap creation isn't
5974         successful either.
5975         * malloc/tst-malloc.c (main): Add new tests.
5977 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
5979         [BZ #2734]
5980         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
5981         as in the x86-64 code to use bswap.
5983 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
5985         [BZ #2680]
5986         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
5987         __USE_UNIX98.
5988         * posix/bits/unistd.h: Likewise.
5990 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
5992         [BZ #2751]
5993         * string/strchr.c: Add cast to avoid warning.
5995 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
5997         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
5998         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
5999         limit is needed to avoid the exploding of the address space
6000         requirement for secondary heaps.
6001         * malloc/arena.c (HEAP_MAX_SIZE): Define using
6002         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
6004 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
6006         [BZ #3018]
6007         * Makerules (depfiles): Handle extra-test-objs the same as
6008         extra-objs.
6009         (common-mostlyclean): Likewise.
6010         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
6011         instead.
6012         * elf/Makefile (extra-objs): Likewise.
6013         * stdlib/Makefile (extra-objs): Likewise.
6015 2006-08-14  Eric Blake  <ebb9@byu.net>
6017         [BZ #3044]
6018         * misc/error.h: Assume C89 or better.
6019         * misc/error.c: Likewise.
6021 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
6023         [BZ #3040]
6024         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
6025         __ASSUME_ATFCTS is defined.
6027 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
6029         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
6030         to sort in each call.
6032         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
6033         is empty simply return and use next service.
6034         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
6036         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
6037         tells us when not finding a charmap file is an error.
6038         * locale/programs/charmap.h: Adjust charmap_read prototype.
6039         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
6040         cannot find a charmap.
6041         * locale/programs/localedef.c (main): Adjust charmap_read call.
6043 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
6045         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
6046         sysdeps/posix/pause.c implementation instead.
6048 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
6050         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
6051         to EPERM.
6053 2006-08-13  Andreas Schwab  <schwab@suse.de>
6055         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
6056         Don't clobber caller's LRSAVE.
6057         (_dl_prof_resolve): Likewise.
6059 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
6061         [BZ #1996]
6062         * libio/memstream.c (open_memstream): Allocate initial buffer with
6063         calloc.
6064         * libio/wmemstream.c (open_wmemstream): Likewise.
6065         * libio/strops.c: Pretty printing.
6066         (_IO_str_overflow): Clear uninitialized part of the new buffer.
6067         (enlarge_userbuf): New function.
6068         (_IO_str_seekoff): Call it if seek position is larger than current
6069         buffer.
6070         * libio/wstrops.c: Likewise.
6071         * libio/vasprintf.c: Add comment as to why we do not have to use
6072         calloc instead of malloc to allocate initial buffer.
6073         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
6074         * libio/bug-memstream1.c: New file.
6075         * libio/bug-wmemstream1.c: New file.
6077 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
6079         * libio/wstrops.c: Remove dead macro definitions and comments.
6080         * libio/strops.c: Likewise.
6082         [BZ #2764]
6083         * login/utmpname.c (__utmpname): Remove unnecessary test.
6085 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
6087         [BZ #2832]
6088         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
6089         0s from integers.
6091 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
6093         [BZ #2987]
6094         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
6095         for CPU clocks.
6096         * sysdeps/unix/clock_settime.c: Add support for platform-specific
6097         setting of CPU clocks.
6099 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
6101         [BZ #2841]
6102         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
6103         since C99 requires the result to promote to 'int' when uint_least8_t
6104         and uint_least16_t promote to 'int'.
6106 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
6108         [BZ #3013]
6109         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
6110         lenght of one output field, correct bitmask creation.
6111         * locale/programs/ld-time.c: Add alignment.
6113         [BZ #2997]
6114         * misc/error.c: Add space between program name and message if file
6115         name is missing.
6117 2006-08-03  Eric Blake  <ebb9@byu.net>
6119         [BZ #2998]
6120         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
6122 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
6124         * malloc/memusagestat.c: Silence warnings.
6126         * malloc/malloc.c: Dynamically size mmap treshold if the program
6127         frees mmaped blocks.
6128         Patch by Valerie Henson and Arjan van de Ven.
6130 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
6132         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
6133         __USE_GNU.
6135         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
6136         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
6137         (DEF): Don't put the var into .gnu.linkonce.r.* section.
6138         Only provide var definitions in strtol_l (or for *ull*
6139         in strtoll_l).
6141         * stdio-common/bug16.c (tests): New array.
6142         (do_tests): Allow the first hexadecimal digit
6143         to be 1, 2, 4 or 8.  Do 3 additional tests.
6145         * sysdeps/s390/fpu/libm-test-ulps: Update.
6147         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
6148         fchownat syscall if available.
6149         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
6150         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
6151         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
6153 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
6155         * nis/nis_xdr.c: Avoid some function calls.
6157 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
6158             Ulrich Drepper  <drepper@redhat.com>
6160         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
6161         short cut if only one name component is stripped away.
6163 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
6165         * nis/nis_call.c: Minor cleanups throughout.
6166         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
6167         (first_shoot): Add search_parent_first parameter.  Only if it is set
6168         search parent server first.
6169         If directory for table found through cold start cache is not the same
6170         as referenced in the cache, don't use it.
6171         (__nisfind_server): Take additional parameter.  Pass it on to
6172         first_shoot.
6173         (__prepare_niscall): Adjust __nisfind_server call.
6174         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
6175         * nis/nis_table.c: Adjust __nisfind_server call.
6176         * nis/nis_lookup.c: Likewise.
6177         (nis_lookup): Don't loop endlessly if name is reduced to ".".
6179 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
6181         [BZ #2182]
6182         * math/s_cacosh.c: Return values from positive branch.
6183         * math/s_cacoshf.c: Likewise.
6184         * math/s_cacoshl.c: Likewise.
6186         [BZ #2883]
6187         * sysvipc/sys/msg.h: Change return value to ssize_t.
6188         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
6189         * sysvipc/msgrcv.c: Likewise.
6190         * include/sys/msg.h: Likewise.
6192         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
6193         test introduced in patch for bz #661.
6194         (getgrouplist): Simplify code a bit.  Don't allocate one additional
6195         element for NEWGROUPS.
6197         [BZ #2908]
6198         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
6199         'f', use '1' as leading digit not '\1'.
6200         * stdio-common/Makefile (tests): Add bug16.
6201         * stdio-common/bug16.c: New file.
6203         [BZ #2914]
6204         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
6205         and don't try to open it.  The patch introducing the macro
6206         contained a bug and used the same file name as the new file
6207         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
6208         this out completely.
6210         [BZ #2926]
6211         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
6212         Patch by Jerry James <Jerry.James@usu.edu>.
6214         * rt/Makefile (tests): Add tst-clock2.
6215         * rt/tst-clock2.c: New file.
6217         [BZ #2978]
6218         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
6219         function and its parameters and pass it to new thread.
6220         (__gai_notify): Add support for alternative waiting for completion.
6221         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
6222         waiting for completion.
6223         * resolv/getaddrinfo_a.c: Likewise.
6224         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
6225         waiting for completion is used.
6226         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
6227         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
6228         * resolv/gai_error.c: Likewise.
6229         * resolv/gai_sigqueue.c: Likewise.
6231 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
6233         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
6234         errno to EBADF and return MACH_PORT_NULL.
6236 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
6238         [BZ #2980]
6239         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
6241 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
6243         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
6244         walk them instead of the symbol table.
6246 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
6248         [BZ #2098]
6249         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
6250         status of NSS calls, not the number of returned entries.
6252         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
6253         request_key, keyctl.
6255 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
6257         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
6259 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
6261         * elf/tst-auditmod1.c: Fix typo in #error.
6263 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
6265         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
6267         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
6269 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
6271         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
6272         that the directory is empty even on non-POSIX filesystems.
6274 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
6276         * elf/dl-open.c (dl_open_worker): Add branch prediction.
6278         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
6279         the backend NSS module.  If backend setgrent call failed, don't have
6280         internal_setgrent fail.  Just remember this until it is needed.
6281         * nis/nss_compat/compat-pwd.c: Likewise.
6282         * nis/nss_compat/compat-spwd.c: Likewise.
6284 2006-07-30  Roland McGrath  <roland@redhat.com>
6286         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
6287         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
6288         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
6289         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
6291         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
6292         (nanosleep_not_cancel): New macro.
6293         (sigsuspend_not_cancel): new macro.
6294         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
6295         (do_sigsuspend): Define as inline.
6296         (__sigsuspend): Always use do_sigsuspend.
6297         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
6298         * include/signal.h: Declare __sigsuspend_nocancel.
6299         * sysdeps/posix/pause.c
6300         [! NO_CANCELLATION] (__pause_nocancel): New function.
6302         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
6303         * include/time.h (__nanosleep_nocancel): Likewise.
6305 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
6307         * locale/programs/localedef.c (add_to_readlist): Rename local
6308         variables to avoid confusion.
6310         * locale/programs/charmap.c (charmap_read): Emit error message if
6311         charmap couldn't be found or read.
6313 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
6315         * sysdeps/unix/sysv/linux/kernel-features.h: Define
6316         __ASSUME_FUTEX_LOCK_PI.
6317         * include/time.h: Declare __nanosleep_nocancel.
6318         * include/unistd.h: Declare __pause_nocancel.
6320         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
6321         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
6322         get the __stack_chk_fail_local definition when it's needed.
6324 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
6326         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
6327         * dlfcn/bug-atexit3.c: New file.
6328         * dlfcn/bug-atexit3-lib.cc: New file.
6330         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
6331         used when the namespace is not the base namespace.
6333 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
6335         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
6336         (__new_exitfn): Bump it in every successful call.
6337         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
6338         more exit handlers, call them right away.
6339         * stdlib/exit.h: Declare __new_exitfn_called.
6341 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
6343         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
6344         calling registered handler.
6346         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
6347         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6348         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6349         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
6350         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6351         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6352         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6353         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6355 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
6357         * elf/dl-lookup.c (dl_new_hash): New functions.
6358         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
6359         value here.  Compute new-style hash value.  Pass new hash value
6360         and reference to variable with the old value to do_lookup_x.
6361         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
6362         old-style hash table.
6363         (_dl_debug_bindings): Pass new hash value and reference to variable
6364         with the old value to do_lookup_x.
6365         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
6366         new-style hash value and change old-style hash value parameter to
6367         be a reference.  Reoganize functions to determine whether
6368         new-style hash table is available.  Only fall back on old-style
6369         table.  If old-style hash value is needed, compute it here.
6370         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
6371         entry.
6372         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
6373         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
6374         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
6375         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
6376         * Makeconfig: If linker supports --hash-style option add it to all
6377         linker command lines to build DSOs.
6378         * config.make.in: Define have-hash-style.
6379         * configure.in: Test whether linker supports --hash-style option.
6381         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
6382         * sysdeps/generic/ldsodefs.h: Adjust prototype.
6384 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
6386         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
6387         auditing.
6389         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
6390         RPATH of main map twice.
6392 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
6394         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
6395         look further, return original strings.
6396         (_nl_find_msg): Do not return found translation if the conversion
6397         failed.  Either signal the string is unusable or that something went
6398         wrong and the original should be used.
6400 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
6402         * string/_strerror.c (__strerror_r): Add __builtin_expect.
6404 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
6406         [BZ #2766]
6407         * misc/insremque.c (insque): Handle prev == NULL.
6408         * misc/Makefile (tests): Add tst-insremque.
6409         * misc/tst-insremque.c: New test.
6411 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
6413         [BZ #2792]
6414         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
6415         conflict with DL_DST_REQUIRED.
6417 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
6419         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
6420         match what Solaris does.
6422 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
6424         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
6425         local_setegid instead of seteuid and setegid.
6426         * sysdeps/generic/local-setxid.h: New file.
6427         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
6429         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
6431         * string/Makefile (tests): Add bug-envz1.
6432         * string/bug-envz1.c: New file.
6434 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
6436         * posix/regex_internal.c (re_string_skip_chars): If no character has
6437         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
6438         to the byte which couldn't be converted.
6439         (re_string_reconstruct): Don't clear valid_raw_len before calling
6440         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
6441         tip_context using re_string_context_at.
6442         * posix/Makefile: Add rules to build and run bug-regex25 test.
6443         * posix/bug-regex25.c: New test.
6445 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
6447         [BZ #2703]
6448         * string/envz.c (envz_strip): Correct erroneously reversed src
6449         and dest parameters to memmove() invocation.
6451 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
6453         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
6454         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
6455         to make sure the database has been already invalidated.
6456         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
6457         after the cache has been invalidated.  Use pthread_mutex_lock rather
6458         than pthread_mutex_trylock if fd != -1.
6459         * nscd/connections.c (invalidate_cache): Add fd argument, write
6460         response to fd if not calling prune_cache, pass fd to prune_cache.
6461         (handle_request): Adjust invalidate_cache caller.
6462         (nscd_run): Pass -1 as fd to prune_cache.
6464 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
6466         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
6467         the correct place.
6469 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
6471         * nscd/nscd.h (struct database_dyn): Add prunelock field.
6472         * nscd/cache.c (prune_cache): Take prunelock before starting the
6473         work.  Just return in case it is already taken.
6474         * nscd/connections.c (dbs): Initialize .prunelock.
6476 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
6478         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
6479         copying.  No need to allocate new array for group members.  Just
6480         move the pointers and update the size.
6482         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
6483         Avoid memory leak in case realloc fails.  Simplification for
6484         better code generation.
6486         Avoid deprecation warning because of libc_hidden_proto for
6487         inet6_option_alloc.
6488         * inet/inet6_option.c (option_alloc): Renamed from
6489         inet6_option_alloc.  Made static.
6490         (inet6_option_alloc): Now a simple wrapper around option_alloc.
6491         (inet6_option_append): Call option_alloc.
6492         * include/netinet/in.h: Remove libc_hidden_proto for
6493         inet6_option_alloc.
6495         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
6496         for cleanup when cb!=NULL [Coverity CID 233].
6498 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
6500         [BZ #2693]
6501         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
6502         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
6503         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
6504         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
6505         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
6506         and inet6_rth_getaddr.
6507         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
6508         array.
6509         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
6510         Mark inet6_option_* interfaces as deprecated.
6511         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
6512         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
6513         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
6514         inet6_rth_segments, and inet6_rth_getaddr.
6515         * inet/inet6_opt.c: New file.
6516         * inet/inet6_rth.c: New file.
6518         * inet/netinet/icmp6.h: Pretty printing.
6520         [BZ #2683]
6521         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
6523 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
6525         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
6526         doing it all here.  When server does not know the answer do not
6527         fail immediate, try parent first.
6529         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
6530         overflow test.
6532 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
6534         * nis/nis_call.c (__prepare_niscall): New function.  Split out
6535         from __do_niscall.
6536         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
6537         and exported.
6538         (__follow_path): New function.  Split out from nis_list.
6539         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
6540         _xdr_nis_result.
6541         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
6542         _xdr_nis_result.
6543         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
6544         and __follow_path.
6545         * nis/Versions: Export __prepare_niscall, __create_ib_request,
6546         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
6547         from libnsl for version GLIBC_PRIVATE.
6548         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
6549         Remove entry parameter from _nss_nisplus_parse_pwent and
6550         _nss_nisplus_parse_grent.
6551         * nis/nss_nisplus/nisplus-parser.c: Likewise.
6552         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
6553         again.  Rewrite getpwent handling to not use nis_first_entry and
6554         nis_next_entry.  Roll out own niscall handling.
6555         * nis/nss_nisplus/nisplus-grp.c: Likewise.
6557         * sunrpc/xdr_rec.c: Fix typo in comment.
6559 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
6561         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
6562         handling.
6564         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
6565         to allocate memory for my_pollfd.  Better initialization of
6566         cb_is_running.  Use TEMP_FAILURE_RETRY.
6568         * malloc/memusage.sh (memusageso): Add quotes.
6569         (memusagestat): Likewise.
6570         * debug/xtrace.sh (pcprofileso): Likewise.
6571         (pcprofiledump): Likewise.
6572         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
6573         replacement.
6574         * malloc/Makefile ($(objpfx)memusage): Likewise.
6576         * nis/nis_callback.c (__nis_create_callback): Calls to
6577         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
6578         asprintf call fails.
6580         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
6581         no uninitialized memory is passed to sendto.
6583 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
6585         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
6586         of snprintf+strdup.  Handle OOM.
6587         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
6588         cb->serv together.  Remove now obsolete free calls.
6589         (__nis_destroy_callback): Remove now obsolete free call.
6591 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
6593         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
6594         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
6595         and ULA respectively). Set precedence for IPv4 address to 10 as
6596         defined in RFC3484 for preferring IPv6.
6597         * posix/gai.conf: Update to match the new default tables.
6599 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
6601         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
6602         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
6603         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
6604         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
6606         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
6607         Removed.
6608         (init_nss_interface): Remove initialization of these variables.
6610 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
6612         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
6613         nis_free_directory forward to avoid duplication.
6615 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
6617         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
6618         rec_dirsearch returning NULL.
6619         (first_shoot): Handle __nis_finddirectory returning NULL.
6620         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
6622         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
6623         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
6625 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
6627         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
6628         pid changed.
6630 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
6632         * include/rpc/pmap_prot.h: Mark all functions as hidden.
6634         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
6635         * nscd/nscd_getgr_r.c: Likewise.
6637         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
6639         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
6640         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
6642         * stdlib/longlong.h (__clz_tab): Mark as hidden.
6644         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
6646         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
6648         * include/rpc/auth.h: Mark xdr_des_block_internal and
6649         xdr_opaque_auth_internal as hidden.
6651         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
6652         hidden.
6654         * include/rpc/xdr.h: Mark all _internal functions as hidden.
6656         * misc/getusershell.c (okshells): Don't use static initializers,
6657         do it dynamically.
6659         * stdlib/fmtmsg.c (keywords): Change type of len element to
6660         uint32_t to not waste space on 64bit machines.
6662         * locale/setlocale.c: Change _nl_category_names into a string.
6663         Add new _nl_category_name_idxs.  Change all users.
6664         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
6665         Declare _nl_category_name_idxs.
6666         * locale/findlocale.c: Adjust for _nl_category_names change.
6667         * locale/loadlocale.c: Likewise.
6668         * locale/newlocale.c: Likewise.
6669         * intl/dcigettext.c: Likewise.
6671         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
6672         (add_alias2): ...here.  New function.
6673         (__gconv_read_conf): Simplify builtin alias handling.
6674         (builtin_aliases): Convert to string to avoid relocations.
6675         * iconv/gconv_builtin.h: Add comment about correct formatting.
6677 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
6679         * resolv/res_debug.c (loc_ntoa): Make error const.
6681 2006-05-14  Andreas Schwab  <schwab@suse.de>
6683         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
6685 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
6687         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
6688         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
6689         sizeof (cpu_set_t).
6691 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
6693         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
6695         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
6697         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
6698         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
6700         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
6701         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
6703         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
6704         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
6705         xdr_cback_data.
6707         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
6708         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
6709         xdr_ypupdate_args.
6711         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
6712         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
6714         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
6715         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
6717         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
6718         * include/rpcsvc/nis_callback.h: New file.
6720         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
6721         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
6723         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
6724         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
6726         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
6727         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
6729         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
6730         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
6732         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
6733         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
6734         xdr_ypdelete_args.
6736         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
6737         __BEGIN_DECLS and __END_DECLS, the header is not installed.
6739         * nis/nis_error.c: Remove table of strings.  Use position
6740         independent mechanism.
6741         * nis/nis_error.h: New file.
6743 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
6745         * locale/programs/ld-time.c (time_finish): If wide era name or
6746         format aren't provided, set both wname and wformat to L"".
6748 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
6750         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
6751         results if the call was succesful.
6753         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
6755         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
6756         as hidden.
6758 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
6760         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
6762 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
6764         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
6765         caller makes sure this is not the case.
6766         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
6768 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
6770         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
6771         calls.
6773         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
6774         [Coverity CID 229, 230]
6776         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
6777         DGETTEXT calls.
6778         (hol_help): Likewise.  [Coverity CID 226, 227]
6780         * string/argz-replace.c (__argz_replace): Unconditionally call
6781         free on SRC.  [Coverity CID 225]
6783         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
6784         the return value of __nis_default_owner and __nis_default_group,
6785         it has been especially allocated.  [Coverity CID 224]
6787         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
6788         searchgroup and searchowner.  Significantly simplified.
6789         (__nis_default_owner): Remove duplication.  Do not locally copy the
6790         string before duplicating it.
6791         (__nis_default_group): Likewise.
6793         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
6794         we must clear the variable before calling __nisfind_server.
6796         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
6797         nis_getnames.  [Coverity CID 223]
6799         * locale/programs/locfile.c (locfile_read): Use alloca instead of
6800         xmalloc to allocate local repertoire name.  [Coverity CID 222]
6802         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
6803         allocate memory for the input to add_bytes.  [Coverity CID 221]
6805         * posix/wordexp.c (w_addword): Free word if realloc fails and it
6806         was allocated here.  [Coverity CID 219, 220]
6808         * posix/getconf.c (print_all): Free confstr data after printing.
6809         [Coverity CID 218]
6811         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
6812         list allocation fails.  [Coverity CID 215]
6814         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
6815         [Coverity CID 213]
6817         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
6818         string is NULL.  [Coverity CID 212]
6819         * argp/Makefile: Add rules to build and run bug-argp1.
6820         * argp/bug-argp1.c: New file.
6822         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
6823         end of string.
6824         * stdlib/canonicalize.c (__realpath): Likewise.
6826         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
6827         pointer.  [Coverity CID 206]
6829         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
6830         in statically linked code.
6831         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
6832         statically built code, be prepared to have no link map.
6833         [Coverity CID 205]
6835         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
6836         dgettext calls. [Coverity CID 204]
6838         * argp/argp-help.c (struct uparams): Remove valid member.  Change
6839         the one user.
6840         (uparam_names): Reduce size.  Avoid relative relocations.
6841         Moved to read-only segment.
6842         (fill_in_uparams): Update for new layout.
6844         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
6845         assumed to always be != NULL. [Coverity CID 202]
6847         * argp/argp-help.c (hol_entry_help): Remove some dead code
6848         [Coverity CID 200].
6850         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
6851         away a few more unconditional yperr2nss calls.
6852         (_nss_nis_getservbyname_r): Likewise.
6854 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
6856         * sysdeps/generic/ldsodefs.h: Remove support for non-core
6857         architectures.
6859         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
6860         that unused memory passed to sendto is nevertheless initialized.
6862         [BZ #2499]
6863         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
6864         possibly unaligned memory accesses.
6866         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
6867         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
6868         and __putlong respectively.  Correct buffer overflow check for
6869         NS_NOTIFY_OP.
6871         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
6873         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
6874         (send_dg): Rewrite error handling to be more compact and avoid
6875         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
6877         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
6879         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
6880         instead of ns_get16.
6881         (res_queriesmatch): Likewise.  Minor optimization.
6883         [BZ #2499]
6884         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
6885         __libc_res_nsend might reallocate the buffer for the answer.  In
6886         this case we have to reload the HP pointer.
6888 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
6890         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
6891         some branch prediction hints.
6893         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
6894         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6895         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6896         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
6897         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6898         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6899         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6900         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6902 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6904         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
6905         by a GOT relocation to make Scrt1.o position independent.
6906         * sysdeps/s390/s390-64/elf/start.S: Likewise.
6908         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
6909         six system call parameters.
6910         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
6912 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
6914         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
6915         malloc&bzero.
6917         * sunrpc/svc_udp.c (BZERO): Remove definition.
6918         (CALLOC): Define.
6919         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
6921         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
6922         (des_SPtrans): Use uint32_t type.
6923         (des_skb): Likewise.
6925         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
6927 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
6929         [BZ #2509]
6930         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
6931         on 32-bit arches.
6933 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
6935         * locale/programs/ld-address.c (address_finish): Fix one more
6936         place where the iso639 array might be accessed beyond the limits.
6938 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
6940         * nis/nis_table.c (nis_list): Avoid clearing res twice before
6941         filling it for the first time.
6943         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
6944         Adjust all callers.
6945         Free res object content before returning.
6947         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
6949         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
6950         client->cl_auth.
6952         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
6953         cleanup for initial thread, just the free call on TVP.
6955         * nscd/gai.c (__getline): Define.
6958 See ChangeLog.16 for earlier changes.