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