Update.
[glibc.git] / ChangeLog
blob968756a24dd76b9526b41b2269f30c4b9b05b986
1 2004-09-07  Ulrich Drepper  <drepper@redhat.com>
3         * include/atomic.h: Define atomic_increment_val, atomic_decrement_val,
4         and atomic_dealy is not already defined.
5         * sysdeps/i386/i486/bits/atomic.h: Define atomic_delay.
6         * sysdeps/x86_64/bits/atomic.h: Likewise.
8         * miscd/sys/cdefs.h (__NTH): New macro.
9         (__THROW): Define using nothrow attribute for C code and gcc >= 3.2.
10         (__REDIRECT_NTH): New macro.
11         * argp/argp.h: Use __NTH and __REDIRECT_NTH where necessary.
12         * ctype/ctype.h: Likewise.
13         * dirent/dirent.h: Likewise.
14         * io/fcntl.h: Likewise.
15         * io/sys/sendfile.h: Likewise.
16         * io/sys/stat.h: Likewise.
17         * io/sys/statfs.h: Likewise.
18         * io/sys/statvfs.h: Likewise.
19         * libio/bits/stdio.h: Likewise.
20         * misc/sys/mman.h: Likewise.
21         * posix/unistd.h: Likewise.
22         * resource/sys/resource.h: Likewise.
23         * rt/aio.h: Likewise.
24         * signal/signal.h: Likewise.
25         * stdlib/stdlib.h: Likewise.
26         * string/argz.h: Likewise.
27         * string/string.h: Likewise.
28         * sysdeps/generic/inttypes.h: Likewise.
29         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
30         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
31         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
32         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
33         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
34         * sysdeps/unix/sysv/linux/bits/sys/sysmacros.h: Likewise.
35         * wcsmbs/wchar.h: Likewise.
37         * sysdeps/generic/glob.c: Use __PMT isntead of __P where appropriate.
39         * resolv/gethnamaddr.c (getanswer): Remove __P use in variable
40         definition.
42         * io/sys/poll.h: Remove __THROW from poll prototype, it's a
43         cancellation point.
45         * io/fts.c (fts_open): Remove uses of __P.
47         * include/stdlib.h: No need to use __THROW in this header.
49 2004-09-06  Roland McGrath  <roland@frob.com>
51         * sysdeps/mach/hurd/dl-sysdep.c (__writev): Does use assert on FD
52         validity, since __assert_fail gets to here anyway.  Just fail.
54 2004-09-06  Ulrich Drepper  <drepper@redhat.com>
56         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix problem with
57         AF_UNSPEC lookup with AI_CANONNAME of name which has only IPv6
58         addresses.
60 2004-09-05  Richard Henderson  <rth@redhat.com>
62         * sysdeps/alpha/fpu/fraiseexcpt.c: Remove file.
63         * sysdeps/unix/sysv/linux/kernel-features.h
64         (__ASSUME_IEEE_RAISE_EXCEPTION): New.
65         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.c: New file.
66         * sysdeps/unix/sysv/linux/alpha/kernel_sysinfo.h: New file.
67         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use it.
68         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
70 2004-09-05  Richard Henderson  <rth@redhat.com>
72         * sysdeps/alpha/div.S: Save and restore FPCR around fp operations.
73         * sysdeps/alpha/divl.S, sysdeps/alpha/divq.S, sysdeps/alpha/divqu.S,
74         sysdeps/alpha/ldiv.S, sysdeps/alpha/reml.S, sysdeps/alpha/remq.S,
75         sysdeps/alpha/remqu.S: Likewise.
76         * sysdeps/alpha/div_libc.h (FRAME): Increase to 64.
78 2004-09-05  Ulrich Drepper  <drepper@redhat.com>
80         * nscd/cache.c (cache_add): Correctly log GETHOSTBYADDR and
81         GETHOSTBYADDRv6 requests.
83 2004-09-04  Ulrich Drepper  <drepper@redhat.com>
85         * nscd/pwdcache.c (cache_addpw): Use correct key length in
86         cache_add calls.
87         * nscd/grpcache.c (cache_addgr): Likewise.
89 2004-09-03  Alfred M. Szmidt  <ams@kemisten.nu>
91         * sysdeps/mach/hurd/i386/tls.h (THREAD_DTV): Changed type of _DTV
92         to `dtv_t *'.
94 2004-09-03  Ulrich Drepper  <drepper@redhat.com>
96         * nscd/nscd.c (parse_opt): Use writev instead of two write for
97         invalidate command.
99 2004-09-02  Ulrich Drepper  <drepper@redhat.com>
101         * nscd/connections.c (nscd_run): Check early for invalid request types.
103 2004-09-02  Roland McGrath  <roland@frob.com>
105         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): New macro.
106         (INSTALL_NEW_DTV, THREAD_DTV): Rewritten to fetch the right word.
107         (THREAD_SELF): New macro.
109 2004-09-02  Steven Munroe  <sjmunroe@us.ibm.com>
111         [BZ #357]
112         * stdlib/tst-setcontext.c (test_stack): Added test for stack clobber.
113         (main): Call test_stack.
114         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
115         (__getcontext): Push stack frame then save parms in local frame.
116         Improve instruction scheduling.
117         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
118         (__swapcontext): Likewise.
120 2004-09-01  Andreas Schwab  <schwab@suse.de>
122         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h [g++ >= 3.5]: Use
123         __builtin_offsetof.
125 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
127         [BZ #361]
128         * posix/fnmatch_loop.c (FCT): For backslash between brackets, branch
129         to normal_bracket after fetching the next character.
130         * posix/tst-fnmatch.input: Add 25 new tests.
131         Reported by Markus Oberhumer <markus@oberhumer.com>.
133 2004-09-01  Ulrich Drepper  <drepper@redhat.com>
135         * elf/rtld.c (dl_main): First check existence of ld.so.preload
136         with access.
138 2004-09-01  Roland McGrath  <roland@redhat.com>
140         * sysdeps/unix/sysv/linux/bits/waitflags.h
141         (WSTOPPED, WEXITED, WCONTINUED, WNOWAIT): New macros.
142         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_WAITID_SYSCALL):
143         New macro.
144         * sysdeps/unix/sysv/linux/waitid.c: New file.  Use new syscall when
145         available, or fall back to the waitpid-based generic code.
147 2004-08-14  Alfred M. Szmidt  <ams@kemisten.nu>
149         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Let gcc
150         clobber the `ebp' register.
151         * sysdeps/mach/hurd/i386/Makefile (CFLAGS-init-first.c): Removed.
152         Reverts change from 2004-05-07 by Jeroen Dekkers.
154         * sysdeps/mach/hurd/i386/init-first.c (init): Changed the type of
155         NEWSP from `void *' to `int *'.  Changed all casts accordingly.
157 2004-08-31  Jakub Jelinek  <jakub@redhat.com>
159         * wcsmbs/wcsmbsload.c (__wcsmbs_getfct): Move attribute_hidden
160         before return type.
161         * locale/localename.c (__current_locale_name): Likewise.
163 2004-08-30  Roland McGrath  <roland@frob.com>
165         * scripts/extract-abilist.awk: If `lastversion' variable defined, omit
166         later sets from output.
167         * Makerules (check-abi): Pass option to set that with value of
168         LIB-abi-frozen variable if one is set.
170         * abilist/libcidn.abilist: New file (empty).
172 2004-08-30  Jakub Jelinek  <jakub@redhat.com>
174         * posix/bits/posix1_lim.h (_POSIX_CHILD_MAX, _POSIX_OPEN_MAX): If
175         not __USE_XOPEN2K, use the Unix98 mandated values.
177 2004-08-27  Roland McGrath  <roland@redhat.com>
179         * configure.in (usetls): Default to yes.
180         * configure: Regenerated.
182 2004-08-26  Roland McGrath  <roland@redhat.com>
184         * configure.in (add_ons_automatic): New variable, set to yes or no
185         indicating --enable-add-ons with no explicit list.
186         (running add-on fragments): Allow a fragment to modify $libc_add_on
187         and have that affect its place in the list of add-ons to use.
188         * configure: Regenerated.
190 2004-08-26  Ulrich Drepper  <drepper@redhat.com>
192         * nscd/cache.c: Major rewrite.  The data is now optionally kept in
193         a mmaped memory region which is automatically mirrored on disk.
194         This implements persistent data storage.  The Memory handled
195         needed to be completely revamped, it now uses a garbage collection
196         mechanism instead of malloc.
197         * nscd/connections.c: Likewise.
198         * nscd/nscd.c: Likewise.
199         * nscd/nscd.h: Likewise.
200         * nscd/nscd_conf.c: Likewise.
201         * nscd/nscd_stat.c: Likewise.
202         * nscd/grpcache.c: Likewise.
203         * nscd/hstcache.c:: Likewise.
204         * nscd/pwdcache.c:: Likewise.
205         * nscd/Makefile: Add rules to build mem.c.
206         * nscd/mem.c: New file.
207         * nscd/nscd.conf: Describe new configuration options.
209 2004-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
211         * sysdeps/unix/sysv/linux/mips/pread.c: Include sgidefs.h only if
212         NO_SGIDEFS_H isn't defined.
213         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
214         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
216         * sysdeps/unix/sysv/linux/sh/pread.c: Define NO_SGIDEFS_H and
217         _MIPS_SIM.
218         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
219         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
220         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
222 2004-08-26  Ulrich Drepper  <drepper@redhat.com>
224         * nscd/connections.c (nscd_run): atomic_increment was not missing.
226         * sysdeps/gnu/Makefile (libdl-sysdep_routines): Don't add eval.
227         Patch by Greg Schafer.
229 2004-08-25  Richard Henderson  <rth@redhat.com>
231         * sysdeps/alpha/elf/start.S (_start): Use $15 as frame unwind
232         instead of $31.  Zero $15.
233         * sysdeps/unix/sysv/linux/alpha/clone.S (thread_start): Likewise.
235 2004-08-25  Ulrich Drepper  <drepper@redhat.com>
237         * sysdeps/powerpc/powerpc64/bits/atomic.h
238         (__arch_compare_and_exchange_bool_32_acq): Fix case where oldval
239         is negative.
240         (__arch_compare_and_exchange_bool_32_rel): Likewise.
242         * nscd/connections.c: Make socket nonblocking so that threads
243         don't get stuck on accept.  Fix locking.
245         * nscd/grpcache.c (cache_addgr): Use copy of original key in hash
246         entry with alternative key.
247         * nscd/pwdcache.c (cache_addpw): Likewise.
249 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
251         * sysdeps/mips/dl-machine.h (_dl_start_user): Don't set
252         __libc_stack_end.
254 2004-08-23  Ulrich Drepper  <drepper@redhat.com>
256         * sysdeps/gnu/netinet/udp.h: Cosmetic changes.  Remove unnecessary
257         __BEGIN_DECLS/__END_DECLS.
259 2004-08-23  Andreas Jaeger  <aj@suse.de>
261         [BZ #341]
262         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_NOATIME): Define.
263         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (O_NOATIME): Likewise.
264         * sysdeps/unix/sysv/linux/cris/bits/fcntl.h (O_NOATIME): Likewise.
265         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (O_NOATIME): Likewise.
266         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (O_NOATIME): Likewise.
267         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_NOATIME): Likewise.
268         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (O_NOATIME): Likewise.
269         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_NOATIME): Likewise.
270         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_NOATIME): Likewise.
271         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_NOATIME): Likewise.
272         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (O_NOATIME): Likewise.
273         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_NOATIME): Likewise.
274         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (O_NOATIME): Likewise.
276 2004-08-21  Ulrich Drepper  <drepper@redhat.com>
278         * malloc/hooks.c (DEFAULT_CHECK_ACTION): Moved to malloc.c.
279         (check_action): Likewise.
280         When printing error messages, use malloc_printf_nc now instead of
281         fiddling with the streams cancellation flag in every place.
282         * malloc/malloc.c (DEFAULT_CHECK_ACTION): New definition.  Change
283         default to 3.
284         (check_action): New variable.
285         (unlink): Print error message and eventually terminate in case list
286         is corrupted.
287         (malloc_printf_nc): New function.  Use it in _int_free.
288         Change proposed by Arjan van de Ven.
290         * dlfcn/Makefile: Don't build eval.c anymore.
292 2004-08-20  Roland McGrath  <roland@frob.com>
294         * csu/Makefile ($(objpfx)version-info.h): Use printf in place
295         of echo -e for POSIX.2 portability.
296         Reported by Paul Jarc <prj@po.cwru.edu>.
298 2004-08-19  Ulrich Drepper  <drepper@redhat.com>
300         * sysdeps/posix/getaddrinfo.c (gaih_inet): Minor optimizations in
301         list generation.
303         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use
304         getcanonname_r function if AI_CANONNAME flag is not set in
305         request.
307         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss):
308         Initialize mysize with limits only if latter is >= 0.  Use mysize
309         in malloc call.
311 2004-08-19  Jakub Jelinek  <jakub@redhat.com>
313         * sysdeps/posix/getaddrinfo.c (gaih_inet): Cast canon to (char *)
314         to avoid warning.
316         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Initialize
317         status to NSS_STATUS_UNAVAIL.
319 2004-08-19  Ulrich Drepper  <drepper@redhat.com>
321         * sysdeps/posix/getaddrinfo.c (gaih_inet): Use h->h_name in the
322         cannoname lookup since it has the FQDN even if the original NAME
323         value has not.
325 2004-08-18  Ulrich Drepper  <drepper@redhat.com>
327         * sysdeps/posix/getaddrinfo.c (gaih_inet): Store NAME parameter
328         pointer in new variable ORIG_NAME and use this pointer when
329         determination of canonical name failed, not the possibly IDN
330         translated value of NAME.
332 2004-08-17  Ulrich Drepper  <drepper@redhat.com>
334         * resolv/resolv.h (RES_DEFAULT): Add RES_NOIP6DOTINT.
335         * resolv/res_init.c (res_setoptions): Recognize ip6-dotint option.
336         Reset RES_NOIP6DOTINT flag in this case..
338         * sysdeps/posix/getaddrinfo.c: Fix memory handling of
339         ai_canonname.
341 2004-08-16  Ulrich Drepper  <drepper@redhat.com>
343         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Don't use
344         CNAME records, we better follow the chain of CNAME records which
345         can be accomplished with A/AAAA lookups.
347 2004-08-15  Roland McGrath  <roland@redhat.com>
349         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who):
350         Remove __RUSAGE_BOTH constant and RUSAGE_BOTH macro.
351         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
352         * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
353         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
355 2004-08-15  Roland McGrath  <roland@frob.com>
357         * sysdeps/i386/i686/Makefile (elide-routines.os): Append hp-timing to
358         this, not ...
359         (static-only-routines): ... this.
360         * sysdeps/ia64/Makefile: Likewise.
361         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
362         * sysdeps/sparc/sparc64/Makefile: Likewise.
363         * sysdeps/x86_64/Makefile: Likewise.
364         * sysdeps/i386/i686/hp-timing.c: Revert copyright terms change.
365         * sysdeps/ia64/hp-timing.c: Likewise.
366         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
367         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
369         * csu/elf-init.c: Update copyright terms including special exception
370         for these trivial files, which are statically linked into executables
371         that use dynamic linking for the significant library code.
372         * io/fstat.c: Likewise.
373         * io/fstat64.c: Likewise.
374         * io/lstat.c: Likewise.
375         * io/lstat64.c: Likewise.
376         * io/stat.c: Likewise.
377         * io/stat64.c: Likewise.
378         * stdlib/atexit.c: Likewise.
379         * sysdeps/alpha/elf/initfini.c: Likewise.
380         * sysdeps/alpha/elf/start.S: Likewise.
381         * sysdeps/arm/elf/start.S: Likewise.
382         * sysdeps/cris/elf/start.S: Likewise.
383         * sysdeps/generic/initfini.c: Likewise.
384         * sysdeps/generic/mknod.c: Likewise.
385         * sysdeps/hppa/elf/initfini.c: Likewise.
386         * sysdeps/hppa/elf/start.S: Likewise.
387         * sysdeps/i386/elf/start.S: Likewise.
388         * sysdeps/i386/i686/hp-timing.c: Likewise.
389         * sysdeps/ia64/elf/initfini.c: Likewise.
390         * sysdeps/ia64/elf/start.S: Likewise.
391         * sysdeps/ia64/hp-timing.c: Likewise.
392         * sysdeps/m68k/elf/start.S: Likewise.
393         * sysdeps/mach/start.c: Likewise.
394         * sysdeps/mips/elf/start.S: Likewise.
395         * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
396         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
397         * sysdeps/s390/s390-32/elf/start.S: Likewise.
398         * sysdeps/s390/s390-32/initfini.c: Likewise.
399         * sysdeps/s390/s390-64/elf/start.S: Likewise.
400         * sysdeps/s390/s390-64/initfini.c: Likewise.
401         * sysdeps/sh/elf/initfini.c: Likewise.
402         * sysdeps/sh/elf/start.S: Likewise.
403         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
404         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
405         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
406         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
407         * sysdeps/standalone/i386/start.S: Likewise.
408         * sysdeps/standalone/i960/start.S: Likewise.
409         * sysdeps/standalone/m68k/m68020/start.S: Likewise.
410         * sysdeps/unix/arm/start.c: Likewise.
411         * sysdeps/unix/bsd/osf/alpha/start.S: Likewise.
412         * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
413         * sysdeps/unix/sparc/start.c: Likewise.
414         * sysdeps/unix/start.c: Likewise.
415         * sysdeps/unix/sysv/aix/start.s: Likewise.
416         * sysdeps/unix/sysv/irix4/start.c: Likewise.
417         * sysdeps/x86_64/elf/initfini.c: Likewise.
418         * sysdeps/x86_64/elf/start.S: Likewise.
420 2004-08-15  Roland McGrath  <roland@redhat.com>
422         [BZ #227]
423         * sysdeps/unix/sysv/linux/kernel-features.h
424         (__ASSUME_BRK_PAGE_ROUNDED): New macro.
425         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
426         [! __ASSUME_BRK_PAGE_ROUNDED]: Adjust the break up if it falls within
427         the partial page after the dynamic linker's own data segment.
429 2004-08-15  Ulrich Drepper  <drepper@redhat.com>
431         * sysdeps/posix/getaddrinfo.c (gaih_inet): Optimize generation of
432         v4-mapped addresses a bit.
433         (gethosts): Move alloca out of macro, so that it is done only once.
435         * sysdeps/posix/getaddrinfo.c (gaih_addrtuple): Change type of
436         addr to avoid casts.
437         (gethosts): Removed.
438         (gethosts2): Renamed to gethosts.  Make it usable for family !=
439         AF_UNSPEC.  Fix AI_V4MAPPED.
440         (gaih_inet): Remove use of old gethosts.  Always use what used to be
441         gethosts2.  If entry is found, try to use the same NSS module's
442         getcanonname_r function.  Use gethostbyaddr for AI_CANONNAME only
443         if getcanonname_r was not available.  Fix filtering of AI_V4MAPPED
444         addresses.  Numerous cleanups.
445         * resolv/nss_dns/dns-canon.c: New file.
446         * resolv/Makefile (libnss_dns-routines): Add dns-canon.
447         * resolv/Versions (libnss_dns): Add _nss_dns_getcanonname_r.
449         * elf/Makefile: Add rules to build and run tst-dlopenrpath.
450         * elf/tst-dlopenrpath.c: New file.
451         * elf/tst-dlopenrpathmod.c: New file.
453         * intl/tst-gettext.sh: Adjust for change of de.po file to UTF-8.
454         * intl/tst-gettext.c: Likewise.
456         * nss/getent.c (ahosts_keys_int): Correctly print IPv6 addresses.
458         * nss/getent.c: Allow queries for getaddrinfo with AF_INET and
459         AF_INET6.
461 2004-08-14  Ulrich Drepper  <drepper@redhat.com>
463         * po/de.po: Update from translation team.
465 2004-08-14  Roland McGrath  <roland@frob.com>
467         * sysdeps/mach/configure: Regenerated.
468         * sysdeps/mach/hurd/configure: Regenerated.
470 2004-08-14  Ulrich Drepper  <drepper@redhat.com>
472         * sysdeps/posix/getaddrinfo.c (getaddrinfo): If RFC3484 sorting is
473         performed, make sure it is still the first entry after sorting
474         that has the ai_canonname information.
476         * sysdeps/posix/getaddrinfo.c (gaih_inet): Really set ai_canonname
477         only in one entry.
479 2004-08-13  Daniel Jacobowitz  <dan@debian.org>
481         * scripts/output-format.sed: Handle default case of three-argument
482         OUTPUT_FORMAT.
484         * sysdeps/arm/machine-gmon.h (mcount_internal): Mark as
485         __attribute_used__.
487 2004-08-13  Ulrich Drepper  <drepper@redhat.com>
489         * nss/getent.c (ahosts_keys): ai_canonname is NULL for all but the
490         first returned entry.  Print name only if not NULL.
492         * nis/nss_nis/nis-netgrp.c: Remove locking by using data in struct
493         __netgrent object passed in instead of global variables.
494         Optimize.
495         * nis/nss_nisplus/nisplus-netgrp.c: Remove locking by using data
496         in struct __netgrent object passed in instead of global variables.
497         * inet/netgroup.h (struct __netgrent): Add service_user field.
498         Move cursor in anonymous union, add new field location to that
499         union.
500         * inet/getnetgrent_r.c: Extensive rewrite to really enable
501         concurrent uset of set/get/endnetgrent and innetgr.
502         Reported by Chuck Simmons.
504         * inet/netgroup.h (struct name_list): Replace name pointer with
505         zero-sized array.
506         * inet/getnetgrent_r.c: Adjust code for change in name_list
507         layout.  Numerous strdup and free calls removed.
509         * elf/sprof.c (read_symbols): When comparing aliases, prefer
510         non-hidden over hidden symbols and strong over weak symbols
511         if both don't start with '_'.
513         * malloc/malloc.c: Use strong_alias instead of weak_alias wherever
514         possible.
516 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
518         * sysdeps/unix/sysv/linux/bits/resource.h: Define non-standard
519         RUSAGE_ enums as __RUSAGE_ and adjust macros accordingly.
520         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
521         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
522         * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
523         Define non-standard RLIMIT_ enums as __RLIMIT_ and adjust macros
524         accordingly.
526 2004-08-11  Andreas Schwab  <schwab@suse.de>
528         * resolv/res_libc.c: Move definition of __res_initstamp ...
529         * resolv/res_init.c: ... here.
531 2004-08-10  GOTO Masanori  <gotom@debian.or.jp>
533         * locale/C-time.c: Change default ERA value from NULL to "".
534         * locale/tst-C-locale.c: Add test case for ERA keywords.
536 2004-08-12  Ulrich Drepper  <drepper@redhat.com>
538         * sysdeps/unix/sysv/linux/bits/resource.h: Define non-standard
539         RLIMIT__ enums as __RLIMIT_ and adjust macros accordingly.
540         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
541         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
543 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
545         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_SIGPENDING,
546         RLIMIT_MSGQUEUE): Add.
547         (RLIMIT_NLIMITS, RLIM_NLIMITS): Adjust.
548         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIMIT_SIGPENDING,
549         RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
550         (RLIM_NLIMITS): Adjust.
551         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIMIT_SIGPENDING,
552         RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
553         (RLIM_NLIMITS): Adjust.
554         * sysdeps/unix/sysv/linux/mips/bits/resource.h (RLIMIT_SIGPENDING,
555         RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
556         (RLIM_NLIMITS): Adjust.
558 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
560         * resolv/res_query.c (__libc_res_nsearch): Protect the debugging
561         printf with #ifdef DEBUG and RES_DEBUG check.
563         * sysdeps/unix/sysv/linux/bits/shm.h: Move __END_DECLS after
564         __USE_MISC #endif.
565         * sysdeps/generic/bits/shm.h: Add __BEGIN_DECLS for __getpagesize
566         declaration.
567         * sysdeps/gnu/bits/shm.h: Likewise.
568         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
569         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
570         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
571         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
572         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
574 2004-08-12  Ulrich Drepper  <drepper@redhat.com>
576         * po/ca.po: Update from translation team.
578 2004-08-11  Ulrich Drepper  <drepper@redhat.com>
580         * sysdeps/unix/sysv/linux/bits/shm.h: Add __BEGIN_DECLS for
581         __getpagesize declaration.
583 2004-08-11  Roland McGrath  <roland@redhat.com>
585         * configure.in (libc_cv_cpp_asm_debuginfo): Add missing braces around
586         commands inside &&.
587         Reported by Andreas Schwab <schwab@suse.de>.
588         * configure: Regenerated.
590         * posix/tst-waitid.c (do_test): Ignore SIGCHLD before cleanup SIGKILL.
592 2004-08-11  Ulrich Drepper  <drepper@redhat.com>
594         * time/tzset.c (tzset_internal): Add new parameter which is
595         nonzero if called through tzset.  Use TZDEFAULT name including
596         name comparison if the new parameter is zero.  This means implicit
597         tzset calls will not cause files to be opened and read by tzfile.c
598         all the time.
600 2004-08-11  Jakub Jelinek  <jakub@redhat.com>
602         * rt/tst-timer2.c (do_test): If timer_create fails, just continue.
603         * rt/tst-timer4.c (do_test): If one of the timer_create calls fails,
604         return 1 immediately.
606         * time/tzfile.c (__tzfile_read): Free transitions only if it will
607         not be reused.
609         * sysdeps/ieee754/dbl-64/mpa.c: Include <sys/param.h>.
610         * sysdeps/ieee754/dbl-64/mpa.h (MAX, MIN): Macros removed.
612         * stdio-common/tst-popen.c: Include <string.h>.
614         * resolv/res_send.c (__libc_res_nsend): Only define TMPBUF #if DEBUG.
616         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Remove noreturn
617         attribute.  Return NULL instead of calling pthread_exit at the end.
619 2004-08-11  Roland McGrath  <roland@redhat.com>
621         * iconvdata/testdata/ISO-2022-JP-3: Regenerated.
623 2004-08-10  Alfred M. Szmidt  <ams@kemisten.nu>
625         * sysdeps/generic/bits/in.h (struct ip_mreq): Remove definition.
627 2004-08-10  Jakub Jelinek  <jakub@redhat.com>
629         * libio/bits/stdio.h (fread_unlocked): Cast 0 to (size_t).
630         (fwrite_unlocked): When checking if size * n is <= 8, cast each
631         argument to size_t individually.  Cast n to (void) instead of
632         (size_t), surround with (), return (size_t) 0 if one of n or size
633         is 0.  [BZ #316]
634         * stdio-common/Makefile (tests): Add tst-unlockedio.
635         * stdio-common/tst-unlockedio.c: New test.
637 2004-08-09  Roland McGrath  <roland@frob.com>
639         * manual/install.texi (Supported Configurations): Replace bug-glibc
640         mention with web URL.
641         * INSTALL: Regenerated.
642         * locale/iso-3166.def: Likewise, in comment.
643         * locale/iso-4217.def: Likewise.
644         * locale/iso-639.def: Likewise.
645         * posix/cpio.h: Remove bug reporting comment.
647 2004-08-09  Ulrich Drepper  <drepper@redhat.com>
649         * libio/bits/stdio.h (fread_unlocked): Add a couple of (size_t)
650         casts to handle funny calls with floating point argument values
651         and signed values correctly and without warning.
652         (fwrite_unlocked): Likewise.  [BZ #309]
654         * malloc/memusage.c (me): Use creat64, not creat.
655         * malloc/memusagestat.c: Fix handling of very large sizes.  [BZ #285]
656         Patch by Guy Maor <guymaor@yahoo.com>.
658         * elf/ldconfig.c (options): Mark parameter option names as
659         translatable.  [BZ #253]  Patch by Jakub Bogusz <qboosh@pld-linux.org>.
661         * iconv/gconv_charset.h (strip): Also allow comma which is what is
662         used to separate options.  [BZ #194]
664 2004-08-09  Roland McGrath  <roland@redhat.com>
666         * FAQ.in: Refer to web pages instead of bug-glibc.
667         * FAQ: Regenerated.
669         * time/strptime_l.c: #include <stdbool.h>, `bool' used in last change.
671 2004-08-09  Ulrich Drepper  <drepper@redhat.com>
673         * time/tzset.c (tzset_internal): If TZ is not set do not compare
674         old and new tz value since it might be /etc/localtime in both
675         cases although the file changed.  [BZ #154]
676         Patch by Christian Franke <franke@computer.org>.
678         * time/tzfile.c (__tzfile_read): Determine dev/ino of file.
679         Compare with values of previously opened file.  Don't do anything
680         is they match.
682 2004-08-08  Ulrich Drepper  <drepper@redhat.com>
684         * elf/dl-load.c (_dl_map_object): If __RTLD_CALLMAP flag is set,
685         reset loader before the actual loading.
686         * elf/dl-open.c (dl_open_worker): If file name contains no path
687         element determine map of caller.  Pass caller map in this case to
688         _dl_map_object.  Set __RTLD_CALLMAP in mode.
689         * include/dlfcn.h (__RTLD_CALLMAP): Define.  [BZ #116]
690         Patch by Greg Wolodkin <greg@mathworks.com>.
692         * misc/syslog.c (openlog_internal): Always try both UDP and TCP.
693         [BZ #108]  Patch mainly by Bjorn Andersson <bjorn@iki.fi>.
695         * configure.in: Also recognize i786. [BZ #106]
696         Patch by <pluto@pld-linux.org>.
698         * resolv/res_query.c (__libc_res_nsearch): Correctly test whether
699         name contains any dots. [BZ #95]
701         * resolv/res_send.c: Compiling with DEBUG defined works again.
702         * resolv/gethnamaddr.c (dprintf): Renamed to Dprintf.  Adjust all
703         callers.
705         * resolv/tst-leaks.c (TIMEOUT): Define so that if no server is
706         available the process is not killed. [BZ #41]
708         * intl/tst-gettext.c (main): Improve some messages. [BZ #33]
710         * time/strptime_l.c (__strptime_internal): Fix handling of %Ey.
711         [BZ #28]
713         * po/sv.po: Update from translation team.
715 2004-08-07  Ulrich Drepper  <drepper@redhat.com>
717         * inet/netinet/in.h: Add more const to the setipv4soucefilter,
718         getsourcefilter, and setsourcefilter parameter list.
719         * sysdeps/generic/setipv4sourcefilter.c: Likewise.
720         * sysdeps/generic/getsourcefilter.c: Likewise.
721         * sysdeps/generic/setsourcefilter.c: Likewise.
722         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
723         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
724         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
726         * po/tr.po: Update from translation team.
728 2004-08-06  Ulrich Drepper  <drepper@redhat.com>
730         * iconvdata/jisx0213.h (jisx0213_added_in_2004_p): Fix typo.
731         Reported by Paolo Bonzini.
733 2004-08-06  Jakub Jelinek  <jakub@redhat.com>
735         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add
736         always_inline.
737         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_runtime_setup,
738         elf_machine_fixup_plt, elf_machine_plt_conflict): Likewise.
740         * sysdeps/unix/sysv/linux/netatalk/at.h: Include bits/sockaddr.h
741         before including linux/atalk.h.
743         * resolv/res_libc.c: Include atomic.h.
745         * intl/finddomain.c (free_mem): Rename to...
746         (_nl_finddomain_subfreeres): ... this.  Add
747         __libc_freeres_fn_section.
748         * intl/loadmsgcat.c (_nl_unload_domain): Add
749         __libc_freeres_fn_section.
750         * intl/gettextP.h (_nl_unload_domain): Move into #ifdef _LIBC.
751         Add attribute_hidden.
752         (_nl_findomain_subfreeres): New prototype.
753         * iconv/gconv_db.c (free_mem): Call _nl_findomain_subfreeres.
755 2004-07-30  Guido Guenther  <agx@sigxcpu.org>
757         * nss/getent.c (passwd_keys): Use strtoul instead of isdigit to
758         test if the key is numeric or not.
759         (group_keys): Likewise.
761 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
763         * inet/netinet/in.h: Define struct ip_msfilter, IP_MSFILTER_SIZE,
764         struct group_filter, and GROUP_FILTER_SIZE.
765         * include/sys/socket.h: Declare __getsockopt.
766         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: New file.
767         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: New file.
768         * sysdeps/unix/sysv/linux/setsourcefilter.c: New file.
769         * sysdeps/unix/sysv/linux/getsourcefilter.c: New file. [BZ #211]
771         * po/ko.po: Update from translation team.
773 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
775         * hesiod/hesiod.c (__hesiod_res_get): Use calloc instead of malloc +
776         memset.
777         (__hesiod_res_set): Free nsaddrs.
779         * include/resolv.h (__res_maybe_init): Add prototype.
780         * resolv/resolv.h (struct __res_state): Add _u._ext.initstamp field.
781         * resolv/Versions (libc): Add __res_maybe_init@@GLIBC_PRIVATE.
782         * resolv/res_libc.c (__res_initstamp, lock): New variables.
783         (res_init): Increase __res_initstamp.
784         (__res_maybe_init): New function.
785         * resolv/res_init.c (__res_vinit): Initialize _u._ext.initstamp.
786         * hesiod/hesiod.c (__hesiod_res_get): Use __res_maybe_init instead
787         of RES_INIT check and {res_ninit,__res_ninit,res_init} call.
788         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
789         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
790         _nss_dns_gethostbyaddr_r): Likewise.
791         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
792         _nss_dns_getnetbyaddr_r): Likewise.
793         * resolv/gethnamaddr.c (gethostbyname, gethostbyname2,
794         gethostbyaddr): Likewise.
795         * resolv/res_data.c (fp_nquery, res_mkquery, res_mkupdate,
796         res_isourserver, res_sendsigned, res_update, res_search,
797         res_querydomain): Likewise.
798         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Likewise.
799         * nss/digits_dots.c (__nss_hostname_digits_dots): Likewise.
800         * nss/getnssent_r.c (__nss_setent, __nss_endent, __nss_getent_r):
801         Likewise.
803 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
805         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set ai_family for
806         V4-mapped IPv6 addresses and req->ai_family==AF_INET.
807         Reported by A. Guru <a.guru@sympatico.ca>.
809         * po/sv.po: Update from translation team.
810         * po/sk.po: Likewise.
811         * po/pl.po: Likewise.
813 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
814             Ulrich Drepper  <drepper@redhat.com>
816         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Don't read more input
817         characters than necessary.
819 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
821         * wcsmbs/Makefile (tests): Add tst-mbsrtowcs.
822         * wcsmbs/tst-mbsrtowcs.c: New file.
824         * po/fr.po: Update from translation team.
826 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
828         * resolv/inet_pton.c (inet_pton4): Disallow octal numbers.  Reported
829         by A. Guru <a.guru@sympatico.ca>.  [BZ #295]
831 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
833         * po/nl.po: Update from translation team.
835         * sysdeps/posix/getaddrinfo.c (gaih_inet): Recognize all the IPv4
836         numeric address formats inet_addr knows.
837         (getaddrinfo): Allow AI_NUMERICSERV flag.
838         If neither IPv4 nor IPv6 interface is present we cannot make any
839         decision for AI_ADDRCONFIG.  Fail if AI_NUMERICSERV is set and the
840         string is not just a number.  Remove useless freeaddrinfo call.
841         * resolv/netdb.h (AI_NUMERICSERV): Define.
842         Based on a patch by a.guru@sympatico.ca.
844 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
846         * stdlib/strfmon_l.c (__vstrfmon_l): Memset whole info structure
847         instead of trying to initialize some, but not all, fields one by
848         one.
849         * stdio-common/printf_size.c (printf_size): Initialize fb_info
850         structure with *info instead of trying to initialize some, but not
851         all, fields from it.
853         * nscd/connections.c (handle_request): Check if req->type is in
854         LASTDBREQ .. LASTREQ range instead of req.
856         * locale/programs/linereader.c (lr_create): Initialize
857         lr->return_widestr to 0.
859         * elf/dl-close.c (free_slotinfo): Add __libc_freeres_fn_section.
860         (free_mem): Call free_slotinfo just once.
862         * stdio-common/tst-fmemopen.c (main): Check for MAP_FAILED instead
863         of NULL.
865         * locale/localeinfo.h (_nl_locale_subfreeres): New prototype.
866         * locale/setlocale.c (free_category): Add __libc_freeres_fn_section.
867         (free_mem): Rename to _nl_locale_subfreeres.
868         * iconv/gconv_db.c: Include locale/localeinfo.h.
869         (free_derivation, free_modules_db): Add __libc_freeres_fn_section.
870         (free_mem): Call _nl_locale_subfreeres.
871         * iconv/gconv_dl.c (do_release_all): Add __libc_freeres_fn_section.
873 2004-08-04  Roland McGrath  <roland@frob.com>
875         * Makeconfig ($(common-objpfx)config.status):
876         Fix typo: $(add_ons) -> $(add-ons).
877         (Makeconfig-add-on): New variable.  When doing $(sysdep-makeconfigs)
878         include, use black magic to get it set to an add-on's name during the
879         include of the add-on's Makeconfig.
881         * configure.in: Use variable name `libc_add_on' when sourcing add-on
882         configure fragments, so they can refer to this.
883         * configure: Regenerated.
885 2004-08-04  Roland McGrath  <roland@redhat.com>
887         * posix/tst-waitid.c (test_child): Sleep a second before stopping.
888         (do_test): Bump sleep to three seconds.
889         (sigchld, check_sigchld): New functions.
890         (do_test): Handle SIGCHLD and check for getting the right details.
892         * posix/tst-waitid.c (do_test): Kill the child process when bailing
893         out early on some failure.
894         [WCONTINUED]: Test WCONTINUED functionality.
896 2004-08-03  Ulrich Drepper  <drepper@redhat.com>
898         * nscd/connections.c (handle_request): Print more descriptive
899         message for invalid request types.
901 2004-08-02  Jakub Jelinek  <jakub@redhat.com>
903         * iconvdata/ibm932.c (BODY): Avoid binary search for ch >= 0xffff.
904         Always treat high as highest number in range + 1.
905         * iconvdata/ibm943.c (BODY): Likewise.
907 2004-07-31  Bruno Haible  <bruno@clisp.org>
909         * iconvdata/JISX0213.TXT: Updated to JISX0213 plane 1 version 2004.
910         * iconvdata/jisx0213.c (__jisx0213_to_ucs_main,
911         __jisx0213_to_ucs_pagestart, __jisx0213_from_ucs_level1,
912         __jisx0213_from_ucs_level2): Regenerated.
913         * iconvdata/jisx0213.h (jisx0213_added_in_2004_p): New function.
914         * iconvdata/iso-2022-jp-3.c (JISX0213_1_2000_set): Renamed from
915         JISX0213_1_set.
916         (JISX0213_1_2004_set): New enum value.
917         (BODY for FROM_LOOP): Treat ESC $ ( Q like ESC $ ( O.
918         (BODY for TO_LOOP): For JISX 0213 plane 1 characters, emit ESC $ ( O
919         when possible, ESC $ ( Q when needed.
920         * iconvdata/testdata/EUC-JISX0213: Add the 10 new characters.
921         * iconvdata/testdata/EUC-JISX0213..UTF8: Update.
922         * iconvdata/testdata/SHIFT_JISX0213: Add the 10 new characters.
923         * iconvdata/testdata/SHIFT_JISX0213..UTF8: Update.
924         * iconvdata/testdata/ISO-2022-JP-3: Add the 10 new JISX0213 characters.
925         * iconvdata/testdata/ISO-2022-JP-3..UTF8: Update.
927 2004-07-22  Bruno Haible  <bruno@clisp.org>
929         * iconvdata/gconv-modules (ISO-8859-7): Add alias ISO_8859-7:2003.
931 2004-07-29  David S. Miller  <davem@redhat.com>
933         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy): Optimize
934         better for smaller than 256 byte copies.  Also, use only one
935         unrolled loop instead of two for the large copy case.
937 2004-07-30  Richard Henderson  <rth@redhat.com>
939         * sysdeps/alpha/divq.S: Save t3 before it gets clobbered.
940         * sysdeps/alpha/remq.S: Likewise.
941         * sysdeps/alpha/div.S, sysdeps/alpha/ldiv.S: Rewrite with the
942         new division algorithms in divl.S and divq.S respectively.
944 2004-07-28  GOTO Masanori  <gotom@debian.or.jp>
946         * timezone/asia: Update from tzdata2004b.
947         * timezone/backward: Likewise.
948         * timezone/europe: Likewise.
949         * timezone/iso3166.tab: Likewise.
950         * timezone/leapseconds: Likewise.
951         * timezone/northamerica: Likewise.
952         * timezone/southamerica: Likewise.
953         * timezone/zone.tab: Likewise.
955         * timezone/private.h: Update from tzcode2004b.
956         * timezone/zic.c: Likewise.
958 2004-07-27  Ulrich Drepper  <drepper@redhat.com>
960         * nscd/grpcache.c (cache_addgr): If necessary, add entry also
961         under the name the user provided.
962         * nscd/pwdcache.c (cache_addpw): Likewise.
964 2004-07-26  Roland McGrath  <roland@redhat.com>
966         * sysdeps/posix/waitid.c [WEXITED]: Clear WEXITED bit in OPTIONS for
967         call to __waitpid.
969 2004-07-26  Ulrich Drepper  <drepper@redhat.com>
971         * nscd/hstcache.c (cache_addhst): Fix two scenarios which lead to
972         memory leaks.
974         * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Assign pointer for
975         new buffer at the right time.
976         Reported by Jakub Bogusz <qboosh@pld-linux.org>.
978 2004-07-25  Ulrich Drepper  <drepper@redhat.com>
980         * inet/Versions [libc, GLIBC_2.3.4]: Add getipv4sourcefilter,
981         getsourcefilter, setipv4sourcefilter, and setsourcefilter.
982         * inet/Makefile (routines): Likewise.
983         * inet/netinet/in.h: Add prototypes for getipv4sourcefilter,
984         getsourcefilter, setipv4sourcefilter, and setsourcefilter.
985         * sysdeps/generic/getipv4sourcefilter.c: New file.
986         * sysdeps/generic/setipv4sourcefilter.c: New file.
987         * sysdeps/generic/getsourcefilter.c: New file.
988         * sysdeps/generic/setsourcefilter.c: New file.
990 2004-07-17  Steven Munroe  <sjmunroe@us.ibm.com>
992         * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling
993         for POWER4 machines.
995 2004-07-21  Jakub Jelinek  <jakub@redhat.com>
997         [BZ #274]
998         * stdlib/strtod_l.c (INTERNAL (__STRTOF)): Fix used >=
999         BITS_PER_MP_LIMB shifting up.
1000         * stdlib/tst-strtod.c (main): Add new tests.
1002 2004-07-23  Jakub Jelinek  <jakub@redhat.com>
1004         [BZ #282]
1005         * libio/iopopen.c (_IO_new_popen): Use _IO_init instead of
1006         _IO_no_init.  Remove wd from struct locked_FILE.
1007         (_IO_wproc_jumps): Remove.
1008         Reported by Andrew Josey <a.josey@opengroup.org>.
1009         * stdio-common/Makefile (tests): Add tst-popen.
1010         * stdio-common/tst-popen.c: New test.
1012 2004-07-23  Ulrich Drepper  <drepper@redhat.com>
1014         * posix/bits/posix1_lim.h: Fix values for _POSIX_CHILD_MAX and
1015         _POSIX_OPEN_MAX.  Add _POSIX_HOST_NAME_MAX, _POSIX_SYMLINK_MAX,
1016         _POSIX_SYMLOOP_MAX, and _POSIX_RE_DUP_MAX.
1017         Reported by Andrew Josey.
1019         * include/features.h: Document _POSIX_C_SOURCE == 200112L.
1021         * grp/grp.h: Define gid_t if __USE_XOPEN2K is defined.
1022         * pwd/pwd.h: Define uid_t and gid_t if __USE_XOPEN2K is defined.
1023         * io/sys/stat.h: Define dev_t, gid_t, ino_t, mode_t, nlink_t,
1024         off_t, time_t, and uid_t if __USE_XOPEN2K is defined.
1025         * signal/signal.h: Define pid_t if __USE_XOPEN2K is defined.
1026         * posix/unistd.h: Define gid_t, off_t, pid_t, uid_t, and
1027         useconds_t if __USE_XOPEN2K is defined.
1028         * io/utime.h: Define time_t if __USE_XOPEN2K is defined.
1029         * libio/stdio.h: Declare fseeko and ftello if __USE_XOPEN2K is defined.
1031 2004-07-19  Thorsten Kukuk  <kukuk@suse.de>
1033         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
1034         allocate memory for large temporary variables with alloca.
1036 2004-07-22  Ulrich Drepper  <drepper@redhat.com>
1038         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Compatibility
1039         code must have version GLIBC_2.0.  Patch by Dwayne McConnell.
1041         * nscd/nscd_getgr_r.c (nscd_getgr_r): Avoid read call with NULL
1042         pointer and zero length.
1044 2004-07-21  Ulrich Drepper  <drepper@redhat.com>
1046         * nscd/cache.c (prune_cache): Print correct list when debugging.
1048 2004-07-21  Jakub Jelinek  <jakub@redhat.com>
1050         * resolv/res_libc.c (res_init): If RES_INIT is set and
1051         _res.nscount > 0, call __res_nclose and free nsaddrs.
1052         * resolv/Makefile: Add rules to build and run tst-leaks2.
1053         * resolv/tst-leaks2.c: New test.
1055 2004-07-21  Ulrich Drepper  <drepper@redhat.com>
1057         * intl/libintl.h: Don't define macros for C++.
1058         Patch by Goto Masanori.
1060 2004-07-22  GOTO Masanori  <gotom@debian.or.jp>
1062         [BZ #276]
1063         * include/arpa/inet.h: Change inet_aton type from in_addr_t to int.
1064         * inet/arpa/inet.h: Likewise.
1065         * resolv/inet_addr.c: Likewise.
1067 2004-07-21  Alexandre Oliva  <aoliva@redhat.com>
1069         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Add semtimedop.
1071 2004-07-20  Roland McGrath  <roland@redhat.com>
1073         * configure.in (add_ons): Substitute this.  Move $add_ons handling
1074         after AC_CANONICAL_HOST and default setting of $machine et al.
1075         Don't set $subdirs from $add_ons.
1076         Instead, source add-on/configure fragments early on.
1077         (base_machine): If it's already set, don't set it based on $machine.
1078         (libc_config_ok): New variable, set to no.  If an add-on fragment sets
1079         it to yes, skip the  tuple sanity check as if --enable-hacker-mode.
1080         (sysnames): Try appending add-on names after machine as well.
1081         * config.make.in (add-ons): Set from @add_ons@ instead of @subdirs@.
1082         * Makeconfig ($(common-objpfx)config.status): Also depend on configure
1083         files in $(add_ons) dirs.
1085         * sysdeps/unix/sysv/linux/bits/in.h (struct ip_mreq): Remove
1086         definition, now in netinet/in.h proper.
1088 2004-07-20  Alexandre Oliva  <aoliva@redhat.com>
1090         * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h):
1091         Sort by syscalls.  Make sure we get headers such as sgidefs.h from
1092         the build tree before just-installed ones.
1094         * sysdeps/mips/atomicity.h: Use standard names for ABI macros,
1095         include sgidefs.h where appropriate.
1096         * sysdeps/mips/dl-machine.h: Likewise.
1097         * sysdeps/mips/machine-gmon.h: Likewise.
1098         * sysdeps/mips/bits/setjmp.h: Likewise.
1099         * sysdeps/mips/fpu/bits/mathdef.h: Likewise.
1100         * sysdeps/mips/mips64/__longjmp.c: Likewise.
1101         * sysdeps/mips/mips64/setjmp_aux.c: Likewise.
1102         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
1103         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
1104         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1105         * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
1106         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1107         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
1108         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
1109         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
1110         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
1111         * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: Likewise.
1112         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
1113         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
1114         * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: Likewise.
1115         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
1116         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
1117         * sysdeps/unix/sysv/linux/mips/sys/user.h: Likewise.
1118         * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h):
1119         Likewise.
1120         * sysdeps/unix/sysv/linux/mips/configure.in (asm-unistd.h):
1121         Likewise.
1123         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Update to use
1124         _dl_lookup_symbol_x.
1125         (elf_machine_runtime_link_map): Don't INTUSE _dl_signal_error.
1127 2004-07-20  Ulrich Drepper  <drepper@redhat.com>
1129         * inet/netinet/in.h: Define struct ip_mreq and struct
1130         ip_mreq_source.
1131         Define struct group_req and struct group_source_req.
1132         * sysdeps/unix/sysv/linux/bits/in.h: Define IP_UNBLOCK_SOURCE,
1133         IP_BLOCK_SOURCE, IP_ADD_SOURCE_MEMBERSHIP,
1134         IP_DROP_SOURCE_MEMBERSHIP, IP_MSFILTER, MCAST_JOIN_GROUP,
1135         MCAST_BLOCK_SOURCE, MCAST_UNBLOCK_SOURCE, MCAST_LEAVE_GROUP,
1136         MCAST_JOIN_SOURCE_GROUP, MCAST_LEAVE_SOURCE_GROUP, and
1137         MCAST_MSFILTER.
1138         Define MCAST_INCLUDE and MCAST_EXCLUDE.
1140         * iconvdata/gconv-modules: Add alias for IBM874 [BZ #244].
1142 2004-07-19  Jakub Jelinek  <jakub@redhat.com>
1144         [BZ #258]
1145         * math/libm-test.inc (max_value, min_value): New variables.
1146         (initialize): Initialize them.
1147         (pow_test): Add a couple of new tests.
1148         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Don't generate invalid
1149         exception if |y| >= 1U<<31.
1150         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Don't generate invalid
1151         exception if |y| >= 1L<<63.
1152         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
1153         If y*log2(x) overflows to +-inf, return still +inf/+0 instead of NaN.
1154         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
1156 2004-07-18  Ulrich Drepper  <drepper@redhat.com>
1158         * nscd/pwdcache.c (cache_addpw): Optimize case of unsuccessful
1159         lookup a bit.
1160         * nscd/grpcache.c (cache_addgr): Likewise.
1161         * nscd/hstcache.c (cache_addhst): Likewise.
1163 2004-07-10  GOTO Masanori  <gotom@debian.or.jp>
1165         * sysdeps/s390/s390-32/elf/start.S: Remove symbol _fp_hw.
1166         * sysdeps/s390/s390-64/elf/start.S: Likewise.
1168 2004-04-16  Andreas Schwab  <schwab@suse.de>
1170         * sysdeps/ia64/bits/atomic.h: Cast first argument of
1171         __sync_bool_compare_and_swap_si correct to void*.
1173 2004-07-17  Ulrich Drepper  <drepper@redhat.com>
1175         * iconv/iconv_prog.c (print_known_names): Make machine-readable
1176         output even less cluttered.
1178 2004-07-16  Steven Munroe  <sjmunroe@us.ibm.com>
1180         [BZ #269]
1181         * setjmp/Makefile (tests): Add bug269-setjmp.
1182         * setjmp/bug269-setjmp.c: New file.
1183         * sysdeps/powerpc/powerpc64/__longjmp-common.S [SHARED && !IS_IN_rtld]:
1184         Store R2 from jmpbuf in callers TOC save area.
1185         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S [SHARED && !IS_IN_rtld]:
1186         Store R2 in TOC save area.
1187         * sysdeps/powerpc/powerpc64/setjmp-common.S [SHARED && !IS_IN_rtld]:
1188         Copy TOC save area from previous frame as R2 (TOC) in jmpbuf.
1190 2004-07-16  Jakub Jelinek  <jakub@redhat.com>
1192         * locale/newlocale.c: Include bits/libc-lock.h.
1193         (__libc_setlocale_lock): Extern decl.
1194         (__newlocale): Use it.
1195         Reported by Ulrich Weigand <Ulrich.Weigand@de.ibm.com>.
1197 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
1199         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Remove
1200         static inline __attribute ((always_inline)).  Don't define if
1201         NO_CANCELLATION.
1202         (__libc_fcntl): Use INLINE_SYSCALL directly instead of
1203         __fcntl_nocancel.
1204         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__fcntl_nocancel):
1205         Remove static inline __attribute ((always_inline)).  Don't define
1206         if NO_CANCELLATION.
1207         (__libc_fcntl): Use INLINE_SYSCALL directly instead of
1208         __fcntl_nocancel.
1209         * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Define to
1210         __libc_fcntl if NO_CANCELLATION and __ASSUME_FCNTL64 == 0.
1211         Don't define at all if NO_CANCELLATION and __ASSUME_FCNTL64 > 0.
1212         (__libc_fcntl): Don't define if __fcntl_nocancel is a macro.
1214         [BZ #262]
1215         * sysdeps/i386/elf/start.S (_start): Use @GOT instead of @GOTOFF
1216         for main.
1217         * elf/Makefile: Add rules to build and run tst-pie1.
1218         * elf/tst-pie1.c: New test.
1219         * elf/tst-piemod1.c: New file.
1221 2004-07-14  Jakub Jelinek  <jakub@redhat.com>
1223         [BZ #266]
1224         * manual/string.texi (l64a): Note that the static buffer is 7 bytes
1225         long.  Rewrite example code so that it takes into account l64a output
1226         shorter than 6 characters.
1227         Reported by Julian Graham <julian.graham@aya.yale.edu>.
1229 2004-07-14  Kaz  Kojima  <kkojima@rr.iij4u.or.jp>
1231         * sysdeps/sh/dl-machine.h: Don't reset _dl_starting_up here.
1232         (elf_machine_rela_relative): Remove unused valiable.
1234 2004-07-12  Paul Eggert  <eggert@cs.ucla.edu>
1236         [BZ #263]
1237         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Don't store
1238         outside the buffer if the read returns 0.  __strtod_l can't set
1239         endp to NULL, so remove a test for that case.
1241 2004-07-12  Roland McGrath  <roland@redhat.com>
1243         * manual/signal.texi (Interrupted Primitives): Make clear that
1244         TEMP_FAILURE_RETRY evaluates its expression as long int and compares
1245         it to -1 to define "failure".
1247 2004-07-10  Ulrich Drepper  <drepper@redhat.com>
1249         * elf/ldconfig.c: Define PROCINFO_CLASS as static before including
1250         ldsodefs.h.
1251         * sysdeps/generic/ldsodefs.h: Only define PROCINFO_CLASS if it is not
1252         already defined.
1253         * sysdeps/i386/dl-procinfo.c: Define PROCINFO_CALLS only if not
1254         already defined.
1256         * elf/rtld.c (print_statistics): Mark with noinline attribute.
1257         * sysdeps/i386/dl-machine.h (elf_machine_rel): Mark with always_inline
1258         attribute.
1259         (elf_machine_rel_relative): Likewise.
1261         * include/string.h: Add libc_hidden_proto for __strtok_r and
1262         __strsep_g.
1263         * sysdeps/generic/strsep.c: Add libc_hidden_def.
1264         * sysdeps/generic/strtok_r.c: Likewise.
1265         * sysdeps/i386/strtok_r.S: Add alias for internal symbol.
1266         * sysdeps/i386/i686/strtok_r.S: Likewise.
1267         * sysdeps/x86_64/strtok_r.S: Likewise.
1269 2004-07-09  Alexandre Oliva  <aoliva@redhat.com>
1271         * inet/getnetgrent_r.c (internal_setnetgrent): Make it hidden
1272         instead of internal-linkage, such that we can alias to it.
1273         (internal_endnetgrent, internal_getnetgrent_r): Likewise.
1275 2004-07-09  Ulrich Drepper  <drepper@redhat.com>
1277         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Move attribute
1278         to the front for gcc 3.5+.
1279         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise.
1281         * include/fcntl.h: Don't declare __fcntl_nocancel here if
1282         NO_CANCELLATION is defined.
1284 2004-07-07  Jakub Jelinek  <jakub@redhat.com>
1286         * elf/dl-fini.c (_dl_fini): Add nloaded variable, load
1287         GL(dl_nloaded) into it while still in critical section.
1289 2004-07-06  Thorsten Kukuk  <kukuk@suse.de>
1291         * nss/getent.c (print_group, print_passwd): Use %lu format for
1292         `unsigned long int' values.
1294         * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Fix syntax
1295         error typos in goto statements.
1297 2004-07-07  Roland McGrath  <roland@frob.com>
1299         * Makefile (dist-separate): New variable.
1300         (glibc-%.tar rule): Make separate tar files for add-ons listed there.
1301         Depend on their configure files.
1302         (dist-do-separate-dirs): New canned sequence to do that.
1303         (dist-separate-libidn, dist-separate-linuxthreads): New variables.
1304         (dist): Depend on add-on tar files based on $(dist-separate).
1305         (dist-version): New variable, default to $(version).
1306         (tag-for-dist, dist): Use that in place of $(version) in deps.
1308 2004-07-07  Ulrich Drepper  <drepper@redhat.com>
1310         * elf/dl-fini.c (_dl_fini): Move the unlock of the ld.so lock
1311         before the loop running the destructors.
1313 2004-05-18  Andreas Schwab  <schwab@suse.de>
1315         * elf/dl-load.c (_dl_map_object_from_fd): Use the end address of
1316         the first segment for mprotect, not l_text_end.
1318 2004-07-05  Ulrich Drepper  <drepper@redhat.com>
1320         * elf/dl-profile.c (_dl_start_profile): Compact error handling.
1321         Remove hashfraction variable.  Make kcount and kcountsize local
1322         variables.
1324         * elf/dl-init.c: Don't define and use _dl_starting_up if
1325         HAVE_INLINED_SYSCALLS is defined and the variable is not used.
1326         * elf/dl-support.c: Likewise.
1327         * elf/rtld.c: Likewise.
1328         * elf/dl-misc.c (_dl_debug_vdprintf): Use writev syscall directly
1329         if HAVE_INLINED_SYSCALLS is defined.
1330         * sysdeps/powerpc/powerpc64/dl-machine.h: Don't reset _dl_starting_up
1331         here.
1332         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
1333         * sysdeps/unix/sysv/linux/configure.in: Define HAVE_INLINED_SYSCALLS.
1334         * config.h.in: Add entry for HAVE_INLINED_SYSCALLS.
1336         * sysdeps/posix/profil.c: If compiled for ld.so, omit code which
1337         is needed to stop profiling.
1338         * elf/dl-open.c (dl_open_worker): If a newly opened object is to be
1339         profile make sure it cannot be unloaded.
1341         * sysdeps/unix/sysv/linux/dl-origin.c: Inline readlink syscall.
1343         * sysdeps/unix/sysv/linux/fcntl.c: If compiled without cancellation
1344         support, make sure the helper function is inlined.
1345         * sysdeps/unix/sysv/linux/pread.c: Likewise.
1346         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
1347         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
1348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise.
1350 2004-07-05  Jakub Jelinek  <jakub@redhat.com>
1352         * include/string.h (ffs): Add libc_hidden_builtin_proto.
1353         * sysdeps/rs6000/ffs.c (ffs): Add libc_hidden_builtin_def.
1354         * sysdeps/alpha/alphaev67/ffs.S (ffs): Likewise.
1355         * sysdeps/alpha/ffs.S (ffs): Likewise.
1356         * sysdeps/s390/ffs.c (ffs): Likewise.
1357         * sysdeps/powerpc/ffs.c (ffs): Likewise.
1358         * sysdeps/i386/ffs.c (ffs): Likewise.
1359         * sysdeps/i386/i686/ffs.c (ffs): Likewise.
1360         * sysdeps/m68k/ffs.c (ffs): Likewise.
1361         * sysdeps/generic/ffs.c (ffs): Likewise.
1362         * sysdeps/m88k/ffs.c (ffs): Likewise.
1363         * sysdeps/am29k/ffs.c (ffs): Likewise.
1364         * sysdeps/i960/ffs.c (ffs): Likewise.
1365         * sysdeps/x86_64/ffs.c (ffs): Likewise.
1367         * Makerules (check-abi): Use diff -p -U 0 instead of diff -pu0.
1369         * sysdeps/powerpc/novmx-longjmp.c (__libc_longjmp,
1370         __libc_siglongjmp): Remove symbol_version.
1371         * sysdeps/powerpc/longjmp.c (__libc_longjmp, __libc_siglongjmp):
1372         Export @@GLIBC_PRIVATE, not @@GLIBC_2.3.4.
1373         * sysdeps/powerpc/sigjmp.c (__sigjmp_save): Use strong_alias
1374         unconditionally.
1375         * sysdeps/powerpc/novmx-sigjmp.c (__sigjmp_save): Remove.
1376         * sysdeps/powerpc/powerpc32/__longjmp.S (__longjmp): Use
1377         strong_alias instead of default_symbol_version, remove
1378         symbol_version.
1379         * sysdeps/powerpc/powerpc64/__longjmp.S (__longjmp): Likewise.
1380         * sysdeps/powerpc/powerpc32/bsd-setjmp.S (__novmx__setjmp): Change
1381         into strong_alias to __novmxsetjmp.
1382         (__vmx__setjmp): Similarly with __vmxsetjmp.
1383         (__setjmp): Make it strong_alias to __vmx__setjmp, remove
1384         default_symbol_version and symbol_version.
1385         * sysdeps/powerpc/powerpc64/bsd-setjmp.S (__novmx__setjmp): Change
1386         into strong_alias to __novmxsetjmp.
1387         (__vmx__setjmp): Similarly with __vmxsetjmp.
1388         (__setjmp): Make it strong_alias to __vmx__setjmp, remove
1389         default_symbol_version and symbol_version.
1391         * nscd/nscd_getgr_r.c: Include stdio-common/_itoa.h.
1393 2004-07-05  Ulrich Drepper  <drepper@redhat.com>
1395         * elf/rtld.c (dl_main): Mark dyn_temp with attribute_relro.
1397 2004-07-04  Matthew Reppert  <arashi@kai.vm.bytemark.co.uk>
1399         * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Use libc_hidden_ver
1400         instead of libc_hidden_def.
1402 2004-07-01  Roland McGrath  <roland@redhat.com>
1404         * aclocal.m4: Add provide for AC_CONFIG_AUX_DIR_DEFAULT.
1406         * Makeconfig ($(common-objpfx)shlib-versions.v.i): Move top-level
1407         $(..)shlib-versions file to last in deps list.  This lets add-ons give
1408         more-specific matches that override defaults in the top-level file.
1410         * sysdeps/unix/sysv/linux/configure.in: If arch_minimum_kernel was
1411         already set, don't set it or libc_cv_gcc_unwind_find_fde.
1412         * sysdeps/unix/sysv/linux/configure: Regenerated.
1414 2004-07-01  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1416         * sysdeps/s390/fpu/bits/mathinline.h [__LIBC_INTERNAL_MATH_INLINES]
1417         (__ieee754_sqrt): Define as __MATH_INLINE using sqdbr instruction.
1418         (__ieee754_sqrtf): Define as __MATH_INLINE using sqebr instruction.
1419         * sysdeps/s390/fpu/e_sqrt.c: New file.
1420         * sysdeps/s390/fpu/e_sqrtf.c: New file.
1421         * sysdeps/s390/Implies: New file.
1422         * sysdeps/s390/s390-32/Implies: Remove ieee754, move
1423         ieee754/dbl-64 and ieee754/flt-32 to s390/Implies.
1424         * sysdeps/s390/s390-64/Implies: Likewise.
1426 2004-06-30  Jakub Jelinek  <jakub@redhat.com>
1428         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Include tls.h.
1429         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
1431         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (thread_start):
1432         DO_CALL (exit, 1) instead of branching to _exit.
1433         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (thread_start):
1434         Likewise.
1436         * sysdeps/s390/fpu/bits/mathinline.h: New file.
1438         * include/glob.h (glob64): Add libc_hidden_proto.
1439         * sysdeps/generic/glob64.c (glob64): Add libc_hidden_def.
1440         * sysdeps/gnu/glob64.c (glob64): Likewise.
1441         * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Likewise.
1443 2004-06-11  Jakub Jelinek  <jakub@redhat.com>
1445         * sysdeps/i386/fpu/libm-test-ulps: Update for GCC 3.4.
1446         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
1448 2004-06-11  Dwayne Grant McConnell  <dgm69@us.ibm.com>
1450         * sysdeps/powerpc/fpu/s_lround.c: Removed.
1451         * sysdeps/powerpc/fpu/s_lroundf.c: Removed.
1452         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: New file.
1453         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: New file.
1454         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: New file.
1455         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: New file.
1456         * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: Removed.
1457         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: New file.
1458         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: New file.
1459         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: New file.
1460         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: New file.
1461         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: New file.
1462         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: New file.
1463         * sysdeps/powerpc/powerpc32/fpu/s_round.S: New file.
1464         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: New file.
1465         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: New file.
1467 2004-06-30  Ulrich Drepper  <drepper@redhat.com>
1469         * include/net/if.h: Handle if_nameindex and if_freenameindex with
1470         libc_proto_hidden.
1471         * sysdeps/unix/sysv/linux/netlinkaccess.h: New file.
1472         * sysdeps/unix/sysv/linux/ifaddrs.c: Export netlink handling functions.
1473         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Implement using
1474         netlink if possible.  Fall back on ioctl method if necessary.
1475         * sysdeps/unix/sysv/linux/Dist: Add netlinkaccess.h.
1477         * include/unistd.h: Declare __truncate.
1478         * sysdeps/generic/truncate.c: Also define __truncate.
1479         * sysdeps/mach/hurd/truncate.c: Likewise.
1480         * sysdeps/unix/common/syscalls.list: Likewise.
1481         * sysdeps/unix/sysv/linux/truncate64.c: Use __truncate, not truncate.
1483 2004-06-29  Ulrich Drepper  <drepper@redhat.com>
1485         * stdio-common/printf-parsemb.c (__parse_one_specmb): Initialize
1486         info.extra.  Patch by Marcus Meissner.
1488 2004-06-29  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1490         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
1491         Fix branch offset for a PLT entry.
1493 2004-06-20  Jim Meyering  <jim@meyering.net>
1495         * malloc/obstack.h (obstack_base): Cast to `void *', to align with
1496         documentation.
1498 2004-06-28  Ulrich Drepper  <drepper@redhat.com>
1500         * inet/bug-if1.c (do_test): Simply use 0 as invalid index.
1501         Workaround for [BZ #232].
1503         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Use extend_alloca.
1505 2004-06-28  GOTO Masanori  <gotom@debian.or.jp>
1507         * iconv/gconv_simple.c: Use get16/put16 for user given buffer
1508         in ucs2/ucs2reverse when unaligned memory access is attempted.
1509         * iconv/tst-iconv5.c: New file.
1510         * iconv/Makefile (tests): Add tst-iconv5.
1512 2004-06-28  Jakub Jelinek  <jakub@redhat.com>
1514         * inet/bug-if1.c: Include <string.h>.
1516 2004-06-19  Roland McGrath  <roland@redhat.com>
1518         * sysdeps/posix/waitid.c (do_waitid) [DO_WAITID]: Define function
1519         under this macro name instead.
1520         [NO_DO_WAITID]: Don't define it at all.
1521         (do_waitid) [WNOWAIT, WEXITED]: If these POSIX.1 waitid flag bits are
1522         defined, then return ENOTSUP for combinations of selection bits other
1523         than WEXITED and WEXITED|WSTOPPED, which this version cannot support.
1525         * posix/tst-waitid.c: New file.
1526         * posix/Makefile (tests): Add it.
1528 2004-06-28  Jakub Jelinek  <jakub@redhat.com>
1530         * sysdeps/unix/alpha/sysdep.h (inline_syscall6): Fix a typo.
1532         [BZ #231]
1533         * sysdeps/unix/alpha/sysdep.S (__syscall_error): Avoid !samegp
1534         relocation in librt.so.
1536         [BZ #230]
1537         * sysdeps/alpha/dl-machine.h (_dl_start_user): Use ldah/ldl to load
1538         _dl_skip_args.  Patch by Jakub Bogusz <qboosh@pld-linux.org>.
1540 2004-06-27  Ulrich Drepper  <drepper@redhat.com>
1542         * elf/ldconfig.c (add_dir): Take chroot into account.
1543         Based on changes by HJ Lu and Hideki Iwamoto.
1545         * nscd/connections.c (invalidate_cache): If the host cache has to
1546         be invalidated, re-read resolv.conf.
1548         * resolv/resolv.h (RES_NOIP6DOTINT): Define.
1549         * resolv/res_init.c (res_setoptions): Handle no-ip6-dotint option.
1550         * resolv/gethnamaddr.c (gethostbyaddr): Don't lookup with .ip6.int
1551         if RES_NOIP6DOTINT flag is set.
1552         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
1554 2004-06-25  Jakub Jelinek  <jakub@redhat.com>
1556         * sysdeps/unix/sysv/linux/powerpc/fcntl.c: Move to...
1557         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fcntl.c: ... here.
1558         * sysdeps/unix/sysv/linux/powerpc/lockf64.c: Move to...
1559         * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: ... here.
1560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: New file.
1562         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_GETLK, F_SETLK,
1563         F_SETLKW): Fix values for -m32 -D_FILE_OFFSET_BITS=64.
1565 2004-06-21  Jakub Jelinek  <jakub@redhat.com>
1567         [BZ #231]
1568         * sysdeps/unix/alpha/Makefile: New file.
1569         * sysdeps/unix/alpha/rt-sysdep.S: New file.
1570         Reported by Jakub Bogusz <qboosh@pld-linux.org>.
1572 2004-06-18  Ulrich Drepper  <drepper@redhat.com>
1574         * sysdeps/posix/getaddrinfo.c (gaih_inet): For AI_CANONNAME,
1575         determine the canonical name only for the first returned entry.
1577         * inet/bug-if1.c: New file.
1578         * inet/Makefile (tests): Add bug-if1.
1580 2004-06-18  Roland McGrath  <roland@frob.com>
1582         * Makerules (compile-mkdep-flags): Add -MT $@.
1584         * Makefile (dist, tag-for-dist): New targets.
1585         (files-for-dist, tag-of-stem): New variables.
1586         (glibc-%.tar glibc-linuxthreads-%.tar): New pattern rule.
1587         Make tar files using cvs export.
1588         (%.bz2, %.gz, tag-%): New pattern rules.
1589         (distribute): Variable removed.
1590         (+subdir_targets): Remove distinfo targets.
1591         (echo_subdirs, echo-distinfo, parent_echo-distinfo): Targets removed.
1592         (rpm/%): Pattern rule removed.
1593         * rpm/Makefile, rpm/rpmrc, rpm/template: Ancient cruft files removed.
1594         * Rules (subdir_echo-headers, subdir_echo-distinfo, subdir_dist):
1595         Targets removed.
1596         * Makerules (dist, subdir_distinfo): Targets removed.
1597         ($(objpfx)distinfo): Depend on $(distribute).
1598         * Make-dist: File removed.
1600         * NEWS: Fix a typo.  Update bug-reporting instructions.
1602 2004-06-17  Thorsten Kukuk  <kukuk@suse.de>
1604         * sysdeps/unix/sysv/linux/sched_setaffinity.c
1605         (__sched_setaffinity_new): Set errno to EINVAL and return -1 if
1606         cpuset is wrongly set.
1608 2004-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
1610         * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling
1611         for POWER4 machines.
1613 2004-06-14  Jakub Jelinek  <jakub@redhat.com>
1615         [BZ #218]
1616         * sunrpc/pmap_prot2.c (xdr_pmaplist): When freeing, remember pml_next
1617         in a local variable, point rp to that local variable afterwards.
1619 2004-06-11  Jakub Jelinek  <jakub@redhat.com>
1621         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Handle special
1622         cases properly.
1624 2004-06-17  Ulrich Drepper  <drepper@redhat.com>
1626         * sysdeps/unix/sysv/linux/if_index.c (if_indextoname): Correct
1627         error value for unknown interface. [BZ #198]
1629 2004-06-13  Jakub Jelinek  <jakub@redhat.com>
1631         * sysdeps/i386/bits/string.h (memcpy): Add () around arguments.
1632         (memchr, __memrchr, strlen, strcmp, strncmp, __strchr_g, __strchr_c,
1633         __strchrnul_g, __strchrnul_c, strspn, strcspn, strpbrk): Add memory
1634         the asm uses as its input, either of size __n where __n is known or
1635         0xfffffff.
1636         (strstr): Add "memory" clobber.
1638 2004-06-14  Jakub Jelinek  <jakub@redhat.com>
1640         [BZ #219]
1641         * nss/nsswitch.c (free_mem): Don't try to close a library handle
1642         if the handle is invalid.  Patch by David Kimdon <kimdon@esrf.fr>.
1644 2004-06-11  Dmitry V. Levin  <ldv@altlinux.org>
1646         [BZ #217]
1647         * debug/xtrace.sh: Fix typo in error diagnostics.
1649 2004-06-14  Andreas Schwab  <schwab@suse.de>
1651         * stdio-common/psignal.c (psignal): Don't use BUF when asprintf
1652         failed.
1654 2004-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
1656         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix pasto
1657         that clobbers r19.  Fix pasto that overflowed sigcontext.v_reserve.
1658         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Fix pasto
1659         that clobbers r19.
1660         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Fix pasto
1661         that clobbers r19.  Fix pasto that overflowed sigcontext.v_reserve.
1662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S:
1663         Fix setting of sigcontext.v_regs.  Fix pasto that clobbers r19.
1664         Fix pasto that overflowed sigcontext.v_reserve.
1665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S:
1666         Fix pasto that clobbers r19.
1667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Fix setting
1668         of sigcontext.v_regs.  Fix pasto that clobbers r19.  Fix pasto that
1669         overflowed sigcontext.v_reserve.
1671 2004-05-04  H.J. Lu  <hongjiu.lu@intel.com>
1673         [BZ #150]
1674         * sysdeps/generic/strtol_l.c (DEF): Use ".gnu.linkonce.r."
1675         instead of ".gnu.linkonce.ro." as the prefix for linkonce
1676         read-only section name.
1678 2004-06-14  Richard Henderson  <rth@redhat.com>
1680         * sysdeps/alpha/div_libc.h (_ITOFS): Use "sp" not "$sp".
1681         (_ITOFT, _FTOIT, _ITOFT2): Likewise.
1683 2004-06-08  Jakub Jelinek  <jakub@redhat.com>
1685         * sysdeps/s390/s390-32/backtrace.c (init): Guard with #ifdef SHARED.
1686         (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
1687         (__backtrace): Don't call init #ifndef SHARED.
1688         * sysdeps/s390/s390-64/backtrace.c (init): Guard with #ifdef SHARED.
1689         (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
1690         (__backtrace): Don't call init #ifndef SHARED.
1691         * sysdeps/ia64/backtrace.c (init): Guard with #ifdef SHARED.
1692         (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
1693         (__backtrace): Don't call init #ifndef SHARED.
1695 2004-06-11  Roland McGrath  <roland@redhat.com>
1697         * sysdeps/arm/strlen.S [__ARMEB__]: Compute correctly for big-endian.
1698         From Krzysztof Halasa <khc@pm.waw.pl>.
1700 2004-06-10  Jakub Jelinek  <jakub@redhat.com>
1702         * elf/tls-macros.h [__s390x__] (TLS_LD, TLS_GD): Clobber also r14.
1704 2004-06-08  Jakub Jelinek  <jakub@redhat.com>
1706         [BZ #199]
1707         * crypt/md5-crypt.c (__md5_crypt): Only update buflen if realloc
1708         succeeds.  Reported by Miles Ohlrich <miles@cray.com>.
1710         * elf/chroot_canon.c (chroot_canon): Avoid segfault if first malloc
1711         fails.  Avoid memory leak if realloc fails.
1713 2004-06-09  Jakub Jelinek  <jakub@redhat.com>
1715         * sysdeps/generic/setenv.c (setenv): Return -1/EINVAL if name is
1716         NULL, "" or contains '=' character in it.  Reported by
1717         Michael T Kerrisk <mtk-lists@gmx.net>.
1718         * stdlib/tst-environ.c: Include errno.h.
1719         (main): Add tests for these arguments to setenv/unsetenv.
1721 2004-06-07  Roland McGrath  <roland@frob.com>
1723         * NEWS: Update bug reporting instructions.  Fix some typos.
1725 2004-06-05  Ulrich Drepper  <drepper@redhat.com>
1727         * stdio-common/_itoa.h: Don't expand _itoa inline for libc.
1728         * stdio-common/_itoa.c: Add _itoa implementation.
1730         * nscd/nscd_gethst_r.c (__nscd_open_socket): Change implementation
1731         to also send request.  Add parameter to allow this.
1732         Change callers.
1733         * nscd/nscd_getgr_r.c: Change __nscd_open_socket caller.
1734         * nscd/nscd_getpw_r.c: Likewise.
1735         * nscd/nscd-client.h: Change __nscd_open_socket prototype.
1737 2004-06-05  Andreas Jaeger  <aj@suse.de>
1739         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
1740         Handle more than 6 args correctly.  Based on a patch by Masahide
1741         Washizawa <washi@jp.ibm.com>.
1743 2004-06-04  Ulrich Drepper  <drepper@redhat.com>
1745         * nscd/nscd_gethst_r.c (nscd_gethst_r): Use __nss_not_use_nscd_hosts
1746         in all places, not __nss_not_use_nscd_group.
1747         Reported by Philippe Gregoire.
1749 2004-06-03  Ulrich Drepper  <drepper@redhat.com>
1751         * sysdeps/i386/i486/bits/atomic.h: Optimize a bit.
1753 2004-05-07  Dmitry V. Levin  <ldv@altlinux.org>
1755         * argp/argp-help.c (__argp_error, __argp_failure): Check result
1756         of __asprintf call and don't use string if it failed.
1757         * stdio-common/psignal.c (psignal): Likewise.
1758         * locale/programs/localedef.c (more_help): Likewise.
1759         * resolv/res_hconf.c (arg_service_list, arg_trimdomain_list,
1760         arg_bool, parse_line): Check result of __asprintf calls and
1761         don't use string if they failed.
1762         * sunrpc/svc_simple.c (registerrpc, universal): Likewise.
1763         * elf/ldconfig.c (parse_conf_include): Check result of __asprintf
1764         call and exit if it failed.
1766 2004-05-10  Jakub Jelinek  <jakub@redhat.com>
1768         * sysdeps/posix/sysconf.c (__sysconf) <cases _SC_REALTIME_SIGNALS,
1769         _SC_PRIORITY_SCHEDULING, _SC_TIMERS, _SC_ASYNCHRONOUS_IO,
1770         _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO, _SC_FSYNC, _SC_MAPPED_FILES,
1771         _SC_MEMLOCK, _SC_MEMLOCK_RANGE, _SC_MEMORY_PROTECTION,
1772         _SC_MESSAGE_PASSING, _SC_SEMAPHORES, _SC_SHARED_MEMORY_OBJECTS,
1773         _SC_THREADS, _SC_THREAD_SAFE_FUNCTIONS, _SC_THREAD_ATTR_STACKADDR,
1774         _SC_THREAD_ATTR_STACKSIZE, _SC_THREAD_PRIORITY_SCHEDULING,
1775         _SC_THREAD_PRIO_INHERIT, _SC_THREAD_PRIO_PROTECT,
1776         _SC_THREAD_PROCESS_SHARED>: Return _POSIX_* value instead of 1.
1777         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
1778         <case _SC_MONOTONIC_CLOCK>: Return _POSIX_VERSION instead of 1.
1780 2004-05-07  Jeroen Dekkers  <jeroen@dekkers.cx>
1782         * sysdeps/mach/hurd/i386/Makefile (CFLAGS-init-first.c): Add
1783         -momit-leaf-frame-pointer.
1785         * inet/test-ifaddrs.c (addr_string): Surround AF_PACKET case with
1786         #ifdef AF_PACKET.
1788         * sysdeps/mach/hurd/getcwd.c
1789         (_hurd_canonicalize_directory_name_intern): Only realloc when
1790         size is <= 0.
1792         * sysdeps/mach/hurd/mmap.c (__mmap): Fail when addr or offset
1793         isn't page aligned.
1795         * sysdeps/mach/hurd/spawni.c (EXPAND_DTABLE): Set dtablesize to
1796         new size.
1798         * sysdeps/mach/hurd/Versions (GLIBC_PRIVATE): Add __libc_read,
1799         __libc_write and __libc_lseek64.
1801 2004-05-29  Roland McGrath  <roland@redhat.com>
1803         * elf/Makefile (shared-only-routines): Add dl-caller.
1805 2004-05-28  Ulrich Drepper  <drepper@redhat.com>
1807         * sysdeps/powerpc/configure.in: New file.
1809 2004-05-28  Steven Munroe  <sjmunroe@us.ibm.com>
1811         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Add .machine
1812         "altivec" to enable VMX instructions.
1813         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
1814         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
1815         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
1816         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
1817         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
1818         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
1819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
1820         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
1821         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1823 2004-05-27  Jakub Jelinek  <jakub@redhat.com>
1825         * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Define using
1826         __builtin_expm1l for GCC 3.5+.
1827         (__expl): Define using __builtin_expl for GCC 3.4+.
1828         (exp, expf, expl): Don't define for GCC 3.4+.
1829         (tan, tanf, tanl): Don't define for GCC 3.5+.
1830         (__atan2l): Define using __builtin_atan2l for GCC 3.4+.
1831         (atan2, atan2f, atan2l): Don't define for GCC 3.4+ or !__FAST_MATH__.
1832         (fmod, fmodf, fmodl): Don't define for GCC 3.5+ or !__FAST_MATH__.
1833         (fabsf, fabsl): Only provide if __USE_MISC or __USE_ISOC99.
1834         (sin, sinf, sinl, cos, cosf, cosl, log, logf, logl): Don't define
1835         for GCC 3.4+.
1836         (log10, log10f, log10l, asin, asinf, asinl, acos, acosf, acosl):
1837         Don't define for GCC 3.5+.
1838         (atan, atanf, atanl): Don't define for GCC 3.4+ or !__FAST_MATH__.
1839         (log1p, log1pf, log1pl, logb, logbf, logbl, log2, log2f, log2l): Don't
1840         define for GCC 3.5+.
1841         (drem, dremf, dreml): Don't define for GCC 3.5+ or !__FAST_MATH__.
1842         * sysdeps/sparc/fpu/bits/mathinline.h (sqrt, sqrtf, sqrtl): Don't
1843         define for GCC 3.2+.
1845 2004-05-27  Jakub Jelinek  <jakub@redhat.com>
1847         * string/bits/string2.h (__bzero): Define even for GCC 3.0+.
1848         * sysdeps/alpha/stpcpy.S (stpcpy): Add libc_hidden_builtin_def.
1849         * sysdeps/alpha/alphaev67/stpcpy.S (stpcpy): Likewise.
1850         * sysdeps/powerpc/powerpc32/stpcpy.S (stpcpy): Likewise.
1851         * sysdeps/powerpc/powerpc64/stpcpy.S (stpcpy): Likewise.
1852         * sysdeps/sparc/sparc32/stpcpy.S (stpcpy): Likewise.
1853         * sysdeps/sparc/sparc64/stpcpy.S (stpcpy): Likewise.
1854         * sysdeps/i386/stpcpy.S (stpcpy): Likewise.
1855         * sysdeps/i386/i586/stpcpy.S (stpcpy): Likewise.
1856         * sysdeps/generic/stpcpy.c (stpcpy): Likewise.
1857         * sysdeps/x86_64/stpcpy.S (stpcpy): Likewise.
1858         * sysdeps/i386/i586/memcpy.S (memcpy): Remove
1859         libc_hidden_builtin_def if MEMPCPY_P.
1860         * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
1861         * sysdeps/i386/i686/mempcpy.S (mempcpy): Add libc_hidden_builtin_def.
1862         * sysdeps/i386/i586/mempcpy.S (mempcpy): Likewise.
1863         * sysdeps/generic/mempcpy.c (mempcpy): Likewise.
1864         * sysdeps/x86_64/mempcpy.S (mempcpy): Likewise.
1866 2004-05-26  Roland McGrath  <roland@frob.com>
1868         * sysdeps/generic/bits/in.h
1869         (IMPLINK_IP, IMPLINK_LOWEXPER, IMPLINK_HIGHEXPER): Macros removed.
1870         These are long obsolete in BSD systems where they originated.
1871         * conform/data/netinet/in.h-data: Remove `allow IMPLINK_*'
1873 2004-05-26  Jakub Jelinek  <jakub@redhat.com>
1875         * include/string.h (mempcpy, stpcpy): Add libc_hidden_builtin_proto.
1876         * string/bits/string2.h (memset): Disable macro for GCC 3.0+.
1877         (__mempcpy): Use __builtin_mempcpy for GCC 3.4+.
1878         (strchr): For GCC 3.2+, only use __rawmemchr if second argument is
1879         constant '\0' and first argument is not constant.
1880         (__stpcpy): Use __builtin_stpcpy for GCC 3.4+.
1881         (strncpy): Remove #ifdef _USE_STRING_ARCH_mempcpy variant.
1882         For GCC 3.2+ use __builtin_strncpy.
1883         (strncat): For GCC 3.2+ use __builtin_strncat.
1884         (strcmp): For GCC 3.2+ use __builtin_strcmp if both arguments are
1885         constant.
1886         (strcspn, strspn, strpbrk): For GCC 3.2+, use builtin function
1887         if both arguments are constant.
1889 2004-05-26  Ulrich Drepper  <drepper@redhat.com>
1891         * nss/nss_files/files-hosts.c: Fix condition for looking up IPv4
1892         mapped addresses in gethostbyaddr.
1894 2004-05-25  Ulrich Drepper  <drepper@redhat.com>
1896         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove typep and
1897         flags parameter, convert afp to simple int parameter.  Adjust code.
1898         typep was never != NULL and flags therefore also unused.  *afp is
1899         never modified.
1900         * nss/nsswitch.h: Adjust __nss_hostname_digits_dots prototype.
1901         * nss/getXXbyYY.c: Remove HAVE_TYPE handling.  Adjust af parameter
1902         handling for __nss_hostname_digits_dots calls.
1903         * nss/getXXbyYY_r.c: Likewise.
1905         * elf/dl-load.c (_dl_map_object_from_fd): Map DSOs with MAP_DENYWRITE.
1907 2004-05-25  Steven Munroe  <sjmunroe@us.ibm.com>
1909         * sysdeps/powerpc/fpu/Makefile: Make ld.so a dependency of libm.so.
1910         * sysdeps/powerpc/fpu/bits/mathinline.h [__LIBC_INERNAL_MATH_INLINES]
1911         (__ieee754_sqrt): Define as __MATH_INLINE using fsqrt instruction.
1912         (__ieee754_sqrtf): Define as __MATH_INLINE using fsqrts instruction.
1913         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Moved
1914         implementation from w_sqrt.c.
1915         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Moved
1916         implementation from w_sqrtf.c.
1917         * sysdeps/powerpc/fpu/w_sqrt.c (__sqrt): Wrapper implementation
1918         using inline __ieee754_sqrt().
1919         * sysdeps/powerpc/fpu/w_sqrtf.c (__sqrtf): Wrapper implementation
1920         using inline __ieee754_sqrtf().
1921         * sysdeps/powerpc/powerpc32/sysdep.h [__ASSEMBLER__]: Include
1922         <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__.
1923         * sysdeps/powerpc/sysdep.h [__ASSEMBLER__] (PPC_FEATURE_*): Define
1924         PPC_FEATURE_*  independent of __ASSEMBLER__.
1926 2004-05-25  Jakub Jelinek  <jakub@redhat.com>
1928         * sysdeps/pthread/aio_notify.c: Use <> instead of "" for aio_misc.h
1929         include.
1930         (aio_start_notify_thread): Define if not defined.
1931         (notify_func_wrapper): Use it.
1932         * sysdeps/pthread/aio_misc.c: Use <> instead of "" for aio_misc.h
1933         include.
1934         (aio_create_helper_thread): Define if not defined.
1935         (__aio_create_helper_thread): New function.
1936         (__aio_enqueue_request): Use aio_create_helper_thread.
1938         * nis/ypclnt.c (ypall_data, ypall_foreach): Remove.
1939         (struct ypresp_all_data): New type.
1940         (__xdr_ypresp_all): Change second argument to
1941         struct ypresp_all_data *.  Replace ypall_foreach and
1942         ypall_data with objp->foreach and objp->data.
1943         (yp_all): Remove status variable, add data.  Replace
1944         all uses of status with data.status.  Initialize data.foreach
1945         and data.data instead of ypall_foreach and ypall_data.
1947 2004-05-24  Jakub Jelinek  <jakub@redhat.com>
1949         * elf/dl-lookup.c (add_dependency): Set DF_1_NODELETE bit
1950         in l_flags_1, not in l_flags.
1952 2004-04-10  Robert Millan  <robertmh@gnu.org>
1954         * sysdeps/unix/sysv/linux/bits/in.h: Cosmetic fixes to get in sync
1955         with sysdeps/generic/bits/in.h.
1957 2004-05-25  Roland McGrath  <roland@frob.com>
1959         * sysdeps/generic/unwind-dw2-fde-glibc.c: Change copyright terms from
1960         GCC GPL to standard glibc LGPL.
1962 2004-05-24  Ulrich Drepper  <drepper@redhat.com>
1964         * manual/string.texi (Copying and Concatenation): Fixed second
1965         concat example.
1966         Reported by Fabian Pietsch <fabian@zzznowman.dyndns.org>.
1968 2004-05-23  Ulrich Drepper  <drepper@redhat.com>
1970         * malloc/obstack.c: Don't allow linking with _obstack.
1972 2004-05-23  Andreas Schwab  <schwab@suse.de>
1974         * sysdeps/m68k/m68020/bits/atomic.h: Use "+m" constraint instead
1975         of separate "m" constraints.
1977 2004-05-15  Chris Demetriou  <cgd@broadcom.com>
1979         * sysdeps/mips/dl-machine.h (ELF_DL_FRAME_SIZE)
1980         (ELF_DL_SAVE_ARG_REGS, ELF_DL_RESTORE_ARG_REGS): For the N32
1981         and 64 ABIs, save and restore regs $10 and $11 (a6 and a7).
1983 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
1985         * malloc/obstack.c (_obstack) [!defined _LIBC]: Remove; not used.
1986         Add comment explaining why libc still defines it.
1988 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1990         * malloc/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
1991         obstack_alignment_mask, obstack_alloc, obstack_base,
1992         obstack_blank, obstack_blank_fast, obstack_chunk_size,
1993         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
1994         obstack_grow0, obstack_init, obstack_int_grow,
1995         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
1996         obstack_next_free, obstack_object_size, obstack_ptr_grow,
1997         obstack_ptr_grow_fast, obstack_room): Remove declarations of
1998         nonexistent functions.
2000 2004-05-18  Steven Munroe  <sjmunroe@us.ibm.com>
2002         * sysdeps/powerpc/powerpc64/sysdep.h [__ASSEMBLER__]: Include
2003         <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__.
2004         [PIC]: Redundent for powerpc64, removed.
2005         (ENTRY): Generate size and alignment for opd entry.
2006         (EALIGN): Generate size and alignment for opd entry.
2007         (END): Use DOT_LABEL in ASM_SIZE_DIRECTIVE.
2008         (END_GEN_TB): Use DOT_LABEL in ASM_SIZE_DIRECTIVE.
2010 2004-05-19  Ulrich Drepper  <drepper@redhat.com>
2012         * misc/regexp.h: Say the functions have been withdrawn.
2014         * wcsmbs/tst-wcpncpy.c: Add more tests.
2016 2004-05-18  Roland McGrath  <roland@frob.com>
2018         * sysdeps/generic/unwind.h: Change copyright terms from GCC GPL to
2019         standard glibc LGPL.
2020         * sysdeps/generic/unwind-dw2.c: Likewise.
2021         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
2022         * sysdeps/generic/unwind-dw2-fde.h: Likewise.
2023         * sysdeps/generic/unwind-pe.h: Likewise.
2025 2004-05-15  Petter Reinholdtsen  <pere@hungry.com>
2027         * locale/iso-3166.def: Remove YUGOSLAVIA and insert "SERBIA AND
2028         MONTENEGRO" which have taken over the code 819.  Patch from
2029         Danilo Segan. [BZ #40]
2031 2004-05-15  Jakub Jelinek  <jakub@redhat.com>
2033         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2034         (SYSCALL_ERROR_HANDLER): Rename __sparc.get_pic.l7 to
2035         __sparc_get_pic_l7.
2037 2004-05-15  Joseph S. Myers  <jsm@polyomino.org.uk>
2039         * catgets/gencat.c: Update bug reporting instructions.
2040         * csu/version.c: Likewise.
2041         * debug/catchsegv.sh: Likewise.
2042         * debug/pcprofiledump.c: Likewise.
2043         * debug/xtrace.sh: Likewise.
2044         * elf/ldd.bash.in: Likewise.
2045         * iconv/iconv_prog.c: Likewise.
2046         * iconv/iconvconfig.c: Likewise.
2047         * locale/programs/locale.c: Likewise.
2048         * locale/programs/localedef.c: Likewise.
2049         * login/programs/pt_chown.c: Likewise.
2050         * malloc/memusage.sh: Likewise.
2051         * malloc/memusagestat.c: Likewise.
2052         * malloc/mtrace.pl: Likewise.
2053         * manual/crypt.texi: Likewise.
2054         * manual/install.texi: Likewise.
2055         * nss/makedb.c: Likewise.
2057 2004-05-14  Jakub Jelinek  <jakub@redhat.com>
2059         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Only
2060         CHECK_STATIC_TLS if sym != NULL.
2061         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
2062         * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
2064 2004-05-12  Andreas Schwab  <schwab@suse.de>
2066         * posix/regex_internal.c (build_wcs_buffer): Also set pstr->mbs
2067         when translating.
2069 2004-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2071         * Rules (xtests): Depend on tests.
2073 2004-05-13  Jakub Jelinek  <jakub@redhat.com>
2075         * libio/genops.c (_IO_default_xsputn): Avoid one overflow per char if
2076         count is negative, yet write_ptr < write_end.
2077         (_IO_default_xsgetn): Avoid one underflow per char if count is
2078         negative, yet read_ptr < read_end.
2080 2004-05-12  Steven Munroe  <sjmunroe@us.ibm.com>
2082         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XTABS): Define XTABS
2083         equal to TAB3.
2085 2004-05-12  Ulrich Drepper  <drepper@redhat.com>
2087         * elf/dl-lookup.c (_dl_lookup_symbol_x): Correct _dl_signal_cerror
2088         call.
2090 2004-05-10  Roland McGrath  <roland@frob.com>
2092         * hurd/hurdlookup.c (__hurd_file_name_split): Return ENOENT for "".
2093         (__hurd_directory_name_split): Likewise.
2095 2004-05-10  Ulrich Drepper  <drepper@redhat.com>
2097         * po/fr.po: Update from translation team.
2099 2004-05-10  Andreas Jaeger  <aj@suse.de>
2101         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2102         Correctly compute alignment.
2103         Patch by Michael Matz <matz@suse.de>.
2105 2004-05-09  Ulrich Drepper  <drepper@redhat.com>
2107         * sysdeps/generic/sigpause.c: Prevent sigpause prototype.
2108         * sysdeps/posix/sigpause.c: Likewise.
2109         * signal/signal.h: Don't define sigpause macro unless needed.
2111 2004-05-08  Jakub Jelinek  <jakub@redhat.com>
2113         * configure.in (libc_cv_libgcc_s_suffix): New check.
2114         (libc_cv_as_needed): Use -lgcc_s$libc_cv_libgcc_s_suffix.
2115         * config.make.in (libgcc_s_suffix): Set.
2116         * Makeconfig (libgcc_eh): Use -lgcc_s$(libgcc_s_suffix).
2118 2004-05-08  Ulrich Drepper  <drepper@redhat.com>
2120         * signal/signal.h: Use BSD sigpause only if BSD behavior is preferred.
2122 2004-04-29  Steven Munroe  <sjmunroe@us.ibm.com>
2124         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_1,
2125         LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6):
2126         Load argument values into temporary variables.
2127         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_1,
2128         LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6):
2129         Likewise.
2131 2004-05-07  Ulrich Drepper  <drepper@redhat.com>
2133         * sysdeps/unix/sysv/linux/Makefile: mq_send.c and mq_receive.c
2134         need to be compiled with exceptions.
2136 2004-05-06  Ulrich Drepper  <drepper@redhat.com>
2138         * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Fix memory handling.
2139         * sysdeps/generic/ifreq.c (__ifreq): Fix memory handling.
2141         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Make clear that
2142         realloc cannot fail.
2144         * nss/nss_files/files-netgrp.c (EXPAND): Free buffer which cannot
2145         be expanded.
2147         * nis/nis_table.c: Clean up memory handling.
2148         * nis/nis_subr.c (nis_getnames): Clean up memory handling.
2149         * nis/nis_removemember.c (nis_removemember): Add comment
2150         explaining use of realloc.
2152         * math/tgmath.h (fabs): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL.
2153         (carg): Likewise.
2154         Patch by Lev S Bishop <lev.bishop@yale.edu>.
2156         * math/bug-tgmath1.c (main): Test fabs and carg as well.
2158 2004-05-06  Richard Henderson  <rth@redhat.com>
2160         * elf/elf.h (AT_L1I_CACHESHAPE, AT_L1D_CACHESHAPE,
2161         AT_L2_CACHESHAPE, AT_L3_CACHESHAPE): New.
2162         * sysdeps/unix/sysv/linux/alpha/Versions: Export
2163         __libc_alpha_cache_shape as a private symbol.
2164         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c: New file.
2165         * sysdeps/unix/sysv/linux/alpha/sysconf.c: New file.
2167 2004-05-06  Richard Henderson  <rth@redhat.com>
2169         * sysdeps/alpha/div_libc.h (_ITOFS, _ITOFT, _FTOIT, _ITOFT2): New.
2170         * sysdeps/alpha/divl.S: Use them.
2171         * sysdeps/alpha/divq.S: Likewise.
2172         * sysdeps/alpha/divqu.S: Likewise.
2173         * sysdeps/alpha/reml.S: Likewise.
2174         * sysdeps/alpha/remq.S: Likewise.
2175         * sysdeps/alpha/remqu.S: Likewise.
2177 2004-05-06  Ulrich Drepper  <drepper@redhat.com>
2179         * math/tgmath.h (__TGMATH_UNARY_REAL_IMAG_RET_REAL):Define.
2180         (cimag): Use it.
2181         (creal): Likewise.
2182         * math/Makefile (tests): Add bug-tgmath1.
2183         * math/bug-tgmath1.c: New file.
2185 2004-05-05  Jakub Jelinek  <jakub@redhat.com>
2187         * sysdeps/alpha/atomicity.h: Remove.
2188         * sysdeps/generic/atomicity.h: Remove.
2190 2004-05-05  H.J. Lu  <hongjiu.lu@intel.com>
2192         * sysdeps/i386/i486/bits/string.h (strpbrk): Cast return to
2193         char *.
2195 2004-04-22  David Mosberger  <davidm@hpl.hp.com>
2197         * sysdeps/unix/sysv/linux/ia64/Makefile (librt-routines): Mention
2198           rt-sysdep.
2199         * sysdeps/unix/sysv/linux/ia64/rt-sysdep.S: New file.
2201         * sysdeps/ia64/strcat.c: New file.
2202         * sysdeps/ia64/strcat.S: Delete.
2204 2004-05-04  Jakub Jelinek  <jakub@redhat.com>
2206         * sysdeps/unix/sysv/linux/ia64/sysdep.S (USE___THREAD): Remove
2207         defined.
2209 2004-04-23  Jakub Jelinek  <jakub@redhat.com>
2211         * sysdeps/ia64/fpu/libm_support.h (__libm_error_support): Add
2212         libc_hidden_proto.  Define to __GI___libm_error_support for
2213         assembly going into libc.so.
2214         * sysdeps/ia64/fpu/libc_libm_error.c (__libm_error_support): Add
2215         libc_hidden_def.
2217         * include/libc-symbols.h (HIDDEN_BUILTIN_JUMPTARGET): Define.
2218         * sysdeps/ia64/bcopy.S (bcopy): Use it for jump to memmove.
2220         * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Access
2221         gprel errno if RTLD_PRIVATE_ERRNO or __thread __libc_errno/errno
2222         if USE___THREAD.
2224 2004-05-03  Jakub Jelinek  <jakub@redhat.com>
2226         * sysdeps/unix/bsd/bits/fcntl.h (F_SETOWN, F_GETOWN): Define if
2227         __USE_BSD or __USE_UNIX98.
2228         * sysdeps/unix/bsd/ultrix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
2229         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
2230         * sysdeps/unix/bsd/sun/sunos4/bits/fcntl.h (F_SETOWN, F_GETOWN):
2231         Likewise.
2232         * sysdeps/unix/common/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
2233         * sysdeps/unix/sysv/aix/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
2234         * sysdeps/unix/sysv/irix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
2235         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_SETOWN, F_GETOWN):
2236         Likewise.
2237         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_SETOWN, F_GETOWN):
2238         Likewise.
2239         * sysdeps/unix/sysv/linux/cris/bits/fcntl.h (F_SETOWN, F_GETOWN):
2240         Likewise.
2241         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (F_SETOWN, F_GETOWN):
2242         Likewise.
2243         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_SETOWN, F_GETOWN):
2244         Likewise.
2245         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN, F_GETOWN):
2246         Likewise.
2247         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (F_SETOWN, F_GETOWN):
2248         Likewise.
2249         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (F_SETOWN, F_GETOWN):
2250         Likewise.
2251         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (F_SETOWN, F_GETOWN):
2252         Likewise.
2253         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (F_SETOWN, F_GETOWN):
2254         Likewise.
2255         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (F_SETOWN, F_GETOWN):
2256         Likewise.
2257         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (F_SETOWN, F_GETOWN):
2258         Likewise.
2259         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_SETOWN, F_GETOWN):
2260         Likewise.
2261         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
2262         * sysdeps/mach/hurd/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
2263         * io/sys/stat.h (S_ISSOCK, S_IFSOCK): Likewise.
2265 2004-05-01  Jakub Jelinek  <jakub@redhat.com>
2267         * posix/Versions (libc): Remove __libc_wait, __libc_waitpid,
2268         __libc_pause, __libc_nanosleep, __libc_pread, __libc_pread64,
2269         __libc_pwrite64, __waitid and __pselect @@GLIBC_PRIVATE.
2270         * stdlib/Versions (libc): Remove __on_exit@@GLIBC_PRIVATE.
2271         * sysdeps/unix/sysv/linux/Versions (libc): Remove
2272         __libc_sigaction@@GLIBC_PRIVATE.
2273         * sysdeps/unix/sysv/linux/x86_64/Versions (libc): Remove
2274         __modify_ldt@@GLIBC_PRIVATE.
2275         * socket/Versions (libc): Remove __libc_accept, __libc_send,
2276         __libc_recvfrom, __libc_recvmsg, __libc_sendmsg, __libc_recv,
2277         __libc_sendto and __libc_connect @@GLIBC_PRIVATE.
2278         * stdio-common/Versions (libc): Remove
2279         _itoa_upper_digits@@GLIBC_PRIVATE.
2280         * resolv/Versions (libresolv): Remove __ns_samename@@GLIBC_PRIVATE.
2281         * misc/Versions (libc): Remove __libc_fsync, __libc_msync,
2282         __libc_readv and __libc_writev @@GLIBC_PRIVATE.
2283         * termios/Versions (libc): Remove __libc_tcdrain@@GLIBC_PRIVATE.
2284         * io/Versions (libc): Remove __libc_open, __libc_close, __libc_read,
2285         __libc_write, __libc_lseek, __libc_fcntl, __libc_open64 and
2286         __libc_lseek64 @@GLIBC_PRIVATE.
2288 2004-04-30  Jakub Jelinek  <jakub@redhat.com>
2290         * elf/dl-load.c (open_verify): Move e_phentsize check after e_type
2291         check.
2293 2004-04-29  Steven Munroe  <sjmunroe@us.ibm.com>
2295         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: New file.
2296         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: New file.
2297         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: New file.
2298         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: New file.
2299         * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: Removed.
2300         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: New file.
2301         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Removed.
2302         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: New file.
2303         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: New file.
2304         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: New file.
2305         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: New file.
2306         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: New file.
2307         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: New file.
2308         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: New file.
2309         * sysdeps/powerpc/powerpc64/fpu/s_round.S: New file.
2310         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: New file.
2311         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: New file.
2312         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: New file.
2314         * math/test-misc.c [LDBL_MANT_DIG == 106](main): Correct LDBL_MAX
2315         mantissa for AIX long double format.
2316         * misc/qefgcvt.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Define for AIX
2317         long double format.
2318         * misc/qefgcvt_r.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Likewise.
2319         * stdlib/fpioconst.c [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024]
2320         (_fpioconst_pow10): AIX long double format has same exponent range as
2321         double.
2322         * stdlib/fpioconst.h [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024]
2323         (LDBL_MAX_10_EXP_LOG): AIX long double format has same exponent range
2324         as double.
2326 2004-04-23  Art Haas  <ahaas@airmail.net>
2328         * sysdeps/unix/sysv/linux/kernel-features.h: Add 'defined'.
2330 2004-04-28  Carlos O'Donell  <carlos@baldric.uwo.ca>
2332         * sysdeps/unix/sysv/linux/mq_getattr.c: Include <stddef.h>.
2333         * sysdeps/unix/sysv/linux/mq_notify.c: Likewise.
2334         * sysdeps/unix/sysv/linux/mq_open.c: Likewise.
2335         * sysdeps/unix/sysv/linux/mq_receive.c: Likewise.
2336         * sysdeps/unix/sysv/linux/mq_send.c: Likewise.
2338 2004-04-29  Philip Blundell  <pb@nexus.co.uk>
2340         * sysdeps/arm/dl-machine.h (RTLD_START): Avoid unnecessary GOT
2341         entries.
2343 2004-04-29  Jakub Jelinek  <jakub@redhat.com>
2345         * manual/resource.texi (sched_setaffinity, sched_getaffinity): Fix
2346         prototypes and description [BZ #131].
2348         * string/bits/string2.h (strpbrk): Cast NULL to char * [BZ #130].
2349         Patch by Ed Catmur <ed@catmur.co.uk>.
2350         * string/tst-inlcall.c (main): Add test for strpbrk.
2352         [BZ #140]
2353         * sysdeps/unix/sysv/linux/sys/sysctl.h: Remove linux/compiler.h
2354         include.
2355         (_LINUX_KERNEL_H, _LINUX_TYPES_H, _LINUX_LIST_H): Only define if not
2356         yet defined, #undef back after including linux/sysctl.h if defined
2357         here.
2358         (__LINUX_COMPILER_H, __user): Define if not yet defined, #undef
2359         back after including linux/sysctl.h if defined here.
2361         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c (_Qp_qtoi): Use %f31
2362         for single precision register, add it to __asm clobbers [BZ #139].
2363         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c (_Qp_qtoui): Use %f31
2364         for single precision register, add it to __asm clobbers.
2365         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c (_Qp_qtoux): Use fqtox
2366         instead of fqtoi in QP_HANDLE_EXCEPTIONS.
2367         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c (_Qp_qtox): Likewise.
2368         Reported by M. H. VanLeeuwen <vanl@megsinet.net>.
2370 2004-04-23  Andreas Schwab  <schwab@suse.de>
2372         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Use
2373         __attribute_used__.
2375 2004-04-22  Philip Blundell  <philb@gnu.org>
2377         * sysdeps/arm/dl-machine.h (elf_machine_rela): Don't use INTUSE
2378         when calling _dl_signal_error.
2379         (elf_machine_rel): Likewise.
2381 2004-04-21  Ulrich Drepper  <drepper@redhat.com>
2383         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Define _GI___sigsetjmp
2384         and use it internally instead of __sigsetjmp.
2385         * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Use _GI___libm_frexp_4f.
2386         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Use _GI___libm_frexp_4l.
2387         * sysdeps/ia64/fpu/libm_frexp4.S: Define _GI___libm_frexp_4.
2388         * sysdeps/ia64/fpu/libm_frexp4f.S: Define _GI___libm_frexp_4f.
2389         * sysdeps/ia64/fpu/libm_frexp4l.S: Define _GI___libm_frexp_4l.
2390         * sysdeps/ia64/fpu/s_frexp.c (frexp): Use _GI___libm_frexp_4.
2391         * sysdeps/ia64/fpu/libm_support.h: Declare _GI___libm_frexp_4,
2392         _GI___libm_frexp_4f, _GI___libm_frexp_4l.
2393         * sysdeps/ia64/fpu/bits/mathinline.h: New file.
2394         * sysdeps/unix/sysv/linux/ia64/__start_context.S: Use
2395         HIDDEN_JUMPTARGET for exit call.
2396         * sysdeps/unix/sysv/linux/ia64/clone2.S: Use HIDDEN_JUMPTARGET for
2397         _exit call.
2398         * sysdeps/ia64/bcopy.S: Use HIDDEN_JUMPTARGET for memmove call.
2399         * sysdeps/ia64/strcat.S: Use HIDDEN_JUMPTARGET for strlen and
2400         strcpy calls.
2402 2004-04-21  Jakub Jelinek  <jakub@redhat.com>
2404         * posix/tst-chmod.c (do_test): Fix a typo.
2406         * elf/lateglobal.c (main): Fix error checks.
2407         Patch by Stephen Clarke <stephen.clarke@st.com>.
2409         * manual/ctype.texi (isblank, iswblank): Mark as ISO functions,
2410         mention they have been added in ISO C99.
2411         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2413 2004-03-31  H.J. Lu  <hongjiu.lu@intel.com>
2415         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Fix typo.
2417 2004-04-20  Jakub Jelinek  <jakub@redhat.com>
2419         * sysdeps/unix/sysv/linux/shm_open.c (shm_unlink): Change EPERM into
2420         EACCES.
2422 2004-04-20  Jakub Jelinek  <jakub@redhat.com>
2424         * stdio-common/vfscanf.c (_IO_vfscanf): Revert last %% whitespace
2425         handling change.
2426         * stdio-common/tst-sscanf.c (int_tests): Adjust.
2428         * nis/nss-nis.c: Include stdlib.h.
2430         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Shut up a
2431         warning.
2432         * sysdeps/sparc/sparc64/memcmp.S (memcmp): Remove BP_SYM () from
2433         libc_hidden_builtin_def.
2435 2004-04-20  Jim Meyering  <jim@meyering.net>
2437         * misc/error.c (error_tail): Don't leak upon realloc failure.
2439 2004-04-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2441         * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable):
2442         Use RETURN_ADDRESS instead of __builtin_return_address.
2444 2004-04-19  Ulrich Drepper  <drepper@redhat.com>
2446         * sysdeps/unix/sysv/linux/mq_unlink.c: Rewrite to produce more
2447         compact code.
2449 2004-04-20  Jakub Jelinek  <jakub@redhat.com>
2451         * stdio-common/vfscanf.c (_IO_vfscanf): When skipping whitespace,
2452         do input_error () instead of conv_error () and don't look at errno.
2453         Don't eat any whitespace before %% if skip_space == 0.
2454         * stdio-common/tst-sscanf.c (int_tests): New array.
2455         (main): Run int_tests.
2458 See ChangeLog.14 for earlier changes.