Update.
[glibc.git] / ChangeLog
blobf809ef8c1eb1f67be2ffea386c381af5c88c5661
1 2004-08-13  Ulrich Drepper  <drepper@redhat.com>
3         * nis/nss_nis/nis-netgrp.c: Remove locking by using data in struct
4         __netgrent object passed in instead of global variables.
5         Optimize.
6         * nis/nss_nisplus/nisplus-netgrp.c: Remove locking by using data
7         in struct __netgrent object passed in instead of global variables.
8         * inet/netgroup.h (struct __netgrent): Add service_user field.
9         Move cursor in anonymous union, add new field location to that
10         union.
11         * inet/getnetgrent_r.c: Extensive rewrite to really enable
12         concurrent uset of set/get/endnetgrent and innetgr.
13         Reported by Chuck Simmons.
15         * inet/netgroup.h (struct name_list): Replace name pointer with
16         zero-sized array.
17         * inet/getnetgrent_r.c: Adjust code for change in name_list
18         layout.  Numerous strdup and free calls removed.
20         * elf/sprof.c (read_symbols): When comparing aliases, prefer
21         non-hidden over hidden symbols and strong over weak symbols
22         if both don't start with '_'.
24         * malloc/malloc.c: Use strong_alias instead of weak_alias wherever
25         possible.
27 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
29         * sysdeps/unix/sysv/linux/bits/resource.h: Define non-standard
30         RUSAGE_ enums as __RUSAGE_ and adjust macros accordingly.
31         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
32         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
33         * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
34         Define non-standard RLIMIT_ enums as __RLIMIT_ and adjust macros
35         accordingly.
37 2004-08-11  Andreas Schwab  <schwab@suse.de>
39         * resolv/res_libc.c: Move definition of __res_initstamp ...
40         * resolv/res_init.c: ... here.
42 2004-08-10  GOTO Masanori  <gotom@debian.or.jp>
44         * locale/C-time.c: Change default ERA value from NULL to "".
45         * locale/tst-C-locale.c: Add test case for ERA keywords.
47 2004-08-12  Ulrich Drepper  <drepper@redhat.com>
49         * sysdeps/unix/sysv/linux/bits/resource.h: Define non-standard
50         RLIMIT__ enums as __RLIMIT_ and adjust macros accordingly.
51         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
52         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
54 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
56         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_SIGPENDING,
57         RLIMIT_MSGQUEUE): Add.
58         (RLIMIT_NLIMITS, RLIM_NLIMITS): Adjust.
59         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIMIT_SIGPENDING,
60         RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
61         (RLIM_NLIMITS): Adjust.
62         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIMIT_SIGPENDING,
63         RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
64         (RLIM_NLIMITS): Adjust.
65         * sysdeps/unix/sysv/linux/mips/bits/resource.h (RLIMIT_SIGPENDING,
66         RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
67         (RLIM_NLIMITS): Adjust.
69 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
71         * resolv/res_query.c (__libc_res_nsearch): Protect the debugging
72         printf with #ifdef DEBUG and RES_DEBUG check.
74         * sysdeps/unix/sysv/linux/bits/shm.h: Move __END_DECLS after
75         __USE_MISC #endif.
76         * sysdeps/generic/bits/shm.h: Add __BEGIN_DECLS for __getpagesize
77         declaration.
78         * sysdeps/gnu/bits/shm.h: Likewise.
79         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
80         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
81         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
82         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
83         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
85 2004-08-12  Ulrich Drepper  <drepper@redhat.com>
87         * po/ca.po: Update from translation team.
89 2004-08-11  Ulrich Drepper  <drepper@redhat.com>
91         * sysdeps/unix/sysv/linux/bits/shm.h: Add __BEGIN_DECLS for
92         __getpagesize declaration.
94 2004-08-11  Roland McGrath  <roland@redhat.com>
96         * configure.in (libc_cv_cpp_asm_debuginfo): Add missing braces around
97         commands inside &&.
98         Reported by Andreas Schwab <schwab@suse.de>.
99         * configure: Regenerated.
101         * posix/tst-waitid.c (do_test): Ignore SIGCHLD before cleanup SIGKILL.
103 2004-08-11  Ulrich Drepper  <drepper@redhat.com>
105         * time/tzset.c (tzset_internal): Add new parameter which is
106         nonzero if called through tzset.  Use TZDEFAULT name including
107         name comparison if the new parameter is zero.  This means implicit
108         tzset calls will not cause files to be opened and read by tzfile.c
109         all the time.
111 2004-08-11  Jakub Jelinek  <jakub@redhat.com>
113         * rt/tst-timer2.c (do_test): If timer_create fails, just continue.
114         * rt/tst-timer4.c (do_test): If one of the timer_create calls fails,
115         return 1 immediately.
117         * time/tzfile.c (__tzfile_read): Free transitions only if it will
118         not be reused.
120         * sysdeps/ieee754/dbl-64/mpa.c: Include <sys/param.h>.
121         * sysdeps/ieee754/dbl-64/mpa.h (MAX, MIN): Macros removed.
123         * stdio-common/tst-popen.c: Include <string.h>.
125         * resolv/res_send.c (__libc_res_nsend): Only define TMPBUF #if DEBUG.
127         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Remove noreturn
128         attribute.  Return NULL instead of calling pthread_exit at the end.
130 2004-08-11  Roland McGrath  <roland@redhat.com>
132         * iconvdata/testdata/ISO-2022-JP-3: Regenerated.
134 2004-08-10  Alfred M. Szmidt  <ams@kemisten.nu>
136         * sysdeps/generic/bits/in.h (struct ip_mreq): Remove definition.
138 2004-08-10  Jakub Jelinek  <jakub@redhat.com>
140         * libio/bits/stdio.h (fread_unlocked): Cast 0 to (size_t).
141         (fwrite_unlocked): When checking if size * n is <= 8, cast each
142         argument to size_t individually.  Cast n to (void) instead of
143         (size_t), surround with (), return (size_t) 0 if one of n or size
144         is 0.  [BZ #316]
145         * stdio-common/Makefile (tests): Add tst-unlockedio.
146         * stdio-common/tst-unlockedio.c: New test.
148 2004-08-09  Roland McGrath  <roland@frob.com>
150         * manual/install.texi (Supported Configurations): Replace bug-glibc
151         mention with web URL.
152         * INSTALL: Regenerated.
153         * locale/iso-3166.def: Likewise, in comment.
154         * locale/iso-4217.def: Likewise.
155         * locale/iso-639.def: Likewise.
156         * posix/cpio.h: Remove bug reporting comment.
158 2004-08-09  Ulrich Drepper  <drepper@redhat.com>
160         * libio/bits/stdio.h (fread_unlocked): Add a couple of (size_t)
161         casts to handle funny calls with floating point argument values
162         and signed values correctly and without warning.
163         (fwrite_unlocked): Likewise.  [BZ #309]
165         * malloc/memusage.c (me): Use creat64, not creat.
166         * malloc/memusagestat.c: Fix handling of very large sizes.  [BZ #285]
167         Patch by Guy Maor <guymaor@yahoo.com>.
169         * elf/ldconfig.c (options): Mark parameter option names as
170         translatable.  [BZ #253]  Patch by Jakub Bogusz <qboosh@pld-linux.org>.
172         * iconv/gconv_charset.h (strip): Also allow comma which is what is
173         used to separate options.  [BZ #194]
175 2004-08-09  Roland McGrath  <roland@redhat.com>
177         * FAQ.in: Refer to web pages instead of bug-glibc.
178         * FAQ: Regenerated.
180         * time/strptime_l.c: #include <stdbool.h>, `bool' used in last change.
182 2004-08-09  Ulrich Drepper  <drepper@redhat.com>
184         * time/tzset.c (tzset_internal): If TZ is not set do not compare
185         old and new tz value since it might be /etc/localtime in both
186         cases although the file changed.  [BZ #154]
187         Patch by Christian Franke <franke@computer.org>.
189         * time/tzfile.c (__tzfile_read): Determine dev/ino of file.
190         Compare with values of previously opened file.  Don't do anything
191         is they match.
193 2004-08-08  Ulrich Drepper  <drepper@redhat.com>
195         * elf/dl-load.c (_dl_map_object): If __RTLD_CALLMAP flag is set,
196         reset loader before the actual loading.
197         * elf/dl-open.c (dl_open_worker): If file name contains no path
198         element determine map of caller.  Pass caller map in this case to
199         _dl_map_object.  Set __RTLD_CALLMAP in mode.
200         * include/dlfcn.h (__RTLD_CALLMAP): Define.  [BZ #116]
201         Patch by Greg Wolodkin <greg@mathworks.com>.
203         * misc/syslog.c (openlog_internal): Always try both UDP and TCP.
204         [BZ #108]  Patch mainly by Bjorn Andersson <bjorn@iki.fi>.
206         * configure.in: Also recognize i786. [BZ #106]
207         Patch by <pluto@pld-linux.org>.
209         * resolv/res_query.c (__libc_res_nsearch): Correctly test whether
210         name contains any dots. [BZ #95]
212         * resolv/res_send.c: Compiling with DEBUG defined works again.
213         * resolv/gethnamaddr.c (dprintf): Renamed to Dprintf.  Adjust all
214         callers.
216         * resolv/tst-leaks.c (TIMEOUT): Define so that if no server is
217         available the process is not killed. [BZ #41]
219         * intl/tst-gettext.c (main): Improve some messages. [BZ #33]
221         * time/strptime_l.c (__strptime_internal): Fix handling of %Ey.
222         [BZ #28]
224         * po/sv.po: Update from translation team.
226 2004-08-07  Ulrich Drepper  <drepper@redhat.com>
228         * inet/netinet/in.h: Add more const to the setipv4soucefilter,
229         getsourcefilter, and setsourcefilter parameter list.
230         * sysdeps/generic/setipv4sourcefilter.c: Likewise.
231         * sysdeps/generic/getsourcefilter.c: Likewise.
232         * sysdeps/generic/setsourcefilter.c: Likewise.
233         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
234         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
235         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
237         * po/tr.po: Update from translation team.
239 2004-08-06  Ulrich Drepper  <drepper@redhat.com>
241         * iconvdata/jisx0213.h (jisx0213_added_in_2004_p): Fix typo.
242         Reported by Paolo Bonzini.
244 2004-08-06  Jakub Jelinek  <jakub@redhat.com>
246         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add
247         always_inline.
248         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_runtime_setup,
249         elf_machine_fixup_plt, elf_machine_plt_conflict): Likewise.
251         * sysdeps/unix/sysv/linux/netatalk/at.h: Include bits/sockaddr.h
252         before including linux/atalk.h.
254         * resolv/res_libc.c: Include atomic.h.
256         * intl/finddomain.c (free_mem): Rename to...
257         (_nl_finddomain_subfreeres): ... this.  Add
258         __libc_freeres_fn_section.
259         * intl/loadmsgcat.c (_nl_unload_domain): Add
260         __libc_freeres_fn_section.
261         * intl/gettextP.h (_nl_unload_domain): Move into #ifdef _LIBC.
262         Add attribute_hidden.
263         (_nl_findomain_subfreeres): New prototype.
264         * iconv/gconv_db.c (free_mem): Call _nl_findomain_subfreeres.
266 2004-07-30  Guido Guenther  <agx@sigxcpu.org>
268         * nss/getent.c (passwd_keys): Use strtoul instead of isdigit to
269         test if the key is numeric or not.
270         (group_keys): Likewise.
272 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
274         * inet/netinet/in.h: Define struct ip_msfilter, IP_MSFILTER_SIZE,
275         struct group_filter, and GROUP_FILTER_SIZE.
276         * include/sys/socket.h: Declare __getsockopt.
277         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: New file.
278         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: New file.
279         * sysdeps/unix/sysv/linux/setsourcefilter.c: New file.
280         * sysdeps/unix/sysv/linux/getsourcefilter.c: New file. [BZ #211]
282         * po/ko.po: Update from translation team.
284 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
286         * hesiod/hesiod.c (__hesiod_res_get): Use calloc instead of malloc +
287         memset.
288         (__hesiod_res_set): Free nsaddrs.
290         * include/resolv.h (__res_maybe_init): Add prototype.
291         * resolv/resolv.h (struct __res_state): Add _u._ext.initstamp field.
292         * resolv/Versions (libc): Add __res_maybe_init@@GLIBC_PRIVATE.
293         * resolv/res_libc.c (__res_initstamp, lock): New variables.
294         (res_init): Increase __res_initstamp.
295         (__res_maybe_init): New function.
296         * resolv/res_init.c (__res_vinit): Initialize _u._ext.initstamp.
297         * hesiod/hesiod.c (__hesiod_res_get): Use __res_maybe_init instead
298         of RES_INIT check and {res_ninit,__res_ninit,res_init} call.
299         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
300         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
301         _nss_dns_gethostbyaddr_r): Likewise.
302         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
303         _nss_dns_getnetbyaddr_r): Likewise.
304         * resolv/gethnamaddr.c (gethostbyname, gethostbyname2,
305         gethostbyaddr): Likewise.
306         * resolv/res_data.c (fp_nquery, res_mkquery, res_mkupdate,
307         res_isourserver, res_sendsigned, res_update, res_search,
308         res_querydomain): Likewise.
309         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Likewise.
310         * nss/digits_dots.c (__nss_hostname_digits_dots): Likewise.
311         * nss/getnssent_r.c (__nss_setent, __nss_endent, __nss_getent_r):
312         Likewise.
314 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
316         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set ai_family for
317         V4-mapped IPv6 addresses and req->ai_family==AF_INET.
318         Reported by A. Guru <a.guru@sympatico.ca>.
320         * po/sv.po: Update from translation team.
321         * po/sk.po: Likewise.
322         * po/pl.po: Likewise.
324 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
325             Ulrich Drepper  <drepper@redhat.com>
327         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Don't read more input
328         characters than necessary.
330 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
332         * wcsmbs/Makefile (tests): Add tst-mbsrtowcs.
333         * wcsmbs/tst-mbsrtowcs.c: New file.
335         * po/fr.po: Update from translation team.
337 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
339         * resolv/inet_pton.c (inet_pton4): Disallow octal numbers.  Reported
340         by A. Guru <a.guru@sympatico.ca>.  [BZ #295]
342 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
344         * po/nl.po: Update from translation team.
346         * sysdeps/posix/getaddrinfo.c (gaih_inet): Recognize all the IPv4
347         numeric address formats inet_addr knows.
348         (getaddrinfo): Allow AI_NUMERICSERV flag.
349         If neither IPv4 nor IPv6 interface is present we cannot make any
350         decision for AI_ADDRCONFIG.  Fail if AI_NUMERICSERV is set and the
351         string is not just a number.  Remove useless freeaddrinfo call.
352         * resolv/netdb.h (AI_NUMERICSERV): Define.
353         Based on a patch by a.guru@sympatico.ca.
355 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
357         * stdlib/strfmon_l.c (__vstrfmon_l): Memset whole info structure
358         instead of trying to initialize some, but not all, fields one by
359         one.
360         * stdio-common/printf_size.c (printf_size): Initialize fb_info
361         structure with *info instead of trying to initialize some, but not
362         all, fields from it.
364         * nscd/connections.c (handle_request): Check if req->type is in
365         LASTDBREQ .. LASTREQ range instead of req.
367         * locale/programs/linereader.c (lr_create): Initialize
368         lr->return_widestr to 0.
370         * elf/dl-close.c (free_slotinfo): Add __libc_freeres_fn_section.
371         (free_mem): Call free_slotinfo just once.
373         * stdio-common/tst-fmemopen.c (main): Check for MAP_FAILED instead
374         of NULL.
376         * locale/localeinfo.h (_nl_locale_subfreeres): New prototype.
377         * locale/setlocale.c (free_category): Add __libc_freeres_fn_section.
378         (free_mem): Rename to _nl_locale_subfreeres.
379         * iconv/gconv_db.c: Include locale/localeinfo.h.
380         (free_derivation, free_modules_db): Add __libc_freeres_fn_section.
381         (free_mem): Call _nl_locale_subfreeres.
382         * iconv/gconv_dl.c (do_release_all): Add __libc_freeres_fn_section.
384 2004-08-04  Roland McGrath  <roland@frob.com>
386         * Makeconfig ($(common-objpfx)config.status):
387         Fix typo: $(add_ons) -> $(add-ons).
388         (Makeconfig-add-on): New variable.  When doing $(sysdep-makeconfigs)
389         include, use black magic to get it set to an add-on's name during the
390         include of the add-on's Makeconfig.
392         * configure.in: Use variable name `libc_add_on' when sourcing add-on
393         configure fragments, so they can refer to this.
394         * configure: Regenerated.
396 2004-08-04  Roland McGrath  <roland@redhat.com>
398         * posix/tst-waitid.c (test_child): Sleep a second before stopping.
399         (do_test): Bump sleep to three seconds.
400         (sigchld, check_sigchld): New functions.
401         (do_test): Handle SIGCHLD and check for getting the right details.
403         * posix/tst-waitid.c (do_test): Kill the child process when bailing
404         out early on some failure.
405         [WCONTINUED]: Test WCONTINUED functionality.
407 2004-08-03  Ulrich Drepper  <drepper@redhat.com>
409         * nscd/connections.c (handle_request): Print more descriptive
410         message for invalid request types.
412 2004-08-02  Jakub Jelinek  <jakub@redhat.com>
414         * iconvdata/ibm932.c (BODY): Avoid binary search for ch >= 0xffff.
415         Always treat high as highest number in range + 1.
416         * iconvdata/ibm943.c (BODY): Likewise.
418 2004-07-31  Bruno Haible  <bruno@clisp.org>
420         * iconvdata/JISX0213.TXT: Updated to JISX0213 plane 1 version 2004.
421         * iconvdata/jisx0213.c (__jisx0213_to_ucs_main,
422         __jisx0213_to_ucs_pagestart, __jisx0213_from_ucs_level1,
423         __jisx0213_from_ucs_level2): Regenerated.
424         * iconvdata/jisx0213.h (jisx0213_added_in_2004_p): New function.
425         * iconvdata/iso-2022-jp-3.c (JISX0213_1_2000_set): Renamed from
426         JISX0213_1_set.
427         (JISX0213_1_2004_set): New enum value.
428         (BODY for FROM_LOOP): Treat ESC $ ( Q like ESC $ ( O.
429         (BODY for TO_LOOP): For JISX 0213 plane 1 characters, emit ESC $ ( O
430         when possible, ESC $ ( Q when needed.
431         * iconvdata/testdata/EUC-JISX0213: Add the 10 new characters.
432         * iconvdata/testdata/EUC-JISX0213..UTF8: Update.
433         * iconvdata/testdata/SHIFT_JISX0213: Add the 10 new characters.
434         * iconvdata/testdata/SHIFT_JISX0213..UTF8: Update.
435         * iconvdata/testdata/ISO-2022-JP-3: Add the 10 new JISX0213 characters.
436         * iconvdata/testdata/ISO-2022-JP-3..UTF8: Update.
438 2004-07-22  Bruno Haible  <bruno@clisp.org>
440         * iconvdata/gconv-modules (ISO-8859-7): Add alias ISO_8859-7:2003.
442 2004-07-29  David S. Miller  <davem@redhat.com>
444         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy): Optimize
445         better for smaller than 256 byte copies.  Also, use only one
446         unrolled loop instead of two for the large copy case.
448 2004-07-30  Richard Henderson  <rth@redhat.com>
450         * sysdeps/alpha/divq.S: Save t3 before it gets clobbered.
451         * sysdeps/alpha/remq.S: Likewise.
452         * sysdeps/alpha/div.S, sysdeps/alpha/ldiv.S: Rewrite with the
453         new division algorithms in divl.S and divq.S respectively.
455 2004-07-28  GOTO Masanori  <gotom@debian.or.jp>
457         * timezone/asia: Update from tzdata2004b.
458         * timezone/backward: Likewise.
459         * timezone/europe: Likewise.
460         * timezone/iso3166.tab: Likewise.
461         * timezone/leapseconds: Likewise.
462         * timezone/northamerica: Likewise.
463         * timezone/southamerica: Likewise.
464         * timezone/zone.tab: Likewise.
466         * timezone/private.h: Update from tzcode2004b.
467         * timezone/zic.c: Likewise.
469 2004-07-27  Ulrich Drepper  <drepper@redhat.com>
471         * nscd/grpcache.c (cache_addgr): If necessary, add entry also
472         under the name the user provided.
473         * nscd/pwdcache.c (cache_addpw): Likewise.
475 2004-07-26  Roland McGrath  <roland@redhat.com>
477         * sysdeps/posix/waitid.c [WEXITED]: Clear WEXITED bit in OPTIONS for
478         call to __waitpid.
480 2004-07-26  Ulrich Drepper  <drepper@redhat.com>
482         * nscd/hstcache.c (cache_addhst): Fix two scenarios which lead to
483         memory leaks.
485         * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Assign pointer for
486         new buffer at the right time.
487         Reported by Jakub Bogusz <qboosh@pld-linux.org>.
489 2004-07-25  Ulrich Drepper  <drepper@redhat.com>
491         * inet/Versions [libc, GLIBC_2.3.4]: Add getipv4sourcefilter,
492         getsourcefilter, setipv4sourcefilter, and setsourcefilter.
493         * inet/Makefile (routines): Likewise.
494         * inet/netinet/in.h: Add prototypes for getipv4sourcefilter,
495         getsourcefilter, setipv4sourcefilter, and setsourcefilter.
496         * sysdeps/generic/getipv4sourcefilter.c: New file.
497         * sysdeps/generic/setipv4sourcefilter.c: New file.
498         * sysdeps/generic/getsourcefilter.c: New file.
499         * sysdeps/generic/setsourcefilter.c: New file.
501 2004-07-17  Steven Munroe  <sjmunroe@us.ibm.com>
503         * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling
504         for POWER4 machines.
506 2004-07-21  Jakub Jelinek  <jakub@redhat.com>
508         [BZ #274]
509         * stdlib/strtod_l.c (INTERNAL (__STRTOF)): Fix used >=
510         BITS_PER_MP_LIMB shifting up.
511         * stdlib/tst-strtod.c (main): Add new tests.
513 2004-07-23  Jakub Jelinek  <jakub@redhat.com>
515         [BZ #282]
516         * libio/iopopen.c (_IO_new_popen): Use _IO_init instead of
517         _IO_no_init.  Remove wd from struct locked_FILE.
518         (_IO_wproc_jumps): Remove.
519         Reported by Andrew Josey <a.josey@opengroup.org>.
520         * stdio-common/Makefile (tests): Add tst-popen.
521         * stdio-common/tst-popen.c: New test.
523 2004-07-23  Ulrich Drepper  <drepper@redhat.com>
525         * posix/bits/posix1_lim.h: Fix values for _POSIX_CHILD_MAX and
526         _POSIX_OPEN_MAX.  Add _POSIX_HOST_NAME_MAX, _POSIX_SYMLINK_MAX,
527         _POSIX_SYMLOOP_MAX, and _POSIX_RE_DUP_MAX.
528         Reported by Andrew Josey.
530         * include/features.h: Document _POSIX_C_SOURCE == 200112L.
532         * grp/grp.h: Define gid_t if __USE_XOPEN2K is defined.
533         * pwd/pwd.h: Define uid_t and gid_t if __USE_XOPEN2K is defined.
534         * io/sys/stat.h: Define dev_t, gid_t, ino_t, mode_t, nlink_t,
535         off_t, time_t, and uid_t if __USE_XOPEN2K is defined.
536         * signal/signal.h: Define pid_t if __USE_XOPEN2K is defined.
537         * posix/unistd.h: Define gid_t, off_t, pid_t, uid_t, and
538         useconds_t if __USE_XOPEN2K is defined.
539         * io/utime.h: Define time_t if __USE_XOPEN2K is defined.
540         * libio/stdio.h: Declare fseeko and ftello if __USE_XOPEN2K is defined.
542 2004-07-19  Thorsten Kukuk  <kukuk@suse.de>
544         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
545         allocate memory for large temporary variables with alloca.
547 2004-07-22  Ulrich Drepper  <drepper@redhat.com>
549         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Compatibility
550         code must have version GLIBC_2.0.  Patch by Dwayne McConnell.
552         * nscd/nscd_getgr_r.c (nscd_getgr_r): Avoid read call with NULL
553         pointer and zero length.
555 2004-07-21  Ulrich Drepper  <drepper@redhat.com>
557         * nscd/cache.c (prune_cache): Print correct list when debugging.
559 2004-07-21  Jakub Jelinek  <jakub@redhat.com>
561         * resolv/res_libc.c (res_init): If RES_INIT is set and
562         _res.nscount > 0, call __res_nclose and free nsaddrs.
563         * resolv/Makefile: Add rules to build and run tst-leaks2.
564         * resolv/tst-leaks2.c: New test.
566 2004-07-21  Ulrich Drepper  <drepper@redhat.com>
568         * intl/libintl.h: Don't define macros for C++.
569         Patch by Goto Masanori.
571 2004-07-22  GOTO Masanori  <gotom@debian.or.jp>
573         [BZ #276]
574         * include/arpa/inet.h: Change inet_aton type from in_addr_t to int.
575         * inet/arpa/inet.h: Likewise.
576         * resolv/inet_addr.c: Likewise.
578 2004-07-21  Alexandre Oliva  <aoliva@redhat.com>
580         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Add semtimedop.
582 2004-07-20  Roland McGrath  <roland@redhat.com>
584         * configure.in (add_ons): Substitute this.  Move $add_ons handling
585         after AC_CANONICAL_HOST and default setting of $machine et al.
586         Don't set $subdirs from $add_ons.
587         Instead, source add-on/configure fragments early on.
588         (base_machine): If it's already set, don't set it based on $machine.
589         (libc_config_ok): New variable, set to no.  If an add-on fragment sets
590         it to yes, skip the  tuple sanity check as if --enable-hacker-mode.
591         (sysnames): Try appending add-on names after machine as well.
592         * config.make.in (add-ons): Set from @add_ons@ instead of @subdirs@.
593         * Makeconfig ($(common-objpfx)config.status): Also depend on configure
594         files in $(add_ons) dirs.
596         * sysdeps/unix/sysv/linux/bits/in.h (struct ip_mreq): Remove
597         definition, now in netinet/in.h proper.
599 2004-07-20  Alexandre Oliva  <aoliva@redhat.com>
601         * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h):
602         Sort by syscalls.  Make sure we get headers such as sgidefs.h from
603         the build tree before just-installed ones.
605         * sysdeps/mips/atomicity.h: Use standard names for ABI macros,
606         include sgidefs.h where appropriate.
607         * sysdeps/mips/dl-machine.h: Likewise.
608         * sysdeps/mips/machine-gmon.h: Likewise.
609         * sysdeps/mips/bits/setjmp.h: Likewise.
610         * sysdeps/mips/fpu/bits/mathdef.h: Likewise.
611         * sysdeps/mips/mips64/__longjmp.c: Likewise.
612         * sysdeps/mips/mips64/setjmp_aux.c: Likewise.
613         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
614         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
615         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
616         * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
617         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
618         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
619         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
620         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
621         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
622         * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: Likewise.
623         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
624         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
625         * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: Likewise.
626         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
627         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
628         * sysdeps/unix/sysv/linux/mips/sys/user.h: Likewise.
629         * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h):
630         Likewise.
631         * sysdeps/unix/sysv/linux/mips/configure.in (asm-unistd.h):
632         Likewise.
634         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Update to use
635         _dl_lookup_symbol_x.
636         (elf_machine_runtime_link_map): Don't INTUSE _dl_signal_error.
638 2004-07-20  Ulrich Drepper  <drepper@redhat.com>
640         * inet/netinet/in.h: Define struct ip_mreq and struct
641         ip_mreq_source.
642         Define struct group_req and struct group_source_req.
643         * sysdeps/unix/sysv/linux/bits/in.h: Define IP_UNBLOCK_SOURCE,
644         IP_BLOCK_SOURCE, IP_ADD_SOURCE_MEMBERSHIP,
645         IP_DROP_SOURCE_MEMBERSHIP, IP_MSFILTER, MCAST_JOIN_GROUP,
646         MCAST_BLOCK_SOURCE, MCAST_UNBLOCK_SOURCE, MCAST_LEAVE_GROUP,
647         MCAST_JOIN_SOURCE_GROUP, MCAST_LEAVE_SOURCE_GROUP, and
648         MCAST_MSFILTER.
649         Define MCAST_INCLUDE and MCAST_EXCLUDE.
651         * iconvdata/gconv-modules: Add alias for IBM874 [BZ #244].
653 2004-07-19  Jakub Jelinek  <jakub@redhat.com>
655         [BZ #258]
656         * math/libm-test.inc (max_value, min_value): New variables.
657         (initialize): Initialize them.
658         (pow_test): Add a couple of new tests.
659         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Don't generate invalid
660         exception if |y| >= 1U<<31.
661         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Don't generate invalid
662         exception if |y| >= 1L<<63.
663         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
664         If y*log2(x) overflows to +-inf, return still +inf/+0 instead of NaN.
665         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
667 2004-07-18  Ulrich Drepper  <drepper@redhat.com>
669         * nscd/pwdcache.c (cache_addpw): Optimize case of unsuccessful
670         lookup a bit.
671         * nscd/grpcache.c (cache_addgr): Likewise.
672         * nscd/hstcache.c (cache_addhst): Likewise.
674 2004-07-10  GOTO Masanori  <gotom@debian.or.jp>
676         * sysdeps/s390/s390-32/elf/start.S: Remove symbol _fp_hw.
677         * sysdeps/s390/s390-64/elf/start.S: Likewise.
679 2004-04-16  Andreas Schwab  <schwab@suse.de>
681         * sysdeps/ia64/bits/atomic.h: Cast first argument of
682         __sync_bool_compare_and_swap_si correct to void*.
684 2004-07-17  Ulrich Drepper  <drepper@redhat.com>
686         * iconv/iconv_prog.c (print_known_names): Make machine-readable
687         output even less cluttered.
689 2004-07-16  Steven Munroe  <sjmunroe@us.ibm.com>
691         [BZ #269]
692         * setjmp/Makefile (tests): Add  bug269-setjmp.
693         * setjmp/bug269-setjmp.c: New file.
694         * sysdeps/powerpc/powerpc64/__longjmp-common.S [SHARED && !IS_IN_rtld]:
695         Store R2 from jmpbuf in callers TOC save area.
696         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S [SHARED && !IS_IN_rtld]:
697         Store R2 in TOC save area.
698         * sysdeps/powerpc/powerpc64/setjmp-common.S [SHARED && !IS_IN_rtld]:
699         Copy TOC save area from previous frame as R2 (TOC) in jmpbuf.
701 2004-07-16  Jakub Jelinek  <jakub@redhat.com>
703         * locale/newlocale.c: Include bits/libc-lock.h.
704         (__libc_setlocale_lock): Extern decl.
705         (__newlocale): Use it.
706         Reported by Ulrich Weigand <Ulrich.Weigand@de.ibm.com>.
708 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
710         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Remove
711         static inline __attribute ((always_inline)).  Don't define if
712         NO_CANCELLATION.
713         (__libc_fcntl): Use INLINE_SYSCALL directly instead of
714         __fcntl_nocancel.
715         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__fcntl_nocancel):
716         Remove static inline __attribute ((always_inline)).  Don't define
717         if NO_CANCELLATION.
718         (__libc_fcntl): Use INLINE_SYSCALL directly instead of
719         __fcntl_nocancel.
720         * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Define to
721         __libc_fcntl if NO_CANCELLATION and __ASSUME_FCNTL64 == 0.
722         Don't define at all if NO_CANCELLATION and __ASSUME_FCNTL64 > 0.
723         (__libc_fcntl): Don't define if __fcntl_nocancel is a macro.
725         [BZ #262]
726         * sysdeps/i386/elf/start.S (_start): Use @GOT instead of @GOTOFF
727         for main.
728         * elf/Makefile: Add rules to build and run tst-pie1.
729         * elf/tst-pie1.c: New test.
730         * elf/tst-piemod1.c: New file.
732 2004-07-14  Jakub Jelinek  <jakub@redhat.com>
734         [BZ #266]
735         * manual/string.texi (l64a): Note that the static buffer is 7 bytes
736         long.  Rewrite example code so that it takes into account l64a output
737         shorter than 6 characters.
738         Reported by Julian Graham <julian.graham@aya.yale.edu>.
740 2004-07-14  Kaz  Kojima  <kkojima@rr.iij4u.or.jp>
742         * sysdeps/sh/dl-machine.h: Don't reset _dl_starting_up here.
743         (elf_machine_rela_relative): Remove unused valiable.
745 2004-07-12  Paul Eggert  <eggert@cs.ucla.edu>
747         [BZ #263]
748         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Don't store
749         outside the buffer if the read returns 0.  __strtod_l can't set
750         endp to NULL, so remove a test for that case.
752 2004-07-12  Roland McGrath  <roland@redhat.com>
754         * manual/signal.texi (Interrupted Primitives): Make clear that
755         TEMP_FAILURE_RETRY evaluates its expression as long int and compares
756         it to -1 to define "failure".
758 2004-07-10  Ulrich Drepper  <drepper@redhat.com>
760         * elf/ldconfig.c: Define PROCINFO_CLASS as static before including
761         ldsodefs.h.
762         * sysdeps/generic/ldsodefs.h: Only define PROCINFO_CLASS if it is not
763         already defined.
764         * sysdeps/i386/dl-procinfo.c: Define PROCINFO_CALLS only if not
765         already defined.
767         * elf/rtld.c (print_statistics): Mark with noinline attribute.
768         * sysdeps/i386/dl-machine.h (elf_machine_rel): Mark with always_inline
769         attribute.
770         (elf_machine_rel_relative): Likewise.
772         * include/string.h: Add libc_hidden_proto for __strtok_r and
773         __strsep_g.
774         * sysdeps/generic/strsep.c: Add libc_hidden_def.
775         * sysdeps/generic/strtok_r.c: Likewise.
776         * sysdeps/i386/strtok_r.S: Add alias for internal symbol.
777         * sysdeps/i386/i686/strtok_r.S: Likewise.
778         * sysdeps/x86_64/strtok_r.S: Likewise.
780 2004-07-09  Alexandre Oliva  <aoliva@redhat.com>
782         * inet/getnetgrent_r.c (internal_setnetgrent): Make it hidden
783         instead of internal-linkage, such that we can alias to it.
784         (internal_endnetgrent, internal_getnetgrent_r): Likewise.
786 2004-07-09  Ulrich Drepper  <drepper@redhat.com>
788         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Move attribute
789         to the front for gcc 3.5+.
790         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
791         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise.
792         * include/fcntl.h: Don't declare __fcntl_nocancel here if
793         NO_CANCELLATION is defined.
795 2004-07-07  Jakub Jelinek  <jakub@redhat.com>
797         * elf/dl-fini.c (_dl_fini): Add nloaded variable, load
798         GL(dl_nloaded) into it while still in critical section.
800 2004-07-06  Thorsten Kukuk  <kukuk@suse.de>
802         * nss/getent.c (print_group, print_passwd): Use %lu format for
803         `unsigned long int' values.
805         * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Fix syntax
806         error typos in goto statements.
808 2004-07-07  Roland McGrath  <roland@frob.com>
810         * Makefile (dist-separate): New variable.
811         (glibc-%.tar rule): Make separate tar files for add-ons listed there.
812         Depend on their configure files.
813         (dist-do-separate-dirs): New canned sequence to do that.
814         (dist-separate-libidn, dist-separate-linuxthreads): New variables.
815         (dist): Depend on add-on tar files based on $(dist-separate).
816         (dist-version): New variable, default to $(version).
817         (tag-for-dist, dist): Use that in place of $(version) in deps.
819 2004-07-07  Ulrich Drepper  <drepper@redhat.com>
821         * elf/dl-fini.c (_dl_fini): Move the unlock of the ld.so lock
822         before the loop running the destructors.
824 2004-05-18  Andreas Schwab  <schwab@suse.de>
826         * elf/dl-load.c (_dl_map_object_from_fd): Use the end address of
827         the first segment for mprotect, not l_text_end.
829 2004-07-05  Ulrich Drepper  <drepper@redhat.com>
831         * elf/dl-profile.c (_dl_start_profile): Compact error handling.
832         Remove hashfraction variable.  Make kcount and kcountsize local
833         variables.
835         * elf/dl-init.c: Don't define and use _dl_starting_up if
836         HAVE_INLINED_SYSCALLS is defined and the variable is not used.
837         * elf/dl-support.c: Likewise.
838         * elf/rtld.c: Likewise.
839         * elf/dl-misc.c (_dl_debug_vdprintf): Use writev syscall directly
840         if HAVE_INLINED_SYSCALLS is defined.
841         * sysdeps/powerpc/powerpc64/dl-machine.h: Don't reset _dl_starting_up
842         here.
843         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
844         * sysdeps/unix/sysv/linux/configure.in: Define HAVE_INLINED_SYSCALLS.
845         * config.h.in: Add entry for HAVE_INLINED_SYSCALLS.
847         * sysdeps/posix/profil.c: If compiled for ld.so, omit code which
848         is needed to stop profiling.
849         * elf/dl-open.c (dl_open_worker): If a newly opened object is to be
850         profile make sure it cannot be unloaded.
852         * sysdeps/unix/sysv/linux/dl-origin.c: Inline readlink syscall.
854         * sysdeps/unix/sysv/linux/fcntl.c: If compiled without cancellation
855         support, make sure the helper function is inlined.
856         * sysdeps/unix/sysv/linux/pread.c: Likewise.
857         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
858         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
859         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise.
861 2004-07-05  Jakub Jelinek  <jakub@redhat.com>
863         * include/string.h (ffs): Add libc_hidden_builtin_proto.
864         * sysdeps/rs6000/ffs.c (ffs): Add libc_hidden_builtin_def.
865         * sysdeps/alpha/alphaev67/ffs.S (ffs): Likewise.
866         * sysdeps/alpha/ffs.S (ffs): Likewise.
867         * sysdeps/s390/ffs.c (ffs): Likewise.
868         * sysdeps/powerpc/ffs.c (ffs): Likewise.
869         * sysdeps/i386/ffs.c (ffs): Likewise.
870         * sysdeps/i386/i686/ffs.c (ffs): Likewise.
871         * sysdeps/m68k/ffs.c (ffs): Likewise.
872         * sysdeps/generic/ffs.c (ffs): Likewise.
873         * sysdeps/m88k/ffs.c (ffs): Likewise.
874         * sysdeps/am29k/ffs.c (ffs): Likewise.
875         * sysdeps/i960/ffs.c (ffs): Likewise.
876         * sysdeps/x86_64/ffs.c (ffs): Likewise.
878         * Makerules (check-abi): Use diff -p -U 0 instead of diff -pu0.
880         * sysdeps/powerpc/novmx-longjmp.c (__libc_longjmp,
881         __libc_siglongjmp): Remove symbol_version.
882         * sysdeps/powerpc/longjmp.c (__libc_longjmp, __libc_siglongjmp):
883         Export @@GLIBC_PRIVATE, not @@GLIBC_2.3.4.
884         * sysdeps/powerpc/sigjmp.c (__sigjmp_save): Use strong_alias
885         unconditionally.
886         * sysdeps/powerpc/novmx-sigjmp.c (__sigjmp_save): Remove.
887         * sysdeps/powerpc/powerpc32/__longjmp.S (__longjmp): Use
888         strong_alias instead of default_symbol_version, remove
889         symbol_version.
890         * sysdeps/powerpc/powerpc64/__longjmp.S (__longjmp): Likewise.
891         * sysdeps/powerpc/powerpc32/bsd-setjmp.S (__novmx__setjmp): Change
892         into strong_alias to __novmxsetjmp.
893         (__vmx__setjmp): Similarly with __vmxsetjmp.
894         (__setjmp): Make it strong_alias to __vmx__setjmp, remove
895         default_symbol_version and symbol_version.
896         * sysdeps/powerpc/powerpc64/bsd-setjmp.S (__novmx__setjmp): Change
897         into strong_alias to __novmxsetjmp.
898         (__vmx__setjmp): Similarly with __vmxsetjmp.
899         (__setjmp): Make it strong_alias to __vmx__setjmp, remove
900         default_symbol_version and symbol_version.
902         * nscd/nscd_getgr_r.c: Include stdio-common/_itoa.h.
904 2004-07-05  Ulrich Drepper  <drepper@redhat.com>
906         * elf/rtld.c (dl_main): Mark dyn_temp with attribute_relro.
908 2004-07-04  Matthew Reppert  <arashi@kai.vm.bytemark.co.uk>
910         * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Use libc_hidden_ver
911         instead of libc_hidden_def.
913 2004-07-01  Roland McGrath  <roland@redhat.com>
915         * aclocal.m4: Add provide for AC_CONFIG_AUX_DIR_DEFAULT.
917         * Makeconfig ($(common-objpfx)shlib-versions.v.i): Move top-level
918         $(..)shlib-versions file to last in deps list.  This lets add-ons give
919         more-specific matches that override defaults in the top-level file.
921         * sysdeps/unix/sysv/linux/configure.in: If arch_minimum_kernel was
922         already set, don't set it or libc_cv_gcc_unwind_find_fde.
923         * sysdeps/unix/sysv/linux/configure: Regenerated.
925 2004-07-01  Martin Schwidefsky  <schwidefsky@de.ibm.com>
927         * sysdeps/s390/fpu/bits/mathinline.h [__LIBC_INTERNAL_MATH_INLINES]
928         (__ieee754_sqrt): Define as __MATH_INLINE using sqdbr instruction.
929         (__ieee754_sqrtf): Define as __MATH_INLINE using sqebr instruction.
930         * sysdeps/s390/fpu/e_sqrt.c: New file.
931         * sysdeps/s390/fpu/e_sqrtf.c: New file.
932         * sysdeps/s390/Implies: New file.
933         * sysdeps/s390/s390-32/Implies: Remove ieee754, move
934         ieee754/dbl-64 and ieee754/flt-32 to s390/Implies.
935         * sysdeps/s390/s390-64/Implies: Likewise.
937 2004-06-30  Jakub Jelinek  <jakub@redhat.com>
939         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Include tls.h.
940         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
942         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (thread_start):
943         DO_CALL (exit, 1) instead of branching to _exit.
944         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (thread_start):
945         Likewise.
947         * sysdeps/s390/fpu/bits/mathinline.h: New file.
949         * include/glob.h (glob64): Add libc_hidden_proto.
950         * sysdeps/generic/glob64.c (glob64): Add libc_hidden_def.
951         * sysdeps/gnu/glob64.c (glob64): Likewise.
952         * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Likewise.
954 2004-06-11  Jakub Jelinek  <jakub@redhat.com>
956         * sysdeps/i386/fpu/libm-test-ulps: Update for GCC 3.4.
957         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
959 2004-06-11  Dwayne Grant McConnell  <dgm69@us.ibm.com>
961         * sysdeps/powerpc/fpu/s_lround.c: Removed.
962         * sysdeps/powerpc/fpu/s_lroundf.c: Removed.
963         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: New file.
964         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: New file.
965         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: New file.
966         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: New file.
967         * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: Removed.
968         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: New file.
969         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: New file.
970         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: New file.
971         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: New file.
972         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: New file.
973         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: New file.
974         * sysdeps/powerpc/powerpc32/fpu/s_round.S: New file.
975         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: New file.
976         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: New file.
978 2004-06-30  Ulrich Drepper  <drepper@redhat.com>
980         * include/net/if.h: Handle if_nameindex and if_freenameindex with
981         libc_proto_hidden.
982         * sysdeps/unix/sysv/linux/netlinkaccess.h: New file.
983         * sysdeps/unix/sysv/linux/ifaddrs.c: Export netlink handling functions.
984         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Implement using
985         netlink if possible.  Fall back on ioctl method if necessary.
986         * sysdeps/unix/sysv/linux/Dist: Add netlinkaccess.h.
988         * include/unistd.h: Declare __truncate.
989         * sysdeps/generic/truncate.c: Also define __truncate.
990         * sysdeps/mach/hurd/truncate.c: Likewise.
991         * sysdeps/unix/common/syscalls.list: Likewise.
992         * sysdeps/unix/sysv/linux/truncate64.c: Use __truncate, not truncate.
994 2004-06-29  Ulrich Drepper  <drepper@redhat.com>
996         * stdio-common/printf-parsemb.c (__parse_one_specmb): Initialize
997         info.extra.  Patch by Marcus Meissner.
999 2004-06-29  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1001         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
1002         Fix branch offset for a PLT entry.
1004 2004-06-20  Jim Meyering  <jim@meyering.net>
1006         * malloc/obstack.h (obstack_base): Cast to `void *', to align with
1007         documentation.
1009 2004-06-28  Ulrich Drepper  <drepper@redhat.com>
1011         * inet/bug-if1.c (do_test): Simply use 0 as invalid index.
1012         Workaround for [BZ #232].
1014         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Use extend_alloca.
1016 2004-06-28  GOTO Masanori  <gotom@debian.or.jp>
1018         * iconv/gconv_simple.c: Use get16/put16 for user given buffer
1019         in ucs2/ucs2reverse when unaligned memory access is attempted.
1020         * iconv/tst-iconv5.c: New file.
1021         * iconv/Makefile (tests): Add tst-iconv5.
1023 2004-06-28  Jakub Jelinek  <jakub@redhat.com>
1025         * inet/bug-if1.c: Include <string.h>.
1027 2004-06-19  Roland McGrath  <roland@redhat.com>
1029         * sysdeps/posix/waitid.c (do_waitid) [DO_WAITID]: Define function
1030         under this macro name instead.
1031         [NO_DO_WAITID]: Don't define it at all.
1032         (do_waitid) [WNOWAIT, WEXITED]: If these POSIX.1 waitid flag bits are
1033         defined, then return ENOTSUP for combinations of selection bits other
1034         than WEXITED and WEXITED|WSTOPPED, which this version cannot support.
1036         * posix/tst-waitid.c: New file.
1037         * posix/Makefile (tests): Add it.
1039 2004-06-28  Jakub Jelinek  <jakub@redhat.com>
1041         * sysdeps/unix/alpha/sysdep.h (inline_syscall6): Fix a typo.
1043         [BZ #231]
1044         * sysdeps/unix/alpha/sysdep.S (__syscall_error): Avoid !samegp
1045         relocation in librt.so.
1047         [BZ #230]
1048         * sysdeps/alpha/dl-machine.h (_dl_start_user): Use ldah/ldl to load
1049         _dl_skip_args.  Patch by Jakub Bogusz <qboosh@pld-linux.org>.
1051 2004-06-27  Ulrich Drepper  <drepper@redhat.com>
1053         * elf/ldconfig.c (add_dir): Take chroot into account.
1054         Based on changes by HJ Lu and Hideki Iwamoto.
1056         * nscd/connections.c (invalidate_cache): If the host cache has to
1057         be invalidated, re-read resolv.conf.
1059         * resolv/resolv.h (RES_NOIP6DOTINT): Define.
1060         * resolv/res_init.c (res_setoptions): Handle no-ip6-dotint option.
1061         * resolv/gethnamaddr.c (gethostbyaddr): Don't lookup with .ip6.int
1062         if RES_NOIP6DOTINT flag is set.
1063         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
1065 2004-06-25  Jakub Jelinek  <jakub@redhat.com>
1067         * sysdeps/unix/sysv/linux/powerpc/fcntl.c: Move to...
1068         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fcntl.c: ... here.
1069         * sysdeps/unix/sysv/linux/powerpc/lockf64.c: Move to...
1070         * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: ... here.
1071         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: New file.
1073         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_GETLK, F_SETLK,
1074         F_SETLKW): Fix values for -m32 -D_FILE_OFFSET_BITS=64.
1076 2004-06-21  Jakub Jelinek  <jakub@redhat.com>
1078         [BZ #231]
1079         * sysdeps/unix/alpha/Makefile: New file.
1080         * sysdeps/unix/alpha/rt-sysdep.S: New file.
1081         Reported by Jakub Bogusz <qboosh@pld-linux.org>.
1083 2004-06-18  Ulrich Drepper  <drepper@redhat.com>
1085         * sysdeps/posix/getaddrinfo.c (gaih_inet): For AI_CANONNAME,
1086         determine the canonical name only for the first returned entry.
1088         * inet/bug-if1.c: New file.
1089         * inet/Makefile (tests): Add bug-if1.
1091 2004-06-18  Roland McGrath  <roland@frob.com>
1093         * Makerules (compile-mkdep-flags): Add -MT $@.
1095         * Makefile (dist, tag-for-dist): New targets.
1096         (files-for-dist, tag-of-stem): New variables.
1097         (glibc-%.tar glibc-linuxthreads-%.tar): New pattern rule.
1098         Make tar files using cvs export.
1099         (%.bz2, %.gz, tag-%): New pattern rules.
1100         (distribute): Variable removed.
1101         (+subdir_targets): Remove distinfo targets.
1102         (echo_subdirs, echo-distinfo, parent_echo-distinfo): Targets removed.
1103         (rpm/%): Pattern rule removed.
1104         * rpm/Makefile, rpm/rpmrc, rpm/template: Ancient cruft files removed.
1105         * Rules (subdir_echo-headers, subdir_echo-distinfo, subdir_dist):
1106         Targets removed.
1107         * Makerules (dist, subdir_distinfo): Targets removed.
1108         ($(objpfx)distinfo): Depend on $(distribute).
1109         * Make-dist: File removed.
1111         * NEWS: Fix a typo.  Update bug-reporting instructions.
1113 2004-06-17  Thorsten Kukuk  <kukuk@suse.de>
1115         * sysdeps/unix/sysv/linux/sched_setaffinity.c
1116         (__sched_setaffinity_new): Set errno to EINVAL and return -1 if
1117         cpuset is wrongly set.
1119 2004-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
1121         * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling
1122         for POWER4 machines.
1124 2004-06-14  Jakub Jelinek  <jakub@redhat.com>
1126         [BZ #218]
1127         * sunrpc/pmap_prot2.c (xdr_pmaplist): When freeing, remember pml_next
1128         in a local variable, point rp to that local variable afterwards.
1130 2004-06-11  Jakub Jelinek  <jakub@redhat.com>
1132         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Handle special
1133         cases properly.
1135 2004-06-17  Ulrich Drepper  <drepper@redhat.com>
1137         * sysdeps/unix/sysv/linux/if_index.c (if_indextoname): Correct
1138         error value for unknown interface. [BZ #198]
1140 2004-06-13  Jakub Jelinek  <jakub@redhat.com>
1142         * sysdeps/i386/bits/string.h (memcpy): Add () around arguments.
1143         (memchr, __memrchr, strlen, strcmp, strncmp, __strchr_g, __strchr_c,
1144         __strchrnul_g, __strchrnul_c, strspn, strcspn, strpbrk): Add memory
1145         the asm uses as its input, either of size __n where __n is known or
1146         0xfffffff.
1147         (strstr): Add "memory" clobber.
1149 2004-06-14  Jakub Jelinek  <jakub@redhat.com>
1151         [BZ #219]
1152         * nss/nsswitch.c (free_mem): Don't try to close a library handle
1153         if the handle is invalid.  Patch by David Kimdon <kimdon@esrf.fr>.
1155 2004-06-11  Dmitry V. Levin  <ldv@altlinux.org>
1157         [BZ #217]
1158         * debug/xtrace.sh: Fix typo in error diagnostics.
1160 2004-06-14  Andreas Schwab  <schwab@suse.de>
1162         * stdio-common/psignal.c (psignal): Don't use BUF when asprintf
1163         failed.
1165 2004-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
1167         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix pasto
1168         that clobbers r19.  Fix pasto that overflowed sigcontext.v_reserve.
1169         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Fix pasto
1170         that clobbers r19.
1171         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Fix pasto
1172         that clobbers r19.  Fix pasto that overflowed sigcontext.v_reserve.
1173         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S:
1174         Fix setting of sigcontext.v_regs.  Fix pasto that clobbers r19.
1175         Fix pasto that overflowed sigcontext.v_reserve.
1176         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S:
1177         Fix pasto that clobbers r19.
1178         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Fix setting
1179         of sigcontext.v_regs.  Fix pasto that clobbers r19.  Fix pasto that
1180         overflowed sigcontext.v_reserve.
1182 2004-05-04  H.J. Lu  <hongjiu.lu@intel.com>
1184         [BZ #150]
1185         * sysdeps/generic/strtol_l.c (DEF): Use ".gnu.linkonce.r."
1186         instead of ".gnu.linkonce.ro." as the prefix for linkonce
1187         read-only section name.
1189 2004-06-14  Richard Henderson  <rth@redhat.com>
1191         * sysdeps/alpha/div_libc.h (_ITOFS): Use "sp" not "$sp".
1192         (_ITOFT, _FTOIT, _ITOFT2): Likewise.
1194 2004-06-08  Jakub Jelinek  <jakub@redhat.com>
1196         * sysdeps/s390/s390-32/backtrace.c (init): Guard with #ifdef SHARED.
1197         (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
1198         (__backtrace): Don't call init #ifndef SHARED.
1199         * sysdeps/s390/s390-64/backtrace.c (init): Guard with #ifdef SHARED.
1200         (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
1201         (__backtrace): Don't call init #ifndef SHARED.
1202         * sysdeps/ia64/backtrace.c (init): Guard with #ifdef SHARED.
1203         (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
1204         (__backtrace): Don't call init #ifndef SHARED.
1206 2004-06-11  Roland McGrath  <roland@redhat.com>
1208         * sysdeps/arm/strlen.S [__ARMEB__]: Compute correctly for big-endian.
1209         From Krzysztof Halasa <khc@pm.waw.pl>.
1211 2004-06-10  Jakub Jelinek  <jakub@redhat.com>
1213         * elf/tls-macros.h [__s390x__] (TLS_LD, TLS_GD): Clobber also r14.
1215 2004-06-08  Jakub Jelinek  <jakub@redhat.com>
1217         [BZ #199]
1218         * crypt/md5-crypt.c (__md5_crypt): Only update buflen if realloc
1219         succeeds.  Reported by Miles Ohlrich <miles@cray.com>.
1221         * elf/chroot_canon.c (chroot_canon): Avoid segfault if first malloc
1222         fails.  Avoid memory leak if realloc fails.
1224 2004-06-09  Jakub Jelinek  <jakub@redhat.com>
1226         * sysdeps/generic/setenv.c (setenv): Return -1/EINVAL if name is
1227         NULL, "" or contains '=' character in it.  Reported by
1228         Michael T Kerrisk <mtk-lists@gmx.net>.
1229         * stdlib/tst-environ.c: Include errno.h.
1230         (main): Add tests for these arguments to setenv/unsetenv.
1232 2004-06-07  Roland McGrath  <roland@frob.com>
1234         * NEWS: Update bug reporting instructions.  Fix some typos.
1236 2004-06-05  Ulrich Drepper  <drepper@redhat.com>
1238         * stdio-common/_itoa.h: Don't expand _itoa inline for libc.
1239         * stdio-common/_itoa.c: Add _itoa implementation.
1241         * nscd/nscd_gethst_r.c (__nscd_open_socket): Change implementation
1242         to also send request.  Add parameter to allow this.
1243         Change callers.
1244         * nscd/nscd_getgr_r.c: Change __nscd_open_socket caller.
1245         * nscd/nscd_getpw_r.c: Likewise.
1246         * nscd/nscd-client.h: Change __nscd_open_socket prototype.
1248 2004-06-05  Andreas Jaeger  <aj@suse.de>
1250         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
1251         Handle more than 6 args correctly.  Based on a patch by Masahide
1252         Washizawa <washi@jp.ibm.com>.
1254 2004-06-04  Ulrich Drepper  <drepper@redhat.com>
1256         * nscd/nscd_gethst_r.c (nscd_gethst_r): Use __nss_not_use_nscd_hosts
1257         in all places, not __nss_not_use_nscd_group.
1258         Reported by Philippe Gregoire.
1260 2004-06-03  Ulrich Drepper  <drepper@redhat.com>
1262         * sysdeps/i386/i486/bits/atomic.h: Optimize a bit.
1264 2004-05-07  Dmitry V. Levin  <ldv@altlinux.org>
1266         * argp/argp-help.c (__argp_error, __argp_failure): Check result
1267         of __asprintf call and don't use string if it failed.
1268         * stdio-common/psignal.c (psignal): Likewise.
1269         * locale/programs/localedef.c (more_help): Likewise.
1270         * resolv/res_hconf.c (arg_service_list, arg_trimdomain_list,
1271         arg_bool, parse_line): Check result of __asprintf calls and
1272         don't use string if they failed.
1273         * sunrpc/svc_simple.c (registerrpc, universal): Likewise.
1274         * elf/ldconfig.c (parse_conf_include): Check result of __asprintf
1275         call and exit if it failed.
1277 2004-05-10  Jakub Jelinek  <jakub@redhat.com>
1279         * sysdeps/posix/sysconf.c (__sysconf) <cases _SC_REALTIME_SIGNALS,
1280         _SC_PRIORITY_SCHEDULING, _SC_TIMERS, _SC_ASYNCHRONOUS_IO,
1281         _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO, _SC_FSYNC, _SC_MAPPED_FILES,
1282         _SC_MEMLOCK, _SC_MEMLOCK_RANGE, _SC_MEMORY_PROTECTION,
1283         _SC_MESSAGE_PASSING, _SC_SEMAPHORES, _SC_SHARED_MEMORY_OBJECTS,
1284         _SC_THREADS, _SC_THREAD_SAFE_FUNCTIONS, _SC_THREAD_ATTR_STACKADDR,
1285         _SC_THREAD_ATTR_STACKSIZE, _SC_THREAD_PRIORITY_SCHEDULING,
1286         _SC_THREAD_PRIO_INHERIT, _SC_THREAD_PRIO_PROTECT,
1287         _SC_THREAD_PROCESS_SHARED>: Return _POSIX_* value instead of 1.
1288         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
1289         <case _SC_MONOTONIC_CLOCK>: Return _POSIX_VERSION instead of 1.
1291 2004-05-07  Jeroen Dekkers  <jeroen@dekkers.cx>
1293         * sysdeps/mach/hurd/i386/Makefile (CFLAGS-init-first.c): Add
1294         -momit-leaf-frame-pointer.
1296         * inet/test-ifaddrs.c (addr_string): Surround AF_PACKET case with
1297         #ifdef AF_PACKET.
1299         * sysdeps/mach/hurd/getcwd.c
1300         (_hurd_canonicalize_directory_name_intern): Only realloc when
1301         size is <= 0.
1303         * sysdeps/mach/hurd/mmap.c (__mmap): Fail when addr or offset
1304         isn't page aligned.
1306         * sysdeps/mach/hurd/spawni.c (EXPAND_DTABLE): Set dtablesize to
1307         new size.
1309         * sysdeps/mach/hurd/Versions (GLIBC_PRIVATE): Add __libc_read,
1310         __libc_write and __libc_lseek64.
1312 2004-05-29  Roland McGrath  <roland@redhat.com>
1314         * elf/Makefile (shared-only-routines): Add dl-caller.
1316 2004-05-28  Ulrich Drepper  <drepper@redhat.com>
1318         * sysdeps/powerpc/configure.in: New file.
1320 2004-05-28  Steven Munroe  <sjmunroe@us.ibm.com>
1322         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Add .machine
1323         "altivec" to enable VMX instructions.
1324         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
1325         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
1326         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
1327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
1328         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
1329         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
1330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
1331         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
1332         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1334 2004-05-27  Jakub Jelinek  <jakub@redhat.com>
1336         * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Define using
1337         __builtin_expm1l for GCC 3.5+.
1338         (__expl): Define using __builtin_expl for GCC 3.4+.
1339         (exp, expf, expl): Don't define for GCC 3.4+.
1340         (tan, tanf, tanl): Don't define for GCC 3.5+.
1341         (__atan2l): Define using __builtin_atan2l for GCC 3.4+.
1342         (atan2, atan2f, atan2l): Don't define for GCC 3.4+ or !__FAST_MATH__.
1343         (fmod, fmodf, fmodl): Don't define for GCC 3.5+ or !__FAST_MATH__.
1344         (fabsf, fabsl): Only provide if __USE_MISC or __USE_ISOC99.
1345         (sin, sinf, sinl, cos, cosf, cosl, log, logf, logl): Don't define
1346         for GCC 3.4+.
1347         (log10, log10f, log10l, asin, asinf, asinl, acos, acosf, acosl):
1348         Don't define for GCC 3.5+.
1349         (atan, atanf, atanl): Don't define for GCC 3.4+ or !__FAST_MATH__.
1350         (log1p, log1pf, log1pl, logb, logbf, logbl, log2, log2f, log2l): Don't
1351         define for GCC 3.5+.
1352         (drem, dremf, dreml): Don't define for GCC 3.5+ or !__FAST_MATH__.
1353         * sysdeps/sparc/fpu/bits/mathinline.h (sqrt, sqrtf, sqrtl): Don't
1354         define for GCC 3.2+.
1356 2004-05-27  Jakub Jelinek  <jakub@redhat.com>
1358         * string/bits/string2.h (__bzero): Define even for GCC 3.0+.
1359         * sysdeps/alpha/stpcpy.S (stpcpy): Add libc_hidden_builtin_def.
1360         * sysdeps/alpha/alphaev67/stpcpy.S (stpcpy): Likewise.
1361         * sysdeps/powerpc/powerpc32/stpcpy.S (stpcpy): Likewise.
1362         * sysdeps/powerpc/powerpc64/stpcpy.S (stpcpy): Likewise.
1363         * sysdeps/sparc/sparc32/stpcpy.S (stpcpy): Likewise.
1364         * sysdeps/sparc/sparc64/stpcpy.S (stpcpy): Likewise.
1365         * sysdeps/i386/stpcpy.S (stpcpy): Likewise.
1366         * sysdeps/i386/i586/stpcpy.S (stpcpy): Likewise.
1367         * sysdeps/generic/stpcpy.c (stpcpy): Likewise.
1368         * sysdeps/x86_64/stpcpy.S (stpcpy): Likewise.
1369         * sysdeps/i386/i586/memcpy.S (memcpy): Remove
1370         libc_hidden_builtin_def if MEMPCPY_P.
1371         * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
1372         * sysdeps/i386/i686/mempcpy.S (mempcpy): Add libc_hidden_builtin_def.
1373         * sysdeps/i386/i586/mempcpy.S (mempcpy): Likewise.
1374         * sysdeps/generic/mempcpy.c (mempcpy): Likewise.
1375         * sysdeps/x86_64/mempcpy.S (mempcpy): Likewise.
1377 2004-05-26  Roland McGrath  <roland@frob.com>
1379         * sysdeps/generic/bits/in.h
1380         (IMPLINK_IP, IMPLINK_LOWEXPER, IMPLINK_HIGHEXPER): Macros removed.
1381         These are long obsolete in BSD systems where they originated.
1382         * conform/data/netinet/in.h-data: Remove `allow IMPLINK_*'
1384 2004-05-26  Jakub Jelinek  <jakub@redhat.com>
1386         * include/string.h (mempcpy, stpcpy): Add libc_hidden_builtin_proto.
1387         * string/bits/string2.h (memset): Disable macro for GCC 3.0+.
1388         (__mempcpy): Use __builtin_mempcpy for GCC 3.4+.
1389         (strchr): For GCC 3.2+, only use __rawmemchr if second argument is
1390         constant '\0' and first argument is not constant.
1391         (__stpcpy): Use __builtin_stpcpy for GCC 3.4+.
1392         (strncpy): Remove #ifdef _USE_STRING_ARCH_mempcpy variant.
1393         For GCC 3.2+ use __builtin_strncpy.
1394         (strncat): For GCC 3.2+ use __builtin_strncat.
1395         (strcmp): For GCC 3.2+ use __builtin_strcmp if both arguments are
1396         constant.
1397         (strcspn, strspn, strpbrk): For GCC 3.2+, use builtin function
1398         if both arguments are constant.
1400 2004-05-26  Ulrich Drepper  <drepper@redhat.com>
1402         * nss/nss_files/files-hosts.c: Fix condition for looking up IPv4
1403         mapped addresses in gethostbyaddr.
1405 2004-05-25  Ulrich Drepper  <drepper@redhat.com>
1407         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove typep and
1408         flags parameter, convert afp to simple int parameter.  Adjust code.
1409         typep was never != NULL and flags therefore also unused.  *afp is
1410         never modified.
1411         * nss/nsswitch.h: Adjust __nss_hostname_digits_dots prototype.
1412         * nss/getXXbyYY.c: Remove HAVE_TYPE handling.  Adjust af parameter
1413         handling for __nss_hostname_digits_dots calls.
1414         * nss/getXXbyYY_r.c: Likewise.
1416         * elf/dl-load.c (_dl_map_object_from_fd): Map DSOs with MAP_DENYWRITE.
1418 2004-05-25  Steven Munroe  <sjmunroe@us.ibm.com>
1420         * sysdeps/powerpc/fpu/Makefile: Make ld.so a dependency of libm.so.
1421         * sysdeps/powerpc/fpu/bits/mathinline.h [__LIBC_INERNAL_MATH_INLINES]
1422         (__ieee754_sqrt): Define as __MATH_INLINE using fsqrt instruction.
1423         (__ieee754_sqrtf): Define as __MATH_INLINE using fsqrts instruction.
1424         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Moved
1425         implementation from w_sqrt.c.
1426         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Moved
1427         implementation from w_sqrtf.c.
1428         * sysdeps/powerpc/fpu/w_sqrt.c (__sqrt): Wrapper implementation
1429         using inline __ieee754_sqrt().
1430         * sysdeps/powerpc/fpu/w_sqrtf.c (__sqrtf): Wrapper implementation
1431         using inline __ieee754_sqrtf().
1432         * sysdeps/powerpc/powerpc32/sysdep.h [__ASSEMBLER__]: Include
1433         <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__.
1434         * sysdeps/powerpc/sysdep.h [__ASSEMBLER__] (PPC_FEATURE_*): Define
1435         PPC_FEATURE_*  independent of __ASSEMBLER__.
1437 2004-05-25  Jakub Jelinek  <jakub@redhat.com>
1439         * sysdeps/pthread/aio_notify.c: Use <> instead of "" for aio_misc.h
1440         include.
1441         (aio_start_notify_thread): Define if not defined.
1442         (notify_func_wrapper): Use it.
1443         * sysdeps/pthread/aio_misc.c: Use <> instead of "" for aio_misc.h
1444         include.
1445         (aio_create_helper_thread): Define if not defined.
1446         (__aio_create_helper_thread): New function.
1447         (__aio_enqueue_request): Use aio_create_helper_thread.
1449         * nis/ypclnt.c (ypall_data, ypall_foreach): Remove.
1450         (struct ypresp_all_data): New type.
1451         (__xdr_ypresp_all): Change second argument to
1452         struct ypresp_all_data *.  Replace ypall_foreach and
1453         ypall_data with objp->foreach and objp->data.
1454         (yp_all): Remove status variable, add data.  Replace
1455         all uses of status with data.status.  Initialize data.foreach
1456         and data.data instead of ypall_foreach and ypall_data.
1458 2004-05-24  Jakub Jelinek  <jakub@redhat.com>
1460         * elf/dl-lookup.c (add_dependency): Set DF_1_NODELETE bit
1461         in l_flags_1, not in l_flags.
1463 2004-04-10  Robert Millan  <robertmh@gnu.org>
1465         * sysdeps/unix/sysv/linux/bits/in.h: Cosmetic fixes to get in sync
1466         with sysdeps/generic/bits/in.h.
1468 2004-05-25  Roland McGrath  <roland@frob.com>
1470         * sysdeps/generic/unwind-dw2-fde-glibc.c: Change copyright terms from
1471         GCC GPL to standard glibc LGPL.
1473 2004-05-24  Ulrich Drepper  <drepper@redhat.com>
1475         * manual/string.texi (Copying and Concatenation): Fixed second
1476         concat example.
1477         Reported by Fabian Pietsch <fabian@zzznowman.dyndns.org>.
1479 2004-05-23  Ulrich Drepper  <drepper@redhat.com>
1481         * malloc/obstack.c: Don't allow linking with _obstack.
1483 2004-05-23  Andreas Schwab  <schwab@suse.de>
1485         * sysdeps/m68k/m68020/bits/atomic.h: Use "+m" constraint instead
1486         of separate "m" constraints.
1488 2004-05-15  Chris Demetriou  <cgd@broadcom.com>
1490         * sysdeps/mips/dl-machine.h (ELF_DL_FRAME_SIZE)
1491         (ELF_DL_SAVE_ARG_REGS, ELF_DL_RESTORE_ARG_REGS): For the N32
1492         and 64 ABIs, save and restore regs $10 and $11 (a6 and a7).
1494 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
1496         * malloc/obstack.c (_obstack) [!defined _LIBC]: Remove; not used.
1497         Add comment explaining why libc still defines it.
1499 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1501         * malloc/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
1502         obstack_alignment_mask, obstack_alloc, obstack_base,
1503         obstack_blank, obstack_blank_fast, obstack_chunk_size,
1504         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
1505         obstack_grow0, obstack_init, obstack_int_grow,
1506         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
1507         obstack_next_free, obstack_object_size, obstack_ptr_grow,
1508         obstack_ptr_grow_fast, obstack_room): Remove declarations of
1509         nonexistent functions.
1511 2004-05-18  Steven Munroe  <sjmunroe@us.ibm.com>
1513         * sysdeps/powerpc/powerpc64/sysdep.h [__ASSEMBLER__]: Include
1514         <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__.
1515         [PIC]: Redundent for powerpc64, removed.
1516         (ENTRY): Generate size and alignment for opd entry.
1517         (EALIGN): Generate size and alignment for opd entry.
1518         (END): Use DOT_LABEL in ASM_SIZE_DIRECTIVE.
1519         (END_GEN_TB): Use DOT_LABEL in ASM_SIZE_DIRECTIVE.
1521 2004-05-19  Ulrich Drepper  <drepper@redhat.com>
1523         * misc/regexp.h: Say the functions have been withdrawn.
1525         * wcsmbs/tst-wcpncpy.c: Add more tests.
1527 2004-05-18  Roland McGrath  <roland@frob.com>
1529         * sysdeps/generic/unwind.h: Change copyright terms from GCC GPL to
1530         standard glibc LGPL.
1531         * sysdeps/generic/unwind-dw2.c: Likewise.
1532         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
1533         * sysdeps/generic/unwind-dw2-fde.h: Likewise.
1534         * sysdeps/generic/unwind-pe.h: Likewise.
1536 2004-05-15  Petter Reinholdtsen  <pere@hungry.com>
1538         * locale/iso-3166.def: Remove YUGOSLAVIA and insert "SERBIA AND
1539         MONTENEGRO" which have taken over the code 819.  Patch from
1540         Danilo Segan. [BZ #40]
1542 2004-05-15  Jakub Jelinek  <jakub@redhat.com>
1544         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
1545         (SYSCALL_ERROR_HANDLER): Rename __sparc.get_pic.l7 to
1546         __sparc_get_pic_l7.
1548 2004-05-15  Joseph S. Myers  <jsm@polyomino.org.uk>
1550         * catgets/gencat.c: Update bug reporting instructions.
1551         * csu/version.c: Likewise.
1552         * debug/catchsegv.sh: Likewise.
1553         * debug/pcprofiledump.c: Likewise.
1554         * debug/xtrace.sh: Likewise.
1555         * elf/ldd.bash.in: Likewise.
1556         * iconv/iconv_prog.c: Likewise.
1557         * iconv/iconvconfig.c: Likewise.
1558         * locale/programs/locale.c: Likewise.
1559         * locale/programs/localedef.c: Likewise.
1560         * login/programs/pt_chown.c: Likewise.
1561         * malloc/memusage.sh: Likewise.
1562         * malloc/memusagestat.c: Likewise.
1563         * malloc/mtrace.pl: Likewise.
1564         * manual/crypt.texi: Likewise.
1565         * manual/install.texi: Likewise.
1566         * nss/makedb.c: Likewise.
1568 2004-05-14  Jakub Jelinek  <jakub@redhat.com>
1570         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Only
1571         CHECK_STATIC_TLS if sym != NULL.
1572         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
1573         * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
1575 2004-05-12  Andreas Schwab  <schwab@suse.de>
1577         * posix/regex_internal.c (build_wcs_buffer): Also set pstr->mbs
1578         when translating.
1580 2004-05-13  H.J. Lu  <hongjiu.lu@intel.com>
1582         * Rules (xtests): Depend on tests.
1584 2004-05-13  Jakub Jelinek  <jakub@redhat.com>
1586         * libio/genops.c (_IO_default_xsputn): Avoid one overflow per char if
1587         count is negative, yet write_ptr < write_end.
1588         (_IO_default_xsgetn): Avoid one underflow per char if count is
1589         negative, yet read_ptr < read_end.
1591 2004-05-12  Steven Munroe  <sjmunroe@us.ibm.com>
1593         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XTABS): Define XTABS
1594         equal to TAB3.
1596 2004-05-12  Ulrich Drepper  <drepper@redhat.com>
1598         * elf/dl-lookup.c (_dl_lookup_symbol_x): Correct _dl_signal_cerror
1599         call.
1601 2004-05-10  Roland McGrath  <roland@frob.com>
1603         * hurd/hurdlookup.c (__hurd_file_name_split): Return ENOENT for "".
1604         (__hurd_directory_name_split): Likewise.
1606 2004-05-10  Ulrich Drepper  <drepper@redhat.com>
1608         * po/fr.po: Update from translation team.
1610 2004-05-10  Andreas Jaeger  <aj@suse.de>
1612         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
1613         Correctly compute alignment.
1614         Patch by Michael Matz <matz@suse.de>.
1616 2004-05-09  Ulrich Drepper  <drepper@redhat.com>
1618         * sysdeps/generic/sigpause.c: Prevent sigpause prototype.
1619         * sysdeps/posix/sigpause.c: Likewise.
1620         * signal/signal.h: Don't define sigpause macro unless needed.
1622 2004-05-08  Jakub Jelinek  <jakub@redhat.com>
1624         * configure.in (libc_cv_libgcc_s_suffix): New check.
1625         (libc_cv_as_needed): Use -lgcc_s$libc_cv_libgcc_s_suffix.
1626         * config.make.in (libgcc_s_suffix): Set.
1627         * Makeconfig (libgcc_eh): Use -lgcc_s$(libgcc_s_suffix).
1629 2004-05-08  Ulrich Drepper  <drepper@redhat.com>
1631         * signal/signal.h: Use BSD sigpause only if BSD behavior is preferred.
1633 2004-04-29  Steven Munroe  <sjmunroe@us.ibm.com>
1635         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_1,
1636         LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6):
1637         Load argument values into temporary variables.
1638         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_1,
1639         LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6):
1640         Likewise.
1642 2004-05-07  Ulrich Drepper  <drepper@redhat.com>
1644         * sysdeps/unix/sysv/linux/Makefile: mq_send.c and mq_receive.c
1645         need to be compiled with exceptions.
1647 2004-05-06  Ulrich Drepper  <drepper@redhat.com>
1649         * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Fix memory handling.
1650         * sysdeps/generic/ifreq.c (__ifreq): Fix memory handling.
1652         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Make clear that
1653         realloc cannot fail.
1655         * nss/nss_files/files-netgrp.c (EXPAND): Free buffer which cannot
1656         be expanded.
1658         * nis/nis_table.c: Clean up memory handling.
1659         * nis/nis_subr.c (nis_getnames): Clean up memory handling.
1660         * nis/nis_removemember.c (nis_removemember): Add comment
1661         explaining use of realloc.
1663         * math/tgmath.h (fabs): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL.
1664         (carg): Likewise.
1665         Patch by Lev S Bishop <lev.bishop@yale.edu>.
1667         * math/bug-tgmath1.c (main): Test fabs and carg as well.
1669 2004-05-06  Richard Henderson  <rth@redhat.com>
1671         * elf/elf.h (AT_L1I_CACHESHAPE, AT_L1D_CACHESHAPE,
1672         AT_L2_CACHESHAPE, AT_L3_CACHESHAPE): New.
1673         * sysdeps/unix/sysv/linux/alpha/Versions: Export
1674         __libc_alpha_cache_shape as a private symbol.
1675         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c: New file.
1676         * sysdeps/unix/sysv/linux/alpha/sysconf.c: New file.
1678 2004-05-06  Richard Henderson  <rth@redhat.com>
1680         * sysdeps/alpha/div_libc.h (_ITOFS, _ITOFT, _FTOIT, _ITOFT2): New.
1681         * sysdeps/alpha/divl.S: Use them.
1682         * sysdeps/alpha/divq.S: Likewise.
1683         * sysdeps/alpha/divqu.S: Likewise.
1684         * sysdeps/alpha/reml.S: Likewise.
1685         * sysdeps/alpha/remq.S: Likewise.
1686         * sysdeps/alpha/remqu.S: Likewise.
1688 2004-05-06  Ulrich Drepper  <drepper@redhat.com>
1690         * math/tgmath.h (__TGMATH_UNARY_REAL_IMAG_RET_REAL):Define.
1691         (cimag): Use it.
1692         (creal): Likewise.
1693         * math/Makefile (tests): Add bug-tgmath1.
1694         * math/bug-tgmath1.c: New file.
1696 2004-05-05  Jakub Jelinek  <jakub@redhat.com>
1698         * sysdeps/alpha/atomicity.h: Remove.
1699         * sysdeps/generic/atomicity.h: Remove.
1701 2004-05-05  H.J. Lu  <hongjiu.lu@intel.com>
1703         * sysdeps/i386/i486/bits/string.h (strpbrk): Cast return to
1704         char *.
1706 2004-04-22  David Mosberger  <davidm@hpl.hp.com>
1708         * sysdeps/unix/sysv/linux/ia64/Makefile (librt-routines): Mention
1709           rt-sysdep.
1710         * sysdeps/unix/sysv/linux/ia64/rt-sysdep.S: New file.
1712         * sysdeps/ia64/strcat.c: New file.
1713         * sysdeps/ia64/strcat.S: Delete.
1715 2004-05-04  Jakub Jelinek  <jakub@redhat.com>
1717         * sysdeps/unix/sysv/linux/ia64/sysdep.S (USE___THREAD): Remove
1718         defined.
1720 2004-04-23  Jakub Jelinek  <jakub@redhat.com>
1722         * sysdeps/ia64/fpu/libm_support.h (__libm_error_support): Add
1723         libc_hidden_proto.  Define to __GI___libm_error_support for
1724         assembly going into libc.so.
1725         * sysdeps/ia64/fpu/libc_libm_error.c (__libm_error_support): Add
1726         libc_hidden_def.
1728         * include/libc-symbols.h (HIDDEN_BUILTIN_JUMPTARGET): Define.
1729         * sysdeps/ia64/bcopy.S (bcopy): Use it for jump to memmove.
1731         * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Access
1732         gprel errno if RTLD_PRIVATE_ERRNO or __thread __libc_errno/errno
1733         if USE___THREAD.
1735 2004-05-03  Jakub Jelinek  <jakub@redhat.com>
1737         * sysdeps/unix/bsd/bits/fcntl.h (F_SETOWN, F_GETOWN): Define if
1738         __USE_BSD or __USE_UNIX98.
1739         * sysdeps/unix/bsd/ultrix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
1740         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
1741         * sysdeps/unix/bsd/sun/sunos4/bits/fcntl.h (F_SETOWN, F_GETOWN):
1742         Likewise.
1743         * sysdeps/unix/common/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
1744         * sysdeps/unix/sysv/aix/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
1745         * sysdeps/unix/sysv/irix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
1746         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_SETOWN, F_GETOWN):
1747         Likewise.
1748         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_SETOWN, F_GETOWN):
1749         Likewise.
1750         * sysdeps/unix/sysv/linux/cris/bits/fcntl.h (F_SETOWN, F_GETOWN):
1751         Likewise.
1752         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (F_SETOWN, F_GETOWN):
1753         Likewise.
1754         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_SETOWN, F_GETOWN):
1755         Likewise.
1756         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN, F_GETOWN):
1757         Likewise.
1758         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (F_SETOWN, F_GETOWN):
1759         Likewise.
1760         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (F_SETOWN, F_GETOWN):
1761         Likewise.
1762         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (F_SETOWN, F_GETOWN):
1763         Likewise.
1764         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (F_SETOWN, F_GETOWN):
1765         Likewise.
1766         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (F_SETOWN, F_GETOWN):
1767         Likewise.
1768         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (F_SETOWN, F_GETOWN):
1769         Likewise.
1770         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_SETOWN, F_GETOWN):
1771         Likewise.
1772         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
1773         * sysdeps/mach/hurd/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
1774         * io/sys/stat.h (S_ISSOCK, S_IFSOCK): Likewise.
1776 2004-05-01  Jakub Jelinek  <jakub@redhat.com>
1778         * posix/Versions (libc): Remove __libc_wait, __libc_waitpid,
1779         __libc_pause, __libc_nanosleep, __libc_pread, __libc_pread64,
1780         __libc_pwrite64, __waitid and __pselect @@GLIBC_PRIVATE.
1781         * stdlib/Versions (libc): Remove __on_exit@@GLIBC_PRIVATE.
1782         * sysdeps/unix/sysv/linux/Versions (libc): Remove
1783         __libc_sigaction@@GLIBC_PRIVATE.
1784         * sysdeps/unix/sysv/linux/x86_64/Versions (libc): Remove
1785         __modify_ldt@@GLIBC_PRIVATE.
1786         * socket/Versions (libc): Remove __libc_accept, __libc_send,
1787         __libc_recvfrom, __libc_recvmsg, __libc_sendmsg, __libc_recv,
1788         __libc_sendto and __libc_connect @@GLIBC_PRIVATE.
1789         * stdio-common/Versions (libc): Remove
1790         _itoa_upper_digits@@GLIBC_PRIVATE.
1791         * resolv/Versions (libresolv): Remove __ns_samename@@GLIBC_PRIVATE.
1792         * misc/Versions (libc): Remove __libc_fsync, __libc_msync,
1793         __libc_readv and __libc_writev @@GLIBC_PRIVATE.
1794         * termios/Versions (libc): Remove __libc_tcdrain@@GLIBC_PRIVATE.
1795         * io/Versions (libc): Remove __libc_open, __libc_close, __libc_read,
1796         __libc_write, __libc_lseek, __libc_fcntl, __libc_open64 and
1797         __libc_lseek64 @@GLIBC_PRIVATE.
1799 2004-04-30  Jakub Jelinek  <jakub@redhat.com>
1801         * elf/dl-load.c (open_verify): Move e_phentsize check after e_type
1802         check.
1804 2004-04-29  Steven Munroe  <sjmunroe@us.ibm.com>
1806         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: New file.
1807         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: New file.
1808         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: New file.
1809         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: New file.
1810         * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: Removed.
1811         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: New file.
1812         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Removed.
1813         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: New file.
1814         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: New file.
1815         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: New file.
1816         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: New file.
1817         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: New file.
1818         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: New file.
1819         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: New file.
1820         * sysdeps/powerpc/powerpc64/fpu/s_round.S: New file.
1821         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: New file.
1822         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: New file.
1823         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: New file.
1825         * math/test-misc.c [LDBL_MANT_DIG == 106](main): Correct LDBL_MAX
1826         mantissa for AIX long double format.
1827         * misc/qefgcvt.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Define for AIX
1828         long double format.
1829         * misc/qefgcvt_r.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Likewise.
1830         * stdlib/fpioconst.c [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024]
1831         (_fpioconst_pow10): AIX long double format has same exponent range as
1832         double.
1833         * stdlib/fpioconst.h [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024]
1834         (LDBL_MAX_10_EXP_LOG): AIX long double format has same exponent range
1835         as double.
1837 2004-04-23  Art Haas  <ahaas@airmail.net>
1839         * sysdeps/unix/sysv/linux/kernel-features.h: Add 'defined'.
1841 2004-04-28  Carlos O'Donell  <carlos@baldric.uwo.ca>
1843         * sysdeps/unix/sysv/linux/mq_getattr.c: Include <stddef.h>.
1844         * sysdeps/unix/sysv/linux/mq_notify.c: Likewise.
1845         * sysdeps/unix/sysv/linux/mq_open.c: Likewise.
1846         * sysdeps/unix/sysv/linux/mq_receive.c: Likewise.
1847         * sysdeps/unix/sysv/linux/mq_send.c: Likewise.
1849 2004-04-29  Philip Blundell  <pb@nexus.co.uk>
1851         * sysdeps/arm/dl-machine.h (RTLD_START): Avoid unnecessary GOT
1852         entries.
1854 2004-04-29  Jakub Jelinek  <jakub@redhat.com>
1856         * manual/resource.texi (sched_setaffinity, sched_getaffinity): Fix
1857         prototypes and description [BZ #131].
1859         * string/bits/string2.h (strpbrk): Cast NULL to char * [BZ #130].
1860         Patch by Ed Catmur <ed@catmur.co.uk>.
1861         * string/tst-inlcall.c (main): Add test for strpbrk.
1863         [BZ #140]
1864         * sysdeps/unix/sysv/linux/sys/sysctl.h: Remove linux/compiler.h
1865         include.
1866         (_LINUX_KERNEL_H, _LINUX_TYPES_H, _LINUX_LIST_H): Only define if not
1867         yet defined, #undef back after including linux/sysctl.h if defined
1868         here.
1869         (__LINUX_COMPILER_H, __user): Define if not yet defined, #undef
1870         back after including linux/sysctl.h if defined here.
1872         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c (_Qp_qtoi): Use %f31
1873         for single precision register, add it to __asm clobbers [BZ #139].
1874         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c (_Qp_qtoui): Use %f31
1875         for single precision register, add it to __asm clobbers.
1876         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c (_Qp_qtoux): Use fqtox
1877         instead of fqtoi in QP_HANDLE_EXCEPTIONS.
1878         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c (_Qp_qtox): Likewise.
1879         Reported by M. H. VanLeeuwen <vanl@megsinet.net>.
1881 2004-04-23  Andreas Schwab  <schwab@suse.de>
1883         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Use
1884         __attribute_used__.
1886 2004-04-22  Philip Blundell  <philb@gnu.org>
1888         * sysdeps/arm/dl-machine.h (elf_machine_rela): Don't use INTUSE
1889         when calling _dl_signal_error.
1890         (elf_machine_rel): Likewise.
1892 2004-04-21  Ulrich Drepper  <drepper@redhat.com>
1894         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Define _GI___sigsetjmp
1895         and use it internally instead of __sigsetjmp.
1896         * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Use _GI___libm_frexp_4f.
1897         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Use _GI___libm_frexp_4l.
1898         * sysdeps/ia64/fpu/libm_frexp4.S: Define _GI___libm_frexp_4.
1899         * sysdeps/ia64/fpu/libm_frexp4f.S: Define _GI___libm_frexp_4f.
1900         * sysdeps/ia64/fpu/libm_frexp4l.S: Define _GI___libm_frexp_4l.
1901         * sysdeps/ia64/fpu/s_frexp.c (frexp): Use _GI___libm_frexp_4.
1902         * sysdeps/ia64/fpu/libm_support.h: Declare _GI___libm_frexp_4,
1903         _GI___libm_frexp_4f, _GI___libm_frexp_4l.
1904         * sysdeps/ia64/fpu/bits/mathinline.h: New file.
1905         * sysdeps/unix/sysv/linux/ia64/__start_context.S: Use
1906         HIDDEN_JUMPTARGET for exit call.
1907         * sysdeps/unix/sysv/linux/ia64/clone2.S: Use HIDDEN_JUMPTARGET for
1908         _exit call.
1909         * sysdeps/ia64/bcopy.S: Use HIDDEN_JUMPTARGET for memmove call.
1910         * sysdeps/ia64/strcat.S: Use HIDDEN_JUMPTARGET for strlen and
1911         strcpy calls.
1913 2004-04-21  Jakub Jelinek  <jakub@redhat.com>
1915         * posix/tst-chmod.c (do_test): Fix a typo.
1917         * elf/lateglobal.c (main): Fix error checks.
1918         Patch by Stephen Clarke <stephen.clarke@st.com>.
1920         * manual/ctype.texi (isblank, iswblank): Mark as ISO functions,
1921         mention they have been added in ISO C99.
1922         Reported by Ben Pfaff <blp@cs.stanford.edu>.
1924 2004-03-31  H.J. Lu  <hongjiu.lu@intel.com>
1926         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Fix typo.
1928 2004-04-20  Jakub Jelinek  <jakub@redhat.com>
1930         * sysdeps/unix/sysv/linux/shm_open.c (shm_unlink): Change EPERM into
1931         EACCES.
1933 2004-04-20  Jakub Jelinek  <jakub@redhat.com>
1935         * stdio-common/vfscanf.c (_IO_vfscanf): Revert last %% whitespace
1936         handling change.
1937         * stdio-common/tst-sscanf.c (int_tests): Adjust.
1939         * nis/nss-nis.c: Include stdlib.h.
1941         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Shut up a
1942         warning.
1943         * sysdeps/sparc/sparc64/memcmp.S (memcmp): Remove BP_SYM () from
1944         libc_hidden_builtin_def.
1946 2004-04-20  Jim Meyering  <jim@meyering.net>
1948         * misc/error.c (error_tail): Don't leak upon realloc failure.
1950 2004-04-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1952         * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable):
1953         Use RETURN_ADDRESS instead of __builtin_return_address.
1955 2004-04-19  Ulrich Drepper  <drepper@redhat.com>
1957         * sysdeps/unix/sysv/linux/mq_unlink.c: Rewrite to produce more
1958         compact code.
1960 2004-04-20  Jakub Jelinek  <jakub@redhat.com>
1962         * stdio-common/vfscanf.c (_IO_vfscanf): When skipping whitespace,
1963         do input_error () instead of conv_error () and don't look at errno.
1964         Don't eat any whitespace before %% if skip_space == 0.
1965         * stdio-common/tst-sscanf.c (int_tests): New array.
1966         (main): Run int_tests.
1969 See ChangeLog.14 for earlier changes.