Update.
[glibc.git] / ChangeLog
blob9118d843c8e38354ec0dbdc34419cc3416b15559
1 2004-10-11  Ulrich Drepper  <drepper@redhat.com>
3         * timezone/asia: Update from tzdata2004e.
4         * timezone/southamerica: Likewise.
5         * timezone/private.h: Update from tzcode2004e.
6         * timezone/zdump.c: Likewise.
8         * stdio-common/vfscanf.c: Add support for reading localized
9         digits.  Patch mainly by Hamed Malek <hamed@bamdad.org>.
11         * resolv/res_init.c (res_thread_freeres): Reset _res.options.
12         [BZ #434]
14         * resolv/res_send.c (send_dg): Use nonblocking sockets.  Add
15         appropriate poll/select calls and restart operation if necessary.
16         Also handle EINTR.
18         * elf/tst-dlopenrpath.c (do_test): Enable code which was disabled
19         for debugging.
21         * elf/dl-sym.c (do_sym): Avoid using global variable.
23         * elf/dl-addr.c (_dl_addr): Really use match everywhere.
25 2004-10-09  Andreas Schwab  <schwab@suse.de>
27         * sysdeps/m68k/memcopy.h (WORD_COPY_BWD): Remove use of cast as
28         lvalue.
30         * sysdeps/m68k/fpu/bits/mathinline.h: Remove __THROW from inline
31         definitions.
33 2004-10-07  Andreas Schwab  <schwab@suse.de>
35         * misc/sys/uio.h: Change __vector to __iovec to avoid clash with
36         altivec.
38 2004-10-06  Alan Modra  <amodra@bigpond.net.au>
40         * gmon/Makefile (CFLAGS-mcount.c): Move before inclusion of "Rules".
41         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-mcount.c): Add
42         -msoft-float.
43         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): New macros.
44         (CALL_MCOUNT): Replace with a gas macro implementation.
45         (EALIGN): Delete PROF version.
46         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Invoke CALL_MCOUNT.
47         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Likewise.
48         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: Likewise.
49         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
50         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
51         * sysdeps/powerpc/powerpc64/memset.S: Likewise.
52         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
53         * sysdeps/powerpc/powerpc64/strchr.S: Likewise.
54         * sysdeps/powerpc/powerpc64/strcmp.S: Likewise.
55         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
56         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
57         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
58         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
59         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
60         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
61         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
62         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
63         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
64         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
65         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
66         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
67         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
68         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
69         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
70         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
71         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
72         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
74         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add extra entry point
75         past _mcount call.
76         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Use it.
77         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: Likewise.
79 2004-10-06  Ulrich Drepper  <drepper@redhat.com>
81         * resolv/res_mkquery.c (res_nmkquery): Reject randombits value if
82         low 16 bits are zero.
84 2004-10-06  Jakub Jelinek  <jakub@redhat.com>
86         * posix/tst-getaddrinfo2.c: Include stdlib.h and string.h.
87         (do_test): Use %p instead of 0x%08X to print a pointer.
89         * malloc/malloc.c: Include stdio-common/_itoa.h.
91 2004-10-05  Ulrich Drepper  <drepper@redhat.com>
93         * elf/rtld.c (dl_main): Use _dl_debug_printf instead of _dl_printf
94         for prelink message.
96 2004-10-05  Jakub Jelinek  <jakub@redhat.com>
98         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Include dl-sysdep.h.
99         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
101 2004-10-05  Ulrich Drepper  <drepper@redhat.com>
103         * grp/initgroups.c: Remove duplicate group IDs.
104         * grp/compat-initgroups.c: Likewise.
105         * nscd/initgrcache.c: Likewise.
107 2004-10-05  Jakub Jelinek  <jakub@redhat.com>
109         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (__sysconf): Return 200112L
110         for _SC_CPUTIME or _SC_THREAD_CPUTIME.
112         * nscd/Makefile (nscd-cflags): Set to -DIS_IN_nscd=1, plus
113         -fpie if building PIE.
114         (CFLAGS-*.c): Use it.
116         * nscd/Makefile (relro-LDFLAGS): Add -Wl,-z,now if have-z-relro.
117         ($(objpfx)nscd): Add $(relro-LDFLAGS).
119         * sysdeps/unix/sysv/linux/i386/sysconf.c: Include hp-timing.h.
120         (__sysconf): Return -1 for _SC_CPUTIME or _SC_THREAD_CPUTIME if
121         !HP_TIMING_AVAIL.
123 2004-10-05  Ulrich Drepper  <drepper@redhat.com>
125         * nscd/Makefile (distribute): Remove TODO.
126         * nscd/TODO: Removed.
128 2004-10-04  Ulrich Drepper  <drepper@redhat.com>
130         * nscd/gai.c: Define __no_netlink_support if NEED_NETLINK is
131         defined and __ASSUME_NETLINK_SUPPORT is zero.
132         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gai.c): Add
133         -DNEED_NETLINK.
135         * malloc/mtrace.pl: Avoid calling location unless it is needed for
136         output.  Patch by Edward Bishop <binutils@gmail.com>.
138         * nscd/Makefile (CFLAGS-gai.c): Add -fpie.
140 2004-10-04  H.J. Lu  <hongjiu.lu@intel.com>
142         * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c
143         (clock_getcpuclockid): Add missing retval.
145         * sysdeps/unix/sysv/linux/ia64/sysconf.c (linux_sysconf): Fix a typo.
147 2004-10-04  Roland McGrath  <roland@redhat.com>
149         * include/errno.h [RTLD_PRIVATE_ERRNO] (errno): Rename the real symbol
150         to rtld_errno.
151         * sysdeps/generic/errno.c [RTLD_PRIVATE_ERRNO] (rtld_errno): Define it,
152         and don't define any other errno names.
153         * sysdeps/unix/alpha/sysdep.h [RTLD_PRIVATE_ERRNO]: Use rtld_errno in
154         place of errno.
155         * sysdeps/unix/i386/sysdep.S: Likewise.
156         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
157         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
158         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
159         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
160         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
161         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
162         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
163         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
164         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
165         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
166         * sysdeps/unix/x86_64/sysdep.S: Likewise.
168         * sysdeps/generic/errno.c [! USE___THREAD] (errno): Use `nocommon'
169         attribute instead of `section'.
171 2004-10-04  Ulrich Drepper  <drepper@redhat.com>
173         * sysdeps/unix/sysv/linux/ia64/sysconf.c: New file.
174         * sysdeps/unix/sysv/linux/ia64/Dist: Add has_cpuclock.c.
175         * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c: Move actual
176         testing code to...
177         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: ...here.  New file.
178         * sysdeps/unix/sysv/linux/i386/sysconf.c: Add dynamic check for
179         _SC_CPUTIME and _SC_THREAD_CPUTIME.
181         * nscd/connections.c (start_threads): Use sysconf in case
182         _POSIX_CLOCK_SELECTION or _POSIX_MONOTONIC_CLOCK is not greater zero.
184         * nscd/Makefile (nscd-modules): Add gai.
185         * nscd/gai.c: New file.
186         * nscd/nscd.c: Remove getaddrinfo stub definition.
188         * assert/assert.h: Give up on using __builtin_expect.
190         * elf/rtld.c (dl_main): Only skip => output in ldd mode if both
191         strings are identical.
193 2004-03-18  Jakub Jelinek  <jakub@redhat.com>
195         * malloc/arena.c (aligned_heap_area): New variable.
196         (new_heap): If aligned_heap_area != NULL, attempt to use that
197         first.  If HEAP_MAX_SIZE << 1 area is already HEAP_MAX_SIZE bytes
198         aligned, remember the second half in aligned_heap_area.
199         (delete_heap): Clear aligned_heap_area if deleting the area right
200         before aligned_heap_area.
202 2004-10-03  Juerg Billeter  <j@bitron.ch>
204         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Return -1 if nscd
205         can't be used.  [BZ #424]
207 2004-10-03  Ulrich Drepper  <drepper@redhat.com>
209         Dynamically create new threads if necessary.
210         * nscd/connections.c (fd_ready): If no thread available for processing
211         the request, create a new one unless the limit is reached.
212         (start_threads): Check errors from pthread_create.
213         * nscd/nscd.h: Declare max_nthreads.
214         * nscd/nscd_conf.c: Parse max-nthreads entry.
215         * nscd/nscd.conf: Add max-threads entry.
216         * nscd/nscd_stat.c: Print current and maximum number of threads.
218         Implement paranoia mode.
219         * nscd/connections.c (nscd_init): Mark database and socket descriptors
220         as close on exec.
221         (restart): New function.
222         (restart_p): New function.
223         (nscd_run): Add missing descrement of nready in case readylist is
224         empty.
225         (main_loop_poll): Call restart_p and restart.
226         (main_loop_epoll): Likewise.
227         (begin_drop_privileges): Save original UID and GID.
228         * nscd/nscd.c: Define new variables paranoia, restart_time,
229         restart_interval, oldcwd, old_gid, old_uid.
230         (main): Disable paranoia mode if we are not forking.
231         (check_pid): When re-execing, the PID file contains the same PID as
232         the current process.  Do not fail in this case.
233         * nscd/nscd.conf: Add paranoia and restart-interval entries.
234         * nscd/nscd.h: Define RESTART_INTERVAL.  Declare new variables.
235         * nscd/nscd_conf.c: Parse paranoia and restart-internal configurations.
236         * nscd/nscd_stat.c: Print paranoia and restart-internal values.
238         * nscd/connections.c: Implement alternative loop for main thread
239         which uses epoll.
240         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
241         (CFLAGS-connections.c): Add -DHAVE_EPOLL.
243 2004-10-02  Ulrich Drepper  <drepper@redhat.com>
245         * nscd/Makefile (CFLAGS-initgrcache.c): Add to CFLAGS-* variables,
246         don't replace old content.
248         * nscd/connections.c: Rewrite handling of incoming connections.  All
249         are handled by one thread which then hands off the descriptors for the
250         real work to the worker threads.
251         * nscd/Makefile: Link nscd with librt.
253         * nscd/selinux.c: Pretty printing.
255         * nscd/dbg_log.c (dbg_log): Don't add unnecessary newline to
256         output.  Let syslog do the formatting if debug_level == 0.
258         * nscd/nscd_helper.c (get_mapping): No need to check timestamp if
259         nscd_certainly_running is nonzero.
261 2004-10-02  Simon Josefsson  <jas@extundo.com>
263         [BZ #420]
264         * sysdeps/generic/memmem.c [!_LIBC]: Define __builtin_expect, to
265         make the file usable inside gnulib.
267 2004-10-01  Ulrich Drepper  <drepper@redhat.com>
269         * malloc/malloc.c (public_vALLOc): Add missing use of hooks.
270         (public_pVALLOc): Likewise.
272         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Always add the
273         group the caller provided unless there is a real problem.
275         * posix/bug-glob1.c (prepare): Fix creation of symlink.
277 2004-09-30  Ulrich Drepper  <drepper@redhat.com>
279         * posix/Makefile: Add rules to build and run bug-glob1.
280         * posix/bug-glob1.c: New file.
282         * iconv/iconv_prog.c (main): Print progress information to stderr.
284         * nscd/nscd.c (termination_handler): Reset timestamp so that
285         clients immediately stop using the database.
287         * nscd/nscd-client.h (__nscd_get_map_ref): Drop volatile from last
288         parameter.
289         (__nscd_drop_map_ref): Change second parameter to be a reference to
290         a variable.  Update variable when cycle count changed.
291         * nscd/nscd_helper.c (__nscd_get_map_ref): Remove volatile here, too.
292         * nscd/nscd_getai.c: Correctly use __nscd_drop_map_ref.  Reinitialize
293         all variables and avoid memory leak in case of retries.
294         * nscd/nscd_getgr_r.c: Likewise.
295         * nscd/nscd_gethst_r.c: Likewise.
296         * nscd/nscd_getpw_r.c: Likewise.
297         * nscd/nscd_initgroups.c: Likewise.
299         * nscd/nscd.h: Add declaration of addinitgroups and
300         readdinitgroups.
302 2004-09-30  Andreas Jaeger  <aj@suse.de>
304         * nscd/Makefile (CFLAGS-nscd_initgroups.c): Set to -fpie.
305         (CFLAGS-initgrcache.c): Set to -fexceptions.
307 2004-09-29  Ulrich Drepper  <drepper@redhat.com>
309         * sysdeps/generic/glob.c (glob_in_dir): Don't blindly trust
310         readdir results; for symlinks or files of unknown type check using
311         stat whether the file exists.
313         * posix/tst-gnuglob.c (find_file): Handle leading "./".  Fix
314         recognition of files.
316 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
318         * time/tzfile.c (tzfile_mtime): New variable.
319         (__tzfile_read): Reread the file if mtime is different.
321 2004-09-28  Jakub Jelinek  <jakub@redhat.com>
323         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf, __fdim, fdimf, fdim):
324         Handle +inf/+inf.
325         * sysdeps/powerpc/fpu/bits/mathinline.h (fdim, fdimf): Likewise.
326         * sysdeps/sparc/fpu/bits/mathinline.h (fdim, fdimf): Likewise.
328 2004-09-29  Ulrich Drepper  <drepper@redhat.com>
330         * nscd/nscd_gethst_r.c (nscd_gethst_r): Use correct constant for
331         testing result of __nscd_get_map_ref.
333 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
335         * sysdeps/i386/fpu/s_fdim.S (__fdim): Handle +inf/+inf.
336         * sysdeps/i386/fpu/s_fdimf.S (__fdimf): Likewise.
337         * sysdeps/i386/fpu/s_fdiml.S (__fdiml): Likewise.
339 004-09-29  Ulrich Drepper  <drepper@redhat.com>
341         * grp/initgroups.c: Move compat_call implementation...
342         * grp/compat-initgroups.c: ...to here.  New file.
343         * grp/Makefile (distribute): Add compat-initgroups.c.
344         (CFLAGS-initgroups.c): Add -DUSE_NSCD=1.
345         * mscd/initgrcache.c: New file.
346         * nscd/nscd_initgroups.c: New file.
347         * nscd/Makefile (routines): Add nscd_initgroups.
348         (nscd-modules): Add initgrcache.
349         * nscd/cache.c (prune_cache): Add support for INITGROUPS entries.
350         * nscd/connections.c: Handle INITGROUPS requests.
351         * nscd/nscd-client.h: Define INITGROUPS, initgr_response_header.
352         Add initgrdata element to struct datahead.  Fix typo in comment.
353         * nscd/nscd_proto.h: Declare __nscd_getgrouplist.  Fix parameter
354         type in __nscd_getgrgrid_r.
355         * nscd/selinux.c (perms): Add INITGROUPS entry.
357         * nscd/nscd_getai.c: No need to include <sys/mman.h>.
359         * sunrpc/get_myaddr.c (get_myaddress): Account for interfaces without
360         assigned addresses.
361         * sunrpc/pmap_clnt.c (__get_myaddress): Likewise.
362         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
363         * sunrpc/clnt_udp.c (is_network_up): Likewise.
365         * nscd/nscd.c: Define getaddrinfo hidden so that it is never found
366         outside.
368         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (si_segvflags):
369         Renamed from si_flags due to conflict with si_flags from <elf.h>.
371 2004-09-28  Ulrich Drepper  <drepper@redhat.com>
373         * nscd/nscd_getai.c: Use NO_MAPPING instead of MAP_FAILED for test
374         of failing __nscd_get_map_ref.  Fix a few typos.
376         * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Make sure
377         SIGSETXID is not blocked.
378         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Likewise.
379         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
380         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
381         * sysdeps/generic/sigfillset.c (sigfillset): Don't set SIGSETXID.
383         * sunrpc/get_myaddr.c (get_myaddress): Fix test for failing
384         getifaddrs call.
385         * sunrpc/pmap_clnt.c (__get_myaddress): Likewise.
386         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
387         * sunrpc/Makefile (xtests): Add tst-getmyaddr.
388         * sunrpc/tst-getmyaddr.c: New file.
390         * malloc/arena.c (ptmalloc_init): Allow MALLOC_CHECK_==0 to
391         disable all checking.
393         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (si_flags): Add
394         support to get this value.
396 2004-09-28  Jakub Jelinek  <jakub@redhat.com>
398         * io/utime.h (utime): Allow second argument to be NULL.
400 2004-09-28  Ulrich Drepper  <drepper@redhat.com>
402         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NAME is a numerical IP
403         address and AI_CANONNAME is set, return copy of NAME as ai_canonname.
405 2004-09-27  Andreas Jaeger  <aj@suse.de>
407         * sysdeps/i386/dl-machine.h (elf_machine_rela_relative): Replace
408         static inline by auto inline, add always_inline attribute.
409         (elf_machine_rel): Likewise.
410         (elf_machine_rela): Likewise.
411         (elf_machine_lazy_rel): Likewise.
412         (elf_machine_lazy_rela): Likewise.
413         (elf_machine_rel_relative): Likewise.
415 2004-09-27  Ulrich Drepper  <drepper@redhat.com>
417         * sunrpc/xdr_intXX_t.c: Add xdr_quad_t and xdr_u_quad_t aliases.
418         * sunrpc/rpc/xdr.h: Declare xdr_quad_t and xdr_u_quad_t.
419         * sunrpc/rpc_parse.c (get_type): Use "quad_t" for TOK_HYPER.
420         Otherwise isvectordef will loop infinitely if typedef hyper int64_t
421         is seen.
422         (unsigned_dec): Use "u_quad_t" for similar reasons.
423         * sunrpc/Versions: Export xdr_quad_t and xdr_u_quad_t.
425 2004-09-27  Roland McGrath  <roland@redhat.com>
427         * sysdeps/generic/bits/waitstatus.h (__WIFSIGNALED): Simplify bit
428         twiddling in last change.
430         * posix/tst-waitid.c (do_test): Add tests for waitpid with WCONTINUED.
432         [BZ #409]
433         * posix/sys/wait.h [__WIFCONTINUED] (WIFCONTINUED): New macro.
434         * stdlib/stdlib.h [__WIFCONTINUED] (WIFCONTINUED): New macro.
435         * sysdeps/generic/bits/waitstatus.h (__W_CONTINUED): New macro.
436         [WCONTINUED] (__WIFCONTINUED): New macro.
437         (__WIFSIGNALED): Rewritten to exclude __W_CONTINUED value, and have no
438         branches.
440         * sysdeps/unix/sysv/linux/waitid.c (do_waitid): Add fifth argument to
441         all three syscall uses, not just one!
443 2004-09-26  Richard Henderson  <rth@redhat.com>
445         * sysdeps/alpha/alphaev6/memcpy.S: Mark .prologue.
446         * sysdeps/unix/alpha/sysdep.h (LEAF, ENTRY): Align entry points
447         to 16 byte boundaries.
449 2004-09-26  Ulrich Drepper  <drepper@redhat.com>
451         * elf/readlib.c (process_file): Before complaining about too-short
452         file, check that it potentially be an ELF file.  Also complain about
453         empty files.  [BZ #151].
455         * scripts/test-installation.pl: Fix ld.so recognition for new
456         LD_TRACE_LOADED_OBJECTS output format.
457         Patch by <jsberg04+computing.glibc@ftml.net>  [BZ #407].
459         * elf/dl-support.c (_dl_non_dynamic_init): Fix cleaning of
460         environment.  [BZ #384]
462         * sunrpc/clnt_udp.c (is_network_up): Use getifaddrs instead of ioctl.
463         * sunrpc/get_myaddr.c (get_myaddress): Likewise.
464         * sunrpc/pmap_clnt.c (__get_myaddress): Likewise.
465         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.  Change interface
466         to avoid buffer overrun and remove now useless parameters.
467         (clnt_broadcast): Adjust caller.  [BZ #381].
469         * sysdeps/generic/s_fdim.c: Handle +inf/+inf
470         * sysdeps/generic/s_fdimf.c: Likewise.
471         * sysdeps/generic/s_fdiml.c: Likewise.
472         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
473         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
474         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
475         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
476         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
477         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
478         * math/libm-test.inc (fdim_test): Add test case.  [BZ #376].
480         * sysdeps/generic/bits/types.h: Fix __SQUAD_TYPE and __UQUAD_TYPE
481         for compilers without __GLIBC_HAVE_LONG_LONG.  [BZ #362]
483         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Remove incorrect
484         requirement on socktype and protocol.
485         (gaih_inet): If numeric port number is given, return records for all
486         possible socket types.
487         * posix/tst-getaddrinfo2.c: New file.
488         * posix/Makefile (tests): Add tst-getaddrinfo2.  [BZ #358]
490 2004-09-25  Ulrich Drepper  <drepper@redhat.com>
492         * locale/loadlocale.c (_nl_intern_locale_data): Recognize LC_CTYPE
493         data where _nl_value_type_LC_CTYPE does not contain the type
494         information.  Add range checks.
495         Reported by John Lumby <johnlumby@hotmail.com> [BZ #356].
497         * libio/vasprintf.c (_IO_vasprintf): Fix condition to decide
498         whether to realloc or not.
499         Reported by Pavel Kankovsky <peak@argo.troja.mff.cuni.cz> [BZ #346].
501         * intl/dcigettext.c (DCIGETTEXT): Protect tfind/tsearch calls.
502         * intl/dcigettext.c (_nl_find_msg): Call _nl_load_domain also if
503         decided < 0.
504         * intl/finddomain.c (_nl_find_domain): Likewise.
505         * intl/loadmsgcat.c (_nl_load_domain): Set decided to 1 only once we
506         are done.  First set to -1 to signal initialization is ongoing.
507         Protect against concurrent callers with recursive lock.
508         * intl/finddomain.c (_nl_find_domain): Protect calls to
509         _nl_make_l10nflist.  [BZ #322]
511         * sysdeps/posix/getaddrinfo.c (getaddrinfo): If determinination of
512         source address fails, initialized source_addr_len field so that
513         duplicate address recognition does not copy junk.
515 2004-09-25  Jakub Jelinek  <jakub@redhat.com>
517         * sysdeps/unix/sysv/linux/i386/setuid.c (__setuid): Remove second
518         result declaration.
520 2004-09-22  Andreas Schwab  <schwab@suse.de>
522         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Adjust whitespace.
524 2004-09-24  Ulrich Drepper  <drepper@redhat.com>
526         * misc/daemon.c (daemon): Don't succeed if /dev/null cannot be
527         opened.
529         * nis/ypclnt.c (do_ypcall): Add one missing unlock.  Simplify the
530         code a bit.
532         * misc/daemon.c (daemon): Define errno in case /dev/null is not
533         the correct device.
535         * nis/ypclnt.c (yp_bind_file): Optimize a bit.  Minimal cleanups.
537 2004-09-23  Andreas Jaeger  <aj@suse.de>
539         * locale/weight.h (findidx): Remove static, it's not supported
540         anymore with GCC 4.0 in a block scope.
541         * locale/weightwc.h (findidx): Likewise.
542         * posix/regcomp.c (seek_collating_symbol_entry): Likewise.
543         (lookup_collation_sequence_value): Likewise.
544         (build_range_exp): Likewise.
545         (build_collating_symbol): Likewise.
546         * iconv/iconvconfig.c (write_output): Likewise.
547         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
549         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Remove
550         static, add always_inline attribute.
551         (elf_machine_rela): Likewise.
552         (elf_machine_lazy_rel): Likewise.
554         * elf/dynamic-link.h (elf_get_dynamic_info): Make static dependend
555         on !RESOLVE so that it's not defined in local scope.
557 2004-09-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
559         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL_NCS): Define.
561 2004-09-23  Thorsten Kukuk  <kukuk@suse.de>
563         * sysdeps/unix/sysv/linux/sys/mount.h: Sync MS_RMT_MASK flag
564         and BLK* ioctls with linux kernel headers.
566 2004-09-23  Ulrich Drepper  <drepper@redhat.com>
568         * sysdeps/generic/bits/dlfcn.h: Add RTLD_DEEPBIND.
569         * elf/dl-object.c (_dl_new_object): Add new parameter mode.  If mode
570         has RTLD_DEEPBIND set add local searchlist before global scope.
571         * sysdeps/generic/ldsodefs.h (_dl_new_object): Adjust prototype.
572         * elf/rtld.c: Adjust callers of _dl_new_object.
573         * elf/dl-load.c: Likewise.
574         (_dl_map_object_from_fd): If RTLD_DEEPBIND is used, don't do anything
575         for DF_SYMBOLIC.
576         * elf/dl-open.c (dl_open_writer): Pass RTLD_DEEPBIND flag on to
577         _dl_map_object_deps.
578         * elf/tst-deep1.c: New file.
579         * elf/tst-deep1mod1.c: New file.
580         * elf/tst-deep1mod2.c: New file.
581         * elf/tst-deep1mod3.c: New file.
582         * elf/Makefile: Add rules to build and run new tests.
584         * elf/dl-deps.c: Pretty printing.
586 2004-09-23  Jakub Jelinek  <jakub@redhat.com>
588         * sysdeps/unix/alpha/sysdep.h (inline_syscall[0-6]): Change name
589         argument to numbers from syscall names.
590         (INLINE_SYSCALL1): Pass __NR_##name to inline_syscall##nr.
591         (INTERNAL_SYSCALL_NCS): Renamed from...
592         (INTERNAL_SYSCALL_1): ... this.  Use INTERNAL_SYSCALL_NCS.
593         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
594         (INTERNAL_SYSCALL_NCS): Define.
595         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
596         (INTERNAL_SYSCALL_NCS): Likewise.
597         * sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall[0-6]):
598         Change name argument to numbers from syscall names.
599         (INLINE_SYSCALL, INTERNAL_SYSCALL): Adjust.
600         (INTERNAL_SYSCALL_NCS): Define.
602 2004-09-22  Ulrich Drepper  <drepper@redhat.com>
604         * malloc/malloc.c (malloc_printerr): Use syslog if writev failed.
606         * string/string.h: Add __nonnull annotations.
607         * stdlib/stdlib.h: Likewise.
609 2004-09-20  H.J. Lu  <hongjiu.lu@intel.com>
611         * sysdeps/unix/sysv/linux/ia64/sysdep.h (DO_INLINE_SYSCALL):
612         Renamed to ...
613         (DO_INLINE_SYSCALL_NCS): This.
614         (DO_INLINE_SYSCALL): New.
615         (INLINE_SYSCALL): Updated.
616         (INTERNAL_SYSCALL_NCS): Updated.
618 2004-09-21  Ulrich Drepper  <drepper@redhat.com>
620         * elf/sprof.c (load_shobj): Add support for reading symbol table
621         from debuginfo file.
623         * elf/ldd.bash.in: Fix syntax errors.
625 2004-09-20  Ulrich Drepper  <drepper@redhat.com>
627         * sysdeps/unix/sysv/linux/dl-execstack.c
628         (_dl_make_stack_executable): Remove some duplication.
630         * nscd/nscd.c (options): Mark S option as hidden.
631         (parse_opt): When S option is used, print warning message.
632         * nscd/grpcache.c (adgrptbyX): Don't handle secure mode.
633         * nscd/hstcache.c (addhstbyX): Don't handle secure mode.
634         * nscd/aicache.c (addhstaiX): Don't handle secure mode.
635         * nscd/pwdcache.c (addpwbyX): Don't handle secure mode.
637 2004-09-20  Roland McGrath  <roland@frob.com>
639         * elf/dl-load.c (__stack_prot): Only use PROT_GROWSUP/PROT_GROWSDOWN
640         in initializer #if defined.
642 2004-09-18  Paul Eggert  <eggert@cs.ucla.edu>
644         [BZ #391]
645         * stdlib/getsubopt.c: Merge fixes from gnulib.
646         (__strchrnul) [!_LIBC]: Define and include "strchrnul.c".
647         (getsubopt): Use prototypes, not K&R style.
648         Fix bug: memcmp(A,B,N) was being invoked on a memory block B
649         whose size might be smaller than N.  Use strncmp to avoid the bug.
651 2004-09-20  Ulrich Drepper  <drepper@redhat.com>
653         * configure.in: If selinux has not explictly been requested, don't
654         comment on it missing.
656         * elf/dl-load.c: Define __stack_prot.
657         * sysdeps/unix/sysv/linux/dl-execstack.c: Don't define
658         __stack_prot here, just declare it.
660 2004-09-20  Jakub Jelinek  <jakub@redhat.com>
662         * configure.in (libc_cv_z_relro): Only set to yes if linker script
663         contains DATA_SEGMENT_RELRO_END.
665 2004-09-20  Ulrich Drepper  <drepper@redhat.com>
667         * elf/dl-load.c (_dl_map_object_from_fd): Add some error checking.
668         Reorder code slightly.
669         * elf/rtld.c (dl_main): No need to check whether l_info[DT_HASH]
670         is non-null, _dl_setup_hash will do that.
672 2004-09-19  Ulrich Drepper  <drepper@redhat.com>
674         * sysdeps/unix/sysv/linux/setegid.c [HAVE_PTR__NPTL_SETXID]: Call
675         callback to set IDs in all other threads as well.
676         * sysdeps/unix/sysv/linux/seteuid.c: Likewise.
677         * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise.
678         * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise.
679         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
680         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
681         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
682         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
683         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
684         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
685         * sysdeps/unix/sysv/linux/setuid.c: New file.
686         * sysdeps/unix/sysv/linux/setgid.c: New file.
687         * sysdeps/unix/sysv/linux/setreuid.c: New file.
688         * sysdeps/unix/sysv/linux/setregid.c: New file.
689         * sysdeps/unix/sysv/linux/setresuid.c: New file.
690         * sysdeps/unix/sysv/linux/setresgid.c: New file.
691         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define INTERNAL_SYSCALL_NCS.
692         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
693         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
694         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
695         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
696         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: Use x86 version.
697         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: Likewise.
698         * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: New file.
699         * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: New file.
700         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Remove setresgid
701         and setresuid.
702         * nscd/aicache.c: Use pthread_seteuid_np instead of seteuid.
703         * nscd/grpcache.c: Likewise.
704         * nscd/hstcache.c: Likewise.
705         * nscd/pwdcache.c: Likewise.
707         * resolv/res_mkquery.c (res_nmkquery): Fix typo.
709 2004-09-18  Ulrich Drepper  <drepper@redhat.com>
711         * sysdeps/unisx/sysv/linux/dl-execstack.c: Get protection flag
712         from memory.
713         * elf/dl-load.c (_dl_map_object_from_fd): Add PROT_EXEC flag to
714         __stack_flags.
716         * sysdeps/posix/getaddrinfo.c (gaih_inet): Do not use
717         gethostbyname3_r if we are not looking for the canonical name.
719         * resolv/res_mkquery.c (res_nmkquery): Randomize request ID every
720         time.
722 2004-09-18  Roland McGrath  <roland@redhat.com>
724         * sysdeps/unix/sysv/linux/waitid.c (do_waitid): Pass fifth argument to
725         system call.
727 2004-09-17  Ulrich Drepper  <drepper@redhat.com>
729         * include/link.h (struct link_map): Add l_used element.
730         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_UNUSED.
731         * elf/rtld.c (process_dl_debug): Recognize unused.
732         (dl_main): When unused debug flag is set check for unused direct
733         dependencies.
734         When printing dependencies and SONAME starts with /, omit the SONAME =>
735         part.
736         * elf/dl-lookup.c (_dl_lookup_symbol_x): Mark object in which the
737         symbol has been found as used.
738         * elf/ldd.bash.in: Add -u option.
740 2004-09-18  Jakub Jelinek  <jakub@redhat.com>
742         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
743         Do nothing if __NR_set_tid_address is not defined.  [BZ #390]
745 2004-09-17  Ulrich Drepper  <drepper@redhat.com>
747         * sysdeps/posix/getaddrinfo.c: Use gethostbyname3_r NSS function
748         in case it is available.
750 2004-09-17  Jakub Jelinek  <jakub@redhat.com>
752         * nscd/nscd.c (parse_opt): Write arg string instead of (void *)
753         key to the socket.
755 2004-09-17  Ulrich Drepper  <drepper@redhat.com>
757         * misc/sys/cdefs.h: Define __nonnull using nonnull function attribute
758         for gcc 3.3 and higher.
759         * io/fcntl.h: Add __nonnull where appropriate.
760         * io/ftw.h: Likewise.
761         * io/utime.h: Likewise.
762         * io/sys/poll.h: Likewise.
763         * io/sys/sendfile.h: Likewise.
764         * io/sys/stat.h: Likewise.
765         * io/sys/statfs.h: Likewise.
766         * io/sys/statvfs.h: Likewise.
767         * posix/unistd.h: Likewise.
768         * catgets/nl_types.h: Likewise.
769         * crypt/crypt.h: Likewise.
770         * debug/execinfo.h: Likewise.
772 2004-09-16  Ulrich Drepper  <drepper@redhat.com>
774         * posix/glob.h: Remove cruft to make header usable outside glibc.
775         The maintenance headache is too big.
777         * configure.in: Add test for required SELinux features.
778         * config.make.in: Add have-selinux entry.
779         * config.h.in: Add HAVE_SELINUX entry.
780         * nscd/Makefile (nscd-modules): Add selinux.
781         (CFLAGS-selinux.c): Add -fpie.
782         Define selinux-LIBS and use in link line.
783         * nscd/connections.c (handle_request): Check access SELinux permissions
784         before processing request.
785         * nscd/nscd.c (main): Initialize selinux_enabled and stop avc thread.
786         * nscd/nscd_stat.c: Transmit and print AVC statistics.
787         * nscd/selinux.c: New file.
788         * nscd/selinux.h: New file.
789         Patch mostly by Matthew Rickard <mjricka@epoch.ncsc.mil>.
791 2004-09-16  Jakub Jelinek  <jakub@redhat.com>
793         * nscd/nscd_helper.c (__nscd_unmap, get_mapping): Use __munmap
794         instead of munmap.
796         * nscd/Makefile (CFLAGS-aicache.c): Set to -fpie.
798 2004-09-16  Thorsten Kukuk  <kukuk@suse.de>
800         * sysdeps/posix/getaddrinfo.c (gaih_inet): Check
801         __nss_not_use_nscd_hosts variable if nscd should be used or not.
803 2004-09-16  Ulrich Drepper  <drepper@redhat.com>
805         * nscd/nscd_proto.h: Define NSS_NSCD_RETRY.
806         Add __nscd_getai prototype.
807         * nss/getXXbyYY_r.c: Remode definition of NSS_NSCD_RETRY.
808         * nscd/nscd-client.h: Remove __nscd_getai prototype.
809         * nscd/nscd_getai.c: Include nscd_proto.h.
811         * elf/ldd.bash.in: Add support for SELinux environments.
812         Patch by Stephen Smalley <sds@epoch.ncsc.mil>.
814 2004-09-16  Roland McGrath  <roland@redhat.com>
816         * configure.in (--with-headers): Let argument contain a : separated
817         list of directories to use, not just one.
818         * configure: Regenerated.
820 2004-09-15  Richard Henderson  <rth@redhat.com>
822         * sysdeps/alpha/fpu/libm-test-ulps: Update.
823         * scripts/data/c++-types-alpha-linux-gnu.data: New file.
825 2004-09-15  Ulrich Drepper  <drepper@redhat.com>
827         * nscd/aicache.c: Prefer using gethostbyname3_r NSS callback to also
828         get ttl and canonical name.  Use these two values.
829         * resolv/Versions: Export _nss_dns_gethostbyname3_r from libnss_dns.
830         * resolv/nss_dns/dns-host.c (getanswer_r): Take two new parameters.
831         If nonnull fill with TTL and pointer to canonical name respectively.
832         (_nss_dns_gethostbyaddr_r): Pass NULL in new parameters of getanswer_r.
833         (_nss_dns_gethostbyname2_r): Just wrapper around
834         _nss_dns_gethostbyname3_r.
835         (_nss_dns_gethostbyname3_r): Renamed from _nss_dns_gethostbyname2_r.
836         Take two new parameters which as passed to getanswer_r.
838         * nscd/Makefile (rountines): Add nscd_getai.
839         (nscd-modules): Add aicache.
840         * nscd/aicache.c: New file.
841         * nscd/nscd_getai.c: New file.
842         * nscd/cache.c (prune_cache): Handle GETAI request type.
843         * nscd/connections.c: Add GETAI support in request handling.
844         * nscd/nscd-client.h (request_type): Add GETAI.
845         Define ai_response_header and struct nscd_ai_result types.
846         (struct datahead): Add aidata field.
847         Declare __nscd_getai.
848         * nscd/nscd.c: Add getaddrinfo definition to catch problems.
849         * nscd/nscd.h: Declare addhstai and readdhstai.
851         * sysdeps/posix/getaddrinfo.c: Add support for using cached results.
852         * posix/Makefile (CFLAGS-getaddrinfo.c): Add -DUSE_NSCD.
854         * nscd/nscd-client.h  (struct datahead): Use uint8_t instead of bool.
856 2004-09-14  Ulrich Drepper  <drepper@redhat.com>
858         * misc/sys/cdefs.h: Remove debugging text from __P and __PMT.
860 2004-09-13  Ulrich Drepper  <drepper@redhat.com>
862         * misc/sys/cdefs.h: Restore old definition of __P.
863         * csu/munch.awk: Remove uses of __P and __PMT.
864         * gmon/gmon.c: Likewise.
865         * hesiod/hesiod.h: Likewise.
866         * include/stdio.h: Likewise.
867         * io/fts.c: Likewise.
868         * libio/genops.c: Likewise.
869         * libio/libioP.h: Likewise.
870         * libio/fileops.c: Likewise.
871         * libio/iolibio.h: Likewise.
872         * libio/libio.h: Likewise.
873         * libio/memstream.c: Likewise.
874         * libio/oldfileops.c: Likewise.
875         * libio/oldstdfiles.c: Likewise.
876         * libio/iopopen.c: Likewise.
877         * libio/vsnprintf.c: Likewise.
878         * libio/vswprintf.c: Likewise.
879         * libio/wgenops.c: Likewise.
880         * libio/oldiopopen.c: Likewise.
881         * locale/programs/xmalloc.c: Likewise.
882         * locale/programs/xstrdup.c: Likewise.
883         * malloc/mtrace.c: Likewise.
884         * misc/getttyent.c: Likewise.
885         * misc/getusershell.c: Likewise.
886         * nis/rpcsvc/ypupd.h: Likewise.
887         * posix/fnmatch.h: Likewise.
888         * posix/glob.h: Likewise.
889         * resolv/arpa/nameser.h: Likewise.
890         * resolv/gethnamaddr.c: Likewise.
891         * resolv/resolv.h: Likewise.
892         * resolv/inet_net_ntop.c: Likewise.
893         * resolv/inet_net_pton.c: Likewise.
894         * resolv/res_init.c: Likewise.
895         * resolv/nss_dns/dns-network.c: Likewise.
896         * stdio-common/vfprintf.c: Likewise.
897         * stdio-common/reg-printf.c: Likewise.
898         * sysdeps/generic/chflags.c: Likewise.
899         * sysdeps/generic/fchflags.c: Likewise.
900         * sysdeps/generic/glob.c: Likewise.
901         * sysdeps/generic/printf_fphex.c: Likewise.
902         * sysdeps/generic/memcmp.c: Likewise.
903         * sysdeps/generic/memcopy.h: Likewise.
904         * sysdeps/generic/morecore.c: Likewise.
905         * sysdeps/generic/sstk.c: Likewise.
906         * sysdeps/posix/sigvec.c: Likewise.
907         * sysdeps/posix/ttyname_r.c: Likewise.
908         * sysdeps/standalone/arm/bits/errno.h: Likewise.
909         * sysdeps/standalone/standalone.h: Likewise.
910         * sysdeps/standalone/i386/force_cpu386/brdinit.c: Likewise.
911         * sysdeps/standalone/i386/force_cpu386/_exit.c: Likewise.
912         * sysdeps/unix/arm/start.c: Likewise.
913         * sysdeps/unix/bsd/sigaction.c: Likewise.
914         * sysdeps/unix/bsd/sun/m68k/sigtramp.c: Likewise.
915         * sysdeps/unix/bsd/sun/sparc/sigtramp.c: Likewise.
916         * sysdeps/unix/bsd/sun/sunos4/wait4.c: Likewise.
917         * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: Likewise.
918         * sysdeps/unix/bsd/ultrix4/sysconf.c: Likewise.
919         * sysdeps/unix/sparc/start.c: Likewise.
920         * sysdeps/unix/sysv/getdents.c: Likewise.
921         * sysdeps/unix/sysv/irix4/fpathconf.c: Likewise.
922         * sysdeps/unix/sysv/irix4/getgroups.c: Likewise.
923         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
924         * sysdeps/unix/sysv/irix4/getrusage.c: Likewise.
925         * sysdeps/unix/sysv/irix4/pathconf.c: Likewise.
926         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
927         * sysdeps/unix/sysv/irix4/sigtramp.c: Likewise.
928         * sysdeps/unix/sysv/irix4/start.c: Likewise.
929         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
930         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c: Likewise.
931         * sysdeps/unix/sysv/sco3.2.4/getgroups.c: Likewise.
932         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
933         * sysdeps/unix/sysv/sysv4/__setpgid.c: Likewise.
934         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
935         * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
936         * sysdeps/unix/sysv/sysv4/sethostname.c: Likewise.
937         * sysdeps/unix/sysv/sysv4/setsid.c: Likewise.
938         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
939         * sysdeps/unix/sysv/sysv4/waitpid.c: Likewise.
940         * sysdeps/unix/sysv/sysv4/solaris2/getdents.c: Likewise.
941         * time/tzset.c: Likewise.
942         * time/strftime_l.c: Likewise.
943         * time/strptime_l.c: Likewise.
944         * crypt/md5.h: Likewise.
946 2004-09-13  Andreas Jaeger  <aj@suse.de>
948         * configure.in: Support GCC 4.x.
949         * configure: Regenerated.
951 2004-09-13  Thorsten Kukuk  <kukuk@suse.de>
953         * nscd/nscd_stat.c: Don't access dbs[cnt].head for disabled services.
955         * nscd/nscd.init: Fix path to socket.
957 2004-09-12  Ulrich Drepper  <drepper@redhat.com>
959         * nscd/nscd_helper.c (get_mapping): Correctly check cmsg length.
960         Avoid file descriptor leak in case of size mismatch.
962         * nscd/nscd-client.h: Fix database structure layout for biarch.
963         * nscd/mem.c (gc): Add casts to avoid warnings.
965         * nss/getent.c: Don't preconstruct help message.  Do it only when
966         needed.
968         * locale/programs/locale.c: Simplify help message printing.
970 2004-09-12  Roland McGrath  <roland@frob.com>
972         * sysdeps/mach/hurd/i386/init-first.c (init1) [! SHARED]: Add decls
973         missing in last change.
975 2004-09-11  Thorsten Kukuk  <kukuk@suse.de>
977         * nis/nss_compat/compat-grp.c: Check that buflen is greater zero
978         before writing data into the buffer with negative offset.
979         * nis/nss_compat/compat-initgroups.c: Likewise.
980         * nis/nss_compat/compat-pwd.c: Likewise.
981         * nis/nss_compat/compat-spwd.c Likewise.
983 2004-09-12  Ulrich Drepper  <drepper@redhat.com>
985         * misc/syslog.c (vsyslog): Fix copying of PID in case of
986         out-of-memory situation.  [BZ #365].
988         * sysdeps/alpha/fpu/bits/mathinline.h: Use __NTH instead of
989         __THROW in inline function definitions.
991         * posix/spawn.h [__USE_GNU]: Define POSIX_SPAWN_USEVFORK.
992         * posix/spawnattr_setflags.c: Check whether any unknown bit is set
993         in FLAGS parameter and fail if this is the case.
994         * sysdeps/posix/spawni.c: Use vfork if POSIX_SPAWN_USEVFORK flag is
995         set.
997         * nscd/pwdcache.c (cache_addpw): Sync also negative results to disk.
998         * nscd/grpcache.c (cache_addgr): Likewise.
999         * nscd/hstcache.c (cache_addhst): Likewise.
1001 2004-09-11  Roland McGrath  <roland@frob.com>
1003         * sysdeps/mach/hurd/i386/init-first.c (init1) [! SHARED]:
1004         Set _dl_phdr and _dl_phnum.
1005         (init1): When bootstrap task, bail early and never examine *D.
1007 2004-09-11  Alfred M. Szmidt  <ams@kemisten.nu>
1009         * sysdeps/mach/hurd/i386/tls.h (__i386_set_gdt) [!HAVE_I386_SET_GDT]:
1010         Cast THR, SEL and DESC to `void'.
1012 2004-09-11  Ulrich Drepper  <drepper@redhat.com>
1014         * nscd/connections.c (nscd_run): Call setup_thread only for enabled
1015         databases.
1017         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Use __NTH for __cmsg_nxthdr.
1019 2004-09-10  Ulrich Drepper  <drepper@redhat.com>
1021         * nscd/nscd.c (pagesize_m1): New variable.
1022         (main): Initialize it.
1023         * nscd/nscd.h: Declare pagesize_m1.
1024         * nscd/hstcache.c: Pass correctly aligned address to msync.
1025         * nscd/grpcache.c: Likewise.
1026         * nscd/pwdcache.c: Likewise.
1028 2004-09-10  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1030         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Decrement
1031         __nwaiters.  If pthread_cond_destroy has been called and this is
1032         the last waiter, signal pthread_cond_destroy caller and avoid
1033         using the pthread_cond_t structure after unlock.
1034         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
1036 2004-09-10  Ulrich Drepper  <drepper@redhat.com>
1038         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
1039         __ASSUME_CLONE_STOPPED.
1041 2004-09-10  Jakub Jelinek  <jakub@redhat.com>
1043         * misc/sys/cdefs.h (__REDIRECT_NTH): Change order of __THROW and
1044         __asm__ for C++.  [BZ #377]
1046 2004-09-10  Ulrich Drepper  <drepper@redhat.com>
1048         * nscd/nscd_stat.c: Improve output by also printing .shared and
1049         .persistent.
1051         * nscd/connections.c: Allow cache sharing to be really disabled.
1053 2004-09-10  Jakub Jelinek  <jakub@redhat.com>
1055         * malloc/malloc.c (_int_free): Only do arena boundary check for
1056         contiguous arenas.
1058 2004-09-10  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
1060         * stdlib/longlong.h [__M32R__] (add_ssaaaa, sub_ddmmss): Fix broken
1061         instruct operands.
1062         * elf/elf.h: Add R_M32R_* relocs.
1064 2004-09-09  Ulrich Drepper  <drepper@redhat.com>
1066         * misc/sys/cdefs.h: Despite what the gcc manual says, gcc 3.2
1067         seems not to support the nothrow attribute.  Use it only for gcc
1068         3.3 and higher.
1070         * malloc/hooks.c (top_check): Print top chunk corruption as normal
1071         error message.
1073         * malloc/malloc.c (malloc_printerr): Don't make informational
1074         message look like error message.
1076 2004-09-09  Andreas Jaeger  <aj@suse.de>
1078         * nscd/Makefile (CFLAGS-nscd_setup_thread.c): Set to -fpie.
1080 2004-09-08  Ulrich Drepper  <drepper@redhat.com>
1082         * sysdeps/unix/sysv/linux/bits/socket.h (__SCM_CONNECT): Removed.
1084         * malloc/malloc.c (_int_free): Add inexpensive double free and
1085         memory corruption tests.
1086         (malloc_printf_nc): Renamed to malloc_printerr.  Second parameter
1087         is no format string anymore.  Don't use stdio.  Adjust all callers.
1088         * malloc/hooks.c: Adjust malloc_printf_nc callers.
1090 2004-09-08  Roland McGrath  <roland@redhat.com>
1092         * malloc/mcheck.c: Don't use __P.
1093         Use prototypes definitions for static functions.
1095 2004-09-08  Ulrich Drepper  <drepper@redhat.com>
1097         * sysdeps/ia64/fpu/bits/mathinline.h: Use __NTH instead of __THROW.
1099 2004-09-08  Ulrich Drepper  <drepper@redhat.com>
1100             Jakub Jelinek  <jakub@redhat.com>
1102         * nscd/nscd-client.h: Add a few #includes.
1104         * nscd/Makefile (nscd-modules): Add nscd_setup_thread.
1105         * nscd/connections.c (nscd_run): Call setup_thread for maintenance
1106         threads.
1107         * nscd/nscd-client.h (struct database_pers_head): Add
1108         nscd_certainly_running field.
1109         * nscd/nscd.h: Declare setup_thread.
1110         * nscd/nscd_helper.c (__nscd_get_map_ref): Avoid the time test if
1111         nscd_certainly_running is nonzero.
1112         * sysdeps/generic/nscd_setup_thread.c: New file.
1113         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: New file.
1115 2004-09-08  Ulrich Drepper  <drepper@redhat.com>
1117         * nscd/connections.c: Implement r/o sharing of nscd's cache with client
1118         processes via shared memory.
1119         * nscd/nscd-client.h: Likewise.
1120         * nscd/nscd.h: Likewise.
1121         * nscd/nscd_conf.c: Likewise.
1122         * nscd/nscd_getgr_r.c: Likewise.
1123         * nscd/nscd_getpw_r.c: Likewise.
1124         * nscd/nscd_gethst_r.c: Likewise.
1125         * nscd/nscd.conf: Add new config parameters.
1126         * nscd/Makefile (aux): Add nscd_helper.
1127         * nscd/nscd_helper.c: New file.
1128         * nscd/mem.c (gc): Indicate beginning and end of the gc cycle.
1130         * nscd/hstcache.c: Simplify a lot.  We cache only the request itself,
1131         no derived information.
1132         * connections.c (nscd_init): Fix bug in testing size of the persistent.
1134         * nis/Makefile (aux): Add nis_hash.
1135         * nis/nis_hash.c: New file.  Split out from nis_util.c.
1136         * nis/nis_util.c: Move __nis_hash code in separate file.
1138         * csu/tst-atomic.c: Improve atomic_increment_val test which would
1139         not have found a ppc bug.
1141         * sysdeps/s390/fpu/bits/mathinline.h: Remove unnecessary includes.
1143         * malloc/arena.c: Remove __MALLOC_P uses.
1144         * malloc/malloc.c: Likewise.
1146         * malloc/mtrace.c: Remove __P uses.
1147         * malloc/mcheck-init.c: Likewise.
1149 2004-09-07  Jakub Jelinek  <jakub@redhat.com>
1151         * sysdeps/powerpc/powerpc64/configure.in: New file.
1152         * config.h.in (USE_PPC64_OVERLAPPING_OPD): Add.
1153         * configure.in (HAVE_ASM_GLOBAL_DOT_NAME): Remove.
1154         * sysdeps/powerpc/powerpc64/sysdep.h: Formatting.
1155         (OPD_ENT, BODY_LABEL, ENTRY_1, ENTRY_2, END_2, DOT_PREFIX,
1156         BODY_PREFIX): Define.
1157         (ENTRY, DOT_LABEL, END, TRACEBACK, END_GEN_TB, EALIGN): Support
1158         HAVE_ASM_GLOBAL_DOT_NAME or no dot symbols,
1159         USE_PPC64_OVERLAPPING_OPD or never overlapping .opd entries.
1160         * sysdeps/powerpc/powerpc64/dl-machine.h: Include sysdep.h.
1161         (TRAMPOLINE_TEMPLATE, RTLD_START): Use the new sysdep.h macros.
1163 2004-09-07  Ulrich Drepper  <drepper@redhat.com>
1165         * malloc/malloc.h: Don't define __THROW if it is already defined.
1167         * sysdeps/powerpc/bits/atomic.h (atomic_increment): Define.
1168         (atomic_decrement): Define.
1170         * sysdeps/powerpc/bits/atomic.h: Implement atomic_increment_val and
1171         atomic_decrement_val.
1172         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
1173         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
1175         * csu/tst-atomic.c (do_test): Add tests of atomic_increment_val
1176         and atomic_decrement_val.
1178         * include/atomic.h: Define atomic_increment_val, atomic_decrement_val,
1179         and atomic_delay is not already defined.
1180         * sysdeps/i386/i486/bits/atomic.h: Define atomic_delay.
1181         * sysdeps/x86_64/bits/atomic.h: Likewise.
1183         * miscd/sys/cdefs.h (__NTH): New macro.
1184         (__THROW): Define using nothrow attribute for C code and gcc >= 3.2.
1185         (__REDIRECT_NTH): New macro.
1186         * argp/argp.h: Use __NTH and __REDIRECT_NTH where necessary.
1187         * ctype/ctype.h: Likewise.
1188         * dirent/dirent.h: Likewise.
1189         * io/fcntl.h: Likewise.
1190         * io/sys/sendfile.h: Likewise.
1191         * io/sys/stat.h: Likewise.
1192         * io/sys/statfs.h: Likewise.
1193         * io/sys/statvfs.h: Likewise.
1194         * libio/bits/stdio.h: Likewise.
1195         * misc/sys/mman.h: Likewise.
1196         * posix/unistd.h: Likewise.
1197         * resource/sys/resource.h: Likewise.
1198         * rt/aio.h: Likewise.
1199         * signal/signal.h: Likewise.
1200         * stdlib/stdlib.h: Likewise.
1201         * string/argz.h: Likewise.
1202         * string/string.h: Likewise.
1203         * sysdeps/generic/inttypes.h: Likewise.
1204         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
1205         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
1206         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
1207         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
1208         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
1209         * sysdeps/unix/sysv/linux/bits/sys/sysmacros.h: Likewise.
1210         * wcsmbs/wchar.h: Likewise.
1212         * sysdeps/generic/glob.c: Use __PMT isntead of __P where appropriate.
1214         * resolv/gethnamaddr.c (getanswer): Remove __P use in variable
1215         definition.
1217         * io/sys/poll.h: Remove __THROW from poll prototype, it's a
1218         cancellation point.
1220         * io/fts.c (fts_open): Remove uses of __P.
1222         * include/stdlib.h: No need to use __THROW in this header.
1224 2004-09-06  Roland McGrath  <roland@frob.com>
1226         * sysdeps/mach/hurd/dl-sysdep.c (__writev): Does use assert on FD
1227         validity, since __assert_fail gets to here anyway.  Just fail.
1229 2004-09-06  Ulrich Drepper  <drepper@redhat.com>
1231         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix problem with
1232         AF_UNSPEC lookup with AI_CANONNAME of name which has only IPv6
1233         addresses.
1235 2004-09-05  Richard Henderson  <rth@redhat.com>
1237         * sysdeps/alpha/fpu/fraiseexcpt.c: Remove file.
1238         * sysdeps/unix/sysv/linux/kernel-features.h
1239         (__ASSUME_IEEE_RAISE_EXCEPTION): New.
1240         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.c: New file.
1241         * sysdeps/unix/sysv/linux/alpha/kernel_sysinfo.h: New file.
1242         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use it.
1243         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
1245 2004-09-05  Richard Henderson  <rth@redhat.com>
1247         * sysdeps/alpha/div.S: Save and restore FPCR around fp operations.
1248         * sysdeps/alpha/divl.S, sysdeps/alpha/divq.S, sysdeps/alpha/divqu.S,
1249         sysdeps/alpha/ldiv.S, sysdeps/alpha/reml.S, sysdeps/alpha/remq.S,
1250         sysdeps/alpha/remqu.S: Likewise.
1251         * sysdeps/alpha/div_libc.h (FRAME): Increase to 64.
1253 2004-09-05  Ulrich Drepper  <drepper@redhat.com>
1255         * nscd/cache.c (cache_add): Correctly log GETHOSTBYADDR and
1256         GETHOSTBYADDRv6 requests.
1258 2004-09-04  Ulrich Drepper  <drepper@redhat.com>
1260         * nscd/pwdcache.c (cache_addpw): Use correct key length in
1261         cache_add calls.
1262         * nscd/grpcache.c (cache_addgr): Likewise.
1264 2004-09-03  Alfred M. Szmidt  <ams@kemisten.nu>
1266         * sysdeps/mach/hurd/i386/tls.h (THREAD_DTV): Changed type of _DTV
1267         to `dtv_t *'.
1269 2004-09-03  Ulrich Drepper  <drepper@redhat.com>
1271         * nscd/nscd.c (parse_opt): Use writev instead of two write for
1272         invalidate command.
1274 2004-09-02  Ulrich Drepper  <drepper@redhat.com>
1276         * nscd/connections.c (nscd_run): Check early for invalid request types.
1278 2004-09-02  Roland McGrath  <roland@frob.com>
1280         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): New macro.
1281         (INSTALL_NEW_DTV, THREAD_DTV): Rewritten to fetch the right word.
1282         (THREAD_SELF): New macro.
1284 2004-09-02  Steven Munroe  <sjmunroe@us.ibm.com>
1286         [BZ #357]
1287         * stdlib/tst-setcontext.c (test_stack): Added test for stack clobber.
1288         (main): Call test_stack.
1289         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1290         (__getcontext): Push stack frame then save parms in local frame.
1291         Improve instruction scheduling.
1292         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1293         (__swapcontext): Likewise.
1295 2004-09-01  Andreas Schwab  <schwab@suse.de>
1297         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h [g++ >= 3.5]: Use
1298         __builtin_offsetof.
1300 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
1302         [BZ #361]
1303         * posix/fnmatch_loop.c (FCT): For backslash between brackets, branch
1304         to normal_bracket after fetching the next character.
1305         * posix/tst-fnmatch.input: Add 25 new tests.
1306         Reported by Markus Oberhumer <markus@oberhumer.com>.
1308 2004-09-01  Ulrich Drepper  <drepper@redhat.com>
1310         * elf/rtld.c (dl_main): First check existence of ld.so.preload
1311         with access.
1313 2004-09-01  Roland McGrath  <roland@redhat.com>
1315         * sysdeps/unix/sysv/linux/bits/waitflags.h
1316         (WSTOPPED, WEXITED, WCONTINUED, WNOWAIT): New macros.
1317         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_WAITID_SYSCALL):
1318         New macro.
1319         * sysdeps/unix/sysv/linux/waitid.c: New file.  Use new syscall when
1320         available, or fall back to the waitpid-based generic code.
1322 2004-08-14  Alfred M. Szmidt  <ams@kemisten.nu>
1324         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Let gcc
1325         clobber the `ebp' register.
1326         * sysdeps/mach/hurd/i386/Makefile (CFLAGS-init-first.c): Removed.
1327         Reverts change from 2004-05-07 by Jeroen Dekkers.
1329         * sysdeps/mach/hurd/i386/init-first.c (init): Changed the type of
1330         NEWSP from `void *' to `int *'.  Changed all casts accordingly.
1332 2004-08-31  Jakub Jelinek  <jakub@redhat.com>
1334         * wcsmbs/wcsmbsload.c (__wcsmbs_getfct): Move attribute_hidden
1335         before return type.
1336         * locale/localename.c (__current_locale_name): Likewise.
1338 2004-08-30  Roland McGrath  <roland@frob.com>
1340         * scripts/extract-abilist.awk: If `lastversion' variable defined, omit
1341         later sets from output.
1342         * Makerules (check-abi): Pass option to set that with value of
1343         LIB-abi-frozen variable if one is set.
1345         * abilist/libcidn.abilist: New file (empty).
1347 2004-08-30  Jakub Jelinek  <jakub@redhat.com>
1349         * posix/bits/posix1_lim.h (_POSIX_CHILD_MAX, _POSIX_OPEN_MAX): If
1350         not __USE_XOPEN2K, use the Unix98 mandated values.
1352 2004-08-27  Roland McGrath  <roland@redhat.com>
1354         * configure.in (usetls): Default to yes.
1355         * configure: Regenerated.
1357 2004-08-26  Roland McGrath  <roland@redhat.com>
1359         * configure.in (add_ons_automatic): New variable, set to yes or no
1360         indicating --enable-add-ons with no explicit list.
1361         (running add-on fragments): Allow a fragment to modify $libc_add_on
1362         and have that affect its place in the list of add-ons to use.
1363         * configure: Regenerated.
1365 2004-08-26  Ulrich Drepper  <drepper@redhat.com>
1367         * nscd/cache.c: Major rewrite.  The data is now optionally kept in
1368         a mmaped memory region which is automatically mirrored on disk.
1369         This implements persistent data storage.  The Memory handled
1370         needed to be completely revamped, it now uses a garbage collection
1371         mechanism instead of malloc.
1372         * nscd/connections.c: Likewise.
1373         * nscd/nscd.c: Likewise.
1374         * nscd/nscd.h: Likewise.
1375         * nscd/nscd_conf.c: Likewise.
1376         * nscd/nscd_stat.c: Likewise.
1377         * nscd/grpcache.c: Likewise.
1378         * nscd/hstcache.c:: Likewise.
1379         * nscd/pwdcache.c:: Likewise.
1380         * nscd/Makefile: Add rules to build mem.c.
1381         * nscd/mem.c: New file.
1382         * nscd/nscd.conf: Describe new configuration options.
1384 2004-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1386         * sysdeps/unix/sysv/linux/mips/pread.c: Include sgidefs.h only if
1387         NO_SGIDEFS_H isn't defined.
1388         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1389         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1391         * sysdeps/unix/sysv/linux/sh/pread.c: Define NO_SGIDEFS_H and
1392         _MIPS_SIM.
1393         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
1394         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
1395         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
1397 2004-08-26  Ulrich Drepper  <drepper@redhat.com>
1399         * nscd/connections.c (nscd_run): atomic_increment was not missing.
1401         * sysdeps/gnu/Makefile (libdl-sysdep_routines): Don't add eval.
1402         Patch by Greg Schafer.
1404 2004-08-25  Richard Henderson  <rth@redhat.com>
1406         * sysdeps/alpha/elf/start.S (_start): Use $15 as frame unwind
1407         instead of $31.  Zero $15.
1408         * sysdeps/unix/sysv/linux/alpha/clone.S (thread_start): Likewise.
1410 2004-08-25  Ulrich Drepper  <drepper@redhat.com>
1412         * sysdeps/powerpc/powerpc64/bits/atomic.h
1413         (__arch_compare_and_exchange_bool_32_acq): Fix case where oldval
1414         is negative.
1415         (__arch_compare_and_exchange_bool_32_rel): Likewise.
1417         * nscd/connections.c: Make socket nonblocking so that threads
1418         don't get stuck on accept.  Fix locking.
1420         * nscd/grpcache.c (cache_addgr): Use copy of original key in hash
1421         entry with alternative key.
1422         * nscd/pwdcache.c (cache_addpw): Likewise.
1424 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
1426         * sysdeps/mips/dl-machine.h (_dl_start_user): Don't set
1427         __libc_stack_end.
1429 2004-08-23  Ulrich Drepper  <drepper@redhat.com>
1431         * sysdeps/gnu/netinet/udp.h: Cosmetic changes.  Remove unnecessary
1432         __BEGIN_DECLS/__END_DECLS.
1434 2004-08-23  Andreas Jaeger  <aj@suse.de>
1436         [BZ #341]
1437         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_NOATIME): Define.
1438         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (O_NOATIME): Likewise.
1439         * sysdeps/unix/sysv/linux/cris/bits/fcntl.h (O_NOATIME): Likewise.
1440         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (O_NOATIME): Likewise.
1441         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (O_NOATIME): Likewise.
1442         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_NOATIME): Likewise.
1443         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (O_NOATIME): Likewise.
1444         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_NOATIME): Likewise.
1445         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_NOATIME): Likewise.
1446         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_NOATIME): Likewise.
1447         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (O_NOATIME): Likewise.
1448         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_NOATIME): Likewise.
1449         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (O_NOATIME): Likewise.
1451 2004-08-21  Ulrich Drepper  <drepper@redhat.com>
1453         * malloc/hooks.c (DEFAULT_CHECK_ACTION): Moved to malloc.c.
1454         (check_action): Likewise.
1455         When printing error messages, use malloc_printf_nc now instead of
1456         fiddling with the streams cancellation flag in every place.
1457         * malloc/malloc.c (DEFAULT_CHECK_ACTION): New definition.  Change
1458         default to 3.
1459         (check_action): New variable.
1460         (unlink): Print error message and eventually terminate in case list
1461         is corrupted.
1462         (malloc_printf_nc): New function.  Use it in _int_free.
1463         Change proposed by Arjan van de Ven.
1465         * dlfcn/Makefile: Don't build eval.c anymore.
1467 2004-08-20  Roland McGrath  <roland@frob.com>
1469         * csu/Makefile ($(objpfx)version-info.h): Use printf in place
1470         of echo -e for POSIX.2 portability.
1471         Reported by Paul Jarc <prj@po.cwru.edu>.
1473 2004-08-19  Ulrich Drepper  <drepper@redhat.com>
1475         * sysdeps/posix/getaddrinfo.c (gaih_inet): Minor optimizations in
1476         list generation.
1478         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use
1479         getcanonname_r function if AI_CANONNAME flag is not set in
1480         request.
1482         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss):
1483         Initialize mysize with limits only if latter is >= 0.  Use mysize
1484         in malloc call.
1486 2004-08-19  Jakub Jelinek  <jakub@redhat.com>
1488         * sysdeps/posix/getaddrinfo.c (gaih_inet): Cast canon to (char *)
1489         to avoid warning.
1491         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Initialize
1492         status to NSS_STATUS_UNAVAIL.
1494 2004-08-19  Ulrich Drepper  <drepper@redhat.com>
1496         * sysdeps/posix/getaddrinfo.c (gaih_inet): Use h->h_name in the
1497         cannoname lookup since it has the FQDN even if the original NAME
1498         value has not.
1500 2004-08-18  Ulrich Drepper  <drepper@redhat.com>
1502         * sysdeps/posix/getaddrinfo.c (gaih_inet): Store NAME parameter
1503         pointer in new variable ORIG_NAME and use this pointer when
1504         determination of canonical name failed, not the possibly IDN
1505         translated value of NAME.
1507 2004-08-17  Ulrich Drepper  <drepper@redhat.com>
1509         * resolv/resolv.h (RES_DEFAULT): Add RES_NOIP6DOTINT.
1510         * resolv/res_init.c (res_setoptions): Recognize ip6-dotint option.
1511         Reset RES_NOIP6DOTINT flag in this case..
1513         * sysdeps/posix/getaddrinfo.c: Fix memory handling of
1514         ai_canonname.
1516 2004-08-16  Ulrich Drepper  <drepper@redhat.com>
1518         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Don't use
1519         CNAME records, we better follow the chain of CNAME records which
1520         can be accomplished with A/AAAA lookups.
1522 2004-08-15  Roland McGrath  <roland@redhat.com>
1524         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who):
1525         Remove __RUSAGE_BOTH constant and RUSAGE_BOTH macro.
1526         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1527         * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
1528         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1530 2004-08-15  Roland McGrath  <roland@frob.com>
1532         * sysdeps/i386/i686/Makefile (elide-routines.os): Append hp-timing to
1533         this, not ...
1534         (static-only-routines): ... this.
1535         * sysdeps/ia64/Makefile: Likewise.
1536         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
1537         * sysdeps/sparc/sparc64/Makefile: Likewise.
1538         * sysdeps/x86_64/Makefile: Likewise.
1539         * sysdeps/i386/i686/hp-timing.c: Revert copyright terms change.
1540         * sysdeps/ia64/hp-timing.c: Likewise.
1541         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
1542         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
1544         * csu/elf-init.c: Update copyright terms including special exception
1545         for these trivial files, which are statically linked into executables
1546         that use dynamic linking for the significant library code.
1547         * io/fstat.c: Likewise.
1548         * io/fstat64.c: Likewise.
1549         * io/lstat.c: Likewise.
1550         * io/lstat64.c: Likewise.
1551         * io/stat.c: Likewise.
1552         * io/stat64.c: Likewise.
1553         * stdlib/atexit.c: Likewise.
1554         * sysdeps/alpha/elf/initfini.c: Likewise.
1555         * sysdeps/alpha/elf/start.S: Likewise.
1556         * sysdeps/arm/elf/start.S: Likewise.
1557         * sysdeps/cris/elf/start.S: Likewise.
1558         * sysdeps/generic/initfini.c: Likewise.
1559         * sysdeps/generic/mknod.c: Likewise.
1560         * sysdeps/hppa/elf/initfini.c: Likewise.
1561         * sysdeps/hppa/elf/start.S: Likewise.
1562         * sysdeps/i386/elf/start.S: Likewise.
1563         * sysdeps/i386/i686/hp-timing.c: Likewise.
1564         * sysdeps/ia64/elf/initfini.c: Likewise.
1565         * sysdeps/ia64/elf/start.S: Likewise.
1566         * sysdeps/ia64/hp-timing.c: Likewise.
1567         * sysdeps/m68k/elf/start.S: Likewise.
1568         * sysdeps/mach/start.c: Likewise.
1569         * sysdeps/mips/elf/start.S: Likewise.
1570         * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
1571         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
1572         * sysdeps/s390/s390-32/elf/start.S: Likewise.
1573         * sysdeps/s390/s390-32/initfini.c: Likewise.
1574         * sysdeps/s390/s390-64/elf/start.S: Likewise.
1575         * sysdeps/s390/s390-64/initfini.c: Likewise.
1576         * sysdeps/sh/elf/initfini.c: Likewise.
1577         * sysdeps/sh/elf/start.S: Likewise.
1578         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
1579         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
1580         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
1581         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
1582         * sysdeps/standalone/i386/start.S: Likewise.
1583         * sysdeps/standalone/i960/start.S: Likewise.
1584         * sysdeps/standalone/m68k/m68020/start.S: Likewise.
1585         * sysdeps/unix/arm/start.c: Likewise.
1586         * sysdeps/unix/bsd/osf/alpha/start.S: Likewise.
1587         * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
1588         * sysdeps/unix/sparc/start.c: Likewise.
1589         * sysdeps/unix/start.c: Likewise.
1590         * sysdeps/unix/sysv/aix/start.s: Likewise.
1591         * sysdeps/unix/sysv/irix4/start.c: Likewise.
1592         * sysdeps/x86_64/elf/initfini.c: Likewise.
1593         * sysdeps/x86_64/elf/start.S: Likewise.
1595 2004-08-15  Roland McGrath  <roland@redhat.com>
1597         [BZ #227]
1598         * sysdeps/unix/sysv/linux/kernel-features.h
1599         (__ASSUME_BRK_PAGE_ROUNDED): New macro.
1600         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
1601         [! __ASSUME_BRK_PAGE_ROUNDED]: Adjust the break up if it falls within
1602         the partial page after the dynamic linker's own data segment.
1604 2004-08-15  Ulrich Drepper  <drepper@redhat.com>
1606         * sysdeps/posix/getaddrinfo.c (gaih_inet): Optimize generation of
1607         v4-mapped addresses a bit.
1608         (gethosts): Move alloca out of macro, so that it is done only once.
1610         * sysdeps/posix/getaddrinfo.c (gaih_addrtuple): Change type of
1611         addr to avoid casts.
1612         (gethosts): Removed.
1613         (gethosts2): Renamed to gethosts.  Make it usable for family !=
1614         AF_UNSPEC.  Fix AI_V4MAPPED.
1615         (gaih_inet): Remove use of old gethosts.  Always use what used to be
1616         gethosts2.  If entry is found, try to use the same NSS module's
1617         getcanonname_r function.  Use gethostbyaddr for AI_CANONNAME only
1618         if getcanonname_r was not available.  Fix filtering of AI_V4MAPPED
1619         addresses.  Numerous cleanups.
1620         * resolv/nss_dns/dns-canon.c: New file.
1621         * resolv/Makefile (libnss_dns-routines): Add dns-canon.
1622         * resolv/Versions (libnss_dns): Add _nss_dns_getcanonname_r.
1624         * elf/Makefile: Add rules to build and run tst-dlopenrpath.
1625         * elf/tst-dlopenrpath.c: New file.
1626         * elf/tst-dlopenrpathmod.c: New file.
1628         * intl/tst-gettext.sh: Adjust for change of de.po file to UTF-8.
1629         * intl/tst-gettext.c: Likewise.
1631         * nss/getent.c (ahosts_keys_int): Correctly print IPv6 addresses.
1633         * nss/getent.c: Allow queries for getaddrinfo with AF_INET and
1634         AF_INET6.
1636 2004-08-14  Ulrich Drepper  <drepper@redhat.com>
1638         * po/de.po: Update from translation team.
1640 2004-08-14  Roland McGrath  <roland@frob.com>
1642         * sysdeps/mach/configure: Regenerated.
1643         * sysdeps/mach/hurd/configure: Regenerated.
1645 2004-08-14  Ulrich Drepper  <drepper@redhat.com>
1647         * sysdeps/posix/getaddrinfo.c (getaddrinfo): If RFC3484 sorting is
1648         performed, make sure it is still the first entry after sorting
1649         that has the ai_canonname information.
1651         * sysdeps/posix/getaddrinfo.c (gaih_inet): Really set ai_canonname
1652         only in one entry.
1654 2004-08-13  Daniel Jacobowitz  <dan@debian.org>
1656         * scripts/output-format.sed: Handle default case of three-argument
1657         OUTPUT_FORMAT.
1659         * sysdeps/arm/machine-gmon.h (mcount_internal): Mark as
1660         __attribute_used__.
1662 2004-08-13  Ulrich Drepper  <drepper@redhat.com>
1664         * nss/getent.c (ahosts_keys): ai_canonname is NULL for all but the
1665         first returned entry.  Print name only if not NULL.
1667         * nis/nss_nis/nis-netgrp.c: Remove locking by using data in struct
1668         __netgrent object passed in instead of global variables.
1669         Optimize.
1670         * nis/nss_nisplus/nisplus-netgrp.c: Remove locking by using data
1671         in struct __netgrent object passed in instead of global variables.
1672         * inet/netgroup.h (struct __netgrent): Add service_user field.
1673         Move cursor in anonymous union, add new field location to that
1674         union.
1675         * inet/getnetgrent_r.c: Extensive rewrite to really enable
1676         concurrent uset of set/get/endnetgrent and innetgr.
1677         Reported by Chuck Simmons.
1679         * inet/netgroup.h (struct name_list): Replace name pointer with
1680         zero-sized array.
1681         * inet/getnetgrent_r.c: Adjust code for change in name_list
1682         layout.  Numerous strdup and free calls removed.
1684         * elf/sprof.c (read_symbols): When comparing aliases, prefer
1685         non-hidden over hidden symbols and strong over weak symbols
1686         if both don't start with '_'.
1688         * malloc/malloc.c: Use strong_alias instead of weak_alias wherever
1689         possible.
1691 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
1693         * sysdeps/unix/sysv/linux/bits/resource.h: Define non-standard
1694         RUSAGE_ enums as __RUSAGE_ and adjust macros accordingly.
1695         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1696         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1697         * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
1698         Define non-standard RLIMIT_ enums as __RLIMIT_ and adjust macros
1699         accordingly.
1701 2004-08-11  Andreas Schwab  <schwab@suse.de>
1703         * resolv/res_libc.c: Move definition of __res_initstamp ...
1704         * resolv/res_init.c: ... here.
1706 2004-08-10  GOTO Masanori  <gotom@debian.or.jp>
1708         * locale/C-time.c: Change default ERA value from NULL to "".
1709         * locale/tst-C-locale.c: Add test case for ERA keywords.
1711 2004-08-12  Ulrich Drepper  <drepper@redhat.com>
1713         * sysdeps/unix/sysv/linux/bits/resource.h: Define non-standard
1714         RLIMIT__ enums as __RLIMIT_ and adjust macros accordingly.
1715         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1716         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1718 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
1720         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_SIGPENDING,
1721         RLIMIT_MSGQUEUE): Add.
1722         (RLIMIT_NLIMITS, RLIM_NLIMITS): Adjust.
1723         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIMIT_SIGPENDING,
1724         RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
1725         (RLIM_NLIMITS): Adjust.
1726         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIMIT_SIGPENDING,
1727         RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
1728         (RLIM_NLIMITS): Adjust.
1729         * sysdeps/unix/sysv/linux/mips/bits/resource.h (RLIMIT_SIGPENDING,
1730         RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
1731         (RLIM_NLIMITS): Adjust.
1733 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
1735         * resolv/res_query.c (__libc_res_nsearch): Protect the debugging
1736         printf with #ifdef DEBUG and RES_DEBUG check.
1738         * sysdeps/unix/sysv/linux/bits/shm.h: Move __END_DECLS after
1739         __USE_MISC #endif.
1740         * sysdeps/generic/bits/shm.h: Add __BEGIN_DECLS for __getpagesize
1741         declaration.
1742         * sysdeps/gnu/bits/shm.h: Likewise.
1743         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
1744         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
1745         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
1746         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
1747         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
1749 2004-08-12  Ulrich Drepper  <drepper@redhat.com>
1751         * po/ca.po: Update from translation team.
1753 2004-08-11  Ulrich Drepper  <drepper@redhat.com>
1755         * sysdeps/unix/sysv/linux/bits/shm.h: Add __BEGIN_DECLS for
1756         __getpagesize declaration.
1758 2004-08-11  Roland McGrath  <roland@redhat.com>
1760         * configure.in (libc_cv_cpp_asm_debuginfo): Add missing braces around
1761         commands inside &&.
1762         Reported by Andreas Schwab <schwab@suse.de>.
1763         * configure: Regenerated.
1765         * posix/tst-waitid.c (do_test): Ignore SIGCHLD before cleanup SIGKILL.
1767 2004-08-11  Ulrich Drepper  <drepper@redhat.com>
1769         * time/tzset.c (tzset_internal): Add new parameter which is
1770         nonzero if called through tzset.  Use TZDEFAULT name including
1771         name comparison if the new parameter is zero.  This means implicit
1772         tzset calls will not cause files to be opened and read by tzfile.c
1773         all the time.
1775 2004-08-11  Jakub Jelinek  <jakub@redhat.com>
1777         * rt/tst-timer2.c (do_test): If timer_create fails, just continue.
1778         * rt/tst-timer4.c (do_test): If one of the timer_create calls fails,
1779         return 1 immediately.
1781         * time/tzfile.c (__tzfile_read): Free transitions only if it will
1782         not be reused.
1784         * sysdeps/ieee754/dbl-64/mpa.c: Include <sys/param.h>.
1785         * sysdeps/ieee754/dbl-64/mpa.h (MAX, MIN): Macros removed.
1787         * stdio-common/tst-popen.c: Include <string.h>.
1789         * resolv/res_send.c (__libc_res_nsend): Only define TMPBUF #if DEBUG.
1791         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Remove noreturn
1792         attribute.  Return NULL instead of calling pthread_exit at the end.
1794 2004-08-11  Roland McGrath  <roland@redhat.com>
1796         * iconvdata/testdata/ISO-2022-JP-3: Regenerated.
1798 2004-08-10  Alfred M. Szmidt  <ams@kemisten.nu>
1800         * sysdeps/generic/bits/in.h (struct ip_mreq): Remove definition.
1802 2004-08-10  Jakub Jelinek  <jakub@redhat.com>
1804         * libio/bits/stdio.h (fread_unlocked): Cast 0 to (size_t).
1805         (fwrite_unlocked): When checking if size * n is <= 8, cast each
1806         argument to size_t individually.  Cast n to (void) instead of
1807         (size_t), surround with (), return (size_t) 0 if one of n or size
1808         is 0.  [BZ #316]
1809         * stdio-common/Makefile (tests): Add tst-unlockedio.
1810         * stdio-common/tst-unlockedio.c: New test.
1812 2004-08-09  Roland McGrath  <roland@frob.com>
1814         * manual/install.texi (Supported Configurations): Replace bug-glibc
1815         mention with web URL.
1816         * INSTALL: Regenerated.
1817         * locale/iso-3166.def: Likewise, in comment.
1818         * locale/iso-4217.def: Likewise.
1819         * locale/iso-639.def: Likewise.
1820         * posix/cpio.h: Remove bug reporting comment.
1822 2004-08-09  Ulrich Drepper  <drepper@redhat.com>
1824         * libio/bits/stdio.h (fread_unlocked): Add a couple of (size_t)
1825         casts to handle funny calls with floating point argument values
1826         and signed values correctly and without warning.
1827         (fwrite_unlocked): Likewise.  [BZ #309]
1829         * malloc/memusage.c (me): Use creat64, not creat.
1830         * malloc/memusagestat.c: Fix handling of very large sizes.  [BZ #285]
1831         Patch by Guy Maor <guymaor@yahoo.com>.
1833         * elf/ldconfig.c (options): Mark parameter option names as
1834         translatable.  [BZ #253]  Patch by Jakub Bogusz <qboosh@pld-linux.org>.
1836         * iconv/gconv_charset.h (strip): Also allow comma which is what is
1837         used to separate options.  [BZ #194]
1839 2004-08-09  Roland McGrath  <roland@redhat.com>
1841         * FAQ.in: Refer to web pages instead of bug-glibc.
1842         * FAQ: Regenerated.
1844         * time/strptime_l.c: #include <stdbool.h>, `bool' used in last change.
1846 2004-08-09  Ulrich Drepper  <drepper@redhat.com>
1848         * time/tzset.c (tzset_internal): If TZ is not set do not compare
1849         old and new tz value since it might be /etc/localtime in both
1850         cases although the file changed.  [BZ #154]
1851         Patch by Christian Franke <franke@computer.org>.
1853         * time/tzfile.c (__tzfile_read): Determine dev/ino of file.
1854         Compare with values of previously opened file.  Don't do anything
1855         is they match.
1857 2004-08-08  Ulrich Drepper  <drepper@redhat.com>
1859         * elf/dl-load.c (_dl_map_object): If __RTLD_CALLMAP flag is set,
1860         reset loader before the actual loading.
1861         * elf/dl-open.c (dl_open_worker): If file name contains no path
1862         element determine map of caller.  Pass caller map in this case to
1863         _dl_map_object.  Set __RTLD_CALLMAP in mode.
1864         * include/dlfcn.h (__RTLD_CALLMAP): Define.  [BZ #116]
1865         Patch by Greg Wolodkin <greg@mathworks.com>.
1867         * misc/syslog.c (openlog_internal): Always try both UDP and TCP.
1868         [BZ #108]  Patch mainly by Bjorn Andersson <bjorn@iki.fi>.
1870         * configure.in: Also recognize i786. [BZ #106]
1871         Patch by <pluto@pld-linux.org>.
1873         * resolv/res_query.c (__libc_res_nsearch): Correctly test whether
1874         name contains any dots. [BZ #95]
1876         * resolv/res_send.c: Compiling with DEBUG defined works again.
1877         * resolv/gethnamaddr.c (dprintf): Renamed to Dprintf.  Adjust all
1878         callers.
1880         * resolv/tst-leaks.c (TIMEOUT): Define so that if no server is
1881         available the process is not killed. [BZ #41]
1883         * intl/tst-gettext.c (main): Improve some messages. [BZ #33]
1885         * time/strptime_l.c (__strptime_internal): Fix handling of %Ey.
1886         [BZ #28]
1888         * po/sv.po: Update from translation team.
1890 2004-08-07  Ulrich Drepper  <drepper@redhat.com>
1892         * inet/netinet/in.h: Add more const to the setipv4soucefilter,
1893         getsourcefilter, and setsourcefilter parameter list.
1894         * sysdeps/generic/setipv4sourcefilter.c: Likewise.
1895         * sysdeps/generic/getsourcefilter.c: Likewise.
1896         * sysdeps/generic/setsourcefilter.c: Likewise.
1897         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
1898         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
1899         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
1901         * po/tr.po: Update from translation team.
1903 2004-08-06  Ulrich Drepper  <drepper@redhat.com>
1905         * iconvdata/jisx0213.h (jisx0213_added_in_2004_p): Fix typo.
1906         Reported by Paolo Bonzini.
1908 2004-08-06  Jakub Jelinek  <jakub@redhat.com>
1910         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add
1911         always_inline.
1912         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_runtime_setup,
1913         elf_machine_fixup_plt, elf_machine_plt_conflict): Likewise.
1915         * sysdeps/unix/sysv/linux/netatalk/at.h: Include bits/sockaddr.h
1916         before including linux/atalk.h.
1918         * resolv/res_libc.c: Include atomic.h.
1920         * intl/finddomain.c (free_mem): Rename to...
1921         (_nl_finddomain_subfreeres): ... this.  Add
1922         __libc_freeres_fn_section.
1923         * intl/loadmsgcat.c (_nl_unload_domain): Add
1924         __libc_freeres_fn_section.
1925         * intl/gettextP.h (_nl_unload_domain): Move into #ifdef _LIBC.
1926         Add attribute_hidden.
1927         (_nl_findomain_subfreeres): New prototype.
1928         * iconv/gconv_db.c (free_mem): Call _nl_findomain_subfreeres.
1930 2004-07-30  Guido Guenther  <agx@sigxcpu.org>
1932         * nss/getent.c (passwd_keys): Use strtoul instead of isdigit to
1933         test if the key is numeric or not.
1934         (group_keys): Likewise.
1936 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
1938         * inet/netinet/in.h: Define struct ip_msfilter, IP_MSFILTER_SIZE,
1939         struct group_filter, and GROUP_FILTER_SIZE.
1940         * include/sys/socket.h: Declare __getsockopt.
1941         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: New file.
1942         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: New file.
1943         * sysdeps/unix/sysv/linux/setsourcefilter.c: New file.
1944         * sysdeps/unix/sysv/linux/getsourcefilter.c: New file. [BZ #211]
1946         * po/ko.po: Update from translation team.
1948 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
1950         * hesiod/hesiod.c (__hesiod_res_get): Use calloc instead of malloc +
1951         memset.
1952         (__hesiod_res_set): Free nsaddrs.
1954         * include/resolv.h (__res_maybe_init): Add prototype.
1955         * resolv/resolv.h (struct __res_state): Add _u._ext.initstamp field.
1956         * resolv/Versions (libc): Add __res_maybe_init@@GLIBC_PRIVATE.
1957         * resolv/res_libc.c (__res_initstamp, lock): New variables.
1958         (res_init): Increase __res_initstamp.
1959         (__res_maybe_init): New function.
1960         * resolv/res_init.c (__res_vinit): Initialize _u._ext.initstamp.
1961         * hesiod/hesiod.c (__hesiod_res_get): Use __res_maybe_init instead
1962         of RES_INIT check and {res_ninit,__res_ninit,res_init} call.
1963         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
1964         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
1965         _nss_dns_gethostbyaddr_r): Likewise.
1966         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
1967         _nss_dns_getnetbyaddr_r): Likewise.
1968         * resolv/gethnamaddr.c (gethostbyname, gethostbyname2,
1969         gethostbyaddr): Likewise.
1970         * resolv/res_data.c (fp_nquery, res_mkquery, res_mkupdate,
1971         res_isourserver, res_sendsigned, res_update, res_search,
1972         res_querydomain): Likewise.
1973         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Likewise.
1974         * nss/digits_dots.c (__nss_hostname_digits_dots): Likewise.
1975         * nss/getnssent_r.c (__nss_setent, __nss_endent, __nss_getent_r):
1976         Likewise.
1978 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
1980         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set ai_family for
1981         V4-mapped IPv6 addresses and req->ai_family==AF_INET.
1982         Reported by A. Guru <a.guru@sympatico.ca>.
1984         * po/sv.po: Update from translation team.
1985         * po/sk.po: Likewise.
1986         * po/pl.po: Likewise.
1988 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
1989             Ulrich Drepper  <drepper@redhat.com>
1991         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Don't read more input
1992         characters than necessary.
1994 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
1996         * wcsmbs/Makefile (tests): Add tst-mbsrtowcs.
1997         * wcsmbs/tst-mbsrtowcs.c: New file.
1999         * po/fr.po: Update from translation team.
2001 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
2003         * resolv/inet_pton.c (inet_pton4): Disallow octal numbers.  Reported
2004         by A. Guru <a.guru@sympatico.ca>.  [BZ #295]
2006 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
2008         * po/nl.po: Update from translation team.
2010         * sysdeps/posix/getaddrinfo.c (gaih_inet): Recognize all the IPv4
2011         numeric address formats inet_addr knows.
2012         (getaddrinfo): Allow AI_NUMERICSERV flag.
2013         If neither IPv4 nor IPv6 interface is present we cannot make any
2014         decision for AI_ADDRCONFIG.  Fail if AI_NUMERICSERV is set and the
2015         string is not just a number.  Remove useless freeaddrinfo call.
2016         * resolv/netdb.h (AI_NUMERICSERV): Define.
2017         Based on a patch by a.guru@sympatico.ca.
2019 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
2021         * stdlib/strfmon_l.c (__vstrfmon_l): Memset whole info structure
2022         instead of trying to initialize some, but not all, fields one by
2023         one.
2024         * stdio-common/printf_size.c (printf_size): Initialize fb_info
2025         structure with *info instead of trying to initialize some, but not
2026         all, fields from it.
2028         * nscd/connections.c (handle_request): Check if req->type is in
2029         LASTDBREQ .. LASTREQ range instead of req.
2031         * locale/programs/linereader.c (lr_create): Initialize
2032         lr->return_widestr to 0.
2034         * elf/dl-close.c (free_slotinfo): Add __libc_freeres_fn_section.
2035         (free_mem): Call free_slotinfo just once.
2037         * stdio-common/tst-fmemopen.c (main): Check for MAP_FAILED instead
2038         of NULL.
2040         * locale/localeinfo.h (_nl_locale_subfreeres): New prototype.
2041         * locale/setlocale.c (free_category): Add __libc_freeres_fn_section.
2042         (free_mem): Rename to _nl_locale_subfreeres.
2043         * iconv/gconv_db.c: Include locale/localeinfo.h.
2044         (free_derivation, free_modules_db): Add __libc_freeres_fn_section.
2045         (free_mem): Call _nl_locale_subfreeres.
2046         * iconv/gconv_dl.c (do_release_all): Add __libc_freeres_fn_section.
2048 2004-08-04  Roland McGrath  <roland@frob.com>
2050         * Makeconfig ($(common-objpfx)config.status):
2051         Fix typo: $(add_ons) -> $(add-ons).
2052         (Makeconfig-add-on): New variable.  When doing $(sysdep-makeconfigs)
2053         include, use black magic to get it set to an add-on's name during the
2054         include of the add-on's Makeconfig.
2056         * configure.in: Use variable name `libc_add_on' when sourcing add-on
2057         configure fragments, so they can refer to this.
2058         * configure: Regenerated.
2060 2004-08-04  Roland McGrath  <roland@redhat.com>
2062         * posix/tst-waitid.c (test_child): Sleep a second before stopping.
2063         (do_test): Bump sleep to three seconds.
2064         (sigchld, check_sigchld): New functions.
2065         (do_test): Handle SIGCHLD and check for getting the right details.
2067         * posix/tst-waitid.c (do_test): Kill the child process when bailing
2068         out early on some failure.
2069         [WCONTINUED]: Test WCONTINUED functionality.
2071 2004-08-03  Ulrich Drepper  <drepper@redhat.com>
2073         * nscd/connections.c (handle_request): Print more descriptive
2074         message for invalid request types.
2076 2004-08-02  Jakub Jelinek  <jakub@redhat.com>
2078         * iconvdata/ibm932.c (BODY): Avoid binary search for ch >= 0xffff.
2079         Always treat high as highest number in range + 1.
2080         * iconvdata/ibm943.c (BODY): Likewise.
2082 2004-07-31  Bruno Haible  <bruno@clisp.org>
2084         * iconvdata/JISX0213.TXT: Updated to JISX0213 plane 1 version 2004.
2085         * iconvdata/jisx0213.c (__jisx0213_to_ucs_main,
2086         __jisx0213_to_ucs_pagestart, __jisx0213_from_ucs_level1,
2087         __jisx0213_from_ucs_level2): Regenerated.
2088         * iconvdata/jisx0213.h (jisx0213_added_in_2004_p): New function.
2089         * iconvdata/iso-2022-jp-3.c (JISX0213_1_2000_set): Renamed from
2090         JISX0213_1_set.
2091         (JISX0213_1_2004_set): New enum value.
2092         (BODY for FROM_LOOP): Treat ESC $ ( Q like ESC $ ( O.
2093         (BODY for TO_LOOP): For JISX 0213 plane 1 characters, emit ESC $ ( O
2094         when possible, ESC $ ( Q when needed.
2095         * iconvdata/testdata/EUC-JISX0213: Add the 10 new characters.
2096         * iconvdata/testdata/EUC-JISX0213..UTF8: Update.
2097         * iconvdata/testdata/SHIFT_JISX0213: Add the 10 new characters.
2098         * iconvdata/testdata/SHIFT_JISX0213..UTF8: Update.
2099         * iconvdata/testdata/ISO-2022-JP-3: Add the 10 new JISX0213 characters.
2100         * iconvdata/testdata/ISO-2022-JP-3..UTF8: Update.
2102 2004-07-22  Bruno Haible  <bruno@clisp.org>
2104         * iconvdata/gconv-modules (ISO-8859-7): Add alias ISO_8859-7:2003.
2106 2004-07-29  David S. Miller  <davem@redhat.com>
2108         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy): Optimize
2109         better for smaller than 256 byte copies.  Also, use only one
2110         unrolled loop instead of two for the large copy case.
2112 2004-07-30  Richard Henderson  <rth@redhat.com>
2114         * sysdeps/alpha/divq.S: Save t3 before it gets clobbered.
2115         * sysdeps/alpha/remq.S: Likewise.
2116         * sysdeps/alpha/div.S, sysdeps/alpha/ldiv.S: Rewrite with the
2117         new division algorithms in divl.S and divq.S respectively.
2119 2004-07-28  GOTO Masanori  <gotom@debian.or.jp>
2121         * timezone/asia: Update from tzdata2004b.
2122         * timezone/backward: Likewise.
2123         * timezone/europe: Likewise.
2124         * timezone/iso3166.tab: Likewise.
2125         * timezone/leapseconds: Likewise.
2126         * timezone/northamerica: Likewise.
2127         * timezone/southamerica: Likewise.
2128         * timezone/zone.tab: Likewise.
2130         * timezone/private.h: Update from tzcode2004b.
2131         * timezone/zic.c: Likewise.
2133 2004-07-27  Ulrich Drepper  <drepper@redhat.com>
2135         * nscd/grpcache.c (cache_addgr): If necessary, add entry also
2136         under the name the user provided.
2137         * nscd/pwdcache.c (cache_addpw): Likewise.
2139 2004-07-26  Roland McGrath  <roland@redhat.com>
2141         * sysdeps/posix/waitid.c [WEXITED]: Clear WEXITED bit in OPTIONS for
2142         call to __waitpid.
2144 2004-07-26  Ulrich Drepper  <drepper@redhat.com>
2146         * nscd/hstcache.c (cache_addhst): Fix two scenarios which lead to
2147         memory leaks.
2149         * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Assign pointer for
2150         new buffer at the right time.
2151         Reported by Jakub Bogusz <qboosh@pld-linux.org>.
2153 2004-07-25  Ulrich Drepper  <drepper@redhat.com>
2155         * inet/Versions [libc, GLIBC_2.3.4]: Add getipv4sourcefilter,
2156         getsourcefilter, setipv4sourcefilter, and setsourcefilter.
2157         * inet/Makefile (routines): Likewise.
2158         * inet/netinet/in.h: Add prototypes for getipv4sourcefilter,
2159         getsourcefilter, setipv4sourcefilter, and setsourcefilter.
2160         * sysdeps/generic/getipv4sourcefilter.c: New file.
2161         * sysdeps/generic/setipv4sourcefilter.c: New file.
2162         * sysdeps/generic/getsourcefilter.c: New file.
2163         * sysdeps/generic/setsourcefilter.c: New file.
2165 2004-07-17  Steven Munroe  <sjmunroe@us.ibm.com>
2167         * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling
2168         for POWER4 machines.
2170 2004-07-21  Jakub Jelinek  <jakub@redhat.com>
2172         [BZ #274]
2173         * stdlib/strtod_l.c (INTERNAL (__STRTOF)): Fix used >=
2174         BITS_PER_MP_LIMB shifting up.
2175         * stdlib/tst-strtod.c (main): Add new tests.
2177 2004-07-23  Jakub Jelinek  <jakub@redhat.com>
2179         [BZ #282]
2180         * libio/iopopen.c (_IO_new_popen): Use _IO_init instead of
2181         _IO_no_init.  Remove wd from struct locked_FILE.
2182         (_IO_wproc_jumps): Remove.
2183         Reported by Andrew Josey <a.josey@opengroup.org>.
2184         * stdio-common/Makefile (tests): Add tst-popen.
2185         * stdio-common/tst-popen.c: New test.
2187 2004-07-23  Ulrich Drepper  <drepper@redhat.com>
2189         * posix/bits/posix1_lim.h: Fix values for _POSIX_CHILD_MAX and
2190         _POSIX_OPEN_MAX.  Add _POSIX_HOST_NAME_MAX, _POSIX_SYMLINK_MAX,
2191         _POSIX_SYMLOOP_MAX, and _POSIX_RE_DUP_MAX.
2192         Reported by Andrew Josey.
2194         * include/features.h: Document _POSIX_C_SOURCE == 200112L.
2196         * grp/grp.h: Define gid_t if __USE_XOPEN2K is defined.
2197         * pwd/pwd.h: Define uid_t and gid_t if __USE_XOPEN2K is defined.
2198         * io/sys/stat.h: Define dev_t, gid_t, ino_t, mode_t, nlink_t,
2199         off_t, time_t, and uid_t if __USE_XOPEN2K is defined.
2200         * signal/signal.h: Define pid_t if __USE_XOPEN2K is defined.
2201         * posix/unistd.h: Define gid_t, off_t, pid_t, uid_t, and
2202         useconds_t if __USE_XOPEN2K is defined.
2203         * io/utime.h: Define time_t if __USE_XOPEN2K is defined.
2204         * libio/stdio.h: Declare fseeko and ftello if __USE_XOPEN2K is defined.
2206 2004-07-19  Thorsten Kukuk  <kukuk@suse.de>
2208         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
2209         allocate memory for large temporary variables with alloca.
2211 2004-07-22  Ulrich Drepper  <drepper@redhat.com>
2213         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Compatibility
2214         code must have version GLIBC_2.0.  Patch by Dwayne McConnell.
2216         * nscd/nscd_getgr_r.c (nscd_getgr_r): Avoid read call with NULL
2217         pointer and zero length.
2219 2004-07-21  Ulrich Drepper  <drepper@redhat.com>
2221         * nscd/cache.c (prune_cache): Print correct list when debugging.
2223 2004-07-21  Jakub Jelinek  <jakub@redhat.com>
2225         * resolv/res_libc.c (res_init): If RES_INIT is set and
2226         _res.nscount > 0, call __res_nclose and free nsaddrs.
2227         * resolv/Makefile: Add rules to build and run tst-leaks2.
2228         * resolv/tst-leaks2.c: New test.
2230 2004-07-21  Ulrich Drepper  <drepper@redhat.com>
2232         * intl/libintl.h: Don't define macros for C++.
2233         Patch by Goto Masanori.
2235 2004-07-22  GOTO Masanori  <gotom@debian.or.jp>
2237         [BZ #276]
2238         * include/arpa/inet.h: Change inet_aton type from in_addr_t to int.
2239         * inet/arpa/inet.h: Likewise.
2240         * resolv/inet_addr.c: Likewise.
2242 2004-07-21  Alexandre Oliva  <aoliva@redhat.com>
2244         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Add semtimedop.
2246 2004-07-20  Roland McGrath  <roland@redhat.com>
2248         * configure.in (add_ons): Substitute this.  Move $add_ons handling
2249         after AC_CANONICAL_HOST and default setting of $machine et al.
2250         Don't set $subdirs from $add_ons.
2251         Instead, source add-on/configure fragments early on.
2252         (base_machine): If it's already set, don't set it based on $machine.
2253         (libc_config_ok): New variable, set to no.  If an add-on fragment sets
2254         it to yes, skip the  tuple sanity check as if --enable-hacker-mode.
2255         (sysnames): Try appending add-on names after machine as well.
2256         * config.make.in (add-ons): Set from @add_ons@ instead of @subdirs@.
2257         * Makeconfig ($(common-objpfx)config.status): Also depend on configure
2258         files in $(add_ons) dirs.
2260         * sysdeps/unix/sysv/linux/bits/in.h (struct ip_mreq): Remove
2261         definition, now in netinet/in.h proper.
2263 2004-07-20  Alexandre Oliva  <aoliva@redhat.com>
2265         * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h):
2266         Sort by syscalls.  Make sure we get headers such as sgidefs.h from
2267         the build tree before just-installed ones.
2269         * sysdeps/mips/atomicity.h: Use standard names for ABI macros,
2270         include sgidefs.h where appropriate.
2271         * sysdeps/mips/dl-machine.h: Likewise.
2272         * sysdeps/mips/machine-gmon.h: Likewise.
2273         * sysdeps/mips/bits/setjmp.h: Likewise.
2274         * sysdeps/mips/fpu/bits/mathdef.h: Likewise.
2275         * sysdeps/mips/mips64/__longjmp.c: Likewise.
2276         * sysdeps/mips/mips64/setjmp_aux.c: Likewise.
2277         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
2278         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
2279         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2280         * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
2281         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2282         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2283         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
2284         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
2285         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
2286         * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: Likewise.
2287         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
2288         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
2289         * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: Likewise.
2290         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
2291         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
2292         * sysdeps/unix/sysv/linux/mips/sys/user.h: Likewise.
2293         * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h):
2294         Likewise.
2295         * sysdeps/unix/sysv/linux/mips/configure.in (asm-unistd.h):
2296         Likewise.
2298         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Update to use
2299         _dl_lookup_symbol_x.
2300         (elf_machine_runtime_link_map): Don't INTUSE _dl_signal_error.
2302 2004-07-20  Ulrich Drepper  <drepper@redhat.com>
2304         * inet/netinet/in.h: Define struct ip_mreq and struct
2305         ip_mreq_source.
2306         Define struct group_req and struct group_source_req.
2307         * sysdeps/unix/sysv/linux/bits/in.h: Define IP_UNBLOCK_SOURCE,
2308         IP_BLOCK_SOURCE, IP_ADD_SOURCE_MEMBERSHIP,
2309         IP_DROP_SOURCE_MEMBERSHIP, IP_MSFILTER, MCAST_JOIN_GROUP,
2310         MCAST_BLOCK_SOURCE, MCAST_UNBLOCK_SOURCE, MCAST_LEAVE_GROUP,
2311         MCAST_JOIN_SOURCE_GROUP, MCAST_LEAVE_SOURCE_GROUP, and
2312         MCAST_MSFILTER.
2313         Define MCAST_INCLUDE and MCAST_EXCLUDE.
2315         * iconvdata/gconv-modules: Add alias for IBM874 [BZ #244].
2317 2004-07-19  Jakub Jelinek  <jakub@redhat.com>
2319         [BZ #258]
2320         * math/libm-test.inc (max_value, min_value): New variables.
2321         (initialize): Initialize them.
2322         (pow_test): Add a couple of new tests.
2323         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Don't generate invalid
2324         exception if |y| >= 1U<<31.
2325         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Don't generate invalid
2326         exception if |y| >= 1L<<63.
2327         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
2328         If y*log2(x) overflows to +-inf, return still +inf/+0 instead of NaN.
2329         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
2331 2004-07-18  Ulrich Drepper  <drepper@redhat.com>
2333         * nscd/pwdcache.c (cache_addpw): Optimize case of unsuccessful
2334         lookup a bit.
2335         * nscd/grpcache.c (cache_addgr): Likewise.
2336         * nscd/hstcache.c (cache_addhst): Likewise.
2338 2004-07-10  GOTO Masanori  <gotom@debian.or.jp>
2340         * sysdeps/s390/s390-32/elf/start.S: Remove symbol _fp_hw.
2341         * sysdeps/s390/s390-64/elf/start.S: Likewise.
2343 2004-04-16  Andreas Schwab  <schwab@suse.de>
2345         * sysdeps/ia64/bits/atomic.h: Cast first argument of
2346         __sync_bool_compare_and_swap_si correct to void*.
2348 2004-07-17  Ulrich Drepper  <drepper@redhat.com>
2350         * iconv/iconv_prog.c (print_known_names): Make machine-readable
2351         output even less cluttered.
2353 2004-07-16  Steven Munroe  <sjmunroe@us.ibm.com>
2355         [BZ #269]
2356         * setjmp/Makefile (tests): Add bug269-setjmp.
2357         * setjmp/bug269-setjmp.c: New file.
2358         * sysdeps/powerpc/powerpc64/__longjmp-common.S [SHARED && !IS_IN_rtld]:
2359         Store R2 from jmpbuf in callers TOC save area.
2360         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S [SHARED && !IS_IN_rtld]:
2361         Store R2 in TOC save area.
2362         * sysdeps/powerpc/powerpc64/setjmp-common.S [SHARED && !IS_IN_rtld]:
2363         Copy TOC save area from previous frame as R2 (TOC) in jmpbuf.
2365 2004-07-16  Jakub Jelinek  <jakub@redhat.com>
2367         * locale/newlocale.c: Include bits/libc-lock.h.
2368         (__libc_setlocale_lock): Extern decl.
2369         (__newlocale): Use it.
2370         Reported by Ulrich Weigand <Ulrich.Weigand@de.ibm.com>.
2372 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
2374         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Remove
2375         static inline __attribute ((always_inline)).  Don't define if
2376         NO_CANCELLATION.
2377         (__libc_fcntl): Use INLINE_SYSCALL directly instead of
2378         __fcntl_nocancel.
2379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__fcntl_nocancel):
2380         Remove static inline __attribute ((always_inline)).  Don't define
2381         if NO_CANCELLATION.
2382         (__libc_fcntl): Use INLINE_SYSCALL directly instead of
2383         __fcntl_nocancel.
2384         * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Define to
2385         __libc_fcntl if NO_CANCELLATION and __ASSUME_FCNTL64 == 0.
2386         Don't define at all if NO_CANCELLATION and __ASSUME_FCNTL64 > 0.
2387         (__libc_fcntl): Don't define if __fcntl_nocancel is a macro.
2389         [BZ #262]
2390         * sysdeps/i386/elf/start.S (_start): Use @GOT instead of @GOTOFF
2391         for main.
2392         * elf/Makefile: Add rules to build and run tst-pie1.
2393         * elf/tst-pie1.c: New test.
2394         * elf/tst-piemod1.c: New file.
2396 2004-07-14  Jakub Jelinek  <jakub@redhat.com>
2398         [BZ #266]
2399         * manual/string.texi (l64a): Note that the static buffer is 7 bytes
2400         long.  Rewrite example code so that it takes into account l64a output
2401         shorter than 6 characters.
2402         Reported by Julian Graham <julian.graham@aya.yale.edu>.
2404 2004-07-14  Kaz  Kojima  <kkojima@rr.iij4u.or.jp>
2406         * sysdeps/sh/dl-machine.h: Don't reset _dl_starting_up here.
2407         (elf_machine_rela_relative): Remove unused valiable.
2409 2004-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2411         [BZ #263]
2412         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Don't store
2413         outside the buffer if the read returns 0.  __strtod_l can't set
2414         endp to NULL, so remove a test for that case.
2416 2004-07-12  Roland McGrath  <roland@redhat.com>
2418         * manual/signal.texi (Interrupted Primitives): Make clear that
2419         TEMP_FAILURE_RETRY evaluates its expression as long int and compares
2420         it to -1 to define "failure".
2422 2004-07-10  Ulrich Drepper  <drepper@redhat.com>
2424         * elf/ldconfig.c: Define PROCINFO_CLASS as static before including
2425         ldsodefs.h.
2426         * sysdeps/generic/ldsodefs.h: Only define PROCINFO_CLASS if it is not
2427         already defined.
2428         * sysdeps/i386/dl-procinfo.c: Define PROCINFO_CALLS only if not
2429         already defined.
2431         * elf/rtld.c (print_statistics): Mark with noinline attribute.
2432         * sysdeps/i386/dl-machine.h (elf_machine_rel): Mark with always_inline
2433         attribute.
2434         (elf_machine_rel_relative): Likewise.
2436         * include/string.h: Add libc_hidden_proto for __strtok_r and
2437         __strsep_g.
2438         * sysdeps/generic/strsep.c: Add libc_hidden_def.
2439         * sysdeps/generic/strtok_r.c: Likewise.
2440         * sysdeps/i386/strtok_r.S: Add alias for internal symbol.
2441         * sysdeps/i386/i686/strtok_r.S: Likewise.
2442         * sysdeps/x86_64/strtok_r.S: Likewise.
2444 2004-07-09  Alexandre Oliva  <aoliva@redhat.com>
2446         * inet/getnetgrent_r.c (internal_setnetgrent): Make it hidden
2447         instead of internal-linkage, such that we can alias to it.
2448         (internal_endnetgrent, internal_getnetgrent_r): Likewise.
2450 2004-07-09  Ulrich Drepper  <drepper@redhat.com>
2452         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Move attribute
2453         to the front for gcc 3.5+.
2454         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
2455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise.
2456         * include/fcntl.h: Don't declare __fcntl_nocancel here if
2457         NO_CANCELLATION is defined.
2459 2004-07-07  Jakub Jelinek  <jakub@redhat.com>
2461         * elf/dl-fini.c (_dl_fini): Add nloaded variable, load
2462         GL(dl_nloaded) into it while still in critical section.
2464 2004-07-06  Thorsten Kukuk  <kukuk@suse.de>
2466         * nss/getent.c (print_group, print_passwd): Use %lu format for
2467         `unsigned long int' values.
2469         * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Fix syntax
2470         error typos in goto statements.
2472 2004-07-07  Roland McGrath  <roland@frob.com>
2474         * Makefile (dist-separate): New variable.
2475         (glibc-%.tar rule): Make separate tar files for add-ons listed there.
2476         Depend on their configure files.
2477         (dist-do-separate-dirs): New canned sequence to do that.
2478         (dist-separate-libidn, dist-separate-linuxthreads): New variables.
2479         (dist): Depend on add-on tar files based on $(dist-separate).
2480         (dist-version): New variable, default to $(version).
2481         (tag-for-dist, dist): Use that in place of $(version) in deps.
2483 2004-07-07  Ulrich Drepper  <drepper@redhat.com>
2485         * elf/dl-fini.c (_dl_fini): Move the unlock of the ld.so lock
2486         before the loop running the destructors.
2488 2004-05-18  Andreas Schwab  <schwab@suse.de>
2490         * elf/dl-load.c (_dl_map_object_from_fd): Use the end address of
2491         the first segment for mprotect, not l_text_end.
2493 2004-07-05  Ulrich Drepper  <drepper@redhat.com>
2495         * elf/dl-profile.c (_dl_start_profile): Compact error handling.
2496         Remove hashfraction variable.  Make kcount and kcountsize local
2497         variables.
2499         * elf/dl-init.c: Don't define and use _dl_starting_up if
2500         HAVE_INLINED_SYSCALLS is defined and the variable is not used.
2501         * elf/dl-support.c: Likewise.
2502         * elf/rtld.c: Likewise.
2503         * elf/dl-misc.c (_dl_debug_vdprintf): Use writev syscall directly
2504         if HAVE_INLINED_SYSCALLS is defined.
2505         * sysdeps/powerpc/powerpc64/dl-machine.h: Don't reset _dl_starting_up
2506         here.
2507         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
2508         * sysdeps/unix/sysv/linux/configure.in: Define HAVE_INLINED_SYSCALLS.
2509         * config.h.in: Add entry for HAVE_INLINED_SYSCALLS.
2511         * sysdeps/posix/profil.c: If compiled for ld.so, omit code which
2512         is needed to stop profiling.
2513         * elf/dl-open.c (dl_open_worker): If a newly opened object is to be
2514         profile make sure it cannot be unloaded.
2516         * sysdeps/unix/sysv/linux/dl-origin.c: Inline readlink syscall.
2518         * sysdeps/unix/sysv/linux/fcntl.c: If compiled without cancellation
2519         support, make sure the helper function is inlined.
2520         * sysdeps/unix/sysv/linux/pread.c: Likewise.
2521         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
2522         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
2523         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise.
2525 2004-07-05  Jakub Jelinek  <jakub@redhat.com>
2527         * include/string.h (ffs): Add libc_hidden_builtin_proto.
2528         * sysdeps/rs6000/ffs.c (ffs): Add libc_hidden_builtin_def.
2529         * sysdeps/alpha/alphaev67/ffs.S (ffs): Likewise.
2530         * sysdeps/alpha/ffs.S (ffs): Likewise.
2531         * sysdeps/s390/ffs.c (ffs): Likewise.
2532         * sysdeps/powerpc/ffs.c (ffs): Likewise.
2533         * sysdeps/i386/ffs.c (ffs): Likewise.
2534         * sysdeps/i386/i686/ffs.c (ffs): Likewise.
2535         * sysdeps/m68k/ffs.c (ffs): Likewise.
2536         * sysdeps/generic/ffs.c (ffs): Likewise.
2537         * sysdeps/m88k/ffs.c (ffs): Likewise.
2538         * sysdeps/am29k/ffs.c (ffs): Likewise.
2539         * sysdeps/i960/ffs.c (ffs): Likewise.
2540         * sysdeps/x86_64/ffs.c (ffs): Likewise.
2542         * Makerules (check-abi): Use diff -p -U 0 instead of diff -pu0.
2544         * sysdeps/powerpc/novmx-longjmp.c (__libc_longjmp,
2545         __libc_siglongjmp): Remove symbol_version.
2546         * sysdeps/powerpc/longjmp.c (__libc_longjmp, __libc_siglongjmp):
2547         Export @@GLIBC_PRIVATE, not @@GLIBC_2.3.4.
2548         * sysdeps/powerpc/sigjmp.c (__sigjmp_save): Use strong_alias
2549         unconditionally.
2550         * sysdeps/powerpc/novmx-sigjmp.c (__sigjmp_save): Remove.
2551         * sysdeps/powerpc/powerpc32/__longjmp.S (__longjmp): Use
2552         strong_alias instead of default_symbol_version, remove
2553         symbol_version.
2554         * sysdeps/powerpc/powerpc64/__longjmp.S (__longjmp): Likewise.
2555         * sysdeps/powerpc/powerpc32/bsd-setjmp.S (__novmx__setjmp): Change
2556         into strong_alias to __novmxsetjmp.
2557         (__vmx__setjmp): Similarly with __vmxsetjmp.
2558         (__setjmp): Make it strong_alias to __vmx__setjmp, remove
2559         default_symbol_version and symbol_version.
2560         * sysdeps/powerpc/powerpc64/bsd-setjmp.S (__novmx__setjmp): Change
2561         into strong_alias to __novmxsetjmp.
2562         (__vmx__setjmp): Similarly with __vmxsetjmp.
2563         (__setjmp): Make it strong_alias to __vmx__setjmp, remove
2564         default_symbol_version and symbol_version.
2566         * nscd/nscd_getgr_r.c: Include stdio-common/_itoa.h.
2568 2004-07-05  Ulrich Drepper  <drepper@redhat.com>
2570         * elf/rtld.c (dl_main): Mark dyn_temp with attribute_relro.
2572 2004-07-04  Matthew Reppert  <arashi@kai.vm.bytemark.co.uk>
2574         * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Use libc_hidden_ver
2575         instead of libc_hidden_def.
2577 2004-07-01  Roland McGrath  <roland@redhat.com>
2579         * aclocal.m4: Add provide for AC_CONFIG_AUX_DIR_DEFAULT.
2581         * Makeconfig ($(common-objpfx)shlib-versions.v.i): Move top-level
2582         $(..)shlib-versions file to last in deps list.  This lets add-ons give
2583         more-specific matches that override defaults in the top-level file.
2585         * sysdeps/unix/sysv/linux/configure.in: If arch_minimum_kernel was
2586         already set, don't set it or libc_cv_gcc_unwind_find_fde.
2587         * sysdeps/unix/sysv/linux/configure: Regenerated.
2589 2004-07-01  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2591         * sysdeps/s390/fpu/bits/mathinline.h [__LIBC_INTERNAL_MATH_INLINES]
2592         (__ieee754_sqrt): Define as __MATH_INLINE using sqdbr instruction.
2593         (__ieee754_sqrtf): Define as __MATH_INLINE using sqebr instruction.
2594         * sysdeps/s390/fpu/e_sqrt.c: New file.
2595         * sysdeps/s390/fpu/e_sqrtf.c: New file.
2596         * sysdeps/s390/Implies: New file.
2597         * sysdeps/s390/s390-32/Implies: Remove ieee754, move
2598         ieee754/dbl-64 and ieee754/flt-32 to s390/Implies.
2599         * sysdeps/s390/s390-64/Implies: Likewise.
2601 2004-06-30  Jakub Jelinek  <jakub@redhat.com>
2603         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Include tls.h.
2604         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2606         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (thread_start):
2607         DO_CALL (exit, 1) instead of branching to _exit.
2608         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (thread_start):
2609         Likewise.
2611         * sysdeps/s390/fpu/bits/mathinline.h: New file.
2613         * include/glob.h (glob64): Add libc_hidden_proto.
2614         * sysdeps/generic/glob64.c (glob64): Add libc_hidden_def.
2615         * sysdeps/gnu/glob64.c (glob64): Likewise.
2616         * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Likewise.
2618 2004-06-11  Jakub Jelinek  <jakub@redhat.com>
2620         * sysdeps/i386/fpu/libm-test-ulps: Update for GCC 3.4.
2621         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
2623 2004-06-11  Dwayne Grant McConnell  <dgm69@us.ibm.com>
2625         * sysdeps/powerpc/fpu/s_lround.c: Removed.
2626         * sysdeps/powerpc/fpu/s_lroundf.c: Removed.
2627         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: New file.
2628         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: New file.
2629         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: New file.
2630         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: New file.
2631         * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: Removed.
2632         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: New file.
2633         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: New file.
2634         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: New file.
2635         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: New file.
2636         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: New file.
2637         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: New file.
2638         * sysdeps/powerpc/powerpc32/fpu/s_round.S: New file.
2639         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: New file.
2640         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: New file.
2642 2004-06-30  Ulrich Drepper  <drepper@redhat.com>
2644         * include/net/if.h: Handle if_nameindex and if_freenameindex with
2645         libc_proto_hidden.
2646         * sysdeps/unix/sysv/linux/netlinkaccess.h: New file.
2647         * sysdeps/unix/sysv/linux/ifaddrs.c: Export netlink handling functions.
2648         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Implement using
2649         netlink if possible.  Fall back on ioctl method if necessary.
2650         * sysdeps/unix/sysv/linux/Dist: Add netlinkaccess.h.
2652         * include/unistd.h: Declare __truncate.
2653         * sysdeps/generic/truncate.c: Also define __truncate.
2654         * sysdeps/mach/hurd/truncate.c: Likewise.
2655         * sysdeps/unix/common/syscalls.list: Likewise.
2656         * sysdeps/unix/sysv/linux/truncate64.c: Use __truncate, not truncate.
2658 2004-06-29  Ulrich Drepper  <drepper@redhat.com>
2660         * stdio-common/printf-parsemb.c (__parse_one_specmb): Initialize
2661         info.extra.  Patch by Marcus Meissner.
2663 2004-06-29  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2665         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
2666         Fix branch offset for a PLT entry.
2668 2004-06-20  Jim Meyering  <jim@meyering.net>
2670         * malloc/obstack.h (obstack_base): Cast to `void *', to align with
2671         documentation.
2673 2004-06-28  Ulrich Drepper  <drepper@redhat.com>
2675         * inet/bug-if1.c (do_test): Simply use 0 as invalid index.
2676         Workaround for [BZ #232].
2678         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Use extend_alloca.
2680 2004-06-28  GOTO Masanori  <gotom@debian.or.jp>
2682         * iconv/gconv_simple.c: Use get16/put16 for user given buffer
2683         in ucs2/ucs2reverse when unaligned memory access is attempted.
2684         * iconv/tst-iconv5.c: New file.
2685         * iconv/Makefile (tests): Add tst-iconv5.
2687 2004-06-28  Jakub Jelinek  <jakub@redhat.com>
2689         * inet/bug-if1.c: Include <string.h>.
2691 2004-06-19  Roland McGrath  <roland@redhat.com>
2693         * sysdeps/posix/waitid.c (do_waitid) [DO_WAITID]: Define function
2694         under this macro name instead.
2695         [NO_DO_WAITID]: Don't define it at all.
2696         (do_waitid) [WNOWAIT, WEXITED]: If these POSIX.1 waitid flag bits are
2697         defined, then return ENOTSUP for combinations of selection bits other
2698         than WEXITED and WEXITED|WSTOPPED, which this version cannot support.
2700         * posix/tst-waitid.c: New file.
2701         * posix/Makefile (tests): Add it.
2703 2004-06-28  Jakub Jelinek  <jakub@redhat.com>
2705         * sysdeps/unix/alpha/sysdep.h (inline_syscall6): Fix a typo.
2707         [BZ #231]
2708         * sysdeps/unix/alpha/sysdep.S (__syscall_error): Avoid !samegp
2709         relocation in librt.so.
2711         [BZ #230]
2712         * sysdeps/alpha/dl-machine.h (_dl_start_user): Use ldah/ldl to load
2713         _dl_skip_args.  Patch by Jakub Bogusz <qboosh@pld-linux.org>.
2715 2004-06-27  Ulrich Drepper  <drepper@redhat.com>
2717         * elf/ldconfig.c (add_dir): Take chroot into account.
2718         Based on changes by HJ Lu and Hideki Iwamoto.
2720         * nscd/connections.c (invalidate_cache): If the host cache has to
2721         be invalidated, re-read resolv.conf.
2723         * resolv/resolv.h (RES_NOIP6DOTINT): Define.
2724         * resolv/res_init.c (res_setoptions): Handle no-ip6-dotint option.
2725         * resolv/gethnamaddr.c (gethostbyaddr): Don't lookup with .ip6.int
2726         if RES_NOIP6DOTINT flag is set.
2727         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
2729 2004-06-25  Jakub Jelinek  <jakub@redhat.com>
2731         * sysdeps/unix/sysv/linux/powerpc/fcntl.c: Move to...
2732         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fcntl.c: ... here.
2733         * sysdeps/unix/sysv/linux/powerpc/lockf64.c: Move to...
2734         * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: ... here.
2735         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: New file.
2737         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_GETLK, F_SETLK,
2738         F_SETLKW): Fix values for -m32 -D_FILE_OFFSET_BITS=64.
2740 2004-06-21  Jakub Jelinek  <jakub@redhat.com>
2742         [BZ #231]
2743         * sysdeps/unix/alpha/Makefile: New file.
2744         * sysdeps/unix/alpha/rt-sysdep.S: New file.
2745         Reported by Jakub Bogusz <qboosh@pld-linux.org>.
2747 2004-06-18  Ulrich Drepper  <drepper@redhat.com>
2749         * sysdeps/posix/getaddrinfo.c (gaih_inet): For AI_CANONNAME,
2750         determine the canonical name only for the first returned entry.
2752         * inet/bug-if1.c: New file.
2753         * inet/Makefile (tests): Add bug-if1.
2755 2004-06-18  Roland McGrath  <roland@frob.com>
2757         * Makerules (compile-mkdep-flags): Add -MT $@.
2759         * Makefile (dist, tag-for-dist): New targets.
2760         (files-for-dist, tag-of-stem): New variables.
2761         (glibc-%.tar glibc-linuxthreads-%.tar): New pattern rule.
2762         Make tar files using cvs export.
2763         (%.bz2, %.gz, tag-%): New pattern rules.
2764         (distribute): Variable removed.
2765         (+subdir_targets): Remove distinfo targets.
2766         (echo_subdirs, echo-distinfo, parent_echo-distinfo): Targets removed.
2767         (rpm/%): Pattern rule removed.
2768         * rpm/Makefile, rpm/rpmrc, rpm/template: Ancient cruft files removed.
2769         * Rules (subdir_echo-headers, subdir_echo-distinfo, subdir_dist):
2770         Targets removed.
2771         * Makerules (dist, subdir_distinfo): Targets removed.
2772         ($(objpfx)distinfo): Depend on $(distribute).
2773         * Make-dist: File removed.
2775         * NEWS: Fix a typo.  Update bug-reporting instructions.
2777 2004-06-17  Thorsten Kukuk  <kukuk@suse.de>
2779         * sysdeps/unix/sysv/linux/sched_setaffinity.c
2780         (__sched_setaffinity_new): Set errno to EINVAL and return -1 if
2781         cpuset is wrongly set.
2783 2004-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
2785         * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling
2786         for POWER4 machines.
2788 2004-06-14  Jakub Jelinek  <jakub@redhat.com>
2790         [BZ #218]
2791         * sunrpc/pmap_prot2.c (xdr_pmaplist): When freeing, remember pml_next
2792         in a local variable, point rp to that local variable afterwards.
2794 2004-06-11  Jakub Jelinek  <jakub@redhat.com>
2796         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Handle special
2797         cases properly.
2799 2004-06-17  Ulrich Drepper  <drepper@redhat.com>
2801         * sysdeps/unix/sysv/linux/if_index.c (if_indextoname): Correct
2802         error value for unknown interface. [BZ #198]
2804 2004-06-13  Jakub Jelinek  <jakub@redhat.com>
2806         * sysdeps/i386/bits/string.h (memcpy): Add () around arguments.
2807         (memchr, __memrchr, strlen, strcmp, strncmp, __strchr_g, __strchr_c,
2808         __strchrnul_g, __strchrnul_c, strspn, strcspn, strpbrk): Add memory
2809         the asm uses as its input, either of size __n where __n is known or
2810         0xfffffff.
2811         (strstr): Add "memory" clobber.
2813 2004-06-14  Jakub Jelinek  <jakub@redhat.com>
2815         [BZ #219]
2816         * nss/nsswitch.c (free_mem): Don't try to close a library handle
2817         if the handle is invalid.  Patch by David Kimdon <kimdon@esrf.fr>.
2819 2004-06-11  Dmitry V. Levin  <ldv@altlinux.org>
2821         [BZ #217]
2822         * debug/xtrace.sh: Fix typo in error diagnostics.
2824 2004-06-14  Andreas Schwab  <schwab@suse.de>
2826         * stdio-common/psignal.c (psignal): Don't use BUF when asprintf
2827         failed.
2829 2004-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
2831         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix pasto
2832         that clobbers r19.  Fix pasto that overflowed sigcontext.v_reserve.
2833         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Fix pasto
2834         that clobbers r19.
2835         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Fix pasto
2836         that clobbers r19.  Fix pasto that overflowed sigcontext.v_reserve.
2837         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S:
2838         Fix setting of sigcontext.v_regs.  Fix pasto that clobbers r19.
2839         Fix pasto that overflowed sigcontext.v_reserve.
2840         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S:
2841         Fix pasto that clobbers r19.
2842         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Fix setting
2843         of sigcontext.v_regs.  Fix pasto that clobbers r19.  Fix pasto that
2844         overflowed sigcontext.v_reserve.
2846 2004-05-04  H.J. Lu  <hongjiu.lu@intel.com>
2848         [BZ #150]
2849         * sysdeps/generic/strtol_l.c (DEF): Use ".gnu.linkonce.r."
2850         instead of ".gnu.linkonce.ro." as the prefix for linkonce
2851         read-only section name.
2853 2004-06-14  Richard Henderson  <rth@redhat.com>
2855         * sysdeps/alpha/div_libc.h (_ITOFS): Use "sp" not "$sp".
2856         (_ITOFT, _FTOIT, _ITOFT2): Likewise.
2858 2004-06-08  Jakub Jelinek  <jakub@redhat.com>
2860         * sysdeps/s390/s390-32/backtrace.c (init): Guard with #ifdef SHARED.
2861         (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
2862         (__backtrace): Don't call init #ifndef SHARED.
2863         * sysdeps/s390/s390-64/backtrace.c (init): Guard with #ifdef SHARED.
2864         (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
2865         (__backtrace): Don't call init #ifndef SHARED.
2866         * sysdeps/ia64/backtrace.c (init): Guard with #ifdef SHARED.
2867         (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
2868         (__backtrace): Don't call init #ifndef SHARED.
2870 2004-06-11  Roland McGrath  <roland@redhat.com>
2872         * sysdeps/arm/strlen.S [__ARMEB__]: Compute correctly for big-endian.
2873         From Krzysztof Halasa <khc@pm.waw.pl>.
2875 2004-06-10  Jakub Jelinek  <jakub@redhat.com>
2877         * elf/tls-macros.h [__s390x__] (TLS_LD, TLS_GD): Clobber also r14.
2879 2004-06-08  Jakub Jelinek  <jakub@redhat.com>
2881         [BZ #199]
2882         * crypt/md5-crypt.c (__md5_crypt): Only update buflen if realloc
2883         succeeds.  Reported by Miles Ohlrich <miles@cray.com>.
2885         * elf/chroot_canon.c (chroot_canon): Avoid segfault if first malloc
2886         fails.  Avoid memory leak if realloc fails.
2888 2004-06-09  Jakub Jelinek  <jakub@redhat.com>
2890         * sysdeps/generic/setenv.c (setenv): Return -1/EINVAL if name is
2891         NULL, "" or contains '=' character in it.  Reported by
2892         Michael T Kerrisk <mtk-lists@gmx.net>.
2893         * stdlib/tst-environ.c: Include errno.h.
2894         (main): Add tests for these arguments to setenv/unsetenv.
2896 2004-06-07  Roland McGrath  <roland@frob.com>
2898         * NEWS: Update bug reporting instructions.  Fix some typos.
2900 2004-06-05  Ulrich Drepper  <drepper@redhat.com>
2902         * stdio-common/_itoa.h: Don't expand _itoa inline for libc.
2903         * stdio-common/_itoa.c: Add _itoa implementation.
2905         * nscd/nscd_gethst_r.c (__nscd_open_socket): Change implementation
2906         to also send request.  Add parameter to allow this.
2907         Change callers.
2908         * nscd/nscd_getgr_r.c: Change __nscd_open_socket caller.
2909         * nscd/nscd_getpw_r.c: Likewise.
2910         * nscd/nscd-client.h: Change __nscd_open_socket prototype.
2912 2004-06-05  Andreas Jaeger  <aj@suse.de>
2914         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2915         Handle more than 6 args correctly.  Based on a patch by Masahide
2916         Washizawa <washi@jp.ibm.com>.
2918 2004-06-04  Ulrich Drepper  <drepper@redhat.com>
2920         * nscd/nscd_gethst_r.c (nscd_gethst_r): Use __nss_not_use_nscd_hosts
2921         in all places, not __nss_not_use_nscd_group.
2922         Reported by Philippe Gregoire.
2924 2004-06-03  Ulrich Drepper  <drepper@redhat.com>
2926         * sysdeps/i386/i486/bits/atomic.h: Optimize a bit.
2928 2004-05-07  Dmitry V. Levin  <ldv@altlinux.org>
2930         * argp/argp-help.c (__argp_error, __argp_failure): Check result
2931         of __asprintf call and don't use string if it failed.
2932         * stdio-common/psignal.c (psignal): Likewise.
2933         * locale/programs/localedef.c (more_help): Likewise.
2934         * resolv/res_hconf.c (arg_service_list, arg_trimdomain_list,
2935         arg_bool, parse_line): Check result of __asprintf calls and
2936         don't use string if they failed.
2937         * sunrpc/svc_simple.c (registerrpc, universal): Likewise.
2938         * elf/ldconfig.c (parse_conf_include): Check result of __asprintf
2939         call and exit if it failed.
2941 2004-05-10  Jakub Jelinek  <jakub@redhat.com>
2943         * sysdeps/posix/sysconf.c (__sysconf) <cases _SC_REALTIME_SIGNALS,
2944         _SC_PRIORITY_SCHEDULING, _SC_TIMERS, _SC_ASYNCHRONOUS_IO,
2945         _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO, _SC_FSYNC, _SC_MAPPED_FILES,
2946         _SC_MEMLOCK, _SC_MEMLOCK_RANGE, _SC_MEMORY_PROTECTION,
2947         _SC_MESSAGE_PASSING, _SC_SEMAPHORES, _SC_SHARED_MEMORY_OBJECTS,
2948         _SC_THREADS, _SC_THREAD_SAFE_FUNCTIONS, _SC_THREAD_ATTR_STACKADDR,
2949         _SC_THREAD_ATTR_STACKSIZE, _SC_THREAD_PRIORITY_SCHEDULING,
2950         _SC_THREAD_PRIO_INHERIT, _SC_THREAD_PRIO_PROTECT,
2951         _SC_THREAD_PROCESS_SHARED>: Return _POSIX_* value instead of 1.
2952         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2953         <case _SC_MONOTONIC_CLOCK>: Return _POSIX_VERSION instead of 1.
2955 2004-05-07  Jeroen Dekkers  <jeroen@dekkers.cx>
2957         * sysdeps/mach/hurd/i386/Makefile (CFLAGS-init-first.c): Add
2958         -momit-leaf-frame-pointer.
2960         * inet/test-ifaddrs.c (addr_string): Surround AF_PACKET case with
2961         #ifdef AF_PACKET.
2963         * sysdeps/mach/hurd/getcwd.c
2964         (_hurd_canonicalize_directory_name_intern): Only realloc when
2965         size is <= 0.
2967         * sysdeps/mach/hurd/mmap.c (__mmap): Fail when addr or offset
2968         isn't page aligned.
2970         * sysdeps/mach/hurd/spawni.c (EXPAND_DTABLE): Set dtablesize to
2971         new size.
2973         * sysdeps/mach/hurd/Versions (GLIBC_PRIVATE): Add __libc_read,
2974         __libc_write and __libc_lseek64.
2976 2004-05-29  Roland McGrath  <roland@redhat.com>
2978         * elf/Makefile (shared-only-routines): Add dl-caller.
2980 2004-05-28  Ulrich Drepper  <drepper@redhat.com>
2982         * sysdeps/powerpc/configure.in: New file.
2984 2004-05-28  Steven Munroe  <sjmunroe@us.ibm.com>
2986         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Add .machine
2987         "altivec" to enable VMX instructions.
2988         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
2989         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2990         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
2991         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
2992         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
2993         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
2994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
2995         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
2996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
2998 2004-05-27  Jakub Jelinek  <jakub@redhat.com>
3000         * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Define using
3001         __builtin_expm1l for GCC 3.5+.
3002         (__expl): Define using __builtin_expl for GCC 3.4+.
3003         (exp, expf, expl): Don't define for GCC 3.4+.
3004         (tan, tanf, tanl): Don't define for GCC 3.5+.
3005         (__atan2l): Define using __builtin_atan2l for GCC 3.4+.
3006         (atan2, atan2f, atan2l): Don't define for GCC 3.4+ or !__FAST_MATH__.
3007         (fmod, fmodf, fmodl): Don't define for GCC 3.5+ or !__FAST_MATH__.
3008         (fabsf, fabsl): Only provide if __USE_MISC or __USE_ISOC99.
3009         (sin, sinf, sinl, cos, cosf, cosl, log, logf, logl): Don't define
3010         for GCC 3.4+.
3011         (log10, log10f, log10l, asin, asinf, asinl, acos, acosf, acosl):
3012         Don't define for GCC 3.5+.
3013         (atan, atanf, atanl): Don't define for GCC 3.4+ or !__FAST_MATH__.
3014         (log1p, log1pf, log1pl, logb, logbf, logbl, log2, log2f, log2l): Don't
3015         define for GCC 3.5+.
3016         (drem, dremf, dreml): Don't define for GCC 3.5+ or !__FAST_MATH__.
3017         * sysdeps/sparc/fpu/bits/mathinline.h (sqrt, sqrtf, sqrtl): Don't
3018         define for GCC 3.2+.
3020 2004-05-27  Jakub Jelinek  <jakub@redhat.com>
3022         * string/bits/string2.h (__bzero): Define even for GCC 3.0+.
3023         * sysdeps/alpha/stpcpy.S (stpcpy): Add libc_hidden_builtin_def.
3024         * sysdeps/alpha/alphaev67/stpcpy.S (stpcpy): Likewise.
3025         * sysdeps/powerpc/powerpc32/stpcpy.S (stpcpy): Likewise.
3026         * sysdeps/powerpc/powerpc64/stpcpy.S (stpcpy): Likewise.
3027         * sysdeps/sparc/sparc32/stpcpy.S (stpcpy): Likewise.
3028         * sysdeps/sparc/sparc64/stpcpy.S (stpcpy): Likewise.
3029         * sysdeps/i386/stpcpy.S (stpcpy): Likewise.
3030         * sysdeps/i386/i586/stpcpy.S (stpcpy): Likewise.
3031         * sysdeps/generic/stpcpy.c (stpcpy): Likewise.
3032         * sysdeps/x86_64/stpcpy.S (stpcpy): Likewise.
3033         * sysdeps/i386/i586/memcpy.S (memcpy): Remove
3034         libc_hidden_builtin_def if MEMPCPY_P.
3035         * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
3036         * sysdeps/i386/i686/mempcpy.S (mempcpy): Add libc_hidden_builtin_def.
3037         * sysdeps/i386/i586/mempcpy.S (mempcpy): Likewise.
3038         * sysdeps/generic/mempcpy.c (mempcpy): Likewise.
3039         * sysdeps/x86_64/mempcpy.S (mempcpy): Likewise.
3041 2004-05-26  Roland McGrath  <roland@frob.com>
3043         * sysdeps/generic/bits/in.h
3044         (IMPLINK_IP, IMPLINK_LOWEXPER, IMPLINK_HIGHEXPER): Macros removed.
3045         These are long obsolete in BSD systems where they originated.
3046         * conform/data/netinet/in.h-data: Remove `allow IMPLINK_*'
3048 2004-05-26  Jakub Jelinek  <jakub@redhat.com>
3050         * include/string.h (mempcpy, stpcpy): Add libc_hidden_builtin_proto.
3051         * string/bits/string2.h (memset): Disable macro for GCC 3.0+.
3052         (__mempcpy): Use __builtin_mempcpy for GCC 3.4+.
3053         (strchr): For GCC 3.2+, only use __rawmemchr if second argument is
3054         constant '\0' and first argument is not constant.
3055         (__stpcpy): Use __builtin_stpcpy for GCC 3.4+.
3056         (strncpy): Remove #ifdef _USE_STRING_ARCH_mempcpy variant.
3057         For GCC 3.2+ use __builtin_strncpy.
3058         (strncat): For GCC 3.2+ use __builtin_strncat.
3059         (strcmp): For GCC 3.2+ use __builtin_strcmp if both arguments are
3060         constant.
3061         (strcspn, strspn, strpbrk): For GCC 3.2+, use builtin function
3062         if both arguments are constant.
3064 2004-05-26  Ulrich Drepper  <drepper@redhat.com>
3066         * nss/nss_files/files-hosts.c: Fix condition for looking up IPv4
3067         mapped addresses in gethostbyaddr.
3069 2004-05-25  Ulrich Drepper  <drepper@redhat.com>
3071         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove typep and
3072         flags parameter, convert afp to simple int parameter.  Adjust code.
3073         typep was never != NULL and flags therefore also unused.  *afp is
3074         never modified.
3075         * nss/nsswitch.h: Adjust __nss_hostname_digits_dots prototype.
3076         * nss/getXXbyYY.c: Remove HAVE_TYPE handling.  Adjust af parameter
3077         handling for __nss_hostname_digits_dots calls.
3078         * nss/getXXbyYY_r.c: Likewise.
3080         * elf/dl-load.c (_dl_map_object_from_fd): Map DSOs with MAP_DENYWRITE.
3082 2004-05-25  Steven Munroe  <sjmunroe@us.ibm.com>
3084         * sysdeps/powerpc/fpu/Makefile: Make ld.so a dependency of libm.so.
3085         * sysdeps/powerpc/fpu/bits/mathinline.h [__LIBC_INERNAL_MATH_INLINES]
3086         (__ieee754_sqrt): Define as __MATH_INLINE using fsqrt instruction.
3087         (__ieee754_sqrtf): Define as __MATH_INLINE using fsqrts instruction.
3088         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Moved
3089         implementation from w_sqrt.c.
3090         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Moved
3091         implementation from w_sqrtf.c.
3092         * sysdeps/powerpc/fpu/w_sqrt.c (__sqrt): Wrapper implementation
3093         using inline __ieee754_sqrt().
3094         * sysdeps/powerpc/fpu/w_sqrtf.c (__sqrtf): Wrapper implementation
3095         using inline __ieee754_sqrtf().
3096         * sysdeps/powerpc/powerpc32/sysdep.h [__ASSEMBLER__]: Include
3097         <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__.
3098         * sysdeps/powerpc/sysdep.h [__ASSEMBLER__] (PPC_FEATURE_*): Define
3099         PPC_FEATURE_*  independent of __ASSEMBLER__.
3101 2004-05-25  Jakub Jelinek  <jakub@redhat.com>
3103         * sysdeps/pthread/aio_notify.c: Use <> instead of "" for aio_misc.h
3104         include.
3105         (aio_start_notify_thread): Define if not defined.
3106         (notify_func_wrapper): Use it.
3107         * sysdeps/pthread/aio_misc.c: Use <> instead of "" for aio_misc.h
3108         include.
3109         (aio_create_helper_thread): Define if not defined.
3110         (__aio_create_helper_thread): New function.
3111         (__aio_enqueue_request): Use aio_create_helper_thread.
3113         * nis/ypclnt.c (ypall_data, ypall_foreach): Remove.
3114         (struct ypresp_all_data): New type.
3115         (__xdr_ypresp_all): Change second argument to
3116         struct ypresp_all_data *.  Replace ypall_foreach and
3117         ypall_data with objp->foreach and objp->data.
3118         (yp_all): Remove status variable, add data.  Replace
3119         all uses of status with data.status.  Initialize data.foreach
3120         and data.data instead of ypall_foreach and ypall_data.
3122 2004-05-24  Jakub Jelinek  <jakub@redhat.com>
3124         * elf/dl-lookup.c (add_dependency): Set DF_1_NODELETE bit
3125         in l_flags_1, not in l_flags.
3127 2004-04-10  Robert Millan  <robertmh@gnu.org>
3129         * sysdeps/unix/sysv/linux/bits/in.h: Cosmetic fixes to get in sync
3130         with sysdeps/generic/bits/in.h.
3132 2004-05-25  Roland McGrath  <roland@frob.com>
3134         * sysdeps/generic/unwind-dw2-fde-glibc.c: Change copyright terms from
3135         GCC GPL to standard glibc LGPL.
3137 2004-05-24  Ulrich Drepper  <drepper@redhat.com>
3139         * manual/string.texi (Copying and Concatenation): Fixed second
3140         concat example.
3141         Reported by Fabian Pietsch <fabian@zzznowman.dyndns.org>.
3143 2004-05-23  Ulrich Drepper  <drepper@redhat.com>
3145         * malloc/obstack.c: Don't allow linking with _obstack.
3147 2004-05-23  Andreas Schwab  <schwab@suse.de>
3149         * sysdeps/m68k/m68020/bits/atomic.h: Use "+m" constraint instead
3150         of separate "m" constraints.
3152 2004-05-15  Chris Demetriou  <cgd@broadcom.com>
3154         * sysdeps/mips/dl-machine.h (ELF_DL_FRAME_SIZE)
3155         (ELF_DL_SAVE_ARG_REGS, ELF_DL_RESTORE_ARG_REGS): For the N32
3156         and 64 ABIs, save and restore regs $10 and $11 (a6 and a7).
3158 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
3160         * malloc/obstack.c (_obstack) [!defined _LIBC]: Remove; not used.
3161         Add comment explaining why libc still defines it.
3163 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3165         * malloc/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
3166         obstack_alignment_mask, obstack_alloc, obstack_base,
3167         obstack_blank, obstack_blank_fast, obstack_chunk_size,
3168         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
3169         obstack_grow0, obstack_init, obstack_int_grow,
3170         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
3171         obstack_next_free, obstack_object_size, obstack_ptr_grow,
3172         obstack_ptr_grow_fast, obstack_room): Remove declarations of
3173         nonexistent functions.
3175 2004-05-18  Steven Munroe  <sjmunroe@us.ibm.com>
3177         * sysdeps/powerpc/powerpc64/sysdep.h [__ASSEMBLER__]: Include
3178         <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__.
3179         [PIC]: Redundent for powerpc64, removed.
3180         (ENTRY): Generate size and alignment for opd entry.
3181         (EALIGN): Generate size and alignment for opd entry.
3182         (END): Use DOT_LABEL in ASM_SIZE_DIRECTIVE.
3183         (END_GEN_TB): Use DOT_LABEL in ASM_SIZE_DIRECTIVE.
3185 2004-05-19  Ulrich Drepper  <drepper@redhat.com>
3187         * misc/regexp.h: Say the functions have been withdrawn.
3189         * wcsmbs/tst-wcpncpy.c: Add more tests.
3191 2004-05-18  Roland McGrath  <roland@frob.com>
3193         * sysdeps/generic/unwind.h: Change copyright terms from GCC GPL to
3194         standard glibc LGPL.
3195         * sysdeps/generic/unwind-dw2.c: Likewise.
3196         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
3197         * sysdeps/generic/unwind-dw2-fde.h: Likewise.
3198         * sysdeps/generic/unwind-pe.h: Likewise.
3200 2004-05-15  Petter Reinholdtsen  <pere@hungry.com>
3202         * locale/iso-3166.def: Remove YUGOSLAVIA and insert "SERBIA AND
3203         MONTENEGRO" which have taken over the code 819.  Patch from
3204         Danilo Segan. [BZ #40]
3206 2004-05-15  Jakub Jelinek  <jakub@redhat.com>
3208         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3209         (SYSCALL_ERROR_HANDLER): Rename __sparc.get_pic.l7 to
3210         __sparc_get_pic_l7.
3212 2004-05-15  Joseph S. Myers  <jsm@polyomino.org.uk>
3214         * catgets/gencat.c: Update bug reporting instructions.
3215         * csu/version.c: Likewise.
3216         * debug/catchsegv.sh: Likewise.
3217         * debug/pcprofiledump.c: Likewise.
3218         * debug/xtrace.sh: Likewise.
3219         * elf/ldd.bash.in: Likewise.
3220         * iconv/iconv_prog.c: Likewise.
3221         * iconv/iconvconfig.c: Likewise.
3222         * locale/programs/locale.c: Likewise.
3223         * locale/programs/localedef.c: Likewise.
3224         * login/programs/pt_chown.c: Likewise.
3225         * malloc/memusage.sh: Likewise.
3226         * malloc/memusagestat.c: Likewise.
3227         * malloc/mtrace.pl: Likewise.
3228         * manual/crypt.texi: Likewise.
3229         * manual/install.texi: Likewise.
3230         * nss/makedb.c: Likewise.
3232 2004-05-14  Jakub Jelinek  <jakub@redhat.com>
3234         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Only
3235         CHECK_STATIC_TLS if sym != NULL.
3236         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
3237         * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
3239 2004-05-12  Andreas Schwab  <schwab@suse.de>
3241         * posix/regex_internal.c (build_wcs_buffer): Also set pstr->mbs
3242         when translating.
3244 2004-05-13  H.J. Lu  <hongjiu.lu@intel.com>
3246         * Rules (xtests): Depend on tests.
3248 2004-05-13  Jakub Jelinek  <jakub@redhat.com>
3250         * libio/genops.c (_IO_default_xsputn): Avoid one overflow per char if
3251         count is negative, yet write_ptr < write_end.
3252         (_IO_default_xsgetn): Avoid one underflow per char if count is
3253         negative, yet read_ptr < read_end.
3255 2004-05-12  Steven Munroe  <sjmunroe@us.ibm.com>
3257         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XTABS): Define XTABS
3258         equal to TAB3.
3260 2004-05-12  Ulrich Drepper  <drepper@redhat.com>
3262         * elf/dl-lookup.c (_dl_lookup_symbol_x): Correct _dl_signal_cerror
3263         call.
3265 2004-05-10  Roland McGrath  <roland@frob.com>
3267         * hurd/hurdlookup.c (__hurd_file_name_split): Return ENOENT for "".
3268         (__hurd_directory_name_split): Likewise.
3270 2004-05-10  Ulrich Drepper  <drepper@redhat.com>
3272         * po/fr.po: Update from translation team.
3274 2004-05-10  Andreas Jaeger  <aj@suse.de>
3276         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3277         Correctly compute alignment.
3278         Patch by Michael Matz <matz@suse.de>.
3280 2004-05-09  Ulrich Drepper  <drepper@redhat.com>
3282         * sysdeps/generic/sigpause.c: Prevent sigpause prototype.
3283         * sysdeps/posix/sigpause.c: Likewise.
3284         * signal/signal.h: Don't define sigpause macro unless needed.
3286 2004-05-08  Jakub Jelinek  <jakub@redhat.com>
3288         * configure.in (libc_cv_libgcc_s_suffix): New check.
3289         (libc_cv_as_needed): Use -lgcc_s$libc_cv_libgcc_s_suffix.
3290         * config.make.in (libgcc_s_suffix): Set.
3291         * Makeconfig (libgcc_eh): Use -lgcc_s$(libgcc_s_suffix).
3293 2004-05-08  Ulrich Drepper  <drepper@redhat.com>
3295         * signal/signal.h: Use BSD sigpause only if BSD behavior is preferred.
3297 2004-04-29  Steven Munroe  <sjmunroe@us.ibm.com>
3299         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_1,
3300         LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6):
3301         Load argument values into temporary variables.
3302         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_1,
3303         LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6):
3304         Likewise.
3306 2004-05-07  Ulrich Drepper  <drepper@redhat.com>
3308         * sysdeps/unix/sysv/linux/Makefile: mq_send.c and mq_receive.c
3309         need to be compiled with exceptions.
3311 2004-05-06  Ulrich Drepper  <drepper@redhat.com>
3313         * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Fix memory handling.
3314         * sysdeps/generic/ifreq.c (__ifreq): Fix memory handling.
3316         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Make clear that
3317         realloc cannot fail.
3319         * nss/nss_files/files-netgrp.c (EXPAND): Free buffer which cannot
3320         be expanded.
3322         * nis/nis_table.c: Clean up memory handling.
3323         * nis/nis_subr.c (nis_getnames): Clean up memory handling.
3324         * nis/nis_removemember.c (nis_removemember): Add comment
3325         explaining use of realloc.
3327         * math/tgmath.h (fabs): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL.
3328         (carg): Likewise.
3329         Patch by Lev S Bishop <lev.bishop@yale.edu>.
3331         * math/bug-tgmath1.c (main): Test fabs and carg as well.
3333 2004-05-06  Richard Henderson  <rth@redhat.com>
3335         * elf/elf.h (AT_L1I_CACHESHAPE, AT_L1D_CACHESHAPE,
3336         AT_L2_CACHESHAPE, AT_L3_CACHESHAPE): New.
3337         * sysdeps/unix/sysv/linux/alpha/Versions: Export
3338         __libc_alpha_cache_shape as a private symbol.
3339         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c: New file.
3340         * sysdeps/unix/sysv/linux/alpha/sysconf.c: New file.
3342 2004-05-06  Richard Henderson  <rth@redhat.com>
3344         * sysdeps/alpha/div_libc.h (_ITOFS, _ITOFT, _FTOIT, _ITOFT2): New.
3345         * sysdeps/alpha/divl.S: Use them.
3346         * sysdeps/alpha/divq.S: Likewise.
3347         * sysdeps/alpha/divqu.S: Likewise.
3348         * sysdeps/alpha/reml.S: Likewise.
3349         * sysdeps/alpha/remq.S: Likewise.
3350         * sysdeps/alpha/remqu.S: Likewise.
3352 2004-05-06  Ulrich Drepper  <drepper@redhat.com>
3354         * math/tgmath.h (__TGMATH_UNARY_REAL_IMAG_RET_REAL):Define.
3355         (cimag): Use it.
3356         (creal): Likewise.
3357         * math/Makefile (tests): Add bug-tgmath1.
3358         * math/bug-tgmath1.c: New file.
3360 2004-05-05  Jakub Jelinek  <jakub@redhat.com>
3362         * sysdeps/alpha/atomicity.h: Remove.
3363         * sysdeps/generic/atomicity.h: Remove.
3365 2004-05-05  H.J. Lu  <hongjiu.lu@intel.com>
3367         * sysdeps/i386/i486/bits/string.h (strpbrk): Cast return to
3368         char *.
3370 2004-04-22  David Mosberger  <davidm@hpl.hp.com>
3372         * sysdeps/unix/sysv/linux/ia64/Makefile (librt-routines): Mention
3373           rt-sysdep.
3374         * sysdeps/unix/sysv/linux/ia64/rt-sysdep.S: New file.
3376         * sysdeps/ia64/strcat.c: New file.
3377         * sysdeps/ia64/strcat.S: Delete.
3379 2004-05-04  Jakub Jelinek  <jakub@redhat.com>
3381         * sysdeps/unix/sysv/linux/ia64/sysdep.S (USE___THREAD): Remove
3382         defined.
3384 2004-04-23  Jakub Jelinek  <jakub@redhat.com>
3386         * sysdeps/ia64/fpu/libm_support.h (__libm_error_support): Add
3387         libc_hidden_proto.  Define to __GI___libm_error_support for
3388         assembly going into libc.so.
3389         * sysdeps/ia64/fpu/libc_libm_error.c (__libm_error_support): Add
3390         libc_hidden_def.
3392         * include/libc-symbols.h (HIDDEN_BUILTIN_JUMPTARGET): Define.
3393         * sysdeps/ia64/bcopy.S (bcopy): Use it for jump to memmove.
3395         * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Access
3396         gprel errno if RTLD_PRIVATE_ERRNO or __thread __libc_errno/errno
3397         if USE___THREAD.
3399 2004-05-03  Jakub Jelinek  <jakub@redhat.com>
3401         * sysdeps/unix/bsd/bits/fcntl.h (F_SETOWN, F_GETOWN): Define if
3402         __USE_BSD or __USE_UNIX98.
3403         * sysdeps/unix/bsd/ultrix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3404         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3405         * sysdeps/unix/bsd/sun/sunos4/bits/fcntl.h (F_SETOWN, F_GETOWN):
3406         Likewise.
3407         * sysdeps/unix/common/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3408         * sysdeps/unix/sysv/aix/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3409         * sysdeps/unix/sysv/irix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3410         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_SETOWN, F_GETOWN):
3411         Likewise.
3412         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_SETOWN, F_GETOWN):
3413         Likewise.
3414         * sysdeps/unix/sysv/linux/cris/bits/fcntl.h (F_SETOWN, F_GETOWN):
3415         Likewise.
3416         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (F_SETOWN, F_GETOWN):
3417         Likewise.
3418         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_SETOWN, F_GETOWN):
3419         Likewise.
3420         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN, F_GETOWN):
3421         Likewise.
3422         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (F_SETOWN, F_GETOWN):
3423         Likewise.
3424         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (F_SETOWN, F_GETOWN):
3425         Likewise.
3426         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (F_SETOWN, F_GETOWN):
3427         Likewise.
3428         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (F_SETOWN, F_GETOWN):
3429         Likewise.
3430         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (F_SETOWN, F_GETOWN):
3431         Likewise.
3432         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (F_SETOWN, F_GETOWN):
3433         Likewise.
3434         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_SETOWN, F_GETOWN):
3435         Likewise.
3436         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3437         * sysdeps/mach/hurd/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3438         * io/sys/stat.h (S_ISSOCK, S_IFSOCK): Likewise.
3440 2004-05-01  Jakub Jelinek  <jakub@redhat.com>
3442         * posix/Versions (libc): Remove __libc_wait, __libc_waitpid,
3443         __libc_pause, __libc_nanosleep, __libc_pread, __libc_pread64,
3444         __libc_pwrite64, __waitid and __pselect @@GLIBC_PRIVATE.
3445         * stdlib/Versions (libc): Remove __on_exit@@GLIBC_PRIVATE.
3446         * sysdeps/unix/sysv/linux/Versions (libc): Remove
3447         __libc_sigaction@@GLIBC_PRIVATE.
3448         * sysdeps/unix/sysv/linux/x86_64/Versions (libc): Remove
3449         __modify_ldt@@GLIBC_PRIVATE.
3450         * socket/Versions (libc): Remove __libc_accept, __libc_send,
3451         __libc_recvfrom, __libc_recvmsg, __libc_sendmsg, __libc_recv,
3452         __libc_sendto and __libc_connect @@GLIBC_PRIVATE.
3453         * stdio-common/Versions (libc): Remove
3454         _itoa_upper_digits@@GLIBC_PRIVATE.
3455         * resolv/Versions (libresolv): Remove __ns_samename@@GLIBC_PRIVATE.
3456         * misc/Versions (libc): Remove __libc_fsync, __libc_msync,
3457         __libc_readv and __libc_writev @@GLIBC_PRIVATE.
3458         * termios/Versions (libc): Remove __libc_tcdrain@@GLIBC_PRIVATE.
3459         * io/Versions (libc): Remove __libc_open, __libc_close, __libc_read,
3460         __libc_write, __libc_lseek, __libc_fcntl, __libc_open64 and
3461         __libc_lseek64 @@GLIBC_PRIVATE.
3463 2004-04-30  Jakub Jelinek  <jakub@redhat.com>
3465         * elf/dl-load.c (open_verify): Move e_phentsize check after e_type
3466         check.
3468 2004-04-29  Steven Munroe  <sjmunroe@us.ibm.com>
3470         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: New file.
3471         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: New file.
3472         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: New file.
3473         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: New file.
3474         * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: Removed.
3475         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: New file.
3476         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Removed.
3477         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: New file.
3478         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: New file.
3479         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: New file.
3480         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: New file.
3481         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: New file.
3482         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: New file.
3483         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: New file.
3484         * sysdeps/powerpc/powerpc64/fpu/s_round.S: New file.
3485         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: New file.
3486         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: New file.
3487         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: New file.
3489         * math/test-misc.c [LDBL_MANT_DIG == 106](main): Correct LDBL_MAX
3490         mantissa for AIX long double format.
3491         * misc/qefgcvt.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Define for AIX
3492         long double format.
3493         * misc/qefgcvt_r.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Likewise.
3494         * stdlib/fpioconst.c [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024]
3495         (_fpioconst_pow10): AIX long double format has same exponent range as
3496         double.
3497         * stdlib/fpioconst.h [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024]
3498         (LDBL_MAX_10_EXP_LOG): AIX long double format has same exponent range
3499         as double.
3501 2004-04-23  Art Haas  <ahaas@airmail.net>
3503         * sysdeps/unix/sysv/linux/kernel-features.h: Add 'defined'.
3505 2004-04-28  Carlos O'Donell  <carlos@baldric.uwo.ca>
3507         * sysdeps/unix/sysv/linux/mq_getattr.c: Include <stddef.h>.
3508         * sysdeps/unix/sysv/linux/mq_notify.c: Likewise.
3509         * sysdeps/unix/sysv/linux/mq_open.c: Likewise.
3510         * sysdeps/unix/sysv/linux/mq_receive.c: Likewise.
3511         * sysdeps/unix/sysv/linux/mq_send.c: Likewise.
3513 2004-04-29  Philip Blundell  <pb@nexus.co.uk>
3515         * sysdeps/arm/dl-machine.h (RTLD_START): Avoid unnecessary GOT
3516         entries.
3518 2004-04-29  Jakub Jelinek  <jakub@redhat.com>
3520         * manual/resource.texi (sched_setaffinity, sched_getaffinity): Fix
3521         prototypes and description [BZ #131].
3523         * string/bits/string2.h (strpbrk): Cast NULL to char * [BZ #130].
3524         Patch by Ed Catmur <ed@catmur.co.uk>.
3525         * string/tst-inlcall.c (main): Add test for strpbrk.
3527         [BZ #140]
3528         * sysdeps/unix/sysv/linux/sys/sysctl.h: Remove linux/compiler.h
3529         include.
3530         (_LINUX_KERNEL_H, _LINUX_TYPES_H, _LINUX_LIST_H): Only define if not
3531         yet defined, #undef back after including linux/sysctl.h if defined
3532         here.
3533         (__LINUX_COMPILER_H, __user): Define if not yet defined, #undef
3534         back after including linux/sysctl.h if defined here.
3536         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c (_Qp_qtoi): Use %f31
3537         for single precision register, add it to __asm clobbers [BZ #139].
3538         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c (_Qp_qtoui): Use %f31
3539         for single precision register, add it to __asm clobbers.
3540         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c (_Qp_qtoux): Use fqtox
3541         instead of fqtoi in QP_HANDLE_EXCEPTIONS.
3542         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c (_Qp_qtox): Likewise.
3543         Reported by M. H. VanLeeuwen <vanl@megsinet.net>.
3545 2004-04-23  Andreas Schwab  <schwab@suse.de>
3547         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Use
3548         __attribute_used__.
3550 2004-04-22  Philip Blundell  <philb@gnu.org>
3552         * sysdeps/arm/dl-machine.h (elf_machine_rela): Don't use INTUSE
3553         when calling _dl_signal_error.
3554         (elf_machine_rel): Likewise.
3556 2004-04-21  Ulrich Drepper  <drepper@redhat.com>
3558         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Define _GI___sigsetjmp
3559         and use it internally instead of __sigsetjmp.
3560         * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Use _GI___libm_frexp_4f.
3561         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Use _GI___libm_frexp_4l.
3562         * sysdeps/ia64/fpu/libm_frexp4.S: Define _GI___libm_frexp_4.
3563         * sysdeps/ia64/fpu/libm_frexp4f.S: Define _GI___libm_frexp_4f.
3564         * sysdeps/ia64/fpu/libm_frexp4l.S: Define _GI___libm_frexp_4l.
3565         * sysdeps/ia64/fpu/s_frexp.c (frexp): Use _GI___libm_frexp_4.
3566         * sysdeps/ia64/fpu/libm_support.h: Declare _GI___libm_frexp_4,
3567         _GI___libm_frexp_4f, _GI___libm_frexp_4l.
3568         * sysdeps/ia64/fpu/bits/mathinline.h: New file.
3569         * sysdeps/unix/sysv/linux/ia64/__start_context.S: Use
3570         HIDDEN_JUMPTARGET for exit call.
3571         * sysdeps/unix/sysv/linux/ia64/clone2.S: Use HIDDEN_JUMPTARGET for
3572         _exit call.
3573         * sysdeps/ia64/bcopy.S: Use HIDDEN_JUMPTARGET for memmove call.
3574         * sysdeps/ia64/strcat.S: Use HIDDEN_JUMPTARGET for strlen and
3575         strcpy calls.
3577 2004-04-21  Jakub Jelinek  <jakub@redhat.com>
3579         * posix/tst-chmod.c (do_test): Fix a typo.
3581         * elf/lateglobal.c (main): Fix error checks.
3582         Patch by Stephen Clarke <stephen.clarke@st.com>.
3584         * manual/ctype.texi (isblank, iswblank): Mark as ISO functions,
3585         mention they have been added in ISO C99.
3586         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3588 2004-03-31  H.J. Lu  <hongjiu.lu@intel.com>
3590         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Fix typo.
3592 2004-04-20  Jakub Jelinek  <jakub@redhat.com>
3594         * sysdeps/unix/sysv/linux/shm_open.c (shm_unlink): Change EPERM into
3595         EACCES.
3597 2004-04-20  Jakub Jelinek  <jakub@redhat.com>
3599         * stdio-common/vfscanf.c (_IO_vfscanf): Revert last %% whitespace
3600         handling change.
3601         * stdio-common/tst-sscanf.c (int_tests): Adjust.
3603         * nis/nss-nis.c: Include stdlib.h.
3605         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Shut up a
3606         warning.
3607         * sysdeps/sparc/sparc64/memcmp.S (memcmp): Remove BP_SYM () from
3608         libc_hidden_builtin_def.
3610 2004-04-20  Jim Meyering  <jim@meyering.net>
3612         * misc/error.c (error_tail): Don't leak upon realloc failure.
3614 2004-04-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3616         * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable):
3617         Use RETURN_ADDRESS instead of __builtin_return_address.
3619 2004-04-19  Ulrich Drepper  <drepper@redhat.com>
3621         * sysdeps/unix/sysv/linux/mq_unlink.c: Rewrite to produce more
3622         compact code.
3624 2004-04-20  Jakub Jelinek  <jakub@redhat.com>
3626         * stdio-common/vfscanf.c (_IO_vfscanf): When skipping whitespace,
3627         do input_error () instead of conv_error () and don't look at errno.
3628         Don't eat any whitespace before %% if skip_space == 0.
3629         * stdio-common/tst-sscanf.c (int_tests): New array.
3630         (main): Run int_tests.
3633 See ChangeLog.14 for earlier changes.