* include/kernel-features.h: Moved to...
[glibc.git] / ChangeLog
blob504027a3ecbfee170ea17f312556ce67f3c7c7df
1 2007-11-13  Ulrich Drepper  <drepper@redhat.com>
3         * include/kernel-features.h: Moved to...
4         * sysdeps/mach/hurd/kernel-features.h: ...here.
6 2007-09-13  H.J. Lu  <hongjiu.lu@intel.com>
8         * sysdeps/i386/i586/memcpy_chk.S: New file.
9         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
10         * sysdeps/i386/i586/memset_chk.S: Likewise.
12 2007-11-12  Ulrich Drepper  <drepper@redhat.com>
14         * include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
15         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
16         list of interfaces.  Also store prefix length.
17         * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
18         (rfc3484_sort): In rule 9, for IPv4 addresses count only matching
19         prefix if source and destination address are in the same subnet.
20         (getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
21         Always look for matching record in in6ai list.
22         Correct source_addr_len value for IPv6->IPv4 converted records.
24 2007-11-11  Roland McGrath  <roland@frob.com>
26         * include/kernel-features.h: New file.
28 2007-11-10  Ulrich Drepper  <drepper@redhat.com>
30         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessary
31         complications for 64-bit platforms.
33         * sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..
34         * sysdeps/unix/sysv/linux/open64_2.c: ...here.  New file.
35         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add
36         open64_2.
37         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat
38         entries.
39         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
40         * sysdeps/wordsize-64/alphasort.c: New file.
41         * sysdeps/wordsize-64/alphasort64.c: New file.
42         * sysdeps/wordsize-64/fseeko.c: New file.
43         * sysdeps/wordsize-64/fseeko64.c: New file.
44         * sysdeps/wordsize-64/ftello.c: New file.
45         * sysdeps/wordsize-64/ftello64.c: New file.
46         * sysdeps/wordsize-64/ftw.c: New file.
47         * sysdeps/wordsize-64/ftw64.c: New file.
48         * sysdeps/wordsize-64/iofgetpos.c: New file.
49         * sysdeps/wordsize-64/iofgetpos64.c: New file.
50         * sysdeps/wordsize-64/iofopen.c: New file.
51         * sysdeps/wordsize-64/iofopen64.c: New file.
52         * sysdeps/wordsize-64/iofsetpos.c: New file.
53         * sysdeps/wordsize-64/iofsetpos64.c: New file.
54         * sysdeps/wordsize-64/lockf.c: New file.
55         * sysdeps/wordsize-64/lockf64.c: New file.
56         * sysdeps/wordsize-64/mkostemp.c: New file.
57         * sysdeps/wordsize-64/mkostemp64.c: New file.
58         * sysdeps/wordsize-64/mkstemp.c: New file.
59         * sysdeps/wordsize-64/mkstemp64.c: New file.
60         * sysdeps/wordsize-64/scandir.c: New file.
61         * sysdeps/wordsize-64/scandir64.c: New file.
62         * sysdeps/wordsize-64/tmpfile.c: New file.
63         * sysdeps/wordsize-64/tmpfile64.c: New file.
64         * sysdeps/wordsize-64/versionsort.c: New file.
65         * sysdeps/wordsize-64/versionsort64.c: New file.
66         * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file.
67         * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file.
68         * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file.
69         * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file.
70         * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file.
71         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file.
72         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file.
73         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file.
74         * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file.
75         * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file.
76         * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file.
77         * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file.
79         * crypt/sha256-crypt.c: Fix a comment.
80         * crypt/sha512-crypt.c: Likewise.
82 2007-11-07  H.J. Lu  <hongjiu.lu@intel.com>
84         * sysdeps/x86_64/memset.S: Add sfence after movnti.
86 2007-11-07  Ulrich Drepper  <drepper@redhat.com>
88         [BZ #5277]
89         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): If conversion failed
90         because output buffer is too small break, don't loop.
91         * iconvdata/Makefile (tests): Add bug-iconv6.
92         * iconvdata/bug-iconv6.c: New file.
94 2007-11-06  Ulrich Drepper  <drepper@redhat.com>
96         * stdio-common/vfprintf.c (vfprintf): Compute necessary buffer size
97         with size_t type.
98         * stdio-common/printf_fp.c (__print_fp): Change chars_needed type to
99         size_t.  Add casts where needed.
101         * nscd/selinux.c (nscd_request_avc_has_perm): When compiled with
102         old headers, don't call avc_has_perm if we don't have the
103         permission information.
105 2007-11-05  Daniel Jacobowitz  <dan@codesourcery.com>
107         * elf/rtld.c (dl_main): Use the page size to find the map start.
109 2007-11-05  Ulrich Drepper  <drepper@redhat.com>
111         * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
112         Patch by Szymon Siwek <sls@poczta.wp.pl>.
114         * nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup only
115         when the lookup call failed.
117         * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock.
118         Add prune_cond and wakeup_time.
119         (CACHE_PRUNE_INTERNAL): Define.
120         Update declarations of prune_cache and setup_thread.
121         * nscd/connections.c (dbs): Update initializers.
122         (CACHE_PRUNE_INTERNAL): Moved to nscd.h.
123         (nscd_init): Default number of threads is now 4.
124         (invalidate_cache): Take lock before calling prune_cache.
125         (handle_request): If SELinux forbids the request, say so.
126         (readylist_cond): Use static initializer.
127         (nscd_run_prune): New function.  Used only by pruning threads.
128         (nscd_run_worder): Renamed from nscd_run.  Remove support for pruning
129         here.
130         (fd_ready): Update nscd_run reference.
131         (start_threads): No need to initialize readylist_cond.
132         Start pruning threads separately.
133         * nscd/nscd_setup_thread.c: Change return value type to int and always
134         return 0.
135         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type
136         to int and return nonzero value if we can use the TID address hack.
137         * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for
138         the database is later than the new entry's timeout, update the
139         wakeup time and wake the cleanup thread.
140         (prune_cache): Return seconds the next entry in the database is still
141         valid.  Remove locking for pruning here.
142         * nscd/nscd.conf: Document default number of threads.
144 2007-10-31  Ulrich Drepper  <drepper@redhat.com>
146         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sure
147         stack is properly aligned for the target function.
148         Correct unwind info.
150         * elf/rtld.c (dl_main): Initialize stack and pointer guard early
151         when using auditing libraries.
153 2007-10-29  Ulrich Drepper  <drepper@redhat.com>
155         * resolv/Versions [libresolv] (GLIBC_PRIVATE): Add
156         _nss_dns_getnetbyaddr2_r.
157         * resolv/nss_dns/dns-host.c: Define _nss_dns_getnetbyaddr2_r.  Pass
158         extra parameter to getanswer_r.
159         (_nss_dns_getnetbyaddr_r): Now a wrapper around
160         _nss_dns_getnetbyaddr2_r.
162         * nscd/Makefile (nscd-modules): Replace gethstbynm2_r with
163         gethstbynm3_r.
164         * nscd/gethstbynm2_r.c: Remove.
165         * nscd/gethstbynm3_r.c: New file.
166         * nscd/aicache.c (addhstaiX): Use __gethostbyaddr2_r instead of
167         __gethostbyaddr_r.
168         * nscd/gethstbyad_r.c: Generate __gethostbyaddr2_r function.  Define
169         __gethostbyaddr_r compatibility wrapper.
170         * nscd/hstcache.c (cache_addhst): Add ttl parameter.  Use it when
171         determining timeout of entry.
172         (lookup): Take new parameter and pass it to __gethostbyname3_r and
173         __gethostbyaddr2_r.
174         (addhstbyX): Pass reference to variable for TTL to lookup and
175         cache_addhst.
176         * nss/Versions [glibc] (GLIBC_PRIVATE): Export __nss_passwd_lookup2,
177         __nss_group_lookup2, __nss_hosts_lookup2, __nss_services_lookup2,
178         and __nss_next2.  Remove __nss_services_lookup.
179         * nss/XXX-lookup.c: Name function now *_lookup2.  Add new parameter.
180         Add compat wrapper.
181         * nss/getXXbyYY_r.c: Changes to call new *_lookup2 functions and
182         __nss_next2.
183         * nss/getXXent_r.c: Likewise.
184         * nss/getnssent_r.c: Likewise.
185         * nss/nsswitch.c (__nss_lookup): Add new parameter.  If first function
186         does not exist in module, try the optional second name.
187         (__nss_next2): New function.
188         (__nss_next): Now wrapper around __nss_next2.
189         * nss/nsswitch.h: Adjust __nss_lookup prototype.
190         Declare __nss_next2.
191         Adjust definition of db_lookup_function type.
192         * nss/service-lookup.c: Define NO_COMPAT.
193         * include/netdb.h: Declare __gethostbyaddr2_r and __gethostbyname3_r.
194         * inet/ether_hton.c: Use __nss_next2 instead of __nss_next.
195         * inet/ether_ntoh.c: Likewise.
196         * sunrpc/netname.c: Likewise.
197         * sunrpc/publickey.c: Likewise.
198         * inet/getnetgrent.c: Likewise.  Adjust calls to __nss_lookup.
199         * inet/gethstbyad_r.c (DB_LOOKUP_FCT): Change to __nss_hosts_lookup2.
200         * inet/gethstbynm2_r.c (DB_LOOKUP_FCT): Likewise.
201         * inet/gethstbynm_r.c (DB_LOOKUP_FCT): Likewise.
202         * inet/gethstent_r.c (DB_LOOKUP_FCT): Likewise.
204         * nscd/aicache.c (addhstaiX): Fix default TTL handling.
206         * inet/getnetgrent.c (setup): Encrypt static pointer.
208 2007-10-28  Ulrich Drepper  <drepper@redhat.com>
210         [BZ #5204]
211         * crypt/sha256c-test.c: Define TIMEOUT to 6 for ancient hardware.
212         * crypt/sha512c-test.c: Likewise.
214         [BZ #5225]
215         * stdio-common/vfscanf.c (_IO_vfwscanf): Don't misuse wp pointer
216         to keep track of end of %[ format string element.
217         * stdio-common/Makefile (tests): Add bug20.
218         * stdio-common/bug20.c: New file.
220         [BZ #5222]
221         * elf/dl-load.c (_dl_rtld_di_serinfo): Correct handling of short
222         path elements in counting mode.
224 2007-10-27  Andreas Jaeger  <aj@suse.de>
226         [BZ #5040]
227         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
229         [BZ #3112]
230         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
231         (__cleanup): Free shared library when exiting.
232         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
233         (__cleanup): Free shared library when exiting.
235 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
237         [BZ #2549]
238         * math/libm-test.inc (check_float_internal): Support
239         denormalized return.
241 2007-10-23  Andreas Jaeger  <aj@suse.de>
243         [BZ #5208]
244         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
245         __LONG_LONG_PAIR to handle little endian byte order.
246         Suggested by abhishekrai@google.com
248 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
250         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
252 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
254         * nscd/cache.c (prune_cache): Move test for modified file outside
255         of locking.
257 2007-10-21  Andreas Jaeger  <aj@suse.de>
259         * manual/texinfo.tex: Update to latest version.
261         * manual/sysinfo.texi (System Parameters): Fix Formatting.
263         * manual/arith.texi (Status bit operations): Fix formatting.
265         * manual/errno.texi (Error Messages): Fix formatting.
267         * manual/sysinfo.texi (System Parameters): Fix formatting.
269         * manual/libc.texinfo: Update VERSION and UPDATED.
271 2007-10-19  Roland McGrath  <roland@redhat.com>
273         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
275 2007-10-06  David S. Miller  <davem@davemloft.net>
277         * configure.in: Add sparcv9v2 and sparc64v2.
278         * scripts/config.sub: Likewise.
279         * configure: Regenerate.
280         * elf/elf.h (HWCAP_SPARC_N2): New.
281         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
282         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
283         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
284         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
285         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
286         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
287         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
289 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
291         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
292         even if the poll result indicates there is data to read.
293         Patch by Jeff Moyer <jmoyer@redhat.com>.
295 2007-10-18  Roland McGrath  <roland@redhat.com>
297         * elf/elf.h (NT_PPC_VMX): New macro.
299 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
301         * version.h (VERSION): Set to 2.7.90.
303 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
305         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
306         weak_alias.
308 2007-10-17  Roland McGrath  <roland@frob.com>
310         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
311         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
313 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
315         * version.h (VERSION): Bump to 2.7.
316         * include/features.h (__GLIBC_MINOR__): Bump to 7.
318         [BZ #5186]
319         * time/tzset.c (__tz_convert): Don't force testing for a change of
320         TZ if not called from localtime.  But then also see whether the
321         file changed, in case __use_tzfile is set.
323         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
324         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
325         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
326         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
327         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
328         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
329         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
330         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
332 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
334         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
335         and admin selects to be able to replace the gai.conf file, lock
336         data structures around the qsort call.
338 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
340         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
341         new memset.
342         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
343         too high for the improvements.  Implement bzero unconditionally for
344         use in libc.
346 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
347             Jakub Jelinek  <jakub@redhat.com>
349         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
350         even when time_t is 32-bit.
351         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
352         timezone data read by __tzfile_default.  Ensure __tzname[0] is
353         always set after the search.
355 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
357         * time/tzfile.c (__tzfile_read): Help the compiler recognize
358         unreachable code on 32-bit machines.
360 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
362         [BZ #5184]
363         * time/strftime_l.c: Include stdbool.h.
364         (my_strftime): New wrapper, old function renamed to...
365         (__strftime_internal): ... new function.  Add tzset_called
366         argument, pass it down to recursive calls, don't call tzset ()
367         if already true, set to true after call to tzset ().
369 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
371         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
372         into account when copying TZ string.
374 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
376         * time/tzfile.c (__tzfile_compute): For use_last case set i to
377         num_transition rather than num_transitions - 1.
379 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
381         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
382         PIC indirect jump.
384         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
385         a local label rather than HIDDEN_JUMPTARGET.
387 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
389         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
390         (init_cacheinfo): Initialize it.
391         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
392         Always define bzero.
393         Remove non-glibc code.
394         * sysdeps/x86_64/bzero.S: Make an empty file.
396 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
398         * sysdeps/x86_64/cacheinfo.c
399         (__x86_64_preferred_memory_instruction): New.
400         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
402         * sysdeps/x86_64/memset.S: Rewrite.
404 2007-10-15  Roland McGrath  <roland@redhat.com>
406         * po/libc.pot: Regenerated.
408 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
410         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
411         pointers.
413         [BZ #3425]
414         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
415         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
416         address record to T_A/T_AAAA requests.
418 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
420         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
422         * posix/glob.c: Add some branch prediction throughout.
424         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
425         read from nscd.
427         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
428         service_order.
429         (rfc3484_sort): Make sure that even if qsort doesn't support
430         stable sorting out sorting here is stable by comparing service_order.
431         (getaddrinfo): Initialize service_order.
432         * posix/tst-rfc3484.c (do_test): Adjust for addition of
433         service_order field to sorting structure.
434         * posix/tst-rfc3484-2.c (do_test): Likewise.
436         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
437         * time/tzset.c (tzset_internal): Break TZ string parsing out into
438         __tzset_parse_tz and updating of daylight, timezone, tzname into
439         update_vars.
440         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
441         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
442         happens in __tz_compute.
443         * time/tzfile.c (__tzfile_read): Also read TZ string.
444         (find_transition): Fold into __tzfile_compute.
445         (__tzfile_compute): For times beyond the last transition try to
446         use the TZ string.
447         * timezone/tst-timezone.c: Information in daylight and tzname does
448         change for Asia/Tokyo timezone with more concrete information.
449         Remove the test.
451         * include/stdio.h: Add libc_hidden_proto for ftello.
452         * libio/ftello.c: Add libc_hidden_def.
454         [BZ #1140]
455         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
456         on the specified time and not the last entries in the file.  Move
457         code to determine tzname[] to...
458         (find_transition): ...here.  Add ugly guess for times before the
459         first transition.
461 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
463         [BZ #3195]
464         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
465         no entry.
466         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
467         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
468         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
469         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
471         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
472         read mechanism when there are no group members and avoid no-op
473         read syscall in this case.
475         [BZ #3242]
476         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
477         (__readall): If reading failed due to EAGAIN error wait a bit
478         and possibly try again.
479         (__readvall): Likewise.
481 2007-10-13  Bruno Haible  <bruno@clisp.org>
483         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
484         when we cannot recode the message.
486 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
488         [BZ #4359]
489         * libio/__freading.c (__freading): Don't return true for
490         write-only streams.  For read/write streams, check whether we
491         performed a read operation already.
492         * libio/Makefile (tests): Add tst-ext2.
493         * libio/tst-ext2.c: New file.
495 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
497         * locale/programs/repertoire.c (repertoire_read): Always free
498         memory for repertoire file name [Coverity CID 270].
500         * elf/cache.c (save_aux_cache): Free memory allocated for
501         temporary file name [Coverity CID 267].
503 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
505         * misc/Makefile (headers): Add bits/error.h.
507 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
509         * posix/fnmatch_loop.c: Take rule index returned as part of
510         findidx return value into account when accessing weights.
511         * posix/regcomp.c: Likewise.
512         * posix/regexec.c: Likewise.
514         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
515         (skip_to): Fix problems with parameter of elifdef/elifndef.
517 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
519         * iconv/gconv_simple.c: Add some branch prediction.
521 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
523         * locale/programs/ld-collate.c (collate_read): If ignore_content
524         and nowtok is tok_define, eat any tok_eol tokens.
526 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
528         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
529         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
531         * inet/netinet/in.h: Don't include bits/socket.h.
532         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
533         macro.
534         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
536 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
538         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
539         and tok_elifndef.
540         * locale/programs/locfile-kw.gperf: Likewise.
541         * locale/programs/ld-collate.c: Implement primitive preprocessor.
543 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
545         * stdio-common/printf-parse.h: Include string.h and wchar.h.
546         (__find_specwc): Change into __extern_always_inline function.
547         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
548         (__parse_one_specmb): Remove ps argument.
549         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
550         Adjust __find_specmb and __parse_one_specmb callers.
551         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
552         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
553         Removed.
554         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
555         caller.
557 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
559         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
560         with some Pentium Ds.
562 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
564         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
565         __read not read.
566         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
567         __write not write.
569 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
571         [BZ #181]
572         * locale/C-time.c: Set week_1stday data to 19971201.
573         * locale/programs/ld-time.c (time_finish): Default for
574         first_workday is Monday.
576         [BZ #2633]
577         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
579         [BZ #5103]
580         * posix/glob.c (glob): Recognize patterns starting \/.
581         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
582         (main): Add test for pattern starting \/.
584         * misc/error.h: Use __const instead of const.
585         * misc/bits/error.h: Likewise.
587 2007-10-07  Andreas Jaeger  <aj@suse.de>
589         * include/bits/error.h: New file.
591         * misc/bits/error.h (error_at_line): Fix prototype.
593 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
595         [BZ #3924]
596         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
597         more little bugs in creating the stack frame when pltexit has to
598         be called.
600         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
601         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
603         [BZ #4407]
604         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
605         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
606         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
607         * math/libm-test.inc: Add test for this case.
609         [BZ #5010]
610         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
611         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
612         map service succeeded.
613         (svc_is_mapped): New function.
614         (svc_unregister): Use it before trying to unmap service.
616 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
618         * timezone/zic.c: Update from tzcode2007h.
620         [BZ #5063]
621         * timezone/africa: Update from tzdata2007h.
622         * timezone/antarctica: Likewise.
623         * timezone/asia: Likewise.
624         * timezone/australasia: Likewise.
625         * timezone/europe: Likewise.
626         * timezone/leapseconds: Likewise.
627         * timezone/northamerica: Likewise.
628         * timezone/southamerica: Likewise.
629         * timzeone/zone.tab: Likewise.
631         [BZ #5104]
632         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
634         [BZ #5113]
635         * string/bits/string2.h (__strdup): Cast parameters to calloc to
636         avoid warning with -Wconversion.
637         (__strndup): Likewise.
638         Half the patch by Christian Iseli <christian.iseli@licr.org>.
640         [BZ #5112]
641         * nscd/connections.c (restart): Don't resync if database is
642         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
644         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
645         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
647         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
648         evetnfd_read, eventfd_write.
649         * sysdeps/unix/sysv/linux/eventfd.c: New file.
650         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
651         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
652         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
653         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
654         eventfd_write for GLIBC_2.7.
656         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
657         * sysdeps/unix/sysv/linux/signalfd.c: New file.
658         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
659         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
661 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
663         * stdlib/msort.c: Include stdint.h.
664         (struct msort_param): New type.
665         (msort_with_tmp): Use struct msort_param pointer for unchanging
666         parameters.  Add optimized handling for several common sizes
667         and indirect sorting mode.
668         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
669         sorting.
670         Suggested by Belazougui Djamel .
672         * stdlib/Makefile (tests): Add tst-qsort2.
673         * stdlib/tst-qsort2.c: New test.
675 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
677         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
678         for dup2 in case another thread races with the current one.  Retry
679         in this case.
681         * misc/error.h: Remove support for use outside of libc.  We have to
682         include <features.h> now.  Include <bits/error.h> if possible.
683         * misc/bits/error.h: New file.
685 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
687         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
688         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
689         __extern_always_inline functions unconditionally, drop macros.
691         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
692         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
693         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
695         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
696         add __artificial__ attribute.
698 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
700         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
701         backward to forward direction.
703         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
705         [BZ #645]
706         * locale/programs/ld-collate.c (collate_finish): Compare against last
707         used section which is known to have rules defined.
708         (collate_read): After order_start, correctly record order of sections
709         and queue sections up.
711 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
713         [BZ #5071]
714         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
715         the same number of pages.
716         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
718         * locale/programs/ld-collate.c (collate_read): After initial copy
719         statement, continue in state 0.
721         * include/stdio_ext.h (__fsetlocking): Define as macro.
723 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
725         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
726         of section order.
728         * po/pt_BR.po: Fix typo.
730 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
732         * iconvdata/Makefile (modules): Add ISO8859-9E.
733         (distribute): Add iso8859-9e.c.
734         (gen-8bit-gap-modules): Add iso8859-9e.
735         * iconvdata/iso8859-9e.c: New file.
736         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
737         * iconvdata/TESTS: Likewise.
738         * iconvdata/tst-tables.sh: Likewise.
740         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
742         * locale/iso-639.def: Add several new entries.
744 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
746         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
747         void * pointers instead of struct link_map **.
748         (_dl_scope_free): Change argument type to void *.
749         * include/link.h (struct link_map): Change type of l_reldeps
750         to struct link_map_reldeps, move l_reldepsact into that
751         struct too.
752         * elf/dl-deps.c: Include atomic.h.
753         (_dl_map_object_deps): Only change l->l_initfini when it is
754         fully populated, use _dl_scope_free for freeing it.  Optimize
755         removal of libs from reldeps by using l_reserved flag, when
756         some removal is needed, allocate a new list instead of
757         reallocating and free the old with _dl_scope_free.  Adjust
758         for l_reldeps and l_reldepsact changes.
759         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
760         searching in l_initfini and l_reldeps without holding dl_load_lock.
761         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
762         l_reldepsact changes.
763         * elf/dl-close.c (_dl_close_worker): Likewise.
764         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
766 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
768         * iconvdata/Makefile (modules): Add KOI8-RU.
769         (distribute): Add koi8-ru.c.
770         (gen-8bit-gap-modules): Add koi8-ru.
771         * iconvdata/koi8-ru.c: New file.
772         * iconvdata/gconv-modules: Add entries for KOI8-RU.
773         * iconvdata/TESTS: Likewise.
774         * iconvdata/tst-tables.sh: Likewise.
776         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
778 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
780         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
781         with __warning__/__error__ attributes.
782         (__warnattr): Define.
783         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
784         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
785         __warnattr.
786         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
787         of __*_chk if compile time detectable overflow is found.
788         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
789         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
790         with __warnattr.
791         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
792         instead of __*_chk if compile time detectable overflow is found.
793         (__gets_alias): Rename to...
794         (__gets_warn): ... this.  Add __warnattr.
795         (gets): Call __gets_warn instead of __gets_alias.
796         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
797         aliases with __warnattr.
798         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
799         time detectable overflow is found.
800         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
801         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
802         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
803         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
804         __getdomainname_chk_warn): New aliases with __warnattr.
805         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
806         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
807         __*_chk_warn instead of __*_chk if compile time detectable overflow
808         is found.
809         (__getgroups_chk): Rename argument to __listlen from listlen.
810         (__getwd_alias): Rename to...
811         (__getwd_warn): ... this.  Add __warnattr.
812         (getwd): Call __getwd_warn instead of __getwd_alias.
813         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
814         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
815         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
816         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
817         __wcsnrtombs_chk_warn): New aliases with __warnattr.
818         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
819         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
820         compile time detectable overflow is found.
821         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
822         to use __*_chk or not.
823         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
824         in comparisons which function should be called and in __*_chk*
825         arguments.  Call __*_chk_warn instead of __*_chk if compile time
826         detectable overflow is found.
827         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
828         __*_chk argument.
829         * debug/tst-chk1.c (do_test): Add a few more tests.
831 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
833         [BZ #5058]
834         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
835         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
836         (_nl_unload_domain): Finalize conversions_lock.
837         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
838         handling table of known conversions.
840 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
842         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
843         close_not_cancel_no_status instead of close.
845 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
847         [BZ #5028]
848         * posix/regcomp.c (lookup_collation_sequence_value): Check that
849         nrules != 0 for multibyte chars.
851 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
853         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
854         Provide better error message in case the type is unknown.
856         [BZ #4963]
857         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
858         * string/stratcliff.c: Make usable to test wide char functions.
859         * wcsmbs/wcsatcliff.c: New file.
860         * wcsmbs/Makefiel (tests): Add wcsatcliff.
862         [BZ #4972]
863         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
864         (distribute): Add mac-centraleurope.c.
865         (gen-8bit-gap-modules): Add mac-centraleurope.
866         * iconvdata/mac-centraleurope.c: New file.
867         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
868         * iconvdata/TESTS: Likewise.
869         * iconvdata/tst-tables.sh: Likewise.
871         [BZ #5043]
872         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
874 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
876         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
877         from __x86_64_core_cache_size_half.
878         (init_cacheinfo): Compute shared cache size for AMD processors with
879         shared L3 correctly.
880         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
881         name change.
882         Patch in large parts by Evandro Menezes.
884 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
886         * elf/dl-lookup.c (add_dependency): Handle failing memory
887         allocation for dependency list.  Remove unnecessary check.
889         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
890         open/close when determining source addresses.
892         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
893         sha512-crypt, and sha512.
894         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
895         (distribute): Add sha256.h and sha512.h.
896         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
897         and call the appropriate code.
898         * crypt/sha256-crypt.c: New file.
899         * crypt/sha256.c: New file.
900         * crypt/sha256.h: New file.
901         * crypt/sha256c-test.c: New file.
902         * crypt/sha256test.c: New file.
903         * crypt/sha512-crypt.c: New file.
904         * crypt/sha512.c: New file.
905         * crypt/sha512.h: New file.
906         * crypt/sha512c-test.c: New file.
907         * crypt/sha512test.c: New file.
909 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
911         * misc/bits/syslog.h (syslog): Remove extraneous argument from
912         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
913         __syslog_chk.
915 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
917         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
918         %as in fscanf format strings.
920         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
921         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
922         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
923         Likewise.
924         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
925         Likewise.
927         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
928         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
929         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
930         * elf/dl-sym.c (do_sym): Likewise.
931         * include/link.h (struct link_map): Add l_serial field.
932         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
933         * elf/dl-lookup.c (add_dependency): Add flags argument.
934         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
935         flags, use THREAD_GSCOPE_RESET_FLAG before and
936         THREAD_GSCOPE_SET_FLAG after
937         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
938         Don't dereference map until it has been found on some list.
939         If map->l_serial changed, return -1.
941 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
943         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
944         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
945         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
946         libc_hidden_proto.
947         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
948         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
949         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
950         add libc_hidden_proto.
951         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
952         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
953         conformance requested.
954         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
955         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
956         conformance requested.
957         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
958         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
959         conformance requested.
960         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
961         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
962         ISO C99 or POSIX conformance requested.
963         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
964         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
965         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
966         and __isoc99_vsscanf@@GLIBC_2.7.
967         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
968         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
969         (tests): Add scanf14.
970         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
971         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
972         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
973         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
974         CFLAGS-isoc99_scanf.c): Add $(exceptions).
975         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
976         from using internal headers.
977         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
978         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
979         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
980         and __isoc99_vswscanf@@GLIBC_2.7.
981         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
982         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
983         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
984         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
985         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
986         * stdio-common/isoc99_scanf.c: New file.
987         * stdio-common/isoc99_vsscanf.c: New file.
988         * stdio-common/isoc99_vscanf.c: New file.
989         * stdio-common/isoc99_vfscanf.c: New file.
990         * stdio-common/isoc99_fscanf.c: New file.
991         * stdio-common/isoc99_sscanf.c: New file.
992         * wcsmbs/isoc99_fwscanf.c: New file.
993         * wcsmbs/isoc99_vswscanf.c: New file.
994         * wcsmbs/isoc99_swscanf.c: New file.
995         * wcsmbs/isoc99_wscanf.c: New file.
996         * wcsmbs/isoc99_vwscanf.c: New file.
997         * wcsmbs/isoc99_vfwscanf.c: New file.
998         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
999         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
1000         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
1001         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
1002         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
1003         * stdio-common/scanf14.c: New test.
1004         * stdio-common/scanf15.c: New test.
1005         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
1006         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
1007         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
1008         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
1009         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
1010         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
1011         __nldbl___isoc99_scanf@@GLIBC_2.7,
1012         __nldbl___isoc99_fscanf@@GLIBC_2.7,
1013         __nldbl___isoc99_sscanf@@GLIBC_2.7,
1014         __nldbl___isoc99_vscanf@@GLIBC_2.7,
1015         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
1016         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
1017         __nldbl___isoc99_wscanf@@GLIBC_2.7,
1018         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
1019         __nldbl___isoc99_swscanf@@GLIBC_2.7,
1020         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
1021         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
1022         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
1023         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
1024         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
1025         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
1026         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
1027         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
1028         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1029         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
1030         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
1031         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
1032         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
1033         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
1034         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
1035         functions.
1036         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
1037         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
1038         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
1039         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
1040         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
1041         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
1042         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
1043         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
1044         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
1045         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
1046         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
1047         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
1049         * stdio-common/Makefile (tests): Add scanf13.
1050         (scanf13-ENV): New.
1051         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
1052         m modifier followed by l.
1053         (STRING_ARG): Add width argument.
1054         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
1055         <case L_('C')>: Handle %mlc and %mC.
1056         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
1057         arguments.
1058         * stdio-common/scanf13.c: New test.
1060         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
1061         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
1063 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
1065         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
1066         type and __THROW marker of splice, vmsplice, and tee.
1067         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1068         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1069         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1070         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1071         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1072         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1073         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
1074         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
1075         as cancellation points.
1077 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
1079         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
1080         parse more than three parts of the version number.
1082 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
1084         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
1085         modifier.  Patch by Jakub Jelinek.
1087 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
1089         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
1090         call_fallocate in misc subdir.
1091         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
1092         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
1093         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
1094         instead of __fallocate64.
1095         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
1097 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
1099         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
1100         * rt/Makefile (headers): Add bits/mqueue2.h.
1101         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
1102         optimizing with GCC and __va_arg_pack_len is defined.
1103         * rt/bits/mqueue2.h: New file.
1104         * rt/mq_open.c (__mq_open): Renamed from mq_open.
1105         (mq_open): New strong_alias.
1106         (__mq_open_2): New function.
1107         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
1108         (mq_open): New strong_alias.
1109         (__mq_open_2): New function.
1110         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
1111         * Versions.def (librt): Add GLIBC_2.7 version.
1112         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
1113         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
1115         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
1116         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
1117         is defined rather than when not C++.
1118         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
1119         __openat64_alias): New redirects.
1120         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
1121         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
1122         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
1123         (open, open64, openat, openat64): Rewrite as __extern_always_inline
1124         functions instead of function-like macros.
1126 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
1128         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
1129         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
1130         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
1132 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
1134         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
1135         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
1137 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
1139         * inet/tst-network.c: Increment ERRORS for failing tests.
1141 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
1143         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
1144         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
1145         implement as __extern_always_inline function.
1146         (vsyslog): Define as __extern_always_inline function unconditionally.
1147         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
1148         When __va_arg_pack is defined, implement as __extern_always_inline
1149         functions.
1150         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
1151         __extern_always_inline functions unconditionally.
1152         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
1153         bits/stdio2.h will be included.
1154         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
1155         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
1156         implement as __extern_always_inline functions.
1157         (vswprintf, vwprintf, vfwprintf): Define as
1158         __extern_always_inline functions unconditionally.
1159         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
1161 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
1163         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
1164         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
1165         attribute.
1166         * include/features.h (__USE_EXTERN_INLINES): Define only when
1167         __extern_inline is defined.
1168         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
1169         is defined instead of when not __cplusplus.
1170         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
1171         is defined instead of when not __cplusplus.
1172         * socket/sys/socket.h: Include bits/socket2.h when
1173         __extern_always_inline is defined instead of when not __cplusplus.
1174         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
1175         is defined instead of when not __cplusplus.
1176         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
1177         is defined instead of when not __cplusplus.
1178         * string/string.h: Include bits/string3.h when __extern_always_inline
1179         is defined instead of when not __cplusplus.
1180         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
1181         is defined instead of when not __cplusplus.
1182         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
1183         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
1184         is not defined.
1185         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
1186         defined __extern_always_inline instead of !defined __cplusplus.
1187         * libio/bits/stdio-ldbl.h: Likewise.
1188         * wcsmbs/bits/wchar-ldbl.h: Likewise.
1189         * misc/bits/syslog.h (syslog): Don't define for C++.
1190         (vsyslog): Use __extern_always_inline function for C++ instead of
1191         a macro.
1192         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
1193         whenever that macro is defined.
1194         (vprintf): Don't provide the inline for C++.
1195         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
1196         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
1197         define the macros for C++.
1198         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
1199         __extern_always_inline functions for C++.
1200         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
1201         stat64, lstat64, fstat64, fstatat64): Don't define if not
1202         __USE_EXTERN_INLINES.
1203         * wcsmbs/bits/wchar2.h: Fix #error message.
1204         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
1205         (vswprintf, vwprintf, vfwprintf): Define using
1206         __extern_always_inline functions for C++.
1207         * string/bits/string3.h: Don't #undef macros if __cplusplus.
1208         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
1209         strncpy, strcat, strncat): Define as __extern_always_inline
1210         functions instead of macros for C++.
1211         * math/bits/cmathcalls.h: Guard __extern_inline routines with
1212         defined __extern_inline.
1213         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
1214         to __extern_inline whenever that macro is defined.
1215         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
1216         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
1217         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
1218         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
1219         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
1220         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
1221         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
1222         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
1223         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
1224         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
1225         prototypes.  Only provide __extern_inline routines if
1226         __USE_EXTERN_INLINES.
1227         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
1228         tests.
1229         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
1230         For now avoid some *printf tests in C++.  Skip all testing
1231         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
1232         is not.
1233         * debug/tst-chk4.cc: New file.
1234         * debug/tst-chk5.cc: New file.
1235         * debug/tst-chk6.cc: New file.
1236         * debug/tst-lfschk4.cc: New file.
1237         * debug/tst-lfschk5.cc: New file.
1238         * debug/tst-lfschk6.cc: New file.
1239         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
1240         prototypes in C++.
1241         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
1242         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
1243         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
1245 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
1247         * po/cs.po: Update from translation team.
1249 2007-09-11  Roland McGrath  <roland@redhat.com>
1251         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
1252         compiling.
1254 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1256         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
1258 2007-09-05  Roland McGrath  <roland@redhat.com>
1260         * manual/signal.texi (Signaling Another Process): Typo fix.
1261         From Karl Berry <karl@freefriends.org>.
1263 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
1265         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
1266         zero if not defined.
1267         (make_request): Recognize optimistic addresses and treat them like
1268         deprecated addresses.
1269         Reported by Neil Horman <nhorman@redhat.com>.
1271 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
1273         * nscd/connections.c (send_ro_fd): Also transfer file size.
1274         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
1275         file size don't call fstat.
1277         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
1278         ahead and map the file.  This should always be correct and we can
1279         catch problems later.
1281 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
1283         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
1284         prototypes.
1285         (__fread_alias, __fread_unlocked_alias): New aliases.
1286         (fread): New extern inline.
1287         (fread_unlocked): Likewise.  Undef macro before definition of
1288         the inline function.
1289         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
1290         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
1291         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
1292         and __fread_unlocked_chk@@GLIBC_2.7.
1293         * debug/fread_chk.c: New file.
1294         * debug/fread_u_chk.c: New file.
1295         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
1297 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
1299         * sysdeps/unix/sysv/linux/syscalls.list
1300         (personality): Change caller to EXTRA.
1302 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
1304         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
1305         to keep gcc quiet.
1306         * iconvdata/iso-2022-cn.c (BODY): Likewise.
1308         * locale/programs/ld-collate.c (collate_output): Avoid warning if
1309         NDEBUG is defined.
1311         * Makerules: Use -p option with mkdir.
1313         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
1314         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
1315         (_xdr_directory_obj): Likewise.
1316         (xdr_entry_obj): Likewise.
1317         (xdr_group_obj): Likewise.
1318         (xdr_link_obj): Likewise.
1319         (xdr_table_obj): Likewise.
1320         (_xdr_nis_result): Likewise.
1321         (_xdr_ns_request): Likewise.
1322         (_xdr_ib_request): Likewise.
1323         (_xdr_nis_taglist): Likewise.
1324         (xdr_cback_data): Likewise.
1325         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
1326         (xdr_ypresp_maplist): Likewise.
1328         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
1330         * posix/regex_internal.h: Prevent some declarations and definitions
1331         to be seen when used in tests.
1333         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
1334         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
1336         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
1338         * config.make.in (datarootdir): Add to shut up configure.
1340         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
1341         associativity for fully-associative caches.
1343         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
1344         requests.  Fill on more associativity values for L2.
1345         Patch mostly by Evandro Menezes.
1347 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
1349         * sysdeps/unix/sysv/linux/x86_64/init-first.c
1350         (_libc_vdso_platform_setup): Avoid using exported variable by using
1351         alias.
1353         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
1355         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
1356         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
1357         defined.
1359 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
1361         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
1362         align stack for call if pltexit is to be used.
1364         [BZ #3924]
1365         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
1366         align for function call in case pltexit has to be called later.
1368         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
1369         implicit atomic operation when storing function pointer.
1370         (_dl_runtime_profile): Likewise.
1372 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
1374         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
1375         NIS_NOTFOUND.
1377 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
1379         [BZ #4566]
1380         * string/strtok.c: Fix typo in comment.
1382         [BZ #4582]
1383         * debug/segfault.c: Fix typos in comments.
1385         [BZ #4588]
1386         * stdio-common/tempnam.c: Fix comment, it is not checked that
1387         TMPDIR points to a writable directory.
1389         [BZ #4726]
1390         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
1391         memory allocated for the name server address.
1393         [BZ #4946]
1394         * nscd/connections.c (handle_request): Using sendfile always
1395         requires that mmap is used for the database.
1396         Patch by Petr Baudis <pasky@suse.cz>.
1398         [BZ #4905]
1399         * nscd/hstcache.c (cache_addhst): When reloading an entry which
1400         suddenly has two or more addresses, ignore it and remove the old
1401         entry.
1403         [BZ #4814]
1404         * resolv/res_hconf.c: Prepare for compiling outside libc.
1405         * nscd/res_hconf.c: New file.
1406         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
1407         the new file.
1408         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
1409         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
1411         * nscd/hstcache.c (cache_addhst): Minimal optimization.
1413         [BZ #4925]
1414         * debug/pcprofiledump.c: Turn on internationalization by calling
1415         setlocale.  Patch mostly by Benno Schulenberg.
1417         [BZ #4936]
1418         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
1419         the state.
1420         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
1421         * iconvdata/bug-iconv5.c: New file.
1423 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
1425         [BZ #4896]
1426         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
1427         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
1428         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
1429         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
1430         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
1431         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
1432         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
1433         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
1435 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
1437         [BZ #4937]
1438         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
1439         lookup loop.  Suggested by John Reiser.
1441 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
1443         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
1445 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
1447         * csu/libc-start.c: Don't handle VDSO_SETUP here.
1448         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
1449         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
1450         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
1451         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
1452         to...
1453         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
1455 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
1457         * po/nl.po: Update from translation team.
1459 2007-08-16  Andreas Jaeger  <aj@suse.de>
1461         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
1462         Reported by Peter Festner <peter.festner@ewetel.net>.
1464 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
1466         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
1468 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
1470         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
1471         to check for undefined symbols.
1473         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
1474         If the syscall fails, set errno to the actual returned error number
1475         rather than EINVAL.
1476         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
1477         arguments are incorrect, set errno to EINVAL, if the syscall
1478         fails, set errno to the actual returned error number.
1480         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
1481         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
1483         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
1484         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
1485         file.
1486         (ASI_PNF, ASI_BLK_P): Don't define.
1487         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
1488         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
1489         file.
1490         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
1491         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
1492         file.
1494 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
1496         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
1497         FE_UNDERFLOW on Niagara CPUs.
1499         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
1500         exceptions.
1502 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
1504         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
1505         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
1506         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
1507         flush should be used or not inside of the function.
1508         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
1510         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
1511         __thread_start): Use HIDDEN_JUMPTARGET.
1512         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
1513         __thread_start): Likewise.
1514         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
1516         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
1517         Add libc_hidden_proto.
1518         (STRTOF): Add libc_hidden_proto.
1519         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
1520         (strtold_l, wcstold_l): Use them as second argument for
1521         long_double_symbol.
1523 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
1525         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
1527 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1529         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
1531 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
1533         * po/bg.po: New file.  From the translation team.
1535 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
1537         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
1538         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
1539         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
1540         when each feature was introduced.
1542         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
1543         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
1544         (CHECK_HASH): New macro.
1545         (PREPARE_VERSION): Use it.
1547         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
1548         prototype if not __ASSUME_PSELECT.
1549         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
1550         prototype if not __ASSUME_PPOLL.
1552         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
1554         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
1555         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
1556         is defined.
1558 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
1560         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
1561         (_libc_vdso_platform_setup): If vDSO is not available point
1562         __vdso_gettimeofday to the vsyscall.
1563         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
1564         __vdso_gettimeofday instead of vsyscall.
1566 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
1568         * nscd/servicescache.c: Include kernel-features.h.
1569         * nscd/gai.c: Likewise.
1570         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
1571         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
1572         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1573         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
1574         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
1575         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
1576         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
1577         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
1578         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
1580 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
1582         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
1583         and _dl_get_origin defines anymore.
1585         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
1586         Build fix for systems which might lack POSIX timer support.
1588         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
1589         (_libc_vdso_platform_setup): Mangle function pointers before storing
1590         them.
1591         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
1592         Demangle vdso pointer before use.
1593         (INTERNAL_VSYSCALL): Likewise.
1595         * elf/cache.c (primes): Mark as const.
1596         Noted by Roland McGrath.
1598 2007-08-01  Andreas Jaeger  <aj@suse.de>
1599             Jakub Jelinek  <jakub@redhat.com>
1601         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
1602         (options): Add option.
1603         (parse_opt): Handle option.
1604         (manual_link): Adjust process_file caller.  Call implicit_soname.
1605         (search_dir): Formatting.  Use and populate auxiliary cache.
1606         (main): Load and save auxiliary cache.
1607         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
1608         stat64 from fstat64 to caller.
1609         (implicit_soname): New function.
1610         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
1611         leave *soname as NULL.
1612         * elf/cache.c: Include libgen.h.
1613         (print_entry, print_cache, compare, save_cache, add_to_cache):
1614         Formatting and cleanups.
1615         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
1616         aux_cache_file): New structures.
1617         (AUX_CACHEMAGIC): Define.
1618         (primes): New array.
1619         (aux_hash_size, aux_hash): New variables.
1620         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
1621         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
1622         load_aux_cache, save_aux_cache): New functions.
1623         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
1624         (init_aux_cache, search_aux_cache, add_to_aux_cache,
1625         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
1626         (process_file): Adjust prototype.
1628 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
1630         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
1631         with __need_size_t.
1633 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
1635         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
1636         r_found_version structure as second parameter.
1637         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
1638         (_dl_vdso_vsym): Change type of second parameter accordingly.
1639         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
1640         (_libc_vdso_platform_setup): Adjust.
1641         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
1642         (_libc_vdso_platform_setup): Likewise.
1644         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
1645         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
1646         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
1647         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
1648         * csu/libc-start.c: Pretty printing.
1649         Use VDSO_SETUP if defined.
1650         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
1651         and let generic code call into _libc_vdso_platform_setup.
1652         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
1653         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
1654         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
1655         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
1656         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
1657         for GLIBC_PRIVATE.
1658         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
1659         (sysdep_rountines): Add dl-vdso.
1661         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
1662         of routines.
1664         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
1665         attribute_hidden to __vdso_gettimeofday prototype.
1667 2007-08-12  Roland McGrath  <roland@redhat.com>
1669         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
1670         From: Karl Berry <karl@freefriends.org>.
1672 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
1674         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
1675         an atime update for the files we read.
1677 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
1679         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
1681         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
1682         instead of mkstemp.
1684         * misc/Makefile (routines): Add mkostemp and mkostemp64.
1685         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
1686         * misc/mkostemp.c: New file.
1687         * misc/mkostemp64.c: New file.
1688         * stdlib/stdlib.h: Declare the new functions.
1689         * sysdeps/posix/tempname.c: Add new parameter which is added to
1690         the flags for open.  Remove __GT_BIGFILE handling.
1691         * stdio-common/tempname.c: Likewise.
1692         * include/stdio.h: Adjust __gen_tempname prototype.
1693         Renumber __GT_* constants.
1694         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
1695         * misc/mkdtemp.c: Likewise.
1696         * misc/mkstemp.c: Likewise.
1697         * misc/mkstemp64.c: Likewise.
1698         * misc/mktemp.c: Likewise.
1699         * stdio-common/tempnam.c: Likewise.
1700         * stdio-common/tmpfile.c: Likewise.
1701         * stdio-common/tmpfile64.c: Likewise.
1702         * stdio-common/tmpnam.c: Likewise.
1703         * stdio-common/tmpnam_r.c: Likewise.
1705 2007-08-10  Roland McGrath  <roland@frob.com>
1707         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
1708         New macros.
1709         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
1710         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
1712 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
1714         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
1715         possible.
1716         * nss/nss_files/files-alias.c (internal_setent): Likewise.
1717         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
1718         * nss/nss_files/files-have_o_cloexec.c: New file.
1720         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
1721         available.
1723 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
1725         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
1726         ___new_wcstold_l): New weak aliases.
1727         (strtold_l, wcstold_l): Use them as second argument for
1728         long_double_symbol.
1730 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
1732         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
1733         register in test for error.
1735         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
1736         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
1738         * po/sv.po: Update from translation team.
1740 2007-08-06  Roland McGrath  <roland@redhat.com>
1742         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
1743         Remove __strto*_l inlines.
1744         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
1745         * stdlib/strtod.c: Add libc_hidden_def.
1746         * stdlib/strtod_l.c: Likewise.
1747         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
1748         for __new_strtold and __new_wcstold.
1749         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
1750         __STRTOF, STRTOF.
1751         * stdlib/strtol.c: Add libc_hidden_def.
1752         * stdlib/strtol_l.c: Likewise.
1753         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
1754         strtoq.
1756         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
1758         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
1759         * scripts/data/localplt-generic.data: ... here.
1760         * elf/Makefile (check-data): Get generic file if no other.
1761         ($(objpfx)check-localplt.out): Make target unconditional.
1763         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
1764         Use ElfW(Nhdr).
1766 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
1768         * po/zh_CN.po: Updated translation from translation team.
1770 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
1772         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
1773         Don't use CGOTSETUP and CGOTRESTORE macros.
1775 2007-08-04  Roland McGrath  <roland@redhat.com>
1777         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
1779 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
1781         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
1782         __extension__ around the whole statement expression.
1784 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
1786         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
1787         elements during initialization.
1789         * po/pl.po: Updated translation from translation team.
1790         * po/tr.po: Likewise.
1791         * po/nl.po: Likewise.
1793 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
1795         * rt/aio.h: Add __nonnull attributes.
1797 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
1799         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
1800         * stdlib/Makefile (tests): Add tst-strtod5.
1801         (tst-strtod5-ENV): New.
1802         * stdlib/tst-strtod5.c: New file.
1804         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
1805         failed.
1806         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
1807         on failure.
1809         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
1810         allocated.
1812 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
1814         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
1815         numbers.
1817 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
1819         * io/Makefile (aux): Add have_o_cloexec.
1820         * include/fcntl.h: Declare __have_o_cloexec.
1821         * io/have_o_cloexec.c: New file.
1822         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
1823         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
1824         fcntl call if not necessary.
1825         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
1826         of local variable.
1828         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
1829         Avoid memset, add explicit initialization.
1830         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
1831         to the end and change into zero-sized array.
1832         Move lock member to fill a hole on 64-bit platforms.
1834         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
1835         inline functions.
1836         * include/stdlib.h: Add __strto*_internal prototypes here.
1837         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
1838         inline functions.
1839         * include/wchar.h: Add __wcsto*_internal prototypes.
1840         * sysdeps/generic/inttypes.h: No need to protect the declaration
1841         of the __strto*_internal and __wcsto*_internal members here.
1843         * rt/mqueue.h: Change const to __const and add nonnull attributes.
1845 2007-08-02  Roland McGrath  <roland@redhat.com>
1847         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
1848         $(inst_bindir)/getconf if possible.
1850         * posix/Makefile ($(objpfx)getconf.speclist): New target.
1851         (generated): Add it.
1852         ($(inst_libexecdir)/getconf): Use it.
1854 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
1856         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
1857         /proc is faster and sufficient.  /sys is still needed for
1858         __get_nprocs_conf.
1860 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
1862         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
1863         syscall as __fallocate64.
1864         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
1865         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
1867 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
1869         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
1870         value.
1872         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
1873         if off_t is different rank from size_t.
1875         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
1876         uw_frame_state_for): Avoid type punning warnings.
1877         * sysdeps/generic/unwind-dw2-fde-glibc.c
1878         (_Unwind_IteratePhdrCallback): Likewise.
1879         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
1880         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
1881         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
1882         pointers.
1884 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
1886         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
1887         total processors using sysfs.
1888         (__get_nprocs): Use sysfs to determine which processors are online.
1890 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
1892         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
1893         syscall arguments count.
1895         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
1897 2007-07-30  Roland McGrath  <roland@redhat.com>
1899         * manual/libc.texinfo: Update copyrights, formatting magic, and
1900         @dircategory.  From Karl Berry <karl@freefriends.org>.
1902 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
1904         [BZ #4860]
1905         * io/Makefile (headers): Add bits/fcntl2.h.
1907         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
1908         using gcc builtin.
1909         (__CPU_EQUAL_S): Likewise.
1911         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
1912         (tests): Add tst-cpuset.
1913         * posix/sched_cpualloc.c: New file.
1914         * posix/sched_cpufree.c: New file.
1915         * posix/tst-cpuset.c: New file.
1916         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
1917         GLIBC_2.7.
1918         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
1919         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
1920         macros.  Define CPU_*_S macros.
1922 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
1924         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
1925         entry.
1927         [BZ #4858]
1928         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
1929         #.0g and value rounded to 1.0.
1930         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
1932 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
1934         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
1935         for int_frac_digits and frac_digits.
1937         * login/logout.c (logout): Avoid aliasing violation.
1938         * login/logwtmp.c (logwtmp): Likewise.
1940         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
1942         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
1943         to avoid warning.
1944         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
1945         warning.
1946         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
1947         warning.
1948         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
1949         to avoid warnings.
1951         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
1952         void **.
1953         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
1955         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
1956         char * to avoid warning.
1957         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
1959         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
1961         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
1962         allocate_arrays): Cast second argument to charmap_find_symbol
1963         to char * to avoid warnings.
1965         * locale/programs/repertoire.c (repertoire_new_char): Change
1966         from_nr, to_nr and cnt to unsigned long, adjust printf format
1967         string.
1969         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
1970         Cast second argument to new_element to char * to avoid warnings.
1972         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
1974         * intl/gettextP.h (struct loaded_domain): Change plural to const
1975         struct expression *.
1976         * intl/plural-eval.c (plural_eval): Change first argument to
1977         const struct expression *.
1978         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
1979         argument to const struct expression **.
1980         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
1981         prototypes.
1982         * intl/loadmsgcat (_nl_unload_domain): Cast away const
1983         in call to __gettext_free_exp.
1985         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
1986         unitialized wstring/wpattern var warnings.
1988         * posix/runtests.c (struct a_test): Make data field const char *.
1990         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
1991         vars if not LDBL_MANT_DIG >= 106.
1993         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
1995         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
1996         __find_specmb to avoid warning.
1998         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
2000         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
2001         to avoid warnings.
2003         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
2004         initializer.
2006         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
2007         tv var when it will be actually used.
2009         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
2010         to avoid warnings.
2012         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
2013         char array resp. pointer.
2014         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
2015         char array.
2016         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
2017         to const unsigned char **.
2018         (ucs4_to_cns11643): Change second argument to unsigned char *.
2019         * iconvdata/euc-tw.c (BODY): Change endp type to
2020         const unsigned char *.
2021         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
2022         to unsigned char *.
2023         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
2024         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
2025         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
2026         types to unsigned char pointers/arrays instead of char.
2027         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
2028         to unsigned char *.
2029         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
2030         * iconvdata/jis0212.h: Include assert.h.
2031         (ucs4_to_jisx0212): Change second argument to unsigned char *.
2032         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
2033         of trying to handle that.
2034         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
2035         shut up a warning.
2036         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
2037         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
2038         two dimensional const unsigned char arrays.
2039         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
2040         Initialize endp to inptr to shut up a warning.
2042 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
2044         [BZ #4772]
2045         * time/strptime_l.c (__strptime_internal): Silently ignore
2046         strftime modifiers and field width in recursive calls.
2048         * include/time.h (enum ptime_locale_status): Remove.
2049         (__strptime_internal): Remove decided and era_cnt arguments,
2050         add statep argument.
2051         * time/strptime_l.c (__strptime_internal): Remove decided
2052         and era_cnt arguments, add statep argument.  Don't recompute
2053         any fields in recursive calls, only update caller's tm
2054         and state, if recursive call fails, don't change tm nor
2055         any state.
2056         (get_alt_number): Adjust.
2057         (recursive): Adjust caller.
2058         (strptime): Likewise.
2059         * time/strptime.c (strptime): Likewise.
2061 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
2063         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
2064         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
2065         if from and to charsets are the same.
2066         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
2067         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
2068         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
2070 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
2072         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
2073         Don't define wint_t when __need_mbstate_t unless it
2074         is necessary.
2075         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
2076         in the typedef if possible.
2077         * wctype/wctype.h (wint_t): Define by including
2078         wchar.h with __need_wint_t instead of including stddef.h
2079         with __need_wint_t and as fallback definining it ourselves.
2080         * iconv/gconv.h (__need_wint_t): Define before including
2081         wchar.h.
2082         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
2083         or _GLIBCPP_USE_WCHAR_T.
2084         (__need_wchar_t): Don't define
2085         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
2086         (__need_wint_t): Don't define before including stddef.h,
2087         define before including wchar.h only if _LIBC or
2088         _GLIBCPP_USE_WCHAR_T.
2089         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
2090         * sysdeps/mach/hurd/_G_config.h: Likewise.
2091         * sysdeps/generic/_G_config.h: Likewise.
2092         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
2093         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
2094         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
2095         if _LIBC or _GLIBCPP_USE_WCHAR_T.
2097 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
2099         * sysdeps/posix/posix_fallocate64.c: Undefine
2100         __posix_fallocate64_l64 before alias handling.
2101         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
2102         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
2103         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
2104         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
2106         * io/tst-posix_fallocate.c: Include <fcntl.h>.
2108 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
2110         * locale/programs/ld-collate.c (atwc): New variable.
2111         (add_to_tablewc): New toplevel function, moved from collate_output.
2112         (collate_output): Remove add_to_tablewc nested function.
2114         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
2115         (name_insert): New function.
2116         (write_output): Remove hash_table and hash_size vars and name_insert
2117         nested function.
2119 2007-07-24  Roland McGrath  <roland@redhat.com>
2121         * Makerules (install-others-programs-nosubdir): New target.
2122         (install-no-libc.a-nosubdir): Depend on it.
2124         * iconv/Makefile (install-others-programs): Set this instead of
2125         install-others.
2126         * login/Makefile (install-others-programs): Likewise.
2127         * posix/Makefile (install-others-programs): Likewise.
2129         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
2130         dependencies.
2132 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
2134         * io/Makefile (tests): Add tst-posix_fallocate.
2135         * io/tst-posix_fallocate.c: New file.
2137         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2138         __ASSUME_FALLOCATE.
2140 2007-07-22  Roland McGrath  <roland@frob.com>
2142         * hurd/getdport.c: Add missing copyright year update.
2144         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
2145         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
2147 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
2149         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
2151         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
2152         O_CLOEXEC is needed.
2153         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
2154         Avoid additional fcntl to set O_CLOEXEC if not needed.
2155         * nis/nss_compat/compat-initgroups.c: Likewise.
2156         * nis/nss_compat/compat-pwd.c: Likewise.
2157         * nis/nss_compat/compat-spwd.c: Likewise.
2159 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2161         [BZ #3665]
2162         * manual/errno.texi: Change ECANCELED value to 119.
2164         [BZ #4610]
2165         * mach/lock-intern.h: Include <sys/cdefs.h>.
2167         [BZ #4178]
2168         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
2169         reading A.
2171         [BZ #4126]
2172         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
2173         to __sigsuspend.
2175         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
2177 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
2179         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
2180         `__ASSEMBLER__'.
2181         * sysdeps/mach/hurd/i386/tls.h: Likewise.
2183 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
2185         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
2186         descriptor received from nscd.
2188         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
2190         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
2191         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
2192         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
2193         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2194         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2195         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2197 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
2199         [BZ #4816]
2200         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
2202         [BZ #4813]
2203         * login/forkpty.c (forkpty): Close master and slave fds on
2204         fork failure.  Patch by
2205         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
2207 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
2209         * include/features.h (__USE_ISOC95): New define.
2210         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
2211         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
2212         for -std=iso9899:199409.
2213         * CONFORMANCE: Remove comments about unsupported AMD1.
2215 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
2217         * sysdeps/ia64/sched_cpucount.c: New file.
2218         * sysdeps/powerpc/sched_cpucount.c: New file.
2220         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
2221         __BEGIN_DECLS/__END_DECLS around the prototype.
2222         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
2223         pointer to const cpu_set_t.
2225         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
2226         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
2227         __need_size_t and include stddef.h.
2228         * sysvipc/sys/msg.h: Likewise.
2229         * posix/sched.h: Likewise.
2230         * hurd/hurd/signal.h (__need_size_t): Define.
2232         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
2233         neither does signal.h in pedantic ISO C namespaces.  stdio.h
2234         no longer defines wint_t or wchar_t.
2236         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
2237         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
2238         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
2239         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
2240         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
2241         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
2242         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
2243         * debug/printf_chk.c (__printf_chk): Likewise.
2244         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
2245         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
2247         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
2248         Define.
2250         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
2251         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
2253 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
2255         [BZ #4792]
2256         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
2257         * malloc/malloc.h (realloc): Likewise.
2259         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
2260         if one of proc_file_chain streams has that fileno.
2261         * stdio-common/Makefile (tests): Add tst-popen2.
2262         * stdio-common/tst-popen2.c: New test.
2264 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
2266         * elf/ldconfig.c: Allow GPLv2 or any later version.
2267         * elf/readlib.c: Likewise.
2268         * elf/chroot_canon.c: Likewise.
2269         * elf/cache.c: Likewise.
2270         * nscd/mem.c: Likewise.
2271         * nscd/getpwuid_r.c: Likewise.
2272         * nscd/grpcache.c: Likewise.
2273         * nscd/aicache.c: Likewise.
2274         * nscd/getsrvbynm_r.c: Likewise.
2275         * nscd/nscd.c: Likewise.
2276         * nscd/servicescache.c: Likewise.
2277         * nscd/getsrvbypt_r.c: Likewise.
2278         * nscd/initgrcache.c: Likewise.
2279         * nscd/gethstbyad_r.c: Likewise.
2280         * nscd/gethstbynm2_r.c: Likewise.
2281         * nscd/getgrnam_r.c: Likewise.
2282         * nscd/nscd_setup_thread.c: Likewise.
2283         * nscd/getpwnam_r.c: Likewise.
2284         * nscd/gai.c: Likewise.
2285         * nscd/connections.c: Likewise.
2286         * nscd/dbg_log.c: Likewise.
2287         * nscd/cache.c: Likewise.
2288         * nscd/hstcache.c: Likewise.
2289         * nscd/nscd_conf.c: Likewise.
2290         * nscd/getgrgid_r.c: Likewise.
2291         * nscd/pwdcache.c: Likewise.
2292         * catgets/gencat.c: Likewise.
2293         * locale/programs/linereader.h: Likewise.
2294         * locale/programs/locarchive.c: Likewise.
2295         * locale/programs/ld-paper.c: Likewise.
2296         * locale/programs/locfile-kw.h: Likewise.
2297         * locale/programs/ld-address.c: Likewise.
2298         * locale/programs/xmalloc.c: Likewise.
2299         * locale/programs/ld-time.c: Likewise.
2300         * locale/programs/localedef.c: Likewise.
2301         * locale/programs/simple-hash.c: Likewise.
2302         * locale/programs/xstrdup.c: Likewise.
2303         * locale/programs/ld-numeric.c: Likewise.
2304         * locale/programs/locfile-kw.gperf: Likewise.
2305         * locale/programs/ld-collate.c: Likewise.
2306         * locale/programs/charmap-kw.gperf: Likewise.
2307         * locale/programs/charmap.h: Likewise.
2308         * locale/programs/charmap-kw.h: Likewise.
2309         * locale/programs/config.h: Likewise.
2310         * locale/programs/locfile.c: Likewise.
2311         * locale/programs/ld-ctype.c: Likewise.
2312         * locale/programs/charmap.c: Likewise.
2313         * locale/programs/ld-messages.c: Likewise.
2314         * locale/programs/repertoire.h: Likewise.
2315         * locale/programs/locale.c: Likewise.
2316         * locale/programs/ld-name.c: Likewise.
2317         * locale/programs/linereader.c: Likewise.
2318         * locale/programs/locfile.h: Likewise.
2319         * locale/programs/3level.h: Likewise.
2320         * locale/programs/ld-monetary.c: Likewise.
2321         * locale/programs/ld-measurement.c: Likewise.
2322         * locale/programs/charmap-dir.c: Likewise.
2323         * locale/programs/ld-identification.c: Likewise.
2324         * locale/programs/localedef.h: Likewise.
2325         * locale/programs/charmap-dir.h: Likewise.
2326         * locale/programs/repertoire.c: Likewise.
2327         * locale/programs/simple-hash.h: Likewise.
2328         * locale/programs/ld-telephone.c: Likewise.
2329         * locale/programs/locale-spec.c: Likewise.
2330         * locale/programs/locfile-token.h: Likewise.
2331         * posix/getconf.c: Likewise.
2332         * iconv/dummy-repertoire.c: Likewise.
2333         * iconv/iconv_charmap.c: Likewise.
2334         * iconv/iconvconfig.c: Likewise.
2335         * iconv/iconv_prog.c: Likewise.
2336         * malloc/memusagestat.c: Likewise.
2337         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
2339 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2341         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
2342         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
2343         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
2344         check for the first argument.
2346 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
2348         [BZ #4775]
2349         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
2350         (__tgmath_real_type): Fix if expr is const int or other const
2351         qualified integral type.
2352         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
2353         expressions and handle const qualified arguments.
2354         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
2355         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
2356         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
2357         statement expressions.
2358         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
2359         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
2360         (__TGMATH_UNARY_IMAG): Define.
2361         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
2362         * math/Makefile (tests): Add test-tgmath2.
2363         (CFLAGS-test-tgmath2.c): Add.
2364         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
2365         count_cfloat, count_cldouble): New variables.
2366         (NCCALLS): Define.
2367         (main): Check number of complex calls as well.
2368         (F(compile_test)): Add complex tests and tests with const qualified
2369         arguments.
2370         (y, z, ccount): Define.
2371         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
2372         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
2373         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
2374         F(cproj)): New functions.
2375         * math/test-tgmath2.c: New test.
2377 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
2379         [BZ #4776]
2380         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
2381         RPATH etc. as "/" rather than "", don't segfault on empty paths,
2382         instead output ".".
2383         * dlfcn/Makefile (distribute): Add glreflib3.c.
2384         (module-names): Add glreflib3.
2385         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
2386         glreflib1.so.
2387         (LDFLAGS_glreflib3.so): New.
2388         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
2389         glreflib1.so.
2390         * dlfcn/glreflib3.c: New file.
2392         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
2393         returned -1, return NULL.
2394         * intl/explodename.c (_nl_explode_name): Return -1 if
2395         _nl_normalize_codeset failed.
2397 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
2399         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
2400         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
2401         and avoid branch misspredicts for > 31 bytes memset case.
2402         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
2403         Remove toc ref to __cache_line_size.
2405         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
2406         to get ISA-V2.0 branch hints.
2407         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
2408         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
2409         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
2410         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
2411         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
2412         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
2413         Remove toc ref to __cache_line_size.
2415         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
2416         Include math_ldbl_opt.h.
2418 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
2420         [BZ #4773]
2421         * time/strptime_l.c (__strptime_internal): Implement greedy
2422         matching of weekday and month names.
2424 2007-07-09  Roland McGrath  <roland@redhat.com>
2426         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
2427         (ELF_NOTE_ABI): Use it.
2428         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
2430 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
2432         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
2433         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2435 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
2437         [BZ #4745]
2438         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
2439         in loop to look for conversion specifier to avoid testing of
2440         wrong errno value.
2441         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
2442         * stdio-common/bug18.c: New file.
2443         * stdio-common/bug18a.c: New file.
2444         * stdio-common/bug19.c: New file.
2445         * stdio-common/bug19a.c: New file.
2447 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
2449         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
2450         running awk script.
2452 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
2454         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
2455         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
2456         Return NULL if mmap failed instead of asserting it does not.
2457         (calloc): Check for integer overflow.
2459         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
2460         than LONG_MAX / 10.
2462 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
2464         [BZ #4702]
2465         * nis/nss-default.c: Include errno.h.
2466         (init): Preserve errno.
2468 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
2470         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
2472 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
2474         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
2476 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2478         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
2480 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2482         * sysdeps/s390/dl-procinfo.c: New file.
2483         * sysdeps/s390/dl-procinfo.h: New file.
2484         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
2486 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
2488         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
2489         in PT_NOTE segments with multiple notes.
2490         * elf/readelflib.c (process_elf_file): Likewise.
2492 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
2494         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
2495         ISO C compliant.
2497 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
2499         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
2501 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
2503         * include/link.h: Don't include rtld-lowlevel.h.
2504         (struct link_map): Remove l_scope_lock.
2505         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
2506         (_dl_scope_free_list): New field (variable) in _rtld_global.
2507         (DL_LOOKUP_SCOPE_LOCK): Remove.
2508         (_dl_scope_free): New prototype.
2509         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
2510         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
2511         (_dl_profile_fixup): Likewise.
2512         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
2513         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
2514         THREAD_GSCOPE_RESET_FLAG around it.
2515         * elf/dl-close.c (_dl_close_worker): Don't use
2516         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
2517         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
2518         scopes were queued or if l_scope_mem has been abandoned.
2519         * elf/dl-open.c (_dl_scope_free): New function.
2520         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
2521         * elf/dl-support.c (_dl_scope_free_list): New variable.
2522         * elf/dl-lookup.c (add_dependency): Remove flags argument.
2523         Remove DL_LOOKUP_SCOPE_LOCK handling.
2524         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
2525         handling.
2526         * elf/dl-object.c (_dl_new_object): Don't use
2527         __rtld_mrlock_initialize.
2529 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
2531         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
2532         to fill in holes
2533         (rtld_global_ro): Likewise.
2535 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
2537         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
2538         Move PT_LOAD checking to...
2539         (_dl_addr_inside_object): ... here, new function.
2540         * elf/dl-sym.c (do_sym): If not l_contiguous,
2541         call _dl_addr_inside_object.
2542         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2543         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
2544         * elf/dl-open.c (dl_open_worker): Likewise.
2545         (_dl_addr_inside_object): New function if IS_IN_rtld.
2546         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
2547         holes are present or are PROT_NONE protected.
2548         * include/link.h (struct link_map): Add l_contiguous field.
2549         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
2551 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
2552             Tomas Janousek  <tjanouse@redhat.com>
2553             Ulrich Drepper  <drepper@redhat.com>
2555         [BZ #4647]
2556         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
2557         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
2558         socket.
2559         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
2560         unused member a bitmap.
2561         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
2562         servers are configured.
2564 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
2566         * elf/rtld.c (dl_main): Don't call init_tls more than once.
2568 2007-06-17  Andreas Schwab  <schwab@suse.de>
2570         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
2572 2007-06-16  Andreas Jaeger  <aj@suse.de>
2574         [BZ #4125]
2575         * sysdeps/unix/sysv/linux/sys/ptrace.h
2576         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
2577         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
2578         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
2579         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
2580         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
2581         Define.
2582         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
2583         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
2584         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
2585         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
2587 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
2589         [BZ #4599]
2590         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
2591         determining whether there are IPv4/IPv6 addresses, ignore loopback
2592         addresses.
2594 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
2596         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
2597         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
2598         as the return type.  Change type of "r" variable to CMPtype.
2599         * soft-fp/eqsf2.c (__eqsf2): Likewise.
2600         * soft-fp/eqtf2.c (__eqtf2): Likewise.
2601         * soft-fp/gedf2.c (__gedf2): Likewise.
2602         * soft-fp/gesf2.c (__gesf2): Likewise.
2603         * soft-fp/getf2.c (__getf2): Likewise.
2604         * soft-fp/ledf2.c (__ledf2): Likewise.
2605         * soft-fp/lesf2.c (__lesf2): Likewise.
2606         * soft-fp/letf2.c (__letf2): Likewise.
2607         * soft-fp/unorddf2 (__unorddf2): Likewise.
2608         * soft-fp/unordsf2 (__unordsf2): Likewise.
2609         * soft-fp/unordtf2 (__unordtf2): Likewise.
2611 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
2613         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
2614         make sure gcc doesn't mess around with this.
2616 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
2618         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
2620 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
2622         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
2623         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
2624         at most once per _dl_close_worker.
2626 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
2628         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
2629         __sched_cpucount as const.
2630         * posix/sched_cpucount.c: Adjust.
2632         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
2633         instruction for counting bits.
2634         * sysdeps/x86_64/sched_cpucount.c: New file.
2636 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
2638         * configure.in: Avoid variable named BASH.
2639         * config.make.in: Likewise.
2640         Patch in part by Mike Frysinger.
2642 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
2644         [BZ #4586]
2645         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
2646         pseudo-zeros as zero.
2647         * sysdeps/x86_64/ldbl2mpn.c: New file.
2648         * sysdeps/ia64/ldbl2mpn.c: New file.
2650 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
2652         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
2653         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
2654         Remove unreachable code at the end.
2656 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
2658         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
2659         ldbl-128ibm in comment.
2660         (fpclassifyl): Correct classification of denormals.
2661         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
2662         return value for MIN denormal. Rewrite using long double math too
2663         correctly handle denormals and canonicalize the results.
2665 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
2667         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
2668         (__mpn_construct_long_double): Fix conversion where result ought
2669         to be smaller than __LDBL_MIN__, or the low double should be
2670         denormal.  Fix decision where to negate low double - honor round
2671         to even rules.
2672         * stdio-common/tst-sprintf2.c: Include string.h.
2673         (COMPARE_LDBL): Define.
2674         (TEST): Also test whether a string hexadecimal float representation
2675         can be parsed back to the number.
2676         (main): Add a couple of further tests.
2678 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
2680         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
2681         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
2682         is non-zero, but smaller than 2 * __DBL_MIN__.
2683         * stdio-common/tst-sprintf2.c: New test.
2684         * stdio-common/Makefile (tests): Add tst-sprintf2.
2686         * math/test-misc.c (main): Don't run last batch of tests with
2687         IBM long double format.
2689 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
2691         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
2692         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
2693         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
2694         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
2695         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
2696         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
2697         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
2698         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
2699         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
2700         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
2701         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
2702         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
2703         New file.
2704         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
2705         New file.
2706         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
2707         New file.
2708         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
2709         New file.
2710         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
2711         New file.
2712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
2713         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
2714         New file.
2715         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
2716         New file.
2717         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
2718         New file.
2719         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
2720         New file.
2721         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
2722         New file.
2724 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
2726         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
2727         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
2728         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
2729         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
2730         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
2731         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
2732         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
2733         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
2735 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
2737         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
2738         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
2739         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
2740         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
2741         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
2742         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
2743         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
2744         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
2746 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
2748         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
2749         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
2750         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
2751         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
2753 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
2755         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
2756         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
2758 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
2760         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
2761         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
2762         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
2763         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
2765 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
2767         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
2768         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
2770 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
2772         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
2773         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
2775         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
2776         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
2777         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
2778         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
2780 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
2782         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
2783         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
2784         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
2785         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
2787 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
2789         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
2790         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
2791         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
2792         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
2793         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
2794         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
2796 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
2798         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
2799         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
2800         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
2801         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
2803 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
2805         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
2806         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
2807         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
2808         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
2809         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
2810         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
2811         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
2812         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
2813         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
2814         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
2815         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
2816         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
2817         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
2818         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
2819         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
2820         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
2822 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
2824         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
2825         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
2827 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
2829         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
2830         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
2832 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
2834         * sysdeps/powerpc/powerpc32/970/Implies: New file.
2835         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
2836         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
2837         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
2838         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
2839         * sysdeps/powerpc/powerpc64/970/Implies: New file.
2840         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
2841         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
2842         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
2843         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
2845 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
2847         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
2849 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
2851         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
2852         branch miss-predicts. Ensure that cache line crossing does not impact
2853         dispatch grouping.
2855 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
2857         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
2858         "../../powerpc32/power4/memcopy.h".
2859         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
2860         "../../powerpc32/power4/wordcopy.c".
2862 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
2864         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
2865         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
2866         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
2867         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
2868         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
2869         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
2871 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
2873         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
2875 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
2877         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
2878         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
2879         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
2880         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
2881         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
2882         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
2883         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
2884         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
2886 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
2888         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
2890 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
2892         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
2893         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
2894         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
2895         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
2896         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
2897         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
2898         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
2900 2007-05-29  Roland McGrath  <roland@redhat.com>
2902         * po/Makefile (po-sed-cmd): New variable.
2903         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
2905 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
2907         * crypt/md5-crypt.c: Fix comment.
2909         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
2910         of crashing.  When this is the case or if the reply is malformed,
2911         don't try to close the new file descriptor since it does not
2912         exist.
2913         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
2915 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
2917         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
2918         if __NR_utimensat is not defined.
2920 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
2922         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
2924 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
2926         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
2927         (open): Fix comment typos.  Don't call __open_2 if flags
2928         is a compile time constant without O_CREAT.
2929         (__open64_2): Add nonnull attribute.
2930         (open64): Fix comment typos.  Don't call __open64_2 if flags
2931         is a compile time constant without O_CREAT.
2932         (__openat_2): Add nonnull attribute, fix nonnull attribute
2933         on redirect.
2934         (openat): Fix comment typos.  Don't call __openat_2 if flags
2935         is a compile time constant without O_CREAT.
2936         (__openat64_2): Add nonnull attribute, fix nonnull attribute
2937         on redirect.
2938         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
2939         is a compile time constant without O_CREAT.
2941 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
2943         * Makerules (sysd-rules): Define PTW for ptw-* files.
2944         * Versions: Define GLIBC_2.7 for libc.
2945         * include/stdio.h: Declare __fortify_fail.
2946         * debug/fortify_fail.c: New file.
2947         * debug/Makefile (routines): Add fortify_fail.
2948         * debug/chk_fail.c: Use __fortify_fail.
2949         * debug/stack_chk_fail.c: Likewise.
2950         * io/Versions: Export __open_2, __open64_2, __openat_2, and
2951         __openat64_2 for GLIBC_2.7.
2952         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
2953         * io/open.c: Define *_2 variant of function which checks for O_CREAT
2954         and fails if necessary.
2955         * io/open64.c: Likewise.
2956         * io/openat.c: Likewise.
2957         * io/openat64.c: Likewise.
2958         * sysdeps/unix/sysv/linux/open64.c: Likewise.
2959         * sysdeps/unix/sysv/linux/openat.c: Likewise.
2960         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
2961         * io/bits/fcntl2.h: New file.
2962         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
2963         __openat64_2.
2964         * include/bits/fcntl2.h: New file.
2965         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2966         Add open_2.
2967         * sysdeps/unix/sysv/linux/open_2.c: New file.
2969 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
2971         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
2972         as second parameter to handle_intel.
2974         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
2975         the entry.
2977         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
2978         handling to ...
2979         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
2980         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
2981         cacheinfo.
2982         * sysdeps/x86_64/memcpy.S: Complete rewrite.
2983         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
2984         Patch by Evandro Menezes <evandro.menezes@amd.com>.
2986         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
2988 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
2990         [BZ #4525]
2991         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
2992         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
2993         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
2995         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
2997         [BZ #4514]
2998         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
2999         reinitialize workend at the start of each do_positional format spec
3000         loop, free workstart before do_positional loops.
3001         (printf_unknown): Fix size of work_buffer.
3002         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
3004         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
3005         (public_sET_STATe): If ms->version < 3, put all chunks into
3006         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
3007         chunks.
3009         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
3010         * malloc/hooks.c: Likewise.
3011         * malloc/arena.c: Likewise.
3012         * malloc/malloc.c (do_check_malloc_state): Don't assert
3013         n_mmaps is not greater than n_mmaps_max.  This removes the need
3014         for the previous change.
3016         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
3017         2007-05-07 commit.
3019 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
3021         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
3022         Define for kernel >= 2.6.22.
3024 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
3026         * elf/dl-close.c (_dl_close_worker): When removing object from
3027         global scope, wait for all lookups to finish afterwards.
3028         * elf/dl-open.c (add_to_global): When global scope array must
3029         grow, allocate a new one and free old array only after all
3030         lookups finish.
3031         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
3032         (_dl_lookup_symbol_x): Likewise.
3033         * elf/dl-support.c: Define _dl_wait_lookup_done.
3034         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
3035         _dl_wait_lookup_done.
3037         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
3038         not overlapping with arena.
3040         * malloc/mcheck.c (reallochook): If size==0, free the block.
3042         * rt/tst-shm.c: Use fstat64 instead of fstat.
3044         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
3045         __NR_sync_file_range is not defined.
3047 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
3049         Dummy files to prevent stub versions from being used.
3050         * sysdeps/x86_64/fpu/k_cosl.c: New file.
3051         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
3052         * sysdeps/x86_64/fpu/k_sinl.c: New file.
3053         * sysdeps/x86_64/fpu/k_tanl.c: New file.
3055         * version.h (VERSION): Set to 2.6.90.
3057 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
3059         * version.h (VERSION): Define to 2.6.
3060         * include/features.h (__GLIBC_MINOR__): Define to 6.
3062         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
3064         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
3065         sizes.
3067 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
3069         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
3070         number of mmaps.  n_mmaps_max is the target.
3071         * malloc/hooks.c: Likewise.
3072         * malloc/arena.c: Likewise.
3074 2007-05-12  Andreas Jaeger  <aj@suse.de>
3076         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
3077         getpid.
3079 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
3081         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
3082         adding new variables.
3084         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
3085         optimize.  Completely extend global scope array before making the
3086         new entries visible.
3088 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
3090         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
3091         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
3092         tst-getcpu.
3094         * include/link.h: Move l_version and l_nversion members around to
3095         fill gaps.
3097         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
3099         * sysdeps/unix/sysv/linux/sched_setaffinity.c
3100         (__sched_setaffinity_new): If syscall was successful and
3101         RESET_VGETCPU_CACHE is defined, use it before returning.
3102         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
3104         * io/sys/stat.h: Make sure struct timespec is defined for
3105         __USE_ATFILE.
3107         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
3108         UTIME_OMIT.
3109         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
3110         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
3111         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
3112         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
3113         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
3114         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
3115         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
3116         * io/sys/stat.h: Declare utimensat, futimens.
3117         * io/utimensat.c: New file.
3118         * io/futimens.c: New file.
3119         * sysdeps/unix/sysv/linux/utimensat.c: New file.
3120         * sysdeps/unix/sysv/linux/futimens.c: New file.
3121         * io/Makefile (routines): Add utimensat, futimens.
3122         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
3123         * sysdeps/unix/sysv/linux/lutimes.c: New file.
3124         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
3125         available.
3127         * include/sys/cdefs.h: Redefine __nonnull so that test for
3128         incorrect parameters in the libc code itself are not omitted.
3130 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
3132         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
3133         exception in addition to inexact when asked to raise only FE_INEXACT.
3135         [BZ #3427]
3136         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
3137         in *envp.
3139 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
3141         [BZ #4403]
3142         * string/strfry.c (strfry): Make result more random.
3144 2007-05-07  Richard Henderson  <rth@redhat.com>
3146         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
3147         if __NO_LONG_DOUBLE_MATH.
3148         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
3149         available in the compiler, add .arch directive to the assembly.
3151 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
3153         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
3154         compat_symbol to GLIBC_2_1.
3155         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
3156         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
3157         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
3158         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
3159         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
3160         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
3161         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
3162         libc, not libm.
3163         (__isnanl): New compat_symbol.
3165 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
3166             Jakub Jelinek  <jakub@redhat.com>
3168         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
3169         (new_heap): Initialize mprotect_size.
3170         (grow_heap): When growing, only mprotect from mprotect_size till
3171         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
3172         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
3174 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
3175             Peter Bergner  <bergner@us.ibm.com>
3177         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
3178         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
3179         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
3180         * sysdeps/powerpc/fpu/fe_mask.c: New file.
3181         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
3182         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
3183         Call __fe_mask_env() if all FP exceptions disabled.
3184         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
3185         from old FPSCR to new fenv to propagate DFP rounding modes.
3186         Call __fe_mask_env() if FP exceptions previously enabled.
3187         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
3188         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
3189         transitioning from all exceptions disabled to any exception enabled
3190         or visa versa.
3191         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
3192         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
3193         when transitioning from all exceptions disabled to any exception
3194         enabled or visa versa.
3195         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
3196         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
3197         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
3198         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
3199         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
3200         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
3202 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
3204         [BZ #4465]
3205         * posix/unistd.h: Remove __THROW from fdatasync.
3207 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
3209         [BZ #4465]
3210         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
3212 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
3214         * stdio-common/vfprintf.c (process_string_arg): Optimize
3215         ridiculous precision in wide char code printing multi-byte string.
3216         Reported by Jim Meyering <jim@meyering.net>.
3218         [BZ #4131]
3219         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
3220         boundaries to work around systems with overlapping binary loading.
3221         Based on a patch by Suzuki <suzuki@in.ibm.com>.
3223 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
3225         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
3226         __mbsnrtowcs after last change.
3228         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
3229         (get_ident): Likewise.
3231 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
3233         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
3234         with setting the sticky bit.
3235         * math/test-misc.c (main): Add more truncation tests.
3237 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
3239         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
3240         double in the function declaration.
3241         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
3242         double in the function declaration.
3243         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
3244         float in the function declaration.
3245         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
3246         float in the function declaration.
3248         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
3249         denormal operands.  Do not generate FP_EX_DENORM exception.
3250         (FP_UNPACK_RAW_EP): Ditto.
3251         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
3252         undefined _FP_UNPACK_RAW_E.
3253         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
3254         undefined _FP_UNPACK_RAW_EP.
3255         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
3256         undefined _FP_PACK_RAW_E.
3257         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
3258         undefined _FP_PACK_RAW_EP.
3260         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
3261         _FP_FRAC_COPY_2.
3262         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
3263         _FP_FRAC_COPY_4.
3265 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
3266             Jakub Jelinek  <jakub@redhat.com>
3268         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
3269         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
3270         this case.
3271         * soft-fp/op-common.h (FP_TRUNC): Ditto.
3273 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
3275         * math/test-misc.c (main): Add tests for rounding long double
3276         values close to smallest double denormalized value to double.
3278 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
3280         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
3281         condition for truncating to 0.  Set sticky bit for such
3282         truncation.
3284 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
3286         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
3287         fixed length array for ignore.
3289 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
3291         [BZ #4438]
3292         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
3293         stack for large precisions.
3294         * stdio-common/test-vfprintf.c (main): Add test for large
3295         precision.
3297 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
3299         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
3300         for exponent 0.
3301         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
3303         [BZ #4439]
3304         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
3305         account in the size check.
3306         * resolv/tst-inet_ntop.c: New test.
3307         * resolv/Makefile (tests): Add tst-inet_ntop.
3309 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
3310             Jakub Jelinek  <jakub@redhat.com>
3312         [BZ #4349]
3313         * malloc/malloc.c: Keep separate list for first blocks on the bin
3314         lists with a given size.  This helps skipping over list elements
3315         we know won't fit in two places.
3316         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
3318 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
3320         [BZ #4102]
3321         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
3322         label to Teredo tunnel addresses 2001://32.
3324 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
3326         * locale/programs/ld-collate.c (collate_read): Allow order_start
3327         after copy.
3329         * locale/programs/ld-collate.c (collate_read): Fix printing of
3330         error message.
3332         [BZ #3213]
3333         * locale/C-translit.h.in: Add entry for U2044.
3335         [BZ #4342]
3336         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
3337         hexa-decimal floats without exponent.
3338         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
3340 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
3342         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
3343         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
3344         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
3345         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
3346         GLIBC_2.6.
3347         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
3348         Add sched_getcpu.
3350 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
3352         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
3353         of 0 after the out_fail label.
3355 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
3357         [BZ #4406]
3358         * iconv/gconv_charset.h (strip): Allow ':'.
3359         * iconv/iconv_open.c (iconv_open): Adjust comment.
3361 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
3363         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
3364         version.
3366 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
3368         [BZ #4381]
3369         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
3370         alignment of buffer and tmp_buffer.
3371         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
3372         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
3373         alignment of buffer.
3374         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
3375         bigger than INT_MAX.
3376         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
3377         h_errnop arguments.  Fail if buflen is too small.
3378         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
3380 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
3382         [BZ #4405]
3383         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
3384         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
3386 2007-04-22  Roland McGrath  <roland@redhat.com>
3388         * elf/elf.h (NT_PRXFPREG): New macro.
3390 2007-04-19  Andreas Jaeger  <aj@suse.de>
3392         [BZ #3905]
3393         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
3394         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
3395         Added.
3397 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
3399         * include/sys/mman.h: Mark madvise hidden.
3400         * misc/madvise.c: Add libc_hidden_def.
3402 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
3404         * nis/nis_domain_of.c (__nis_domain_of): New function.
3405         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
3406         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
3407         * nis/nis_call.c (rec_dirsearch): Likewise.
3408         (first_shoot): Likewise.  Remove search_parent_first argument.
3409         (struct nis_server_cache): Rename search_parent_first field
3410         to search_parent.
3411         (nis_server_cache_search, nis_server_cache_add): Rename
3412         search_parent_first argument to search_parent.
3413         (__nisfind_server): Likewise.  If search_parent, call
3414         __nis_domain_of.
3416 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
3418         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
3420 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
3422         [BZ #4368]
3423         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
3425 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
3427         [BZ #4364]
3428         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
3430 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
3432         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
3433         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
3434         current number of locales in SUPPORTED.
3435         (create_archive): Initialize serial.
3436         (enlarge_archive): Preserve aliases rather than duplicating
3437         their locrecs.
3439 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
3441         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
3442         after _IO_un_link, not before it.
3444         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
3445         special case handling when wcp == wstartp + 1.  Fix a comment typo.
3446         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
3448 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
3450         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
3451         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
3452         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
3453         Remove __THROW.
3454         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
3455         _IO_file_xsgetn_maybe_mmap): Likewise.
3456         * libio/oldfileops.c (old_do_write): Likewise.
3457         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
3458         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
3459         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
3460         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
3461         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
3462         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
3463         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
3464         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
3465         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
3466         _IO_file_underflow, _IO_file_underflow_mmap,
3467         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
3468         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
3469         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
3470         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
3471         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
3472         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
3473         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
3474         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
3475         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
3476         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
3477         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
3478         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
3479         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
3480         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
3481         _IO_adjust_column_internal, _IO_default_uflow_internal,
3482         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
3483         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
3484         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
3485         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
3486         _IO_file_close_it_internal, _IO_file_underflow_internal,
3487         _IO_file_overflow_internal, _IO_file_attach_internal,
3488         _IO_file_fopen_internal, _IO_file_sync_internal,
3489         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
3490         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
3491         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
3492         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
3493         _IO_seekpos_unlocked): Likewise.
3494         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
3495         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
3497 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
3499         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
3500         argument in xmalloc size computation.
3502 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
3504         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
3505         math_opt_barrier and math_force_eval macros.
3507 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
3509         [BZ #3306]
3510         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
3511         * sysdeps/i386/fpu/math_private.h: New file.
3512         * sysdeps/x86_64/fpu/math_private.h: New file.
3513         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
3514         math_force_eval macros.  Use "+m" constraint on asm rather than
3515         "=m" and "m".
3516         * math/s_nextafter.c (__nextafter): Likewise.
3517         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
3518         Likewise.
3519         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
3520         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
3521         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
3522         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
3523         math_opt_barrier and math_force_eval macros.
3524         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
3525         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
3526         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
3527         (__nexttoward): Use math_opt_barrier and
3528         math_force_eval macros.  Use "+m" constraint on asm rather than
3529         "=m" and "m".  Only use asm to force double result if
3530         FLT_EVAL_METHOD is 2.
3531         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
3532         (__nexttowardf): Use math_opt_barrier and
3533         math_force_eval macros.  Use "+m" constraint on asm rather than
3534         "=m" and "m".  Only use asm to force double result if
3535         FLT_EVAL_METHOD is not 0.
3536         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
3537         (__nexttowardf): Use math_opt_barrier and
3538         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
3539         x to float using asm.
3540         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
3541         (__nldbl_nexttowardf): Use math_opt_barrier and
3542         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
3543         x to float using asm.
3544         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
3545         (__nexttowardf): Use math_opt_barrier and math_force_eval
3546         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
3547         * math/bug-nextafter.c (zero, inf): New variables.
3548         (main): Add new tests.
3549         * math/bug-nexttoward.c (zero, inf): New variables.
3550         (main): Add new tests.
3552 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
3554         [BZ #3427]
3555         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
3556         exceptions both in SW and MXCSR.
3557         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
3558         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
3559         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3560         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
3561         in MXCSR if SSE is available.
3562         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
3563         and ldsodefs.h.
3564         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
3565         Fix comment typo.
3566         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
3567         Return 0 rather than 1.
3568         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
3569         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
3570         * math/test-fenv.c (feholdexcept_tests): New function.
3571         (main): Call it.
3573 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
3575         [BZ #3427]
3576         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
3577         in SW.
3579 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
3581         [BZ #4344]
3582         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
3583         Reported by David Anderson <davea42@earthlink.net>.
3585 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
3587         * posix/sys/wait.h: Remove unnecessary forward declaration.
3589 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
3591         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
3592         with obj->do_servers after first_shoot.
3594 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
3596         * posix/Makefile (routines): Add sched_cpucount.
3597         (tests): Add tst-cpucount.
3598         * posix/sched_cpucount.c: New file.
3599         * posix/tst-cpucount.c: New file.
3600         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
3601         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
3602         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
3603         * posix/sched.h: Define CPU_COUNT.
3605 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
3607         * posix/fnmatch.c (STRUCT): Define.
3608         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
3609         * posix/fnmatch_loop.c (struct STRUCT): New type.
3610         (FCT): Add ends argument.  If ends != NULL and normal * is
3611         seen in the pattern, store current pattern and string pointers
3612         and return.  Adjust recursive calls.
3613         (EXT): Adjust FCT callers.
3614         (STRUCT): Undef at the end of the file.
3615         * posix/Makefile (tests): Add tst-fnmatch2.
3616         * posix/tst-fnmatch2.c: New test.
3618 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
3620         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
3621         and 1 on failure.
3623         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
3624         Change last argument to unsigned int.
3626 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
3628         * scripts/check-local-headers.sh: Filter out sys/capability.h.
3630 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
3632         * config.h.in (HAVE_LIBCAP): Add.
3633         * nscd/selinux.h: Include sys/capability.h rather than non-existent
3634         sys/capabilities.h.
3635         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
3636         free_caps.  Cast away const from 4th cap_set_flag argument.
3638 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
3640         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
3641         GLIBC_2.6.
3642         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3643         Add sync_file_range.
3644         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
3646 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
3648         * sysdeps/powerpc/bits/atomic.h
3649         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
3650         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
3651         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
3652         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
3653         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
3654         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
3655         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
3656         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
3657         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
3658         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
3659         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
3660         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
3661         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
3662         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
3663         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
3664         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
3665         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
3666         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
3667         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
3668         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
3670 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
3672         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
3673         (__cache_line_size): Define the variable here.  Add
3674         attribute_hidden, remove weak_extern.
3675         (__libc_start_main): Set __cache_line_size
3676         unconditionally.
3677         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3678         (__cache_line_size): Define the variable here.  Add
3679         attribute_hidden, remove weak_extern.
3680         (DL_PLATFORM_AUXV): Set __cache_line_size
3681         unconditionally.
3682         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
3683         weak_extern, add attribute_hidden.
3684         (__elf_machine_runtime_setup): Assume __cache_line_size is always
3685         defined in ld.so.
3686         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
3687         definition.
3688         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
3690 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
3692         [BZ #4276]
3693         * timezone/africa: Update from tzdata2007d.
3694         * timezone/asia: Likewise.
3695         * timezone/australasia: Likewise.
3696         * timezone/backward: Likewise.
3697         * timezone/europe: Likewise.
3698         * timezone/iso3166.tab: Likewise.
3699         * timezone/leapseconds: Likewise.
3700         * timezone/northamerica: Likewise.
3701         * timezone/southamerica: Likewise.
3702         * timezone/zone.tab: Likewise.
3704         * timezone/private.h: Update from tzcode2007d.
3705         * timezone/zdump.c: Likewise.
3706         * timezone/zic.c: Likewise.
3708 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
3710         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
3711         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
3712         variables.
3713         (nis_server_cache_search, nis_server_cache_add): New functions.
3714         (__nisfind_server): Use them.  Add dbp and flags argument, if
3715         call __nisbind_create.
3716         (__nisbind_create): Add server_used and current_ep arguments,
3717         only call __nis_findfastest if server_used is ~0.
3718         (__do_niscall2, __prepare_niscall): Adjust callers.
3719         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
3720         ckey_cache_euid, ckey_cache_lock): New variables.
3721         (get_ckey): New function.
3722         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
3723         __pmap_getnisport.  Save __pmap_getnisport result in
3724         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
3725         key.
3726         * nis/nis_lookup.c (nis_lookup): Likewise.
3727         * nis/nis_table.c (nis_list): Likewise.
3728         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
3729         prototypes.
3731         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
3732         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
3733         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
3734         _nss_nisplus_getservbyport_r): Likewise.
3735         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
3736         _nss_nisplus_getnetbyaddr_r): Likewise.
3737         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
3738         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
3739         _nss_nisplus_getntohost_r): Likewise.
3740         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
3741         _nss_nisplus_getrpcbynumber_r): Likewise.
3743 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
3745         * configure.in (libc_cv_gnu89_inline): Only do compile test.
3746         * configure: Rebuilt.
3748         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
3749         bit-fields.
3750         * soft-fp/extended.h (_FP_UNION_E): Likewise.
3752 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
3754         [BZ #2831]
3755         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
3756         bit-fields.
3758 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
3760         * nscd/gai.c: Include alloca.h.
3761         (__libc_use_alloca): Define.
3763 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
3765         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
3766         smaller scopes.
3767         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
3768         (DL_DST_REQUIRED): Adjust user.
3770         * include/dlfcn.h (struct link_map): New forward decl.
3772         * inet/getnameinfo.c: Include stddef.h.
3773         (getnameinfo): Use offsetof.
3775         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
3777         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
3779         * string/strerror_l.c: Include stdlib.h.
3781         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
3782         * config.make.in (gnu89-inline-CFLAGS): New variable.
3783         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
3784         -std=gnu99.
3785         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
3786         * argp/argp.h: Use it.
3787         * bits/mathinline.h: Likewise.
3788         * bits/sigset.h: Likewise.
3789         * bits/string.h: Likewise.
3790         * ctype/ctype.h: Likewise.
3791         * hurd/hurd.h: Likewise.
3792         * hurd/hurd/fd.h: Likewise.
3793         * hurd/hurd/port.h: Likewise.
3794         * hurd/hurd/signal.h: Likewise.
3795         * hurd/hurd/threadvar.h: Likewise.
3796         * hurd/hurd/userlink.h: Likewise.
3797         * io/sys/stat.h: Likewise.
3798         * libio/bits/stdio.h: Likewise.
3799         * libio/bits/stdio2.h: Likewise.
3800         * mach/lock-intern.h: Likewise.
3801         * mach/mach/mig_support.h: Likewise.
3802         * math/bits/cmathcalls.h: Likewise.
3803         * posix/bits/unistd.h: Likewise.
3804         * socket/bits/socket2.h: Likewise.
3805         * stdlib/bits/stdlib.h: Likewise.
3806         * stdlib/stdlib.h: Likewise.
3807         * string/argz.h: Likewise.
3808         * string/bits/string2.h: Likewise.
3809         * string/bits/string3.h: Likewise.
3810         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
3811         * sysdeps/generic/inttypes.h: Likewise.
3812         * sysdeps/generic/machine-lock.h: Likewise.
3813         * sysdeps/generic/machine-sp.h: Likewise.
3814         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
3815         * sysdeps/i386/i486/bits/string.h: Likewise.
3816         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
3817         * sysdeps/mach/alpha/machine-lock.h: Likewise.
3818         * sysdeps/mach/alpha/machine-sp.h: Likewise.
3819         * sysdeps/mach/i386/machine-lock.h: Likewise.
3820         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
3821         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
3822         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
3823         * sysdeps/s390/bits/string.h: Likewise.
3824         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
3825         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
3826         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
3827         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
3828         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
3829         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
3830         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
3831         * wcsmbs/bits/wchar2.h: Likewise.
3832         * wcsmbs/wchar.h: Likewise.
3833         * stdlib/gmp.h: Likewise.  Include <features.h> to get
3834         __extern_inline definition.
3836 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
3838         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
3839         NULL.
3841         [BZ #3919]
3842         * math/libm-test.inc (log_test): Test -Inf and NaN.
3843         (log10_test, log1p_test, log2_test): Test -Inf.
3844         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
3845         FE_INVALID when argument is qNaN.
3846         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
3847         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
3848         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
3849         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
3850         andb $1, %ah with testb $1, %ah, don't test for parity, instead
3851         testb $4, %ah and jump if non-zero.
3852         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
3853         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
3855         [BZ #4101]
3856         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
3857         ancestors with the same depths.
3858         Patch by Niels Moeller <nisse@lysator.liu.se>.
3859         (filter_doc): Don't crash if argp is NULL.
3860         * argp/Makefile (tests): Add tst-argp2.
3861         * argp/tst-argp2.c: New test.
3863         [BZ #4130]
3864         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
3865         open_not_cancel_2.
3866         (updwtmp_file): Likewise.
3868         [BZ #4181]
3869         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
3870         (inet6_opt_append): Don't check extlen is big enough if extbuf
3871         is NULL.
3872         (inet6_opt_finish): Likewise.
3873         * inet/Makefile (tests): Add test-inet6_opt.
3874         * inet/test-inet6_opt.c: New test.
3876         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
3877         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
3878         NLMSG_ERR.  Instead use a page sized buffer.
3879         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
3880         buffer.
3882 2007-03-14  Richard Henderson  <rth@redhat.com>
3884         * sysdeps/alpha/fpu/s_llround.c: New file.
3885         * sysdeps/alpha/fpu/s_llroundf.c: New file.
3886         * sysdeps/alpha/fpu/s_lround.c: New file.
3887         * sysdeps/alpha/fpu/s_lroundf.c: New file.
3888         * sysdeps/alpha/fpu/s_round.c: New file.
3889         * sysdeps/alpha/fpu/s_roundf.c: New file.
3890         * sysdeps/alpha/fpu/s_trunc.c: New file.
3891         * sysdeps/alpha/fpu/s_truncf.c: New file.
3893         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
3894         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
3895         * sysdeps/alpha/fpu/s_floor.c: Likewise.
3896         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
3897         * sysdeps/alpha/fpu/s_rint.c: Likewise.
3898         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
3900         * sysdeps/alpha/fpu/s_fmax.S: New file.
3901         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
3902         * sysdeps/alpha/fpu/s_fmin.S: New file.
3903         * sysdeps/alpha/fpu/s_fminf.S: New file.
3904         * sysdeps/alpha/fpu/s_isnan.c: New file.
3905         * sysdeps/alpha/fpu/s_isnanf.c: New file.
3906         * sysdeps/alpha/fpu/s_llrint.c: New file.
3907         * sysdeps/alpha/fpu/s_llrintf.c: New file.
3908         * sysdeps/alpha/fpu/s_lrint.c: New file.
3909         * sysdeps/alpha/fpu/s_lrintf.c: New file.
3910         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
3911         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
3913         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
3914         (__fdimf, fdimf, __fdim, fdim): Remove.
3915         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
3916         (__isnanf, __isnan, __isnanl): New.
3918 2007-03-13  Richard Henderson  <rth@redhat.com>
3920         * sysdeps/ieee754/ldbl-128/Makefile: New file.
3922 2007-03-13  Richard Henderson  <rth@redhat.com>
3924         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
3925         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
3926         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
3927         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
3928         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
3929         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
3931 2007-03-13  Richard Henderson  <rth@redhat.com>
3933         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
3934         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
3935         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
3936         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
3937         Move to dl-auxv.h; initialize instead of extern weak.
3938         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
3939         weak symbol.
3940         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
3941         Extern instead of initialized.
3943 2007-03-13  Richard Henderson  <rth@redhat.com>
3945         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
3946         __sigsuspend_nocancel.
3948 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
3950         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
3951         172.16/12 address range.
3953 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
3955         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
3956         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
3957         message.
3959 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
3961         [BZ #4069]
3962         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
3963         earlier.
3964         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
3966         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
3967         for x qNaN and y either +-inf or non-integer value.
3968         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
3969         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
3970         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
3972 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
3974         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
3975         from sysdep_headers.
3977 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
3979         * time/tzfile.c (find_transition): Instead of a linear search try to
3980         guess the transition index, use a linear search if the result is at
3981         most 10 transitions away from the guess or binary search otherwise.
3983 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
3985         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
3986         memory reallocation.
3988 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
3990         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
3991         and fix some typos.
3992         Optimize use of TOLOWER.
3994         [BZ #3325]
3995         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
3996         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
3997         * sysdeps/i386/fpu/e_fmod.S: Likewise.
3999         [BZ #3458]
4000         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
4001         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
4003         [BZ #4076]
4004         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
4005         (open_dir_stream): Likewise.
4006         * io/Makefile (tests): Add bug-ftw5.
4007         * io/bug-ftw5.c: New file.
4009         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
4010         * nscd/servicescache.c (cache_addserv): Likewise.
4012         * nscd/grpcache.c (cache_addgr): In case a record changed on
4013         refresh, adjust key_copy.
4015         [BZ #4074]
4016         * nscd/pwdcache.c (cache_addpw): In case a record changed on
4017         refresh, adjust key_copy.
4019         [BZ #4070]
4020         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
4021         special cases.
4022         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
4024 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
4026         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
4027         optimization.
4029         * stdio-common/vfscanf.c: Small cleanups throughout.
4031 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
4033         [BZ #3325]
4034         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
4035         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
4036         * sysdeps/i386/fpu/e_fmod.S: Likewise.
4037         Patch by Jared Casper <jaredcasper@gmail.com>.
4039         * sysdeps/unix/closedir.c: Outside libc don't use locking.
4040         * sysdeps/unix/opendir.c: Likewise.
4041         * sysdeps/unix/readdir.c: Likewise.
4043         [BZ #2211]
4044         * stdio-common/vfscanf.c: Handle localized digits etc for floating
4045         point numbers.
4046         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
4048         * stdio-common/vfscanf.c: Fix problems in width accounting.
4049         * stdio-common/tst-sscanf.c (double_tests): New tests.
4050         (main): Hook them up.
4052         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
4053         More simplifications of floating-point reader.
4055         * stdio-common/Makefile (tests): Add tst-swscanf.
4056         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
4057         testing.
4058         * stdio-common/tst-swscanf.c: New file.
4060 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
4062         [BZ #2633]
4063         * libio/stdio.h: Define struct _IO_FILE in global namespace.
4064         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
4065         Remove using for __jmp_buf_tag.
4066         * locale/locale.h (struct lconv): Also define in std namespace.
4067         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
4069         [BZ #3842]
4070         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
4071         using __libc_enable_secure.
4073         [BZ #3818]
4074         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
4076         [BZ #3745]
4077         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
4078         of names for ellipsises.
4080         [BZ #3348]
4081         * malloc/memusage.sh: Cleanups.
4082         * debug/xtrace.sh: Quoting and trap changes.
4084 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
4086         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
4088         * locale/iso-3166.def: Update entry for Serbia.
4089         * locale/iso-4217.def: Define RSD, remove CSD.
4091         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
4092         and 64-bit operations.
4094         [BZ #4040]
4095         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
4096         16-bit operations.
4098         * nscd/nscd.c (parse_opt): One more conversion to use send instead
4099         of writev.
4101 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
4103         [BZ #3991]
4104         * assert/assert.h (assert): Simplify.
4105         (assert_perror): Likewise.
4106         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
4108         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
4109         reqdata.
4111         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
4112         change: don't pass NULL in place of an integer.
4114 2007-02-02  Bruno Haible  <bruno@clisp.org>
4116         [BZ #3954]
4117         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
4118         Add mapping for U+327E.
4119         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
4120         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
4121         mapping of 0xD9 0xE8.
4122         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
4123         mapping of U+327E.
4124         Reported by Jungshik Shin <jungshik@google.com>.
4126         [BZ #3955]
4127         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
4128         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
4129         Reported by Jungshik Shin <jungshik@google.com>.
4131 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
4133         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
4134         byte variants.
4136         [BZ #4040]
4137         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
4138         byte variants.  Patch mostly be tom@tommay.net.
4140 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
4142         [BZ #3996]
4143         * posix/glob.c (attribute_hidden): Define if not defined.
4144         (glob): Unescape dirname, filename or username when needed and not
4145         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
4146         is NULL.  Handle unescaped [ in pattern without closing ].
4147         Don't pass GLOB_CHECK down to recursive glob for directories.
4148         (__glob_pattern_type): New function.
4149         (__glob_pattern_p): Implement using __glob_pattern_type.
4150         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
4151         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
4152         Remove unreachable code.
4153         * posix/globtest.sh: Add a couple of new tests.
4155 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
4157         * po/ru.po: Update from translation team.
4159 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
4161         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
4162         to the list of i486+ CPUs.
4163         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
4165 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
4167         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
4168         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
4169         references.
4171 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
4173         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
4175         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
4176         * resolv/res_mkquery.c: Define __res_nopt.
4177         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
4178         try adding EDNS0 record.
4179         * resolv/res_send.c (send_dg): If request failed with FORMERR and
4180         EDNS0 record was send make sure we don't try it again.
4181         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
4182         * include/resolv.h: Declare __res_nopt.
4184 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
4186         [BZ #3944]
4187         * time/strptime_l.c (__strptime_internal): Set have_mon for
4188         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
4189         have been computed from tm_yday and tm_year.  Don't crash
4190         in day_of_the_week or day_of_the_year if not have_mon
4191         and tm_mon contains bogus value.
4192         * time/Makefile (tests): Add tst-strptime3.
4193         * time/tst-strptime3.c: New test.
4195 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
4197         [BZ #3957]
4198         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
4199         bit for RE_HAT_LISTS_NOT_NEWLINE.
4200         (build_charclass_op): Remove bogus comment.
4201         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
4202         * posix/bug-regex27.c: New test.
4203         * posix/bug-regex28.c: New test.
4205 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
4207         * po/sv.po: Update from translation team.
4209 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
4211         * nscd/nscd_helper.c (open_socket): Minor size optimization.
4213 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
4215         * include/locale.h (__uselocale): Add libc_hidden_proto.
4216         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
4218         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
4219         gettimeofday.
4221 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
4223         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
4224         returning.
4225         (PTR_DEMANGLE): Real definition now that it's not the same as
4226         PRT_MANGLE anymore.
4227         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
4229         * string/strerror_l.c: New file.
4230         * string/Makefile (routines): Add strerror_l.
4231         * string/string.h: Declare strerror_l.
4232         * string/Versions: Export strerror_l for GLIBC_2.6.
4234 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
4236         * nscd/nscd_helper.c (open_socket): Now takes request type and key
4237         as parameter.  Construct request record.  Try sending request
4238         before the first poll use, it usually succeeds.  Adjust all
4239         callers.
4240         * nscd/nscd-client.h: Define MAXKEYLEN.
4241         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
4243 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
4245         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
4246         from return value.
4247         * nscd/nscd_helper.c: Include string.h.
4248         (__nscd_cache_search): Remove const qualifier from return value.
4249         On strict alignment architectures check hash entry and data head
4250         alignment.
4251         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
4252         mmapped data during GC cycle contains garbage.  If
4253         __nscd_drop_map_ref fails, decrement mapped->counter when returning
4254         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
4255         dropped to 0.
4256         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
4257         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
4258         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
4259         * nscd/nscd_getai.c (__nscd_getai): Likewise.
4260         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
4262 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
4264         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
4266 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
4268         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
4269         names not numbers in cfi_*.
4271 2007-01-26  Andreas Jaeger  <aj@suse.de>
4273         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
4274         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
4275         Correct values of PER_HPUX and PER_OSF4.
4277 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
4279         * elf/dl-minimal.c: Undefine _itoa first.
4280         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
4281         * malloc/mtrace.c: Revert last change.
4282         * posix/wordexp.c: Likewise.
4284 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
4286         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
4287         and __geode__ to the list of i486+ CPUs.
4288         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
4290 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
4292         * stdio-common/_itoa.c: Include <limits.h>.
4293         * stdio-common/_itowa.c: Likewise.
4295 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
4297         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
4298         platforms.
4299         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
4300         64-bit platforms.
4301         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
4302         possible.
4303         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
4304         if possible.
4306         [BZ #3902]
4307         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
4308         * stdio-common/Makefile (tests): Add bug17.
4309         * stdio-common/bug17.c: New file.
4311 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
4313         * iconvdata/brf.c: New file.
4314         * iconvdata/testdata/BRF: New file.
4315         * iconvdata/testdata/BRF..UTF8: New file.
4316         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4317         * iconvdata/Makefile: Add rules to build BRF.
4318         * iconvdata/TESTS: Add BRF entry.
4319         * iconvdata/gconv-modules: Likewise.
4320         * iconvdata/tst-tables.sh: Likewise.
4322 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
4324         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
4325         type `long long int', not `long int'.
4326         (wcstoq): Likewise.
4328 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
4330         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
4331         of values on 64-bit platforms which are too large.
4333 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
4334             Joe Kerian  <jkerian@us.us.ibm.com>
4336         [BZ #2749]
4337         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
4338         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
4339         (__copysignl): Use signbit() for comparison.
4340         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
4341         SET_LDOUBLE_WORDS64.
4343         [BZ #2423, #2749]
4344         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
4345         (__ceill): Remove calls to fegetround(), fesetround().
4346         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
4347         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
4348         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
4350 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
4352         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
4354         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
4356 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
4358         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
4359         demangle pointer.
4360         * csu/libc-start.c: Likewise.
4362 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
4364         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
4365         really work anyway.
4367 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
4369         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
4370         users.
4371         (handle_request): Remove unnecessary tests.
4373         * nscd/cache.c (cache_add): Record the failure to add to the cache.
4375 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
4377         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
4378         workbits in semi-raw fraction.
4380         * math/test-misc.c: Add new tests.
4382 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
4384         * math/basic-test.c: Include test-skeleton.c.
4385         (TEST_TRUNC): Define.
4386         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
4387         (main): Rename to ...
4388         (do_test): ...this.  Run new tests.
4389         (TEST_FUNCTION): Define.
4391 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
4392             Joe Kerian  <jkerian@us.us.ibm.com>
4394         [BZ #2749]
4395         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
4396         handling for high words.
4397         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
4398         and overflow for infinity.
4400 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
4402         * nscd/connections.c (handle_request): Add a __builtin_expect.
4404         * nscd/connections.c (serv2db): Change type into structure which
4405         also says whether this is a request for data.  Renamed to
4406         servinfo.  All users changed.
4407         (handle_request): Much simpler test whether we should search the cache.
4409         * nscd/connections.c (handle_request): Fix thinko in selinux test
4410         invocation.
4412         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
4413         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
4414         it before getting dl_load_lock and then relock.
4415         (_dl_lookup_symbol_x): Pass flags to add_dependency.
4416         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
4417         case we unlocked the scope.
4418         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
4419         _dl_lookup_symbol_x in case we locked the scope.
4420         (_dl_profile_fixup): Likewise.
4421         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
4422         set DL_LOOKUP_SCOPE_LOCK.
4424 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
4426         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
4427         CFLAGS-getsrvbynpt_r.c.
4428         * nscd/getsrvbynm_r.c: New file.
4429         * nscd/getsrvbypt_r.c: New file.
4430         * nscd/nscd_getserv_r.c: New file.
4431         * nscd/servicescache.c: New file.
4432         * nscd/Makefile (routines): Add nscd_getserv_r.
4433         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
4434         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
4435         CFLAGS-getsrvbypt_r.c.
4436         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
4437         table.  Add entries for services database.
4438         * nscd/connections.c (serv2str): Mark as const.  Add entries for
4439         services database.
4440         (dbs): Add .reset_res and servdb initialization.
4441         (serv2db): Add entries for services database.
4442         (verify_persistent_db): Accept dbnr == servdb.
4443         (invalidate_cache): Rewrite database name recognition to use a table.
4444         Call res_init() if .reset_res is set for database.
4445         (handle_request): Add code to handle services database.
4446         * nscd/gai.c: Don't define __getservbyname_r.
4447         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
4448         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
4449         (serv_response_header): Define.
4450         (struct datahead): Add serv_response_header member.
4451         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
4452         using table.
4453         * nscd/nscd.conf: Add entries for services database.
4454         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
4455         Declare serv_iov_disabled.
4456         Declare addservbyname, readdservbyname, addservbyport, and
4457         readdservbyport.
4458         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
4459         (find_db): Fix error message.
4460         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
4461         __nscd_getservbyname_r, and __nscd_getservbyport_r.
4462         * nscd/selinux.c (perms): Add entries for services database.
4463         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
4464         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
4466         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
4467         * nscd/hstcache.c: Likewise.
4468         * nscd/pwdcache.c: Likewise.
4470         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
4471         computation of keylen.
4473         * include/string.h: Only redefine strndupa if this is really for
4474         libc code.
4476 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
4478         * nscd/nscd_gethst_r.c: Minor cleanups.
4480         * nscd/connections.c (handle_request): Check selinux permissions
4481         for all non-admin commands.
4483         * sysdeps/i386/i486/bits/atomic.h: Define
4484         atomic_compare_and_exchange_val_acq,
4485         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
4486         using __sync_* built-ins for gcc >= 4.1.
4487         * sysdeps/x86_64/bits/atomic.h: Likewise.
4489         [BZ #3840]
4490         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
4491         and .oS.d files.
4493 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
4495         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
4496         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
4497         (do_test): Check errno and exit(0) if ENOSYS.
4499 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
4501         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
4502         thousands separators.
4503         * stdlib/Makefile: Add rules to build and run tst-strtod4.
4504         * stdlib/tst-strtod4.c: New test.
4506         [BZ #3855]
4507         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
4508         hexadecimal digit should accept just the initial 0.
4509         * stdlib/tst-strtod2.c (tests): New variable.
4510         (do_test): Run several tests rather than just one.
4512 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
4514         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
4515         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
4517 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
4519         * io/fts.c: Make sure fts_cur is always valid after return from
4520         fts_read.
4521         Patch by Miloslav Trmac <mitr@redhat.com>.
4523 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
4525         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
4526         (R_MIPS_NUM): Bump by 1.
4528 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
4530         * posix/execvp.c: Include alloca.h.
4531         (allocate_scripts_argv): Renamed to...
4532         (scripts_argv): ... this.  Don't allocate buffer here nor count
4533         arguments.
4534         (execvp): Use alloca if possible.
4535         * posix/Makefile: Add rules to build and run tst-vfork3 test.
4536         * posix/tst-vfork3.c: New test.
4538 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
4540         * string/Makefile (tst-strxfrm2-ENV): Define.
4541         * stdlib/Makefile (tst-strtod3-ENV): Define.
4543 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
4545         * posix/getconf.c: Update copyright year.
4546         * nss/getent.c: Likewise.
4547         * iconv/iconvconfig.c: Likewise.
4548         * iconv/iconv_prog.c: Likewise.
4549         * elf/ldconfig.c: Likewise.
4550         * catgets/gencat.c: Likewise.
4551         * csu/version.c: Likewise.
4552         * elf/ldd.bash.in: Likewise.
4553         * elf/sprof.c (print_version): Likewise.
4554         * locale/programs/locale.c: Likewise.
4555         * locale/programs/localedef.c: Likewise.
4556         * nscd/nscd.c (print_version): Likewise.
4557         * debug/xtrace.sh: Likewise.
4558         * malloc/memusage.sh: Likewise.
4559         * malloc/mtrace.pl: Likewise.
4560         * debug/catchsegv.sh: Likewise.
4562 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
4564         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
4565         attempts.
4567 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
4569         * posix/wordexp.c: Remove some unnecessary tests.
4571 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
4573         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
4574         blacklist the group till after we look it up.
4576 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
4578         * include/atomic.h (atomic_forced_read): New macro.
4580 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
4582         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
4584 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
4586         * nss/getXXbyYY_r.c: Include atomic.h.
4587         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
4588         add atomic_write_barrier () in between.
4590         * stdlib/Makefile (tests): Add tst-makecontext.
4591         * stdlib/tst-makecontext.c: New test.
4593         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
4594         (__makecontext): Don't realign uc_mcontext.uc_regs.
4596 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
4598         * elf/dl-support.c: Include dl-procinfo.h.
4599         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
4600         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
4601         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
4602         Define.
4603         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
4604         hardcoded constants.
4605         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
4606         PPC_PLATFORM_* macros for array designators.
4608 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
4610         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
4611         names to the beginning.
4612         (_dl_powerpc_platforms): Add "power6x".
4613         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
4614         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
4615         (_DL_PLATFORMS_COUNT): Increase.
4616         (_dl_string_platform): Handle power6x case.
4617         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
4618         PPC_FEATURE_POWER6_EXT): Define.
4619         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
4621 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
4623         [BZ #3747]
4624         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
4625         [-2^31 .. 2^31) range.
4626         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
4627         targets.
4628         * stdlib/tst-rand48-2.c: New test.
4629         * stdlib/Makefile (tests): Add tst-rand48-2.
4631 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
4633         * misc/tst-pselect.c (do_test): Fix sigblock argument.
4635 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
4637         * misc/tst-pselect.c (do_test): Make sure the helper process is
4638         terminating when the test is aborted.
4640 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
4642         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
4643         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
4644         Handle relatime mount option.
4646         [BZ #2337]
4647         * libio/Makefile (tests): Add tst-setvbuf1.
4648         * libio/tst-setvbuf1.c: New file.
4650 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
4652         [BZ #2337]
4653         * libio/genops.c (__uflow): Fix a typo.
4654         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
4655         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
4656         the narrow buffer size.
4658 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
4660         [BZ #2337]
4661         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
4662         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
4663         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
4664         in _flags.
4665         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
4666         _IO_wstr_finish): Likewise.
4667         * libio/wmemstream.c (open_wmemstream): Likewise.
4668         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
4669         even for wide streams.
4671 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
4673         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
4674         kernel-features.h.
4676 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
4678         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
4679         separators also if no non-zero digits found.
4680         * stdlib/Makefile (tests): Add tst-strtod3.
4682 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
4684         [BZ #3632]
4685         * include/features.h: Fix comment about default value for
4686         _POSIX_C_SOURCE.
4688         [BZ #3664]
4689         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
4690         empty parsed strings.
4691         * stdlib/Makefile (tests): Add tst-strtod2.
4692         * stdlib/tst-strtod2.c: New file.
4694         [BZ #3673]
4695         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
4696         computation.
4697         * stdlib/Makefile (tests): Add tst-atof2.
4698         * stdlib/tst-atof2.c: New file.
4700         [BZ #3674]
4701         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
4702         correctly if removing trailing zero of hex-float.
4703         * stdlib/Makefile (tests): Add tst-atof1.
4704         * stdlib/tst-atof1.c: New file.
4706 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
4708         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
4709         Start searching for next comma at p rather than rest.
4710         * misc/Makefile (tests): Add tst-mntent2.
4711         * misc/tst-mntent2.c: New test.
4713         * misc/getusershell.c (initshells): Check for integer overflows.
4714         Make strings buffer one bigger as fgets always succeeds when second
4715         argument is 1.  Don't use calloc for shells array.  Disallow
4716         / as shell.
4718 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
4720         * malloc/memusage.c: Handle realloc with new size of zero and
4721         non-NULL pointer correctly.
4722         (me): Really write first record twice.
4723         (struct entry): Make format bi-arch safe.
4724         (dest): Write out more realloc statistics.
4725         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
4727 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
4729         * nis/nis_subr.c (nis_getnames): Revert last change.
4731 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
4733         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
4734         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
4735         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
4736         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
4737         ENOTTY.
4738         * io/Makefile: Add rules to build and run tst-ttyname_r test.
4739         * io/tst-ttyname_r.c: New test.
4741 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4743         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
4745 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
4747         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
4748         jump table entries.
4750 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
4752         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
4753         `clone' function to ensure proper unwinding stop of gdb.
4754         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
4756 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
4758         * nscd/nscd.init: Remove obsolete and commented-out -S option
4759         handling.
4761 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
4763         [BZ #3514]
4764         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
4766         [BZ #3515]
4767         * manual/string.texi (strtok): Remove duplicate paragraph.
4769 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4771         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
4772         libgcc not supporting `rflags' unwinding (register # >= 17).
4774 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
4776         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
4777         succeeded.
4779 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
4780             Jakub Jelinek  <jakub@redhat.com>
4781             Jan Kratochvil  <jan.kratochvil@redhat.com>
4783         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
4784         unwind information.
4785         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
4786         'restore_rt' even in the 'signal' directory.
4787         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
4789 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
4791         [BZ #3559]
4792         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
4793         malloc crashed.  Don't allocate memory unnecessarily in each
4794         loop.
4796 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
4798         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
4800 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
4802         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
4804 2006-11-18  Bruno Haible  <bruno@clisp.org>
4806         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
4807         __sysconf only after having tried to call getgroups32.
4809 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
4811         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
4812         addresses for IPv4 queries if they can be mapped.
4814 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
4816         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
4817         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
4818         (signmask): Add .size directive.
4819         (othermask): Add .type directive.
4821 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
4823         * po/nl.po: Update from translation team.
4825         * timezone/zdump.c: Redo fix for BZ #3137.
4827 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
4829         * nss/nss_files/files-alias.c (get_next_alias): Set line back
4830         to first_unused after parsing :include: file.
4832 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
4834         * timezone/africa: Update from tzdata2006o.
4835         * timezone/antarctica: Likewise.
4836         * timezone/asia: Likewise.
4837         * timezone/australasia: Likewise.
4838         * timezone/backward: Likewise.
4839         * timezone/europe: Likewise.
4840         * timezone/iso3166.tab: Likewise.
4841         * timezone/northamerica: Likewise.
4842         * timezone/southamerica: Likewise.
4843         * timezone/zone.tab: Likewise.
4845         * time/tzfile.c (__tzfile_read): Extend to handle new file format
4846         on machines with 64-bit time_t.
4848         * timezone/checktab.awk: Update from tzcode2006o.
4849         * timezone/ialloc.c: Likewise.
4850         * timezone/private.h: Likewise.
4851         * timezone/scheck.c: Likewise.
4852         * timezone/tzfile.h: Likewise.
4853         * timezone/tzselect.ksh: Likewise.
4854         * timezone/zdump.c: Likewise.
4855         * timezone/zic.c: Likewise.
4857         [BZ #3483]
4858         * elf/ldconfig.c (main): Call setlocale and textdomain.
4859         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
4861         [BZ #3480]
4862         * manual/argp.texi: Fix typos.
4863         * manual/charset.texi: Likewise.
4864         * manual/errno.texi: Likewise.
4865         * manual/filesys.texi: Likewise.
4866         * manual/lang.texi: Likewise.
4867         * manual/maint.texi: Likewise.
4868         * manual/memory.texi: Likewise.
4869         * manual/message.texi: Likewise.
4870         * manual/resource.texi: Likewise.
4871         * manual/search.texi: Likewise.
4872         * manual/signal.texi: Likewise.
4873         * manual/startup.texi: Likewise.
4874         * manual/stdio.texi: Likewise.
4875         * manual/sysinfo.texi: Likewise.
4876         * manual/syslog.texi: Likewise.
4877         * manual/time.texi: Likewise.
4878         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4880         [BZ #3465]
4881         * sunrpc/clnt_raw.c: Minimal message improvements.
4882         * sunrpc/pm_getmaps.c: Likewise.
4883         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
4884         * nis/nis_print_group_entry.c: Likewise.
4885         * locale/programs/repertoire.c: Likewise.
4886         * locale/programs/charmap.c: Likewise.
4887         * malloc/memusage.sh: Likewise.
4888         * elf/dl-deps.c: Likewise.
4889         * locale/programs/ld-collate.c: Likewise.
4890         * libio/vswprintf.c: Likewise.
4891         * malloc/memusagestat.c: Likewise.
4892         * sunrpc/auth_unix.c: Likewise.
4893         * sunrpc/rpc_main.c: Likewise.
4894         * nscd/cache.c: Likewise.
4895         * locale/programs/repertoire.c: Unify output messages.
4896         * locale/programs/charmap.c: Likewise.
4897         * locale/programs/ld-ctype.c: Likewise.
4898         * locale/programs/ld-monetary.c: Likewise.
4899         * locale/programs/ld-numeric.c: Likewise.
4900         * locale/programs/ld-time.c: Likewise.
4901         * elf/ldconfig.c: Likewise.
4902         * nscd/selinux.c: Likewise.
4903         * elf/cache.c: Likewise.
4904         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
4906         [BZ #3451]
4907         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
4908         change atomic.
4909         (ceil): Likewise.
4911 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
4913         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
4914         if N is one bigger than return value.
4915         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
4916         and l1 last arguments, if buf is defined, verify the return value
4917         equals to strlen (buf) and verify no byte beyond passed length
4918         is modified.
4920 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
4922         * po/sv.po: Update from translation team.
4924 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
4926         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
4927         noinline attribute.
4929 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
4931         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
4932         noinline attribute.
4934         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
4935         Use __new_sys_siglist instead of _sys_siglist_internal as
4936         second macro argument.
4937         (_old_sys_siglist): Use declare_symbol_alias macro instead of
4938         strong_alias.
4940 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
4942         [BZ #3493]
4943         * posix/unistd.h (sysconf): Remove const attribute.
4945         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
4946         temporary or deprecated addresses.
4947         Patch by Sridhar Samudrala <sri@us.ibm.com>.
4949         * string/Makefile (tests): Add tst-strxfrm2.
4950         * string/tst-strxfrm2.c: New file.
4952 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
4954         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
4955         rather than r->r_brk.
4957 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
4959         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
4960         optimization even if needed > n.
4962         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
4963         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
4964         return false, otherwise return true.
4965         (cache_rpath): Return decompose_rpath return value.
4967 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
4969         * include/libc-symbols.h (declare_symbol): Rename to...
4970         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
4971         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
4972         .size directive.
4973         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
4974         changes.
4975         * sysdeps/gnu/siglist.c: Likewise.
4977 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
4979         * sysdeps/powerpc/fpu/bits/mathinline.h
4980         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
4981         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
4983 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
4985         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
4986         Update handling of cache descriptor 0x49 for new models.
4987         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
4988         Likewise.
4990 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
4992         * malloc/memusage.c (dest): Reset not_me back to false after
4993         printing statistics.
4995 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
4997         * configure.in: Work around ld --help change and avoid -z relro
4998         test completely if the architecture doesn't care about security.
5000 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
5002         * po/sv.po: Update from translation team.
5004 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
5006         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
5007         generate compatibility version.
5009 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
5011         * configure.in: Relax -z relro requirement a bit.
5013         * po/sv.po: Update from translation team.
5015 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
5017         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
5018         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
5019         * elf/dl-close.c (_dl_close_worker): Likewise.
5020         * elf/dl-open.c (_dl_open_worker): Likewise.
5021         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
5023 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
5025         * configure.in: Require assembler support for visibility, compiler
5026         support for visibility and aliases, linker support for various -z
5027         options.
5028         * Makeconfig: Remove conditional code which now is unnecessary.
5029         * config.h.in: Likewise.
5030         * config.make.in: Likewise.
5031         * dlfcn/Makefile: Likewise.
5032         * elf/Makefile: Likewise.
5033         * elf/dl-load.c: Likewise.
5034         * elf/rtld.c: Likewise.
5035         * include/libc-symbols.h: Likewise.
5036         * include/stdio.h: Likewise.
5037         * io/Makefile: Likewise.
5038         * io/fstat.c: Likewise.
5039         * io/fstat64.c: Likewise.
5040         * io/fstatat.c: Likewise.
5041         * io/fstatat64.c: Likewise.
5042         * io/lstat.c: Likewise.
5043         * io/lstat64.c: Likewise.
5044         * io/mknod.c: Likewise.
5045         * io/mknodat.c: Likewise.
5046         * io/stat.c: Likewise.
5047         * io/stat64.c: Likewise.
5048         * libio/stdio.c: Likewise.
5049         * nscd/Makefile: Likewise.
5050         * stdlib/Makefile: Likewise.
5051         * stdlib/atexit.c: Likewise.
5052         * sysdeps/generic/ldsodefs.h: Likewise.
5053         * sysdeps/i386/dl-machine.h: Likewise.
5054         * sysdeps/i386/sysdep.h: Likewise.
5055         * sysdeps/i386/i686/memcmp.S: Likewise.
5056         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
5057         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5058         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
5060         * Makerules: USE_TLS support is now default.
5061         * tls.make.c: Likewise.
5062         * csu/Versions: Likewise.
5063         * csu/libc-start.c: Likewise.
5064         * csu/libc-tls.c: Likewise.
5065         * csu/version.c: Likewise.
5066         * dlfcn/dlinfo.c: Likewise.
5067         * elf/dl-addr.c: Likewise.
5068         * elf/dl-cache.c: Likewise.
5069         * elf/dl-close.c: Likewise.
5070         * elf/dl-iteratephdr.c: Likewise.
5071         * elf/dl-load.c: Likewise.
5072         * elf/dl-lookup.c: Likewise.
5073         * elf/dl-object.c: Likewise.
5074         * elf/dl-open.c: Likewise.
5075         * elf/dl-reloc.c: Likewise.
5076         * elf/dl-support.c: Likewise.
5077         * elf/dl-sym.c: Likewise.
5078         * elf/dl-sysdep.c: Likewise.
5079         * elf/dl-tls.c: Likewise.
5080         * elf/ldconfig.c: Likewise.
5081         * elf/rtld.c: Likewise.
5082         * elf/tst-tls-dlinfo.c: Likewise.
5083         * elf/tst-tls1.c: Likewise.
5084         * elf/tst-tls10.h: Likewise.
5085         * elf/tst-tls14.c: Likewise.
5086         * elf/tst-tls2.c: Likewise.
5087         * elf/tst-tls3.c: Likewise.
5088         * elf/tst-tls4.c: Likewise.
5089         * elf/tst-tls5.c: Likewise.
5090         * elf/tst-tls6.c: Likewise.
5091         * elf/tst-tls7.c: Likewise.
5092         * elf/tst-tls8.c: Likewise.
5093         * elf/tst-tls9.c: Likewise.
5094         * elf/tst-tlsmod1.c: Likewise.
5095         * elf/tst-tlsmod13.c: Likewise.
5096         * elf/tst-tlsmod13a.c: Likewise.
5097         * elf/tst-tlsmod14a.c: Likewise.
5098         * elf/tst-tlsmod2.c: Likewise.
5099         * elf/tst-tlsmod3.c: Likewise.
5100         * elf/tst-tlsmod4.c: Likewise.
5101         * elf/tst-tlsmod5.c: Likewise.
5102         * elf/tst-tlsmod6.c: Likewise.
5103         * include/errno.h: Likewise.
5104         * include/link.h: Likewise.
5105         * include/tls.h: Likewise.
5106         * locale/global-locale.c: Likewise.
5107         * locale/localeinfo.h: Likewise.
5108         * malloc/arena.c: Likewise.
5109         * malloc/hooks.c: Likewise.
5110         * malloc/malloc.c: Likewise.
5111         * resolv/Versions: Likewise.
5112         * sysdeps/alpha/dl-machine.h: Likewise.
5113         * sysdeps/alpha/libc-tls.c: Likewise.
5114         * sysdeps/generic/ldsodefs.h: Likewise.
5115         * sysdeps/generic/tls.h: Likewise.
5116         * sysdeps/i386/dl-machine.h: Likewise.
5117         * sysdeps/ia64/dl-machine.h: Likewise.
5118         * sysdeps/ia64/libc-tls.c: Likewise.
5119         * sysdeps/mach/hurd/fork.c: Likewise.
5120         * sysdeps/mach/hurd/i386/tls.h: Likewise.
5121         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
5122         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
5123         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
5124         * sysdeps/s390/libc-tls.c: Likewise.
5125         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
5126         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5127         * sysdeps/sh/dl-machine.h: Likewise.
5128         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
5129         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
5130         * sysdeps/x86_64/dl-machine.h: Likewise.
5132         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
5133         split out locking and parameter checking.
5134         (_dl_close): Call _dl_close_worker after locking and checking.
5135         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
5136         _dl_close.
5137         * elf/Makefile: Add rules to build and run tst-thrlock.
5138         * elf/tst-thrlock.c:  New file.
5140         [BZ #3426]
5141         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
5142         reality.
5144         [BZ #3429]
5145         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
5146         we are sure we do not need it anymore for _dl_close.  Also move
5147         the asserts inside the lock region.
5148         Patch mostly by Suzuki <suzuki@in.ibm.com>.
5150 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
5152         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
5153         argument.
5154         (_dl_lookup_symbol_x): Adjust caller.
5156         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
5157         _ns_global_scope.
5158         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
5160         * elf/dl-libc.c: Revert l_scope name changes.
5161         * elf/dl-load.c: Likewise.
5162         * elf/dl-object.c: Likewise.
5163         * elf/rtld.c: Likewise.
5164         * elf/dl-close.c (_dl_close): Likewise.
5165         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
5166         always use __rtld_mrlock_{change,done}.  Always free old scope list
5167         here if not l_scope_mem.
5168         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
5169         change.  Never free scope list here.  Just __rtld_mrlock_lock before
5170         the lookup and __rtld_mrlock_unlock it after the lookup.
5171         * elf/dl-sym.c: Likewise.
5172         * include/link.h (struct r_scoperec): Remove.
5173         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
5174         with l_scope_mem and l_scoperec_lock with l_scope_lock.
5176 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
5178         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
5180 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
5182         * configure.in: Disable building profile libraries by default.
5184 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
5186         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
5187         as signed longs, check for x_base + pos overflow.
5188         * sunrpc/Makefile (tests): Add tst-xdrmem2.
5189         * sunrpc/tst-xdrmem2.c: New test.
5191 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
5193         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
5194         _dl_lookup_symbol_x code.
5196 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
5198         * elf/dl-runtime.c: Include sysdep-cancel.h.
5199         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
5200         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
5201         instead of catomic_* macros.
5202         * elf/dl-sym.c: Include sysdep-cancel.h.
5203         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
5204         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
5205         * elf/dl-close.c: Include sysdep-cancel.h.
5206         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
5207         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
5208         * elf/dl-open.c: Include sysdep-cancel.h.
5209         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
5210         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
5212 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
5214         [BZ #3313]
5215         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
5216         fastbin rather than end of fastbin array.
5218 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
5220         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
5221         body macro.
5222         * sysdeps/x86_64/bits/atomic.h
5223         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
5224         (catomic_decrement): Use correct body macro.
5226 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
5228         * include/atomic.h: Add a unique prefix to all local variables
5229         in macros.
5230         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
5232 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
5234         [BZ #3369]
5235         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
5236         and 7.
5238 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
5240         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
5242 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
5244         [BZ #3313]
5245         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
5246         determine highest fast bin to consolidate, always look into all of
5247         them.
5248         (do_check_malloc_state): Only require for empty bins for large
5249         sizes in main arena.
5251         * libio/stdio.h: Add more __wur attributes.
5253         * elf/dl-minimal.c (realloc): Optimize last patch.
5255 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
5257         [BZ #3352]
5258         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
5259         and use memcpy() if it does.
5261 2006-11-12  Andreas Jaeger  <aj@suse.de>
5263         [BZ #2510]
5264         * manual/search.texi (Hash Search Function): Clarify.
5265         (Array Search Function): Clarify.
5267 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
5269         [BZ #2830]
5270         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
5271         shifting.
5272         * math/atest-exp2.c (read_mpn_hex): Likewise.
5273         * math/atest-sincos.c (main): Likewise.
5275 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
5277         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
5278         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
5279         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
5280         version GLIBC_2.6.
5281         * Versions.def: Add GLIBC_2.6 for libc.
5283         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
5285         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
5287 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
5289         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
5291         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
5293         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
5294         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
5296 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
5298         * include/atomic.c: Define catomic_* operations.
5299         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
5300         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
5301         * malloc/memusage.c: Likewise.
5302         * gmon/mcount.c: Likewise.
5303         * elf/dl-close.c: Likewise.
5304         * elf/dl-open.c: Likewise.
5305         * elf/dl-profile.c: Likewise.
5306         * elf/dl-sym.c: Likewise.
5307         * elf/dl-runtime.c: Likewise.
5308         * elf/dl-fptr.c: Likewise.
5309         * resolv/res_libc.c: Likewise.
5311 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
5313         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
5314         components which lack them.
5316         * nis/nis_subr.c (nis_getnames): Make sure that we always return
5317         at least one entry consisting of the parameter concatenated with
5318         the domain.
5320 2006-10-10  Roland McGrath  <roland@frob.com>
5322         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
5323         * sysdeps/mach/hurd/futimes.c: Likewise.
5324         * sysdeps/mach/hurd/lutimes.c: Likewise.
5326 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
5327             Jakub Jelinek  <jakub@redhat.com>
5329         Implement reference counting of scope records.
5330         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
5331         from the list in objects which remain.  Always allocate new scope
5332         record.
5333         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
5334         don't resize, allocate a new one.
5335         * elf/dl-runtime.c: Update reference counters before using a scope
5336         array.
5337         * elf/dl-sym.c: Likewise.
5338         * elf/dl-libc.c: Adjust for l_scope name change.
5339         * elf/dl-load.c: Likewise.
5340         * elf/dl-object.c: Likewise.
5341         * elf/rtld.c: Likewise.
5342         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
5343         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
5344         Add l_scoperec_lock.
5345         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
5346         * sysdeps/generic/rtld-lowlevel.h: New file.
5348         * include/atomic.h: Rename atomic_and to atomic_and_val and
5349         atomic_or to atomic_or_val.  Define new macros atomic_and and
5350         atomic_or which do not return values.
5351         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
5352         Various cleanups.
5353         * sysdeps/i386/i486/bits/atomic.h: Likewise.
5355         * po/sv.po: Update from translation team.
5357 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
5359         * Versions.def: Add GLIBC_2.6 to libpthread.
5361         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
5362         (versioned_symbol): Likewise.
5363         (compat_symbol): Likewise.
5365         * po/tr.po: Update from translation team.
5367 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
5369         * nis/Banner: Removed.  It's been integral part forever and the
5370         author info is incomplete anyway.
5371         * libio/Banner: Likewise.
5373         * nis/nis_table.c (nis_list): If __follow_path fails in the new
5374         code, make sure the nis_freeresult call doesn't crash and that the
5375         result is reported correctly.
5377 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
5379         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
5380         when callback is NULL.
5382         * nis/Versions (libnss_nisplus): Add
5383         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
5384         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
5385         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
5386         _nss_create_tablename): Rename to...
5387         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
5388         ... these.  No longer static.
5389         (internal_setgrent): Adjust users.
5390         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
5391         Don't use locking around _nss_grp_create_tablename call.
5392         * nis/nss_nisplus/nisplus-initgroups.c: New file.
5394 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
5396         * version.h (VERSION): Bump to 2.5.90 for new development tree.
5398 2006-10-06  Andreas Jaeger  <aj@suse.de>
5400         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
5402 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
5404         * po/pl.po: Update from translation team.
5406         * nscd/nscd.c (main): Fix typo in message.
5407         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
5409 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
5411         [BZ #3291]
5412         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
5413         errno.h, signal.h, unistd.h and sysdep-cancel.h.
5414         (__sigprocmask): Define.
5416 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
5418         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
5419         used.
5421 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
5423         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
5424         in oldtotal and newtotal calculation.
5425         * nscd/nscd-client.h (struct mapped_database): Add datasize
5426         field.
5427         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
5428         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
5429         increased.
5430         (__nscd_cache_search): Add checks to make sure we never reference
5431         data beyond the current mapping.
5433 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
5435         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
5436         variables const to avoid compiler warnings.
5438         * io/fts.c (fts_close): Remove redundant checks.
5439         (fts_build): Likewise.
5440         (fts_palloc): Likewise.
5442         * manual/message.texi (Advanced gettext functions,
5443         Using gettextized software): Fix typos.
5445 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
5447         * posix/glob.c (glob_in_dir): Add some comments and asserts to
5448         explain why there are no leaks.
5450 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
5452         * libio/wmemstream.c: Include <wchar.h>.
5453         * libio/bug-wmemstream1.c: Likewise.
5454         * libio/tst-wmemstream1.c: Likewise.
5455         * libio/tst-wmemstream2.c: Likewise.
5457         * version.h (RELEASE): Bump to 2.5.
5458         * README: Regenerated.
5460         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
5462         [BZ #3273]
5463         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
5464         found no group members.
5465         Patch by Petr Baudis.
5467 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
5469         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
5470         assert bootstrap_map.l_tls_modid is zero.
5471         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
5472         if USE___THREAD.
5474 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
5476         * libio/stdio.h: Move open_wmemstream prototype to ...
5477         * wcsmbs/wchar.h: ... here.
5479 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
5481         [BZ #3252]
5482         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
5483         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
5484         __{,l}chown to handle the rest.
5485         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
5486         fchownat syscall and __ASSUME_32BITUIDS case inline, call
5487         __{,l}chown to handle the rest.
5488         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
5489         i386/fchownat.c.
5490         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
5491         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
5493         [BZ #3253]
5494         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
5495         time, rather allocate increasingly bigger arrays of pointers, if
5496         possible with alloca, if too large with malloc.
5498 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
5500         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
5502         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
5504 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
5506         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
5507         home addresses.
5508         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
5509         IFA_F_HOMEADDRESS flag for interfaces.
5510         * include/ifaddrs.h (struct in6addrinfo): Define
5511         in6ai_homeaddress.
5513 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
5515         [BZ #3225]
5516         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
5517         PTR_DEMANGLE3): Define.
5518         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
5519         PTR_DEMANGLE3): Likewise.
5520         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
5521         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
5522         Likewise.
5523         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
5525 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
5527         * po/libc.pot: Regenerated.
5528         * po/be.po: Updated.
5529         * po/ca.po: Likewise.
5530         * po/cs.po: Likewise.
5531         * po/da.po: Likewise.
5532         * po/de.po: Likewise.
5533         * po/el.po: Likewise.
5534         * po/en_GB.po: Likewise.
5535         * po/es.po: Likewise.
5536         * po/fi.po: Likewise.
5537         * po/fr.po: Likewise.
5538         * po/gl.po: Likewise.
5539         * po/hr.po: Likewise.
5540         * po/hu.po: Likewise.
5541         * po/ja.po: Likewise.
5542         * po/ko.po: Likewise.
5543         * po/nb.po: Likewise.
5544         * po/nl.po: Likewise.
5545         * po/pl.po: Likewise.
5546         * po/pt_BR.po: Likewise.
5547         * po/ru.po: Likewise.
5548         * po/rw.po: Likewise.
5549         * po/sk.po: Likewise.
5550         * po/sv.po: Likewise.
5551         * po/tr.po: Likewise.
5552         * po/zh_CN.po: Likewise.
5553         * po/zh_TW.po: Likewise.
5555         [BZ #3137]
5556         * iconv/iconv_prog.c (main): Fix spelling in error message.
5557         * iconv/iconvconfig.c (main): Likewise.
5558         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
5559         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
5560         * locale/programs/localedef.c (main): Likewise.
5561         * locale/programs/repertoire.c (repertoire_read): Likewise.
5562         * timezone/zdump.c (main): Likewise.
5563         * nscd/connections.c (handle_request): Fix spelling in log message.
5564         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
5566 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
5568         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
5569         interfaces.
5571 2006-09-20  Andreas Jaeger  <aj@suse.de>
5573         * math/libm-test.inc (lrint_test_upward): Fix typo.
5575 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
5577         [BZ #2592]
5578         * math/libm-test.inc (lrint_test_tonearest): New function.
5579         (lrint_test_towardzero): New function.
5580         (lrint_test_downward): New function.
5581         (lrint_test_upward): New function.
5582         (main): Run these new tests.
5583         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
5584         of values near to 0.
5585         (two52): Use double not long double.
5586         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
5587         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
5588         (two23): Use float not double.
5589         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
5590         (two23): Use float not double.
5591         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
5592         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
5593         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
5594         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
5596 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5598         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
5599         Cast sp to unsigned long to avoid compiler warning.
5600         Use __makecontext_ret function instead of a trampoline on the stack.
5601         (__makecontext_ret): New function.
5602         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
5604 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
5606         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
5607         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
5608         bits.
5610 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
5612         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
5613         sure no reference to the unloaded map's search list remains in the
5614         dependency's scope.
5616 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
5618         * elf/Makefile: Add rules to build and run unload7 test.
5619         * elf/unload7.c: New test.
5620         * elf/unload7mod1.c: New file.
5621         * elf/unload7mod2.c: New file.
5623 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
5625         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
5626         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
5627         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
5628         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
5629         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
5630         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
5631         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
5632         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
5633         PTRACE_GETEVENTMSG): Likewise.
5634         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
5635         values.
5637 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
5639         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
5640         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
5641         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
5642         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
5644 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
5646         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
5647         write '\0' to the fd.
5648         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
5649         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
5650         Change regs to unsigned long pointer from unsigned int, fix fscr
5651         offset.
5653 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
5655         * io/Makefile (CFLAGS-fstatat.c): Set.
5656         (CFLAGS-fstatat64.c): Likewise.
5657         (CFLAGS-mknodat.c): Likewise.
5659         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
5660         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
5661         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
5662         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
5664 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
5665             Steven Munroe  <sjmunroe@us.ibm.com>
5667         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
5668         names to the beginning.  Rename "cell" to "cellbe".
5669         (_dl_powerpc_platforms): New.
5670         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
5671         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
5672         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
5673         (_DL_HWCAP_PLATFORM): Define to new mask.
5674         (_dl_platform_string, _dl_string_platform): New functions.
5675         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
5676         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
5678 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
5680         [BZ #2526]
5681         * README.libm: Fix a thinko in sqrt algorithm description.
5683         [BZ #3143]
5684         * manual/string.texi (argz_delete): Fix prototype.
5685         Patch by <alpt@freaknet.org>.
5687 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
5689         [BZ #3138]
5690         * io/test-lfs.c (do_prepare): Give name_len type size_t.
5691         * io/tst-fcntl.c (do_prepare): Likewise.
5692         * posix/tst-exec.c (do_prepare): Likewise.
5693         * posix/tst-preadwrite.c (do_prepare): Likewise.
5694         * posix/tst-spawn.c (do_prepare): Likewise.
5695         * posix/tst-truncate.c (do_prepare): Likewise.
5696         * rt/tst-aio.c (do_prepare): Likewise.
5697         * rt/tst-aio64.c (do_prepare): Likewise.
5698         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
5699         size_t.
5701 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
5703         [BZ #2821]
5704         * time/mktime.c (guess_time_tm): Fix overflow detection.
5705         * time/Makefile (tests): Add bug-mktime1.
5706         * time/bug-mktime1.c: New file.
5708         [BZ #3189, #3188]
5709         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
5710         (mremap): Likewise.
5712 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
5714         [BZ #1006]
5715         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
5716         Ensure relocation doesn't clobber any bits outside of the
5717         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
5718         R_SPARC_HI22 and R_SPARC_H44.
5720         [BZ #2775]
5721         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
5722         (long) (MINSIZE + nb - old_size) is positive.
5724         * malloc/arena.c (grow_heap): When growing bail even if new_size
5725         is negative.
5727         [BZ #3155]
5728         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
5729         stack below r1.
5731 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
5733         * posix/regex_internal.c (re_string_reconstruct): Handle
5734         offset < pstr->valid_raw_len && pstr->offsets_needed case.
5735         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
5736         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
5737         re_string_context_at.
5738         * posix/Makefile: Add rules to build and run bug-regex26 test.
5739         * posix/bug-regex26.c: New test.
5741         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
5742         rather than col_sym_free.  Move seqp declaration earlier.
5744         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
5746 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
5748         * nscd/initgrcache.c (addinitgroupsX): Move any_success
5749         decl before first goto out.
5751 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
5753         * Makerules (shlib.lds): If have-hash-style, put .hash section
5754         at the end of the RO segment.
5756 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
5758         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
5759         style hash table format is used.
5761 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
5763         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
5764         randomization rather than before.
5765         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
5767 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
5769         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
5771         * malloc/malloc.c (_int_malloc): Use full list insert and not
5772         shortcut which assumes the list is empty for large requests
5773         too.
5775         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
5777 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
5779         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
5780         and offout arguments to the prototype.
5781         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
5782         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
5783         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
5784         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
5785         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
5786         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
5787         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
5788         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
5790 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
5792         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
5794         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
5795         dlopen parameters.
5797 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
5799         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
5800         only if herrno is NETDB_INTERNAL.  Handle errors other than
5801         ERANGE outside of the loops, handle TRY_AGAIN.
5803         * locale/programs/ld-ctype.c (translit_flatten): Issue error
5804         if other's ctype category was missing.
5805         * locale/programs/ld-collate.c (collate_read): Return if
5806         copy_locale's collate category is missing.
5808 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
5810         [BZ #2684]
5811         * malloc/malloc.c (public_rEALLOc): Try harder by using other
5812         arenas if allocation failed.
5813         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
5815 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
5817         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
5818         waste bins[0..1].
5819         (malloc_state): Reduce bins size by 2.
5820         (_int_malloc): Fix test for large enough buffer for early termination.
5821         When no unsorted block matches perfectly and an exiting block has
5822         to be split, use full list insert and not shortcut which assumes
5823         the list is empty.
5825         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
5826         failure.
5828 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
5830         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
5831         do anything.
5833         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
5834         symbol require exact match (these are PLTs).
5835         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
5836         (_dl_ppc64_addr_sym_match): Likewise.
5838         [BZ #2683]
5839         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
5840         If symbol has a value use it.
5841         * elf/tst-dladdr1.c: New file.
5842         * elf/Makefile: Add rules to build and run tst-addr1.
5844 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
5846         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
5847         keeps failing and heap growth or new heap creation isn't
5848         successful either.
5849         * malloc/tst-malloc.c (main): Add new tests.
5851 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
5853         [BZ #2734]
5854         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
5855         as in the x86-64 code to use bswap.
5857 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
5859         [BZ #2680]
5860         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
5861         __USE_UNIX98.
5862         * posix/bits/unistd.h: Likewise.
5864 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
5866         [BZ #2751]
5867         * string/strchr.c: Add cast to avoid warning.
5869 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
5871         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
5872         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
5873         limit is needed to avoid the exploding of the address space
5874         requirement for secondary heaps.
5875         * malloc/arena.c (HEAP_MAX_SIZE): Define using
5876         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
5878 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
5880         [BZ #3018]
5881         * Makerules (depfiles): Handle extra-test-objs the same as
5882         extra-objs.
5883         (common-mostlyclean): Likewise.
5884         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
5885         instead.
5886         * elf/Makefile (extra-objs): Likewise.
5887         * stdlib/Makefile (extra-objs): Likewise.
5889 2006-08-14  Eric Blake  <ebb9@byu.net>
5891         [BZ #3044]
5892         * misc/error.h: Assume C89 or better.
5893         * misc/error.c: Likewise.
5895 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
5897         [BZ #3040]
5898         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
5899         __ASSUME_ATFCTS is defined.
5901 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
5903         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
5904         to sort in each call.
5906         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
5907         is empty simply return and use next service.
5908         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
5910         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
5911         tells us when not finding a charmap file is an error.
5912         * locale/programs/charmap.h: Adjust charmap_read prototype.
5913         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
5914         cannot find a charmap.
5915         * locale/programs/localedef.c (main): Adjust charmap_read call.
5917 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
5919         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
5920         sysdeps/posix/pause.c implementation instead.
5922 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
5924         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
5925         to EPERM.
5927 2006-08-13  Andreas Schwab  <schwab@suse.de>
5929         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
5930         Don't clobber caller's LRSAVE.
5931         (_dl_prof_resolve): Likewise.
5933 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
5935         [BZ #1996]
5936         * libio/memstream.c (open_memstream): Allocate initial buffer with
5937         calloc.
5938         * libio/wmemstream.c (open_wmemstream): Likewise.
5939         * libio/strops.c: Pretty printing.
5940         (_IO_str_overflow): Clear uninitialized part of the new buffer.
5941         (enlarge_userbuf): New function.
5942         (_IO_str_seekoff): Call it if seek position is larger than current
5943         buffer.
5944         * libio/wstrops.c: Likewise.
5945         * libio/vasprintf.c: Add comment as to why we do not have to use
5946         calloc instead of malloc to allocate initial buffer.
5947         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
5948         * libio/bug-memstream1.c: New file.
5949         * libio/bug-wmemstream1.c: New file.
5951 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
5953         * libio/wstrops.c: Remove dead macro definitions and comments.
5954         * libio/strops.c: Likewise.
5956         [BZ #2764]
5957         * login/utmpname.c (__utmpname): Remove unnecessary test.
5959 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
5961         [BZ #2832]
5962         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
5963         0s from integers.
5965 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
5967         [BZ #2987]
5968         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
5969         for CPU clocks.
5970         * sysdeps/unix/clock_settime.c: Add support for platform-specific
5971         setting of CPU clocks.
5973 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
5975         [BZ #2841]
5976         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
5977         since C99 requires the result to promote to 'int' when uint_least8_t
5978         and uint_least16_t promote to 'int'.
5980 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
5982         [BZ #3013]
5983         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
5984         lenght of one output field, correct bitmask creation.
5985         * locale/programs/ld-time.c: Add alignment.
5987         [BZ #2997]
5988         * misc/error.c: Add space between program name and message if file
5989         name is missing.
5991 2006-08-03  Eric Blake  <ebb9@byu.net>
5993         [BZ #2998]
5994         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
5996 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
5998         * malloc/memusagestat.c: Silence warnings.
6000         * malloc/malloc.c: Dynamically size mmap treshold if the program
6001         frees mmaped blocks.
6002         Patch by Valerie Henson and Arjan van de Ven.
6004 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
6006         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
6007         __USE_GNU.
6009         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
6010         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
6011         (DEF): Don't put the var into .gnu.linkonce.r.* section.
6012         Only provide var definitions in strtol_l (or for *ull*
6013         in strtoll_l).
6015         * stdio-common/bug16.c (tests): New array.
6016         (do_tests): Allow the first hexadecimal digit
6017         to be 1, 2, 4 or 8.  Do 3 additional tests.
6019         * sysdeps/s390/fpu/libm-test-ulps: Update.
6021         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
6022         fchownat syscall if available.
6023         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
6024         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
6025         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
6027 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
6029         * nis/nis_xdr.c: Avoid some function calls.
6031 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
6032             Ulrich Drepper  <drepper@redhat.com>
6034         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
6035         short cut if only one name component is stripped away.
6037 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
6039         * nis/nis_call.c: Minor cleanups throughout.
6040         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
6041         (first_shoot): Add search_parent_first parameter.  Only if it is set
6042         search parent server first.
6043         If directory for table found through cold start cache is not the same
6044         as referenced in the cache, don't use it.
6045         (__nisfind_server): Take additional parameter.  Pass it on to
6046         first_shoot.
6047         (__prepare_niscall): Adjust __nisfind_server call.
6048         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
6049         * nis/nis_table.c: Adjust __nisfind_server call.
6050         * nis/nis_lookup.c: Likewise.
6051         (nis_lookup): Don't loop endlessly if name is reduced to ".".
6053 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
6055         [BZ #2182]
6056         * math/s_cacosh.c: Return values from positive branch.
6057         * math/s_cacoshf.c: Likewise.
6058         * math/s_cacoshl.c: Likewise.
6060         [BZ #2883]
6061         * sysvipc/sys/msg.h: Change return value to ssize_t.
6062         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
6063         * sysvipc/msgrcv.c: Likewise.
6064         * include/sys/msg.h: Likewise.
6066         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
6067         test introduced in patch for bz #661.
6068         (getgrouplist): Simplify code a bit.  Don't allocate one additional
6069         element for NEWGROUPS.
6071         [BZ #2908]
6072         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
6073         'f', use '1' as leading digit not '\1'.
6074         * stdio-common/Makefile (tests): Add bug16.
6075         * stdio-common/bug16.c: New file.
6077         [BZ #2914]
6078         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
6079         and don't try to open it.  The patch introducing the macro
6080         contained a bug and used the same file name as the new file
6081         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
6082         this out completely.
6084         [BZ #2926]
6085         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
6086         Patch by Jerry James <Jerry.James@usu.edu>.
6088         * rt/Makefile (tests): Add tst-clock2.
6089         * rt/tst-clock2.c: New file.
6091         [BZ #2978]
6092         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
6093         function and its parameters and pass it to new thread.
6094         (__gai_notify): Add support for alternative waiting for completion.
6095         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
6096         waiting for completion.
6097         * resolv/getaddrinfo_a.c: Likewise.
6098         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
6099         waiting for completion is used.
6100         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
6101         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
6102         * resolv/gai_error.c: Likewise.
6103         * resolv/gai_sigqueue.c: Likewise.
6105 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
6107         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
6108         errno to EBADF and return MACH_PORT_NULL.
6110 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
6112         [BZ #2980]
6113         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
6115 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
6117         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
6118         walk them instead of the symbol table.
6120 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
6122         [BZ #2098]
6123         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
6124         status of NSS calls, not the number of returned entries.
6126         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
6127         request_key, keyctl.
6129 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
6131         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
6133 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
6135         * elf/tst-auditmod1.c: Fix typo in #error.
6137 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
6139         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
6141         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
6143 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
6145         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
6146         that the directory is empty even on non-POSIX filesystems.
6148 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
6150         * elf/dl-open.c (dl_open_worker): Add branch prediction.
6152         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
6153         the backend NSS module.  If backend setgrent call failed, don't have
6154         internal_setgrent fail.  Just remember this until it is needed.
6155         * nis/nss_compat/compat-pwd.c: Likewise.
6156         * nis/nss_compat/compat-spwd.c: Likewise.
6158 2006-07-30  Roland McGrath  <roland@redhat.com>
6160         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
6161         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
6162         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
6163         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
6165         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
6166         (nanosleep_not_cancel): New macro.
6167         (sigsuspend_not_cancel): new macro.
6168         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
6169         (do_sigsuspend): Define as inline.
6170         (__sigsuspend): Always use do_sigsuspend.
6171         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
6172         * include/signal.h: Declare __sigsuspend_nocancel.
6173         * sysdeps/posix/pause.c
6174         [! NO_CANCELLATION] (__pause_nocancel): New function.
6176         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
6177         * include/time.h (__nanosleep_nocancel): Likewise.
6179 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
6181         * locale/programs/localedef.c (add_to_readlist): Rename local
6182         variables to avoid confusion.
6184         * locale/programs/charmap.c (charmap_read): Emit error message if
6185         charmap couldn't be found or read.
6187 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
6189         * sysdeps/unix/sysv/linux/kernel-features.h: Define
6190         __ASSUME_FUTEX_LOCK_PI.
6191         * include/time.h: Declare __nanosleep_nocancel.
6192         * include/unistd.h: Declare __pause_nocancel.
6194         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
6195         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
6196         get the __stack_chk_fail_local definition when it's needed.
6198 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
6200         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
6201         * dlfcn/bug-atexit3.c: New file.
6202         * dlfcn/bug-atexit3-lib.cc: New file.
6204         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
6205         used when the namespace is not the base namespace.
6207 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
6209         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
6210         (__new_exitfn): Bump it in every successful call.
6211         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
6212         more exit handlers, call them right away.
6213         * stdlib/exit.h: Declare __new_exitfn_called.
6215 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
6217         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
6218         calling registered handler.
6220         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
6221         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6222         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6223         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
6224         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6225         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6226         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6227         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6229 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
6231         * elf/dl-lookup.c (dl_new_hash): New functions.
6232         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
6233         value here.  Compute new-style hash value.  Pass new hash value
6234         and reference to variable with the old value to do_lookup_x.
6235         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
6236         old-style hash table.
6237         (_dl_debug_bindings): Pass new hash value and reference to variable
6238         with the old value to do_lookup_x.
6239         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
6240         new-style hash value and change old-style hash value parameter to
6241         be a reference.  Reoganize functions to determine whether
6242         new-style hash table is available.  Only fall back on old-style
6243         table.  If old-style hash value is needed, compute it here.
6244         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
6245         entry.
6246         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
6247         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
6248         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
6249         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
6250         * Makeconfig: If linker supports --hash-style option add it to all
6251         linker command lines to build DSOs.
6252         * config.make.in: Define have-hash-style.
6253         * configure.in: Test whether linker supports --hash-style option.
6255         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
6256         * sysdeps/generic/ldsodefs.h: Adjust prototype.
6258 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
6260         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
6261         auditing.
6263         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
6264         RPATH of main map twice.
6266 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
6268         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
6269         look further, return original strings.
6270         (_nl_find_msg): Do not return found translation if the conversion
6271         failed.  Either signal the string is unusable or that something went
6272         wrong and the original should be used.
6274 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
6276         * string/_strerror.c (__strerror_r): Add __builtin_expect.
6278 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
6280         [BZ #2766]
6281         * misc/insremque.c (insque): Handle prev == NULL.
6282         * misc/Makefile (tests): Add tst-insremque.
6283         * misc/tst-insremque.c: New test.
6285 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
6287         [BZ #2792]
6288         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
6289         conflict with DL_DST_REQUIRED.
6291 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
6293         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
6294         match what Solaris does.
6296 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
6298         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
6299         local_setegid instead of seteuid and setegid.
6300         * sysdeps/generic/local-setxid.h: New file.
6301         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
6303         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
6305         * string/Makefile (tests): Add bug-envz1.
6306         * string/bug-envz1.c: New file.
6308 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
6310         * posix/regex_internal.c (re_string_skip_chars): If no character has
6311         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
6312         to the byte which couldn't be converted.
6313         (re_string_reconstruct): Don't clear valid_raw_len before calling
6314         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
6315         tip_context using re_string_context_at.
6316         * posix/Makefile: Add rules to build and run bug-regex25 test.
6317         * posix/bug-regex25.c: New test.
6319 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
6321         [BZ #2703]
6322         * string/envz.c (envz_strip): Correct erroneously reversed src
6323         and dest parameters to memmove() invocation.
6325 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
6327         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
6328         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
6329         to make sure the database has been already invalidated.
6330         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
6331         after the cache has been invalidated.  Use pthread_mutex_lock rather
6332         than pthread_mutex_trylock if fd != -1.
6333         * nscd/connections.c (invalidate_cache): Add fd argument, write
6334         response to fd if not calling prune_cache, pass fd to prune_cache.
6335         (handle_request): Adjust invalidate_cache caller.
6336         (nscd_run): Pass -1 as fd to prune_cache.
6338 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
6340         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
6341         the correct place.
6343 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
6345         * nscd/nscd.h (struct database_dyn): Add prunelock field.
6346         * nscd/cache.c (prune_cache): Take prunelock before starting the
6347         work.  Just return in case it is already taken.
6348         * nscd/connections.c (dbs): Initialize .prunelock.
6350 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
6352         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
6353         copying.  No need to allocate new array for group members.  Just
6354         move the pointers and update the size.
6356         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
6357         Avoid memory leak in case realloc fails.  Simplification for
6358         better code generation.
6360         Avoid deprecation warning because of libc_hidden_proto for
6361         inet6_option_alloc.
6362         * inet/inet6_option.c (option_alloc): Renamed from
6363         inet6_option_alloc.  Made static.
6364         (inet6_option_alloc): Now a simple wrapper around option_alloc.
6365         (inet6_option_append): Call option_alloc.
6366         * include/netinet/in.h: Remove libc_hidden_proto for
6367         inet6_option_alloc.
6369         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
6370         for cleanup when cb!=NULL [Coverity CID 233].
6372 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
6374         [BZ #2693]
6375         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
6376         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
6377         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
6378         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
6379         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
6380         and inet6_rth_getaddr.
6381         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
6382         array.
6383         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
6384         Mark inet6_option_* interfaces as deprecated.
6385         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
6386         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
6387         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
6388         inet6_rth_segments, and inet6_rth_getaddr.
6389         * inet/inet6_opt.c: New file.
6390         * inet/inet6_rth.c: New file.
6392         * inet/netinet/icmp6.h: Pretty printing.
6394         [BZ #2683]
6395         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
6397 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
6399         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
6400         doing it all here.  When server does not know the answer do not
6401         fail immediate, try parent first.
6403         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
6404         overflow test.
6406 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
6408         * nis/nis_call.c (__prepare_niscall): New function.  Split out
6409         from __do_niscall.
6410         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
6411         and exported.
6412         (__follow_path): New function.  Split out from nis_list.
6413         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
6414         _xdr_nis_result.
6415         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
6416         _xdr_nis_result.
6417         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
6418         and __follow_path.
6419         * nis/Versions: Export __prepare_niscall, __create_ib_request,
6420         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
6421         from libnsl for version GLIBC_PRIVATE.
6422         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
6423         Remove entry parameter from _nss_nisplus_parse_pwent and
6424         _nss_nisplus_parse_grent.
6425         * nis/nss_nisplus/nisplus-parser.c: Likewise.
6426         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
6427         again.  Rewrite getpwent handling to not use nis_first_entry and
6428         nis_next_entry.  Roll out own niscall handling.
6429         * nis/nss_nisplus/nisplus-grp.c: Likewise.
6431         * sunrpc/xdr_rec.c: Fix typo in comment.
6433 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
6435         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
6436         handling.
6438         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
6439         to allocate memory for my_pollfd.  Better initialization of
6440         cb_is_running.  Use TEMP_FAILURE_RETRY.
6442         * malloc/memusage.sh (memusageso): Add quotes.
6443         (memusagestat): Likewise.
6444         * debug/xtrace.sh (pcprofileso): Likewise.
6445         (pcprofiledump): Likewise.
6446         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
6447         replacement.
6448         * malloc/Makefile ($(objpfx)memusage): Likewise.
6450         * nis/nis_callback.c (__nis_create_callback): Calls to
6451         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
6452         asprintf call fails.
6454         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
6455         no uninitialized memory is passed to sendto.
6457 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
6459         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
6460         of snprintf+strdup.  Handle OOM.
6461         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
6462         cb->serv together.  Remove now obsolete free calls.
6463         (__nis_destroy_callback): Remove now obsolete free call.
6465 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
6467         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
6468         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
6469         and ULA respectively). Set precedence for IPv4 address to 10 as
6470         defined in RFC3484 for preferring IPv6.
6471         * posix/gai.conf: Update to match the new default tables.
6473 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
6475         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
6476         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
6477         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
6478         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
6480         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
6481         Removed.
6482         (init_nss_interface): Remove initialization of these variables.
6484 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
6486         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
6487         nis_free_directory forward to avoid duplication.
6489 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
6491         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
6492         rec_dirsearch returning NULL.
6493         (first_shoot): Handle __nis_finddirectory returning NULL.
6494         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
6496         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
6497         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
6499 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
6501         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
6502         pid changed.
6504 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
6506         * include/rpc/pmap_prot.h: Mark all functions as hidden.
6508         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
6509         * nscd/nscd_getgr_r.c: Likewise.
6511         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
6513         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
6514         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
6516         * stdlib/longlong.h (__clz_tab): Mark as hidden.
6518         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
6520         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
6522         * include/rpc/auth.h: Mark xdr_des_block_internal and
6523         xdr_opaque_auth_internal as hidden.
6525         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
6526         hidden.
6528         * include/rpc/xdr.h: Mark all _internal functions as hidden.
6530         * misc/getusershell.c (okshells): Don't use static initializers,
6531         do it dynamically.
6533         * stdlib/fmtmsg.c (keywords): Change type of len element to
6534         uint32_t to not waste space on 64bit machines.
6536         * locale/setlocale.c: Change _nl_category_names into a string.
6537         Add new _nl_category_name_idxs.  Change all users.
6538         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
6539         Declare _nl_category_name_idxs.
6540         * locale/findlocale.c: Adjust for _nl_category_names change.
6541         * locale/loadlocale.c: Likewise.
6542         * locale/newlocale.c: Likewise.
6543         * intl/dcigettext.c: Likewise.
6545         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
6546         (add_alias2): ...here.  New function.
6547         (__gconv_read_conf): Simplify builtin alias handling.
6548         (builtin_aliases): Convert to string to avoid relocations.
6549         * iconv/gconv_builtin.h: Add comment about correct formatting.
6551 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
6553         * resolv/res_debug.c (loc_ntoa): Make error const.
6555 2006-05-14  Andreas Schwab  <schwab@suse.de>
6557         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
6559 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
6561         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
6562         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
6563         sizeof (cpu_set_t).
6565 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
6567         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
6569         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
6571         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
6572         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
6574         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
6575         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
6577         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
6578         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
6579         xdr_cback_data.
6581         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
6582         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
6583         xdr_ypupdate_args.
6585         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
6586         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
6588         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
6589         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
6591         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
6592         * include/rpcsvc/nis_callback.h: New file.
6594         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
6595         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
6597         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
6598         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
6600         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
6601         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
6603         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
6604         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
6606         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
6607         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
6608         xdr_ypdelete_args.
6610         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
6611         __BEGIN_DECLS and __END_DECLS, the header is not installed.
6613         * nis/nis_error.c: Remove table of strings.  Use position
6614         independent mechanism.
6615         * nis/nis_error.h: New file.
6617 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
6619         * locale/programs/ld-time.c (time_finish): If wide era name or
6620         format aren't provided, set both wname and wformat to L"".
6622 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
6624         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
6625         results if the call was succesful.
6627         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
6629         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
6630         as hidden.
6632 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
6634         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
6636 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
6638         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
6639         caller makes sure this is not the case.
6640         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
6642 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
6644         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
6645         calls.
6647         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
6648         [Coverity CID 229, 230]
6650         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
6651         DGETTEXT calls.
6652         (hol_help): Likewise.  [Coverity CID 226, 227]
6654         * string/argz-replace.c (__argz_replace): Unconditionally call
6655         free on SRC.  [Coverity CID 225]
6657         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
6658         the return value of __nis_default_owner and __nis_default_group,
6659         it has been especially allocated.  [Coverity CID 224]
6661         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
6662         searchgroup and searchowner.  Significantly simplified.
6663         (__nis_default_owner): Remove duplication.  Do not locally copy the
6664         string before duplicating it.
6665         (__nis_default_group): Likewise.
6667         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
6668         we must clear the variable before calling __nisfind_server.
6670         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
6671         nis_getnames.  [Coverity CID 223]
6673         * locale/programs/locfile.c (locfile_read): Use alloca instead of
6674         xmalloc to allocate local repertoire name.  [Coverity CID 222]
6676         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
6677         allocate memory for the input to add_bytes.  [Coverity CID 221]
6679         * posix/wordexp.c (w_addword): Free word if realloc fails and it
6680         was allocated here.  [Coverity CID 219, 220]
6682         * posix/getconf.c (print_all): Free confstr data after printing.
6683         [Coverity CID 218]
6685         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
6686         list allocation fails.  [Coverity CID 215]
6688         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
6689         [Coverity CID 213]
6691         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
6692         string is NULL.  [Coverity CID 212]
6693         * argp/Makefile: Add rules to build and run bug-argp1.
6694         * argp/bug-argp1.c: New file.
6696         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
6697         end of string.
6698         * stdlib/canonicalize.c (__realpath): Likewise.
6700         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
6701         pointer.  [Coverity CID 206]
6703         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
6704         in statically linked code.
6705         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
6706         statically built code, be prepared to have no link map.
6707         [Coverity CID 205]
6709         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
6710         dgettext calls. [Coverity CID 204]
6712         * argp/argp-help.c (struct uparams): Remove valid member.  Change
6713         the one user.
6714         (uparam_names): Reduce size.  Avoid relative relocations.
6715         Moved to read-only segment.
6716         (fill_in_uparams): Update for new layout.
6718         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
6719         assumed to always be != NULL. [Coverity CID 202]
6721         * argp/argp-help.c (hol_entry_help): Remove some dead code
6722         [Coverity CID 200].
6724         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
6725         away a few more unconditional yperr2nss calls.
6726         (_nss_nis_getservbyname_r): Likewise.
6728 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
6730         * sysdeps/generic/ldsodefs.h: Remove support for non-core
6731         architectures.
6733         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
6734         that unused memory passed to sendto is nevertheless initialized.
6736         [BZ #2499]
6737         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
6738         possibly unaligned memory accesses.
6740         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
6741         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
6742         and __putlong respectively.  Correct buffer overflow check for
6743         NS_NOTIFY_OP.
6745         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
6747         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
6748         (send_dg): Rewrite error handling to be more compact and avoid
6749         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
6751         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
6753         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
6754         instead of ns_get16.
6755         (res_queriesmatch): Likewise.  Minor optimization.
6757         [BZ #2499]
6758         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
6759         __libc_res_nsend might reallocate the buffer for the answer.  In
6760         this case we have to reload the HP pointer.
6762 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
6764         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
6765         some branch prediction hints.
6767         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
6768         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6769         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6770         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
6771         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6772         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6773         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6774         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6776 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6778         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
6779         by a GOT relocation to make Scrt1.o position independent.
6780         * sysdeps/s390/s390-64/elf/start.S: Likewise.
6782         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
6783         six system call parameters.
6784         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
6786 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
6788         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
6789         malloc&bzero.
6791         * sunrpc/svc_udp.c (BZERO): Remove definition.
6792         (CALLOC): Define.
6793         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
6795         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
6796         (des_SPtrans): Use uint32_t type.
6797         (des_skb): Likewise.
6799         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
6801 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
6803         [BZ #2509]
6804         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
6805         on 32-bit arches.
6807 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
6809         * locale/programs/ld-address.c (address_finish): Fix one more
6810         place where the iso639 array might be accessed beyond the limits.
6812 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
6814         * nis/nis_table.c (nis_list): Avoid clearing res twice before
6815         filling it for the first time.
6817         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
6818         Adjust all callers.
6819         Free res object content before returning.
6821         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
6823         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
6824         client->cl_auth.
6826         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
6827         cleanup for initial thread, just the free call on TVP.
6829         * nscd/gai.c (__getline): Define.
6832 See ChangeLog.16 for earlier changes.