[BZ #5040]
[glibc.git] / ChangeLog
bloba350fb79241e3ba6594bac56c59881cc12d86cff
1 2007-10-27  Andreas Jaeger  <aj@suse.de>
3         [BZ #5040]
4         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
6         [BZ #3112]
7         * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect.
8         (__cleanup): Free shared library when exiting.
9         * sysdeps/i386/backtrace.c (init): Free shared library if incorrect.
10         (__cleanup): Free shared library when exiting.
12 2006-04-14  H.J. Lu  <hongjiu.lu@intel.com>
14         [BZ #2549]
15         * math/libm-test.inc (check_float_internal): Support
16         denormalized return.
18 2007-10-23  Andreas Jaeger  <aj@suse.de>
20         [BZ #5208]
21         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use
22         __LONG_LONG_PAIR to handle little endian byte order.
23         Suggested by abhishekrai@google.com
25 2007-10-27  Ulrich Drepper  <drepper@redhat.com>
27         * malloc/arena.c [!NO_THREADS]: Use ATFORK_MEM if defined.
29 2007-10-26  Ulrich Drepper  <drepper@redhat.com>
31         * nscd/cache.c (prune_cache): Move test for modified file outside
32         of locking.
34 2007-10-21  Andreas Jaeger  <aj@suse.de>
36         * manual/texinfo.tex: Update to latest version.
38         * manual/sysinfo.texi (System Parameters): Fix Formatting.
40         * manual/arith.texi (Status bit operations): Fix formatting.
42         * manual/errno.texi (Error Messages): Fix formatting.
44         * manual/sysinfo.texi (System Parameters): Fix formatting.
46         * manual/libc.texinfo: Update VERSION and UPDATED.
48 2007-10-19  Roland McGrath  <roland@redhat.com>
50         * elf/Makefile ($(objpfx)ld.so): Use $(AWK).
52 2007-10-06  David S. Miller  <davem@davemloft.net>
54         * configure.in: Add sparcv9v2 and sparc64v2.
55         * scripts/config.sub: Likewise.
56         * configure: Regenerate.
57         * elf/elf.h (HWCAP_SPARC_N2): New.
58         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8.
59         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'.
60         (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2.
61         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file.
62         * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file.
63         * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file.
64         * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
66 2007-10-18  Ulrich Drepper  <drepper@redhat.com>
68         * sunrpc/clnt_udp.c (clntudp_call): Don't block in recvfrom call
69         even if the poll result indicates there is data to read.
70         Patch by Jeff Moyer <jmoyer@redhat.com>.
72 2007-10-18  Roland McGrath  <roland@redhat.com>
74         * elf/elf.h (NT_PPC_VMX): New macro.
76 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
78         * version.h (VERSION): Set to 2.7.90.
80 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
82         * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero.  Add
83         weak_alias.
85 2007-10-17  Roland McGrath  <roland@frob.com>
87         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New.
88         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
90 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
92         * version.h (VERSION): Bump to 2.7.
93         * include/features.h (__GLIBC_MINOR__): Bump to 7.
95         [BZ #5186]
96         * time/tzset.c (__tz_convert): Don't force testing for a change of
97         TZ if not called from localtime.  But then also see whether the
98         file changed, in case __use_tzfile is set.
100         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
101         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
102         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
103         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
104         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
105         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
106         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h:  Likewise.
107         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
109 2007-10-17  Jakub Jelinek  <jakub@redhat.com>
111         * sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addresses
112         and admin selects to be able to replace the gai.conf file, lock
113         data structures around the qsort call.
115 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
117         * sysdeps/x86_64/cacheinfo.c: Comment out code added in support of
118         new memset.
119         * sysdeps/x86_64/memset.S: Revert to old version for now.  The cost is
120         too high for the improvements.  Implement bzero unconditionally for
121         use in libc.
123 2007-10-17  Ulrich Drepper  <drepper@redhat.com>
124             Jakub Jelinek  <jakub@redhat.com>
126         * time/tzfile.c (__tzfile_read): Read POSIX TZ string if available
127         even when time_t is 32-bit.
128         (__tzfile_compute): Override POSIX TZ string STD/DST zone names if
129         timezone data read by __tzfile_default.  Ensure __tzname[0] is
130         always set after the search.
132 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
134         * time/tzfile.c (__tzfile_read): Help the compiler recognize
135         unreachable code on 32-bit machines.
137 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
139         [BZ #5184]
140         * time/strftime_l.c: Include stdbool.h.
141         (my_strftime): New wrapper, old function renamed to...
142         (__strftime_internal): ... new function.  Add tzset_called
143         argument, pass it down to recursive calls, don't call tzset ()
144         if already true, set to true after call to tzset ().
146 2007-10-16  Ulrich Drepper  <drepper@redhat.com>
148         * time/tzfile.c (__tzfile_read): Take extra memory requested by caller
149         into account when copying TZ string.
151 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
153         * time/tzfile.c (__tzfile_compute): For use_last case set i to
154         num_transition rather than num_transitions - 1.
156 2007-10-16  Jakub Jelinek  <jakub@redhat.com>
158         * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move
159         PIC indirect jump.
161         * sysdeps/x86_64/memset.S: Jump from bzero to memset using
162         a local label rather than HIDDEN_JUMPTARGET.
164 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
166         * sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.
167         (init_cacheinfo): Initialize it.
168         * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size.
169         Always define bzero.
170         Remove non-glibc code.
171         * sysdeps/x86_64/bzero.S: Make an empty file.
173 2007-10-15  H.J. Lu  <hongjiu.lu@intel.com>
175         * sysdeps/x86_64/cacheinfo.c
176         (__x86_64_preferred_memory_instruction): New.
177         (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction.
179         * sysdeps/x86_64/memset.S: Rewrite.
181 2007-10-15  Roland McGrath  <roland@redhat.com>
183         * po/libc.pot: Regenerated.
185 2007-10-15  Ulrich Drepper  <drepper@redhat.com>
187         * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
188         pointers.
190         [BZ #3425]
191         * resolv/nss_dns/dns-host.c (getanswer_r): Fail with
192         NSS_STATUS_NOTFOUND if the server replied with only a CNAME and no
193         address record to T_A/T_AAAA requests.
195 2007-10-14  Ulrich Drepper  <drepper@redhat.com>
197         * posix/glob.c: Reimplement link_exists_p to use fstatat64.
199         * posix/glob.c: Add some branch prediction throughout.
201         * nscd/nscd_getgr_r.c (nscd_getgr_r): Store result of successful
202         read from nscd.
204         * sysdeps/posix/getaddrinfo.c (struct sort_result): Add
205         service_order.
206         (rfc3484_sort): Make sure that even if qsort doesn't support
207         stable sorting out sorting here is stable by comparing service_order.
208         (getaddrinfo): Initialize service_order.
209         * posix/tst-rfc3484.c (do_test): Adjust for addition of
210         service_order field to sorting structure.
211         * posix/tst-rfc3484-2.c (do_test): Likewise.
213         * include/time.h: Declare __tzset_parse_tz and __tzset_compute.
214         * time/tzset.c (tzset_internal): Break TZ string parsing out into
215         __tzset_parse_tz and updating of daylight, timezone, tzname into
216         update_vars.
217         (__tz_compute): Renamed from tz_compute.  Take additional parameters.
218         (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now
219         happens in __tz_compute.
220         * time/tzfile.c (__tzfile_read): Also read TZ string.
221         (find_transition): Fold into __tzfile_compute.
222         (__tzfile_compute): For times beyond the last transition try to
223         use the TZ string.
224         * timezone/tst-timezone.c: Information in daylight and tzname does
225         change for Asia/Tokyo timezone with more concrete information.
226         Remove the test.
228         * include/stdio.h: Add libc_hidden_proto for ftello.
229         * libio/ftello.c: Add libc_hidden_def.
231         [BZ #1140]
232         * time/tzfile.c (__tzfile_compute): Compute tzname[] values based
233         on the specified time and not the last entries in the file.  Move
234         code to determine tzname[] to...
235         (find_transition): ...here.  Add ugly guess for times before the
236         first transition.
238 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
240         [BZ #3195]
241         * nscd/nscd_getai.c (__nscd_getai): Set errno to 0 in case we found
242         no entry.
243         * nscd/nscd_getgr.c (nscd_getgr_r): Likewise.
244         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
245         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
246         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
248         * nscd/nscd_getgr_r.c (nscd_getgr_r): Optimize a bit: use simpler
249         read mechanism when there are no group members and avoid no-op
250         read syscall in this case.
252         [BZ #3242]
253         * nscd/nscd_helper.c (wait_on_socket): Take timeout as parameter.
254         (__readall): If reading failed due to EAGAIN error wait a bit
255         and possibly try again.
256         (__readvall): Likewise.
258 2007-10-13  Bruno Haible  <bruno@clisp.org>
260         * intl/dcigettext.c (_nl_find_msg): Unlock the conversions_lock
261         when we cannot recode the message.
263 2007-10-13  Ulrich Drepper  <drepper@redhat.com>
265         [BZ #4359]
266         * libio/__freading.c (__freading): Don't return true for
267         write-only streams.  For read/write streams, check whether we
268         performed a read operation already.
269         * libio/Makefile (tests): Add tst-ext2.
270         * libio/tst-ext2.c: New file.
272 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
274         * locale/programs/repertoire.c (repertoire_read): Always free
275         memory for repertoire file name [Coverity CID 270].
277         * elf/cache.c (save_aux_cache): Free memory allocated for
278         temporary file name [Coverity CID 267].
280 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
282         * misc/Makefile (headers): Add bits/error.h.
284 2007-10-12  Ulrich Drepper  <drepper@redhat.com>
286         * posix/fnmatch_loop.c: Take rule index returned as part of
287         findidx return value into account when accessing weights.
288         * posix/regcomp.c: Likewise.
289         * posix/regexec.c: Likewise.
291         * locale/programs/ld-collate.c (collate_read): Optimize a bit.
292         (skip_to): Fix problems with parameter of elifdef/elifndef.
294 2007-10-11  Ulrich Drepper  <drepper@redhat.com>
296         * iconv/gconv_simple.c: Add some branch prediction.
298 2007-10-12  Jakub Jelinek  <jakub@redhat.com>
300         * locale/programs/ld-collate.c (collate_read): If ignore_content
301         and nowtok is tok_define, eat any tok_eol tokens.
303 2007-10-11  Jakub Jelinek  <jakub@redhat.com>
305         * sysdeps/gnu/netinet/tcp.h: Include sys/socket.h if __USE_MISC.
306         (struct tcp_md5sig): Change tcpm_addr type to struct sockaddr_storage.
308         * inet/netinet/in.h: Don't include bits/socket.h.
309         * sysdeps/unix/sysv/linux/bits/socket.h: Only check _SYS_SOCKET_H
310         macro.
311         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
313 2007-10-10  Ulrich Drepper  <drepper@redhat.com>
315         * locale/programs/locfile-token.h: Remove tok_elif, add tok_elifdef
316         and tok_elifndef.
317         * locale/programs/locfile-kw.gperf: Likewise.
318         * locale/programs/ld-collate.c: Implement primitive preprocessor.
320 2007-10-10  Jakub Jelinek  <jakub@redhat.com>
322         * stdio-common/printf-parse.h: Include string.h and wchar.h.
323         (__find_specwc): Change into __extern_always_inline function.
324         (__find_specmb): Likewise.  Remove ps argument.  Use __strchrnul.
325         (__parse_one_specmb): Remove ps argument.
326         * stdio-common/vfprintf.c (vfprintf): Remove mbstate variable.
327         Adjust __find_specmb and __parse_one_specmb callers.
328         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
329         * stdio-common/printf-parsemb.c (__find_specwc, __find_specmb):
330         Removed.
331         (__parse_one_specmb): Remove ps argument, adjust __find_specmb
332         caller.
334 2007-10-09  Ulrich Drepper  <drepper@redhat.com>
336         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Work around problem
337         with some Pentium Ds.
339 2007-10-08  Ulrich Drepper  <drepper@redhat.com>
341         * sysdeps/unix/sysv/linux/eventfd_read.c (eventfd_read): Use
342         __read not read.
343         * sysdeps/unix/sysv/linux/eventfd_write.c (eventfd_write): Use
344         __write not write.
346 2007-10-07  Ulrich Drepper  <drepper@redhat.com>
348         [BZ #181]
349         * locale/C-time.c: Set week_1stday data to 19971201.
350         * locale/programs/ld-time.c (time_finish): Default for
351         first_workday is Monday.
353         [BZ #2633]
354         * wcsmbs/wchar.h: Move many C99 functions into std namespace.
356         [BZ #5103]
357         * posix/glob.c (glob): Recognize patterns starting \/.
358         * posix/tst-gnuglob.c (find_file): Handle absolute path names.
359         (main): Add test for pattern starting \/.
361         * misc/error.h: Use __const instead of const.
362         * misc/bits/error.h: Likewise.
364 2007-10-07  Andreas Jaeger  <aj@suse.de>
366         * include/bits/error.h: New file.
368         * misc/bits/error.h (error_at_line): Fix prototype.
370 2007-10-06  Ulrich Drepper  <drepper@redhat.com>
372         [BZ #3924]
373         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few
374         more little bugs in creating the stack frame when pltexit has to
375         be called.
377         * nscd/nscd_helper.c (__nscd_cache_search): Prevent endless loops.
378         * nscd/connections.c (verify_persistent_db): Recognize circular lists.
380         [BZ #4407]
381         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Fix *signgamp for -0.0.
382         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
383         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
384         * math/libm-test.inc: Add test for this case.
386         [BZ #5010]
387         * sunrpc/svc.c (struct svc_callout): Add sc_mapped element.
388         (svc_register): Initialize sc_mapped.  Set to TRUE if call to
389         map service succeeded.
390         (svc_is_mapped): New function.
391         (svc_unregister): Use it before trying to unmap service.
393 2007-10-05  Ulrich Drepper  <drepper@redhat.com>
395         * timezone/zic.c: Update from tzcode2007h.
397         [BZ #5063]
398         * timezone/africa: Update from tzdata2007h.
399         * timezone/antarctica: Likewise.
400         * timezone/asia: Likewise.
401         * timezone/australasia: Likewise.
402         * timezone/europe: Likewise.
403         * timezone/leapseconds: Likewise.
404         * timezone/northamerica: Likewise.
405         * timezone/southamerica: Likewise.
406         * timzeone/zone.tab: Likewise.
408         [BZ #5104]
409         * elf/do-lookup.h (do_lookup_x): Don't ignore STT_COMMON symbols.
411         [BZ #5113]
412         * string/bits/string2.h (__strdup): Cast parameters to calloc to
413         avoid warning with -Wconversion.
414         (__strndup): Likewise.
415         Half the patch by Christian Iseli <christian.iseli@licr.org>.
417         [BZ #5112]
418         * nscd/connections.c (restart): Don't resync if database is
419         disabled.  Patch mostly by Brian De Wolf <bldewolf@csupomona.edu>.
421         * sysdeps/gnu/netinet/tcp.h: Define TCP_MD5SIG, TCP_MD5SIG_MAXKEYLEN,
422         struct tcp_md5sig.  Extend struct tcp_info according to recent kernels.
424         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add eventfd,
425         evetnfd_read, eventfd_write.
426         * sysdeps/unix/sysv/linux/eventfd.c: New file.
427         * sysdeps/unix/sysv/linux/eventfd_read.c: New file.
428         * sysdeps/unix/sysv/linux/eventfd_write.c: New file.
429         * sysdeps/unix/sysv/linux/sys/eventfd.h: New file.
430         * sysdeps/unix/sysv/linux/Versions: Export eventfd, eventfd_read,
431         eventfd_write for GLIBC_2.7.
433         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add signalfd.
434         * sysdeps/unix/sysv/linux/signalfd.c: New file.
435         * sysdeps/unix/sysv/linux/sys/signalfd.h: New file.
436         * sysdeps/unix/sysv/linux/Versions: Export signalfd for GLIBC_2.7.
438 2007-10-04  Jakub Jelinek  <jakub@redhat.com>
440         * stdlib/msort.c: Include stdint.h.
441         (struct msort_param): New type.
442         (msort_with_tmp): Use struct msort_param pointer for unchanging
443         parameters.  Add optimized handling for several common sizes
444         and indirect sorting mode.
445         (qsort): Adjust msort_with_tmp callers.  For big S use indirect
446         sorting.
447         Suggested by Belazougui Djamel .
449         * stdlib/Makefile (tests): Add tst-qsort2.
450         * stdlib/tst-qsort2.c: New test.
452 2007-10-04  Ulrich Drepper  <drepper@redhat.com>
454         * login/login_tty.c (login_tty): The Linux kernel can return EBUSY
455         for dup2 in case another thread races with the current one.  Retry
456         in this case.
458         * misc/error.h: Remove support for use outside of libc.  We have to
459         include <features.h> now.  Include <bits/error.h> if possible.
460         * misc/bits/error.h: New file.
462 2007-10-03  Jakub Jelinek  <jakub@redhat.com>
464         * string/bits/string3.h (memcpy, memmove, mempcpy, memset, bcopy,
465         bzero, strcpy, stpcpy, strncpy, strcat, strncat): Use
466         __extern_always_inline functions unconditionally, drop macros.
468         * misc/sys/cdefs.h (__REDIRECT_LDBL, __REDIRECT_NTH_LDBL): New macros.
469         * wcsmbs/bits/wchar2.h (__swprintf_alias, __vswprintf_alias): Use
470         __REDIRECT_NTH_LDBL macro rather than __REDIRECT_NTH.
472         * misc/sys/cdefs.h (__extern_always_inline): For GCC 4.3+
473         add __artificial__ attribute.
475 2007-10-02  Ulrich Drepper  <drepper@redhat.com>
477         * string/strcoll_l.c (STRCOLL): Correct handling of switching from
478         backward to forward direction.
480         * string/strcoll_l.c (STRCOLL): Correct test for alloca use.
482         [BZ #645]
483         * locale/programs/ld-collate.c (collate_finish): Compare against last
484         used section which is known to have rules defined.
485         (collate_read): After order_start, correctly record order of sections
486         and queue sections up.
488 2007-10-01  Ulrich Drepper  <drepper@redhat.com>
490         [BZ #5071]
491         * malloc/malloc.c (mremap_chunk): Avoid resizing of new block has
492         the same number of pages.
493         Patch by Tomash Brechko <tomash.brechko@gmail.com>.
495         * locale/programs/ld-collate.c (collate_read): After initial copy
496         statement, continue in state 0.
498         * include/stdio_ext.h (__fsetlocking): Define as macro.
500 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
502         * locale/programs/ld-collate.c (collate_finish): Compare all bytes
503         of section order.
505         * po/pt_BR.po: Fix typo.
507 2007-09-29  Ulrich Drepper  <drepper@redhat.com>
509         * iconvdata/Makefile (modules): Add ISO8859-9E.
510         (distribute): Add iso8859-9e.c.
511         (gen-8bit-gap-modules): Add iso8859-9e.
512         * iconvdata/iso8859-9e.c: New file.
513         * iconvdata/gconv-modules: Add entries for ISO-8859-9E.
514         * iconvdata/TESTS: Likewise.
515         * iconvdata/tst-tables.sh: Likewise.
517         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
519         * locale/iso-639.def: Add several new entries.
521 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
523         * sysdeps/generic/ldsodefs.h (struct dl_scope_free_list): Store
524         void * pointers instead of struct link_map **.
525         (_dl_scope_free): Change argument type to void *.
526         * include/link.h (struct link_map): Change type of l_reldeps
527         to struct link_map_reldeps, move l_reldepsact into that
528         struct too.
529         * elf/dl-deps.c: Include atomic.h.
530         (_dl_map_object_deps): Only change l->l_initfini when it is
531         fully populated, use _dl_scope_free for freeing it.  Optimize
532         removal of libs from reldeps by using l_reserved flag, when
533         some removal is needed, allocate a new list instead of
534         reallocating and free the old with _dl_scope_free.  Adjust
535         for l_reldeps and l_reldepsact changes.
536         * elf/dl-lookup.c (add_dependency): Likewise.  Reorganize to allow
537         searching in l_initfini and l_reldeps without holding dl_load_lock.
538         * elf/dl-fini.c (_dl_sort_fini): Adjust for l_reldeps and
539         l_reldepsact changes.
540         * elf/dl-close.c (_dl_close_worker): Likewise.
541         * elf/dl-open.c (_dl_scope_free): Change argument type to void *.
543 2007-09-28  Ulrich Drepper  <drepper@redhat.com>
545         * iconvdata/Makefile (modules): Add KOI8-RU.
546         (distribute): Add koi8-ru.c.
547         (gen-8bit-gap-modules): Add koi8-ru.
548         * iconvdata/koi8-ru.c: New file.
549         * iconvdata/gconv-modules: Add entries for KOI8-RU.
550         * iconvdata/TESTS: Likewise.
551         * iconvdata/tst-tables.sh: Likewise.
553         * iconvdata/koi8-r.c (HAS_HOLES): Define to 0.
555 2007-09-26  Jakub Jelinek  <jakub@redhat.com>
557         * misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ define
558         with __warning__/__error__ attributes.
559         (__warnattr): Define.
560         * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn,
561         __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with
562         __warnattr.
563         (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead
564         of __*_chk if compile time detectable overflow is found.
565         * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn,
566         __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases
567         with __warnattr.
568         (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn
569         instead of __*_chk if compile time detectable overflow is found.
570         (__gets_alias): Rename to...
571         (__gets_warn): ... this.  Add __warnattr.
572         (gets): Call __gets_warn instead of __gets_alias.
573         * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New
574         aliases with __warnattr.
575         (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile
576         time detectable overflow is found.
577         * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn,
578         __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn,
579         __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn,
580         __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn,
581         __getdomainname_chk_warn): New aliases with __warnattr.
582         (read, pread, pread64, readlink, readlinkat, getcwd, confstr,
583         getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call
584         __*_chk_warn instead of __*_chk if compile time detectable overflow
585         is found.
586         (__getgroups_chk): Rename argument to __listlen from listlen.
587         (__getwd_alias): Rename to...
588         (__getwd_warn): ... this.  Add __warnattr.
589         (getwd): Call __getwd_warn instead of __getwd_alias.
590         * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn,
591         __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn,
592         __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn,
593         __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn,
594         __wcsnrtombs_chk_warn): New aliases with __warnattr.
595         (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs,
596         mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if
597         compile time detectable overflow is found.
598         (wcsncpy, wcpncpy): Likewise.  For constant __n fix check whether
599         to use __*_chk or not.
600         (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both
601         in comparisons which function should be called and in __*_chk*
602         arguments.  Call __*_chk_warn instead of __*_chk if compile time
603         detectable overflow is found.
604         (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in
605         __*_chk argument.
606         * debug/tst-chk1.c (do_test): Add a few more tests.
608 2007-09-24  Ulrich Drepper  <drepper@redhat.com>
610         [BZ #5058]
611         * intl/gettextP.h (struct loaded_domain): Add conversions_lock member.
612         * intl/loadmsgcat.c (_nl_load_domain): Initialize conversions_lock.
613         (_nl_unload_domain): Finalize conversions_lock.
614         * intl/dcigettext.c (_nl_find_msg): Take conversions_lock before
615         handling table of known conversions.
617 2007-09-24  Jakub Jelinek  <jakub@redhat.com>
619         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use
620         close_not_cancel_no_status instead of close.
622 2007-09-13  Aurelien Jarno  <aurelien@aurel32.net>
624         [BZ #5028]
625         * posix/regcomp.c (lookup_collation_sequence_value): Check that
626         nrules != 0 for multibyte chars.
628 2007-09-23  Ulrich Drepper  <drepper@redhat.com>
630         * resolv/ns_print.c (ns_sprintrrf): Handle ns_t_a6 and ns_t_opt.
631         Provide better error message in case the type is unknown.
633         [BZ #4963]
634         * wcsmbs/wcsnlen.c: Don't reference before checking the length.
635         * string/stratcliff.c: Make usable to test wide char functions.
636         * wcsmbs/wcsatcliff.c: New file.
637         * wcsmbs/Makefiel (tests): Add wcsatcliff.
639         [BZ #4972]
640         * iconvdata/Makefile (modules): Add MAC-CENTRALEUROPE.
641         (distribute): Add mac-centraleurope.c.
642         (gen-8bit-gap-modules): Add mac-centraleurope.
643         * iconvdata/mac-centraleurope.c: New file.
644         * iconvdata/gconv-modules: Add entries for MAC-CENTRALEUROPE.
645         * iconvdata/TESTS: Likewise.
646         * iconvdata/tst-tables.sh: Likewise.
648         [BZ #5043]
649         * iconv/iconv_open.c (iconv_open): For large codeset names use malloc.
651 2007-09-21  Ulrich Drepper  <drepper@redhat.com>
653         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size_half): Renamed
654         from __x86_64_core_cache_size_half.
655         (init_cacheinfo): Compute shared cache size for AMD processors with
656         shared L3 correctly.
657         * sysdeps/x86_64/memcpy.S: Adjust for __x86_64_data_cache_size_half
658         name change.
659         Patch in large parts by Evandro Menezes.
661 2007-09-19  Ulrich Drepper  <drepper@redhat.com>
663         * elf/dl-lookup.c (add_dependency): Handle failing memory
664         allocation for dependency list.  Remove unnecessary check.
666         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid unnecessary
667         open/close when determining source addresses.
669         * crypt/Makefile (libcrypt-routines): Add sha256-crypt, sha256,
670         sha512-crypt, and sha512.
671         (tests): Add sha256test, sha256c-test, sha512test, and sha512c-test.
672         (distribute): Add sha256.h and sha512.h.
673         * crypt/crypt-entry.c (crypt): Recognize the new $5$ and $6$ prefixes
674         and call the appropriate code.
675         * crypt/sha256-crypt.c: New file.
676         * crypt/sha256.c: New file.
677         * crypt/sha256.h: New file.
678         * crypt/sha256c-test.c: New file.
679         * crypt/sha256test.c: New file.
680         * crypt/sha512-crypt.c: New file.
681         * crypt/sha512.c: New file.
682         * crypt/sha512.h: New file.
683         * crypt/sha512c-test.c: New file.
684         * crypt/sha512test.c: New file.
686 2007-09-19  Jakub Jelinek  <jakub@redhat.com>
688         * misc/bits/syslog.h (syslog): Remove extraneous argument from
689         the inline, pass __USE_FORTIFY_LEVEL - 1 as second argument to
690         __syslog_chk.
692 2007-09-18  Jakub Jelinek  <jakub@redhat.com>
694         * locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
695         %as in fscanf format strings.
697         * sysdeps/sparc/sparc32/elf/start.S: Remove cfi_* markup.
698         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
699         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
700         Likewise.
701         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
702         Likewise.
704         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_GSCOPE_LOCK): New definition.
705         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Or in
706         DL_LOOKUP_GSCOPE_LOCK into flags after THREAD_GSCOPE_SET_FLAG ().
707         * elf/dl-sym.c (do_sym): Likewise.
708         * include/link.h (struct link_map): Add l_serial field.
709         * elf/dl-object.c (_dl_new_object): Initialize l_serial.
710         * elf/dl-lookup.c (add_dependency): Add flags argument.
711         Remember map->l_serial, if DL_LOOKUP_GSCOPE_LOCK is among
712         flags, use THREAD_GSCOPE_RESET_FLAG before and
713         THREAD_GSCOPE_SET_FLAG after
714         __rtld_lock_lock_recursive (GL(dl_load_lock)) to avoid deadlock.
715         Don't dereference map until it has been found on some list.
716         If map->l_serial changed, return -1.
718 2007-09-17  Jakub Jelinek  <jakub@redhat.com>
720         * include/stdio.h (__isoc99_fscanf, __isoc99_scanf,
721         __isoc99_sscanf, __isoc99_vscanf): New prototypes.
722         (__isoc99_vsscanf, __isoc99_vfscanf): New prototypes, add
723         libc_hidden_proto.
724         * include/wchar.h (__isoc99_fwscanf, __isoc99_wscanf,
725         __isoc99_swscanf, __isoc99_vwscanf): New prototypes.
726         (__isoc99_vswscanf, __isoc99_vfwscanf): New prototypes,
727         add libc_hidden_proto.
728         * libio/stdio.h (fscanf, scanf, sscanf, vfscanf, vscanf,
729         vsscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
730         conformance requested.
731         * wcsmbs/wchar.h (fwscanf, wscanf, swscanf, vfwscanf, vwscanf,
732         vswscanf): Redirect to __isoc99_* if strict ISO C99 or POSIX
733         conformance requested.
734         * libio/bits/stdio-ldbl.h (fscanf, scanf, sscanf, vfscanf, vscanf,
735         vsscanf): Redirect to __nldbl___isoc99_* if strict ISO C99 or POSIX
736         conformance requested.
737         * wcsmbs/bits/wchar-ldbl.h (fwscanf, wscanf, swscanf, vfwscanf,
738         vwscanf, vswscanf): Redirect to __nldbl___isoc99_* if strict
739         ISO C99 or POSIX conformance requested.
740         * stdio-common/Versions (libc): Export __isoc99_scanf@@GLIBC_2.7,
741         __isoc99_vscanf@@GLIBC_2.7, __isoc99_fscanf@@GLIBC_2.7,
742         __isoc99_vfscanf@@GLIBC_2.7, __isoc99_sscanf@@GLIBC_2.7
743         and __isoc99_vsscanf@@GLIBC_2.7.
744         * stdio-common/Makefile (routines): Add isoc99_scanf, isoc99_vscanf,
745         isoc99_fscanf, isoc99_vfscanf, isoc99_sscanf and isoc99_vsscanf.
746         (tests): Add scanf14.
747         (CFLAGS-vfprintf.c, CFLAGS-fprintf.c, CFLAGS-printf.c,
748         CFLAGS-vfwprintf.c, CFLAGS-vfscanf.c, CFLAGS-vfwscanf.c,
749         CFLAGS-fscanf.c, CFLAGS-scanf.c, CFLAGS-isoc99_vfscanf.c,
750         CFLAGS-isoc99_vscanf.c, CFLAGS-isoc99_fscanf.c,
751         CFLAGS-isoc99_scanf.c): Add $(exceptions).
752         (CFLAGS-scanf15.c): Add various -I paths to prevent the compiler
753         from using internal headers.
754         * wcsmbs/Versions (libc): Export __isoc99_wscanf@@GLIBC_2.7,
755         __isoc99_vwscanf@@GLIBC_2.7, __isoc99_fwscanf@@GLIBC_2.7,
756         __isoc99_vfwscanf@@GLIBC_2.7, __isoc99_swscanf@@GLIBC_2.7
757         and __isoc99_vswscanf@@GLIBC_2.7.
758         * wcsmbs/Makefile (routines): Add isoc99_wscanf, isoc99_vwscanf,
759         isoc99_fwscanf, isoc99_vfwscanf, isoc99_swscanf and isoc99_vswscanf.
760         (CFLAGS-isoc99_wscanf.c, CFLAGS-isoc99_fwscanf.c,
761         CFLAGS-isoc99_vwscanf.c, CFLAGS-isoc99_vfwscanf.c): Add $(exceptions).
762         (CPPFLAGS): Add -D_IO_MTSAFE_IO if needed.
763         * stdio-common/isoc99_scanf.c: New file.
764         * stdio-common/isoc99_vsscanf.c: New file.
765         * stdio-common/isoc99_vscanf.c: New file.
766         * stdio-common/isoc99_vfscanf.c: New file.
767         * stdio-common/isoc99_fscanf.c: New file.
768         * stdio-common/isoc99_sscanf.c: New file.
769         * wcsmbs/isoc99_fwscanf.c: New file.
770         * wcsmbs/isoc99_vswscanf.c: New file.
771         * wcsmbs/isoc99_swscanf.c: New file.
772         * wcsmbs/isoc99_wscanf.c: New file.
773         * wcsmbs/isoc99_vwscanf.c: New file.
774         * wcsmbs/isoc99_vfwscanf.c: New file.
775         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Define.
776         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Also
777         clear _IO_FLAGS2_SCANF_STD bit from _flags2.
778         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Don't
779         handle %as, %aS and %a[ if _IO_FLAGS2_SCANF_STD is set in _flags2.
780         * stdio-common/scanf14.c: New test.
781         * stdio-common/scanf15.c: New test.
782         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
783         isoc99_scanf, isoc99_fscanf, isoc99_sscanf,
784         isoc99_vscanf, isoc99_vfscanf, isoc99_vsscanf,
785         isoc99_wscanf, isoc99_fwscanf, isoc99_swscanf,
786         isoc99_vwscanf, isoc99_vfwscanf and isoc99_vswscanf.
787         * sysdeps/ieee754/ldbl-opt/Versions (libc): Export
788         __nldbl___isoc99_scanf@@GLIBC_2.7,
789         __nldbl___isoc99_fscanf@@GLIBC_2.7,
790         __nldbl___isoc99_sscanf@@GLIBC_2.7,
791         __nldbl___isoc99_vscanf@@GLIBC_2.7,
792         __nldbl___isoc99_vfscanf@@GLIBC_2.7,
793         __nldbl___isoc99_vsscanf@@GLIBC_2.7,
794         __nldbl___isoc99_wscanf@@GLIBC_2.7,
795         __nldbl___isoc99_fwscanf@@GLIBC_2.7,
796         __nldbl___isoc99_swscanf@@GLIBC_2.7,
797         __nldbl___isoc99_vwscanf@@GLIBC_2.7,
798         __nldbl___isoc99_vfwscanf@@GLIBC_2.7
799         and __nldbl___isoc99_vswscanf@@GLIBC_2.7.
800         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__isoc99_scanf,
801         __isoc99_fscanf, __isoc99_sscanf, __isoc99_vscanf,
802         __isoc99_vfscanf, __isoc99_vsscanf, __isoc99_wscanf,
803         __isoc99_fwscanf, __isoc99_swscanf, __isoc99_vwscanf,
804         __isoc99_vfwscanf, __isoc99_vswscanf): Add NLDBL_DECL.
805         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
806         (__nldbl___isoc99_scanf, __nldbl___isoc99_fscanf,
807         __nldbl___isoc99_sscanf, __nldbl___isoc99_vscanf,
808         __nldbl___isoc99_vfscanf, __nldbl___isoc99_vsscanf,
809         __nldbl___isoc99_wscanf, __nldbl___isoc99_fwscanf,
810         __nldbl___isoc99_swscanf, __nldbl___isoc99_vwscanf,
811         __nldbl___isoc99_vfwscanf, __nldbl___isoc99_vswscanf): New
812         functions.
813         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfscanf.c: New file.
814         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_swscanf.c: New file.
815         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vwscanf.c: New file.
816         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_wscanf.c: New file.
817         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_scanf.c: New file.
818         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_sscanf.c: New file.
819         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vsscanf.c: New file.
820         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fwscanf.c: New file.
821         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vfwscanf.c: New file.
822         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vswscanf.c: New file.
823         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_vscanf.c: New file.
824         * sysdeps/ieee754/ldbl-opt/nldbl-isoc99_fscanf.c: New file.
826         * stdio-common/Makefile (tests): Add scanf13.
827         (scanf13-ENV): New.
828         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Handle
829         m modifier followed by l.
830         (STRING_ARG): Add width argument.
831         (_IO_vfscanf_internal) <case L_('c')>: Handle %mc.
832         <case L_('C')>: Handle %mlc and %mC.
833         <case L_('s'), case L_('S'), case L_('[')>: Adjust STRING_ARG
834         arguments.
835         * stdio-common/scanf13.c: New test.
837         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): Clear
838         the _IO_FLAGS2_FORTIFY bit from _flags2 rather than _flags.
840 2007-09-18  Ulrich Drepper  <drepper@redhat.com>
842         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Correct return value
843         type and __THROW marker of splice, vmsplice, and tee.
844         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
845         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
846         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
847         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
848         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
849         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
850         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
851         * sysdeps/unix/sysv/linux/syscalls.list: Mark splice, vmsplice, and tee
852         as cancellation points.
854 2003-11-01  Daniel Jacobowitz  <dan@debian.org>
856         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
857         parse more than three parts of the version number.
859 2007-09-15  Ulrich Drepper  <drepper@redhat.com>
861         * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'
862         modifier.  Patch by Jakub Jelinek.
864 2007-08-26  Jakub Jelinek  <jakub@redhat.com>
866         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
867         call_fallocate in misc subdir.
868         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
869         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
870         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
871         instead of __fallocate64.
872         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
874 2007-09-15  Jakub Jelinek  <jakub@redhat.com>
876         * rt/Versions (librt): Export __mq_open_2@@GLIBC_2.7.
877         * rt/Makefile (headers): Add bits/mqueue2.h.
878         * rt/mqueue.h: Include bits/mqueue2.h if -D_FORTIFY_SOURCE=2,
879         optimizing with GCC and __va_arg_pack_len is defined.
880         * rt/bits/mqueue2.h: New file.
881         * rt/mq_open.c (__mq_open): Renamed from mq_open.
882         (mq_open): New strong_alias.
883         (__mq_open_2): New function.
884         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Renamed from mq_open.
885         (mq_open): New strong_alias.
886         (__mq_open_2): New function.
887         * debug/Versions (libc): Export __fortify_fail@@GLIBC_PRIVATE.
888         * Versions.def (librt): Add GLIBC_2.7 version.
889         * debug/fortify_fail.c (__fortify_fail): Add libc_hidden_def.
890         * include/stdio.h (__fortify_fail): Add libc_hidden_proto.
892         * misc/sys/cdefs.h (__errordecl, __va_arg_pack_len): Define.
893         * io/fcntl.h: Include bits/fcntl2.h when __va_arg_pack_len
894         is defined rather than when not C++.
895         * io/bits/fcntl2.h (__open_alias, __open64_alias, __openat_alias,
896         __openat64_alias): New redirects.
897         (__open_too_many_args, __open_missing_mode, __open64_too_many_args,
898         __open64_missing_mode, __openat_too_many_args, __openat_missing_mode,
899         __openat64_too_many_args, __openat64_missing_mode): New __errordecls.
900         (open, open64, openat, openat64): Rewrite as __extern_always_inline
901         functions instead of function-like macros.
903 2007-09-14  H.J. Lu  <hongjiu.lu@intel.com>
905         * sysdeps/i386/i586/memcpy.S (__memcpy_chk): New definition.
906         * sysdeps/i386/i586/mempcpy.S (__memcpy_chk): New definition.
907         * sysdeps/i386/i586/memset.S (__memset_chk): New definition.
909 2007-09-15  Mike Frysinger  <vapier@gentoo.org>
911         * inet/inet_net.c: Reset digit to 0 for inputs starting with "0x".
912         * inet/tst-network.c (tests): Add edge case tests for "0", "0x", "0x0".
914 2007-09-14  Mike Frysinger  <vapier@gentoo.org>
916         * inet/tst-network.c: Increment ERRORS for failing tests.
918 2007-09-07  Jakub Jelinek  <jakub@redhat.com>
920         * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
921         * misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
922         implement as __extern_always_inline function.
923         (vsyslog): Define as __extern_always_inline function unconditionally.
924         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
925         When __va_arg_pack is defined, implement as __extern_always_inline
926         functions.
927         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
928         __extern_always_inline functions unconditionally.
929         * libio/bits/stdio.h (vprintf): Ifdef out the inline when
930         bits/stdio2.h will be included.
931         * wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
932         (swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
933         implement as __extern_always_inline functions.
934         (vswprintf, vwprintf, vfwprintf): Define as
935         __extern_always_inline functions unconditionally.
936         * debug/tst-chk1.c (do_test): Enable remaining tests for C++.
938 2007-09-03  Jakub Jelinek  <jakub@redhat.com>
940         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
941         define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
942         attribute.
943         * include/features.h (__USE_EXTERN_INLINES): Define only when
944         __extern_inline is defined.
945         * stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
946         is defined instead of when not __cplusplus.
947         * misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
948         is defined instead of when not __cplusplus.
949         * socket/sys/socket.h: Include bits/socket2.h when
950         __extern_always_inline is defined instead of when not __cplusplus.
951         * libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
952         is defined instead of when not __cplusplus.
953         * posix/unistd.h: Include bits/unistd.h when __extern_always_inline
954         is defined instead of when not __cplusplus.
955         * string/string.h: Include bits/string3.h when __extern_always_inline
956         is defined instead of when not __cplusplus.
957         * wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
958         is defined instead of when not __cplusplus.
959         (btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
960         * io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
961         is not defined.
962         * misc/bits/syslog-ldbl.h: Guard *_chk stuff with
963         defined __extern_always_inline instead of !defined __cplusplus.
964         * libio/bits/stdio-ldbl.h: Likewise.
965         * wcsmbs/bits/wchar-ldbl.h: Likewise.
966         * misc/bits/syslog.h (syslog): Don't define for C++.
967         (vsyslog): Use __extern_always_inline function for C++ instead of
968         a macro.
969         * libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
970         whenever that macro is defined.
971         (vprintf): Don't provide the inline for C++.
972         (fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
973         * libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
974         define the macros for C++.
975         (vsprintf, vsnprintf, vprintf, vfprintf): Define as
976         __extern_always_inline functions for C++.
977         * io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
978         stat64, lstat64, fstat64, fstatat64): Don't define if not
979         __USE_EXTERN_INLINES.
980         * wcsmbs/bits/wchar2.h: Fix #error message.
981         (swprintf, wprintf, fwprintf): Don't define the macros for C++.
982         (vswprintf, vwprintf, vfwprintf): Define using
983         __extern_always_inline functions for C++.
984         * string/bits/string3.h: Don't #undef macros if __cplusplus.
985         (memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
986         strncpy, strcat, strncat): Define as __extern_always_inline
987         functions instead of macros for C++.
988         * math/bits/cmathcalls.h: Guard __extern_inline routines with
989         defined __extern_inline.
990         * sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
991         to __extern_inline whenever that macro is defined.
992         * sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
993         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
994         * sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
995         * sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
996         * sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
997         * sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
998         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
999         * sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
1000         * sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
1001         gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
1002         prototypes.  Only provide __extern_inline routines if
1003         __USE_EXTERN_INLINES.
1004         * debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
1005         tests.
1006         * debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
1007         For now avoid some *printf tests in C++.  Skip all testing
1008         if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
1009         is not.
1010         * debug/tst-chk4.cc: New file.
1011         * debug/tst-chk5.cc: New file.
1012         * debug/tst-chk6.cc: New file.
1013         * debug/tst-lfschk4.cc: New file.
1014         * debug/tst-lfschk5.cc: New file.
1015         * debug/tst-lfschk6.cc: New file.
1016         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
1017         prototypes in C++.
1018         * include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
1019         __vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
1020         __vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
1022 2007-09-13  Ulrich Drepper  <drepper@redhat.com>
1024         * po/cs.po: Update from translation team.
1026 2007-09-11  Roland McGrath  <roland@redhat.com>
1028         * posix/Makefile ($(objpfx)getconf.speclist): Make it empty if cross
1029         compiling.
1031 2007-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1033         * sysdeps/mach/hurd/bits/ioctls.h (TAB3): New macro.
1035 2007-09-05  Roland McGrath  <roland@redhat.com>
1037         * manual/signal.texi (Signaling Another Process): Typo fix.
1038         From Karl Berry <karl@freefriends.org>.
1040 2007-08-29  Ulrich Drepper  <drepper@redhat.com>
1042         * sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
1043         zero if not defined.
1044         (make_request): Recognize optimistic addresses and treat them like
1045         deprecated addresses.
1046         Reported by Neil Horman <nhorman@redhat.com>.
1048 2007-08-28  Ulrich Drepper  <drepper@redhat.com>
1050         * nscd/connections.c (send_ro_fd): Also transfer file size.
1051         * nscd/nscd_helper.c (get_mapping): If nscd also transfers the
1052         file size don't call fstat.
1054         * nscd/nscd_helper.c (get_mapping): Avoid the pread call, just go
1055         ahead and map the file.  This should always be correct and we can
1056         catch problems later.
1058 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
1060         * libio/bits/stdio2.h (__fread_chk, __fread_unlocked_chk): New
1061         prototypes.
1062         (__fread_alias, __fread_unlocked_alias): New aliases.
1063         (fread): New extern inline.
1064         (fread_unlocked): Likewise.  Undef macro before definition of
1065         the inline function.
1066         * debug/Makefile (routines): Add fread_chk and fread_u_chk.
1067         (CFLAGS-fread_chk.c, CFLAGS-fread_u_chk.c): Add.
1068         * debug/Versions (libc): Export __fread_chk@@GLIBC_2.7
1069         and __fread_unlocked_chk@@GLIBC_2.7.
1070         * debug/fread_chk.c: New file.
1071         * debug/fread_u_chk.c: New file.
1072         * debug/tst-chk1.c (do_test): Add fread and fread_unlocked tests.
1074 2007-08-27  Jakub Jelinek  <jakub@redhat.com>
1076         * sysdeps/unix/sysv/linux/syscalls.list
1077         (personality): Change caller to EXTRA.
1079 2007-08-25  Ulrich Drepper  <drepper@redhat.com>
1081         * iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
1082         to keep gcc quiet.
1083         * iconvdata/iso-2022-cn.c (BODY): Likewise.
1085         * locale/programs/ld-collate.c (collate_output): Avoid warning if
1086         NDEBUG is defined.
1088         * Makerules: Use -p option with mkdir.
1090         * sunrpc/key_prot.c (xdr_unixcred): Work around gcc alias warning.
1091         * nis/nis_xdr.c (_xdr_nis_server): Likewise.
1092         (_xdr_directory_obj): Likewise.
1093         (xdr_entry_obj): Likewise.
1094         (xdr_group_obj): Likewise.
1095         (xdr_link_obj): Likewise.
1096         (xdr_table_obj): Likewise.
1097         (_xdr_nis_result): Likewise.
1098         (_xdr_ns_request): Likewise.
1099         (_xdr_ib_request): Likewise.
1100         (_xdr_nis_taglist): Likewise.
1101         (xdr_cback_data): Likewise.
1102         * nis/yp_xdr.c (xdr_ypmaplist): Likewise.
1103         (xdr_ypresp_maplist): Likewise.
1105         * stdio-common/Makefile: Avoid format string warning for tst-sprint.
1107         * posix/regex_internal.h: Prevent some declarations and definitions
1108         to be seen when used in tests.
1110         * posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
1111         * posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
1113         * debug/Makefile: Disable format checking when compiling tst-chk?.c.
1115         * config.make.in (datarootdir): Add to shut up configure.
1117         * sysdeps/x86_64/cacheinfo.c (handle_amd): Fix computation of
1118         associativity for fully-associative caches.
1120         * sysdeps/x86_64/cacheinfo.c (handle_amd): Handle L3 cache
1121         requests.  Fill on more associativity values for L2.
1122         Patch mostly by Evandro Menezes.
1124 2007-08-24  Ulrich Drepper  <drepper@redhat.com>
1126         * sysdeps/unix/sysv/linux/x86_64/init-first.c
1127         (_libc_vdso_platform_setup): Avoid using exported variable by using
1128         alias.
1130         * resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
1132         * sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
1133         fallocate64 as EXTRA.  It is not referenced if the symbol isn't
1134         defined.
1136 2007-08-23  Ulrich Drepper  <drepper@redhat.com>
1138         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Correctly
1139         align stack for call if pltexit is to be used.
1141         [BZ #3924]
1142         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Correctly
1143         align for function call in case pltexit has to be called later.
1145         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Avoid
1146         implicit atomic operation when storing function pointer.
1147         (_dl_runtime_profile): Likewise.
1149 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
1151         * nis/nis_table.c (nis_list): Don't fail if __follow_path returned
1152         NIS_NOTFOUND.
1154 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
1156         [BZ #4566]
1157         * string/strtok.c: Fix typo in comment.
1159         [BZ #4582]
1160         * debug/segfault.c: Fix typos in comments.
1162         [BZ #4588]
1163         * stdio-common/tempnam.c: Fix comment, it is not checked that
1164         TMPDIR points to a writable directory.
1166         [BZ #4726]
1167         * resolv/res_send.c (__libc_res_nsend): Initialize all of the
1168         memory allocated for the name server address.
1170         [BZ #4946]
1171         * nscd/connections.c (handle_request): Using sendfile always
1172         requires that mmap is used for the database.
1173         Patch by Petr Baudis <pasky@suse.cz>.
1175         [BZ #4905]
1176         * nscd/hstcache.c (cache_addhst): When reloading an entry which
1177         suddenly has two or more addresses, ignore it and remove the old
1178         entry.
1180         [BZ #4814]
1181         * resolv/res_hconf.c: Prepare for compiling outside libc.
1182         * nscd/res_hconf.c: New file.
1183         * nscd/Makefile (nscd-modules): Add res_hconf.  Add rules to build
1184         the new file.
1185         * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define.
1186         * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
1188         * nscd/hstcache.c (cache_addhst): Minimal optimization.
1190         [BZ #4925]
1191         * debug/pcprofiledump.c: Turn on internationalization by calling
1192         setlocale.  Patch mostly by Benno Schulenberg.
1194         [BZ #4936]
1195         * iconv/gconv.c (__gconv): If flush was successful, clear rest of
1196         the state.
1197         * iconvdata/Makefile: Add rules to build and run bug-iconv5.
1198         * iconvdata/bug-iconv5.c: New file.
1200 2007-08-04  Carlos O'Donell  <carlos@systemhalted.org>
1202         [BZ #4896]
1203         * elf/elf.h: Define R_PARISC_PLABEL21L, R_PARISC_PLABEL14R,
1204         R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT, R_PARISC_TLS_GD21L,
1205         R_PARISC_TLS_GD14R, R_PARISC_TLS_GDCALL, R_PARISC_TLS_LDM21L,
1206         R_PARISC_TLS_LDM14R, R_PARISC_TLS_LDMCALL, R_PARISC_TLS_LDO21L,
1207         R_PARISC_TLS_LDO14R, R_PARISC_TLS_DTPMOD32, R_PARISC_TLS_DTPMOD64,
1208         R_PARISC_TLS_DTPOFF32, R_PARISC_TLS_DTPOFF64, R_PARISC_TLS_LE21L,
1209         R_PARISC_TLS_LE14R, R_PARISC_TLS_IE21L, R_PARISC_TLS_IE14R,
1210         R_PARISC_TLS_TPREL32, R_PARISC_TLS_TPREL64.
1212 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
1214         [BZ #4937]
1215         * elf/do-lookup.h (do_lookup_x): Minimal improvement in hash
1216         lookup loop.  Suggested by John Reiser.
1218 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
1220         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include tls.h.
1222 2007-08-20  Ulrich Drepper  <drepper@redhat.com>
1224         * csu/libc-start.c: Don't handle VDSO_SETUP here.
1225         * sysdeps/unix/sysv/linux/init-first.c: Handle it here instead.
1226         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: Renamed to...
1227         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...this.  New file.
1228         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Move VDSO_SETUP code
1229         to...
1230         * sysdeps/unix/sysv/linux/x86_64/init-first.c: ...here.  New file.
1232 2007-08-18  Ulrich Drepper  <drepper@redhat.com>
1234         * po/nl.po: Update from translation team.
1236 2007-08-16  Andreas Jaeger  <aj@suse.de>
1238         * locale/localeinfo.h: Make _nl_category_name_idxs extern.
1239         Reported by Peter Festner <peter.festner@ewetel.net>.
1241 2007-08-17  Jakub Jelinek  <jakub@redhat.com>
1243         * login/tst-grantpt.c (test_einval): Add 3rd argument to open.
1245 2007-08-16  Jakub Jelinek  <jakub@redhat.com>
1247         * elf/Makefile ($(objpfx)ld.so): Use readelf -s and awk instead of nm -u
1248         to check for undefined symbols.
1250         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone):
1251         If the syscall fails, set errno to the actual returned error number
1252         rather than EINVAL.
1253         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): If
1254         arguments are incorrect, set errno to EINVAL, if the syscall
1255         fails, set errno to the actual returned error number.
1257         * stdlib/bits/stdlib-ldbl.h (__strtold_internal): Remove.
1258         * wcsmbs/bits/wchar-ldbl.h (__wcstold_internal): Remove.
1260         * sysdeps/sparc/sparc32/sparcv9b/memcpy.S: Moved to...
1261         * sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: ... here.  New
1262         file.
1263         (ASI_PNF, ASI_BLK_P): Don't define.
1264         * sysdeps/sparc/sparc32/sparcv9v/memcpy.S: Moved to...
1265         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: ... here.  New
1266         file.
1267         * sysdeps/sparc/sparc32/sparcv9v/memset.S: Moved to...
1268         * sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: ... here.  New
1269         file.
1271 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
1273         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Fix raising
1274         FE_UNDERFLOW on Niagara CPUs.
1276         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear all
1277         exceptions.
1279 2007-08-14  Jakub Jelinek  <jakub@redhat.com>
1281         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup): No
1282         need to check GLRO(dl_hwcap) & HWCAP_SPARC_FLUSH on sparcv9.
1283         (sparc_fixup_plt): Add do_flush argument instead of figuring whether
1284         flush should be used or not inside of the function.
1285         (elf_machine_fixup_plt, elf_machine_rela): Adjust caller.
1287         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone,
1288         __thread_start): Use HIDDEN_JUMPTARGET.
1289         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone,
1290         __thread_start): Likewise.
1291         * sysdeps/unix/sysv/linux/sparc/sysdep.h (JUMPTARGET): Define.
1293         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (__STRTOF): Declare.
1294         Add libc_hidden_proto.
1295         (STRTOF): Add libc_hidden_proto.
1296         (___new_strtold_l, ___new_wcstold_l): New weak aliases.
1297         (strtold_l, wcstold_l): Use them as second argument for
1298         long_double_symbol.
1300 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
1302         * elf/dl-misc.c: Undo last change.  The kernel won't allow it.
1304 2007-08-13  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1306         * stdlib/strtold_l.c: Include wchar.h if needed.  Add libc_hidden_def.
1308 2007-08-14  Ulrich Drepper  <drepper@redhat.com>
1310         * po/bg.po: New file.  From the translation team.
1312 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
1314         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PSELECT,
1315         __ASSUME_PPOLL, __ASSUME_ATFCTS, __ASSUME_SET_ROBUST_LIST,
1316         __ASSUME_UTIMENSAT, __ASSUME_FALLOCATE): Update per-arch conditions
1317         when each feature was introduced.
1319         * sysdeps/unix/sysv/linux/dl-vdso.c: Don't include dl-hash.h.
1320         * sysdeps/unix/sysv/linux/dl-vdso.h: Don't include dl-hash.h if NDEBUG.
1321         (CHECK_HASH): New macro.
1322         (PREPARE_VERSION): Use it.
1324         * sysdeps/unix/sysv/linux/pselect.c (__generic_pselect): Only provide
1325         prototype if not __ASSUME_PSELECT.
1326         * sysdeps/unix/sysv/linux/ppoll.c (__generic_ppoll): Only provide
1327         prototype if not __ASSUME_PPOLL.
1329         * sysdeps/unix/sysv/linux/dl-osinfo.h (ROUND): #undef after use.
1331         * sysdeps/unix/clock_settime.c (freq, __pthread_clock_settime,
1332         hp_timing_settime): Don't define or declare if HANDLED_CPUTIME
1333         is defined.
1335 2007-08-13  Ulrich Drepper  <drepper@redhat.com>
1337         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
1338         (_libc_vdso_platform_setup): If vDSO is not available point
1339         __vdso_gettimeofday to the vsyscall.
1340         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S [SHARED]: Use
1341         __vdso_gettimeofday instead of vsyscall.
1343 2007-08-13  Jakub Jelinek  <jakub@redhat.com>
1345         * nscd/servicescache.c: Include kernel-features.h.
1346         * nscd/gai.c: Likewise.
1347         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
1348         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
1349         * sysdeps/unix/sysv/linux/fxstatat.c: Likewise.
1350         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
1351         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
1352         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
1353         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
1354         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Likewise.
1355         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
1357 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
1359         * elf/dl-dst.h: No need for _dl_dst_count, _dl_dst_substitute,
1360         and _dl_get_origin defines anymore.
1362         * sysdeps/unix/sysv/linux/clock_gettime.c (maybe_syscall_gettime_cpu):
1363         Build fix for systems which might lack POSIX timer support.
1365         * sysdeps/unix/sysv/linux/x86_64/libc-start.c
1366         (_libc_vdso_platform_setup): Mangle function pointers before storing
1367         them.
1368         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
1369         Demangle vdso pointer before use.
1370         (INTERNAL_VSYSCALL): Likewise.
1372         * elf/cache.c (primes): Mark as const.
1373         Noted by Roland McGrath.
1375 2007-08-01  Andreas Jaeger  <aj@suse.de>
1376             Jakub Jelinek  <jakub@redhat.com>
1378         * elf/ldconfig.c (opt_ignore_aux_cache): Add new option.
1379         (options): Add option.
1380         (parse_opt): Handle option.
1381         (manual_link): Adjust process_file caller.  Call implicit_soname.
1382         (search_dir): Formatting.  Use and populate auxiliary cache.
1383         (main): Load and save auxiliary cache.
1384         * elf/readlib.c (process_file): Add stat_buf argument.  Pass struct
1385         stat64 from fstat64 to caller.
1386         (implicit_soname): New function.
1387         * elf/readelflib.c (process_elf_file): If DT_SONAME is not present,
1388         leave *soname as NULL.
1389         * elf/cache.c: Include libgen.h.
1390         (print_entry, print_cache, compare, save_cache, add_to_cache):
1391         Formatting and cleanups.
1392         (aux_cache_entry_id, aux_cache_entry, aux_cache_file_entry,
1393         aux_cache_file): New structures.
1394         (AUX_CACHEMAGIC): Define.
1395         (primes): New array.
1396         (aux_hash_size, aux_hash): New variables.
1397         (aux_cache_entry_id_hash, nextprime, init_aux_cache,
1398         search_aux_cache, insert_to_aux_cache, add_to_aux_cache,
1399         load_aux_cache, save_aux_cache): New functions.
1400         * sysdeps/generic/ldconfig.h (_PATH_LDCONFIG_AUX_CACHE): Define.
1401         (init_aux_cache, search_aux_cache, add_to_aux_cache,
1402         load_aux_cache, save_aux_cache, implicit_soname): New prototypes.
1403         (process_file): Adjust prototype.
1405 2007-08-12  Jakub Jelinek  <jakub@redhat.com>
1407         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Include stddef.h
1408         with __need_size_t.
1410 2007-08-12  Ulrich Drepper  <drepper@redhat.com>
1412         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect
1413         r_found_version structure as second parameter.
1414         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define.
1415         (_dl_vdso_vsym): Change type of second parameter accordingly.
1416         * sysdeps/unix/sysv/linux/x86-64/libc-start.c
1417         (_libc_vdso_platform_setup): Adjust.
1418         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
1419         (_libc_vdso_platform_setup): Likewise.
1421         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.c: Move to...
1422         * sysdeps/unix/sysv/linux/dl-vdso.c: ...here.
1423         * sysdeps/unix/sysv/linux/powerpc/dl-vdso.h: Move to...
1424         * sysdeps/unix/sysv/linux/dl-vdso.h: ...here.
1425         * csu/libc-start.c: Pretty printing.
1426         Use VDSO_SETUP if defined.
1427         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Define VDSO_SETUP
1428         and let generic code call into _libc_vdso_platform_setup.
1429         * sysdeps/unix/sysv/linux/x86_64/libc-start.c: New file.
1430         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: New file.
1431         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Pretty printing.
1432         Define INLINE_VSYSCALL and INTERNAL_VSYSCALL.
1433         * sysdeps/unix/sysv/linux/x86_64/Versions: Export __vdso_clock_gettime
1434         for GLIBC_PRIVATE.
1435         * sysdeps/unix/sysv/linux/x86_64/Makefile [subdir=elf]
1436         (sysdep_rountines): Add dl-vdso.
1438         * sysdeps/unix/sysv/linux/powerpc/Makefile: Use sysdep_routines instead
1439         of routines.
1441         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add
1442         attribute_hidden to __vdso_gettimeofday prototype.
1444 2007-08-12  Roland McGrath  <roland@redhat.com>
1446         * manual/stdio.texi (Variable Arguments Output): Fix xref to gcc manual.
1447         From: Karl Berry <karl@freefriends.org>.
1449 2007-08-11  Ulrich Drepper  <drepper@redhat.com>
1451         * elf/dl-misc.c (_dl_sysdep_read_whole_file): We really don't need
1452         an atime update for the files we read.
1454 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
1456         * shadow/lckpwdf.c (__lckpwdf): Use O_CLOEXEC if possible.
1458         * nscd/connections.c: Use O_CLOEXEC if possible.  Use mkostemp
1459         instead of mkstemp.
1461         * misc/Makefile (routines): Add mkostemp and mkostemp64.
1462         * misc/Versions: Export mkostemp and mkostemp64 for GLIBC_2.7.
1463         * misc/mkostemp.c: New file.
1464         * misc/mkostemp64.c: New file.
1465         * stdlib/stdlib.h: Declare the new functions.
1466         * sysdeps/posix/tempname.c: Add new parameter which is added to
1467         the flags for open.  Remove __GT_BIGFILE handling.
1468         * stdio-common/tempname.c: Likewise.
1469         * include/stdio.h: Adjust __gen_tempname prototype.
1470         Renumber __GT_* constants.
1471         * libio/oldtmpfile.c: Adjust for __gen_tempname interface change.
1472         * misc/mkdtemp.c: Likewise.
1473         * misc/mkstemp.c: Likewise.
1474         * misc/mkstemp64.c: Likewise.
1475         * misc/mktemp.c: Likewise.
1476         * stdio-common/tempnam.c: Likewise.
1477         * stdio-common/tmpfile.c: Likewise.
1478         * stdio-common/tmpfile64.c: Likewise.
1479         * stdio-common/tmpnam.c: Likewise.
1480         * stdio-common/tmpnam_r.c: Likewise.
1482 2007-08-10  Roland McGrath  <roland@frob.com>
1484         * sysdeps/mach/hurd/bits/ioctls.h (NLDLY, TABDLY, BSDLY, VTDLY):
1485         New macros.
1486         (NLDELAY, CRDELAY, TBDELAY, BSDELAY, VTDELAY): Define to those.
1487         Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
1489 2007-08-10  Ulrich Drepper  <drepper@redhat.com>
1491         * nss/nss_files/files-XXX.c (internal_setent): Use O_CLOEXEC if
1492         possible.
1493         * nss/nss_files/files-alias.c (internal_setent): Likewise.
1494         * nss/Makefile (libnss_files-routines): Add files-have_o_cloexec.
1495         * nss/nss_files/files-have_o_cloexec.c: New file.
1497         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Use O_CLOEXEC if
1498         available.
1500 2007-08-10  Jakub Jelinek  <jakub@redhat.com>
1502         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (___new_strtold_l,
1503         ___new_wcstold_l): New weak aliases.
1504         (strtold_l, wcstold_l): Use them as second argument for
1505         long_double_symbol.
1507 2007-08-09  Ulrich Drepper  <drepper@redhat.com>
1509         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Use correct
1510         register in test for error.
1512         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_CLOEXEC): Define.
1513         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_CLOEXEC): Likewise.
1515         * po/sv.po: Update from translation team.
1517 2007-08-06  Roland McGrath  <roland@redhat.com>
1519         * include/stdlib.h: Add libc_hidden_proto for strto*, __strto*_l.
1520         Remove __strto*_l inlines.
1521         * include/wchar.h: Add libc_hidden_proto for wcsto*, __wcsto*_l.
1522         * stdlib/strtod.c: Add libc_hidden_def.
1523         * stdlib/strtod_l.c: Likewise.
1524         * stdlib/strtold.c [__LONG_DOUBLE_MATH_OPTIONAL]: Add libc_hidden_proto
1525         for __new_strtold and __new_wcstold.
1526         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Add libc_hidden_proto for
1527         __STRTOF, STRTOF.
1528         * stdlib/strtol.c: Add libc_hidden_def.
1529         * stdlib/strtol_l.c: Likewise.
1530         * sysdeps/wordsize-64/strtol.c: Add libc_hidden_ver for strtoll and
1531         strtoq.
1533         * scripts/data/localplt-powerpc-linux-gnu.data: New file.
1535         * scripts/data/localplt-x86_64-linux-gnu.data: File renamed to ...
1536         * scripts/data/localplt-generic.data: ... here.
1537         * elf/Makefile (check-data): Get generic file if no other.
1538         ($(objpfx)check-localplt.out): Make target unconditional.
1540         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion):
1541         Use ElfW(Nhdr).
1543 2007-08-05  Ulrich Drepper  <drepper@redhat.com>
1545         * po/zh_CN.po: Updated translation from translation team.
1547 2007-08-05  Jakub Jelinek  <jakub@redhat.com>
1549         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (__socket):
1550         Don't use CGOTSETUP and CGOTRESTORE macros.
1552 2007-08-04  Roland McGrath  <roland@redhat.com>
1554         * posix/Makefile ($(objpfx)getconf.speclist): Fix typo.
1556 2007-08-04  Jakub Jelinek  <jakub@redhat.com>
1558         * io/bits/fcntl2.h (open, open64, openat, openat64): Add
1559         __extension__ around the whole statement expression.
1561 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
1563         * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
1564         elements during initialization.
1566         * po/pl.po: Updated translation from translation team.
1567         * po/tr.po: Likewise.
1568         * po/nl.po: Likewise.
1570 2007-08-03  Ulrich Drepper  <drepper@redhat.com>
1572         * rt/aio.h: Add __nonnull attributes.
1574 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
1576         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Properly handle -0.
1577         * stdlib/Makefile (tests): Add tst-strtod5.
1578         (tst-strtod5-ENV): New.
1579         * stdlib/tst-strtod5.c: New file.
1581         * intl/dcigettext.c (_nl_find_msg): Free encoding if __gconv_open
1582         failed.
1583         * intl/finddomain.c (_nl_find_domain): Free normalized_codeset
1584         on failure.
1586         * elf/dl-load.c (decompose_rpath): Free copy if result couldn't be
1587         allocated.
1589 2007-08-03  Jakub Jelinek  <jakub@redhat.com>
1591         * rt/mqueue.h (mq_timedreceive, mq_timedsend): Fix nonnull argument
1592         numbers.
1594 2007-08-02  Ulrich Drepper  <drepper@redhat.com>
1596         * io/Makefile (aux): Add have_o_cloexec.
1597         * include/fcntl.h: Declare __have_o_cloexec.
1598         * io/have_o_cloexec.c: New file.
1599         * sysdeps/unix/opendir.c (__opendir): Use O_CLOEXEC is available.
1600         (__alloc_dir): If O_CLOEXEC has been used, don't duplicate the
1601         fcntl call if not necessary.
1602         * login/utmp_file.c (setutent_file): Use __have_o_cloexec instead
1603         of local variable.
1605         * sysdeps/unix/opendir.c (__alloc_dir): Don't initialize ->data.
1606         Avoid memset, add explicit initialization.
1607         * sysdeps/unix/dirstream.h (struct __dirstream): Move data elemtn
1608         to the end and change into zero-sized array.
1609         Move lock member to fill a hole on 64-bit platforms.
1611         * stdlib/stdlib.h: Remove __strto*_internal prototypes and strto*
1612         inline functions.
1613         * include/stdlib.h: Add __strto*_internal prototypes here.
1614         * wcsmbs/wchar.h: Remove __wcsto*_internal prototypes and wcsto*
1615         inline functions.
1616         * include/wchar.h: Add __wcsto*_internal prototypes.
1617         * sysdeps/generic/inttypes.h: No need to protect the declaration
1618         of the __strto*_internal and __wcsto*_internal members here.
1620         * rt/mqueue.h: Change const to __const and add nonnull attributes.
1622 2007-08-02  Roland McGrath  <roland@redhat.com>
1624         * posix/Makefile ($(inst_libexecdir)/getconf): Make hard links to
1625         $(inst_bindir)/getconf if possible.
1627         * posix/Makefile ($(objpfx)getconf.speclist): New target.
1628         (generated): Add it.
1629         ($(inst_libexecdir)/getconf): Use it.
1631 2007-08-01  Ulrich Drepper  <drepper@redhat.com>
1633         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Using
1634         /proc is faster and sufficient.  /sys is still needed for
1635         __get_nprocs_conf.
1637 2007-08-01  Jakub Jelinek  <jakub@redhat.com>
1639         * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
1640         syscall as __fallocate64.
1641         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
1642         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
1644 2007-07-30  Jakub Jelinek  <jakub@redhat.com>
1646         * stdlib/tst-strtod2.c (do_test): Use %tu in fmt string for ptrdiff_t
1647         value.
1649         * stdio-common/tst-fmemopen2.c (do_test): Avoid fmt string warning
1650         if off_t is different rank from size_t.
1652         * sysdeps/generic/unwind-dw2.c (extract_cie_info, execute_cfa_program,
1653         uw_frame_state_for): Avoid type punning warnings.
1654         * sysdeps/generic/unwind-dw2-fde-glibc.c
1655         (_Unwind_IteratePhdrCallback): Likewise.
1656         * sysdeps/generic/unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
1657         (binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes,
1658         get_cie_encoding, linear_search_fdes): Don't mix char and unsigned char
1659         pointers.
1661 2007-07-31  Ulrich Drepper  <drepper@redhat.com>
1663         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs_conf): Count
1664         total processors using sysfs.
1665         (__get_nprocs): Use sysfs to determine which processors are online.
1667 2007-07-31  Jakub Jelinek  <jakub@redhat.com>
1669         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Fix
1670         syscall arguments count.
1672         * stdio-common/tfformat.c (sprint_doubles): Add 12 new tests.
1674 2007-07-30  Roland McGrath  <roland@redhat.com>
1676         * manual/libc.texinfo: Update copyrights, formatting magic, and
1677         @dircategory.  From Karl Berry <karl@freefriends.org>.
1679 2007-07-29  Ulrich Drepper  <drepper@redhat.com>
1681         [BZ #4860]
1682         * io/Makefile (headers): Add bits/fcntl2.h.
1684         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_ZERO_S): Optimize
1685         using gcc builtin.
1686         (__CPU_EQUAL_S): Likewise.
1688         * posix/Makefile (routines): Add sched_cpualloc and sched_cpufree.
1689         (tests): Add tst-cpuset.
1690         * posix/sched_cpualloc.c: New file.
1691         * posix/sched_cpufree.c: New file.
1692         * posix/tst-cpuset.c: New file.
1693         * posix/Versions: Export __sched_cpualloc and __sched_cpufree for
1694         GLIBC_2.7.
1695         * sysdeps/unix/sysv/linux/bits/sched.h: Define __CPU_*_S macros.
1696         * posix/sched.h: Define old CPU_* macros in temers of __CPU_*_S
1697         macros.  Define CPU_*_S macros.
1699 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
1701         * posix/getconf.c (vars): Add missing _SC_LEVEL4_CACHE_LINESIZE
1702         entry.
1704         [BZ #4858]
1705         * stdio-common/printf_fp.c (___printf_fp): Fix special case of
1706         #.0g and value rounded to 1.0.
1707         * stdio-common/tfformat.c (sprint_doubles): Add two new tests.
1709 2007-07-26  Jakub Jelinek  <jakub@redhat.com>
1711         * locale/programs/ld-monetary.c (monetary_finish): Avoid range check
1712         for int_frac_digits and frac_digits.
1714         * login/logout.c (logout): Avoid aliasing violation.
1715         * login/logwtmp.c (logwtmp): Likewise.
1717         * libio/genops.c (_IO_un_link): Avoid aliasing violation.
1719         * nscd/selinux.c (preserve_capabilities): Initialize new_caps
1720         to avoid warning.
1721         * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid
1722         warning.
1723         * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid
1724         warning.
1725         * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len
1726         to avoid warnings.
1728         * nss/nsswitch.c (__nss_lookup_function): Don't cast &ni->known to
1729         void **.
1730         * nss/nsswitch.h (service_user): Use void * type for KNOWN field.
1732         * nss/nss_files/files-hosts.c (LINE_PARSER): Cast host_addr to
1733         char * to avoid warning.
1734         * nis/nss_nis/nis-hosts.c (LINE_PARSER): Likewise.
1736         * timezone/Makefile (CFLAGS-zdump.c): Add -fwrapv.
1738         * locale/programs/ld-ctype.c (ctype_finish, set_class_defaults,
1739         allocate_arrays): Cast second argument to charmap_find_symbol
1740         to char * to avoid warnings.
1742         * locale/programs/repertoire.c (repertoire_new_char): Change
1743         from_nr, to_nr and cnt to unsigned long, adjust printf format
1744         string.
1746         * locale/programs/ld-collate.c (insert_value, handle_ellipsis):
1747         Cast second argument to new_element to char * to avoid warnings.
1749         * locale/weightwc.h (findidx): Cast &extra[-i] to const int32_t *.
1751         * intl/gettextP.h (struct loaded_domain): Change plural to const
1752         struct expression *.
1753         * intl/plural-eval.c (plural_eval): Change first argument to
1754         const struct expression *.
1755         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Change first
1756         argument to const struct expression **.
1757         * intl/plural-exp.h (EXTRACT_PLURAL_EXPRESSION, plural_eval): Adjust
1758         prototypes.
1759         * intl/loadmsgcat (_nl_unload_domain): Cast away const
1760         in call to __gettext_free_exp.
1762         * posix/fnmatch.c (fnmatch): Rearrange code to avoid maybe
1763         unitialized wstring/wpattern var warnings.
1765         * posix/runtests.c (struct a_test): Make data field const char *.
1767         * stdio-common/tst-sprintf2.c (main): Don't declere u, v and buf
1768         vars if not LDBL_MANT_DIG >= 106.
1770         * stdio-common/Makefile (CFLAGS-vfwprintf.c): Add -Wno-unitialized.
1772         * stdio-common/vfprintf.c (vfprintf): Cast first arugment to
1773         __find_specmb to avoid warning.
1775         * rt/tst-mqueue1.c (do_one_test): Add casts to avoid warnings.
1777         * debug/test-strcpy_chk.c (do_tests, do_random_tests): Add casts
1778         to avoid warnings.
1780         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Add L suffix to
1781         initializer.
1783         * sysdeps/unix/clock_gettime.c (clock_gettime): Only define
1784         tv var when it will be actually used.
1786         * sunrpc/rpc_cmsg.c (xdr_callmsg): Cast IXDR_PUT_* to void
1787         to avoid warnings.
1789         * iconvdata/gbk.c (BODY): Make buf and cp char instead of unsigned
1790         char array resp. pointer.
1791         * iconvdata/iso-2022-kr.c (BODY): Make buf unsigned char instead of
1792         char array.
1793         * iconvdata/cns11643.h (cns11643_to_ucs4): Change first argument
1794         to const unsigned char **.
1795         (ucs4_to_cns11643): Change second argument to unsigned char *.
1796         * iconvdata/euc-tw.c (BODY): Change endp type to
1797         const unsigned char *.
1798         * iconvdata/iso-ir-165.h (ucs4_to_isoir165): Change second argument
1799         to unsigned char *.
1800         * iconvdata/ibm1008_420.c (LOOP_NEED_FLAGS): Don't define.
1801         * iconvdata/iso-2022-cn.c (BODY): Change buf to unsigned char array.
1802         * iconvdata/iso-2022-cn-ext.c (BODY): Change buf, tmpbuf, tmp
1803         types to unsigned char pointers/arrays instead of char.
1804         * iconvdata/jis0201.h (ucs4_to_jisx0201): Change second argument
1805         to unsigned char *.
1806         * iconvdata/jis0208.h (ucs4_to_jisx0208): Likewise.
1807         * iconvdata/jis0212.h: Include assert.h.
1808         (ucs4_to_jisx0212): Change second argument to unsigned char *.
1809         assert that if cp[0] is not '\0', cp[1] is not '\0' either instead
1810         of trying to handle that.
1811         * iconvdata/euc-kr.c (euckr_from_ucs4): Initialize also cp[1] to
1812         shut up a warning.
1813         * iconvdata/euc-jp-ms.c (from_ucs4_lat1, from_ucs4_greek,
1814         from_ucs4_cjk, from_ucs4_cjkcpt, from_ucs4_extra): Change type to
1815         two dimensional const unsigned char arrays.
1816         (BODY): Cast "" to (const unsigned char *) for assignment to cp.
1817         Initialize endp to inptr to shut up a warning.
1819 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
1821         [BZ #4772]
1822         * time/strptime_l.c (__strptime_internal): Silently ignore
1823         strftime modifiers and field width in recursive calls.
1825         * include/time.h (enum ptime_locale_status): Remove.
1826         (__strptime_internal): Remove decided and era_cnt arguments,
1827         add statep argument.
1828         * time/strptime_l.c (__strptime_internal): Remove decided
1829         and era_cnt arguments, add statep argument.  Don't recompute
1830         any fields in recursive calls, only update caller's tm
1831         and state, if recursive call fails, don't change tm nor
1832         any state.
1833         (get_alt_number): Adjust.
1834         (recursive): Adjust caller.
1835         (strptime): Likewise.
1836         * time/strptime.c (strptime): Likewise.
1838 2007-07-19  Jakub Jelinek  <jakub@redhat.com>
1840         * iconv/gconv_int.h (__GCONV_NULCONV): New internal only error code.
1841         * iconv/gconv_cache.c (__gconv_lookup_cache): Return __GCONV_NULCONV
1842         if from and to charsets are the same.
1843         * iconv/gconv_db.c (__gconv_find_transform): Likewise.
1844         * intl/dcigettext.c (_nl_find_msg): Return NULL even if __gconv_open
1845         returns __GCONV_NOCONV, but not for __GCONV_NULCONV.
1847 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
1849         * wcsmbs/wchar.h: Only define wint_t if __need_wint_t.
1850         Don't define wint_t when __need_mbstate_t unless it
1851         is necessary.
1852         (__mbstate_t): Use __WINT_TYPE__ rather than wint_t
1853         in the typedef if possible.
1854         * wctype/wctype.h (wint_t): Define by including
1855         wchar.h with __need_wint_t instead of including stddef.h
1856         with __need_wint_t and as fallback definining it ourselves.
1857         * iconv/gconv.h (__need_wint_t): Define before including
1858         wchar.h.
1859         * sysdeps/gnu/_G_config.h: Don't include gconv.h if not _LIBC
1860         or _GLIBCPP_USE_WCHAR_T.
1861         (__need_wchar_t): Don't define
1862         if not _LIBC or _GLIBCPP_USE_WCHAR_T.
1863         (__need_wint_t): Don't define before including stddef.h,
1864         define before including wchar.h only if _LIBC or
1865         _GLIBCPP_USE_WCHAR_T.
1866         (_G_iconv_t): Don't define if not _LIBC or _GLIBCPP_USE_WCHAR_T.
1867         * sysdeps/mach/hurd/_G_config.h: Likewise.
1868         * sysdeps/generic/_G_config.h: Likewise.
1869         * libio/libio.h (__wunderflow, __wuflow, __woverflow): Only
1870         prototype if _LIBC or _GLIBCPP_USE_WCHAR_T.
1871         (_IO_getwc_unlocked, _IO_putwc_unlocked): Only define
1872         if _LIBC or _GLIBCPP_USE_WCHAR_T.
1874 2007-07-28  Ulrich Drepper  <drepper@redhat.com>
1876         * sysdeps/posix/posix_fallocate64.c: Undefine
1877         __posix_fallocate64_l64 before alias handling.
1878         * sysdeps/unix/sysv/linux/posix_fallocate.c: New file.
1879         * sysdeps/unix/sysv/linux/posix_fallocate64.c: New file.
1880         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: New file.
1881         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: New file.
1883         * io/tst-posix_fallocate.c: Include <fcntl.h>.
1885 2007-07-23  Jakub Jelinek  <jakub@redhat.com>
1887         * locale/programs/ld-collate.c (atwc): New variable.
1888         (add_to_tablewc): New toplevel function, moved from collate_output.
1889         (collate_output): Remove add_to_tablewc nested function.
1891         * iconv/iconvconfig.c (hash_table, hash_size): New toplevel vars.
1892         (name_insert): New function.
1893         (write_output): Remove hash_table and hash_size vars and name_insert
1894         nested function.
1896 2007-07-24  Roland McGrath  <roland@redhat.com>
1898         * Makerules (install-others-programs-nosubdir): New target.
1899         (install-no-libc.a-nosubdir): Depend on it.
1901         * iconv/Makefile (install-others-programs): Set this instead of
1902         install-others.
1903         * login/Makefile (install-others-programs): Likewise.
1904         * posix/Makefile (install-others-programs): Likewise.
1906         * Makerules (install-no-libc.a-nosubdir): Clean up conditional
1907         dependencies.
1909 2007-07-23  Ulrich Drepper  <drepper@redhat.com>
1911         * io/Makefile (tests): Add tst-posix_fallocate.
1912         * io/tst-posix_fallocate.c: New file.
1914         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1915         __ASSUME_FALLOCATE.
1917 2007-07-22  Roland McGrath  <roland@frob.com>
1919         * hurd/getdport.c: Add missing copyright year update.
1921         * sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU] (O_CLOEXEC): New macro.
1922         * hurd/port2fd.c (_hurd_port2fd): Implement O_CLOEXEC.
1924 2007-07-22  Ulrich Drepper  <drepper@redhat.com>
1926         * login/utmp_file.c (setutent_file): Use O_CLOEXEC if possible.
1928         * libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
1929         O_CLOEXEC is needed.
1930         * nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
1931         Avoid additional fcntl to set O_CLOEXEC if not needed.
1932         * nis/nss_compat/compat-initgroups.c: Likewise.
1933         * nis/nss_compat/compat-pwd.c: Likewise.
1934         * nis/nss_compat/compat-spwd.c: Likewise.
1936 2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1938         [BZ #3665]
1939         * manual/errno.texi: Change ECANCELED value to 119.
1941         [BZ #4610]
1942         * mach/lock-intern.h: Include <sys/cdefs.h>.
1944         [BZ #4178]
1945         * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
1946         reading A.
1948         [BZ #4126]
1949         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
1950         to __sigsuspend.
1952         * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
1954 2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
1956         * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
1957         `__ASSEMBLER__'.
1958         * sysdeps/mach/hurd/i386/tls.h: Likewise.
1960 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
1962         * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
1963         descriptor received from nscd.
1965         * sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
1967         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
1968         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
1969         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
1970         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1971         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
1972         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
1974 2007-07-20  Jakub Jelinek  <jakub@redhat.com>
1976         [BZ #4816]
1977         * manual/signal.texi (Non-atomic Example): Make memory var volatile.
1979         [BZ #4813]
1980         * login/forkpty.c (forkpty): Close master and slave fds on
1981         fork failure.  Patch by
1982         Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
1984 2007-07-18  Jakub Jelinek  <jakub@redhat.com>
1986         * include/features.h (__USE_ISOC95): New define.
1987         * wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
1988         swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
1989         for -std=iso9899:199409.
1990         * CONFORMANCE: Remove comments about unsupported AMD1.
1992 2007-07-17  Jakub Jelinek  <jakub@redhat.com>
1994         * sysdeps/ia64/sched_cpucount.c: New file.
1995         * sysdeps/powerpc/sched_cpucount.c: New file.
1997         * sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
1998         __BEGIN_DECLS/__END_DECLS around the prototype.
1999         * bits/sched.h (__sched_cpucount): Likewise.  Make second argument
2000         pointer to const cpu_set_t.
2002         * bits/types.h: Don't include stddef.h, don't define __need_size_t.
2003         * signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
2004         __need_size_t and include stddef.h.
2005         * sysvipc/sys/msg.h: Likewise.
2006         * posix/sched.h: Likewise.
2007         * hurd/hurd/signal.h (__need_size_t): Define.
2009         * CONFORMANCE: ctype.h and wctype.h no longer define size_t,
2010         neither does signal.h in pedantic ISO C namespaces.  stdio.h
2011         no longer defines wint_t or wchar_t.
2013         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
2014         * debug/vfwprintf_chk.c (__vfwprintf_chk): Use
2015         _IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
2016         * debug/vprintf_chk.c (__vprintf_chk): Likewise.
2017         * debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
2018         * debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
2019         * debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
2020         * debug/printf_chk.c (__printf_chk): Likewise.
2021         * debug/fprintf_chk.c (__fprintf_chk): Likewise.
2022         * debug/wprintf_chk.c (__wprintf_chk): Likewise.
2024         * sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
2025         Define.
2027         * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
2028         * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
2030 2007-07-16  Jakub Jelinek  <jakub@redhat.com>
2032         [BZ #4792]
2033         * stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
2034         * malloc/malloc.h (realloc): Likewise.
2036         * libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
2037         if one of proc_file_chain streams has that fileno.
2038         * stdio-common/Makefile (tests): Add tst-popen2.
2039         * stdio-common/tst-popen2.c: New test.
2041 2007-07-14  Jakub Jelinek  <jakub@redhat.com>
2043         * elf/ldconfig.c: Allow GPLv2 or any later version.
2044         * elf/readlib.c: Likewise.
2045         * elf/chroot_canon.c: Likewise.
2046         * elf/cache.c: Likewise.
2047         * nscd/mem.c: Likewise.
2048         * nscd/getpwuid_r.c: Likewise.
2049         * nscd/grpcache.c: Likewise.
2050         * nscd/aicache.c: Likewise.
2051         * nscd/getsrvbynm_r.c: Likewise.
2052         * nscd/nscd.c: Likewise.
2053         * nscd/servicescache.c: Likewise.
2054         * nscd/getsrvbypt_r.c: Likewise.
2055         * nscd/initgrcache.c: Likewise.
2056         * nscd/gethstbyad_r.c: Likewise.
2057         * nscd/gethstbynm2_r.c: Likewise.
2058         * nscd/getgrnam_r.c: Likewise.
2059         * nscd/nscd_setup_thread.c: Likewise.
2060         * nscd/getpwnam_r.c: Likewise.
2061         * nscd/gai.c: Likewise.
2062         * nscd/connections.c: Likewise.
2063         * nscd/dbg_log.c: Likewise.
2064         * nscd/cache.c: Likewise.
2065         * nscd/hstcache.c: Likewise.
2066         * nscd/nscd_conf.c: Likewise.
2067         * nscd/getgrgid_r.c: Likewise.
2068         * nscd/pwdcache.c: Likewise.
2069         * catgets/gencat.c: Likewise.
2070         * locale/programs/linereader.h: Likewise.
2071         * locale/programs/locarchive.c: Likewise.
2072         * locale/programs/ld-paper.c: Likewise.
2073         * locale/programs/locfile-kw.h: Likewise.
2074         * locale/programs/ld-address.c: Likewise.
2075         * locale/programs/xmalloc.c: Likewise.
2076         * locale/programs/ld-time.c: Likewise.
2077         * locale/programs/localedef.c: Likewise.
2078         * locale/programs/simple-hash.c: Likewise.
2079         * locale/programs/xstrdup.c: Likewise.
2080         * locale/programs/ld-numeric.c: Likewise.
2081         * locale/programs/locfile-kw.gperf: Likewise.
2082         * locale/programs/ld-collate.c: Likewise.
2083         * locale/programs/charmap-kw.gperf: Likewise.
2084         * locale/programs/charmap.h: Likewise.
2085         * locale/programs/charmap-kw.h: Likewise.
2086         * locale/programs/config.h: Likewise.
2087         * locale/programs/locfile.c: Likewise.
2088         * locale/programs/ld-ctype.c: Likewise.
2089         * locale/programs/charmap.c: Likewise.
2090         * locale/programs/ld-messages.c: Likewise.
2091         * locale/programs/repertoire.h: Likewise.
2092         * locale/programs/locale.c: Likewise.
2093         * locale/programs/ld-name.c: Likewise.
2094         * locale/programs/linereader.c: Likewise.
2095         * locale/programs/locfile.h: Likewise.
2096         * locale/programs/3level.h: Likewise.
2097         * locale/programs/ld-monetary.c: Likewise.
2098         * locale/programs/ld-measurement.c: Likewise.
2099         * locale/programs/charmap-dir.c: Likewise.
2100         * locale/programs/ld-identification.c: Likewise.
2101         * locale/programs/localedef.h: Likewise.
2102         * locale/programs/charmap-dir.h: Likewise.
2103         * locale/programs/repertoire.c: Likewise.
2104         * locale/programs/simple-hash.h: Likewise.
2105         * locale/programs/ld-telephone.c: Likewise.
2106         * locale/programs/locale-spec.c: Likewise.
2107         * locale/programs/locfile-token.h: Likewise.
2108         * posix/getconf.c: Likewise.
2109         * iconv/dummy-repertoire.c: Likewise.
2110         * iconv/iconv_charmap.c: Likewise.
2111         * iconv/iconvconfig.c: Likewise.
2112         * iconv/iconv_prog.c: Likewise.
2113         * malloc/memusagestat.c: Likewise.
2114         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
2116 2007-07-06  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2118         * sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
2119         * sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
2120         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
2121         check for the first argument.
2123 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
2125         [BZ #4775]
2126         * math/tgmath.h (__tgmath_real_type_sub): Formatting.
2127         (__tgmath_real_type): Fix if expr is const int or other const
2128         qualified integral type.
2129         (__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
2130         expressions and handle const qualified arguments.
2131         (__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
2132         __TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
2133         (__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
2134         statement expressions.
2135         (__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
2136         __TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
2137         (__TGMATH_UNARY_IMAG): Define.
2138         (conj, cproj): Use __TGMATH_UNARY_IMAG macro.
2139         * math/Makefile (tests): Add test-tgmath2.
2140         (CFLAGS-test-tgmath2.c): Add.
2141         * math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
2142         count_cfloat, count_cldouble): New variables.
2143         (NCCALLS): Define.
2144         (main): Check number of complex calls as well.
2145         (F(compile_test)): Add complex tests and tests with const qualified
2146         arguments.
2147         (y, z, ccount): Define.
2148         (F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
2149         F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
2150         F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
2151         F(cproj)): New functions.
2152         * math/test-tgmath2.c: New test.
2154 2007-07-11  Jakub Jelinek  <jakub@redhat.com>
2156         [BZ #4776]
2157         * elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
2158         RPATH etc. as "/" rather than "", don't segfault on empty paths,
2159         instead output ".".
2160         * dlfcn/Makefile (distribute): Add glreflib3.c.
2161         (module-names): Add glreflib3.
2162         ($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
2163         glreflib1.so.
2164         (LDFLAGS_glreflib3.so): New.
2165         * dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
2166         glreflib1.so.
2167         * dlfcn/glreflib3.c: New file.
2169         * intl/finddomain.c (_nl_find_domain): If _nl_explode_name
2170         returned -1, return NULL.
2171         * intl/explodename.c (_nl_explode_name): Return -1 if
2172         _nl_normalize_codeset failed.
2174 2007-07-07  Steven Munroe  <sjmunroe@us.ibm.com>
2176         * sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
2177         Specify .machine power6 to get ISA-V2.0 branch hints.  Unroll loops
2178         and avoid branch misspredicts for > 31 bytes memset case.
2179         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
2180         Remove toc ref to __cache_line_size.
2182         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
2183         to get ISA-V2.0 branch hints.
2184         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
2185         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
2186         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
2187         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
2188         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
2189         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
2190         Remove toc ref to __cache_line_size.
2192         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
2193         Include math_ldbl_opt.h.
2195 2007-07-10  Ulrich Drepper  <drepper@redhat.com>
2197         [BZ #4773]
2198         * time/strptime_l.c (__strptime_internal): Implement greedy
2199         matching of weekday and month names.
2201 2007-07-09  Roland McGrath  <roland@redhat.com>
2203         * elf/elf.h (NT_GNU_ABI_TAG): New macro.
2204         (ELF_NOTE_ABI): Use it.
2205         (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
2207 2007-07-09  Ulrich Drepper  <drepper@redhat.com>
2209         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
2210         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2212 2007-07-07  Ulrich Drepper  <drepper@redhat.com>
2214         [BZ #4745]
2215         * stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
2216         in loop to look for conversion specifier to avoid testing of
2217         wrong errno value.
2218         * stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
2219         * stdio-common/bug18.c: New file.
2220         * stdio-common/bug18a.c: New file.
2221         * stdio-common/bug19.c: New file.
2222         * stdio-common/bug19a.c: New file.
2224 2007-07-05  Mike Frysinger  <vapier@gentoo.org>
2226         * Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
2227         running awk script.
2229 2007-07-01  Jakub Jelinek  <jakub@redhat.com>
2231         * elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
2232         * elf/dl-minimal.c (__libc_memalign): Likewise.  Handle malloc (0).
2233         Return NULL if mmap failed instead of asserting it does not.
2234         (calloc): Check for integer overflow.
2236         * elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
2237         than LONG_MAX / 10.
2239 2007-07-03  Jakub Jelinek  <jakub@redhat.com>
2241         [BZ #4702]
2242         * nis/nss-default.c: Include errno.h.
2243         (init): Preserve errno.
2245 2007-07-02  Ulrich Drepper  <drepper@redhat.com>
2247         * sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
2249 2007-06-30  Ulrich Drepper  <drepper@redhat.com>
2251         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
2253 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2255         * sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
2257 2007-06-29  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2259         * sysdeps/s390/dl-procinfo.c: New file.
2260         * sysdeps/s390/dl-procinfo.h: New file.
2261         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
2263 2007-06-29  Jakub Jelinek  <jakub@redhat.com>
2265         * elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
2266         in PT_NOTE segments with multiple notes.
2267         * elf/readelflib.c (process_elf_file): Likewise.
2269 2007-06-22  Ulrich Drepper  <drepper@redhat.com>
2271         * nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
2272         ISO C compliant.
2274 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
2276         * elf/dl-close.c (free_mem): Free _dl_scope_free_list.
2278 2007-06-13  Jakub Jelinek  <jakub@redhat.com>
2280         * include/link.h: Don't include rtld-lowlevel.h.
2281         (struct link_map): Remove l_scope_lock.
2282         * sysdeps/generic/ldsodefs.h: Don't include rtld-lowlevel.h.
2283         (_dl_scope_free_list): New field (variable) in _rtld_global.
2284         (DL_LOOKUP_SCOPE_LOCK): Remove.
2285         (_dl_scope_free): New prototype.
2286         * elf/dl-runtime.c (_dl_fixup): Don't use __rtld_mrlock_*lock.
2287         Don't pass DL_LOOKUP_SCOPE_LOCK to _dl_lookup_symbol_x.
2288         (_dl_profile_fixup): Likewise.
2289         * elf/dl-sym.c (do_sym): Likewise.  Use wrapped _dl_lookup_symbol_x
2290         whenever !RTLD_SINGLE_THREAD_P, use THREAD_GSCOPE_SET_FLAG and
2291         THREAD_GSCOPE_RESET_FLAG around it.
2292         * elf/dl-close.c (_dl_close_worker): Don't use
2293         __rtld_mrlock_{change,done}.  Call _dl_scope_free on the old
2294         scope.  Make sure THREAD_GSCOPE_WAIT () happens if any old
2295         scopes were queued or if l_scope_mem has been abandoned.
2296         * elf/dl-open.c (_dl_scope_free): New function.
2297         (dl_open_worker): Use it.  Don't use __rtld_mrlock_{change,done}.
2298         * elf/dl-support.c (_dl_scope_free_list): New variable.
2299         * elf/dl-lookup.c (add_dependency): Remove flags argument.
2300         Remove DL_LOOKUP_SCOPE_LOCK handling.
2301         (_dl_lookup_symbol_x): Adjust caller.  Remove DL_LOOKUP_SCOPE_LOCK
2302         handling.
2303         * elf/dl-object.c (_dl_new_object): Don't use
2304         __rtld_mrlock_initialize.
2306 2007-06-19  Ulrich Drepper  <drepper@redhat.com>
2308         * sysdeps/generic/ldsodefs.h (rtld_global): Reorder some elements
2309         to fill in holes
2310         (rtld_global_ro): Likewise.
2312 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
2314         * elf/dl-addr.c (_dl_addr): Skip PT_LOAD checking if l_contiguous.
2315         Move PT_LOAD checking to...
2316         (_dl_addr_inside_object): ... here, new function.
2317         * elf/dl-sym.c (do_sym): If not l_contiguous,
2318         call _dl_addr_inside_object.
2319         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise.
2320         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
2321         * elf/dl-open.c (dl_open_worker): Likewise.
2322         (_dl_addr_inside_object): New function if IS_IN_rtld.
2323         * elf/dl-load.c (_dl_map_object_from_fd): Set l_contiguous if no
2324         holes are present or are PROT_NONE protected.
2325         * include/link.h (struct link_map): Add l_contiguous field.
2326         * sysdeps/generic/ldsodefs.h (_dl_addr_inside_object): New prototype.
2328 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
2329             Tomas Janousek  <tjanouse@redhat.com>
2330             Ulrich Drepper  <drepper@redhat.com>
2332         [BZ #4647]
2333         * resolv/res_send.c (send_dg): Remove socket_pf.  Use ipv6_unavail
2334         member in __res_state, only convaddr4to6 if nssocks[ns] is a PF_INET6
2335         socket.
2336         * resolv/resolv.h (__res_state): Add ipv6_unavail member.  Make
2337         unused member a bitmap.
2338         * resolv/res_init.c (__res_vinit): Reset ipv6_unavail if IPv6
2339         servers are configured.
2341 2007-06-18  Jakub Jelinek  <jakub@redhat.com>
2343         * elf/rtld.c (dl_main): Don't call init_tls more than once.
2345 2007-06-17  Andreas Schwab  <schwab@suse.de>
2347         * sysdeps/generic/initfini.c: Tell gcc about the nonstandard sections.
2349 2007-06-16  Andreas Jaeger  <aj@suse.de>
2351         [BZ #4125]
2352         * sysdeps/unix/sysv/linux/sys/ptrace.h
2353         (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK,
2354         PTRACE_O_TRACEVFORK, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC,
2355         PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT, PTRACE_O_MASK,
2356         PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE,
2357         PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE, PTRACE_EVENT_EXIT):
2358         Define.
2359         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
2360         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
2361         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
2362         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
2364 2007-06-16  Ulrich Drepper  <drepper@redhat.com>
2366         [BZ #4599]
2367         * sysdeps/unix/sysv/linux/check_pf.c (make_request): When
2368         determining whether there are IPv4/IPv6 addresses, ignore loopback
2369         addresses.
2371 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
2373         * soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
2374         * soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
2375         as the return type.  Change type of "r" variable to CMPtype.
2376         * soft-fp/eqsf2.c (__eqsf2): Likewise.
2377         * soft-fp/eqtf2.c (__eqtf2): Likewise.
2378         * soft-fp/gedf2.c (__gedf2): Likewise.
2379         * soft-fp/gesf2.c (__gesf2): Likewise.
2380         * soft-fp/getf2.c (__getf2): Likewise.
2381         * soft-fp/ledf2.c (__ledf2): Likewise.
2382         * soft-fp/lesf2.c (__lesf2): Likewise.
2383         * soft-fp/letf2.c (__letf2): Likewise.
2384         * soft-fp/unorddf2 (__unorddf2): Likewise.
2385         * soft-fp/unordsf2 (__unordsf2): Likewise.
2386         * soft-fp/unordtf2 (__unordtf2): Likewise.
2388 2007-06-09  Ulrich Drepper  <drepper@redhat.com>
2390         * elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
2391         make sure gcc doesn't mess around with this.
2393 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
2395         * elf/dl-lookup.c (_dl_lookup_symbol_x): Remove use of r_nlist.
2397 2007-06-08  Jakub Jelinek  <jakub@redhat.com>
2399         * elf/dl-close.c (_dl_close_worker): Remove all to be removed
2400         libraries from the global scope at once and call THREAD_GSCOPE_WAIT
2401         at most once per _dl_close_worker.
2403 2007-06-08  Ulrich Drepper  <drepper@redhat.com>
2405         * sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of
2406         __sched_cpucount as const.
2407         * posix/sched_cpucount.c: Adjust.
2409         * posix/sched_cpucount.c (__sched_cpucount): Allow using special
2410         instruction for counting bits.
2411         * sysdeps/x86_64/sched_cpucount.c: New file.
2413 2007-06-07  Ulrich Drepper  <drepper@redhat.com>
2415         * configure.in: Avoid variable named BASH.
2416         * config.make.in: Likewise.
2417         Patch in part by Mike Frysinger.
2419 2007-06-06  Jakub Jelinek  <jakub@redhat.com>
2421         [BZ #4586]
2422         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Treat
2423         pseudo-zeros as zero.
2424         * sysdeps/x86_64/ldbl2mpn.c: New file.
2425         * sysdeps/ia64/ldbl2mpn.c: New file.
2427 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
2429         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Remove
2430         unused ily variable.  Fix nextafterl on +-__LDBL_MAX__ and +-Inf.
2431         Remove unreachable code at the end.
2433 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
2435         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Correct description of
2436         ldbl-128ibm in comment.
2437         (fpclassifyl): Correct classification of denormals.
2438         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (nextafterl): Correct
2439         return value for MIN denormal. Rewrite using long double math too
2440         correctly handle denormals and canonicalize the results.
2442 2007-06-05  Jakub Jelinek  <jakub@redhat.com>
2444         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
2445         (__mpn_construct_long_double): Fix conversion where result ought
2446         to be smaller than __LDBL_MIN__, or the low double should be
2447         denormal.  Fix decision where to negate low double - honor round
2448         to even rules.
2449         * stdio-common/tst-sprintf2.c: Include string.h.
2450         (COMPARE_LDBL): Define.
2451         (TEST): Also test whether a string hexadecimal float representation
2452         can be parsed back to the number.
2453         (main): Add a couple of further tests.
2455 2007-06-04  Jakub Jelinek  <jakub@redhat.com>
2457         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
2458         (PRINT_FPHEX_LONG_DOUBLE): Fix printing numbers where lower double
2459         is non-zero, but smaller than 2 * __DBL_MIN__.
2460         * stdio-common/tst-sprintf2.c: New test.
2461         * stdio-common/Makefile (tests): Add tst-sprintf2.
2463         * math/test-misc.c (main): Don't run last batch of tests with
2464         IBM long double format.
2466 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
2468         * sysdeps/powerpc/powerpc32/970/fpu/Implies: New file.
2469         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: New file.
2470         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: New file.
2471         * sysdeps/powerpc/powerpc32/power6/fpu/Implies: New file.
2472         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
2473         * sysdeps/powerpc/powerpc64/970/fpu/Implies: New file.
2474         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New file.
2475         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New file.
2476         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New file.
2477         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
2478         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: New file.
2479         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies:
2480         New file.
2481         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies:
2482         New file.
2483         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies:
2484         New file.
2485         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies:
2486         New file.
2487         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies:
2488         New file.
2489         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: New file.
2490         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies:
2491         New file.
2492         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies:
2493         New file.
2494         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies:
2495         New file.
2496         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies:
2497         New file.
2498         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies:
2499         New file.
2501 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
2503         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: Move.
2504         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: To here.
2505         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: Move.
2506         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: To here.
2507         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: Move.
2508         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: To here.
2509         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: Move.
2510         * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: To here.
2512 2007-05-22  Steven Munroe  <sjmunroe@us.ibm.com>
2514         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S
2515         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
2516         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S
2517         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
2518         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S
2519         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
2520         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S
2521         (LONG_DOUBLE_COMPAT): Specify correct version, GLIBC_2_1.
2523 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
2525         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: New file.
2526         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.c: New file.
2527         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: New file.
2528         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: New file.
2530 2007-03-15  Steven Munroe  <sjmunroe@us.ibm.com>
2532         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S
2533         [LONG_DOUBLE_COMPAT]: Add compat_symbol for llrintl@@GLIBC_2_1.
2535 2006-02-13  Steven Munroe  <sjmunroe@us.ibm.com>
2537         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: New File
2538         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: New File
2539         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: New File
2540         * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: New File
2542 2006-10-20  Steven Munroe  <sjmunroe@us.ibm.com>
2544         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: New file.
2545         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: New file.
2547 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
2549         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llround.S: New file.
2550         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llroundf.S: New file.
2552         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: Moved.
2553         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: Likewise.
2554         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: To here.
2555         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
2557 2006-09-29  Steven Munroe  <sjmunroe@us.ibm.com>
2559         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: New file.
2560         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: New file.
2561         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: New file.
2562         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: New file.
2564 2006-09-28  Steven Munroe  <sjmunroe@us.ibm.com>
2566         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: New file.
2567         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: New file.
2568         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: New file.
2569         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
2570         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: New file.
2571         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: New file.
2573 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
2575         * sysdeps/powerpc/powerpc32/powerpc64/fpu/Makefile: New file.
2576         * sysdeps/powerpc/powerpc32/powerpc64/fpu/mpa.c: New file.
2577         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: New file.
2578         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: New file.
2580 2006-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
2582         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: New file.
2583         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: New file.
2584         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: New file.
2585         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: New file.
2586         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: New file.
2587         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: New file.
2588         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: New file.
2589         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: New file.
2590         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: New file.
2591         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: New file.
2592         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: New file.
2593         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: New file.
2594         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: New file.
2595         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: New file.
2596         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: New file.
2597         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: New file.
2599 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
2601         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrint.S: New file.
2602         * sysdeps/powerpc/powerpc32/powerpc64/fpu/s_llrintf.S: New file.
2604 2007-06-01  Steven Munroe  <sjmunroe@us.ibm.com>
2606         * sysdeps/powerpc/powerpc32/power6/memset.S: New file.
2607         * sysdeps/powerpc/powerpc64/power6/memset.S: New file.
2609 2007-05-31  Steven Munroe  <sjmunroe@us.ibm.com>
2611         * sysdeps/powerpc/powerpc32/970/Implies: New file.
2612         * sysdeps/powerpc/powerpc32/power5/Implies: New file.
2613         * sysdeps/powerpc/powerpc32/power5+/Implies: New file.
2614         * sysdeps/powerpc/powerpc32/power6/Implies: New file.
2615         * sysdeps/powerpc/powerpc32/power6x/Implies: New file.
2616         * sysdeps/powerpc/powerpc64/970/Implies: New file.
2617         * sysdeps/powerpc/powerpc64/power5/Implies: New file.
2618         * sysdeps/powerpc/powerpc64/power5+/Implies: New file.
2619         * sysdeps/powerpc/powerpc64/power6/Implies: New file.
2620         * sysdeps/powerpc/powerpc64/power6x/Implies: New file.
2622 2007-05-21  Steven Munroe  <sjmunroe@us.ibm.com>
2624         * sysdeps/powerpc/powerpc32/power4/memset.S: New file
2626 2007-03-13  Steven Munroe  <sjmunroe@us.ibm.com>
2628         * sysdeps/powerpc/powerpc64/memcpy.S: Improve aligned loop to minimize
2629         branch miss-predicts. Ensure that cache line crossing does not impact
2630         dispatch grouping.
2632 2006-12-13  Steven Munroe  <sjmunroe@us.ibm.com>
2634         * sysdeps/powerpc/powerpc64/power4/memcopy.h: Replace with include
2635         "../../powerpc32/power4/memcopy.h".
2636         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Replace with include
2637         "../../powerpc32/power4/wordcopy.c".
2639 2006-10-03  Steven Munroe  <sjmunroe@us.ibm.com>
2641         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: Moved.
2642         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: Likewise.
2643         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: Likewise.
2644         * sysdeps/powerpc/powerpc32/power4/Makefile: To here.
2645         * sysdeps/powerpc/powerpc32/power4/memcopy.h: Likewise.
2646         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
2648 2006-09-10  Steven Munroe  <sjmunroe@us.ibm.com>
2650         * sysdeps/powerpc/powerpc32/power6/memcpy.S: New file.
2652 2006-08-31  Steven Munroe  <sjmunroe@us.ibm.com>
2654         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: New file.
2655         * sysdeps/powerpc/powerpc32/powerpc64/Makefile: New file.
2656         * sysdeps/powerpc/powerpc32/powerpc64/memcopy.h: New file.
2657         * sysdeps/powerpc/powerpc32/powerpc64/wordcopy.c: New file.
2658         * sysdeps/powerpc/powerpc64/power4/Makefile: New file.
2659         * sysdeps/powerpc/powerpc64/power4/memcopy.h: New file.
2660         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: New file.
2661         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: New file.
2663 2006-07-06  Steven Munroe  <sjmunroe@us.ibm.com>
2665         * sysdeps/powerpc/powerpc64/power6/memcpy.S: New file.
2667 2006-03-20  Steven Munroe  <sjmunroe@us.ibm.com>
2669         * sysdeps/powerpc/powerpc32/power4/memcmp.S: New file.
2670         * sysdeps/powerpc/powerpc32/power4/memcpy.S: New file.
2671         * sysdeps/powerpc/powerpc32/power4/memset.S: New file.
2672         * sysdeps/powerpc/powerpc32/power4/strncmp.S: New file.
2673         * sysdeps/powerpc/powerpc64/power4/memcmp.S: New file.
2674         * sysdeps/powerpc/powerpc64/power4/memcpy.S: New file.
2675         * sysdeps/powerpc/powerpc64/power4/strncmp.S: New file.
2677 2007-05-29  Roland McGrath  <roland@redhat.com>
2679         * po/Makefile (po-sed-cmd): New variable.
2680         (libc.pot.files): Move sed command text in there, avoid \ inside ''.
2682 2007-05-29  Ulrich Drepper  <drepper@redhat.com>
2684         * crypt/md5-crypt.c: Fix comment.
2686         * nscd/nscd_helper.c (get_mapping): Handle short replies instead
2687         of crashing.  When this is the case or if the reply is malformed,
2688         don't try to close the new file descriptor since it does not
2689         exist.
2690         Patch in part by Guillaume Chazarain <guichaz@yahoo.fr>.
2692 2007-05-28  Jakub Jelinek  <jakub@redhat.com>
2694         * sysdeps/unix/sysv/linux/futimes.c (miss_utimensat): Don't define
2695         if __NR_utimensat is not defined.
2697 2007-05-26  Ulrich Drepper  <drepper@redhat.com>
2699         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Include <sysdep.h>.
2701 2007-05-25  Jakub Jelinek  <jakub@redhat.com>
2703         * io/bits/fcntl2.h (__open_2): Add nonnull attribute.
2704         (open): Fix comment typos.  Don't call __open_2 if flags
2705         is a compile time constant without O_CREAT.
2706         (__open64_2): Add nonnull attribute.
2707         (open64): Fix comment typos.  Don't call __open64_2 if flags
2708         is a compile time constant without O_CREAT.
2709         (__openat_2): Add nonnull attribute, fix nonnull attribute
2710         on redirect.
2711         (openat): Fix comment typos.  Don't call __openat_2 if flags
2712         is a compile time constant without O_CREAT.
2713         (__openat64_2): Add nonnull attribute, fix nonnull attribute
2714         on redirect.
2715         (openat64): Fix comment typos.  Don't call __openat64_2 if flags
2716         is a compile time constant without O_CREAT.
2718 2007-05-24  Ulrich Drepper  <drepper@redhat.com>
2720         * Makerules (sysd-rules): Define PTW for ptw-* files.
2721         * Versions: Define GLIBC_2.7 for libc.
2722         * include/stdio.h: Declare __fortify_fail.
2723         * debug/fortify_fail.c: New file.
2724         * debug/Makefile (routines): Add fortify_fail.
2725         * debug/chk_fail.c: Use __fortify_fail.
2726         * debug/stack_chk_fail.c: Likewise.
2727         * io/Versions: Export __open_2, __open64_2, __openat_2, and
2728         __openat64_2 for GLIBC_2.7.
2729         * io/fcntl.h: When compiling with fortification, include bits/fcntl2.h.
2730         * io/open.c: Define *_2 variant of function which checks for O_CREAT
2731         and fails if necessary.
2732         * io/open64.c: Likewise.
2733         * io/openat.c: Likewise.
2734         * io/openat64.c: Likewise.
2735         * sysdeps/unix/sysv/linux/open64.c: Likewise.
2736         * sysdeps/unix/sysv/linux/openat.c: Likewise.
2737         * sysdeps/unix/sysv/linux/openat64.c: Likewise.
2738         * io/bits/fcntl2.h: New file.
2739         * include/fcntl.h: Declare __open_2, __open64_2, __openat_2, and
2740         __openat64_2.
2741         * include/bits/fcntl2.h: New file.
2742         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
2743         Add open_2.
2744         * sysdeps/unix/sysv/linux/open_2.c: New file.
2746 2007-05-21  Ulrich Drepper  <drepper@redhat.com>
2748         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Pass correct value
2749         as second parameter to handle_intel.
2751         * nscd/aicache.c (addhstaiX): If reported TTL is zero don't cache
2752         the entry.
2754         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Move cache information
2755         handling to ...
2756         * sysdeps/x86_64/cacheinfo.c: ... here.  New file.
2757         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
2758         cacheinfo.
2759         * sysdeps/x86_64/memcpy.S: Complete rewrite.
2760         * sysdeps/x86_64/mempcpy.S: Adjust appropriately.
2761         Patch by Evandro Menezes <evandro.menezes@amd.com>.
2763         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: New file.
2765 2007-05-21  Jakub Jelinek  <jakub@redhat.com>
2767         [BZ #4525]
2768         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add epoll_pwait.
2769         * sysdeps/unix/sysv/linux/epoll_pwait.c: New file.
2770         * sysdeps/unix/sysv/linux/syscalls.list (epoll_pwait): Remove.
2772         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h (epoll_pwait): Declare.
2774         [BZ #4514]
2775         * stdio-common/vfprintf.c (vfprintf): Don't shadow workstart variable,
2776         reinitialize workend at the start of each do_positional format spec
2777         loop, free workstart before do_positional loops.
2778         (printf_unknown): Fix size of work_buffer.
2779         * stdio-common/tst-sprintf.c (main): Add 3 new testcases.
2781         * malloc/hooks.c (MALLOC_STATE_VERSION): Bump.
2782         (public_sET_STATe): If ms->version < 3, put all chunks into
2783         unsorted chunks and clear {fd,bk}_nextsize fields of largebin
2784         chunks.
2786         * malloc/malloc.c [MALLOC_DEBUG]: Revert 2007-05-13 changes.
2787         * malloc/hooks.c: Likewise.
2788         * malloc/arena.c: Likewise.
2789         * malloc/malloc.c (do_check_malloc_state): Don't assert
2790         n_mmaps is not greater than n_mmaps_max.  This removes the need
2791         for the previous change.
2793         * malloc/Makefile (CFLAGS-malloc.c): Revert accidental
2794         2007-05-07 commit.
2796 2007-05-19  Ulrich Drepper  <drepper@redhat.com>
2798         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRIVATE_FUTEX):
2799         Define for kernel >= 2.6.22.
2801 2007-05-18  Ulrich Drepper  <drepper@redhat.com>
2803         * elf/dl-close.c (_dl_close_worker): When removing object from
2804         global scope, wait for all lookups to finish afterwards.
2805         * elf/dl-open.c (add_to_global): When global scope array must
2806         grow, allocate a new one and free old array only after all
2807         lookups finish.
2808         * elf/dl-runtime.c (_dl_fixup): Protect using global scope.
2809         (_dl_lookup_symbol_x): Likewise.
2810         * elf/dl-support.c: Define _dl_wait_lookup_done.
2811         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
2812         _dl_wait_lookup_done.
2814         * malloc/malloc.c (do_check_chunk): Correct check for mmaped block
2815         not overlapping with arena.
2817         * malloc/mcheck.c (reallochook): If size==0, free the block.
2819         * rt/tst-shm.c: Use fstat64 instead of fstat.
2821         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Fix case where
2822         __NR_sync_file_range is not defined.
2824 2007-05-17  Ulrich Drepper  <drepper@redhat.com>
2826         Dummy files to prevent stub versions from being used.
2827         * sysdeps/x86_64/fpu/k_cosl.c: New file.
2828         * sysdeps/x86_64/fpu/k_rem_pio2l.c: New file.
2829         * sysdeps/x86_64/fpu/k_sinl.c: New file.
2830         * sysdeps/x86_64/fpu/k_tanl.c: New file.
2832         * version.h (VERSION): Set to 2.6.90.
2834 2007-05-14  Ulrich Drepper  <drepper@redhat.com>
2836         * version.h (VERSION): Define to 2.6.
2837         * include/features.h (__GLIBC_MINOR__): Define to 6.
2839         * malloc/malloc.c: Use all small bin slots on 64-bit archs.
2841         * malloc/malloc.c (largebin_index): Really have 32 buckets with 64
2842         sizes.
2844 2007-05-13  Ulrich Drepper  <drepper@redhat.com>
2846         * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum
2847         number of mmaps.  n_mmaps_max is the target.
2848         * malloc/hooks.c: Likewise.
2849         * malloc/arena.c: Likewise.
2851 2007-05-12  Andreas Jaeger  <aj@suse.de>
2853         * sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
2854         getpid.
2856 2007-05-11  Ulrich Drepper  <drepper@redhat.com>
2858         * elf/dl-close.c (_dl_close_worker): Help gcc to optimize by
2859         adding new variables.
2861         * elf/dl-open.c (add_to_global): Introduce variable ns to help gcc
2862         optimize.  Completely extend global scope array before making the
2863         new entries visible.
2865 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
2867         * sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
2868         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
2869         tst-getcpu.
2871         * include/link.h: Move l_version and l_nversion members around to
2872         fill gaps.
2874         * scripts/check-c++-types.sh: Don't use -fnu89-inline option.
2876         * sysdeps/unix/sysv/linux/sched_setaffinity.c
2877         (__sched_setaffinity_new): If syscall was successful and
2878         RESET_VGETCPU_CACHE is defined, use it before returning.
2879         * sysdeps/unix/sysv/linux/x86_64/sched_setaffinity.c: New file.
2881         * io/sys/stat.h: Make sure struct timespec is defined for
2882         __USE_ATFILE.
2884         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and
2885         UTIME_OMIT.
2886         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
2887         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2888         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
2889         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2890         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
2891         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2892         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_UTIMENSAT.
2893         * io/sys/stat.h: Declare utimensat, futimens.
2894         * io/utimensat.c: New file.
2895         * io/futimens.c: New file.
2896         * sysdeps/unix/sysv/linux/utimensat.c: New file.
2897         * sysdeps/unix/sysv/linux/futimens.c: New file.
2898         * io/Makefile (routines): Add utimensat, futimens.
2899         * io/Versions: Add utimensat, futimens to GLIBC_2.6.
2900         * sysdeps/unix/sysv/linux/lutimes.c: New file.
2901         * sysdeps/unix/sysv/linux/futimes.c: Use utimensat syscall if
2902         available.
2904         * include/sys/cdefs.h: Redefine __nonnull so that test for
2905         incorrect parameters in the libc code itself are not omitted.
2907 2007-05-09  Jakub Jelinek  <jakub@redhat.com>
2909         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Don't raise overflow
2910         exception in addition to inexact when asked to raise only FE_INEXACT.
2912         [BZ #3427]
2913         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
2914         in *envp.
2916 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
2918         [BZ #4403]
2919         * string/strfry.c (strfry): Make result more random.
2921 2007-05-07  Richard Henderson  <rth@redhat.com>
2923         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanl): Don't define
2924         if __NO_LONG_DOUBLE_MATH.
2925         * sysdeps/unix/sysv/linux/alpha/ioperm.c: If BWX insns not
2926         available in the compiler, add .arch directive to the assembly.
2928 2007-05-07  Jakub Jelinek  <jakub@redhat.com>
2930         * sysdeps/alpha/fpu/s_nearbyint.c (nearbyintl): Fix version on
2931         compat_symbol to GLIBC_2_1.
2932         * sysdeps/alpha/fpu/s_fmin.S (fminl): Likewise.
2933         * sysdeps/alpha/fpu/s_trunc.c (truncl): Likewise.
2934         * sysdeps/alpha/fpu/s_fmax.S (fmaxl): Likewise.
2935         * sysdeps/alpha/fpu/s_lrint.c (lrintl, llrintl): Likewise.
2936         * sysdeps/alpha/fpu/s_lround.c (lroundl, llroundl): Likewise.
2937         * sysdeps/alpha/fpu/s_round.c (roundl): Likewise.
2938         * sysdeps/alpha/fpu/s_isnan.c (isnanl): Provide compat_symbol in
2939         libc, not libm.
2940         (__isnanl): New compat_symbol.
2942 2007-05-07  Ulrich Drepper  <drepper@redhat.com>
2943             Jakub Jelinek  <jakub@redhat.com>
2945         * malloc/arena.c (heap_info): Add mprotect_size field, adjust pad.
2946         (new_heap): Initialize mprotect_size.
2947         (grow_heap): When growing, only mprotect from mprotect_size till
2948         new_size if mprotect_size is smaller.  When shrinking, use PROT_NONE
2949         MMAP for __libc_enable_secure only, otherwise use MADV_DONTNEED.
2951 2007-04-30  Steven Munroe  <sjmunroe@us.ibm.com>
2952             Peter Bergner  <bergner@us.ibm.com>
2954         * sysdeps/powerpc/bits/fenv.h: Declare __fe_mask_env extern.
2955         Define FE_NOMASK_ENV as FE_EANBLED_ENV.  Define FE_MASK_ENV.
2956         * sysdeps/powerpc/fpu/Makefile: Add fe_mask to libm-support.
2957         * sysdeps/powerpc/fpu/fe_mask.c: New file.
2958         * sysdeps/powerpc/fpu/fe_nomask.c: Correct comment.
2959         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept):
2960         Call __fe_mask_env() if all FP exceptions disabled.
2961         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Copy high 32-bits
2962         from old FPSCR to new fenv to propagate DFP rounding modes.
2963         Call __fe_mask_env() if FP exceptions previously enabled.
2964         * sysdeps/powerpc/fpu/fesetenv.c (fesetenv): Change mask to merge
2965         exceptions from env.  Use __fe_nomask_env() or __fe_mask_env() when
2966         transitioning from all exceptions disabled to any exception enabled
2967         or visa versa.
2968         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Change mask to
2969         merge exceptions from env.  Call __fe_nomask_env or __fe_mask_env
2970         when transitioning from all exceptions disabled to any exception
2971         enabled or visa versa.
2972         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Moved to...
2973         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: ...here.
2974         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Moved to...
2975         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: ...here.
2976         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: New file.
2977         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: New file.
2979 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
2981         [BZ #4465]
2982         * posix/unistd.h: Remove __THROW from fdatasync.
2984 2007-05-06  Mike Frysinger  <vapier@gentoo.org>
2986         [BZ #4465]
2987         * sysdeps/unix/sysv/linux/syscalls.list (fdatasync): Add "C" to args.
2989 2007-05-06  Ulrich Drepper  <drepper@redhat.com>
2991         * stdio-common/vfprintf.c (process_string_arg): Optimize
2992         ridiculous precision in wide char code printing multi-byte string.
2993         Reported by Jim Meyering <jim@meyering.net>.
2995         [BZ #4131]
2996         * elf/dl-addr.c (_dl_addr): Compare address with actual segment
2997         boundaries to work around systems with overlapping binary loading.
2998         Based on a patch by Suzuki <suzuki@in.ibm.com>.
3000 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
3002         * stdio-common/vfprintf.c (process_string_arg): Adjust call to
3003         __mbsnrtowcs after last change.
3005         * locale/programs/linereader.c (get_symname): Fix adding final NUL.
3006         (get_ident): Likewise.
3008 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
3010         * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT
3011         with setting the sticky bit.
3012         * math/test-misc.c (main): Add more truncation tests.
3014 2007-04-14  Uros Bizjak  <ubizjak@gmail.com>
3016         * soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
3017         double in the function declaration.
3018         * soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
3019         double in the function declaration.
3020         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
3021         float in the function declaration.
3022         * soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
3023         float in the function declaration.
3025         * soft-fp/extended.h (FP_UNPACK_RAW_E): Do not increase X##_e for
3026         denormal operands.  Do not generate FP_EX_DENORM exception.
3027         (FP_UNPACK_RAW_EP): Ditto.
3028         (FP_UNPACK_SEMIRAW_E): Use FP_UNPACK_RAW_E instead of
3029         undefined _FP_UNPACK_RAW_E.
3030         (FP_UNPACK_SEMIRAW_EP): Use FP_UNPACK_RAW_EP instead of
3031         undefined _FP_UNPACK_RAW_EP.
3032         (FP_PACK_SEMIRAW_E): Use FP_PACK_RAW_E instead of
3033         undefined _FP_PACK_RAW_E.
3034         (FP_PACK_SEMIRAW_EP): Use FP_PACK_RAW_EP instead of
3035         undefined _FP_PACK_RAW_EP.
3037         * soft-fp/op-2.h (_FP_FRAC_COPY_2_2): Define as alias to
3038         _FP_FRAC_COPY_2.
3039         * soft-fp/op-4.h (_FP_FRAC_COPY_2_2): Define as alias to
3040         _FP_FRAC_COPY_4.
3042 2007-04-16  Uros Bizjak  <ubizjak@gmail.com>
3043             Jakub Jelinek  <jakub@redhat.com>
3045         * soft-fp/op-common.h (FP_EXTEND): Do not abort when
3046         _FP_EXPBIAS_##dfs == _FP_EXPBIAS_##sfs.  Handle denormals for
3047         this case.
3048         * soft-fp/op-common.h (FP_TRUNC): Ditto.
3050 2007-05-03  Jakub Jelinek  <jakub@redhat.com>
3052         * math/test-misc.c (main): Add tests for rounding long double
3053         values close to smallest double denormalized value to double.
3055 2007-04-30  Joseph Myers  <joseph@codesourcery.com>
3057         * soft-fp/op-common.h (FP_TRUNC): Correct off-by-one error in
3058         condition for truncating to 0.  Set sticky bit for such
3059         truncation.
3061 2007-05-02  Jakub Jelinek  <jakub@redhat.com>
3063         * stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
3064         fixed length array for ignore.
3066 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
3068         [BZ #4438]
3069         * stdio-common/vfprintf.c (process_string_arg): Don't overflow the
3070         stack for large precisions.
3071         * stdio-common/test-vfprintf.c (main): Add test for large
3072         precision.
3074 2007-04-30  Jakub Jelinek  <jakub@redhat.com>
3076         * stdio-common/printf_fp.c (___printf_fp): Don't print negative sign
3077         for exponent 0.
3078         * stdio-common/tfformat.c (sprint_doubles): Add a new test.
3080         [BZ #4439]
3081         * resolv/inet_ntop.c (inet_ntop4): Take terminating '\0' into
3082         account in the size check.
3083         * resolv/tst-inet_ntop.c: New test.
3084         * resolv/Makefile (tests): Add tst-inet_ntop.
3086 2007-04-30  Ulrich Drepper  <drepper@redhat.com>
3087             Jakub Jelinek  <jakub@redhat.com>
3089         [BZ #4349]
3090         * malloc/malloc.c: Keep separate list for first blocks on the bin
3091         lists with a given size.  This helps skipping over list elements
3092         we know won't fit in two places.
3093         Inspired by a patch by Tomash Brechko <tomash.brechko@gmail.com>.
3095 2007-04-28  Ulrich Drepper  <drepper@redhat.com>
3097         [BZ #4102]
3098         * sysdeps/posix/getaddrinfo.c (default_labels): Assign separate
3099         label to Teredo tunnel addresses 2001://32.
3101 2007-04-27  Ulrich Drepper  <drepper@redhat.com>
3103         * locale/programs/ld-collate.c (collate_read): Allow order_start
3104         after copy.
3106         * locale/programs/ld-collate.c (collate_read): Fix printing of
3107         error message.
3109         [BZ #3213]
3110         * locale/C-translit.h.in: Add entry for U2044.
3112         [BZ #4342]
3113         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Allow
3114         hexa-decimal floats without exponent.
3115         * stdio-common/tstscanf.c (main): Adjust Test 8 test for success.
3117 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
3119         * sysdeps/unix/sysv/linux/bits/sched.h: Declare sched_getcpu.
3120         * sysdeps/unix/sysv/linux/sched_getcpu.c: New file.
3121         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: New file.
3122         * sysdeps/unix/sysv/linux/Versions: Export sched_getcpu for
3123         GLIBC_2.6.
3124         * sysdeps/unix/sysv/linux/Makefile [subdir=posix] (sysdep_routines):
3125         Add sched_getcpu.
3127 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
3129         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Return -1 instead
3130         of 0 after the out_fail label.
3132 2007-04-25  Ulrich Drepper  <drepper@redhat.com>
3134         [BZ #4406]
3135         * iconv/gconv_charset.h (strip): Allow ':'.
3136         * iconv/iconv_open.c (iconv_open): Adjust comment.
3138 2007-04-25  Jakub Jelinek  <jakub@redhat.com>
3140         * libio/bits/stdio.h (fgetc_unlocked): Add extern inline optimized
3141         version.
3143 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
3145         [BZ #4381]
3146         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Ensure sufficient
3147         alignment of buffer and tmp_buffer.
3148         * nis/nss_nis/nis-hosts.c (internal_nis_gethostent_r,
3149         internal_gethostbyname2_r, _nss_nis_gethostbyaddr_r): Ensure sufficient
3150         alignment of buffer.
3151         * resolv/nss_dns/dns-hosts.c (getanswer_r): Likewise.  Handle buflen
3152         bigger than INT_MAX.
3153         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.  Add errnop and
3154         h_errnop arguments.  Fail if buflen is too small.
3155         (_nss_dns_getnetbyname_r, _nss_dns_getnetbyaddr_r): Adjust callers.
3157 2007-04-23  Jakub Jelinek  <jakub@redhat.com>
3159         [BZ #4405]
3160         * iconvdata/gconv-modules (E13B): Add a missing slash to the alias
3161         name.  Patch by Aurelien Jarno <aurelien@aurel32.net>.
3163 2007-04-22  Roland McGrath  <roland@redhat.com>
3165         * elf/elf.h (NT_PRXFPREG): New macro.
3167 2007-04-19  Andreas Jaeger  <aj@suse.de>
3169         [BZ #3905]
3170         * bits/in.h (IPV6_ROUTER_ALERT, IPV6_MTU_DISCOVER, IPV6_MTU,
3171         IPV6_RECVERR, IPV6_V6ONLY, IPV6_JOIN_ANYCAST, IPV6_LEAVE_ANYCAST):
3172         Added.
3174 2007-04-19  Ulrich Drepper  <drepper@redhat.com>
3176         * include/sys/mman.h: Mark madvise hidden.
3177         * misc/madvise.c: Add libc_hidden_def.
3179 2007-04-06  Jakub Jelinek  <jakub@redhat.com>
3181         * nis/nis_domain_of.c (__nis_domain_of): New function.
3182         * include/rpcsvc/nislib.h (__nis_domain_of): New prototype.
3183         * nis/nis_lookup.c (nis_lookup): Use __nis_domain_of.
3184         * nis/nis_call.c (rec_dirsearch): Likewise.
3185         (first_shoot): Likewise.  Remove search_parent_first argument.
3186         (struct nis_server_cache): Rename search_parent_first field
3187         to search_parent.
3188         (nis_server_cache_search, nis_server_cache_add): Rename
3189         search_parent_first argument to search_parent.
3190         (__nisfind_server): Likewise.  If search_parent, call
3191         __nis_domain_of.
3193 2007-04-18  Ulrich Drepper  <drepper@redhat.com>
3195         * sysdeps/posix/getaddrinfo.c: Remove commented-out code.
3197 2007-04-17  Ulrich Drepper  <drepper@redhat.com>
3199         [BZ #4368]
3200         * stdlib/stdlib.h: Remove obsolete part of comment for realpath.
3202 2007-04-16  Ulrich Drepper  <drepper@redhat.com>
3204         [BZ #4364]
3205         * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3.
3207 2007-04-15  Jakub Jelinek  <jakub@redhat.com>
3209         * locale/programs/locarchive.c (INITIAL_NUM_NAMES,
3210         INITIAL_SIZE_STRINGS, INITIAL_NUM_LOCREC): Update to accomodate
3211         current number of locales in SUPPORTED.
3212         (create_archive): Initialize serial.
3213         (enlarge_archive): Preserve aliases rather than duplicating
3214         their locrecs.
3216 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
3218         * libio/genops.c (_IO_default_finish): Call _IO_lock_fini
3219         after _IO_un_link, not before it.
3221         * stdio-common/printf_fp.c (___printf_fp): Fix exponent -4
3222         special case handling when wcp == wstartp + 1.  Fix a comment typo.
3223         * stdio-common/tfformat.c (sprint_doubles): Add a new testcase.
3225 2007-03-30  Jakub Jelinek  <jakub@redhat.com>
3227         * libio/libio.h (__underflow, __uflow, __overflow, __wunderflow,
3228         __wuflow, __woverflow, _IO_getc, _IO_putc, _IO_peekc_locked, _IO_padn,
3229         _IO_sgetn, _IO_seekoff, _IO_seekpos, _IO_getwc, _IO_putwc, _IO_wpadn):
3230         Remove __THROW.
3231         * libio/fileops.c (new_do_write, _IO_file_xsgetn_mmap,
3232         _IO_file_xsgetn_maybe_mmap): Likewise.
3233         * libio/oldfileops.c (old_do_write): Likewise.
3234         * libio/libioP.h (_IO_switch_to_get_mode, _IO_switch_to_wget_mode,
3235         _IO_init_marker, _IO_init_wmarker, _IO_default_uflow,
3236         _IO_wdefault_uflow, _IO_default_setbuf, _IO_default_seekpos,
3237         _IO_do_write, _IO_new_do_write, _IO_old_do_write, _IO_wdo_write,
3238         _IO_flush_all_lockp, _IO_flush_all, _IO_cleanup,
3239         _IO_flush_all_linebuffered, _IO_new_fgetpos, _IO_old_fgetpos,
3240         _IO_new_fsetpos, _IO_old_fsetpos, _IO_new_fgetpos64,
3241         _IO_old_fgetpos64, _IO_new_fsetpos64, _IO_old_fsetpos64,
3242         _IO_file_setbuf, _IO_file_seekoff, _IO_file_xsputn, _IO_file_xsgetn,
3243         _IO_file_underflow, _IO_file_underflow_mmap,
3244         _IO_file_underflow_maybe_mmap, _IO_file_overflow, _IO_file_attach,
3245         _IO_file_open, _IO_file_fopen, _IO_file_write, _IO_file_read,
3246         _IO_file_sync, _IO_file_close_it, _IO_file_finish,
3247         _IO_new_file_attach, _IO_new_file_close_it, _IO_new_file_finish,
3248         _IO_new_file_fopen, _IO_new_file_setbuf, _IO_file_setbuf_mmap,
3249         _IO_new_file_sync, _IO_new_file_underflow, _IO_new_file_overflow,
3250         _IO_new_file_seekoff, _IO_new_file_write, _IO_new_file_xsputn,
3251         _IO_old_file_setbuf, _IO_old_file_seekoff, _IO_old_file_xsputn,
3252         _IO_old_file_underflow, _IO_old_file_overflow, _IO_old_file_attach,
3253         _IO_old_file_fopen, _IO_old_file_write, _IO_old_file_sync,
3254         _IO_old_file_close_it, _IO_old_file_finish, _IO_wfile_xsputn,
3255         _IO_wfile_setbuf, _IO_wfile_sync, _IO_wfile_underflow,
3256         _IO_wfile_overflow, _IO_wfile_seekoff, _IO_old_proc_open,
3257         _IO_old_proc_close, _IO_getdelim, _IO_flush_all_internal,
3258         _IO_adjust_column_internal, _IO_default_uflow_internal,
3259         _IO_default_xsgetn_internal, _IO_wdefault_xsputn_internal,
3260         _IO_wdefault_xsgetn_internal, _IO_wdefault_uflow_internal,
3261         _IO_file_setbuf_internal, _IO_file_seekoff_internal,
3262         _IO_file_xsputn_internal, _IO_file_xsgetn_internal,
3263         _IO_file_close_it_internal, _IO_file_underflow_internal,
3264         _IO_file_overflow_internal, _IO_file_attach_internal,
3265         _IO_file_fopen_internal, _IO_file_sync_internal,
3266         _IO_file_finish_internal, _IO_wfile_xsputn_internal,
3267         _IO_wfile_seekoff_internal, _IO_wfile_sync_internal,
3268         _IO_switch_to_wget_mode_internal, _IO_padn_internal,
3269         _IO_switch_to_get_mode_internal, _IO_seekoff_unlocked,
3270         _IO_seekpos_unlocked): Likewise.
3271         (_IO_strtod, _IO_dtoa, _IO_outfloat, _IO_read, _IO_write,
3272         _IO_lseek, _IO_close, _IO_fstat): Remove unused prototypes.
3274 2007-04-16  Jakub Jelinek  <jakub@redhat.com>
3276         * locale/programs/locarchive.c (show_archive_content): Fix sizeof
3277         argument in xmalloc size computation.
3279 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
3281         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
3282         math_opt_barrier and math_force_eval macros.
3284 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
3286         [BZ #3306]
3287         * math/math_private.h (math_opt_barrier, math_force_eval): Define.
3288         * sysdeps/i386/fpu/math_private.h: New file.
3289         * sysdeps/x86_64/fpu/math_private.h: New file.
3290         * math/s_nexttowardf.c (__nexttowardf): Use math_opt_barrier and
3291         math_force_eval macros.  Use "+m" constraint on asm rather than
3292         "=m" and "m".
3293         * math/s_nextafter.c (__nextafter): Likewise.
3294         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
3295         Likewise.
3296         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
3297         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Likewise.
3298         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
3299         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Use
3300         math_opt_barrier and math_force_eval macros.
3301         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl): Likewise.
3302         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Likewise.
3303         * sysdeps/i386/fpu/s_nexttoward.c: Include float.h.
3304         (__nexttoward): Use math_opt_barrier and
3305         math_force_eval macros.  Use "+m" constraint on asm rather than
3306         "=m" and "m".  Only use asm to force double result if
3307         FLT_EVAL_METHOD is 2.
3308         * sysdeps/i386/fpu/s_nexttowardf.c: Include float.h.
3309         (__nexttowardf): Use math_opt_barrier and
3310         math_force_eval macros.  Use "+m" constraint on asm rather than
3311         "=m" and "m".  Only use asm to force double result if
3312         FLT_EVAL_METHOD is not 0.
3313         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include float.h.
3314         (__nexttowardf): Use math_opt_barrier and
3315         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
3316         x to float using asm.
3317         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include float.h.
3318         (__nldbl_nexttowardf): Use math_opt_barrier and
3319         math_force_eval macros.  If FLT_EVAL_METHOD is not 0, force
3320         x to float using asm.
3321         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include float.h.
3322         (__nexttowardf): Use math_opt_barrier and math_force_eval
3323         macros.  If FLT_EVAL_METHOD is not 0, force x to float using asm.
3324         * math/bug-nextafter.c (zero, inf): New variables.
3325         (main): Add new tests.
3326         * math/bug-nexttoward.c (zero, inf): New variables.
3327         (main): Add new tests.
3329 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
3331         [BZ #3427]
3332         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Clear all
3333         exceptions both in SW and MXCSR.
3334         * sysdeps/x86_64/fpu/feupdateenv.c: New file.
3335         * sysdeps/x86_64/fpu/feenablxcpt.c (feenableexcept): Remove dead code.
3336         * sysdeps/x86_64/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3337         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
3338         in MXCSR if SSE is available.
3339         * sysdeps/i386/fpu/feupdateenv.c: Include unistd.h, dl-procinfo.h
3340         and ldsodefs.h.
3341         (__feupdateenv): Query exceptions also from MXCSR if SSE is available.
3342         Fix comment typo.
3343         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions.
3344         Return 0 rather than 1.
3345         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Fix comment typo.
3346         Remove incorrect part of a comment.  Fix argument to feraiseexcept.
3347         * math/test-fenv.c (feholdexcept_tests): New function.
3348         (main): Call it.
3350 2007-01-05  Richard B. Kreckel  <kreckel@ginac.de>
3352         [BZ #3427]
3353         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Clear all exceptions
3354         in SW.
3356 2007-04-13  Jakub Jelinek  <jakub@redhat.com>
3358         [BZ #4344]
3359         * elf/ldconfig.c (search_dir): Fix 2 off-by-2 errors.
3360         Reported by David Anderson <davea42@earthlink.net>.
3362 2007-04-07  Ulrich Drepper  <drepper@redhat.com>
3364         * posix/sys/wait.h: Remove unnecessary forward declaration.
3366 2007-04-05  Jakub Jelinek  <jakub@redhat.com>
3368         * nis/nis_call.c (__nisfind_server): Replace (*dir)->do_servers
3369         with obj->do_servers after first_shoot.
3371 2007-04-03  Ulrich Drepper  <drepper@redhat.com>
3373         * posix/Makefile (routines): Add sched_cpucount.
3374         (tests): Add tst-cpucount.
3375         * posix/sched_cpucount.c: New file.
3376         * posix/tst-cpucount.c: New file.
3377         * posix/Versions: Export __sched_cpucount with version GLIBC_2.6.
3378         * bits/sched.h: Define __CPU_COUNT.  Declare __sched_cpucount.
3379         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
3380         * posix/sched.h: Define CPU_COUNT.
3382 2007-03-27  Jakub Jelinek  <jakub@redhat.com>
3384         * posix/fnmatch.c (STRUCT): Define.
3385         (fnmatch): Pass NULL as last argument to internal_fn{,w}match.
3386         * posix/fnmatch_loop.c (struct STRUCT): New type.
3387         (FCT): Add ends argument.  If ends != NULL and normal * is
3388         seen in the pattern, store current pattern and string pointers
3389         and return.  Adjust recursive calls.
3390         (EXT): Adjust FCT callers.
3391         (STRUCT): Undef at the end of the file.
3392         * posix/Makefile (tests): Add tst-fnmatch2.
3393         * posix/tst-fnmatch2.c: New test.
3395 2007-04-01  Jakub Jelinek  <jakub@redhat.com>
3397         * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
3398         and 1 on failure.
3400         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
3401         Change last argument to unsigned int.
3403 2007-03-23  Jakub Jelinek  <jakub@redhat.com>
3405         * scripts/check-local-headers.sh: Filter out sys/capability.h.
3407 2007-03-22  Jakub Jelinek  <jakub@redhat.com>
3409         * config.h.in (HAVE_LIBCAP): Add.
3410         * nscd/selinux.h: Include sys/capability.h rather than non-existent
3411         sys/capabilities.h.
3412         * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
3413         free_caps.  Cast away const from 4th cap_set_flag argument.
3415 2007-03-26  Ulrich Drepper  <drepper@redhat.com>
3417         * sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
3418         GLIBC_2.6.
3419         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3420         Add sync_file_range.
3421         Reported by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
3423 2007-03-19  Steven Munroe  <sjmunroe@us.ibm.com>
3425         * sysdeps/powerpc/bits/atomic.h
3426         [!MUTEX_HINT_ACQ]: Define MUTEX_HINT_ACQ.
3427         [!MUTEX_HINT_REL]: Define MUTEX_HINT_REL.
3428         (__arch_compare_and_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
3429         (__arch_compare_and_exchange_val_32_rel): Add MUTEX_HINT_REL to lwarx.
3430         (__arch_atomic_exchange_val_32_acq): Add MUTEX_HINT_ACQ to lwarx.
3431         (__arch_atomic_exchange_rel_32_rel): Add MUTEX_HINT_REL to lwarx.
3432         * sysdeps/powerpc/powerpc32/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6X]:
3433         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
3434         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
3435         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
3436         * sysdeps/powerpc/powerpc64/bits/atomic.h [_ARCH_PWR6 || _ARCH_PWR6D]:
3437         Define MUTEX_HINT_ACQ as ",1" and MUTEX_HINT_REL as ",0".
3438         (__arch_compare_and_exchange_bool_32_acq): Add MUTEX_HINT_ACQ to lwarx.
3439         (__arch_compare_and_exchange_bool_32_rel): Add MUTEX_HINT_REL to lwarx.
3440         (__arch_compare_and_exchange_bool_64_acq): Add MUTEX_HINT_ACQ to lwarx.
3441         (__arch_compare_and_exchange_bool_64_rel): Add MUTEX_HINT_REL to lwarx.
3442         (__arch_compare_and_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
3443         (__arch_compare_and_exchange_val_64_rel): Add MUTEX_HINT_REL to lwarx.
3444         (__arch_atomic_exchange_val_64_acq): Add MUTEX_HINT_ACQ to lwarx.
3445         (__arch_atomic_exchange_rel_64_rel): Add MUTEX_HINT_REL to lwarx.
3447 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
3449         * sysdeps/unix/sysv/linux/powerpc/libc-start.c
3450         (__cache_line_size): Define the variable here.  Add
3451         attribute_hidden, remove weak_extern.
3452         (__libc_start_main): Set __cache_line_size
3453         unconditionally.
3454         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3455         (__cache_line_size): Define the variable here.  Add
3456         attribute_hidden, remove weak_extern.
3457         (DL_PLATFORM_AUXV): Set __cache_line_size
3458         unconditionally.
3459         * sysdeps/powerpc/powerpc32/dl-machine.c (__cache_line_size): Remove
3460         weak_extern, add attribute_hidden.
3461         (__elf_machine_runtime_setup): Assume __cache_line_size is always
3462         defined in ld.so.
3463         * sysdeps/powerpc/powerpc32/memset.S (__cache_line_size): Remove
3464         definition.
3465         * sysdeps/powerpc/powerpc64/memset.S (__cache_line_size): Likewise.
3467 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
3469         [BZ #4276]
3470         * timezone/africa: Update from tzdata2007d.
3471         * timezone/asia: Likewise.
3472         * timezone/australasia: Likewise.
3473         * timezone/backward: Likewise.
3474         * timezone/europe: Likewise.
3475         * timezone/iso3166.tab: Likewise.
3476         * timezone/leapseconds: Likewise.
3477         * timezone/northamerica: Likewise.
3478         * timezone/southamerica: Likewise.
3479         * timezone/zone.tab: Likewise.
3481         * timezone/private.h: Update from tzcode2007d.
3482         * timezone/zdump.c: Likewise.
3483         * timezone/zic.c: Likewise.
3485 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
3487         * nis/nis_call.c: Include bits/libc-lock.h, sys/stat.h, unistd.h.
3488         (nis_server_cache, nis_server_cache_lock, nis_cold_start_mtime): New
3489         variables.
3490         (nis_server_cache_search, nis_server_cache_add): New functions.
3491         (__nisfind_server): Use them.  Add dbp and flags argument, if
3492         call __nisbind_create.
3493         (__nisbind_create): Add server_used and current_ep arguments,
3494         only call __nis_findfastest if server_used is ~0.
3495         (__do_niscall2, __prepare_niscall): Adjust callers.
3496         (ckey_cache, ckey_cache_size, ckey_cache_allocated, ckey_cache_pid,
3497         ckey_cache_euid, ckey_cache_lock): New variables.
3498         (get_ckey): New function.
3499         (__nisbind_connect): If not dbp->use_udp, pass IPPROTO_TCP to
3500         __pmap_getnisport.  Save __pmap_getnisport result in
3501         dbp->addr.sin_port if non-zero.  Use get_ckey to create conversation
3502         key.
3503         * nis/nis_lookup.c (nis_lookup): Likewise.
3504         * nis/nis_table.c (nis_list): Likewise.
3505         * nis/rpcsvc/nislib.h (__nisbind_create, __nisfind_server): Adjust
3506         prototypes.
3508         * nis/nss_nisplus/nisplus-pwd.c (_nss_nisplus_getpwnam_r,
3509         _nss_nisplus_getpwuid_r): Pass USE_DGRAM flag to nis_list.
3510         * nis/nss_nisplus/nisplus-service.c (_nss_nisplus_getservbyname_r,
3511         _nss_nisplus_getservbyport_r): Likewise.
3512         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r,
3513         _nss_nisplus_getnetbyaddr_r): Likewise.
3514         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_getspnam_r): Likewise.
3515         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r,
3516         _nss_nisplus_getntohost_r): Likewise.
3517         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r,
3518         _nss_nisplus_getrpcbynumber_r): Likewise.
3520 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
3522         * configure.in (libc_cv_gnu89_inline): Only do compile test.
3523         * configure: Rebuilt.
3525         * soft-fp/double.h (_FP_UNION_D): Use _FP_W_TYPE for frac
3526         bit-fields.
3527         * soft-fp/extended.h (_FP_UNION_E): Likewise.
3529 2006-06-07  Joseph Myers  <joseph@codesourcery.com>
3531         [BZ #2831]
3532         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_W_TYPE for frac
3533         bit-fields.
3535 2007-03-18  Jakub Jelinek  <jakub@redhat.com>
3537         * nscd/gai.c: Include alloca.h.
3538         (__libc_use_alloca): Define.
3540 2007-03-16  Jakub Jelinek  <jakub@redhat.com>
3542         * elf/dl-open.c (dl_open_worker): Declare l in 2 different
3543         smaller scopes.
3544         * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument.
3545         (DL_DST_REQUIRED): Adjust user.
3547         * include/dlfcn.h (struct link_map): New forward decl.
3549         * inet/getnameinfo.c: Include stddef.h.
3550         (getnameinfo): Use offsetof.
3552         * time/tst-mktime2.c (do_test): Don't rely on signed wrap.
3554         * stdio-common/vfprintf.c (_itoa): Undef before redefining.
3556         * string/strerror_l.c: Include stdlib.h.
3558         * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline.
3559         * config.make.in (gnu89-inline-CFLAGS): New variable.
3560         * Makeconfig (CFLAGS): Use $(gnu89-inline-CFLAGS) together with
3561         -std=gnu99.
3562         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Define.
3563         * argp/argp.h: Use it.
3564         * bits/mathinline.h: Likewise.
3565         * bits/sigset.h: Likewise.
3566         * bits/string.h: Likewise.
3567         * ctype/ctype.h: Likewise.
3568         * hurd/hurd.h: Likewise.
3569         * hurd/hurd/fd.h: Likewise.
3570         * hurd/hurd/port.h: Likewise.
3571         * hurd/hurd/signal.h: Likewise.
3572         * hurd/hurd/threadvar.h: Likewise.
3573         * hurd/hurd/userlink.h: Likewise.
3574         * io/sys/stat.h: Likewise.
3575         * libio/bits/stdio.h: Likewise.
3576         * libio/bits/stdio2.h: Likewise.
3577         * mach/lock-intern.h: Likewise.
3578         * mach/mach/mig_support.h: Likewise.
3579         * math/bits/cmathcalls.h: Likewise.
3580         * posix/bits/unistd.h: Likewise.
3581         * socket/bits/socket2.h: Likewise.
3582         * stdlib/bits/stdlib.h: Likewise.
3583         * stdlib/stdlib.h: Likewise.
3584         * string/argz.h: Likewise.
3585         * string/bits/string2.h: Likewise.
3586         * string/bits/string3.h: Likewise.
3587         * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
3588         * sysdeps/generic/inttypes.h: Likewise.
3589         * sysdeps/generic/machine-lock.h: Likewise.
3590         * sysdeps/generic/machine-sp.h: Likewise.
3591         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
3592         * sysdeps/i386/i486/bits/string.h: Likewise.
3593         * sysdeps/ia64/fpu/bits/mathinline.h: Likewise.
3594         * sysdeps/mach/alpha/machine-lock.h: Likewise.
3595         * sysdeps/mach/alpha/machine-sp.h: Likewise.
3596         * sysdeps/mach/i386/machine-lock.h: Likewise.
3597         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
3598         * sysdeps/mach/powerpc/machine-sp.h: Likewise.
3599         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
3600         * sysdeps/s390/bits/string.h: Likewise.
3601         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
3602         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
3603         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Likewise.
3604         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
3605         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
3606         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
3607         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
3608         * wcsmbs/bits/wchar2.h: Likewise.
3609         * wcsmbs/wchar.h: Likewise.
3610         * stdlib/gmp.h: Likewise.  Include <features.h> to get
3611         __extern_inline definition.
3613 2007-03-15  Jakub Jelinek  <jakub@redhat.com>
3615         * locale/programs/ld-ctype.c (find_translit): Return NULL if ctype is
3616         NULL.
3618         [BZ #3919]
3619         * math/libm-test.inc (log_test): Test -Inf and NaN.
3620         (log10_test, log1p_test, log2_test): Test -Inf.
3621         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Don't raise
3622         FE_INVALID when argument is qNaN.
3623         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
3624         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
3625         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
3626         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Replace
3627         andb $1, %ah with testb $1, %ah, don't test for parity, instead
3628         testb $4, %ah and jump if non-zero.
3629         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
3630         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
3632         [BZ #4101]
3633         * argp/argp-help.c (hol_cluster_cmp): Fix comparisons used to find
3634         ancestors with the same depths.
3635         Patch by Niels Moeller <nisse@lysator.liu.se>.
3636         (filter_doc): Don't crash if argp is NULL.
3637         * argp/Makefile (tests): Add tst-argp2.
3638         * argp/tst-argp2.c: New test.
3640         [BZ #4130]
3641         * login/utmp_file.c (setutent_file): Use O_LARGEFILE for
3642         open_not_cancel_2.
3643         (updwtmp_file): Likewise.
3645         [BZ #4181]
3646         * inet/inet6_opt.c (add_padding): Only insert padding if npad > 0.
3647         (inet6_opt_append): Don't check extlen is big enough if extbuf
3648         is NULL.
3649         (inet6_opt_finish): Likewise.
3650         * inet/Makefile (tests): Add test-inet6_opt.
3651         * inet/test-inet6_opt.c: New test.
3653         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Never
3654         reallocate the buffer, instead fail for MSG_TRUNC or for EBUSY
3655         NLMSG_ERR.  Instead use a page sized buffer.
3656         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use page sized
3657         buffer.
3659 2007-03-14  Richard Henderson  <rth@redhat.com>
3661         * sysdeps/alpha/fpu/s_llround.c: New file.
3662         * sysdeps/alpha/fpu/s_llroundf.c: New file.
3663         * sysdeps/alpha/fpu/s_lround.c: New file.
3664         * sysdeps/alpha/fpu/s_lroundf.c: New file.
3665         * sysdeps/alpha/fpu/s_round.c: New file.
3666         * sysdeps/alpha/fpu/s_roundf.c: New file.
3667         * sysdeps/alpha/fpu/s_trunc.c: New file.
3668         * sysdeps/alpha/fpu/s_truncf.c: New file.
3670         * sysdeps/alpha/fpu/s_ceil.c: Rewrite without branches.
3671         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
3672         * sysdeps/alpha/fpu/s_floor.c: Likewise.
3673         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
3674         * sysdeps/alpha/fpu/s_rint.c: Likewise.
3675         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
3677         * sysdeps/alpha/fpu/s_fmax.S: New file.
3678         * sysdeps/alpha/fpu/s_fmaxf.S: New file.
3679         * sysdeps/alpha/fpu/s_fmin.S: New file.
3680         * sysdeps/alpha/fpu/s_fminf.S: New file.
3681         * sysdeps/alpha/fpu/s_isnan.c: New file.
3682         * sysdeps/alpha/fpu/s_isnanf.c: New file.
3683         * sysdeps/alpha/fpu/s_llrint.c: New file.
3684         * sysdeps/alpha/fpu/s_llrintf.c: New file.
3685         * sysdeps/alpha/fpu/s_lrint.c: New file.
3686         * sysdeps/alpha/fpu/s_lrintf.c: New file.
3687         * sysdeps/alpha/fpu/s_nearbyint.c: New file.
3688         * sysdeps/alpha/fpu/s_nearbyintf.c: New file.
3690         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor): Remove.
3691         (__fdimf, fdimf, __fdim, fdim): Remove.
3692         (__signbitf, __signbit, __signbitl): Use gcc builtin if available.
3693         (__isnanf, __isnan, __isnanl): New.
3695 2007-03-13  Richard Henderson  <rth@redhat.com>
3697         * sysdeps/ieee754/ldbl-128/Makefile: New file.
3699 2007-03-13  Richard Henderson  <rth@redhat.com>
3701         * sysdeps/alpha/Makefile (sysdep-CFLAGS): Force dynamic rounding.
3702         * sysdeps/alpha/fpu/bits/mathinline.h (__signbitl): New.
3703         * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
3704         * sysdeps/unix/sysv/linux/alpha/alphaev6/fpu/Implies: New file.
3705         * sysdeps/unix/sysv/linux/alpha/alphaev67/fpu/Implies: New file.
3706         * sysdeps/unix/sysv/linux/alpha/fpu/Implies: New file.
3708 2007-03-13  Richard Henderson  <rth@redhat.com>
3710         * elf/dl-support.c (_dl_aux_init): Honor DL_PLATFORM_AUXV.
3711         * sysdeps/unix/sysv/linux/alpha/dl-auxv.h: New file.
3712         * sysdeps/unix/sysv/linux/alpha/dl-support.c: New file.
3713         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c (__libc_alpha_cache_shape):
3714         Move to dl-auxv.h; initialize instead of extern weak.
3715         (DL_PLATFORM_AUXV): Move to dl-auxv.h; don't test for undef
3716         weak symbol.
3717         * sysdeps/unix/sysv/linux/alpha/sysconf.c (__libc_alpha_cache_shape):
3718         Extern instead of initialized.
3720 2007-03-13  Richard Henderson  <rth@redhat.com>
3722         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add support for
3723         __sigsuspend_nocancel.
3725 2007-03-06  Ulrich Drepper  <drepper@redhat.com>
3727         * sysdeps/posix/getaddrinfo.c (get_scope): Correct test for
3728         172.16/12 address range.
3730 2007-03-02  Jakub Jelinek  <jakub@redhat.com>
3732         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Retry with
3733         a new netlink socket if NLMSG_ERR -EBUSY is seen after some MSG_TRUNC
3734         message.
3736 2007-03-01  Jakub Jelinek  <jakub@redhat.com>
3738         [BZ #4069]
3739         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
3740         earlier.
3741         * math/libm-test.inc (pow_test): Add more tests involving NaNs.
3743         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
3744         for x qNaN and y either +-inf or non-integer value.
3745         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
3746         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
3747         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
3749 2007-02-10  Mike Frysinger  <vapier@gentoo.org>
3751         * sysdeps/unix/sysv/linux/sh/Makefile: Remove sys/io.h
3752         from sysdep_headers.
3754 2007-02-28  Jakub Jelinek  <jakub@redhat.com>
3756         * time/tzfile.c (find_transition): Instead of a linear search try to
3757         guess the transition index, use a linear search if the result is at
3758         most 10 transitions away from the guess or binary search otherwise.
3760 2007-02-27  Jakub Jelinek  <jakub@redhat.com>
3762         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Fix
3763         memory reallocation.
3765 2007-02-21  Ulrich Drepper  <drepper@redhat.com>
3767         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Add branch predictions
3768         and fix some typos.
3769         Optimize use of TOLOWER.
3771         [BZ #3325]
3772         * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem.
3773         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
3774         * sysdeps/i386/fpu/e_fmod.S: Likewise.
3776         [BZ #3458]
3777         * sysdeps/unix/sysv/linux/posix_madvise.c: New file.
3778         * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
3780         [BZ #4076]
3781         * io/ftw.c (ftw_startup): Handle special case of FTW_CHDIR in /.
3782         (open_dir_stream): Likewise.
3783         * io/Makefile (tests): Add bug-ftw5.
3784         * io/bug-ftw5.c: New file.
3786         * nscd/hstcache.c (cache_addhst): Remove unnecessary conditional.
3787         * nscd/servicescache.c (cache_addserv): Likewise.
3789         * nscd/grpcache.c (cache_addgr): In case a record changed on
3790         refresh, adjust key_copy.
3792         [BZ #4074]
3793         * nscd/pwdcache.c (cache_addpw): In case a record changed on
3794         refresh, adjust key_copy.
3796         [BZ #4070]
3797         * stdio-common/printf_fp.c (___printf_fp): Handle a few more
3798         special cases.
3799         * stdio-common/tfformat.c (sprint_doubles): Some more tests.
3801 2007-02-19  Ulrich Drepper  <drepper@redhat.com>
3803         * stdio-common/printf_fp.c (___printf_fp): Cleanups and minor
3804         optimization.
3806         * stdio-common/vfscanf.c: Small cleanups throughout.
3808 2007-02-18  Ulrich Drepper  <drepper@redhat.com>
3810         [BZ #3325]
3811         * sysdeps/i386/fpu/e_fmodf.S: Use fprem1 instead of fprem.
3812         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
3813         * sysdeps/i386/fpu/e_fmod.S: Likewise.
3814         Patch by Jared Casper <jaredcasper@gmail.com>.
3816         * sysdeps/unix/closedir.c: Outside libc don't use locking.
3817         * sysdeps/unix/opendir.c: Likewise.
3818         * sysdeps/unix/readdir.c: Likewise.
3820         [BZ #2211]
3821         * stdio-common/vfscanf.c: Handle localized digits etc for floating
3822         point numbers.
3823         Patch mostly by Hamed Malek <hamed@farsiweb.info>.
3825         * stdio-common/vfscanf.c: Fix problems in width accounting.
3826         * stdio-common/tst-sscanf.c (double_tests): New tests.
3827         (main): Hook them up.
3829         * stdio-common/vfscanf.c: Remove unused WIDTH handling.
3830         More simplifications of floating-point reader.
3832         * stdio-common/Makefile (tests): Add tst-swscanf.
3833         * stdio-common/tst-sscanf.c: Make tests usable for swscanf
3834         testing.
3835         * stdio-common/tst-swscanf.c: New file.
3837 2007-02-17  Ulrich Drepper  <drepper@redhat.com>
3839         [BZ #2633]
3840         * libio/stdio.h: Define struct _IO_FILE in global namespace.
3841         * setjmp/setjmp.h: Define __jmp_buf_tag in global namespace.
3842         Remove using for __jmp_buf_tag.
3843         * locale/locale.h (struct lconv): Also define in std namespace.
3844         * wcsmbs/wchar.h: Move using declaration for tm out of namespace.
3846         [BZ #3842]
3847         * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Remove shortcut
3848         using __libc_enable_secure.
3850         [BZ #3818]
3851         * sysdeps/unix/sysv/linux/sys/acct.h (struct acct_v3): Define.
3853         [BZ #3745]
3854         * locale/programs/ld-collate.c (handle_ellipsis): Fix generation
3855         of names for ellipsises.
3857         [BZ #3348]
3858         * malloc/memusage.sh: Cleanups.
3859         * debug/xtrace.sh: Quoting and trap changes.
3861 2007-02-16  Ulrich Drepper  <drepper@redhat.com>
3863         * locale/iso-3166.def: Add Jersey, Guernsey, and Isle Of Man entries.
3865         * locale/iso-3166.def: Update entry for Serbia.
3866         * locale/iso-4217.def: Define RSD, remove CSD.
3868         * sysdeps/x86_64/bits/atomic.h: One more change, this time for 16-
3869         and 64-bit operations.
3871         [BZ #4040]
3872         * sysdeps/i386/i486/bits/atomic.h: One more change, this time for
3873         16-bit operations.
3875         * nscd/nscd.c (parse_opt): One more conversion to use send instead
3876         of writev.
3878 2007-02-15  Ulrich Drepper  <drepper@redhat.com>
3880         [BZ #3991]
3881         * assert/assert.h (assert): Simplify.
3882         (assert_perror): Likewise.
3883         Patch by Israel G. Lugo <ilugo@bridonsecurity.com>.
3885         * nscd/nscd_helper.c (open_socket): Don't send padding bytes from
3886         reqdata.
3888         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Cosmetic
3889         change: don't pass NULL in place of an integer.
3891 2007-02-02  Bruno Haible  <bruno@clisp.org>
3893         [BZ #3954]
3894         * iconvdata/ksc5601.c (__ksc5601_sym_to_ucs, __ksc5601_sym_from_ucs):
3895         Add mapping for U+327E.
3896         * iconvdata/ksc5601.h (KSC5601_SYMBOL): Increment.
3897         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
3898         mapping of 0xD9 0xE8.
3899         * iconvdata/uhc.c (BODY for FROM_LOOP, BODY for TO_LOOP): Disable
3900         mapping of U+327E.
3901         Reported by Jungshik Shin <jungshik@google.com>.
3903         [BZ #3955]
3904         * iconvdata/johab.c (BODY for FROM_LOOP, BODY for TO_LOOP): Enable
3905         mapping of 0xD9 0xE6 and of 0xD9 0xE7.
3906         Reported by Jungshik Shin <jungshik@google.com>.
3908 2007-02-14  Ulrich Drepper  <drepper@redhat.com>
3910         * sysdeps/x86_64/bits/atomic;h: Fix asm parameters for some
3911         byte variants.
3913         [BZ #4040]
3914         * sysdeps/i386/i486/bits/atomic.h: Fix asm parameters for some
3915         byte variants.  Patch mostly be tom@tommay.net.
3917 2007-02-14  Jakub Jelinek  <jakub@redhat.com>
3919         [BZ #3996]
3920         * posix/glob.c (attribute_hidden): Define if not defined.
3921         (glob): Unescape dirname, filename or username when needed and not
3922         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
3923         is NULL.  Handle unescaped [ in pattern without closing ].
3924         Don't pass GLOB_CHECK down to recursive glob for directories.
3925         (__glob_pattern_type): New function.
3926         (__glob_pattern_p): Implement using __glob_pattern_type.
3927         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
3928         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
3929         Remove unreachable code.
3930         * posix/globtest.sh: Add a couple of new tests.
3932 2007-02-13  Ulrich Drepper  <drepper@redhat.com>
3934         * po/ru.po: Update from translation team.
3936 2007-02-12  Jakub Jelinek  <jakub@redhat.com>
3938         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __amdfam10__
3939         to the list of i486+ CPUs.
3940         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
3942 2007-02-12  Ulrich Drepper  <drepper@redhat.com>
3944         * elf/rtld.c (RESOLVE_MAP): Always return bootstrap_map reference.
3945         * elf/Makefile ($(objpfx)ld.so): Check that ld.so has no undefined
3946         references.
3948 2007-02-09  Ulrich Drepper  <drepper@redhat.com>
3950         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Remove incorrect comment.
3952         * resolv/res_init.c (res_setoptions): Recognize edns0 option.
3953         * resolv/res_mkquery.c: Define __res_nopt.
3954         * resolv/res_query.c (__libc_res_nquery): If RES_USE_EDNS0 is set
3955         try adding EDNS0 record.
3956         * resolv/res_send.c (send_dg): If request failed with FORMERR and
3957         EDNS0 record was send make sure we don't try it again.
3958         * resolv/resolv.h: Define RES_F_EDNS0ERR and RES_USE_EDNS0.
3959         * include/resolv.h: Declare __res_nopt.
3961 2007-02-08  Jakub Jelinek  <jakub@redhat.com>
3963         [BZ #3944]
3964         * time/strptime_l.c (__strptime_internal): Set have_mon for
3965         %b/%B/%h.  Set have_mon and have_mday if tm_mon and tm_mday
3966         have been computed from tm_yday and tm_year.  Don't crash
3967         in day_of_the_week or day_of_the_year if not have_mon
3968         and tm_mon contains bogus value.
3969         * time/Makefile (tests): Add tst-strptime3.
3970         * time/tst-strptime3.c: New test.
3972 2007-02-05  Jakub Jelinek  <jakub@redhat.com>
3974         [BZ #3957]
3975         * posix/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
3976         bit for RE_HAT_LISTS_NOT_NEWLINE.
3977         (build_charclass_op): Remove bogus comment.
3978         * posix/Makefile (tests): Add bug-regex27 and bug-regex28.
3979         * posix/bug-regex27.c: New test.
3980         * posix/bug-regex28.c: New test.
3982 2007-02-03  Ulrich Drepper  <drepper@redhat.com>
3984         * po/sv.po: Update from translation team.
3986 2007-02-02  Ulrich Drepper  <drepper@redhat.com>
3988         * nscd/nscd_helper.c (open_socket): Minor size optimization.
3990 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
3992         * include/locale.h (__uselocale): Add libc_hidden_proto.
3993         * locale/uselocale.c (__uselocale): Add libc_hidden_def.
3995         * nscd/nscd_helper.c (open_socket): Use __gettimeofday instead of
3996         gettimeofday.
3998 2007-02-01  Ulrich Drepper  <drepper@redhat.com>
4000         * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before
4001         returning.
4002         (PTR_DEMANGLE): Real definition now that it's not the same as
4003         PRT_MANGLE anymore.
4004         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
4006         * string/strerror_l.c: New file.
4007         * string/Makefile (routines): Add strerror_l.
4008         * string/string.h: Declare strerror_l.
4009         * string/Versions: Export strerror_l for GLIBC_2.6.
4011 2007-01-31  Ulrich Drepper  <drepper@redhat.com>
4013         * nscd/nscd_helper.c (open_socket): Now takes request type and key
4014         as parameter.  Construct request record.  Try sending request
4015         before the first poll use, it usually succeeds.  Adjust all
4016         callers.
4017         * nscd/nscd-client.h: Define MAXKEYLEN.
4018         * nscd/connections.c (nscd_run): Don't define MAXKEYLEN here.
4020 2007-01-31  Jakub Jelinek  <jakub@redhat.com>
4022         * nscd/nscd-client.h (__nscd_cache_search): Remove const qualifier
4023         from return value.
4024         * nscd/nscd_helper.c: Include string.h.
4025         (__nscd_cache_search): Remove const qualifier from return value.
4026         On strict alignment architectures check hash entry and data head
4027         alignment.
4028         * nscd/nscd_getpw_r.c (nscd_getpw_r): Don't crash or fail because
4029         mmapped data during GC cycle contains garbage.  If
4030         __nscd_drop_map_ref fails, decrement mapped->counter when returning
4031         error or if retrying with NO_MAPPING, only __nscd_unmap if counter
4032         dropped to 0.
4033         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
4034         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
4035         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
4036         * nscd/nscd_getai.c (__nscd_getai): Likewise.
4037         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
4039 2007-01-30  Ulrich Drepper  <drepper@redhat.com>
4041         * misc/hsearch_r.c (hdestroy_r): Remove unnecessary test.
4043 2007-01-26  Ulrich Drepper  <drepper@redhat.com>
4045         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Use register
4046         names not numbers in cfi_*.
4048 2007-01-26  Andreas Jaeger  <aj@suse.de>
4050         * sysdeps/unix/sysv/linux/sys/personality.h (ADDR_NO_RANDOMIZE,
4051         ADDR_LIMIT_3GB, PER_LINUX_32BIT, PER_LINUX32_3GB): Add.
4052         Correct values of PER_HPUX and PER_OSF4.
4054 2007-01-24  Ulrich Drepper  <drepper@redhat.com>
4056         * elf/dl-minimal.c: Undefine _itoa first.
4057         * stdio-common/_itoa.h: Define _itoa and _fitoa for 64-bit platforms.
4058         * malloc/mtrace.c: Revert last change.
4059         * posix/wordexp.c: Likewise.
4061 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
4063         * sysdeps/i386/bits/byteswap.h (__bswap_32): Add __nocona__, __core2__
4064         and __geode__ to the list of i486+ CPUs.
4065         * sysdeps/x86_64/bits/byteswap.h (__bswap_32): Likewise.
4067 2007-01-23  Ulrich Drepper  <drepper@redhat.com>
4069         * stdio-common/_itoa.c: Include <limits.h>.
4070         * stdio-common/_itowa.c: Likewise.
4072 2007-01-22  Ulrich Drepper  <drepper@redhat.com>
4074         * stdio-common/_itowa.c: Don't compile _itowa for 64-bit
4075         platforms.
4076         * stdio-common/_itoa.c: Don't compile in _itoa and _fitoa for
4077         64-bit platforms.
4078         * malloc/mtrace.c (tr_where): Use _fitoa_word instead of _fitoa if
4079         possible.
4080         * posix/wordexp.c (parse_arith): Use _itoa_word instead of _itoa
4081         if possible.
4083         [BZ #3902]
4084         * stdio-common/_itoa.c (_itoa): Make sure at least a zero is emitted.
4085         * stdio-common/Makefile (tests): Add bug17.
4086         * stdio-common/bug17.c: New file.
4088 2007-01-19  Ulrich Drepper  <drepper@redhat.com>
4090         * iconvdata/brf.c: New file.
4091         * iconvdata/testdata/BRF: New file.
4092         * iconvdata/testdata/BRF..UTF8: New file.
4093         Contributed by Samuel Thibault <samuel.thibault@ens-lyon.org>.
4094         * iconvdata/Makefile: Add rules to build BRF.
4095         * iconvdata/TESTS: Add BRF entry.
4096         * iconvdata/gconv-modules: Likewise.
4097         * iconvdata/tst-tables.sh: Likewise.
4099 2007-01-18  Anton Nikishaev  <anton.nik@gmail.com>
4101         * wcsmbs/wchar.h (wcstoll): Fix comment, function returns value of
4102         type `long long int', not `long int'.
4103         (wcstoq): Likewise.
4105 2007-01-18  Ulrich Drepper  <drepper@redhat.com>
4107         * scripts/gen-as-const.awk: Add cast to long to avoid int promotion
4108         of values on 64-bit platforms which are too large.
4110 2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
4111             Joe Kerian  <jkerian@us.us.ibm.com>
4113         [BZ #2749]
4114         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
4115         <math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
4116         (__copysignl): Use signbit() for comparison.
4117         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
4118         SET_LDOUBLE_WORDS64.
4120         [BZ #2423, #2749]
4121         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
4122         (__ceill): Remove calls to fegetround(), fesetround().
4123         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
4124         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
4125         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
4127 2007-01-17  Jakub Jelinek  <jakub@redhat.com>
4129         * nscd/nscd_getserv_r.c (nscd_getserv_r): Fix pastos.
4131         * sysdeps/unix/sysv/linux/getdents.c (offsetof): Remove.
4133 2007-01-17  Ulrich Drepper  <drepper@redhat.com>
4135         * sysdeps/unix/sysv/linux/fatal-prepare.h: Use PTHFCT_CALL to
4136         demangle pointer.
4137         * csu/libc-start.c: Likewise.
4139 2007-01-16  Ulrich Drepper  <drepper@redhat.com>
4141         * sysdeps/posix/system.c: Remove NO_WAITPID support, it cannot
4142         really work anyway.
4144 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
4146         * nscd/connections.c (servinfo): Renamed to reqinfo.  Change all
4147         users.
4148         (handle_request): Remove unnecessary tests.
4150         * nscd/cache.c (cache_add): Record the failure to add to the cache.
4152 2007-01-15  Jakub Jelinek  <jakub@redhat.com>
4154         * soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
4155         workbits in semi-raw fraction.
4157         * math/test-misc.c: Add new tests.
4159 2007-01-14  Steven Munroe  <sjmunroe@us.ibm.com>
4161         * math/basic-test.c: Include test-skeleton.c.
4162         (TEST_TRUNC): Define.
4163         (truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
4164         (main): Rename to ...
4165         (do_test): ...this.  Run new tests.
4166         (TEST_FUNCTION): Define.
4168 2006-10-05  Steven Munroe  <sjmunroe@us.ibm.com>
4169             Joe Kerian  <jkerian@us.us.ibm.com>
4171         [BZ #2749]
4172         * soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
4173         handling for high words.
4174         * soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
4175         and overflow for infinity.
4177 2007-01-15  Ulrich Drepper  <drepper@redhat.com>
4179         * nscd/connections.c (handle_request): Add a __builtin_expect.
4181         * nscd/connections.c (serv2db): Change type into structure which
4182         also says whether this is a request for data.  Renamed to
4183         servinfo.  All users changed.
4184         (handle_request): Much simpler test whether we should search the cache.
4186         * nscd/connections.c (handle_request): Fix thinko in selinux test
4187         invocation.
4189         * sysdeps/generic/ldsodefs.h: Define DL_LOOKUP_SCOPE_LOCK.
4190         * elf/dl-lookup.c (add_dependency): If scope map is locked, unlock
4191         it before getting dl_load_lock and then relock.
4192         (_dl_lookup_symbol_x): Pass flags to add_dependency.
4193         When rerunning _dl_lookup_symbol_x, compute symbol_scope again in
4194         case we unlocked the scope.
4195         * elf/dl-runtime.c (_dl_fixup): Pass DL_LOOKUP_SCOPE_LOCK to
4196         _dl_lookup_symbol_x in case we locked the scope.
4197         (_dl_profile_fixup): Likewise.
4198         * elf/dl-sym.c (do_sym): In flags passed to call_dl_lookup, also
4199         set DL_LOOKUP_SCOPE_LOCK.
4201 2007-01-13  Ulrich Drepper  <drepper@redhat.com>
4203         * inet/Makefile: Define CFLAGS-getsrvbynm_r.c and
4204         CFLAGS-getsrvbynpt_r.c.
4205         * nscd/getsrvbynm_r.c: New file.
4206         * nscd/getsrvbypt_r.c: New file.
4207         * nscd/nscd_getserv_r.c: New file.
4208         * nscd/servicescache.c: New file.
4209         * nscd/Makefile (routines): Add nscd_getserv_r.
4210         (nscd-modules): Add getsrvbynm_r, getsrvbypt_r, and servicescache.
4211         Define CFLAGS-servicescache.c, CFLAGS-getsrvbynm_r.c, and
4212         CFLAGS-getsrvbypt_r.c.
4213         * nscd/cache.c (prune_cache): Rewrite to get re-add function from
4214         table.  Add entries for services database.
4215         * nscd/connections.c (serv2str): Mark as const.  Add entries for
4216         services database.
4217         (dbs): Add .reset_res and servdb initialization.
4218         (serv2db): Add entries for services database.
4219         (verify_persistent_db): Accept dbnr == servdb.
4220         (invalidate_cache): Rewrite database name recognition to use a table.
4221         Call res_init() if .reset_res is set for database.
4222         (handle_request): Add code to handle services database.
4223         * nscd/gai.c: Don't define __getservbyname_r.
4224         * nscd/nscd-client.h (request_type): Remove LASTDBREQ, add
4225         GETSERVBYNAME, GETSERVBYPORT, GETFDSERV.
4226         (serv_response_header): Define.
4227         (struct datahead): Add serv_response_header member.
4228         * nscd/nscd.c (parse_opt): Rewrite parsing of -i parameter value
4229         using table.
4230         * nscd/nscd.conf: Add entries for services database.
4231         * nscd/nscd.h: Adjust declaration of dbnames and serv2str.
4232         Declare serv_iov_disabled.
4233         Declare addservbyname, readdservbyname, addservbyport, and
4234         readdservbyport.
4235         * nscd/nscd_conf.c (dbnames): Mark as const.  Add services entry.
4236         (find_db): Fix error message.
4237         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_services,
4238         __nscd_getservbyname_r, and __nscd_getservbyport_r.
4239         * nscd/selinux.c (perms): Add entries for services database.
4240         * nss/Versions: Export __nss_services_lookup with GLIBC_PRIVATE.
4241         * nss/nsswitch.c (__nss_disable_nscd): Also disable services database.
4243         * nscd/grpcache.c: Remove obsolete code.  Cleanups.
4244         * nscd/hstcache.c: Likewise.
4245         * nscd/pwdcache.c: Likewise.
4247         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r): Correct
4248         computation of keylen.
4250         * include/string.h: Only redefine strndupa if this is really for
4251         libc code.
4253 2007-01-12  Ulrich Drepper  <drepper@redhat.com>
4255         * nscd/nscd_gethst_r.c: Minor cleanups.
4257         * nscd/connections.c (handle_request): Check selinux permissions
4258         for all non-admin commands.
4260         * sysdeps/i386/i486/bits/atomic.h: Define
4261         atomic_compare_and_exchange_val_acq,
4262         atomic_compare_and_exchange_bool_acq, and atomic_exchange_and_add
4263         using __sync_* built-ins for gcc >= 4.1.
4264         * sysdeps/x86_64/bits/atomic.h: Likewise.
4266         [BZ #3840]
4267         * scripts/check-local-headers.sh: Restrict to testing .o.d, .os.d,
4268         and .oS.d files.
4270 2007-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
4272         * stdlib/tst-makecontext.c: Include errno.h.  Change main()
4273         to do_test().  Define TEST_FUNCTION. Include test-skeleton.c.
4274         (do_test): Check errno and exit(0) if ENOSYS.
4276 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
4278         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte
4279         thousands separators.
4280         * stdlib/Makefile: Add rules to build and run tst-strtod4.
4281         * stdlib/tst-strtod4.c: New test.
4283         [BZ #3855]
4284         * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by
4285         hexadecimal digit should accept just the initial 0.
4286         * stdlib/tst-strtod2.c (tests): New variable.
4287         (do_test): Run several tests rather than just one.
4289 2007-01-11  Jakub Jelinek  <jakub@redhat.com>
4291         * sysdeps/i386/soft-fp/sfp-machine.h: Remove.
4292         * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
4294 2007-01-10  Ulrich Drepper  <drepper@redhat.com>
4296         * io/fts.c: Make sure fts_cur is always valid after return from
4297         fts_read.
4298         Patch by Miloslav Trmac <mitr@redhat.com>.
4300 2006-10-27  Richard Sandiford  <richard@codesourcery.com>
4302         * elf/elf.h (R_MIPS_GLOB_DAT): Define.
4303         (R_MIPS_NUM): Bump by 1.
4305 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
4307         * posix/execvp.c: Include alloca.h.
4308         (allocate_scripts_argv): Renamed to...
4309         (scripts_argv): ... this.  Don't allocate buffer here nor count
4310         arguments.
4311         (execvp): Use alloca if possible.
4312         * posix/Makefile: Add rules to build and run tst-vfork3 test.
4313         * posix/tst-vfork3.c: New test.
4315 2007-01-03  Ulrich Drepper  <drepper@redhat.com>
4317         * string/Makefile (tst-strxfrm2-ENV): Define.
4318         * stdlib/Makefile (tst-strtod3-ENV): Define.
4320 2007-01-02  Ulrich Drepper  <drepper@redhat.com>
4322         * posix/getconf.c: Update copyright year.
4323         * nss/getent.c: Likewise.
4324         * iconv/iconvconfig.c: Likewise.
4325         * iconv/iconv_prog.c: Likewise.
4326         * elf/ldconfig.c: Likewise.
4327         * catgets/gencat.c: Likewise.
4328         * csu/version.c: Likewise.
4329         * elf/ldd.bash.in: Likewise.
4330         * elf/sprof.c (print_version): Likewise.
4331         * locale/programs/locale.c: Likewise.
4332         * locale/programs/localedef.c: Likewise.
4333         * nscd/nscd.c (print_version): Likewise.
4334         * debug/xtrace.sh: Likewise.
4335         * malloc/memusage.sh: Likewise.
4336         * malloc/mtrace.pl: Likewise.
4337         * debug/catchsegv.sh: Likewise.
4339 2006-12-24  Ulrich Drepper  <drepper@redhat.com>
4341         * malloc/malloc.c (sYSMALLOc): Remove some unnecessary alignment
4342         attempts.
4344 2006-12-23  Ulrich Drepper  <drepper@redhat.com>
4346         * posix/wordexp.c: Remove some unnecessary tests.
4348 2006-12-22  Gavin Romig-Koch  <gavin@redhat.com>
4350         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Don't
4351         blacklist the group till after we look it up.
4353 2006-12-21  Ulrich Drepper  <drepper@redhat.com>
4355         * include/atomic.h (atomic_forced_read): New macro.
4357 2006-12-20  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
4359         * sysdeps/unix/sysv/linux/sh/bits/shm.h: New file.
4361 2006-12-19  Jakub Jelinek  <jakub@redhat.com>
4363         * nss/getXXbyYY_r.c: Include atomic.h.
4364         (INTERNAL (REENTRANT_NAME)): Write startp after start_fct,
4365         add atomic_write_barrier () in between.
4367         * stdlib/Makefile (tests): Add tst-makecontext.
4368         * stdlib/tst-makecontext.c: New test.
4370         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
4371         (__makecontext): Don't realign uc_mcontext.uc_regs.
4373 2006-11-28  Jakub Jelinek  <jakub@redhat.com>
4375         * elf/dl-support.c: Include dl-procinfo.h.
4376         * sysdeps/powerpc/dl-procinfo.h (PPC_PLATFORM_POWER4,
4377         PPC_PLATFORM_PPC970, PPC_PLATFORM_POWER5, PPC_PLATFORM_POWER5_PLUS,
4378         PPC_PLATFORM_POWER6, PPC_PLATFORM_CELL_BE, PPC_PLATFORM_POWER6X):
4379         Define.
4380         (_dl_string_platform): Use PPC_PLATFORM_* macros instead of
4381         hardcoded constants.
4382         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platform): Use
4383         PPC_PLATFORM_* macros for array designators.
4385 2006-11-11  Steven Munroe  <sjmunroe@us.ibm.com>
4387         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 3 new cap
4388         names to the beginning.
4389         (_dl_powerpc_platforms): Add "power6x".
4390         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
4391         (HWCAP_IMPORTANT): Add PPC_FEATURE_HAS_DFP.
4392         (_DL_PLATFORMS_COUNT): Increase.
4393         (_dl_string_platform): Handle power6x case.
4394         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_PA6T, PPC_FEATURE_HAS_DFP,
4395         PPC_FEATURE_POWER6_EXT): Define.
4396         (PPC_FEATURE_POWER5, PPC_FEATURE_POWER5_PLUS): Correct Comment.
4398 2006-12-18  Jakub Jelinek  <jakub@redhat.com>
4400         [BZ #3747]
4401         * stdlib/jrand48_r.c (__jrand48_r): Make sure result is in the
4402         [-2^31 .. 2^31) range.
4403         * stdlib/tst-rand48.c (main): Fix expected values for 64-bit
4404         targets.
4405         * stdlib/tst-rand48-2.c: New test.
4406         * stdlib/Makefile (tests): Add tst-rand48-2.
4408 2006-12-14  Jakub Jelinek  <jakub@redhat.com>
4410         * misc/tst-pselect.c (do_test): Fix sigblock argument.
4412 2006-12-14  Ulrich Drepper  <drepper@redhat.com>
4414         * misc/tst-pselect.c (do_test): Make sure the helper process is
4415         terminating when the test is aborted.
4417 2006-12-13  Ulrich Drepper  <drepper@redhat.com>
4419         * sysdeps/unix/sysv/linux/bits/statvfs.h: Define ST_RELATIME.
4420         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
4421         Handle relatime mount option.
4423         [BZ #2337]
4424         * libio/Makefile (tests): Add tst-setvbuf1.
4425         * libio/tst-setvbuf1.c: New file.
4427 2006-12-08  Jakub Jelinek  <jakub@redhat.com>
4429         [BZ #2337]
4430         * libio/genops.c (__uflow): Fix a typo.
4431         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Don't stat
4432         nor set _IO_LINE_BUF bit here.  Size the wide buffer based on
4433         the narrow buffer size.
4435 2006-11-24  Jakub Jelinek  <jakub@redhat.com>
4437         [BZ #2337]
4438         * libio/libio.h (_IO_FLAGS2_USER_WBUF): Define.
4439         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Test and set
4440         _IO_FLAGS2_USER_WBUF bit in _flags2 instead of _IO_USER_BUF bit
4441         in _flags.
4442         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf,
4443         _IO_wstr_finish): Likewise.
4444         * libio/wmemstream.c (open_wmemstream): Likewise.
4445         * libio/fileops.c (_IO_new_file_close_it): Call _IO_set[bgp]
4446         even for wide streams.
4448 2006-12-13  Jakub Jelinek  <jakub@redhat.com>
4450         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Include
4451         kernel-features.h.
4453 2006-12-11  Ulrich Drepper  <drepper@redhat.com>
4455         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
4456         separators also if no non-zero digits found.
4457         * stdlib/Makefile (tests): Add tst-strtod3.
4459 2006-12-09  Ulrich Drepper  <drepper@redhat.com>
4461         [BZ #3632]
4462         * include/features.h: Fix comment about default value for
4463         _POSIX_C_SOURCE.
4465         [BZ #3664]
4466         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix test to recognize
4467         empty parsed strings.
4468         * stdlib/Makefile (tests): Add tst-strtod2.
4469         * stdlib/tst-strtod2.c: New file.
4471         [BZ #3673]
4472         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix exp_limit
4473         computation.
4474         * stdlib/Makefile (tests): Add tst-atof2.
4475         * stdlib/tst-atof2.c: New file.
4477         [BZ #3674]
4478         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Adjust exponent value
4479         correctly if removing trailing zero of hex-float.
4480         * stdlib/Makefile (tests): Add tst-atof1.
4481         * stdlib/tst-atof1.c: New file.
4483 2006-12-09  Jakub Jelinek  <jakub@redhat.com>
4485         * misc/mntent_r.c (__hasmntopt): Check p[optlen] even when p == rest.
4486         Start searching for next comma at p rather than rest.
4487         * misc/Makefile (tests): Add tst-mntent2.
4488         * misc/tst-mntent2.c: New test.
4490         * misc/getusershell.c (initshells): Check for integer overflows.
4491         Make strings buffer one bigger as fgets always succeeds when second
4492         argument is 1.  Don't use calloc for shells array.  Disallow
4493         / as shell.
4495 2006-12-08  Ulrich Drepper  <drepper@redhat.com>
4497         * malloc/memusage.c: Handle realloc with new size of zero and
4498         non-NULL pointer correctly.
4499         (me): Really write first record twice.
4500         (struct entry): Make format bi-arch safe.
4501         (dest): Write out more realloc statistics.
4502         * malloc/memusagestat.c (struct entry): Make format bi-arch safe.
4504 2006-12-05  Jakub Jelinek  <jakub@redhat.com>
4506         * nis/nis_subr.c (nis_getnames): Revert last change.
4508 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
4510         * sysdeps/unix/sysv/linux/ttyname.c: Include termios.h.
4511         (ttyname): Use tcgetattr instead of isatty, don't set errno to ENOTTY.
4512         * sysdeps/unix/sysv/linux/ttyname_r.c: Include termios.h.
4513         (__ttyname_r): Use tcgetattr instead of isatty, don't set errno to
4514         ENOTTY.
4515         * io/Makefile: Add rules to build and run tst-ttyname_r test.
4516         * io/tst-ttyname_r.c: New test.
4518 2006-12-03  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4520         * sysdeps/unix/sysv/linux/sh/sys/io.h: Removed.
4522 2006-11-30  H.J. Lu  <hongjiu.lu@intel.com>
4524         * sysdeps/i386/i686/memcmp.S: Use jump table as the base of
4525         jump table entries.
4527 2006-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
4529         * sysdeps/unix/sysv/linux/i386/clone.S: Provide CFI for the outermost
4530         `clone' function to ensure proper unwinding stop of gdb.
4531         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
4533 2006-12-01  Ulrich Drepper  <drepper@redhat.com>
4535         * nscd/nscd.init: Remove obsolete and commented-out -S option
4536         handling.
4538 2006-11-23  Jakub Jelinek  <jakub@redhat.com>
4540         [BZ #3514]
4541         * manual/string.texi (strncmp): Fix pastos from wcscmp description.
4543         [BZ #3515]
4544         * manual/string.texi (strtok): Remove duplicate paragraph.
4546 2006-12-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4548         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Fix compatibility with
4549         libgcc not supporting `rflags' unwinding (register # >= 17).
4551 2006-11-30  Jakub Jelinek  <jakub@redhat.com>
4553         * sunrpc/svc_run.c (svc_run): Set my_pollfd to new_pollfd if realloc
4554         succeeded.
4556 2006-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
4557             Jakub Jelinek  <jakub@redhat.com>
4558             Jan Kratochvil  <jan.kratochvil@redhat.com>
4560         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (restore_rt): Add correct
4561         unwind information.
4562         * sysdeps/unix/sysv/linux/x86_64/Makefile: Provide symbols for
4563         'restore_rt' even in the 'signal' directory.
4564         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym: Extend the regs list.
4566 2006-11-27  Jakub Jelinek  <jakub@redhat.com>
4568         [BZ #3559]
4569         * sunrpc/svc_run.c (svc_run): Fail instead of segfaulting if
4570         malloc crashed.  Don't allocate memory unnecessarily in each
4571         loop.
4573 2006-10-21  Jakub Jelinek  <jakub@redhat.com>
4575         * resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
4577 2006-11-20  Ulrich Drepper  <drepper@redhat.com>
4579         * resolv/mapv4v6addr.h (map_v4v6_address): Optimize a bit.
4581 2006-11-18  Bruno Haible  <bruno@clisp.org>
4583         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Invoke
4584         __sysconf only after having tried to call getgroups32.
4586 2006-11-19  Ulrich Drepper  <drepper@redhat.com>
4588         * nss/nss_files/files-hosts.c (LINE_PARSER): Support IPv6-style
4589         addresses for IPv4 queries if they can be mapped.
4591 2006-11-16  Jakub Jelinek  <jakub@redhat.com>
4593         * sysdeps/x86_64/fpu/s_copysignf.S (__copysignf): Switch to .text.
4594         * sysdeps/x86_64/fpu/s_copysign.S (__copysign): Likewise.
4595         (signmask): Add .size directive.
4596         (othermask): Add .type directive.
4598 2006-11-14  Ulrich Drepper  <drepper@redhat.com>
4600         * po/nl.po: Update from translation team.
4602         * timezone/zdump.c: Redo fix for BZ #3137.
4604 2006-11-14  Jakub Jelinek  <jakub@redhat.com>
4606         * nss/nss_files/files-alias.c (get_next_alias): Set line back
4607         to first_unused after parsing :include: file.
4609 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
4611         * timezone/africa: Update from tzdata2006o.
4612         * timezone/antarctica: Likewise.
4613         * timezone/asia: Likewise.
4614         * timezone/australasia: Likewise.
4615         * timezone/backward: Likewise.
4616         * timezone/europe: Likewise.
4617         * timezone/iso3166.tab: Likewise.
4618         * timezone/northamerica: Likewise.
4619         * timezone/southamerica: Likewise.
4620         * timezone/zone.tab: Likewise.
4622         * time/tzfile.c (__tzfile_read): Extend to handle new file format
4623         on machines with 64-bit time_t.
4625         * timezone/checktab.awk: Update from tzcode2006o.
4626         * timezone/ialloc.c: Likewise.
4627         * timezone/private.h: Likewise.
4628         * timezone/scheck.c: Likewise.
4629         * timezone/tzfile.h: Likewise.
4630         * timezone/tzselect.ksh: Likewise.
4631         * timezone/zdump.c: Likewise.
4632         * timezone/zic.c: Likewise.
4634         [BZ #3483]
4635         * elf/ldconfig.c (main): Call setlocale and textdomain.
4636         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
4638         [BZ #3480]
4639         * manual/argp.texi: Fix typos.
4640         * manual/charset.texi: Likewise.
4641         * manual/errno.texi: Likewise.
4642         * manual/filesys.texi: Likewise.
4643         * manual/lang.texi: Likewise.
4644         * manual/maint.texi: Likewise.
4645         * manual/memory.texi: Likewise.
4646         * manual/message.texi: Likewise.
4647         * manual/resource.texi: Likewise.
4648         * manual/search.texi: Likewise.
4649         * manual/signal.texi: Likewise.
4650         * manual/startup.texi: Likewise.
4651         * manual/stdio.texi: Likewise.
4652         * manual/sysinfo.texi: Likewise.
4653         * manual/syslog.texi: Likewise.
4654         * manual/time.texi: Likewise.
4655         Patch by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4657         [BZ #3465]
4658         * sunrpc/clnt_raw.c: Minimal message improvements.
4659         * sunrpc/pm_getmaps.c: Likewise.
4660         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
4661         * nis/nis_print_group_entry.c: Likewise.
4662         * locale/programs/repertoire.c: Likewise.
4663         * locale/programs/charmap.c: Likewise.
4664         * malloc/memusage.sh: Likewise.
4665         * elf/dl-deps.c: Likewise.
4666         * locale/programs/ld-collate.c: Likewise.
4667         * libio/vswprintf.c: Likewise.
4668         * malloc/memusagestat.c: Likewise.
4669         * sunrpc/auth_unix.c: Likewise.
4670         * sunrpc/rpc_main.c: Likewise.
4671         * nscd/cache.c: Likewise.
4672         * locale/programs/repertoire.c: Unify output messages.
4673         * locale/programs/charmap.c: Likewise.
4674         * locale/programs/ld-ctype.c: Likewise.
4675         * locale/programs/ld-monetary.c: Likewise.
4676         * locale/programs/ld-numeric.c: Likewise.
4677         * locale/programs/ld-time.c: Likewise.
4678         * elf/ldconfig.c: Likewise.
4679         * nscd/selinux.c: Likewise.
4680         * elf/cache.c: Likewise.
4681         Patch mostly by Benno Schulenberg <bensberg@justemail.net>.
4683         [BZ #3451]
4684         * sysdeps/i386/fpu/bits/mathinline.h (floor): Make rounding mode
4685         change atomic.
4686         (ceil): Likewise.
4688 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
4690         * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization
4691         if N is one bigger than return value.
4692         * string/tst-strxfrm2.c (do_test): Also test strxfrm with l1 + 1
4693         and l1 last arguments, if buf is defined, verify the return value
4694         equals to strlen (buf) and verify no byte beyond passed length
4695         is modified.
4697 2006-11-10  Ulrich Drepper  <drepper@redhat.com>
4699         * po/sv.po: Update from translation team.
4701 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
4703         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word): Add
4704         noinline attribute.
4706 2006-11-10  Jakub Jelinek  <jakub@redhat.com>
4708         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Add
4709         noinline attribute.
4711         * sysdeps/gnu/siglist.c (__old_sys_siglist, __old_sys_sigabbrev):
4712         Use __new_sys_siglist instead of _sys_siglist_internal as
4713         second macro argument.
4714         (_old_sys_siglist): Use declare_symbol_alias macro instead of
4715         strong_alias.
4717 2006-11-09  Ulrich Drepper  <drepper@redhat.com>
4719         [BZ #3493]
4720         * posix/unistd.h (sysconf): Remove const attribute.
4722         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix test for
4723         temporary or deprecated addresses.
4724         Patch by Sridhar Samudrala <sri@us.ibm.com>.
4726         * string/Makefile (tests): Add tst-strxfrm2.
4727         * string/tst-strxfrm2.c: New file.
4729 2006-10-09  Jakub Jelinek  <jakub@redhat.com>
4731         * elf/dl-debug.c (_dl_debug_initialize): Check r->r_map for 0
4732         rather than r->r_brk.
4734 2006-11-08  Jakub Jelinek  <jakub@redhat.com>
4736         * string/strxfrm_l.c (STRXFRM): Do the trailing \1 removal
4737         optimization even if needed > n.
4739         * elf/dl-load.c (decompose_rpath): Return bool rather than void.
4740         If l->l_name is on inhibit_rpath list, set sps->dirs to -1 and
4741         return false, otherwise return true.
4742         (cache_rpath): Return decompose_rpath return value.
4744 2006-11-07  Jakub Jelinek  <jakub@redhat.com>
4746         * include/libc-symbols.h (declare_symbol): Rename to...
4747         (declare_symbol_alias): ... this.  Add ORIGINAL argument, imply
4748         strong_alias (ORIGINAL, SYMBOL) in asm to make sure it preceedes
4749         .size directive.
4750         * sysdeps/gnu/errlist-compat.awk: Adjust for declare_symbol_alias
4751         changes.
4752         * sysdeps/gnu/siglist.c: Likewise.
4754 2006-11-03  Steven Munroe  <sjmunroe@us.ibm.com>
4756         * sysdeps/powerpc/fpu/bits/mathinline.h
4757         [__LIBC_INTERNAL_MATH_INLINES]: Moved to ...
4758         * sysdeps/powerpc/fpu/math_private.h: ...here.  New file.
4760 2006-11-05  Ulrich Drepper  <drepper@redhat.com>
4762         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
4763         Update handling of cache descriptor 0x49 for new models.
4764         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (intel_check_word):
4765         Likewise.
4767 2006-11-02  Jakub Jelinek  <jakub@redhat.com>
4769         * malloc/memusage.c (dest): Reset not_me back to false after
4770         printing statistics.
4772 2006-11-02  Ulrich Drepper  <drepper@redhat.com>
4774         * configure.in: Work around ld --help change and avoid -z relro
4775         test completely if the architecture doesn't care about security.
4777 2006-11-01  Ulrich Drepper  <drepper@redhat.com>
4779         * po/sv.po: Update from translation team.
4781 2006-10-31  Ulrich Drepper  <drepper@redhat.com>
4783         * stdlib/atexit.c (atexit): Don't mark as hidden when used to
4784         generate compatibility version.
4786 2006-10-29  Ulrich Drepper  <drepper@redhat.com>
4788         * configure.in: Relax -z relro requirement a bit.
4790         * po/sv.po: Update from translation team.
4792 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
4794         * elf/dl-sym.c (do_sym): Use RTLD_SINGLE_THREAD_P.
4795         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
4796         * elf/dl-close.c (_dl_close_worker): Likewise.
4797         * elf/dl-open.c (_dl_open_worker): Likewise.
4798         * sysdeps/generic/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define.
4800 2006-10-27  Ulrich Drepper  <drepper@redhat.com>
4802         * configure.in: Require assembler support for visibility, compiler
4803         support for visibility and aliases, linker support for various -z
4804         options.
4805         * Makeconfig: Remove conditional code which now is unnecessary.
4806         * config.h.in: Likewise.
4807         * config.make.in: Likewise.
4808         * dlfcn/Makefile: Likewise.
4809         * elf/Makefile: Likewise.
4810         * elf/dl-load.c: Likewise.
4811         * elf/rtld.c: Likewise.
4812         * include/libc-symbols.h: Likewise.
4813         * include/stdio.h: Likewise.
4814         * io/Makefile: Likewise.
4815         * io/fstat.c: Likewise.
4816         * io/fstat64.c: Likewise.
4817         * io/fstatat.c: Likewise.
4818         * io/fstatat64.c: Likewise.
4819         * io/lstat.c: Likewise.
4820         * io/lstat64.c: Likewise.
4821         * io/mknod.c: Likewise.
4822         * io/mknodat.c: Likewise.
4823         * io/stat.c: Likewise.
4824         * io/stat64.c: Likewise.
4825         * libio/stdio.c: Likewise.
4826         * nscd/Makefile: Likewise.
4827         * stdlib/Makefile: Likewise.
4828         * stdlib/atexit.c: Likewise.
4829         * sysdeps/generic/ldsodefs.h: Likewise.
4830         * sysdeps/i386/dl-machine.h: Likewise.
4831         * sysdeps/i386/sysdep.h: Likewise.
4832         * sysdeps/i386/i686/memcmp.S: Likewise.
4833         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4834         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4835         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
4837         * Makerules: USE_TLS support is now default.
4838         * tls.make.c: Likewise.
4839         * csu/Versions: Likewise.
4840         * csu/libc-start.c: Likewise.
4841         * csu/libc-tls.c: Likewise.
4842         * csu/version.c: Likewise.
4843         * dlfcn/dlinfo.c: Likewise.
4844         * elf/dl-addr.c: Likewise.
4845         * elf/dl-cache.c: Likewise.
4846         * elf/dl-close.c: Likewise.
4847         * elf/dl-iteratephdr.c: Likewise.
4848         * elf/dl-load.c: Likewise.
4849         * elf/dl-lookup.c: Likewise.
4850         * elf/dl-object.c: Likewise.
4851         * elf/dl-open.c: Likewise.
4852         * elf/dl-reloc.c: Likewise.
4853         * elf/dl-support.c: Likewise.
4854         * elf/dl-sym.c: Likewise.
4855         * elf/dl-sysdep.c: Likewise.
4856         * elf/dl-tls.c: Likewise.
4857         * elf/ldconfig.c: Likewise.
4858         * elf/rtld.c: Likewise.
4859         * elf/tst-tls-dlinfo.c: Likewise.
4860         * elf/tst-tls1.c: Likewise.
4861         * elf/tst-tls10.h: Likewise.
4862         * elf/tst-tls14.c: Likewise.
4863         * elf/tst-tls2.c: Likewise.
4864         * elf/tst-tls3.c: Likewise.
4865         * elf/tst-tls4.c: Likewise.
4866         * elf/tst-tls5.c: Likewise.
4867         * elf/tst-tls6.c: Likewise.
4868         * elf/tst-tls7.c: Likewise.
4869         * elf/tst-tls8.c: Likewise.
4870         * elf/tst-tls9.c: Likewise.
4871         * elf/tst-tlsmod1.c: Likewise.
4872         * elf/tst-tlsmod13.c: Likewise.
4873         * elf/tst-tlsmod13a.c: Likewise.
4874         * elf/tst-tlsmod14a.c: Likewise.
4875         * elf/tst-tlsmod2.c: Likewise.
4876         * elf/tst-tlsmod3.c: Likewise.
4877         * elf/tst-tlsmod4.c: Likewise.
4878         * elf/tst-tlsmod5.c: Likewise.
4879         * elf/tst-tlsmod6.c: Likewise.
4880         * include/errno.h: Likewise.
4881         * include/link.h: Likewise.
4882         * include/tls.h: Likewise.
4883         * locale/global-locale.c: Likewise.
4884         * locale/localeinfo.h: Likewise.
4885         * malloc/arena.c: Likewise.
4886         * malloc/hooks.c: Likewise.
4887         * malloc/malloc.c: Likewise.
4888         * resolv/Versions: Likewise.
4889         * sysdeps/alpha/dl-machine.h: Likewise.
4890         * sysdeps/alpha/libc-tls.c: Likewise.
4891         * sysdeps/generic/ldsodefs.h: Likewise.
4892         * sysdeps/generic/tls.h: Likewise.
4893         * sysdeps/i386/dl-machine.h: Likewise.
4894         * sysdeps/ia64/dl-machine.h: Likewise.
4895         * sysdeps/ia64/libc-tls.c: Likewise.
4896         * sysdeps/mach/hurd/fork.c: Likewise.
4897         * sysdeps/mach/hurd/i386/tls.h: Likewise.
4898         * sysdeps/powerpc/powerpc32/dl-machine.c: Likwise.
4899         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
4900         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
4901         * sysdeps/s390/libc-tls.c: Likewise.
4902         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
4903         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
4904         * sysdeps/sh/dl-machine.h: Likewise.
4905         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
4906         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
4907         * sysdeps/x86_64/dl-machine.h: Likewise.
4909         * elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
4910         split out locking and parameter checking.
4911         (_dl_close): Call _dl_close_worker after locking and checking.
4912         * elf/dl-open.c (_dl_open): Call _dl_close_worker instead of
4913         _dl_close.
4914         * elf/Makefile: Add rules to build and run tst-thrlock.
4915         * elf/tst-thrlock.c:  New file.
4917         [BZ #3426]
4918         * stdlib/stdlib.h: Adjust comment for canonicalize_file_name to
4919         reality.
4921         [BZ #3429]
4922         * elf/dl-open.c (dl_open_worker): Keep holding dl_load_lock until
4923         we are sure we do not need it anymore for _dl_close.  Also move
4924         the asserts inside the lock region.
4925         Patch mostly by Suzuki <suzuki@in.ibm.com>.
4927 2006-10-27  Jakub Jelinek  <jakub@redhat.com>
4929         * elf/dl-lookup.c (_dl_debug_bindings): Remove unused symbol_scope
4930         argument.
4931         (_dl_lookup_symbol_x): Adjust caller.
4933         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Remove
4934         _ns_global_scope.
4935         * elf/rtld.c (dl_main): Don't initialize _ns_global_scope.
4937         * elf/dl-libc.c: Revert l_scope name changes.
4938         * elf/dl-load.c: Likewise.
4939         * elf/dl-object.c: Likewise.
4940         * elf/rtld.c: Likewise.
4941         * elf/dl-close.c (_dl_close): Likewise.
4942         * elf/dl-open.c (dl_open_worker): Likewise.  If not SINGLE_THREAD_P,
4943         always use __rtld_mrlock_{change,done}.  Always free old scope list
4944         here if not l_scope_mem.
4945         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Revert l_scope name
4946         change.  Never free scope list here.  Just __rtld_mrlock_lock before
4947         the lookup and __rtld_mrlock_unlock it after the lookup.
4948         * elf/dl-sym.c: Likewise.
4949         * include/link.h (struct r_scoperec): Remove.
4950         (struct link_map): Replace l_scoperec with l_scope, l_scoperec_mem
4951         with l_scope_mem and l_scoperec_lock with l_scope_lock.
4953 2006-10-25  Ulrich Drepper  <drepper@redhat.com>
4955         * sysdeps/gnu/netinet/tcp.h: Define TCP_CONGESTION.
4957 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
4959         * configure.in: Disable building profile libraries by default.
4961 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
4963         * sunrpc/xdr_mem.c (xdrmem_setpos): Don't compare addresses
4964         as signed longs, check for x_base + pos overflow.
4965         * sunrpc/Makefile (tests): Add tst-xdrmem2.
4966         * sunrpc/tst-xdrmem2.c: New test.
4968 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
4970         * elf/dl-lookup.c (_dl_lookup_symbol_x): Add warning to
4971         _dl_lookup_symbol_x code.
4973 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
4975         * elf/dl-runtime.c: Include sysdep-cancel.h.
4976         (_dl_fixup, _dl_profile_fixup): Use __rtld_mrlock_* and
4977         scoperec->nusers only if !SINGLE_THREAD_P.  Use atomic_*
4978         instead of catomic_* macros.
4979         * elf/dl-sym.c: Include sysdep-cancel.h.
4980         (do_sym): Use __rtld_mrlock_* and scoperec->nusers only
4981         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
4982         * elf/dl-close.c: Include sysdep-cancel.h.
4983         (_dl_close): Use __rtld_mrlock_* and scoperec->nusers only
4984         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
4985         * elf/dl-open.c: Include sysdep-cancel.h.
4986         (dl_open_worker): Use __rtld_mrlock_* and scoperec->nusers only
4987         if !SINGLE_THREAD_P.  Use atomic_* instead of catomic_* macros.
4989 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
4991         [BZ #3313]
4992         * malloc/malloc.c (malloc_consolidate): Set maxfb to address of last
4993         fastbin rather than end of fastbin array.
4995 2006-10-18  Ulrich Drepper  <drepper@redhat.com>
4997         * sysdeps/i386/i486/bits/atomic.h (catomic_decrement): Use correct
4998         body macro.
4999         * sysdeps/x86_64/bits/atomic.h
5000         (__arch_c_compare_and_exchange_val_64_acq): Add missing casts.
5001         (catomic_decrement): Use correct body macro.
5003 2006-10-17  Jakub Jelinek  <jakub@redhat.com>
5005         * include/atomic.h: Add a unique prefix to all local variables
5006         in macros.
5007         * csu/tst-atomic.c (do_test): Test also catomic_* macros.
5009 2006-10-16  Ulrich Drepper  <drepper@redhat.com>
5011         [BZ #3369]
5012         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Fix typos in rules 4
5013         and 7.
5015 2006-10-14  Ulrich Drepper  <drepper@redhat.com>
5017         * resolv/arpa/nameser.h: Document that ns_t_a6 is deprecated.
5019 2006-10-13  Ulrich Drepper  <drepper@redhat.com>
5021         [BZ #3313]
5022         * malloc/malloc.c (malloc_consolidate): Don't use get_fast_max to
5023         determine highest fast bin to consolidate, always look into all of
5024         them.
5025         (do_check_malloc_state): Only require for empty bins for large
5026         sizes in main arena.
5028         * libio/stdio.h: Add more __wur attributes.
5030         * elf/dl-minimal.c (realloc): Optimize last patch.
5032 2006-10-12  Richard Sandiford  <richard@codesourcery.com>
5034         [BZ #3352]
5035         * elf/dl-minimal.c (realloc): Let malloc() return a new pointer,
5036         and use memcpy() if it does.
5038 2006-11-12  Andreas Jaeger  <aj@suse.de>
5040         [BZ #2510]
5041         * manual/search.texi (Hash Search Function): Clarify.
5042         (Array Search Function): Clarify.
5044 2006-11-12  Joseph Myers  <joseph@codesourcery.com>
5046         [BZ #2830]
5047         * math/atest-exp.c (main): Cast hex value to mp_limb_t before
5048         shifting.
5049         * math/atest-exp2.c (read_mpn_hex): Likewise.
5050         * math/atest-sincos.c (main): Likewise.
5052 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
5054         * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_pwait.
5055         * sysdeps/unix/sysv/linux/sys/epoll.h: Declare epoll_pwait.
5056         * sysdeps/unix/sysv/linux/Versions (libc): Add epoll_pwait for
5057         version GLIBC_2.6.
5058         * Versions.def: Add GLIBC_2.6 for libc.
5060         * sysdeps/unix/sysv/linux/i386/sysdep.h (DOARGS_6): Fix offset.
5062         * sysdeps/i386/i486/bits/atomic.h: Add catomic_* support.
5064 2006-10-11  Jakub Jelinek  <jakub@redhat.com>
5066         * malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
5068         * nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
5070         * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
5071         * sysdeps/generic/unsecvars.h: Add NIS_PATH.
5073 2006-10-11  Ulrich Drepper  <drepper@redhat.com>
5075         * include/atomic.c: Define catomic_* operations.
5076         * sysdeps/x86_64/bits/atomic.h: Likewise.  Fix a few minor problems.
5077         * stdlib/cxa_finalize.c: Use catomic_* operations instead of atomic_*.
5078         * malloc/memusage.c: Likewise.
5079         * gmon/mcount.c: Likewise.
5080         * elf/dl-close.c: Likewise.
5081         * elf/dl-open.c: Likewise.
5082         * elf/dl-profile.c: Likewise.
5083         * elf/dl-sym.c: Likewise.
5084         * elf/dl-runtime.c: Likewise.
5085         * elf/dl-fptr.c: Likewise.
5086         * resolv/res_libc.c: Likewise.
5088 2006-10-10  Ulrich Drepper  <drepper@redhat.com>
5090         * nis/nis_subr.c (nis_getnames): Add trailing dot to NIS_PATH
5091         components which lack them.
5093         * nis/nis_subr.c (nis_getnames): Make sure that we always return
5094         at least one entry consisting of the parameter concatenated with
5095         the domain.
5097 2006-10-10  Roland McGrath  <roland@frob.com>
5099         * sysdeps/mach/hurd/utimes.c: Use a union to avoid an improper cast.
5100         * sysdeps/mach/hurd/futimes.c: Likewise.
5101         * sysdeps/mach/hurd/lutimes.c: Likewise.
5103 2006-10-09  Ulrich Drepper  <drepper@redhat.com>
5104             Jakub Jelinek  <jakub@redhat.com>
5106         Implement reference counting of scope records.
5107         * elf/dl-close.c (_dl_close): Remove all scopes from removed objects
5108         from the list in objects which remain.  Always allocate new scope
5109         record.
5110         * elf/dl-open.c (dl_open_worker): When growing array for scopes,
5111         don't resize, allocate a new one.
5112         * elf/dl-runtime.c: Update reference counters before using a scope
5113         array.
5114         * elf/dl-sym.c: Likewise.
5115         * elf/dl-libc.c: Adjust for l_scope name change.
5116         * elf/dl-load.c: Likewise.
5117         * elf/dl-object.c: Likewise.
5118         * elf/rtld.c: Likewise.
5119         * include/link.h: Include <rtld-lowlevel.h>.  Define struct
5120         r_scoperec.  Replace r_scope with pointer to r_scoperec structure.
5121         Add l_scoperec_lock.
5122         * sysdeps/generic/ldsodefs.h: Include <rtld-lowlevel.h>.
5123         * sysdeps/generic/rtld-lowlevel.h: New file.
5125         * include/atomic.h: Rename atomic_and to atomic_and_val and
5126         atomic_or to atomic_or_val.  Define new macros atomic_and and
5127         atomic_or which do not return values.
5128         * sysdeps/x86_64/bits/atomic.h: Define atomic_and and atomic_or.
5129         Various cleanups.
5130         * sysdeps/i386/i486/bits/atomic.h: Likewise.
5132         * po/sv.po: Update from translation team.
5134 2006-10-07  Ulrich Drepper  <drepper@redhat.com>
5136         * Versions.def: Add GLIBC_2.6 to libpthread.
5138         * include/shlib-compat.h (SHLIB_COMPAT): Expand parameters before use.
5139         (versioned_symbol): Likewise.
5140         (compat_symbol): Likewise.
5142         * po/tr.po: Update from translation team.
5144 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
5146         * nis/Banner: Removed.  It's been integral part forever and the
5147         author info is incomplete anyway.
5148         * libio/Banner: Likewise.
5150         * nis/nis_table.c (nis_list): If __follow_path fails in the new
5151         code, make sure the nis_freeresult call doesn't crash and that the
5152         result is reported correctly.
5154 2006-09-27  Jakub Jelinek  <jakub@redhat.com>
5156         * nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
5157         when callback is NULL.
5159         * nis/Versions (libnss_nisplus): Add
5160         _nss_nisplus_initgroups_dyn@@GLIBC_PRIVATE.
5161         * nis/Makefile (libnss_nisplus-routines): Add nisplus-initgroups.
5162         * nis/nss_nisplus/nisplus-grp.c (tablename_val, tablename_len,
5163         _nss_create_tablename): Rename to...
5164         (grp_tablename_val, grp_tablename_len, _nss_grp_create_tablename):
5165         ... these.  No longer static.
5166         (internal_setgrent): Adjust users.
5167         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
5168         Don't use locking around _nss_grp_create_tablename call.
5169         * nis/nss_nisplus/nisplus-initgroups.c: New file.
5171 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
5173         * version.h (VERSION): Bump to 2.5.90 for new development tree.
5175 2006-10-06  Andreas Jaeger  <aj@suse.de>
5177         * include/features.h (__GLIBC_MINOR__): It's glibc 2.5 now.
5179 2006-10-06  Ulrich Drepper  <drepper@redhat.com>
5181         * po/pl.po: Update from translation team.
5183         * nscd/nscd.c (main): Fix typo in message.
5184         Patch by Jakub Bogsz <qboosh@pld-linux.org>.
5186 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
5188         [BZ #3291]
5189         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
5190         errno.h, signal.h, unistd.h and sysdep-cancel.h.
5191         (__sigprocmask): Define.
5193 2006-10-02  Ulrich Drepper  <drepper@redhat.com>
5195         * elf/rtld.c (dl_main): Don't use prelinking if LD_DYNAMIC_WEAK is
5196         used.
5198 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
5200         * nscd/mem.c (mempool_alloc): Round array size to 16 bytes
5201         in oldtotal and newtotal calculation.
5202         * nscd/nscd-client.h (struct mapped_database): Add datasize
5203         field.
5204         * nscd/nscd_helper.c (get_mapping): Initialize datasize field.
5205         (__nscd_get_map_ref): Get a new mapping even if mapping's data_size
5206         increased.
5207         (__nscd_cache_search): Add checks to make sure we never reference
5208         data beyond the current mapping.
5210 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
5212         * sysdeps/posix/getaddrinfo.c (match_prefix): Make mask and val
5213         variables const to avoid compiler warnings.
5215         * io/fts.c (fts_close): Remove redundant checks.
5216         (fts_build): Likewise.
5217         (fts_palloc): Likewise.
5219         * manual/message.texi (Advanced gettext functions,
5220         Using gettextized software): Fix typos.
5222 2006-09-30  Ulrich Drepper  <drepper@redhat.com>
5224         * posix/glob.c (glob_in_dir): Add some comments and asserts to
5225         explain why there are no leaks.
5227 2006-09-29  Ulrich Drepper  <drepper@redhat.com>
5229         * libio/wmemstream.c: Include <wchar.h>.
5230         * libio/bug-wmemstream1.c: Likewise.
5231         * libio/tst-wmemstream1.c: Likewise.
5232         * libio/tst-wmemstream2.c: Likewise.
5234         * version.h (RELEASE): Bump to 2.5.
5235         * README: Regenerated.
5237         * locale/iso-3166.def: Add Aaland Islands and Montenegro.
5239         [BZ #3273]
5240         * nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
5241         found no group members.
5242         Patch by Petr Baudis.
5244 2006-09-29  Jakub Jelinek  <jakub@redhat.com>
5246         * elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
5247         assert bootstrap_map.l_tls_modid is zero.
5248         (_dl_start): Initialize bootstrap_map.l_tls_modid to 0
5249         if USE___THREAD.
5251 2006-09-27  Ulrich Drepper  <drepper@redhat.com>
5253         * libio/stdio.h: Move open_wmemstream prototype to ...
5254         * wcsmbs/wchar.h: ... here.
5256 2006-09-25  Jakub Jelinek  <jakub@redhat.com>
5258         [BZ #3252]
5259         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Handle only
5260         fchownat syscall and __ASSUME_LCHOWN_SYSCALL case inline, call
5261         __{,l}chown to handle the rest.
5262         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Handle only
5263         fchownat syscall and __ASSUME_32BITUIDS case inline, call
5264         __{,l}chown to handle the rest.
5265         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Include
5266         i386/fchownat.c.
5267         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
5268         * sysdeps/unix/sysv/linux/sh/fchownat.c: Likewise.
5270         [BZ #3253]
5271         * posix/glob.c (glob_in_dir): Don't alloca one struct globlink at a
5272         time, rather allocate increasingly bigger arrays of pointers, if
5273         possible with alloca, if too large with malloc.
5275 2006-09-24  Jakub Jelinek  <jakub@redhat.com>
5277         * sysdeps/powerpc/fpu/libm-test-ulps: Updated.
5279         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Fix 2 typos.
5281 2006-09-24  Ulrich Drepper  <drepper@redhat.com>
5283         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): Implement rule 4,
5284         home addresses.
5285         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Recognize
5286         IFA_F_HOMEADDRESS flag for interfaces.
5287         * include/ifaddrs.h (struct in6addrinfo): Define
5288         in6ai_homeaddress.
5290 2006-09-21  Jakub Jelinek  <jakub@redhat.com>
5292         [BZ #3225]
5293         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (PTR_MANGLE3,
5294         PTR_DEMANGLE3): Define.
5295         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (PTR_MANGLE3,
5296         PTR_DEMANGLE3): Likewise.
5297         * sysdeps/powerpc/powerpc32/__longjmp-common.S (__longjmp): Use them.
5298         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp):
5299         Likewise.
5300         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
5302 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
5304         * po/libc.pot: Regenerated.
5305         * po/be.po: Updated.
5306         * po/ca.po: Likewise.
5307         * po/cs.po: Likewise.
5308         * po/da.po: Likewise.
5309         * po/de.po: Likewise.
5310         * po/el.po: Likewise.
5311         * po/en_GB.po: Likewise.
5312         * po/es.po: Likewise.
5313         * po/fi.po: Likewise.
5314         * po/fr.po: Likewise.
5315         * po/gl.po: Likewise.
5316         * po/hr.po: Likewise.
5317         * po/hu.po: Likewise.
5318         * po/ja.po: Likewise.
5319         * po/ko.po: Likewise.
5320         * po/nb.po: Likewise.
5321         * po/nl.po: Likewise.
5322         * po/pl.po: Likewise.
5323         * po/pt_BR.po: Likewise.
5324         * po/ru.po: Likewise.
5325         * po/rw.po: Likewise.
5326         * po/sk.po: Likewise.
5327         * po/sv.po: Likewise.
5328         * po/tr.po: Likewise.
5329         * po/zh_CN.po: Likewise.
5330         * po/zh_TW.po: Likewise.
5332         [BZ #3137]
5333         * iconv/iconv_prog.c (main): Fix spelling in error message.
5334         * iconv/iconvconfig.c (main): Likewise.
5335         * locale/programs/ld-collate.c (handle_ellipsis): Likewise.
5336         * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis): Likewise.
5337         * locale/programs/localedef.c (main): Likewise.
5338         * locale/programs/repertoire.c (repertoire_read): Likewise.
5339         * timezone/zdump.c (main): Likewise.
5340         * nscd/connections.c (handle_request): Fix spelling in log message.
5341         Patch by Malcolm Parsons <malcolm.parsons@gmail.com>.
5343 2006-09-20  Ulrich Drepper  <drepper@redhat.com>
5345         * inet/inet6_option.c: Also emit linker warnings for the RFC 2292
5346         interfaces.
5348 2006-09-20  Andreas Jaeger  <aj@suse.de>
5350         * math/libm-test.inc (lrint_test_upward): Fix typo.
5352 2006-06-17  Joseph S. Myers  <joseph@codesourcery.com>
5354         [BZ #2592]
5355         * math/libm-test.inc (lrint_test_tonearest): New function.
5356         (lrint_test_towardzero): New function.
5357         (lrint_test_downward): New function.
5358         (lrint_test_upward): New function.
5359         (main): Run these new tests.
5360         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Correct rounding
5361         of values near to 0.
5362         (two52): Use double not long double.
5363         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
5364         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
5365         (two23): Use float not double.
5366         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
5367         (two23): Use float not double.
5368         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
5369         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
5370         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
5371         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
5373 2006-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5375         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c (__makecontext):
5376         Cast sp to unsigned long to avoid compiler warning.
5377         Use __makecontext_ret function instead of a trampoline on the stack.
5378         (__makecontext_ret): New function.
5379         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Likewise.
5381 2006-09-19  Jakub Jelinek  <jakub@redhat.com>
5383         * elf/dl-cache.c (HWCAP_CHECK): If _DL_PLATFORMS_COUNT, but
5384         platform == -1, reject any libs with non-zero _DL_HWCAP_PLATFORM
5385         bits.
5387 2006-09-19  Ulrich Drepper  <drepper@redhat.com>
5389         * elf/dl-close.c (_dl_close): If dependency is not unloaded make
5390         sure no reference to the unloaded map's search list remains in the
5391         dependency's scope.
5393 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
5395         * elf/Makefile: Add rules to build and run unload7 test.
5396         * elf/unload7.c: New test.
5397         * elf/unload7mod1.c: New file.
5398         * elf/unload7mod2.c: New file.
5400 2006-09-18  Jakub Jelinek  <jakub@redhat.com>
5402         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_GETEVENTMSG): Fix pasto.
5403         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_SETOPTIONS,
5404         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
5405         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_SETOPTIONS,
5406         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
5407         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_SETOPTIONS,
5408         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Likewise.
5409         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_SETOPTIONS,
5410         PTRACE_GETEVENTMSG): Likewise.
5411         (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Change to the arch independent
5412         values.
5414 2006-09-17  Mike Frysinger  <vapier@gentoo.org>
5416         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SETOPTIONS,
5417         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
5418         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Check PTRACE_SETOPTIONS,
5419         PTRACE_GETEVENTMSG, PTRACE_GETSIGINFO and PTRACE_SETSIGINFO.
5421 2006-09-16  Jakub Jelinek  <jakub@redhat.com>
5423         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump): Don't
5424         write '\0' to the fd.
5425         * sysdeps/mach/hurd/powerpc/register-dump.h (register_dump): Likewise.
5426         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump): Likewise.
5427         Change regs to unsigned long pointer from unsigned int, fix fscr
5428         offset.
5430 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
5432         * io/Makefile (CFLAGS-fstatat.c): Set.
5433         (CFLAGS-fstatat64.c): Likewise.
5434         (CFLAGS-mknodat.c): Likewise.
5436         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Comment fixes.
5437         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
5438         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Rewritten.
5439         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Rewritten.
5441 2006-09-14  Jakub Jelinek  <jakub@redhat.com>
5442             Steven Munroe  <sjmunroe@us.ibm.com>
5444         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add 4 new cap
5445         names to the beginning.  Rename "cell" to "cellbe".
5446         (_dl_powerpc_platforms): New.
5447         * sysdeps/powerpc/dl-procinfo.h (_DL_HWCAP_FIRST): Decrease.
5448         (HWCAP_IMPORTANT): Remove power{4,5,5+} and cell.
5449         (_DL_PLATFORMS_COUNT, _DL_FIRST_PLATFORM): Define.
5450         (_DL_HWCAP_PLATFORM): Define to new mask.
5451         (_dl_platform_string, _dl_string_platform): New functions.
5452         * sysdeps/powerpc/sysdep.h (PPC_FEATURE_BOOKE, PPC_FEATURE_SMT,
5453         PPC_FEATURE_ICACHE_SNOOP, PPC_FEATURE_ARCH_2_05): Define.
5455 2006-09-12  Jakub Jelinek  <jakub@redhat.com>
5457         [BZ #2526]
5458         * README.libm: Fix a thinko in sqrt algorithm description.
5460         [BZ #3143]
5461         * manual/string.texi (argz_delete): Fix prototype.
5462         Patch by <alpt@freaknet.org>.
5464 2006-08-26  Joseph Myers  <joseph@codesourcery.com>
5466         [BZ #3138]
5467         * io/test-lfs.c (do_prepare): Give name_len type size_t.
5468         * io/tst-fcntl.c (do_prepare): Likewise.
5469         * posix/tst-exec.c (do_prepare): Likewise.
5470         * posix/tst-preadwrite.c (do_prepare): Likewise.
5471         * posix/tst-spawn.c (do_prepare): Likewise.
5472         * posix/tst-truncate.c (do_prepare): Likewise.
5473         * rt/tst-aio.c (do_prepare): Likewise.
5474         * rt/tst-aio64.c (do_prepare): Likewise.
5475         * stdlib/test-canon2.c (do_prepare): Give test_dir_len type
5476         size_t.
5478 2006-09-09  Ulrich Drepper  <drepper@redhat.com>
5480         [BZ #2821]
5481         * time/mktime.c (guess_time_tm): Fix overflow detection.
5482         * time/Makefile (tests): Add bug-mktime1.
5483         * time/bug-mktime1.c: New file.
5485         [BZ #3189, #3188]
5486         * misc/sys/mman.h (remap_file_pages): Make available for _GNU_SOURCE.
5487         (mremap): Likewise.
5489 2006-09-07  Jakub Jelinek  <jakub@redhat.com>
5491         [BZ #1006]
5492         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
5493         Ensure relocation doesn't clobber any bits outside of the
5494         immediate field for R_SPARC_TLS_LE_HIX22, R_SPARC_WDISP30,
5495         R_SPARC_HI22 and R_SPARC_H44.
5497         [BZ #2775]
5498         * malloc/malloc.c (sYSMALLOc): Only call grow_heap if
5499         (long) (MINSIZE + nb - old_size) is positive.
5501         * malloc/arena.c (grow_heap): When growing bail even if new_size
5502         is negative.
5504         [BZ #3155]
5505         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S (__lrint): Don't access
5506         stack below r1.
5508 2006-09-06  Jakub Jelinek  <jakub@redhat.com>
5510         * posix/regex_internal.c (re_string_reconstruct): Handle
5511         offset < pstr->valid_raw_len && pstr->offsets_needed case.
5512         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
5513         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
5514         re_string_context_at.
5515         * posix/Makefile: Add rules to build and run bug-regex26 test.
5516         * posix/bug-regex26.c: New test.
5518         * locale/programs/ld-collate.c (collate_read): Goto sym_equiv_free
5519         rather than col_sym_free.  Move seqp declaration earlier.
5521         * resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
5523 2006-09-05  Jakub Jelinek  <jakub@redhat.com>
5525         * nscd/initgrcache.c (addinitgroupsX): Move any_success
5526         decl before first goto out.
5528 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
5530         * Makerules (shlib.lds): If have-hash-style, put .hash section
5531         at the end of the RO segment.
5533 2006-09-04  Ulrich Drepper  <drepper@redhat.com>
5535         * elf/do-lookup.h (do_lookup_x): Initialize symidx in case the new
5536         style hash table format is used.
5538 2006-09-04  Jakub Jelinek  <jakub@redhat.com>
5540         * resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after
5541         randomization rather than before.
5542         * resolv/res_init.c (res_randomid): Don't call gettimeofday here.
5544 2006-08-31  Jakub Jelinek  <jakub@redhat.com>
5546         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Add ld.so.
5548         * malloc/malloc.c (_int_malloc): Use full list insert and not
5549         shortcut which assumes the list is empty for large requests
5550         too.
5552         * elf/tst-addr1.c (do_test): Allow i.dli_sname "_IO_printf".
5554 2006-08-30  Jakub Jelinek  <jakub@redhat.com>
5556         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (splice): Add offin
5557         and offout arguments to the prototype.
5558         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (splice): Likewise.
5559         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (splice): Likewise.
5560         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (splice): Likewise.
5561         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (splice): Likewise.
5562         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (splice): Likewise.
5563         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (splice): Likewise.
5564         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (splice): Likewise.
5565         * sysdeps/unix/sysv/linux/syscalls.list (splice): Adjust args string.
5567 2006-08-28  Ulrich Drepper  <drepper@redhat.com>
5569         * elf/dl-load.c (_dl_init_paths): Expand DSTs.
5571         * elf/dl-open.c (dl_open_worker): Allow $LIB and $PLATFORM in
5572         dlopen parameters.
5574 2006-08-28  Jakub Jelinek  <jakub@redhat.com>
5576         * inet/getnameinfo.c (getnameinfo): For AF_INET, check errno
5577         only if herrno is NETDB_INTERNAL.  Handle errors other than
5578         ERANGE outside of the loops, handle TRY_AGAIN.
5580         * locale/programs/ld-ctype.c (translit_flatten): Issue error
5581         if other's ctype category was missing.
5582         * locale/programs/ld-collate.c (collate_read): Return if
5583         copy_locale's collate category is missing.
5585 2006-08-27  Ulrich Drepper  <drepper@redhat.com>
5587         [BZ #2684]
5588         * malloc/malloc.c (public_rEALLOc): Try harder by using other
5589         arenas if allocation failed.
5590         Patch mostly by Jan Edler <jan.edler@indexengines.com>.
5592 2006-08-26  Ulrich Drepper  <drepper@redhat.com>
5594         * malloc/malloc.c (bin_at): Rewrite to be more clear and to not
5595         waste bins[0..1].
5596         (malloc_state): Reduce bins size by 2.
5597         (_int_malloc): Fix test for large enough buffer for early termination.
5598         When no unsorted block matches perfectly and an exiting block has
5599         to be split, use full list insert and not shortcut which assumes
5600         the list is empty.
5602         * locale/programs/ld-ctype.c (ctype_read): Better patch for read
5603         failure.
5605 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
5607         * locale/programs/ld-ctype.c (ctype_read): If CTYPE is NULL, don't
5608         do anything.
5610         * sysdeps/generic/ldsodefs.h (DL_ADDR_SYM_MATCH): For undefined
5611         symbol require exact match (these are PLTs).
5612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
5613         (_dl_ppc64_addr_sym_match): Likewise.
5615         [BZ #2683]
5616         * elf/dl-addr.c (_dl_addr): Don't ignore all undefined symbols.
5617         If symbol has a value use it.
5618         * elf/tst-dladdr1.c: New file.
5619         * elf/Makefile: Add rules to build and run tst-addr1.
5621 2006-08-24  Jakub Jelinek  <jakub@redhat.com>
5623         * malloc/malloc.c (sYSMALLOc): Avoid infinite loop if MMAP
5624         keeps failing and heap growth or new heap creation isn't
5625         successful either.
5626         * malloc/tst-malloc.c (main): Add new tests.
5628 2006-08-24  Ulrich Drepper  <drepper@redhat.com>
5630         [BZ #2734]
5631         * sysdeps/i386/bits/byteswap.h (__bswap_32): Use same conditions
5632         as in the x86-64 code to use bswap.
5634 2006-05-21  Joseph S. Myers  <joseph@codesourcery.com>
5636         [BZ #2680]
5637         * posix/unistd.h (getlogin_r): Condition on __USE_POSIX199506, not
5638         __USE_UNIX98.
5639         * posix/bits/unistd.h: Likewise.
5641 2006-05-15  Mike Frysinger  <vapier@gentoo.org>
5643         [BZ #2751]
5644         * string/strchr.c: Add cast to avoid warning.
5646 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
5648         * malloc/malloc.c (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit
5649         platforms define as 512K.  For 64-bit platforms as 32MB.  The lower
5650         limit is needed to avoid the exploding of the address space
5651         requirement for secondary heaps.
5652         * malloc/arena.c (HEAP_MAX_SIZE): Define using
5653         DEFAULT_MMAP_THRESHOLD_MAX if it is defined.
5655 2006-07-30  Joseph S. Myers  <joseph@codesourcery.com>
5657         [BZ #3018]
5658         * Makerules (depfiles): Handle extra-test-objs the same as
5659         extra-objs.
5660         (common-mostlyclean): Likewise.
5661         * dlfcn/Makefile (extra-objs): Add modules to extra-test-objs
5662         instead.
5663         * elf/Makefile (extra-objs): Likewise.
5664         * stdlib/Makefile (extra-objs): Likewise.
5666 2006-08-14  Eric Blake  <ebb9@byu.net>
5668         [BZ #3044]
5669         * misc/error.h: Assume C89 or better.
5670         * misc/error.c: Likewise.
5672 2006-08-21  Ulrich Drepper  <drepper@redhat.com>
5674         [BZ #3040]
5675         * sysdeps/unix/sysv/linux/openat.c: Fix compilation if
5676         __ASSUME_ATFCTS is defined.
5678 2006-08-19  Ulrich Drepper  <drepper@redhat.com>
5680         * malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
5681         to sort in each call.
5683         * nis/nss_nis/nis-service.c (internal_nis_getservent_r): . If map
5684         is empty simply return and use next service.
5685         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r): Likewise.
5687         * locale/programs/charmap.c (charmap_read): Add new parameter.  It
5688         tells us when not finding a charmap file is an error.
5689         * locale/programs/charmap.h: Adjust charmap_read prototype.
5690         * iconv/iconv_prog.c (main): Tell charmap_read it's no error if we
5691         cannot find a charmap.
5692         * locale/programs/localedef.c (main): Adjust charmap_read call.
5694 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
5696         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use
5697         sysdeps/posix/pause.c implementation instead.
5699 2006-08-09  Jakub Jelinek  <jakub@redhat.com>
5701         * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority
5702         to EPERM.
5704 2006-08-13  Andreas Schwab  <schwab@suse.de>
5706         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):
5707         Don't clobber caller's LRSAVE.
5708         (_dl_prof_resolve): Likewise.
5710 2006-08-14  Ulrich Drepper  <drepper@redhat.com>
5712         [BZ #1996]
5713         * libio/memstream.c (open_memstream): Allocate initial buffer with
5714         calloc.
5715         * libio/wmemstream.c (open_wmemstream): Likewise.
5716         * libio/strops.c: Pretty printing.
5717         (_IO_str_overflow): Clear uninitialized part of the new buffer.
5718         (enlarge_userbuf): New function.
5719         (_IO_str_seekoff): Call it if seek position is larger than current
5720         buffer.
5721         * libio/wstrops.c: Likewise.
5722         * libio/vasprintf.c: Add comment as to why we do not have to use
5723         calloc instead of malloc to allocate initial buffer.
5724         * libio/Makefile (tests): Add bug-memstream1 and bug-wmemstream1.
5725         * libio/bug-memstream1.c: New file.
5726         * libio/bug-wmemstream1.c: New file.
5728 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
5730         * libio/wstrops.c: Remove dead macro definitions and comments.
5731         * libio/strops.c: Likewise.
5733         [BZ #2764]
5734         * login/utmpname.c (__utmpname): Remove unnecessary test.
5736 2006-06-08  Joseph Myers  <jsm28@gcc.gnu.org>
5738         [BZ #2832]
5739         * math/gen-libm-test.pl (clean_up_number): Do not remove trailing
5740         0s from integers.
5742 2006-08-13  Ulrich Drepper  <drepper@redhat.com>
5744         [BZ #2987]
5745         * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall
5746         for CPU clocks.
5747         * sysdeps/unix/clock_settime.c: Add support for platform-specific
5748         setting of CPU clocks.
5750 2006-06-23  Paul Eggert  <eggert@cs.ucla.edu>
5752         [BZ #2841]
5753         * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U',
5754         since C99 requires the result to promote to 'int' when uint_least8_t
5755         and uint_least16_t promote to 'int'.
5757 2006-08-12  Ulrich Drepper  <drepper@redhat.com>
5759         [BZ #3013]
5760         * locale/programs/ld-ctype.c (ctype_output): Adjust alignments, fix
5761         lenght of one output field, correct bitmask creation.
5762         * locale/programs/ld-time.c: Add alignment.
5764         [BZ #2997]
5765         * misc/error.c: Add space between program name and message if file
5766         name is missing.
5768 2006-08-03  Eric Blake  <ebb9@byu.net>
5770         [BZ #2998]
5771         * misc/error.c (error_tail) [_LIBC]: Avoid invalid free.
5773 2006-08-09  Ulrich Drepper  <drepper@redhat.com>
5775         * malloc/memusagestat.c: Silence warnings.
5777         * malloc/malloc.c: Dynamically size mmap treshold if the program
5778         frees mmaped blocks.
5779         Patch by Valerie Henson and Arjan van de Ven.
5781 2006-08-08  Jakub Jelinek  <jakub@redhat.com>
5783         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect with
5784         __USE_GNU.
5786         * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,
5787         __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare.
5788         (DEF): Don't put the var into .gnu.linkonce.r.* section.
5789         Only provide var definitions in strtol_l (or for *ull*
5790         in strtoll_l).
5792         * stdio-common/bug16.c (tests): New array.
5793         (do_tests): Allow the first hexadecimal digit
5794         to be 1, 2, 4 or 8.  Do 3 additional tests.
5796         * sysdeps/s390/fpu/libm-test-ulps: Update.
5798         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use
5799         fchownat syscall if available.
5800         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
5801         * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise.
5802         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
5804 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
5806         * nis/nis_xdr.c: Avoid some function calls.
5808 2006-08-07  Jakub Jelinek  <jakub@redhat.com>
5809             Ulrich Drepper  <drepper@redhat.com>
5811         * nis/nis_call.c (rec_dirsearch) [case LOWER_NAME]: Don't take
5812         short cut if only one name component is stripped away.
5814 2006-08-07  Ulrich Drepper  <drepper@redhat.com>
5816         * nis/nis_call.c: Minor cleanups throughout.
5817         (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
5818         (first_shoot): Add search_parent_first parameter.  Only if it is set
5819         search parent server first.
5820         If directory for table found through cold start cache is not the same
5821         as referenced in the cache, don't use it.
5822         (__nisfind_server): Take additional parameter.  Pass it on to
5823         first_shoot.
5824         (__prepare_niscall): Adjust __nisfind_server call.
5825         * nis/rpcsvc/nislib.h: Adjust __nisfind_server prototype.
5826         * nis/nis_table.c: Adjust __nisfind_server call.
5827         * nis/nis_lookup.c: Likewise.
5828         (nis_lookup): Don't loop endlessly if name is reduced to ".".
5830 2006-08-03  Ulrich Drepper  <drepper@redhat.com>
5832         [BZ #2182]
5833         * math/s_cacosh.c: Return values from positive branch.
5834         * math/s_cacoshf.c: Likewise.
5835         * math/s_cacoshl.c: Likewise.
5837         [BZ #2883]
5838         * sysvipc/sys/msg.h: Change return value to ssize_t.
5839         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
5840         * sysvipc/msgrcv.c: Likewise.
5841         * include/sys/msg.h: Likewise.
5843         * grp/initgroups.c (internal_getgrouplist): Remove unnecessary
5844         test introduced in patch for bz #661.
5845         (getgrouplist): Simplify code a bit.  Don't allocate one additional
5846         element for NEWGROUPS.
5848         [BZ #2908]
5849         * stdio-common/printf_fphex.c (__printf_fphex): When rounding up
5850         'f', use '1' as leading digit not '\1'.
5851         * stdio-common/Makefile (tests): Add bug16.
5852         * stdio-common/bug16.c: New file.
5854         [BZ #2914]
5855         * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE
5856         and don't try to open it.  The patch introducing the macro
5857         contained a bug and used the same file name as the new file
5858         instead of using /var/adm/hostid.  Nobody complaint so I'm taking
5859         this out completely.
5861         [BZ #2926]
5862         * assert/assert.h: Move cast to void inside ?: to quiet gcc.
5863         Patch by Jerry James <Jerry.James@usu.edu>.
5865         * rt/Makefile (tests): Add tst-clock2.
5866         * rt/tst-clock2.c: New file.
5868         [BZ #2978]
5869         * resolv/gai_notify.c (__gai_notify_only): Copy memory for thread
5870         function and its parameters and pass it to new thread.
5871         (__gai_notify): Add support for alternative waiting for completion.
5872         * resolv/gai_suspend.c (gai_suspend): Add support for alternative
5873         waiting for completion.
5874         * resolv/getaddrinfo_a.c: Likewise.
5875         * resolv/gai_misc.h (struct waitlist): Don't add cond if alternative
5876         waiting for completion is used.
5877         * resolv/gai_misc.c: Allow overwriting code to start helper thread.
5878         * resolv/gai_cancel.c: Include <gai_misc.h> not "gai_misc.h".
5879         * resolv/gai_error.c: Likewise.
5880         * resolv/gai_sigqueue.c: Likewise.
5882 2006-08-02  Thomas Schwinge  <tschwinge@gnu.org>
5884         * hurd/getdport.c (__getdport): Don't return EBADF; instead set
5885         errno to EBADF and return MACH_PORT_NULL.
5887 2006-06-23  Joseph Myers  <joseph@codesourcery.com>
5889         [BZ #2980]
5890         * posix/Makefile (CFLAGS-waitid.c): Add -fasynchronous-unwind-tables.
5892 2006-08-02  Ulrich Drepper  <drepper@redhat.com>
5894         * elf/dl-addr.c (_dl_addr): If GNU-style hash tables are present,
5895         walk them instead of the symbol table.
5897 2006-08-01  Ulrich Drepper  <drepper@redhat.com>
5899         [BZ #2098]
5900         * nscd/initgrcache.c (addinitgroupsX): Judge successful lookups by
5901         status of NSS calls, not the number of returned entries.
5903         * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,
5904         request_key, keyctl.
5906 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
5908         * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.
5910 2006-07-16  Jeff Bailey  <jbailey@ubuntu.com>
5912         * elf/tst-auditmod1.c: Fix typo in #error.
5914 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
5916         * elf/tst-auditmod1.c: Remove code for unsupported architectures.
5918         * iconvdata/run-iconv-test.sh: Run cmp in C locale.
5920 2006-07-20  Adam Nemet  <anemet@caviumnetworks.com>
5922         * stdlib/test-canon.c (do_test): Close fd before unlinking file so
5923         that the directory is empty even on non-POSIX filesystems.
5925 2006-07-31  Ulrich Drepper  <drepper@redhat.com>
5927         * elf/dl-open.c (dl_open_worker): Add branch prediction.
5929         * nis/nss_compat/compat-grp.c: Avoid unnecessary setgrent calls into
5930         the backend NSS module.  If backend setgrent call failed, don't have
5931         internal_setgrent fail.  Just remember this until it is needed.
5932         * nis/nss_compat/compat-pwd.c: Likewise.
5933         * nis/nss_compat/compat-spwd.c: Likewise.
5935 2006-07-30  Roland McGrath  <roland@redhat.com>
5937         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed.
5938         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed.
5939         * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed.
5940         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed.
5942         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro.
5943         (nanosleep_not_cancel): New macro.
5944         (sigsuspend_not_cancel): new macro.
5945         * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS]
5946         (do_sigsuspend): Define as inline.
5947         (__sigsuspend): Always use do_sigsuspend.
5948         [! NO_CANCELLATION] (__sigsuspend_nocancel): New function.
5949         * include/signal.h: Declare __sigsuspend_nocancel.
5950         * sysdeps/posix/pause.c
5951         [! NO_CANCELLATION] (__pause_nocancel): New function.
5953         * include/unistd.h (__pause_nocancel): Add attribute_hidden.
5954         * include/time.h (__nanosleep_nocancel): Likewise.
5956 2006-07-30  Ulrich Drepper  <drepper@redhat.com>
5958         * locale/programs/localedef.c (add_to_readlist): Rename local
5959         variables to avoid confusion.
5961         * locale/programs/charmap.c (charmap_read): Emit error message if
5962         charmap couldn't be found or read.
5964 2006-07-28  Ulrich Drepper  <drepper@redhat.com>
5966         * sysdeps/unix/sysv/linux/kernel-features.h: Define
5967         __ASSUME_FUTEX_LOCK_PI.
5968         * include/time.h: Declare __nanosleep_nocancel.
5969         * include/unistd.h: Declare __pause_nocancel.
5971         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Use this instead of
5972         LDFLAGS.  Add -lgcc_eh and libc_nonshared (again) to make sure we
5973         get the __stack_chk_fail_local definition when it's needed.
5975 2006-07-26  Ulrich Drepper  <drepper@redhat.com>
5977         * dlfcn/Makefile: Add rules to build and run bug-atexit3.
5978         * dlfcn/bug-atexit3.c: New file.
5979         * dlfcn/bug-atexit3-lib.cc: New file.
5981         * dlfcn/dlmopen.c (dlmopen_doit): Don't allow RTLD_GLOBAL to be
5982         used when the namespace is not the base namespace.
5984 2006-07-26  Gavin Romig-Koch  <gavin@redhat.com>
5986         * stdlib/cxa_atexit.c (__new_exitfn_called): New variable.
5987         (__new_exitfn): Bump it in every successful call.
5988         * stdlib/cxa_finalize.c (__cxa_finalize): If destructor registered
5989         more exit handlers, call them right away.
5990         * stdlib/exit.h: Declare __new_exitfn_called.
5992 2006-07-25  Ulrich Drepper  <drepper@redhat.com>
5994         * stdlib/cxa_finalize.c (__cxa_finalize): Fix race condition when
5995         calling registered handler.
5997         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment.
5998         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
5999         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6000         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
6001         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6002         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6003         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6004         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6006 2006-07-10  Ulrich Drepper  <drepper@redhat.com>
6008         * elf/dl-lookup.c (dl_new_hash): New functions.
6009         (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute
6010         value here.  Compute new-style hash value.  Pass new hash value
6011         and reference to variable with the old value to do_lookup_x.
6012         (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not
6013         old-style hash table.
6014         (_dl_debug_bindings): Pass new hash value and reference to variable
6015         with the old value to do_lookup_x.
6016         * elf/do-lookup.h (do_lookup_x): Accept additional parameter with
6017         new-style hash value and change old-style hash value parameter to
6018         be a reference.  Reoganize functions to determine whether
6019         new-style hash table is available.  Only fall back on old-style
6020         table.  If old-style hash value is needed, compute it here.
6021         * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH
6022         entry.
6023         * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT,
6024         DT_TLSDEC_GOT.  Adjust DT_ADDRNUM.
6025         * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits,
6026         l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero.
6027         * Makeconfig: If linker supports --hash-style option add it to all
6028         linker command lines to build DSOs.
6029         * config.make.in: Define have-hash-style.
6030         * configure.in: Test whether linker supports --hash-style option.
6032         * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const.
6033         * sysdeps/generic/ldsodefs.h: Adjust prototype.
6035 2006-06-27  Ulrich Drepper  <drepper@redhat.com>
6037         * elf/dl-load.c (open_path): Fix test to determine whether DSO is
6038         auditing.
6040         * elf/dl-load.c (_dl_map_object): Try harder to avoid looking at
6041         RPATH of main map twice.
6043 2006-06-22  Ulrich Drepper  <drepper@redhat.com>
6045         * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't
6046         look further, return original strings.
6047         (_nl_find_msg): Do not return found translation if the conversion
6048         failed.  Either signal the string is unusable or that something went
6049         wrong and the original should be used.
6051 2006-06-21  Ulrich Drepper  <drepper@redhat.com>
6053         * string/_strerror.c (__strerror_r): Add __builtin_expect.
6055 2006-06-14  Jakub Jelinek  <jakub@redhat.com>
6057         [BZ #2766]
6058         * misc/insremque.c (insque): Handle prev == NULL.
6059         * misc/Makefile (tests): Add tst-insremque.
6060         * misc/tst-insremque.c: New test.
6062 2006-06-17  Ulrich Drepper  <drepper@redhat.com>
6064         [BZ #2792]
6065         * elf/dl-deps.c (expand_dst): Rename __cnt variable to not
6066         conflict with DL_DST_REQUIRED.
6068 2006-06-16  Ulrich Drepper  <drepper@redhat.com>
6070         * nis/nis_subr.c (nis_getnames): Fix the implementation to better
6071         match what Solaris does.
6073 2006-06-04  Ulrich Drepper  <drepper@redhat.com>
6075         * sysdeps/posix/spawni.c (__spawni): Use local_seteuid and
6076         local_setegid instead of seteuid and setegid.
6077         * sysdeps/generic/local-setxid.h: New file.
6078         * sysdeps/unix/sysv/linux/local-setxid.h: New file.
6080         * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.
6082         * string/Makefile (tests): Add bug-envz1.
6083         * string/bug-envz1.c: New file.
6085 2006-06-02  Jakub Jelinek  <jakub@redhat.com>
6087         * posix/regex_internal.c (re_string_skip_chars): If no character has
6088         been converted at all, set *last_wc to WEOF.  If mbrtowc failed, set wc
6089         to the byte which couldn't be converted.
6090         (re_string_reconstruct): Don't clear valid_raw_len before calling
6091         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
6092         tip_context using re_string_context_at.
6093         * posix/Makefile: Add rules to build and run bug-regex25 test.
6094         * posix/bug-regex25.c: New test.
6096 2006-06-02  Ryan S. Arnold  <rsa@us.ibm.com>
6098         [BZ #2703]
6099         * string/envz.c (envz_strip): Correct erroneously reversed src
6100         and dest parameters to memmove() invocation.
6102 2006-05-30  Jakub Jelinek  <jakub@redhat.com>
6104         * nscd/nscd.h (prune_cache): Add fd argument to prototype.
6105         * nscd/nscd.c (parse_opt): Read response from INVALIDATE request
6106         to make sure the database has been already invalidated.
6107         * nscd/cache.c (prune_cache): Add fd argument.  Write response to fd
6108         after the cache has been invalidated.  Use pthread_mutex_lock rather
6109         than pthread_mutex_trylock if fd != -1.
6110         * nscd/connections.c (invalidate_cache): Add fd argument, write
6111         response to fd if not calling prune_cache, pass fd to prune_cache.
6112         (handle_request): Adjust invalidate_cache caller.
6113         (nscd_run): Pass -1 as fd to prune_cache.
6115 2006-05-30  Ulrich Drepper  <drepper@redhat.com>
6117         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits in
6118         the correct place.
6120 2006-05-29  Ulrich Drepper  <drepper@redhat.com>
6122         * nscd/nscd.h (struct database_dyn): Add prunelock field.
6123         * nscd/cache.c (prune_cache): Take prunelock before starting the
6124         work.  Just return in case it is already taken.
6125         * nscd/connections.c (dbs): Initialize .prunelock.
6127 2006-05-25  Ulrich Drepper  <drepper@redhat.com>
6129         * nis/nis_removemember.c (nis_removemember): Avoid unnecessary
6130         copying.  No need to allocate new array for group members.  Just
6131         move the pointers and update the size.
6133         * nis/nis_addmember.c (nis_addmember): Avoid unnecessary copying.
6134         Avoid memory leak in case realloc fails.  Simplification for
6135         better code generation.
6137         Avoid deprecation warning because of libc_hidden_proto for
6138         inet6_option_alloc.
6139         * inet/inet6_option.c (option_alloc): Renamed from
6140         inet6_option_alloc.  Made static.
6141         (inet6_option_alloc): Now a simple wrapper around option_alloc.
6142         (inet6_option_append): Call option_alloc.
6143         * include/netinet/in.h: Remove libc_hidden_proto for
6144         inet6_option_alloc.
6146         * nis/nis_callback.c (__nis_create_callback): Always call xdr_free
6147         for cleanup when cb!=NULL [Coverity CID 233].
6149 2006-05-24  Ulrich Drepper  <drepper@redhat.com>
6151         [BZ #2693]
6152         * inet/Makefile (routines): Add inet6_opt and inet6_rth.
6153         * inet/Versions (libc, GLIBC_2.5): Add inet6_opt_init,
6154         inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next,
6155         inet6_opt_find, inet6_opt_get_val, inet6_rth_space, inet6_rth_init,
6156         inet6_rth_add, inet6_rth_reverse, inet6_rth_segments,
6157         and inet6_rth_getaddr.
6158         * inet/netinet/ip6.h (struct ip6_rthdr0): Make ip6r0_addr a flexible
6159         array.
6160         * inet/netinet/in.h (struct ip6_mtuinfo): Define.
6161         Mark inet6_option_* interfaces as deprecated.
6162         Declare inet6_opt_init, inet6_opt_append, inet6_opt_finish,
6163         inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val,
6164         inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse,
6165         inet6_rth_segments, and inet6_rth_getaddr.
6166         * inet/inet6_opt.c: New file.
6167         * inet/inet6_rth.c: New file.
6169         * inet/netinet/icmp6.h: Pretty printing.
6171         [BZ #2683]
6172         * elf/dl-addr.c (_dl_addr): Don't match undefined references.
6174 2006-05-23  Ulrich Drepper  <drepper@redhat.com>
6176         * nis/nis_lookup.c (nis_lookup): Use __prepare_niscall instead of
6177         doing it all here.  When server does not know the answer do not
6178         fail immediate, try parent first.
6180         * nis/nis_domain_of_r.c (nis_domain_of_r): Add missing buffer
6181         overflow test.
6183 2006-05-20  Ulrich Drepper  <drepper@redhat.com>
6185         * nis/nis_call.c (__prepare_niscall): New function.  Split out
6186         from __do_niscall.
6187         * nis/nis_table.c (__create_ib_request): Renamed from create_ib_request
6188         and exported.
6189         (__follow_path): New function.  Split out from nis_list.
6190         * nis/nis_xdr.h: Add libnsl_hidden_proto for _xdr_ib_request and
6191         _xdr_nis_result.
6192         * nis/nis_xdr.c: Add libnsl_hidden_def for _xdr_ib_request and
6193         _xdr_nis_result.
6194         * nis/libnsl.h: Declare __prepare_niscall, __create_ib_request,
6195         and __follow_path.
6196         * nis/Versions: Export __prepare_niscall, __create_ib_request,
6197         __follow_path, __do_niscall3, _xdr_ib_request, and _xdr_nis_result
6198         from libnsl for version GLIBC_PRIVATE.
6199         * nis/nisplus-parser.h: Remove _nss_nisplus_parse_pwent_chk.
6200         Remove entry parameter from _nss_nisplus_parse_pwent and
6201         _nss_nisplus_parse_grent.
6202         * nis/nss_nisplus/nisplus-parser.c: Likewise.
6203         * nis/nss_nisplus/nisplus-pwd.c: Remove support for SETENT_BATCH_READ
6204         again.  Rewrite getpwent handling to not use nis_first_entry and
6205         nis_next_entry.  Roll out own niscall handling.
6206         * nis/nss_nisplus/nisplus-grp.c: Likewise.
6208         * sunrpc/xdr_rec.c: Fix typo in comment.
6210 2006-05-19  Ulrich Drepper  <drepper@redhat.com>
6212         * nis/nis_call.c (__do_niscall3): Avoid code duplication in error
6213         handling.
6215         * nis/nis_callback.c (internal_nis_do_callback): Don't use malloc
6216         to allocate memory for my_pollfd.  Better initialization of
6217         cb_is_running.  Use TEMP_FAILURE_RETRY.
6219         * malloc/memusage.sh (memusageso): Add quotes.
6220         (memusagestat): Likewise.
6221         * debug/xtrace.sh (pcprofileso): Likewise.
6222         (pcprofiledump): Likewise.
6223         * debug/Makefile ($(objpfx)xtrace): Use $LIB in SLIBDIR
6224         replacement.
6225         * malloc/Makefile ($(objpfx)memusage): Likewise.
6227         * nis/nis_callback.c (__nis_create_callback): Calls to
6228         svcudp_bufcreate and svctcp_create can fail.  Free ->xprt if
6229         asprintf call fails.
6231         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sure
6232         no uninitialized memory is passed to sendto.
6234 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
6236         * nis/nis_callback.c (__nis_create_callback): Use asprinf instead
6237         of snprintf+strdup.  Handle OOM.
6238         * nis/nis_callback.c (__nis_create_callback): Allocate cb and
6239         cb->serv together.  Remove now obsolete free calls.
6240         (__nis_destroy_callback): Remove now obsolete free call.
6242 2006-05-18  David Woodhouse  <dwmw2@redhat.com>
6244         * sysdeps/posix/getaddrinfo.c: Add unique labels to the default
6245         RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local
6246         and ULA respectively). Set precedence for IPv4 address to 10 as
6247         defined in RFC3484 for preferring IPv6.
6248         * posix/gai.conf: Update to match the new default tables.
6250 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
6252         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
6253         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
6254         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
6255         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
6257         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
6258         Removed.
6259         (init_nss_interface): Remove initialization of these variables.
6261 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
6263         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
6264         nis_free_directory forward to avoid duplication.
6266 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
6268         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
6269         rec_dirsearch returning NULL.
6270         (first_shoot): Handle __nis_finddirectory returning NULL.
6271         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
6273         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
6274         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
6276 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
6278         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
6279         pid changed.
6281 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
6283         * include/rpc/pmap_prot.h: Mark all functions as hidden.
6285         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
6286         * nscd/nscd_getgr_r.c: Likewise.
6288         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
6290         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
6291         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
6293         * stdlib/longlong.h (__clz_tab): Mark as hidden.
6295         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
6297         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
6299         * include/rpc/auth.h: Mark xdr_des_block_internal and
6300         xdr_opaque_auth_internal as hidden.
6302         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
6303         hidden.
6305         * include/rpc/xdr.h: Mark all _internal functions as hidden.
6307         * misc/getusershell.c (okshells): Don't use static initializers,
6308         do it dynamically.
6310         * stdlib/fmtmsg.c (keywords): Change type of len element to
6311         uint32_t to not waste space on 64bit machines.
6313         * locale/setlocale.c: Change _nl_category_names into a string.
6314         Add new _nl_category_name_idxs.  Change all users.
6315         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
6316         Declare _nl_category_name_idxs.
6317         * locale/findlocale.c: Adjust for _nl_category_names change.
6318         * locale/loadlocale.c: Likewise.
6319         * locale/newlocale.c: Likewise.
6320         * intl/dcigettext.c: Likewise.
6322         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
6323         (add_alias2): ...here.  New function.
6324         (__gconv_read_conf): Simplify builtin alias handling.
6325         (builtin_aliases): Convert to string to avoid relocations.
6326         * iconv/gconv_builtin.h: Add comment about correct formatting.
6328 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
6330         * resolv/res_debug.c (loc_ntoa): Make error const.
6332 2006-05-14  Andreas Schwab  <schwab@suse.de>
6334         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
6336 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
6338         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
6339         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
6340         sizeof (cpu_set_t).
6342 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
6344         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
6346         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
6348         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
6349         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
6351         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
6352         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
6354         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
6355         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
6356         xdr_cback_data.
6358         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
6359         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
6360         xdr_ypupdate_args.
6362         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
6363         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
6365         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
6366         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
6368         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
6369         * include/rpcsvc/nis_callback.h: New file.
6371         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
6372         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
6374         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
6375         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
6377         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
6378         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
6380         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
6381         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
6383         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
6384         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
6385         xdr_ypdelete_args.
6387         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
6388         __BEGIN_DECLS and __END_DECLS, the header is not installed.
6390         * nis/nis_error.c: Remove table of strings.  Use position
6391         independent mechanism.
6392         * nis/nis_error.h: New file.
6394 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
6396         * locale/programs/ld-time.c (time_finish): If wide era name or
6397         format aren't provided, set both wname and wformat to L"".
6399 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
6401         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
6402         results if the call was succesful.
6404         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
6406         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
6407         as hidden.
6409 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
6411         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
6413 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
6415         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
6416         caller makes sure this is not the case.
6417         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
6419 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
6421         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
6422         calls.
6424         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
6425         [Coverity CID 229, 230]
6427         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
6428         DGETTEXT calls.
6429         (hol_help): Likewise.  [Coverity CID 226, 227]
6431         * string/argz-replace.c (__argz_replace): Unconditionally call
6432         free on SRC.  [Coverity CID 225]
6434         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
6435         the return value of __nis_default_owner and __nis_default_group,
6436         it has been especially allocated.  [Coverity CID 224]
6438         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
6439         searchgroup and searchowner.  Significantly simplified.
6440         (__nis_default_owner): Remove duplication.  Do not locally copy the
6441         string before duplicating it.
6442         (__nis_default_group): Likewise.
6444         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
6445         we must clear the variable before calling __nisfind_server.
6447         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
6448         nis_getnames.  [Coverity CID 223]
6450         * locale/programs/locfile.c (locfile_read): Use alloca instead of
6451         xmalloc to allocate local repertoire name.  [Coverity CID 222]
6453         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
6454         allocate memory for the input to add_bytes.  [Coverity CID 221]
6456         * posix/wordexp.c (w_addword): Free word if realloc fails and it
6457         was allocated here.  [Coverity CID 219, 220]
6459         * posix/getconf.c (print_all): Free confstr data after printing.
6460         [Coverity CID 218]
6462         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
6463         list allocation fails.  [Coverity CID 215]
6465         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
6466         [Coverity CID 213]
6468         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
6469         string is NULL.  [Coverity CID 212]
6470         * argp/Makefile: Add rules to build and run bug-argp1.
6471         * argp/bug-argp1.c: New file.
6473         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
6474         end of string.
6475         * stdlib/canonicalize.c (__realpath): Likewise.
6477         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
6478         pointer.  [Coverity CID 206]
6480         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
6481         in statically linked code.
6482         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
6483         statically built code, be prepared to have no link map.
6484         [Coverity CID 205]
6486         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
6487         dgettext calls. [Coverity CID 204]
6489         * argp/argp-help.c (struct uparams): Remove valid member.  Change
6490         the one user.
6491         (uparam_names): Reduce size.  Avoid relative relocations.
6492         Moved to read-only segment.
6493         (fill_in_uparams): Update for new layout.
6495         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
6496         assumed to always be != NULL. [Coverity CID 202]
6498         * argp/argp-help.c (hol_entry_help): Remove some dead code
6499         [Coverity CID 200].
6501         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
6502         away a few more unconditional yperr2nss calls.
6503         (_nss_nis_getservbyname_r): Likewise.
6505 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
6507         * sysdeps/generic/ldsodefs.h: Remove support for non-core
6508         architectures.
6510         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
6511         that unused memory passed to sendto is nevertheless initialized.
6513         [BZ #2499]
6514         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
6515         possibly unaligned memory accesses.
6517         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
6518         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
6519         and __putlong respectively.  Correct buffer overflow check for
6520         NS_NOTIFY_OP.
6522         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
6524         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
6525         (send_dg): Rewrite error handling to be more compact and avoid
6526         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
6528         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
6530         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
6531         instead of ns_get16.
6532         (res_queriesmatch): Likewise.  Minor optimization.
6534         [BZ #2499]
6535         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
6536         __libc_res_nsend might reallocate the buffer for the answer.  In
6537         this case we have to reload the HP pointer.
6539 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
6541         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
6542         some branch prediction hints.
6544         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
6545         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
6546         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
6547         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
6548         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6549         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
6550         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
6551         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
6553 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6555         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
6556         by a GOT relocation to make Scrt1.o position independent.
6557         * sysdeps/s390/s390-64/elf/start.S: Likewise.
6559         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
6560         six system call parameters.
6561         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
6563 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
6565         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
6566         malloc&bzero.
6568         * sunrpc/svc_udp.c (BZERO): Remove definition.
6569         (CALLOC): Define.
6570         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
6572         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
6573         (des_SPtrans): Use uint32_t type.
6574         (des_skb): Likewise.
6576         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
6578 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
6580         [BZ #2509]
6581         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
6582         on 32-bit arches.
6584 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
6586         * locale/programs/ld-address.c (address_finish): Fix one more
6587         place where the iso639 array might be accessed beyond the limits.
6589 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
6591         * nis/nis_table.c (nis_list): Avoid clearing res twice before
6592         filling it for the first time.
6594         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
6595         Adjust all callers.
6596         Free res object content before returning.
6598         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
6600         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
6601         client->cl_auth.
6603         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
6604         cleanup for initial thread, just the free call on TVP.
6606         * nscd/gai.c (__getline): Define.
6609 See ChangeLog.16 for earlier changes.