* manual/memory.texi (Page Lock Functions): Typo fix.
[glibc.git] / ChangeLog
blobd610e693d7b52878b74783071db2a4a92120b409
1 2004-10-17  Roland McGrath  <roland@frob.com>
3         * manual/memory.texi (Page Lock Functions): Typo fix.
4         Reported by Carlos Maziero <maziero@ppgia.pucpr.br>
6 2004-10-16  Alfred M. Szmidt  <ams@kemisten.nu>
8         * sysdeps/mach/hurd/Makefile (link-libc-static): Use
9         `$(static-gnulib') instead of `$(gnulib)'.
11 2004-10-17  Ulrich Drepper  <drepper@redhat.com>
13         * sunrpc/rpc_clntout.c: Avoid including rcsid into binary.
14         * sunrpc/rpc_cout.c: Likewise.
15         * sunrpc/rpc_hout.c: Likewise.
16         * sunrpc/rpc_main.c: Likewise.
17         * sunrpc/rpc_parse.c: Likewise.
18         * sunrpc/rpc_sample.c: Likewise.
19         * sunrpc/rpc_scan.c: Likewise.
20         * sunrpc/rpc_svcout.c: Likewise.
21         * sunrpc/rpc_tblout.c: Likewise.
22         * sunrpc/rpc_util.c: Likewise.
24 2004-10-15  Jakub Jelinek  <jakub@redhat.com>
26         * sysdeps/unix/sysv/linux/i386/sysdep.h (PUSHARGS_6, DOARGS_6,
27         POPARGS_6, _PUSHARGS_6, _DOARGS_6, _POPARGS_6): Define.
28         * sysdeps/unix/sysv/linux/i386/syscall.S (syscall): Handle 6 argument
29         syscalls.
31 2004-10-15  Ulrich Drepper  <drepper@redhat.com>
33         * nscd/nscd.h (_PATH_NSCD_PASSWD_DB): Move to /var/db.
34         (_PATH_NSCD_GROUP_DB): Likewise.
35         (_PATH_NSCD_HOSTS_DB): Likewise.
36         (_PATH_NSCD_XYZ_DB_TMP): New #define, point to /var/run.
37         * nscd/connections.c (nscd_init): Non-persistent database files
38         are created with the _PATH_NSCD_XYZ_DB_TMP path.
39         * nscd/nscd.init: Create /var/db/nscd if necessary.
41 2004-10-15  Richard Henderson  <rth@redhat.com>
43         * sysdeps/unix/sysv/linux/alpha/register-dump.h: New file.
44         * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h (SIGCONTEXT): Add
45         _code argument, pass sigcontext by pointer.
46         (SIGCONTEXT_EXTRA_ARGS): Likewise.
47         (GET_PC, GET_FRAME, GET_STACK): Expect ctx as pointer.
49 2004-10-14  Richard Henderson  <rth@redhat.com>
51         * sysdeps/alpha/dl-machine.h (elf_machine_rela,
52         elf_machine_rela_relative, elf_machine_lazy_rel): Mark auto
53         instead of static.
55         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use prototype
56         style definition.
57         * sysdeps/unix/sysv/linux/alpha/adjtime.c (ADJTIME): If
58         __ASSUME_TIMEVAL64, define __adjtime directly rather than
59         via strong_alias.
61 2004-10-14  Ulrich Drepper  <drepper@redhat.com>
63         * nscd/Makefile: When using compilers without -fpie support, also
64         link with -lselinux if necessary.
65         Patch by Arkadiusz Miskiewicz <arekm@pld-linux.org>.
67         * nscd/connections.c (nscd_init): Remove file if not persistent
68         and not shared.  Patch by Jerome Borsboom <j.borsboom@erasmusmc.nl>.
70 2004-10-14  Jakub Jelinek  <jakub@redhat.com>
72         * sysdeps/unix/sysv/linux/i386/setresuid.c: Handle
73         defined __NR_setresuid32 && !defined __NR_setresuid.
74         * sysdeps/unix/sysv/linux/i386/setresgid.c: Handle
75         defined __NR_setresgid32 && !defined __NR_setresgid.
77         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
78         __signbitl, sqrtf, sqrt, sqrtl, fdim, fdimf): Use __NTH macro.
80         * sysdeps/generic/errno-loc.c: Don't undef #errno
81         if RTLD_PRIVATE_ERRNO.
82         * include/errno.h (__errno_location): If RTLD_PRIVATE_ERRNO,
83         add attribute_hidden.
85         * dlfcn/dlinfo.c (dlinfo_doit): Replace iteration over GL(dl_loaded)
86         chain with iteration over all namespaces' _ns_loaded chains.
87         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_preferred_address):
88         Likewise.
89         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Likewise.
91         * elf/rtld.c (_dl_start): Fix one last dl_loaded.
92         * elf/dl-load.c (_dl_map_object_from_fd): Avoid definition of
93         label when it is not needed.
94         * elf/dl-close.c (_dl_close): Typo: & -> &&.
96 2004-10-12  Jakub Jelinek  <jakub@redhat.com>
98         * sysdeps/generic/segfault.c: Include alloca.h and stdint.h.
99         Don't include frame.h.
100         (CURRENT_STACK_FRAME, INNER_THAN, ADVANCE_STACK_FRAME): Remove.
101         (catch_segfault): Use backtrace function.
103         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Fix comment.
104         * sysdeps/unix/sysv/linux/ia64/register-dump.h: New file.
105         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h (GET_PC): Return sc_ip
106         field.
108 2004-10-13  Ulrich Drepper  <drepper@redhat.com>
110         Add support for namespaces in the dynamic linker.
111         * dlfcn/Makefile (libdl-routines): Add dlmopen.
112         * dlfcn/Versions [libdl, GLIBC_2.3.4]: Add dlmopen.
113         * dlfcn/dlfcn.h: Define Lmid_t, LM_ID_BASE, and LM_ID_NEWLM.
114         Declare dlmopen.  Document RTLD_DI_LMID.
115         * dlfcn/dlinfo.c: Handle RTLD_DI_LMID.
116         * dlfcn/dlmopen.c: New file.
117         * dlfcn/dlopen.c: Pass new parameter to _dl_open.
118         * dlfcn/dlopenold.c: Likewise.
119         * elf/dl-addr.c: Adjust for removal of GL(dl_loaded).
120         * elf/dl-caller.c: Likewise.
121         * elf/dl-close.c: Likewise.
122         * elf/dl-conflict.c: Likewise.
123         * elf/dl-debug.c: Likewise.
124         * elf/dl-lookup.c: Likewise.
125         * elf/dl-sym.c: Likewise.
126         * elf/dl-version.c: Likewise.
127         * elf/do-lookup.h: Likewise.
128         * elf/rtld.c: Likewise.
129         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
130         * elf/dl-depsc: Likewise.  Add new parameter to _dl_map_object.
131         * elf/dl-fini.c: Call destructors in all namespaces.
132         * elf/dl-iteratephdr.c: Compute total nloaded.  Adjust for removal of
133         GL(dl_loaded).
134         * elf/dl-libc.c: Pass new parameter to _dl_open.  Adjust for removal
135         of GL(dl_loaded).
136         * elf/dl-load.c (_dl_map_object_from_fd): Don't load ld.so a second
137         time.  Reuse the one from the main namespace in all others.
138         Pass new parameter to _dl_new_object.
139         Adjust for removal of GL(dl_loaded).
140         * elf/dl-object.c: Take new parameter.  Use it to initialize l_ns.
141         Adjust for removal of GL(dl_loaded).
142         * elf/dl-open.c (_dl_open): Take new parameter.
143         Adjust for removal of GL(dl_loaded).
144         * elf/dl-support.c: Replace global _dl_loaded etc variables with
145         _dl_ns variable.
146         * include/dlfcn.h: Adjust prototype of _dl_open.
147         Define __LM_ID_CALLER.
148         * include/link.h: Add l_real, l_ns, and l_direct_opencount elements.
149         * sysdeps/generic/dl-tls.c: Bump TLS_STATIC_SURPLUS.  Since libc is
150         using TLS we need memory appropriate to the number of namespaces.
151         * sysdeps/generic/ldsodefs.h (struct rtld_global): Replace _dl_loaded,
152         _dl_nloaded, _dl_global_scope, _dl_main_searchlist, and
153         _dl_global_scope_alloc with _dl_ns element.  Define DL_NNS.
154         Adjust prototypes of _dl_map_object and member in rtld_global_ro.
155         * malloc/malloc.c: Include <dlfcn.h>.
156         * malloc/arena.c (ptmalloc_init): If libc is not in primary namespace,
157         never use brk.
158         * elf/Makefile: Add rules to build and run tst-dlmopen1 and
159         tst-dlmopen2.
160         * elf/tst-dlmopen1.c: New file.
161         * elf/tst-dlmopen1mod.c: New file.
162         * elf/tst-dlmopen2.c: New file.
164         * elf/dl-close.c: Improve reference counting by tracking direct loads.
165         * elf/dl-lookup.c (add_dependency): Likewise.
166         * elf/dl-open.c (dl_open_worker): Likewise.
167         * elf/rtld.c (dl_main): Likewise.
169 2004-09-09  GOTO Masanori  <gotom@debian.or.jp>
171         [BZ #77]
172         * elf/dl-close.c: Count down l_opencount to check not only for
173         l_reldeps, but also l_initfini.
175 2004-10-13  Ulrich Drepper  <drepper@redhat.com>
177         * elf/dl-close.c (_dl_close): Update bug reporting instructions.
179 2004-10-11  Ulrich Drepper  <drepper@redhat.com>
181         * timezone/asia: Update from tzdata2004e.
182         * timezone/southamerica: Likewise.
183         * timezone/private.h: Update from tzcode2004e.
184         * timezone/zdump.c: Likewise.
186         * stdio-common/vfscanf.c: Add support for reading localized
187         digits.  Patch mainly by Hamed Malek <hamed@bamdad.org>.
189         * resolv/res_init.c (res_thread_freeres): Reset _res.options.
190         [BZ #434]
192         * resolv/res_send.c (send_dg): Use nonblocking sockets.  Add
193         appropriate poll/select calls and restart operation if necessary.
194         Also handle EINTR.
196         * elf/tst-dlopenrpath.c (do_test): Enable code which was disabled
197         for debugging.
199         * elf/dl-sym.c (do_sym): Avoid using global variable.
201         * elf/dl-addr.c (_dl_addr): Really use match everywhere.
203 2004-10-09  Andreas Schwab  <schwab@suse.de>
205         * sysdeps/m68k/memcopy.h (WORD_COPY_BWD): Remove use of cast as
206         lvalue.
208         * sysdeps/m68k/fpu/bits/mathinline.h: Remove __THROW from inline
209         definitions.
211 2004-10-07  Andreas Schwab  <schwab@suse.de>
213         * misc/sys/uio.h: Change __vector to __iovec to avoid clash with
214         altivec.
216 2004-10-06  Alan Modra  <amodra@bigpond.net.au>
218         * gmon/Makefile (CFLAGS-mcount.c): Move before inclusion of "Rules".
219         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-mcount.c): Add
220         -msoft-float.
221         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): New macros.
222         (CALL_MCOUNT): Replace with a gas macro implementation.
223         (EALIGN): Delete PROF version.
224         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Invoke CALL_MCOUNT.
225         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Likewise.
226         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: Likewise.
227         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
228         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
229         * sysdeps/powerpc/powerpc64/memset.S: Likewise.
230         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
231         * sysdeps/powerpc/powerpc64/strchr.S: Likewise.
232         * sysdeps/powerpc/powerpc64/strcmp.S: Likewise.
233         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
234         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
235         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
236         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
237         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
238         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
239         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
240         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
241         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
242         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
243         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
244         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
245         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
246         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
247         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
248         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
249         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
250         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
252         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add extra entry point
253         past _mcount call.
254         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Use it.
255         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: Likewise.
257 2004-10-06  Ulrich Drepper  <drepper@redhat.com>
259         * resolv/res_mkquery.c (res_nmkquery): Reject randombits value if
260         low 16 bits are zero.
262 2004-10-06  Jakub Jelinek  <jakub@redhat.com>
264         * posix/tst-getaddrinfo2.c: Include stdlib.h and string.h.
265         (do_test): Use %p instead of 0x%08X to print a pointer.
267         * malloc/malloc.c: Include stdio-common/_itoa.h.
269 2004-10-05  Ulrich Drepper  <drepper@redhat.com>
271         * elf/rtld.c (dl_main): Use _dl_debug_printf instead of _dl_printf
272         for prelink message.
274 2004-10-05  Jakub Jelinek  <jakub@redhat.com>
276         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Include dl-sysdep.h.
277         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
279 2004-10-05  Ulrich Drepper  <drepper@redhat.com>
281         * grp/initgroups.c: Remove duplicate group IDs.
282         * grp/compat-initgroups.c: Likewise.
283         * nscd/initgrcache.c: Likewise.
285 2004-10-05  Jakub Jelinek  <jakub@redhat.com>
287         * sysdeps/unix/sysv/linux/x86_64/sysconf.c (__sysconf): Return 200112L
288         for _SC_CPUTIME or _SC_THREAD_CPUTIME.
290         * nscd/Makefile (nscd-cflags): Set to -DIS_IN_nscd=1, plus
291         -fpie if building PIE.
292         (CFLAGS-*.c): Use it.
294         * nscd/Makefile (relro-LDFLAGS): Add -Wl,-z,now if have-z-relro.
295         ($(objpfx)nscd): Add $(relro-LDFLAGS).
297         * sysdeps/unix/sysv/linux/i386/sysconf.c: Include hp-timing.h.
298         (__sysconf): Return -1 for _SC_CPUTIME or _SC_THREAD_CPUTIME if
299         !HP_TIMING_AVAIL.
301 2004-10-05  Ulrich Drepper  <drepper@redhat.com>
303         * nscd/Makefile (distribute): Remove TODO.
304         * nscd/TODO: Removed.
306 2004-10-04  Ulrich Drepper  <drepper@redhat.com>
308         * nscd/gai.c: Define __no_netlink_support if NEED_NETLINK is
309         defined and __ASSUME_NETLINK_SUPPORT is zero.
310         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gai.c): Add
311         -DNEED_NETLINK.
313         * malloc/mtrace.pl: Avoid calling location unless it is needed for
314         output.  Patch by Edward Bishop <binutils@gmail.com>.
316         * nscd/Makefile (CFLAGS-gai.c): Add -fpie.
318 2004-10-04  H.J. Lu  <hongjiu.lu@intel.com>
320         * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c
321         (clock_getcpuclockid): Add missing retval.
323         * sysdeps/unix/sysv/linux/ia64/sysconf.c (linux_sysconf): Fix a typo.
325 2004-10-04  Roland McGrath  <roland@redhat.com>
327         * include/errno.h [RTLD_PRIVATE_ERRNO] (errno): Rename the real symbol
328         to rtld_errno.
329         * sysdeps/generic/errno.c [RTLD_PRIVATE_ERRNO] (rtld_errno): Define it,
330         and don't define any other errno names.
331         * sysdeps/unix/alpha/sysdep.h [RTLD_PRIVATE_ERRNO]: Use rtld_errno in
332         place of errno.
333         * sysdeps/unix/i386/sysdep.S: Likewise.
334         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
335         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
336         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
337         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
338         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
339         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
340         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
341         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
342         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
343         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
344         * sysdeps/unix/x86_64/sysdep.S: Likewise.
346         * sysdeps/generic/errno.c [! USE___THREAD] (errno): Use `nocommon'
347         attribute instead of `section'.
349 2004-10-04  Ulrich Drepper  <drepper@redhat.com>
351         * sysdeps/unix/sysv/linux/ia64/sysconf.c: New file.
352         * sysdeps/unix/sysv/linux/ia64/Dist: Add has_cpuclock.c.
353         * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c: Move actual
354         testing code to...
355         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: ...here.  New file.
356         * sysdeps/unix/sysv/linux/i386/sysconf.c: Add dynamic check for
357         _SC_CPUTIME and _SC_THREAD_CPUTIME.
359         * nscd/connections.c (start_threads): Use sysconf in case
360         _POSIX_CLOCK_SELECTION or _POSIX_MONOTONIC_CLOCK is not greater zero.
362         * nscd/Makefile (nscd-modules): Add gai.
363         * nscd/gai.c: New file.
364         * nscd/nscd.c: Remove getaddrinfo stub definition.
366         * assert/assert.h: Give up on using __builtin_expect.
368         * elf/rtld.c (dl_main): Only skip => output in ldd mode if both
369         strings are identical.
371 2004-03-18  Jakub Jelinek  <jakub@redhat.com>
373         * malloc/arena.c (aligned_heap_area): New variable.
374         (new_heap): If aligned_heap_area != NULL, attempt to use that
375         first.  If HEAP_MAX_SIZE << 1 area is already HEAP_MAX_SIZE bytes
376         aligned, remember the second half in aligned_heap_area.
377         (delete_heap): Clear aligned_heap_area if deleting the area right
378         before aligned_heap_area.
380 2004-10-03  Juerg Billeter  <j@bitron.ch>
382         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Return -1 if nscd
383         can't be used.  [BZ #424]
385 2004-10-03  Ulrich Drepper  <drepper@redhat.com>
387         Dynamically create new threads if necessary.
388         * nscd/connections.c (fd_ready): If no thread available for processing
389         the request, create a new one unless the limit is reached.
390         (start_threads): Check errors from pthread_create.
391         * nscd/nscd.h: Declare max_nthreads.
392         * nscd/nscd_conf.c: Parse max-nthreads entry.
393         * nscd/nscd.conf: Add max-threads entry.
394         * nscd/nscd_stat.c: Print current and maximum number of threads.
396         Implement paranoia mode.
397         * nscd/connections.c (nscd_init): Mark database and socket descriptors
398         as close on exec.
399         (restart): New function.
400         (restart_p): New function.
401         (nscd_run): Add missing descrement of nready in case readylist is
402         empty.
403         (main_loop_poll): Call restart_p and restart.
404         (main_loop_epoll): Likewise.
405         (begin_drop_privileges): Save original UID and GID.
406         * nscd/nscd.c: Define new variables paranoia, restart_time,
407         restart_interval, oldcwd, old_gid, old_uid.
408         (main): Disable paranoia mode if we are not forking.
409         (check_pid): When re-execing, the PID file contains the same PID as
410         the current process.  Do not fail in this case.
411         * nscd/nscd.conf: Add paranoia and restart-interval entries.
412         * nscd/nscd.h: Define RESTART_INTERVAL.  Declare new variables.
413         * nscd/nscd_conf.c: Parse paranoia and restart-internal configurations.
414         * nscd/nscd_stat.c: Print paranoia and restart-internal values.
416         * nscd/connections.c: Implement alternative loop for main thread
417         which uses epoll.
418         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
419         (CFLAGS-connections.c): Add -DHAVE_EPOLL.
421 2004-10-02  Ulrich Drepper  <drepper@redhat.com>
423         * nscd/Makefile (CFLAGS-initgrcache.c): Add to CFLAGS-* variables,
424         don't replace old content.
426         * nscd/connections.c: Rewrite handling of incoming connections.  All
427         are handled by one thread which then hands off the descriptors for the
428         real work to the worker threads.
429         * nscd/Makefile: Link nscd with librt.
431         * nscd/selinux.c: Pretty printing.
433         * nscd/dbg_log.c (dbg_log): Don't add unnecessary newline to
434         output.  Let syslog do the formatting if debug_level == 0.
436         * nscd/nscd_helper.c (get_mapping): No need to check timestamp if
437         nscd_certainly_running is nonzero.
439 2004-10-02  Simon Josefsson  <jas@extundo.com>
441         [BZ #420]
442         * sysdeps/generic/memmem.c [!_LIBC]: Define __builtin_expect, to
443         make the file usable inside gnulib.
445 2004-10-01  Ulrich Drepper  <drepper@redhat.com>
447         * malloc/malloc.c (public_vALLOc): Add missing use of hooks.
448         (public_pVALLOc): Likewise.
450         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Always add the
451         group the caller provided unless there is a real problem.
453         * posix/bug-glob1.c (prepare): Fix creation of symlink.
455 2004-09-30  Ulrich Drepper  <drepper@redhat.com>
457         * posix/Makefile: Add rules to build and run bug-glob1.
458         * posix/bug-glob1.c: New file.
460         * iconv/iconv_prog.c (main): Print progress information to stderr.
462         * nscd/nscd.c (termination_handler): Reset timestamp so that
463         clients immediately stop using the database.
465         * nscd/nscd-client.h (__nscd_get_map_ref): Drop volatile from last
466         parameter.
467         (__nscd_drop_map_ref): Change second parameter to be a reference to
468         a variable.  Update variable when cycle count changed.
469         * nscd/nscd_helper.c (__nscd_get_map_ref): Remove volatile here, too.
470         * nscd/nscd_getai.c: Correctly use __nscd_drop_map_ref.  Reinitialize
471         all variables and avoid memory leak in case of retries.
472         * nscd/nscd_getgr_r.c: Likewise.
473         * nscd/nscd_gethst_r.c: Likewise.
474         * nscd/nscd_getpw_r.c: Likewise.
475         * nscd/nscd_initgroups.c: Likewise.
477         * nscd/nscd.h: Add declaration of addinitgroups and
478         readdinitgroups.
480 2004-09-30  Andreas Jaeger  <aj@suse.de>
482         * nscd/Makefile (CFLAGS-nscd_initgroups.c): Set to -fpie.
483         (CFLAGS-initgrcache.c): Set to -fexceptions.
485 2004-09-29  Ulrich Drepper  <drepper@redhat.com>
487         * sysdeps/generic/glob.c (glob_in_dir): Don't blindly trust
488         readdir results; for symlinks or files of unknown type check using
489         stat whether the file exists.
491         * posix/tst-gnuglob.c (find_file): Handle leading "./".  Fix
492         recognition of files.
494 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
496         * time/tzfile.c (tzfile_mtime): New variable.
497         (__tzfile_read): Reread the file if mtime is different.
499 2004-09-28  Jakub Jelinek  <jakub@redhat.com>
501         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf, __fdim, fdimf, fdim):
502         Handle +inf/+inf.
503         * sysdeps/powerpc/fpu/bits/mathinline.h (fdim, fdimf): Likewise.
504         * sysdeps/sparc/fpu/bits/mathinline.h (fdim, fdimf): Likewise.
506 2004-09-29  Ulrich Drepper  <drepper@redhat.com>
508         * nscd/nscd_gethst_r.c (nscd_gethst_r): Use correct constant for
509         testing result of __nscd_get_map_ref.
511 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
513         * sysdeps/i386/fpu/s_fdim.S (__fdim): Handle +inf/+inf.
514         * sysdeps/i386/fpu/s_fdimf.S (__fdimf): Likewise.
515         * sysdeps/i386/fpu/s_fdiml.S (__fdiml): Likewise.
517 004-09-29  Ulrich Drepper  <drepper@redhat.com>
519         * grp/initgroups.c: Move compat_call implementation...
520         * grp/compat-initgroups.c: ...to here.  New file.
521         * grp/Makefile (distribute): Add compat-initgroups.c.
522         (CFLAGS-initgroups.c): Add -DUSE_NSCD=1.
523         * mscd/initgrcache.c: New file.
524         * nscd/nscd_initgroups.c: New file.
525         * nscd/Makefile (routines): Add nscd_initgroups.
526         (nscd-modules): Add initgrcache.
527         * nscd/cache.c (prune_cache): Add support for INITGROUPS entries.
528         * nscd/connections.c: Handle INITGROUPS requests.
529         * nscd/nscd-client.h: Define INITGROUPS, initgr_response_header.
530         Add initgrdata element to struct datahead.  Fix typo in comment.
531         * nscd/nscd_proto.h: Declare __nscd_getgrouplist.  Fix parameter
532         type in __nscd_getgrgrid_r.
533         * nscd/selinux.c (perms): Add INITGROUPS entry.
535         * nscd/nscd_getai.c: No need to include <sys/mman.h>.
537         * sunrpc/get_myaddr.c (get_myaddress): Account for interfaces without
538         assigned addresses.
539         * sunrpc/pmap_clnt.c (__get_myaddress): Likewise.
540         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
541         * sunrpc/clnt_udp.c (is_network_up): Likewise.
543         * nscd/nscd.c: Define getaddrinfo hidden so that it is never found
544         outside.
546         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (si_segvflags):
547         Renamed from si_flags due to conflict with si_flags from <elf.h>.
549 2004-09-28  Ulrich Drepper  <drepper@redhat.com>
551         * nscd/nscd_getai.c: Use NO_MAPPING instead of MAP_FAILED for test
552         of failing __nscd_get_map_ref.  Fix a few typos.
554         * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Make sure
555         SIGSETXID is not blocked.
556         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Likewise.
557         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
558         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
559         * sysdeps/generic/sigfillset.c (sigfillset): Don't set SIGSETXID.
561         * sunrpc/get_myaddr.c (get_myaddress): Fix test for failing
562         getifaddrs call.
563         * sunrpc/pmap_clnt.c (__get_myaddress): Likewise.
564         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
565         * sunrpc/Makefile (xtests): Add tst-getmyaddr.
566         * sunrpc/tst-getmyaddr.c: New file.
568         * malloc/arena.c (ptmalloc_init): Allow MALLOC_CHECK_==0 to
569         disable all checking.
571         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (si_flags): Add
572         support to get this value.
574 2004-09-28  Jakub Jelinek  <jakub@redhat.com>
576         * io/utime.h (utime): Allow second argument to be NULL.
578 2004-09-28  Ulrich Drepper  <drepper@redhat.com>
580         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NAME is a numerical IP
581         address and AI_CANONNAME is set, return copy of NAME as ai_canonname.
583 2004-09-27  Andreas Jaeger  <aj@suse.de>
585         * sysdeps/i386/dl-machine.h (elf_machine_rela_relative): Replace
586         static inline by auto inline, add always_inline attribute.
587         (elf_machine_rel): Likewise.
588         (elf_machine_rela): Likewise.
589         (elf_machine_lazy_rel): Likewise.
590         (elf_machine_lazy_rela): Likewise.
591         (elf_machine_rel_relative): Likewise.
593 2004-09-27  Ulrich Drepper  <drepper@redhat.com>
595         * sunrpc/xdr_intXX_t.c: Add xdr_quad_t and xdr_u_quad_t aliases.
596         * sunrpc/rpc/xdr.h: Declare xdr_quad_t and xdr_u_quad_t.
597         * sunrpc/rpc_parse.c (get_type): Use "quad_t" for TOK_HYPER.
598         Otherwise isvectordef will loop infinitely if typedef hyper int64_t
599         is seen.
600         (unsigned_dec): Use "u_quad_t" for similar reasons.
601         * sunrpc/Versions: Export xdr_quad_t and xdr_u_quad_t.
603 2004-09-27  Roland McGrath  <roland@redhat.com>
605         * sysdeps/generic/bits/waitstatus.h (__WIFSIGNALED): Simplify bit
606         twiddling in last change.
608         * posix/tst-waitid.c (do_test): Add tests for waitpid with WCONTINUED.
610         [BZ #409]
611         * posix/sys/wait.h [__WIFCONTINUED] (WIFCONTINUED): New macro.
612         * stdlib/stdlib.h [__WIFCONTINUED] (WIFCONTINUED): New macro.
613         * sysdeps/generic/bits/waitstatus.h (__W_CONTINUED): New macro.
614         [WCONTINUED] (__WIFCONTINUED): New macro.
615         (__WIFSIGNALED): Rewritten to exclude __W_CONTINUED value, and have no
616         branches.
618         * sysdeps/unix/sysv/linux/waitid.c (do_waitid): Add fifth argument to
619         all three syscall uses, not just one!
621 2004-09-26  Richard Henderson  <rth@redhat.com>
623         * sysdeps/alpha/alphaev6/memcpy.S: Mark .prologue.
624         * sysdeps/unix/alpha/sysdep.h (LEAF, ENTRY): Align entry points
625         to 16 byte boundaries.
627 2004-09-26  Ulrich Drepper  <drepper@redhat.com>
629         * elf/readlib.c (process_file): Before complaining about too-short
630         file, check that it potentially be an ELF file.  Also complain about
631         empty files.  [BZ #151].
633         * scripts/test-installation.pl: Fix ld.so recognition for new
634         LD_TRACE_LOADED_OBJECTS output format.
635         Patch by <jsberg04+computing.glibc@ftml.net>  [BZ #407].
637         * elf/dl-support.c (_dl_non_dynamic_init): Fix cleaning of
638         environment.  [BZ #384]
640         * sunrpc/clnt_udp.c (is_network_up): Use getifaddrs instead of ioctl.
641         * sunrpc/get_myaddr.c (get_myaddress): Likewise.
642         * sunrpc/pmap_clnt.c (__get_myaddress): Likewise.
643         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.  Change interface
644         to avoid buffer overrun and remove now useless parameters.
645         (clnt_broadcast): Adjust caller.  [BZ #381].
647         * sysdeps/generic/s_fdim.c: Handle +inf/+inf
648         * sysdeps/generic/s_fdimf.c: Likewise.
649         * sysdeps/generic/s_fdiml.c: Likewise.
650         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
651         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
652         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
653         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
654         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
655         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
656         * math/libm-test.inc (fdim_test): Add test case.  [BZ #376].
658         * sysdeps/generic/bits/types.h: Fix __SQUAD_TYPE and __UQUAD_TYPE
659         for compilers without __GLIBC_HAVE_LONG_LONG.  [BZ #362]
661         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Remove incorrect
662         requirement on socktype and protocol.
663         (gaih_inet): If numeric port number is given, return records for all
664         possible socket types.
665         * posix/tst-getaddrinfo2.c: New file.
666         * posix/Makefile (tests): Add tst-getaddrinfo2.  [BZ #358]
668 2004-09-25  Ulrich Drepper  <drepper@redhat.com>
670         * locale/loadlocale.c (_nl_intern_locale_data): Recognize LC_CTYPE
671         data where _nl_value_type_LC_CTYPE does not contain the type
672         information.  Add range checks.
673         Reported by John Lumby <johnlumby@hotmail.com> [BZ #356].
675         * libio/vasprintf.c (_IO_vasprintf): Fix condition to decide
676         whether to realloc or not.
677         Reported by Pavel Kankovsky <peak@argo.troja.mff.cuni.cz> [BZ #346].
679         * intl/dcigettext.c (DCIGETTEXT): Protect tfind/tsearch calls.
680         * intl/dcigettext.c (_nl_find_msg): Call _nl_load_domain also if
681         decided < 0.
682         * intl/finddomain.c (_nl_find_domain): Likewise.
683         * intl/loadmsgcat.c (_nl_load_domain): Set decided to 1 only once we
684         are done.  First set to -1 to signal initialization is ongoing.
685         Protect against concurrent callers with recursive lock.
686         * intl/finddomain.c (_nl_find_domain): Protect calls to
687         _nl_make_l10nflist.  [BZ #322]
689         * sysdeps/posix/getaddrinfo.c (getaddrinfo): If determinination of
690         source address fails, initialized source_addr_len field so that
691         duplicate address recognition does not copy junk.
693 2004-09-25  Jakub Jelinek  <jakub@redhat.com>
695         * sysdeps/unix/sysv/linux/i386/setuid.c (__setuid): Remove second
696         result declaration.
698 2004-09-22  Andreas Schwab  <schwab@suse.de>
700         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Adjust whitespace.
702 2004-09-24  Ulrich Drepper  <drepper@redhat.com>
704         * misc/daemon.c (daemon): Don't succeed if /dev/null cannot be
705         opened.
707         * nis/ypclnt.c (do_ypcall): Add one missing unlock.  Simplify the
708         code a bit.
710         * misc/daemon.c (daemon): Define errno in case /dev/null is not
711         the correct device.
713         * nis/ypclnt.c (yp_bind_file): Optimize a bit.  Minimal cleanups.
715 2004-09-23  Andreas Jaeger  <aj@suse.de>
717         * locale/weight.h (findidx): Remove static, it's not supported
718         anymore with GCC 4.0 in a block scope.
719         * locale/weightwc.h (findidx): Likewise.
720         * posix/regcomp.c (seek_collating_symbol_entry): Likewise.
721         (lookup_collation_sequence_value): Likewise.
722         (build_range_exp): Likewise.
723         (build_collating_symbol): Likewise.
724         * iconv/iconvconfig.c (write_output): Likewise.
725         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
727         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Remove
728         static, add always_inline attribute.
729         (elf_machine_rela): Likewise.
730         (elf_machine_lazy_rel): Likewise.
732         * elf/dynamic-link.h (elf_get_dynamic_info): Make static dependend
733         on !RESOLVE so that it's not defined in local scope.
735 2004-09-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
737         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL_NCS): Define.
739 2004-09-23  Thorsten Kukuk  <kukuk@suse.de>
741         * sysdeps/unix/sysv/linux/sys/mount.h: Sync MS_RMT_MASK flag
742         and BLK* ioctls with linux kernel headers.
744 2004-09-23  Ulrich Drepper  <drepper@redhat.com>
746         * sysdeps/generic/bits/dlfcn.h: Add RTLD_DEEPBIND.
747         * elf/dl-object.c (_dl_new_object): Add new parameter mode.  If mode
748         has RTLD_DEEPBIND set add local searchlist before global scope.
749         * sysdeps/generic/ldsodefs.h (_dl_new_object): Adjust prototype.
750         * elf/rtld.c: Adjust callers of _dl_new_object.
751         * elf/dl-load.c: Likewise.
752         (_dl_map_object_from_fd): If RTLD_DEEPBIND is used, don't do anything
753         for DF_SYMBOLIC.
754         * elf/dl-open.c (dl_open_writer): Pass RTLD_DEEPBIND flag on to
755         _dl_map_object_deps.
756         * elf/tst-deep1.c: New file.
757         * elf/tst-deep1mod1.c: New file.
758         * elf/tst-deep1mod2.c: New file.
759         * elf/tst-deep1mod3.c: New file.
760         * elf/Makefile: Add rules to build and run new tests.
762         * elf/dl-deps.c: Pretty printing.
764 2004-09-23  Jakub Jelinek  <jakub@redhat.com>
766         * sysdeps/unix/alpha/sysdep.h (inline_syscall[0-6]): Change name
767         argument to numbers from syscall names.
768         (INLINE_SYSCALL1): Pass __NR_##name to inline_syscall##nr.
769         (INTERNAL_SYSCALL_NCS): Renamed from...
770         (INTERNAL_SYSCALL_1): ... this.  Use INTERNAL_SYSCALL_NCS.
771         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
772         (INTERNAL_SYSCALL_NCS): Define.
773         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
774         (INTERNAL_SYSCALL_NCS): Likewise.
775         * sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall[0-6]):
776         Change name argument to numbers from syscall names.
777         (INLINE_SYSCALL, INTERNAL_SYSCALL): Adjust.
778         (INTERNAL_SYSCALL_NCS): Define.
780 2004-09-22  Ulrich Drepper  <drepper@redhat.com>
782         * malloc/malloc.c (malloc_printerr): Use syslog if writev failed.
784         * string/string.h: Add __nonnull annotations.
785         * stdlib/stdlib.h: Likewise.
787 2004-09-20  H.J. Lu  <hongjiu.lu@intel.com>
789         * sysdeps/unix/sysv/linux/ia64/sysdep.h (DO_INLINE_SYSCALL):
790         Renamed to ...
791         (DO_INLINE_SYSCALL_NCS): This.
792         (DO_INLINE_SYSCALL): New.
793         (INLINE_SYSCALL): Updated.
794         (INTERNAL_SYSCALL_NCS): Updated.
796 2004-09-21  Ulrich Drepper  <drepper@redhat.com>
798         * elf/sprof.c (load_shobj): Add support for reading symbol table
799         from debuginfo file.
801         * elf/ldd.bash.in: Fix syntax errors.
803 2004-09-20  Ulrich Drepper  <drepper@redhat.com>
805         * sysdeps/unix/sysv/linux/dl-execstack.c
806         (_dl_make_stack_executable): Remove some duplication.
808         * nscd/nscd.c (options): Mark S option as hidden.
809         (parse_opt): When S option is used, print warning message.
810         * nscd/grpcache.c (adgrptbyX): Don't handle secure mode.
811         * nscd/hstcache.c (addhstbyX): Don't handle secure mode.
812         * nscd/aicache.c (addhstaiX): Don't handle secure mode.
813         * nscd/pwdcache.c (addpwbyX): Don't handle secure mode.
815 2004-09-20  Roland McGrath  <roland@frob.com>
817         * elf/dl-load.c (__stack_prot): Only use PROT_GROWSUP/PROT_GROWSDOWN
818         in initializer #if defined.
820 2004-09-18  Paul Eggert  <eggert@cs.ucla.edu>
822         [BZ #391]
823         * stdlib/getsubopt.c: Merge fixes from gnulib.
824         (__strchrnul) [!_LIBC]: Define and include "strchrnul.c".
825         (getsubopt): Use prototypes, not K&R style.
826         Fix bug: memcmp(A,B,N) was being invoked on a memory block B
827         whose size might be smaller than N.  Use strncmp to avoid the bug.
829 2004-09-20  Ulrich Drepper  <drepper@redhat.com>
831         * configure.in: If selinux has not explictly been requested, don't
832         comment on it missing.
834         * elf/dl-load.c: Define __stack_prot.
835         * sysdeps/unix/sysv/linux/dl-execstack.c: Don't define
836         __stack_prot here, just declare it.
838 2004-09-20  Jakub Jelinek  <jakub@redhat.com>
840         * configure.in (libc_cv_z_relro): Only set to yes if linker script
841         contains DATA_SEGMENT_RELRO_END.
843 2004-09-20  Ulrich Drepper  <drepper@redhat.com>
845         * elf/dl-load.c (_dl_map_object_from_fd): Add some error checking.
846         Reorder code slightly.
847         * elf/rtld.c (dl_main): No need to check whether l_info[DT_HASH]
848         is non-null, _dl_setup_hash will do that.
850 2004-09-19  Ulrich Drepper  <drepper@redhat.com>
852         * sysdeps/unix/sysv/linux/setegid.c [HAVE_PTR__NPTL_SETXID]: Call
853         callback to set IDs in all other threads as well.
854         * sysdeps/unix/sysv/linux/seteuid.c: Likewise.
855         * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise.
856         * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise.
857         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
858         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
859         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
860         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
861         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
862         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
863         * sysdeps/unix/sysv/linux/setuid.c: New file.
864         * sysdeps/unix/sysv/linux/setgid.c: New file.
865         * sysdeps/unix/sysv/linux/setreuid.c: New file.
866         * sysdeps/unix/sysv/linux/setregid.c: New file.
867         * sysdeps/unix/sysv/linux/setresuid.c: New file.
868         * sysdeps/unix/sysv/linux/setresgid.c: New file.
869         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define INTERNAL_SYSCALL_NCS.
870         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
872         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
873         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
874         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: Use x86 version.
875         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: Likewise.
876         * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: New file.
877         * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: New file.
878         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Remove setresgid
879         and setresuid.
880         * nscd/aicache.c: Use pthread_seteuid_np instead of seteuid.
881         * nscd/grpcache.c: Likewise.
882         * nscd/hstcache.c: Likewise.
883         * nscd/pwdcache.c: Likewise.
885         * resolv/res_mkquery.c (res_nmkquery): Fix typo.
887 2004-09-18  Ulrich Drepper  <drepper@redhat.com>
889         * sysdeps/unisx/sysv/linux/dl-execstack.c: Get protection flag
890         from memory.
891         * elf/dl-load.c (_dl_map_object_from_fd): Add PROT_EXEC flag to
892         __stack_flags.
894         * sysdeps/posix/getaddrinfo.c (gaih_inet): Do not use
895         gethostbyname3_r if we are not looking for the canonical name.
897         * resolv/res_mkquery.c (res_nmkquery): Randomize request ID every
898         time.
900 2004-09-18  Roland McGrath  <roland@redhat.com>
902         * sysdeps/unix/sysv/linux/waitid.c (do_waitid): Pass fifth argument to
903         system call.
905 2004-09-17  Ulrich Drepper  <drepper@redhat.com>
907         * include/link.h (struct link_map): Add l_used element.
908         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_UNUSED.
909         * elf/rtld.c (process_dl_debug): Recognize unused.
910         (dl_main): When unused debug flag is set check for unused direct
911         dependencies.
912         When printing dependencies and SONAME starts with /, omit the SONAME =>
913         part.
914         * elf/dl-lookup.c (_dl_lookup_symbol_x): Mark object in which the
915         symbol has been found as used.
916         * elf/ldd.bash.in: Add -u option.
918 2004-09-18  Jakub Jelinek  <jakub@redhat.com>
920         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
921         Do nothing if __NR_set_tid_address is not defined.  [BZ #390]
923 2004-09-17  Ulrich Drepper  <drepper@redhat.com>
925         * sysdeps/posix/getaddrinfo.c: Use gethostbyname3_r NSS function
926         in case it is available.
928 2004-09-17  Jakub Jelinek  <jakub@redhat.com>
930         * nscd/nscd.c (parse_opt): Write arg string instead of (void *)
931         key to the socket.
933 2004-09-17  Ulrich Drepper  <drepper@redhat.com>
935         * misc/sys/cdefs.h: Define __nonnull using nonnull function attribute
936         for gcc 3.3 and higher.
937         * io/fcntl.h: Add __nonnull where appropriate.
938         * io/ftw.h: Likewise.
939         * io/utime.h: Likewise.
940         * io/sys/poll.h: Likewise.
941         * io/sys/sendfile.h: Likewise.
942         * io/sys/stat.h: Likewise.
943         * io/sys/statfs.h: Likewise.
944         * io/sys/statvfs.h: Likewise.
945         * posix/unistd.h: Likewise.
946         * catgets/nl_types.h: Likewise.
947         * crypt/crypt.h: Likewise.
948         * debug/execinfo.h: Likewise.
950 2004-09-16  Ulrich Drepper  <drepper@redhat.com>
952         * posix/glob.h: Remove cruft to make header usable outside glibc.
953         The maintenance headache is too big.
955         * configure.in: Add test for required SELinux features.
956         * config.make.in: Add have-selinux entry.
957         * config.h.in: Add HAVE_SELINUX entry.
958         * nscd/Makefile (nscd-modules): Add selinux.
959         (CFLAGS-selinux.c): Add -fpie.
960         Define selinux-LIBS and use in link line.
961         * nscd/connections.c (handle_request): Check access SELinux permissions
962         before processing request.
963         * nscd/nscd.c (main): Initialize selinux_enabled and stop avc thread.
964         * nscd/nscd_stat.c: Transmit and print AVC statistics.
965         * nscd/selinux.c: New file.
966         * nscd/selinux.h: New file.
967         Patch mostly by Matthew Rickard <mjricka@epoch.ncsc.mil>.
969 2004-09-16  Jakub Jelinek  <jakub@redhat.com>
971         * nscd/nscd_helper.c (__nscd_unmap, get_mapping): Use __munmap
972         instead of munmap.
974         * nscd/Makefile (CFLAGS-aicache.c): Set to -fpie.
976 2004-09-16  Thorsten Kukuk  <kukuk@suse.de>
978         * sysdeps/posix/getaddrinfo.c (gaih_inet): Check
979         __nss_not_use_nscd_hosts variable if nscd should be used or not.
981 2004-09-16  Ulrich Drepper  <drepper@redhat.com>
983         * nscd/nscd_proto.h: Define NSS_NSCD_RETRY.
984         Add __nscd_getai prototype.
985         * nss/getXXbyYY_r.c: Remode definition of NSS_NSCD_RETRY.
986         * nscd/nscd-client.h: Remove __nscd_getai prototype.
987         * nscd/nscd_getai.c: Include nscd_proto.h.
989         * elf/ldd.bash.in: Add support for SELinux environments.
990         Patch by Stephen Smalley <sds@epoch.ncsc.mil>.
992 2004-09-16  Roland McGrath  <roland@redhat.com>
994         * configure.in (--with-headers): Let argument contain a : separated
995         list of directories to use, not just one.
996         * configure: Regenerated.
998 2004-09-15  Richard Henderson  <rth@redhat.com>
1000         * sysdeps/alpha/fpu/libm-test-ulps: Update.
1001         * scripts/data/c++-types-alpha-linux-gnu.data: New file.
1003 2004-09-15  Ulrich Drepper  <drepper@redhat.com>
1005         * nscd/aicache.c: Prefer using gethostbyname3_r NSS callback to also
1006         get ttl and canonical name.  Use these two values.
1007         * resolv/Versions: Export _nss_dns_gethostbyname3_r from libnss_dns.
1008         * resolv/nss_dns/dns-host.c (getanswer_r): Take two new parameters.
1009         If nonnull fill with TTL and pointer to canonical name respectively.
1010         (_nss_dns_gethostbyaddr_r): Pass NULL in new parameters of getanswer_r.
1011         (_nss_dns_gethostbyname2_r): Just wrapper around
1012         _nss_dns_gethostbyname3_r.
1013         (_nss_dns_gethostbyname3_r): Renamed from _nss_dns_gethostbyname2_r.
1014         Take two new parameters which as passed to getanswer_r.
1016         * nscd/Makefile (rountines): Add nscd_getai.
1017         (nscd-modules): Add aicache.
1018         * nscd/aicache.c: New file.
1019         * nscd/nscd_getai.c: New file.
1020         * nscd/cache.c (prune_cache): Handle GETAI request type.
1021         * nscd/connections.c: Add GETAI support in request handling.
1022         * nscd/nscd-client.h (request_type): Add GETAI.
1023         Define ai_response_header and struct nscd_ai_result types.
1024         (struct datahead): Add aidata field.
1025         Declare __nscd_getai.
1026         * nscd/nscd.c: Add getaddrinfo definition to catch problems.
1027         * nscd/nscd.h: Declare addhstai and readdhstai.
1029         * sysdeps/posix/getaddrinfo.c: Add support for using cached results.
1030         * posix/Makefile (CFLAGS-getaddrinfo.c): Add -DUSE_NSCD.
1032         * nscd/nscd-client.h  (struct datahead): Use uint8_t instead of bool.
1034 2004-09-14  Ulrich Drepper  <drepper@redhat.com>
1036         * misc/sys/cdefs.h: Remove debugging text from __P and __PMT.
1038 2004-09-13  Ulrich Drepper  <drepper@redhat.com>
1040         * misc/sys/cdefs.h: Restore old definition of __P.
1041         * csu/munch.awk: Remove uses of __P and __PMT.
1042         * gmon/gmon.c: Likewise.
1043         * hesiod/hesiod.h: Likewise.
1044         * include/stdio.h: Likewise.
1045         * io/fts.c: Likewise.
1046         * libio/genops.c: Likewise.
1047         * libio/libioP.h: Likewise.
1048         * libio/fileops.c: Likewise.
1049         * libio/iolibio.h: Likewise.
1050         * libio/libio.h: Likewise.
1051         * libio/memstream.c: Likewise.
1052         * libio/oldfileops.c: Likewise.
1053         * libio/oldstdfiles.c: Likewise.
1054         * libio/iopopen.c: Likewise.
1055         * libio/vsnprintf.c: Likewise.
1056         * libio/vswprintf.c: Likewise.
1057         * libio/wgenops.c: Likewise.
1058         * libio/oldiopopen.c: Likewise.
1059         * locale/programs/xmalloc.c: Likewise.
1060         * locale/programs/xstrdup.c: Likewise.
1061         * malloc/mtrace.c: Likewise.
1062         * misc/getttyent.c: Likewise.
1063         * misc/getusershell.c: Likewise.
1064         * nis/rpcsvc/ypupd.h: Likewise.
1065         * posix/fnmatch.h: Likewise.
1066         * posix/glob.h: Likewise.
1067         * resolv/arpa/nameser.h: Likewise.
1068         * resolv/gethnamaddr.c: Likewise.
1069         * resolv/resolv.h: Likewise.
1070         * resolv/inet_net_ntop.c: Likewise.
1071         * resolv/inet_net_pton.c: Likewise.
1072         * resolv/res_init.c: Likewise.
1073         * resolv/nss_dns/dns-network.c: Likewise.
1074         * stdio-common/vfprintf.c: Likewise.
1075         * stdio-common/reg-printf.c: Likewise.
1076         * sysdeps/generic/chflags.c: Likewise.
1077         * sysdeps/generic/fchflags.c: Likewise.
1078         * sysdeps/generic/glob.c: Likewise.
1079         * sysdeps/generic/printf_fphex.c: Likewise.
1080         * sysdeps/generic/memcmp.c: Likewise.
1081         * sysdeps/generic/memcopy.h: Likewise.
1082         * sysdeps/generic/morecore.c: Likewise.
1083         * sysdeps/generic/sstk.c: Likewise.
1084         * sysdeps/posix/sigvec.c: Likewise.
1085         * sysdeps/posix/ttyname_r.c: Likewise.
1086         * sysdeps/standalone/arm/bits/errno.h: Likewise.
1087         * sysdeps/standalone/standalone.h: Likewise.
1088         * sysdeps/standalone/i386/force_cpu386/brdinit.c: Likewise.
1089         * sysdeps/standalone/i386/force_cpu386/_exit.c: Likewise.
1090         * sysdeps/unix/arm/start.c: Likewise.
1091         * sysdeps/unix/bsd/sigaction.c: Likewise.
1092         * sysdeps/unix/bsd/sun/m68k/sigtramp.c: Likewise.
1093         * sysdeps/unix/bsd/sun/sparc/sigtramp.c: Likewise.
1094         * sysdeps/unix/bsd/sun/sunos4/wait4.c: Likewise.
1095         * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: Likewise.
1096         * sysdeps/unix/bsd/ultrix4/sysconf.c: Likewise.
1097         * sysdeps/unix/sparc/start.c: Likewise.
1098         * sysdeps/unix/sysv/getdents.c: Likewise.
1099         * sysdeps/unix/sysv/irix4/fpathconf.c: Likewise.
1100         * sysdeps/unix/sysv/irix4/getgroups.c: Likewise.
1101         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
1102         * sysdeps/unix/sysv/irix4/getrusage.c: Likewise.
1103         * sysdeps/unix/sysv/irix4/pathconf.c: Likewise.
1104         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
1105         * sysdeps/unix/sysv/irix4/sigtramp.c: Likewise.
1106         * sysdeps/unix/sysv/irix4/start.c: Likewise.
1107         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
1108         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c: Likewise.
1109         * sysdeps/unix/sysv/sco3.2.4/getgroups.c: Likewise.
1110         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
1111         * sysdeps/unix/sysv/sysv4/__setpgid.c: Likewise.
1112         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
1113         * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
1114         * sysdeps/unix/sysv/sysv4/sethostname.c: Likewise.
1115         * sysdeps/unix/sysv/sysv4/setsid.c: Likewise.
1116         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
1117         * sysdeps/unix/sysv/sysv4/waitpid.c: Likewise.
1118         * sysdeps/unix/sysv/sysv4/solaris2/getdents.c: Likewise.
1119         * time/tzset.c: Likewise.
1120         * time/strftime_l.c: Likewise.
1121         * time/strptime_l.c: Likewise.
1122         * crypt/md5.h: Likewise.
1124 2004-09-13  Andreas Jaeger  <aj@suse.de>
1126         * configure.in: Support GCC 4.x.
1127         * configure: Regenerated.
1129 2004-09-13  Thorsten Kukuk  <kukuk@suse.de>
1131         * nscd/nscd_stat.c: Don't access dbs[cnt].head for disabled services.
1133         * nscd/nscd.init: Fix path to socket.
1135 2004-09-12  Ulrich Drepper  <drepper@redhat.com>
1137         * nscd/nscd_helper.c (get_mapping): Correctly check cmsg length.
1138         Avoid file descriptor leak in case of size mismatch.
1140         * nscd/nscd-client.h: Fix database structure layout for biarch.
1141         * nscd/mem.c (gc): Add casts to avoid warnings.
1143         * nss/getent.c: Don't preconstruct help message.  Do it only when
1144         needed.
1146         * locale/programs/locale.c: Simplify help message printing.
1148 2004-09-12  Roland McGrath  <roland@frob.com>
1150         * sysdeps/mach/hurd/i386/init-first.c (init1) [! SHARED]: Add decls
1151         missing in last change.
1153 2004-09-11  Thorsten Kukuk  <kukuk@suse.de>
1155         * nis/nss_compat/compat-grp.c: Check that buflen is greater zero
1156         before writing data into the buffer with negative offset.
1157         * nis/nss_compat/compat-initgroups.c: Likewise.
1158         * nis/nss_compat/compat-pwd.c: Likewise.
1159         * nis/nss_compat/compat-spwd.c Likewise.
1161 2004-09-12  Ulrich Drepper  <drepper@redhat.com>
1163         * misc/syslog.c (vsyslog): Fix copying of PID in case of
1164         out-of-memory situation.  [BZ #365].
1166         * sysdeps/alpha/fpu/bits/mathinline.h: Use __NTH instead of
1167         __THROW in inline function definitions.
1169         * posix/spawn.h [__USE_GNU]: Define POSIX_SPAWN_USEVFORK.
1170         * posix/spawnattr_setflags.c: Check whether any unknown bit is set
1171         in FLAGS parameter and fail if this is the case.
1172         * sysdeps/posix/spawni.c: Use vfork if POSIX_SPAWN_USEVFORK flag is
1173         set.
1175         * nscd/pwdcache.c (cache_addpw): Sync also negative results to disk.
1176         * nscd/grpcache.c (cache_addgr): Likewise.
1177         * nscd/hstcache.c (cache_addhst): Likewise.
1179 2004-09-11  Roland McGrath  <roland@frob.com>
1181         * sysdeps/mach/hurd/i386/init-first.c (init1) [! SHARED]:
1182         Set _dl_phdr and _dl_phnum.
1183         (init1): When bootstrap task, bail early and never examine *D.
1185 2004-09-11  Alfred M. Szmidt  <ams@kemisten.nu>
1187         * sysdeps/mach/hurd/i386/tls.h (__i386_set_gdt) [!HAVE_I386_SET_GDT]:
1188         Cast THR, SEL and DESC to `void'.
1190 2004-09-11  Ulrich Drepper  <drepper@redhat.com>
1192         * nscd/connections.c (nscd_run): Call setup_thread only for enabled
1193         databases.
1195         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Use __NTH for __cmsg_nxthdr.
1197 2004-09-10  Ulrich Drepper  <drepper@redhat.com>
1199         * nscd/nscd.c (pagesize_m1): New variable.
1200         (main): Initialize it.
1201         * nscd/nscd.h: Declare pagesize_m1.
1202         * nscd/hstcache.c: Pass correctly aligned address to msync.
1203         * nscd/grpcache.c: Likewise.
1204         * nscd/pwdcache.c: Likewise.
1206 2004-09-10  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1208         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Decrement
1209         __nwaiters.  If pthread_cond_destroy has been called and this is
1210         the last waiter, signal pthread_cond_destroy caller and avoid
1211         using the pthread_cond_t structure after unlock.
1212         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
1214 2004-09-10  Ulrich Drepper  <drepper@redhat.com>
1216         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
1217         __ASSUME_CLONE_STOPPED.
1219 2004-09-10  Jakub Jelinek  <jakub@redhat.com>
1221         * misc/sys/cdefs.h (__REDIRECT_NTH): Change order of __THROW and
1222         __asm__ for C++.  [BZ #377]
1224 2004-09-10  Ulrich Drepper  <drepper@redhat.com>
1226         * nscd/nscd_stat.c: Improve output by also printing .shared and
1227         .persistent.
1229         * nscd/connections.c: Allow cache sharing to be really disabled.
1231 2004-09-10  Jakub Jelinek  <jakub@redhat.com>
1233         * malloc/malloc.c (_int_free): Only do arena boundary check for
1234         contiguous arenas.
1236 2004-09-10  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
1238         * stdlib/longlong.h [__M32R__] (add_ssaaaa, sub_ddmmss): Fix broken
1239         instruct operands.
1240         * elf/elf.h: Add R_M32R_* relocs.
1242 2004-09-09  Ulrich Drepper  <drepper@redhat.com>
1244         * misc/sys/cdefs.h: Despite what the gcc manual says, gcc 3.2
1245         seems not to support the nothrow attribute.  Use it only for gcc
1246         3.3 and higher.
1248         * malloc/hooks.c (top_check): Print top chunk corruption as normal
1249         error message.
1251         * malloc/malloc.c (malloc_printerr): Don't make informational
1252         message look like error message.
1254 2004-09-09  Andreas Jaeger  <aj@suse.de>
1256         * nscd/Makefile (CFLAGS-nscd_setup_thread.c): Set to -fpie.
1258 2004-09-08  Ulrich Drepper  <drepper@redhat.com>
1260         * sysdeps/unix/sysv/linux/bits/socket.h (__SCM_CONNECT): Removed.
1262         * malloc/malloc.c (_int_free): Add inexpensive double free and
1263         memory corruption tests.
1264         (malloc_printf_nc): Renamed to malloc_printerr.  Second parameter
1265         is no format string anymore.  Don't use stdio.  Adjust all callers.
1266         * malloc/hooks.c: Adjust malloc_printf_nc callers.
1268 2004-09-08  Roland McGrath  <roland@redhat.com>
1270         * malloc/mcheck.c: Don't use __P.
1271         Use prototypes definitions for static functions.
1273 2004-09-08  Ulrich Drepper  <drepper@redhat.com>
1275         * sysdeps/ia64/fpu/bits/mathinline.h: Use __NTH instead of __THROW.
1277 2004-09-08  Ulrich Drepper  <drepper@redhat.com>
1278             Jakub Jelinek  <jakub@redhat.com>
1280         * nscd/nscd-client.h: Add a few #includes.
1282         * nscd/Makefile (nscd-modules): Add nscd_setup_thread.
1283         * nscd/connections.c (nscd_run): Call setup_thread for maintenance
1284         threads.
1285         * nscd/nscd-client.h (struct database_pers_head): Add
1286         nscd_certainly_running field.
1287         * nscd/nscd.h: Declare setup_thread.
1288         * nscd/nscd_helper.c (__nscd_get_map_ref): Avoid the time test if
1289         nscd_certainly_running is nonzero.
1290         * sysdeps/generic/nscd_setup_thread.c: New file.
1291         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: New file.
1293 2004-09-08  Ulrich Drepper  <drepper@redhat.com>
1295         * nscd/connections.c: Implement r/o sharing of nscd's cache with client
1296         processes via shared memory.
1297         * nscd/nscd-client.h: Likewise.
1298         * nscd/nscd.h: Likewise.
1299         * nscd/nscd_conf.c: Likewise.
1300         * nscd/nscd_getgr_r.c: Likewise.
1301         * nscd/nscd_getpw_r.c: Likewise.
1302         * nscd/nscd_gethst_r.c: Likewise.
1303         * nscd/nscd.conf: Add new config parameters.
1304         * nscd/Makefile (aux): Add nscd_helper.
1305         * nscd/nscd_helper.c: New file.
1306         * nscd/mem.c (gc): Indicate beginning and end of the gc cycle.
1308         * nscd/hstcache.c: Simplify a lot.  We cache only the request itself,
1309         no derived information.
1310         * connections.c (nscd_init): Fix bug in testing size of the persistent.
1312         * nis/Makefile (aux): Add nis_hash.
1313         * nis/nis_hash.c: New file.  Split out from nis_util.c.
1314         * nis/nis_util.c: Move __nis_hash code in separate file.
1316         * csu/tst-atomic.c: Improve atomic_increment_val test which would
1317         not have found a ppc bug.
1319         * sysdeps/s390/fpu/bits/mathinline.h: Remove unnecessary includes.
1321         * malloc/arena.c: Remove __MALLOC_P uses.
1322         * malloc/malloc.c: Likewise.
1324         * malloc/mtrace.c: Remove __P uses.
1325         * malloc/mcheck-init.c: Likewise.
1327 2004-09-07  Jakub Jelinek  <jakub@redhat.com>
1329         * sysdeps/powerpc/powerpc64/configure.in: New file.
1330         * config.h.in (USE_PPC64_OVERLAPPING_OPD): Add.
1331         * configure.in (HAVE_ASM_GLOBAL_DOT_NAME): Remove.
1332         * sysdeps/powerpc/powerpc64/sysdep.h: Formatting.
1333         (OPD_ENT, BODY_LABEL, ENTRY_1, ENTRY_2, END_2, DOT_PREFIX,
1334         BODY_PREFIX): Define.
1335         (ENTRY, DOT_LABEL, END, TRACEBACK, END_GEN_TB, EALIGN): Support
1336         HAVE_ASM_GLOBAL_DOT_NAME or no dot symbols,
1337         USE_PPC64_OVERLAPPING_OPD or never overlapping .opd entries.
1338         * sysdeps/powerpc/powerpc64/dl-machine.h: Include sysdep.h.
1339         (TRAMPOLINE_TEMPLATE, RTLD_START): Use the new sysdep.h macros.
1341 2004-09-07  Ulrich Drepper  <drepper@redhat.com>
1343         * malloc/malloc.h: Don't define __THROW if it is already defined.
1345         * sysdeps/powerpc/bits/atomic.h (atomic_increment): Define.
1346         (atomic_decrement): Define.
1348         * sysdeps/powerpc/bits/atomic.h: Implement atomic_increment_val and
1349         atomic_decrement_val.
1350         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
1351         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
1353         * csu/tst-atomic.c (do_test): Add tests of atomic_increment_val
1354         and atomic_decrement_val.
1356         * include/atomic.h: Define atomic_increment_val, atomic_decrement_val,
1357         and atomic_delay is not already defined.
1358         * sysdeps/i386/i486/bits/atomic.h: Define atomic_delay.
1359         * sysdeps/x86_64/bits/atomic.h: Likewise.
1361         * miscd/sys/cdefs.h (__NTH): New macro.
1362         (__THROW): Define using nothrow attribute for C code and gcc >= 3.2.
1363         (__REDIRECT_NTH): New macro.
1364         * argp/argp.h: Use __NTH and __REDIRECT_NTH where necessary.
1365         * ctype/ctype.h: Likewise.
1366         * dirent/dirent.h: Likewise.
1367         * io/fcntl.h: Likewise.
1368         * io/sys/sendfile.h: Likewise.
1369         * io/sys/stat.h: Likewise.
1370         * io/sys/statfs.h: Likewise.
1371         * io/sys/statvfs.h: Likewise.
1372         * libio/bits/stdio.h: Likewise.
1373         * misc/sys/mman.h: Likewise.
1374         * posix/unistd.h: Likewise.
1375         * resource/sys/resource.h: Likewise.
1376         * rt/aio.h: Likewise.
1377         * signal/signal.h: Likewise.
1378         * stdlib/stdlib.h: Likewise.
1379         * string/argz.h: Likewise.
1380         * string/string.h: Likewise.
1381         * sysdeps/generic/inttypes.h: Likewise.
1382         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
1383         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
1384         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
1385         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
1386         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
1387         * sysdeps/unix/sysv/linux/bits/sys/sysmacros.h: Likewise.
1388         * wcsmbs/wchar.h: Likewise.
1390         * sysdeps/generic/glob.c: Use __PMT isntead of __P where appropriate.
1392         * resolv/gethnamaddr.c (getanswer): Remove __P use in variable
1393         definition.
1395         * io/sys/poll.h: Remove __THROW from poll prototype, it's a
1396         cancellation point.
1398         * io/fts.c (fts_open): Remove uses of __P.
1400         * include/stdlib.h: No need to use __THROW in this header.
1402 2004-09-06  Roland McGrath  <roland@frob.com>
1404         * sysdeps/mach/hurd/dl-sysdep.c (__writev): Does use assert on FD
1405         validity, since __assert_fail gets to here anyway.  Just fail.
1407 2004-09-06  Ulrich Drepper  <drepper@redhat.com>
1409         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix problem with
1410         AF_UNSPEC lookup with AI_CANONNAME of name which has only IPv6
1411         addresses.
1413 2004-09-05  Richard Henderson  <rth@redhat.com>
1415         * sysdeps/alpha/fpu/fraiseexcpt.c: Remove file.
1416         * sysdeps/unix/sysv/linux/kernel-features.h
1417         (__ASSUME_IEEE_RAISE_EXCEPTION): New.
1418         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.c: New file.
1419         * sysdeps/unix/sysv/linux/alpha/kernel_sysinfo.h: New file.
1420         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use it.
1421         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
1423 2004-09-05  Richard Henderson  <rth@redhat.com>
1425         * sysdeps/alpha/div.S: Save and restore FPCR around fp operations.
1426         * sysdeps/alpha/divl.S, sysdeps/alpha/divq.S, sysdeps/alpha/divqu.S,
1427         sysdeps/alpha/ldiv.S, sysdeps/alpha/reml.S, sysdeps/alpha/remq.S,
1428         sysdeps/alpha/remqu.S: Likewise.
1429         * sysdeps/alpha/div_libc.h (FRAME): Increase to 64.
1431 2004-09-05  Ulrich Drepper  <drepper@redhat.com>
1433         * nscd/cache.c (cache_add): Correctly log GETHOSTBYADDR and
1434         GETHOSTBYADDRv6 requests.
1436 2004-09-04  Ulrich Drepper  <drepper@redhat.com>
1438         * nscd/pwdcache.c (cache_addpw): Use correct key length in
1439         cache_add calls.
1440         * nscd/grpcache.c (cache_addgr): Likewise.
1442 2004-09-03  Alfred M. Szmidt  <ams@kemisten.nu>
1444         * sysdeps/mach/hurd/i386/tls.h (THREAD_DTV): Changed type of _DTV
1445         to `dtv_t *'.
1447 2004-09-03  Ulrich Drepper  <drepper@redhat.com>
1449         * nscd/nscd.c (parse_opt): Use writev instead of two write for
1450         invalidate command.
1452 2004-09-02  Ulrich Drepper  <drepper@redhat.com>
1454         * nscd/connections.c (nscd_run): Check early for invalid request types.
1456 2004-09-02  Roland McGrath  <roland@frob.com>
1458         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): New macro.
1459         (INSTALL_NEW_DTV, THREAD_DTV): Rewritten to fetch the right word.
1460         (THREAD_SELF): New macro.
1462 2004-09-02  Steven Munroe  <sjmunroe@us.ibm.com>
1464         [BZ #357]
1465         * stdlib/tst-setcontext.c (test_stack): Added test for stack clobber.
1466         (main): Call test_stack.
1467         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1468         (__getcontext): Push stack frame then save parms in local frame.
1469         Improve instruction scheduling.
1470         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1471         (__swapcontext): Likewise.
1473 2004-09-01  Andreas Schwab  <schwab@suse.de>
1475         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h [g++ >= 3.5]: Use
1476         __builtin_offsetof.
1478 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
1480         [BZ #361]
1481         * posix/fnmatch_loop.c (FCT): For backslash between brackets, branch
1482         to normal_bracket after fetching the next character.
1483         * posix/tst-fnmatch.input: Add 25 new tests.
1484         Reported by Markus Oberhumer <markus@oberhumer.com>.
1486 2004-09-01  Ulrich Drepper  <drepper@redhat.com>
1488         * elf/rtld.c (dl_main): First check existence of ld.so.preload
1489         with access.
1491 2004-09-01  Roland McGrath  <roland@redhat.com>
1493         * sysdeps/unix/sysv/linux/bits/waitflags.h
1494         (WSTOPPED, WEXITED, WCONTINUED, WNOWAIT): New macros.
1495         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_WAITID_SYSCALL):
1496         New macro.
1497         * sysdeps/unix/sysv/linux/waitid.c: New file.  Use new syscall when
1498         available, or fall back to the waitpid-based generic code.
1500 2004-08-14  Alfred M. Szmidt  <ams@kemisten.nu>
1502         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Let gcc
1503         clobber the `ebp' register.
1504         * sysdeps/mach/hurd/i386/Makefile (CFLAGS-init-first.c): Removed.
1505         Reverts change from 2004-05-07 by Jeroen Dekkers.
1507         * sysdeps/mach/hurd/i386/init-first.c (init): Changed the type of
1508         NEWSP from `void *' to `int *'.  Changed all casts accordingly.
1510 2004-08-31  Jakub Jelinek  <jakub@redhat.com>
1512         * wcsmbs/wcsmbsload.c (__wcsmbs_getfct): Move attribute_hidden
1513         before return type.
1514         * locale/localename.c (__current_locale_name): Likewise.
1516 2004-08-30  Roland McGrath  <roland@frob.com>
1518         * scripts/extract-abilist.awk: If `lastversion' variable defined, omit
1519         later sets from output.
1520         * Makerules (check-abi): Pass option to set that with value of
1521         LIB-abi-frozen variable if one is set.
1523         * abilist/libcidn.abilist: New file (empty).
1525 2004-08-30  Jakub Jelinek  <jakub@redhat.com>
1527         * posix/bits/posix1_lim.h (_POSIX_CHILD_MAX, _POSIX_OPEN_MAX): If
1528         not __USE_XOPEN2K, use the Unix98 mandated values.
1530 2004-08-27  Roland McGrath  <roland@redhat.com>
1532         * configure.in (usetls): Default to yes.
1533         * configure: Regenerated.
1535 2004-08-26  Roland McGrath  <roland@redhat.com>
1537         * configure.in (add_ons_automatic): New variable, set to yes or no
1538         indicating --enable-add-ons with no explicit list.
1539         (running add-on fragments): Allow a fragment to modify $libc_add_on
1540         and have that affect its place in the list of add-ons to use.
1541         * configure: Regenerated.
1543 2004-08-26  Ulrich Drepper  <drepper@redhat.com>
1545         * nscd/cache.c: Major rewrite.  The data is now optionally kept in
1546         a mmaped memory region which is automatically mirrored on disk.
1547         This implements persistent data storage.  The Memory handled
1548         needed to be completely revamped, it now uses a garbage collection
1549         mechanism instead of malloc.
1550         * nscd/connections.c: Likewise.
1551         * nscd/nscd.c: Likewise.
1552         * nscd/nscd.h: Likewise.
1553         * nscd/nscd_conf.c: Likewise.
1554         * nscd/nscd_stat.c: Likewise.
1555         * nscd/grpcache.c: Likewise.
1556         * nscd/hstcache.c:: Likewise.
1557         * nscd/pwdcache.c:: Likewise.
1558         * nscd/Makefile: Add rules to build mem.c.
1559         * nscd/mem.c: New file.
1560         * nscd/nscd.conf: Describe new configuration options.
1562 2004-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1564         * sysdeps/unix/sysv/linux/mips/pread.c: Include sgidefs.h only if
1565         NO_SGIDEFS_H isn't defined.
1566         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1567         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1569         * sysdeps/unix/sysv/linux/sh/pread.c: Define NO_SGIDEFS_H and
1570         _MIPS_SIM.
1571         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
1572         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
1573         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
1575 2004-08-26  Ulrich Drepper  <drepper@redhat.com>
1577         * nscd/connections.c (nscd_run): atomic_increment was not missing.
1579         * sysdeps/gnu/Makefile (libdl-sysdep_routines): Don't add eval.
1580         Patch by Greg Schafer.
1582 2004-08-25  Richard Henderson  <rth@redhat.com>
1584         * sysdeps/alpha/elf/start.S (_start): Use $15 as frame unwind
1585         instead of $31.  Zero $15.
1586         * sysdeps/unix/sysv/linux/alpha/clone.S (thread_start): Likewise.
1588 2004-08-25  Ulrich Drepper  <drepper@redhat.com>
1590         * sysdeps/powerpc/powerpc64/bits/atomic.h
1591         (__arch_compare_and_exchange_bool_32_acq): Fix case where oldval
1592         is negative.
1593         (__arch_compare_and_exchange_bool_32_rel): Likewise.
1595         * nscd/connections.c: Make socket nonblocking so that threads
1596         don't get stuck on accept.  Fix locking.
1598         * nscd/grpcache.c (cache_addgr): Use copy of original key in hash
1599         entry with alternative key.
1600         * nscd/pwdcache.c (cache_addpw): Likewise.
1602 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
1604         * sysdeps/mips/dl-machine.h (_dl_start_user): Don't set
1605         __libc_stack_end.
1607 2004-08-23  Ulrich Drepper  <drepper@redhat.com>
1609         * sysdeps/gnu/netinet/udp.h: Cosmetic changes.  Remove unnecessary
1610         __BEGIN_DECLS/__END_DECLS.
1612 2004-08-23  Andreas Jaeger  <aj@suse.de>
1614         [BZ #341]
1615         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_NOATIME): Define.
1616         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (O_NOATIME): Likewise.
1617         * sysdeps/unix/sysv/linux/cris/bits/fcntl.h (O_NOATIME): Likewise.
1618         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (O_NOATIME): Likewise.
1619         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (O_NOATIME): Likewise.
1620         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_NOATIME): Likewise.
1621         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (O_NOATIME): Likewise.
1622         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_NOATIME): Likewise.
1623         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_NOATIME): Likewise.
1624         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_NOATIME): Likewise.
1625         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (O_NOATIME): Likewise.
1626         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_NOATIME): Likewise.
1627         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (O_NOATIME): Likewise.
1629 2004-08-21  Ulrich Drepper  <drepper@redhat.com>
1631         * malloc/hooks.c (DEFAULT_CHECK_ACTION): Moved to malloc.c.
1632         (check_action): Likewise.
1633         When printing error messages, use malloc_printf_nc now instead of
1634         fiddling with the streams cancellation flag in every place.
1635         * malloc/malloc.c (DEFAULT_CHECK_ACTION): New definition.  Change
1636         default to 3.
1637         (check_action): New variable.
1638         (unlink): Print error message and eventually terminate in case list
1639         is corrupted.
1640         (malloc_printf_nc): New function.  Use it in _int_free.
1641         Change proposed by Arjan van de Ven.
1643         * dlfcn/Makefile: Don't build eval.c anymore.
1645 2004-08-20  Roland McGrath  <roland@frob.com>
1647         * csu/Makefile ($(objpfx)version-info.h): Use printf in place
1648         of echo -e for POSIX.2 portability.
1649         Reported by Paul Jarc <prj@po.cwru.edu>.
1651 2004-08-19  Ulrich Drepper  <drepper@redhat.com>
1653         * sysdeps/posix/getaddrinfo.c (gaih_inet): Minor optimizations in
1654         list generation.
1656         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use
1657         getcanonname_r function if AI_CANONNAME flag is not set in
1658         request.
1660         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss):
1661         Initialize mysize with limits only if latter is >= 0.  Use mysize
1662         in malloc call.
1664 2004-08-19  Jakub Jelinek  <jakub@redhat.com>
1666         * sysdeps/posix/getaddrinfo.c (gaih_inet): Cast canon to (char *)
1667         to avoid warning.
1669         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Initialize
1670         status to NSS_STATUS_UNAVAIL.
1672 2004-08-19  Ulrich Drepper  <drepper@redhat.com>
1674         * sysdeps/posix/getaddrinfo.c (gaih_inet): Use h->h_name in the
1675         cannoname lookup since it has the FQDN even if the original NAME
1676         value has not.
1678 2004-08-18  Ulrich Drepper  <drepper@redhat.com>
1680         * sysdeps/posix/getaddrinfo.c (gaih_inet): Store NAME parameter
1681         pointer in new variable ORIG_NAME and use this pointer when
1682         determination of canonical name failed, not the possibly IDN
1683         translated value of NAME.
1685 2004-08-17  Ulrich Drepper  <drepper@redhat.com>
1687         * resolv/resolv.h (RES_DEFAULT): Add RES_NOIP6DOTINT.
1688         * resolv/res_init.c (res_setoptions): Recognize ip6-dotint option.
1689         Reset RES_NOIP6DOTINT flag in this case..
1691         * sysdeps/posix/getaddrinfo.c: Fix memory handling of
1692         ai_canonname.
1694 2004-08-16  Ulrich Drepper  <drepper@redhat.com>
1696         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Don't use
1697         CNAME records, we better follow the chain of CNAME records which
1698         can be accomplished with A/AAAA lookups.
1700 2004-08-15  Roland McGrath  <roland@redhat.com>
1702         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who):
1703         Remove __RUSAGE_BOTH constant and RUSAGE_BOTH macro.
1704         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1705         * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
1706         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1708 2004-08-15  Roland McGrath  <roland@frob.com>
1710         * sysdeps/i386/i686/Makefile (elide-routines.os): Append hp-timing to
1711         this, not ...
1712         (static-only-routines): ... this.
1713         * sysdeps/ia64/Makefile: Likewise.
1714         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
1715         * sysdeps/sparc/sparc64/Makefile: Likewise.
1716         * sysdeps/x86_64/Makefile: Likewise.
1717         * sysdeps/i386/i686/hp-timing.c: Revert copyright terms change.
1718         * sysdeps/ia64/hp-timing.c: Likewise.
1719         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
1720         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
1722         * csu/elf-init.c: Update copyright terms including special exception
1723         for these trivial files, which are statically linked into executables
1724         that use dynamic linking for the significant library code.
1725         * io/fstat.c: Likewise.
1726         * io/fstat64.c: Likewise.
1727         * io/lstat.c: Likewise.
1728         * io/lstat64.c: Likewise.
1729         * io/stat.c: Likewise.
1730         * io/stat64.c: Likewise.
1731         * stdlib/atexit.c: Likewise.
1732         * sysdeps/alpha/elf/initfini.c: Likewise.
1733         * sysdeps/alpha/elf/start.S: Likewise.
1734         * sysdeps/arm/elf/start.S: Likewise.
1735         * sysdeps/cris/elf/start.S: Likewise.
1736         * sysdeps/generic/initfini.c: Likewise.
1737         * sysdeps/generic/mknod.c: Likewise.
1738         * sysdeps/hppa/elf/initfini.c: Likewise.
1739         * sysdeps/hppa/elf/start.S: Likewise.
1740         * sysdeps/i386/elf/start.S: Likewise.
1741         * sysdeps/i386/i686/hp-timing.c: Likewise.
1742         * sysdeps/ia64/elf/initfini.c: Likewise.
1743         * sysdeps/ia64/elf/start.S: Likewise.
1744         * sysdeps/ia64/hp-timing.c: Likewise.
1745         * sysdeps/m68k/elf/start.S: Likewise.
1746         * sysdeps/mach/start.c: Likewise.
1747         * sysdeps/mips/elf/start.S: Likewise.
1748         * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
1749         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
1750         * sysdeps/s390/s390-32/elf/start.S: Likewise.
1751         * sysdeps/s390/s390-32/initfini.c: Likewise.
1752         * sysdeps/s390/s390-64/elf/start.S: Likewise.
1753         * sysdeps/s390/s390-64/initfini.c: Likewise.
1754         * sysdeps/sh/elf/initfini.c: Likewise.
1755         * sysdeps/sh/elf/start.S: Likewise.
1756         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
1757         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
1758         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
1759         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
1760         * sysdeps/standalone/i386/start.S: Likewise.
1761         * sysdeps/standalone/i960/start.S: Likewise.
1762         * sysdeps/standalone/m68k/m68020/start.S: Likewise.
1763         * sysdeps/unix/arm/start.c: Likewise.
1764         * sysdeps/unix/bsd/osf/alpha/start.S: Likewise.
1765         * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
1766         * sysdeps/unix/sparc/start.c: Likewise.
1767         * sysdeps/unix/start.c: Likewise.
1768         * sysdeps/unix/sysv/aix/start.s: Likewise.
1769         * sysdeps/unix/sysv/irix4/start.c: Likewise.
1770         * sysdeps/x86_64/elf/initfini.c: Likewise.
1771         * sysdeps/x86_64/elf/start.S: Likewise.
1773 2004-08-15  Roland McGrath  <roland@redhat.com>
1775         [BZ #227]
1776         * sysdeps/unix/sysv/linux/kernel-features.h
1777         (__ASSUME_BRK_PAGE_ROUNDED): New macro.
1778         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
1779         [! __ASSUME_BRK_PAGE_ROUNDED]: Adjust the break up if it falls within
1780         the partial page after the dynamic linker's own data segment.
1782 2004-08-15  Ulrich Drepper  <drepper@redhat.com>
1784         * sysdeps/posix/getaddrinfo.c (gaih_inet): Optimize generation of
1785         v4-mapped addresses a bit.
1786         (gethosts): Move alloca out of macro, so that it is done only once.
1788         * sysdeps/posix/getaddrinfo.c (gaih_addrtuple): Change type of
1789         addr to avoid casts.
1790         (gethosts): Removed.
1791         (gethosts2): Renamed to gethosts.  Make it usable for family !=
1792         AF_UNSPEC.  Fix AI_V4MAPPED.
1793         (gaih_inet): Remove use of old gethosts.  Always use what used to be
1794         gethosts2.  If entry is found, try to use the same NSS module's
1795         getcanonname_r function.  Use gethostbyaddr for AI_CANONNAME only
1796         if getcanonname_r was not available.  Fix filtering of AI_V4MAPPED
1797         addresses.  Numerous cleanups.
1798         * resolv/nss_dns/dns-canon.c: New file.
1799         * resolv/Makefile (libnss_dns-routines): Add dns-canon.
1800         * resolv/Versions (libnss_dns): Add _nss_dns_getcanonname_r.
1802         * elf/Makefile: Add rules to build and run tst-dlopenrpath.
1803         * elf/tst-dlopenrpath.c: New file.
1804         * elf/tst-dlopenrpathmod.c: New file.
1806         * intl/tst-gettext.sh: Adjust for change of de.po file to UTF-8.
1807         * intl/tst-gettext.c: Likewise.
1809         * nss/getent.c (ahosts_keys_int): Correctly print IPv6 addresses.
1811         * nss/getent.c: Allow queries for getaddrinfo with AF_INET and
1812         AF_INET6.
1814 2004-08-14  Ulrich Drepper  <drepper@redhat.com>
1816         * po/de.po: Update from translation team.
1818 2004-08-14  Roland McGrath  <roland@frob.com>
1820         * sysdeps/mach/configure: Regenerated.
1821         * sysdeps/mach/hurd/configure: Regenerated.
1823 2004-08-14  Ulrich Drepper  <drepper@redhat.com>
1825         * sysdeps/posix/getaddrinfo.c (getaddrinfo): If RFC3484 sorting is
1826         performed, make sure it is still the first entry after sorting
1827         that has the ai_canonname information.
1829         * sysdeps/posix/getaddrinfo.c (gaih_inet): Really set ai_canonname
1830         only in one entry.
1832 2004-08-13  Daniel Jacobowitz  <dan@debian.org>
1834         * scripts/output-format.sed: Handle default case of three-argument
1835         OUTPUT_FORMAT.
1837         * sysdeps/arm/machine-gmon.h (mcount_internal): Mark as
1838         __attribute_used__.
1840 2004-08-13  Ulrich Drepper  <drepper@redhat.com>
1842         * nss/getent.c (ahosts_keys): ai_canonname is NULL for all but the
1843         first returned entry.  Print name only if not NULL.
1845         * nis/nss_nis/nis-netgrp.c: Remove locking by using data in struct
1846         __netgrent object passed in instead of global variables.
1847         Optimize.
1848         * nis/nss_nisplus/nisplus-netgrp.c: Remove locking by using data
1849         in struct __netgrent object passed in instead of global variables.
1850         * inet/netgroup.h (struct __netgrent): Add service_user field.
1851         Move cursor in anonymous union, add new field location to that
1852         union.
1853         * inet/getnetgrent_r.c: Extensive rewrite to really enable
1854         concurrent uset of set/get/endnetgrent and innetgr.
1855         Reported by Chuck Simmons.
1857         * inet/netgroup.h (struct name_list): Replace name pointer with
1858         zero-sized array.
1859         * inet/getnetgrent_r.c: Adjust code for change in name_list
1860         layout.  Numerous strdup and free calls removed.
1862         * elf/sprof.c (read_symbols): When comparing aliases, prefer
1863         non-hidden over hidden symbols and strong over weak symbols
1864         if both don't start with '_'.
1866         * malloc/malloc.c: Use strong_alias instead of weak_alias wherever
1867         possible.
1869 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
1871         * sysdeps/unix/sysv/linux/bits/resource.h: Define non-standard
1872         RUSAGE_ enums as __RUSAGE_ and adjust macros accordingly.
1873         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1874         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1875         * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
1876         Define non-standard RLIMIT_ enums as __RLIMIT_ and adjust macros
1877         accordingly.
1879 2004-08-11  Andreas Schwab  <schwab@suse.de>
1881         * resolv/res_libc.c: Move definition of __res_initstamp ...
1882         * resolv/res_init.c: ... here.
1884 2004-08-10  GOTO Masanori  <gotom@debian.or.jp>
1886         * locale/C-time.c: Change default ERA value from NULL to "".
1887         * locale/tst-C-locale.c: Add test case for ERA keywords.
1889 2004-08-12  Ulrich Drepper  <drepper@redhat.com>
1891         * sysdeps/unix/sysv/linux/bits/resource.h: Define non-standard
1892         RLIMIT__ enums as __RLIMIT_ and adjust macros accordingly.
1893         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1894         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1896 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
1898         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_SIGPENDING,
1899         RLIMIT_MSGQUEUE): Add.
1900         (RLIMIT_NLIMITS, RLIM_NLIMITS): Adjust.
1901         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIMIT_SIGPENDING,
1902         RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
1903         (RLIM_NLIMITS): Adjust.
1904         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIMIT_SIGPENDING,
1905         RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
1906         (RLIM_NLIMITS): Adjust.
1907         * sysdeps/unix/sysv/linux/mips/bits/resource.h (RLIMIT_SIGPENDING,
1908         RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
1909         (RLIM_NLIMITS): Adjust.
1911 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
1913         * resolv/res_query.c (__libc_res_nsearch): Protect the debugging
1914         printf with #ifdef DEBUG and RES_DEBUG check.
1916         * sysdeps/unix/sysv/linux/bits/shm.h: Move __END_DECLS after
1917         __USE_MISC #endif.
1918         * sysdeps/generic/bits/shm.h: Add __BEGIN_DECLS for __getpagesize
1919         declaration.
1920         * sysdeps/gnu/bits/shm.h: Likewise.
1921         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
1922         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
1923         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
1924         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
1925         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
1927 2004-08-12  Ulrich Drepper  <drepper@redhat.com>
1929         * po/ca.po: Update from translation team.
1931 2004-08-11  Ulrich Drepper  <drepper@redhat.com>
1933         * sysdeps/unix/sysv/linux/bits/shm.h: Add __BEGIN_DECLS for
1934         __getpagesize declaration.
1936 2004-08-11  Roland McGrath  <roland@redhat.com>
1938         * configure.in (libc_cv_cpp_asm_debuginfo): Add missing braces around
1939         commands inside &&.
1940         Reported by Andreas Schwab <schwab@suse.de>.
1941         * configure: Regenerated.
1943         * posix/tst-waitid.c (do_test): Ignore SIGCHLD before cleanup SIGKILL.
1945 2004-08-11  Ulrich Drepper  <drepper@redhat.com>
1947         * time/tzset.c (tzset_internal): Add new parameter which is
1948         nonzero if called through tzset.  Use TZDEFAULT name including
1949         name comparison if the new parameter is zero.  This means implicit
1950         tzset calls will not cause files to be opened and read by tzfile.c
1951         all the time.
1953 2004-08-11  Jakub Jelinek  <jakub@redhat.com>
1955         * rt/tst-timer2.c (do_test): If timer_create fails, just continue.
1956         * rt/tst-timer4.c (do_test): If one of the timer_create calls fails,
1957         return 1 immediately.
1959         * time/tzfile.c (__tzfile_read): Free transitions only if it will
1960         not be reused.
1962         * sysdeps/ieee754/dbl-64/mpa.c: Include <sys/param.h>.
1963         * sysdeps/ieee754/dbl-64/mpa.h (MAX, MIN): Macros removed.
1965         * stdio-common/tst-popen.c: Include <string.h>.
1967         * resolv/res_send.c (__libc_res_nsend): Only define TMPBUF #if DEBUG.
1969         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Remove noreturn
1970         attribute.  Return NULL instead of calling pthread_exit at the end.
1972 2004-08-11  Roland McGrath  <roland@redhat.com>
1974         * iconvdata/testdata/ISO-2022-JP-3: Regenerated.
1976 2004-08-10  Alfred M. Szmidt  <ams@kemisten.nu>
1978         * sysdeps/generic/bits/in.h (struct ip_mreq): Remove definition.
1980 2004-08-10  Jakub Jelinek  <jakub@redhat.com>
1982         * libio/bits/stdio.h (fread_unlocked): Cast 0 to (size_t).
1983         (fwrite_unlocked): When checking if size * n is <= 8, cast each
1984         argument to size_t individually.  Cast n to (void) instead of
1985         (size_t), surround with (), return (size_t) 0 if one of n or size
1986         is 0.  [BZ #316]
1987         * stdio-common/Makefile (tests): Add tst-unlockedio.
1988         * stdio-common/tst-unlockedio.c: New test.
1990 2004-08-09  Roland McGrath  <roland@frob.com>
1992         * manual/install.texi (Supported Configurations): Replace bug-glibc
1993         mention with web URL.
1994         * INSTALL: Regenerated.
1995         * locale/iso-3166.def: Likewise, in comment.
1996         * locale/iso-4217.def: Likewise.
1997         * locale/iso-639.def: Likewise.
1998         * posix/cpio.h: Remove bug reporting comment.
2000 2004-08-09  Ulrich Drepper  <drepper@redhat.com>
2002         * libio/bits/stdio.h (fread_unlocked): Add a couple of (size_t)
2003         casts to handle funny calls with floating point argument values
2004         and signed values correctly and without warning.
2005         (fwrite_unlocked): Likewise.  [BZ #309]
2007         * malloc/memusage.c (me): Use creat64, not creat.
2008         * malloc/memusagestat.c: Fix handling of very large sizes.  [BZ #285]
2009         Patch by Guy Maor <guymaor@yahoo.com>.
2011         * elf/ldconfig.c (options): Mark parameter option names as
2012         translatable.  [BZ #253]  Patch by Jakub Bogusz <qboosh@pld-linux.org>.
2014         * iconv/gconv_charset.h (strip): Also allow comma which is what is
2015         used to separate options.  [BZ #194]
2017 2004-08-09  Roland McGrath  <roland@redhat.com>
2019         * FAQ.in: Refer to web pages instead of bug-glibc.
2020         * FAQ: Regenerated.
2022         * time/strptime_l.c: #include <stdbool.h>, `bool' used in last change.
2024 2004-08-09  Ulrich Drepper  <drepper@redhat.com>
2026         * time/tzset.c (tzset_internal): If TZ is not set do not compare
2027         old and new tz value since it might be /etc/localtime in both
2028         cases although the file changed.  [BZ #154]
2029         Patch by Christian Franke <franke@computer.org>.
2031         * time/tzfile.c (__tzfile_read): Determine dev/ino of file.
2032         Compare with values of previously opened file.  Don't do anything
2033         is they match.
2035 2004-08-08  Ulrich Drepper  <drepper@redhat.com>
2037         * elf/dl-load.c (_dl_map_object): If __RTLD_CALLMAP flag is set,
2038         reset loader before the actual loading.
2039         * elf/dl-open.c (dl_open_worker): If file name contains no path
2040         element determine map of caller.  Pass caller map in this case to
2041         _dl_map_object.  Set __RTLD_CALLMAP in mode.
2042         * include/dlfcn.h (__RTLD_CALLMAP): Define.  [BZ #116]
2043         Patch by Greg Wolodkin <greg@mathworks.com>.
2045         * misc/syslog.c (openlog_internal): Always try both UDP and TCP.
2046         [BZ #108]  Patch mainly by Bjorn Andersson <bjorn@iki.fi>.
2048         * configure.in: Also recognize i786. [BZ #106]
2049         Patch by <pluto@pld-linux.org>.
2051         * resolv/res_query.c (__libc_res_nsearch): Correctly test whether
2052         name contains any dots. [BZ #95]
2054         * resolv/res_send.c: Compiling with DEBUG defined works again.
2055         * resolv/gethnamaddr.c (dprintf): Renamed to Dprintf.  Adjust all
2056         callers.
2058         * resolv/tst-leaks.c (TIMEOUT): Define so that if no server is
2059         available the process is not killed. [BZ #41]
2061         * intl/tst-gettext.c (main): Improve some messages. [BZ #33]
2063         * time/strptime_l.c (__strptime_internal): Fix handling of %Ey.
2064         [BZ #28]
2066         * po/sv.po: Update from translation team.
2068 2004-08-07  Ulrich Drepper  <drepper@redhat.com>
2070         * inet/netinet/in.h: Add more const to the setipv4soucefilter,
2071         getsourcefilter, and setsourcefilter parameter list.
2072         * sysdeps/generic/setipv4sourcefilter.c: Likewise.
2073         * sysdeps/generic/getsourcefilter.c: Likewise.
2074         * sysdeps/generic/setsourcefilter.c: Likewise.
2075         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
2076         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
2077         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
2079         * po/tr.po: Update from translation team.
2081 2004-08-06  Ulrich Drepper  <drepper@redhat.com>
2083         * iconvdata/jisx0213.h (jisx0213_added_in_2004_p): Fix typo.
2084         Reported by Paolo Bonzini.
2086 2004-08-06  Jakub Jelinek  <jakub@redhat.com>
2088         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add
2089         always_inline.
2090         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_runtime_setup,
2091         elf_machine_fixup_plt, elf_machine_plt_conflict): Likewise.
2093         * sysdeps/unix/sysv/linux/netatalk/at.h: Include bits/sockaddr.h
2094         before including linux/atalk.h.
2096         * resolv/res_libc.c: Include atomic.h.
2098         * intl/finddomain.c (free_mem): Rename to...
2099         (_nl_finddomain_subfreeres): ... this.  Add
2100         __libc_freeres_fn_section.
2101         * intl/loadmsgcat.c (_nl_unload_domain): Add
2102         __libc_freeres_fn_section.
2103         * intl/gettextP.h (_nl_unload_domain): Move into #ifdef _LIBC.
2104         Add attribute_hidden.
2105         (_nl_findomain_subfreeres): New prototype.
2106         * iconv/gconv_db.c (free_mem): Call _nl_findomain_subfreeres.
2108 2004-07-30  Guido Guenther  <agx@sigxcpu.org>
2110         * nss/getent.c (passwd_keys): Use strtoul instead of isdigit to
2111         test if the key is numeric or not.
2112         (group_keys): Likewise.
2114 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
2116         * inet/netinet/in.h: Define struct ip_msfilter, IP_MSFILTER_SIZE,
2117         struct group_filter, and GROUP_FILTER_SIZE.
2118         * include/sys/socket.h: Declare __getsockopt.
2119         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: New file.
2120         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: New file.
2121         * sysdeps/unix/sysv/linux/setsourcefilter.c: New file.
2122         * sysdeps/unix/sysv/linux/getsourcefilter.c: New file. [BZ #211]
2124         * po/ko.po: Update from translation team.
2126 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
2128         * hesiod/hesiod.c (__hesiod_res_get): Use calloc instead of malloc +
2129         memset.
2130         (__hesiod_res_set): Free nsaddrs.
2132         * include/resolv.h (__res_maybe_init): Add prototype.
2133         * resolv/resolv.h (struct __res_state): Add _u._ext.initstamp field.
2134         * resolv/Versions (libc): Add __res_maybe_init@@GLIBC_PRIVATE.
2135         * resolv/res_libc.c (__res_initstamp, lock): New variables.
2136         (res_init): Increase __res_initstamp.
2137         (__res_maybe_init): New function.
2138         * resolv/res_init.c (__res_vinit): Initialize _u._ext.initstamp.
2139         * hesiod/hesiod.c (__hesiod_res_get): Use __res_maybe_init instead
2140         of RES_INIT check and {res_ninit,__res_ninit,res_init} call.
2141         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
2142         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
2143         _nss_dns_gethostbyaddr_r): Likewise.
2144         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
2145         _nss_dns_getnetbyaddr_r): Likewise.
2146         * resolv/gethnamaddr.c (gethostbyname, gethostbyname2,
2147         gethostbyaddr): Likewise.
2148         * resolv/res_data.c (fp_nquery, res_mkquery, res_mkupdate,
2149         res_isourserver, res_sendsigned, res_update, res_search,
2150         res_querydomain): Likewise.
2151         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Likewise.
2152         * nss/digits_dots.c (__nss_hostname_digits_dots): Likewise.
2153         * nss/getnssent_r.c (__nss_setent, __nss_endent, __nss_getent_r):
2154         Likewise.
2156 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
2158         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set ai_family for
2159         V4-mapped IPv6 addresses and req->ai_family==AF_INET.
2160         Reported by A. Guru <a.guru@sympatico.ca>.
2162         * po/sv.po: Update from translation team.
2163         * po/sk.po: Likewise.
2164         * po/pl.po: Likewise.
2166 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
2167             Ulrich Drepper  <drepper@redhat.com>
2169         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Don't read more input
2170         characters than necessary.
2172 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
2174         * wcsmbs/Makefile (tests): Add tst-mbsrtowcs.
2175         * wcsmbs/tst-mbsrtowcs.c: New file.
2177         * po/fr.po: Update from translation team.
2179 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
2181         * resolv/inet_pton.c (inet_pton4): Disallow octal numbers.  Reported
2182         by A. Guru <a.guru@sympatico.ca>.  [BZ #295]
2184 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
2186         * po/nl.po: Update from translation team.
2188         * sysdeps/posix/getaddrinfo.c (gaih_inet): Recognize all the IPv4
2189         numeric address formats inet_addr knows.
2190         (getaddrinfo): Allow AI_NUMERICSERV flag.
2191         If neither IPv4 nor IPv6 interface is present we cannot make any
2192         decision for AI_ADDRCONFIG.  Fail if AI_NUMERICSERV is set and the
2193         string is not just a number.  Remove useless freeaddrinfo call.
2194         * resolv/netdb.h (AI_NUMERICSERV): Define.
2195         Based on a patch by a.guru@sympatico.ca.
2197 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
2199         * stdlib/strfmon_l.c (__vstrfmon_l): Memset whole info structure
2200         instead of trying to initialize some, but not all, fields one by
2201         one.
2202         * stdio-common/printf_size.c (printf_size): Initialize fb_info
2203         structure with *info instead of trying to initialize some, but not
2204         all, fields from it.
2206         * nscd/connections.c (handle_request): Check if req->type is in
2207         LASTDBREQ .. LASTREQ range instead of req.
2209         * locale/programs/linereader.c (lr_create): Initialize
2210         lr->return_widestr to 0.
2212         * elf/dl-close.c (free_slotinfo): Add __libc_freeres_fn_section.
2213         (free_mem): Call free_slotinfo just once.
2215         * stdio-common/tst-fmemopen.c (main): Check for MAP_FAILED instead
2216         of NULL.
2218         * locale/localeinfo.h (_nl_locale_subfreeres): New prototype.
2219         * locale/setlocale.c (free_category): Add __libc_freeres_fn_section.
2220         (free_mem): Rename to _nl_locale_subfreeres.
2221         * iconv/gconv_db.c: Include locale/localeinfo.h.
2222         (free_derivation, free_modules_db): Add __libc_freeres_fn_section.
2223         (free_mem): Call _nl_locale_subfreeres.
2224         * iconv/gconv_dl.c (do_release_all): Add __libc_freeres_fn_section.
2226 2004-08-04  Roland McGrath  <roland@frob.com>
2228         * Makeconfig ($(common-objpfx)config.status):
2229         Fix typo: $(add_ons) -> $(add-ons).
2230         (Makeconfig-add-on): New variable.  When doing $(sysdep-makeconfigs)
2231         include, use black magic to get it set to an add-on's name during the
2232         include of the add-on's Makeconfig.
2234         * configure.in: Use variable name `libc_add_on' when sourcing add-on
2235         configure fragments, so they can refer to this.
2236         * configure: Regenerated.
2238 2004-08-04  Roland McGrath  <roland@redhat.com>
2240         * posix/tst-waitid.c (test_child): Sleep a second before stopping.
2241         (do_test): Bump sleep to three seconds.
2242         (sigchld, check_sigchld): New functions.
2243         (do_test): Handle SIGCHLD and check for getting the right details.
2245         * posix/tst-waitid.c (do_test): Kill the child process when bailing
2246         out early on some failure.
2247         [WCONTINUED]: Test WCONTINUED functionality.
2249 2004-08-03  Ulrich Drepper  <drepper@redhat.com>
2251         * nscd/connections.c (handle_request): Print more descriptive
2252         message for invalid request types.
2254 2004-08-02  Jakub Jelinek  <jakub@redhat.com>
2256         * iconvdata/ibm932.c (BODY): Avoid binary search for ch >= 0xffff.
2257         Always treat high as highest number in range + 1.
2258         * iconvdata/ibm943.c (BODY): Likewise.
2260 2004-07-31  Bruno Haible  <bruno@clisp.org>
2262         * iconvdata/JISX0213.TXT: Updated to JISX0213 plane 1 version 2004.
2263         * iconvdata/jisx0213.c (__jisx0213_to_ucs_main,
2264         __jisx0213_to_ucs_pagestart, __jisx0213_from_ucs_level1,
2265         __jisx0213_from_ucs_level2): Regenerated.
2266         * iconvdata/jisx0213.h (jisx0213_added_in_2004_p): New function.
2267         * iconvdata/iso-2022-jp-3.c (JISX0213_1_2000_set): Renamed from
2268         JISX0213_1_set.
2269         (JISX0213_1_2004_set): New enum value.
2270         (BODY for FROM_LOOP): Treat ESC $ ( Q like ESC $ ( O.
2271         (BODY for TO_LOOP): For JISX 0213 plane 1 characters, emit ESC $ ( O
2272         when possible, ESC $ ( Q when needed.
2273         * iconvdata/testdata/EUC-JISX0213: Add the 10 new characters.
2274         * iconvdata/testdata/EUC-JISX0213..UTF8: Update.
2275         * iconvdata/testdata/SHIFT_JISX0213: Add the 10 new characters.
2276         * iconvdata/testdata/SHIFT_JISX0213..UTF8: Update.
2277         * iconvdata/testdata/ISO-2022-JP-3: Add the 10 new JISX0213 characters.
2278         * iconvdata/testdata/ISO-2022-JP-3..UTF8: Update.
2280 2004-07-22  Bruno Haible  <bruno@clisp.org>
2282         * iconvdata/gconv-modules (ISO-8859-7): Add alias ISO_8859-7:2003.
2284 2004-07-29  David S. Miller  <davem@redhat.com>
2286         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy): Optimize
2287         better for smaller than 256 byte copies.  Also, use only one
2288         unrolled loop instead of two for the large copy case.
2290 2004-07-30  Richard Henderson  <rth@redhat.com>
2292         * sysdeps/alpha/divq.S: Save t3 before it gets clobbered.
2293         * sysdeps/alpha/remq.S: Likewise.
2294         * sysdeps/alpha/div.S, sysdeps/alpha/ldiv.S: Rewrite with the
2295         new division algorithms in divl.S and divq.S respectively.
2297 2004-07-28  GOTO Masanori  <gotom@debian.or.jp>
2299         * timezone/asia: Update from tzdata2004b.
2300         * timezone/backward: Likewise.
2301         * timezone/europe: Likewise.
2302         * timezone/iso3166.tab: Likewise.
2303         * timezone/leapseconds: Likewise.
2304         * timezone/northamerica: Likewise.
2305         * timezone/southamerica: Likewise.
2306         * timezone/zone.tab: Likewise.
2308         * timezone/private.h: Update from tzcode2004b.
2309         * timezone/zic.c: Likewise.
2311 2004-07-27  Ulrich Drepper  <drepper@redhat.com>
2313         * nscd/grpcache.c (cache_addgr): If necessary, add entry also
2314         under the name the user provided.
2315         * nscd/pwdcache.c (cache_addpw): Likewise.
2317 2004-07-26  Roland McGrath  <roland@redhat.com>
2319         * sysdeps/posix/waitid.c [WEXITED]: Clear WEXITED bit in OPTIONS for
2320         call to __waitpid.
2322 2004-07-26  Ulrich Drepper  <drepper@redhat.com>
2324         * nscd/hstcache.c (cache_addhst): Fix two scenarios which lead to
2325         memory leaks.
2327         * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Assign pointer for
2328         new buffer at the right time.
2329         Reported by Jakub Bogusz <qboosh@pld-linux.org>.
2331 2004-07-25  Ulrich Drepper  <drepper@redhat.com>
2333         * inet/Versions [libc, GLIBC_2.3.4]: Add getipv4sourcefilter,
2334         getsourcefilter, setipv4sourcefilter, and setsourcefilter.
2335         * inet/Makefile (routines): Likewise.
2336         * inet/netinet/in.h: Add prototypes for getipv4sourcefilter,
2337         getsourcefilter, setipv4sourcefilter, and setsourcefilter.
2338         * sysdeps/generic/getipv4sourcefilter.c: New file.
2339         * sysdeps/generic/setipv4sourcefilter.c: New file.
2340         * sysdeps/generic/getsourcefilter.c: New file.
2341         * sysdeps/generic/setsourcefilter.c: New file.
2343 2004-07-17  Steven Munroe  <sjmunroe@us.ibm.com>
2345         * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling
2346         for POWER4 machines.
2348 2004-07-21  Jakub Jelinek  <jakub@redhat.com>
2350         [BZ #274]
2351         * stdlib/strtod_l.c (INTERNAL (__STRTOF)): Fix used >=
2352         BITS_PER_MP_LIMB shifting up.
2353         * stdlib/tst-strtod.c (main): Add new tests.
2355 2004-07-23  Jakub Jelinek  <jakub@redhat.com>
2357         [BZ #282]
2358         * libio/iopopen.c (_IO_new_popen): Use _IO_init instead of
2359         _IO_no_init.  Remove wd from struct locked_FILE.
2360         (_IO_wproc_jumps): Remove.
2361         Reported by Andrew Josey <a.josey@opengroup.org>.
2362         * stdio-common/Makefile (tests): Add tst-popen.
2363         * stdio-common/tst-popen.c: New test.
2365 2004-07-23  Ulrich Drepper  <drepper@redhat.com>
2367         * posix/bits/posix1_lim.h: Fix values for _POSIX_CHILD_MAX and
2368         _POSIX_OPEN_MAX.  Add _POSIX_HOST_NAME_MAX, _POSIX_SYMLINK_MAX,
2369         _POSIX_SYMLOOP_MAX, and _POSIX_RE_DUP_MAX.
2370         Reported by Andrew Josey.
2372         * include/features.h: Document _POSIX_C_SOURCE == 200112L.
2374         * grp/grp.h: Define gid_t if __USE_XOPEN2K is defined.
2375         * pwd/pwd.h: Define uid_t and gid_t if __USE_XOPEN2K is defined.
2376         * io/sys/stat.h: Define dev_t, gid_t, ino_t, mode_t, nlink_t,
2377         off_t, time_t, and uid_t if __USE_XOPEN2K is defined.
2378         * signal/signal.h: Define pid_t if __USE_XOPEN2K is defined.
2379         * posix/unistd.h: Define gid_t, off_t, pid_t, uid_t, and
2380         useconds_t if __USE_XOPEN2K is defined.
2381         * io/utime.h: Define time_t if __USE_XOPEN2K is defined.
2382         * libio/stdio.h: Declare fseeko and ftello if __USE_XOPEN2K is defined.
2384 2004-07-19  Thorsten Kukuk  <kukuk@suse.de>
2386         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
2387         allocate memory for large temporary variables with alloca.
2389 2004-07-22  Ulrich Drepper  <drepper@redhat.com>
2391         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Compatibility
2392         code must have version GLIBC_2.0.  Patch by Dwayne McConnell.
2394         * nscd/nscd_getgr_r.c (nscd_getgr_r): Avoid read call with NULL
2395         pointer and zero length.
2397 2004-07-21  Ulrich Drepper  <drepper@redhat.com>
2399         * nscd/cache.c (prune_cache): Print correct list when debugging.
2401 2004-07-21  Jakub Jelinek  <jakub@redhat.com>
2403         * resolv/res_libc.c (res_init): If RES_INIT is set and
2404         _res.nscount > 0, call __res_nclose and free nsaddrs.
2405         * resolv/Makefile: Add rules to build and run tst-leaks2.
2406         * resolv/tst-leaks2.c: New test.
2408 2004-07-21  Ulrich Drepper  <drepper@redhat.com>
2410         * intl/libintl.h: Don't define macros for C++.
2411         Patch by Goto Masanori.
2413 2004-07-22  GOTO Masanori  <gotom@debian.or.jp>
2415         [BZ #276]
2416         * include/arpa/inet.h: Change inet_aton type from in_addr_t to int.
2417         * inet/arpa/inet.h: Likewise.
2418         * resolv/inet_addr.c: Likewise.
2420 2004-07-21  Alexandre Oliva  <aoliva@redhat.com>
2422         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Add semtimedop.
2424 2004-07-20  Roland McGrath  <roland@redhat.com>
2426         * configure.in (add_ons): Substitute this.  Move $add_ons handling
2427         after AC_CANONICAL_HOST and default setting of $machine et al.
2428         Don't set $subdirs from $add_ons.
2429         Instead, source add-on/configure fragments early on.
2430         (base_machine): If it's already set, don't set it based on $machine.
2431         (libc_config_ok): New variable, set to no.  If an add-on fragment sets
2432         it to yes, skip the  tuple sanity check as if --enable-hacker-mode.
2433         (sysnames): Try appending add-on names after machine as well.
2434         * config.make.in (add-ons): Set from @add_ons@ instead of @subdirs@.
2435         * Makeconfig ($(common-objpfx)config.status): Also depend on configure
2436         files in $(add_ons) dirs.
2438         * sysdeps/unix/sysv/linux/bits/in.h (struct ip_mreq): Remove
2439         definition, now in netinet/in.h proper.
2441 2004-07-20  Alexandre Oliva  <aoliva@redhat.com>
2443         * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h):
2444         Sort by syscalls.  Make sure we get headers such as sgidefs.h from
2445         the build tree before just-installed ones.
2447         * sysdeps/mips/atomicity.h: Use standard names for ABI macros,
2448         include sgidefs.h where appropriate.
2449         * sysdeps/mips/dl-machine.h: Likewise.
2450         * sysdeps/mips/machine-gmon.h: Likewise.
2451         * sysdeps/mips/bits/setjmp.h: Likewise.
2452         * sysdeps/mips/fpu/bits/mathdef.h: Likewise.
2453         * sysdeps/mips/mips64/__longjmp.c: Likewise.
2454         * sysdeps/mips/mips64/setjmp_aux.c: Likewise.
2455         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
2456         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
2457         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2458         * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
2459         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2460         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2461         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
2462         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
2463         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
2464         * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: Likewise.
2465         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
2466         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
2467         * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: Likewise.
2468         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
2469         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
2470         * sysdeps/unix/sysv/linux/mips/sys/user.h: Likewise.
2471         * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h):
2472         Likewise.
2473         * sysdeps/unix/sysv/linux/mips/configure.in (asm-unistd.h):
2474         Likewise.
2476         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Update to use
2477         _dl_lookup_symbol_x.
2478         (elf_machine_runtime_link_map): Don't INTUSE _dl_signal_error.
2480 2004-07-20  Ulrich Drepper  <drepper@redhat.com>
2482         * inet/netinet/in.h: Define struct ip_mreq and struct
2483         ip_mreq_source.
2484         Define struct group_req and struct group_source_req.
2485         * sysdeps/unix/sysv/linux/bits/in.h: Define IP_UNBLOCK_SOURCE,
2486         IP_BLOCK_SOURCE, IP_ADD_SOURCE_MEMBERSHIP,
2487         IP_DROP_SOURCE_MEMBERSHIP, IP_MSFILTER, MCAST_JOIN_GROUP,
2488         MCAST_BLOCK_SOURCE, MCAST_UNBLOCK_SOURCE, MCAST_LEAVE_GROUP,
2489         MCAST_JOIN_SOURCE_GROUP, MCAST_LEAVE_SOURCE_GROUP, and
2490         MCAST_MSFILTER.
2491         Define MCAST_INCLUDE and MCAST_EXCLUDE.
2493         * iconvdata/gconv-modules: Add alias for IBM874 [BZ #244].
2495 2004-07-19  Jakub Jelinek  <jakub@redhat.com>
2497         [BZ #258]
2498         * math/libm-test.inc (max_value, min_value): New variables.
2499         (initialize): Initialize them.
2500         (pow_test): Add a couple of new tests.
2501         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Don't generate invalid
2502         exception if |y| >= 1U<<31.
2503         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Don't generate invalid
2504         exception if |y| >= 1L<<63.
2505         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
2506         If y*log2(x) overflows to +-inf, return still +inf/+0 instead of NaN.
2507         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
2509 2004-07-18  Ulrich Drepper  <drepper@redhat.com>
2511         * nscd/pwdcache.c (cache_addpw): Optimize case of unsuccessful
2512         lookup a bit.
2513         * nscd/grpcache.c (cache_addgr): Likewise.
2514         * nscd/hstcache.c (cache_addhst): Likewise.
2516 2004-07-10  GOTO Masanori  <gotom@debian.or.jp>
2518         * sysdeps/s390/s390-32/elf/start.S: Remove symbol _fp_hw.
2519         * sysdeps/s390/s390-64/elf/start.S: Likewise.
2521 2004-04-16  Andreas Schwab  <schwab@suse.de>
2523         * sysdeps/ia64/bits/atomic.h: Cast first argument of
2524         __sync_bool_compare_and_swap_si correct to void*.
2526 2004-07-17  Ulrich Drepper  <drepper@redhat.com>
2528         * iconv/iconv_prog.c (print_known_names): Make machine-readable
2529         output even less cluttered.
2531 2004-07-16  Steven Munroe  <sjmunroe@us.ibm.com>
2533         [BZ #269]
2534         * setjmp/Makefile (tests): Add bug269-setjmp.
2535         * setjmp/bug269-setjmp.c: New file.
2536         * sysdeps/powerpc/powerpc64/__longjmp-common.S [SHARED && !IS_IN_rtld]:
2537         Store R2 from jmpbuf in callers TOC save area.
2538         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S [SHARED && !IS_IN_rtld]:
2539         Store R2 in TOC save area.
2540         * sysdeps/powerpc/powerpc64/setjmp-common.S [SHARED && !IS_IN_rtld]:
2541         Copy TOC save area from previous frame as R2 (TOC) in jmpbuf.
2543 2004-07-16  Jakub Jelinek  <jakub@redhat.com>
2545         * locale/newlocale.c: Include bits/libc-lock.h.
2546         (__libc_setlocale_lock): Extern decl.
2547         (__newlocale): Use it.
2548         Reported by Ulrich Weigand <Ulrich.Weigand@de.ibm.com>.
2550 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
2552         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Remove
2553         static inline __attribute ((always_inline)).  Don't define if
2554         NO_CANCELLATION.
2555         (__libc_fcntl): Use INLINE_SYSCALL directly instead of
2556         __fcntl_nocancel.
2557         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__fcntl_nocancel):
2558         Remove static inline __attribute ((always_inline)).  Don't define
2559         if NO_CANCELLATION.
2560         (__libc_fcntl): Use INLINE_SYSCALL directly instead of
2561         __fcntl_nocancel.
2562         * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Define to
2563         __libc_fcntl if NO_CANCELLATION and __ASSUME_FCNTL64 == 0.
2564         Don't define at all if NO_CANCELLATION and __ASSUME_FCNTL64 > 0.
2565         (__libc_fcntl): Don't define if __fcntl_nocancel is a macro.
2567         [BZ #262]
2568         * sysdeps/i386/elf/start.S (_start): Use @GOT instead of @GOTOFF
2569         for main.
2570         * elf/Makefile: Add rules to build and run tst-pie1.
2571         * elf/tst-pie1.c: New test.
2572         * elf/tst-piemod1.c: New file.
2574 2004-07-14  Jakub Jelinek  <jakub@redhat.com>
2576         [BZ #266]
2577         * manual/string.texi (l64a): Note that the static buffer is 7 bytes
2578         long.  Rewrite example code so that it takes into account l64a output
2579         shorter than 6 characters.
2580         Reported by Julian Graham <julian.graham@aya.yale.edu>.
2582 2004-07-14  Kaz  Kojima  <kkojima@rr.iij4u.or.jp>
2584         * sysdeps/sh/dl-machine.h: Don't reset _dl_starting_up here.
2585         (elf_machine_rela_relative): Remove unused valiable.
2587 2004-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2589         [BZ #263]
2590         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Don't store
2591         outside the buffer if the read returns 0.  __strtod_l can't set
2592         endp to NULL, so remove a test for that case.
2594 2004-07-12  Roland McGrath  <roland@redhat.com>
2596         * manual/signal.texi (Interrupted Primitives): Make clear that
2597         TEMP_FAILURE_RETRY evaluates its expression as long int and compares
2598         it to -1 to define "failure".
2600 2004-07-10  Ulrich Drepper  <drepper@redhat.com>
2602         * elf/ldconfig.c: Define PROCINFO_CLASS as static before including
2603         ldsodefs.h.
2604         * sysdeps/generic/ldsodefs.h: Only define PROCINFO_CLASS if it is not
2605         already defined.
2606         * sysdeps/i386/dl-procinfo.c: Define PROCINFO_CALLS only if not
2607         already defined.
2609         * elf/rtld.c (print_statistics): Mark with noinline attribute.
2610         * sysdeps/i386/dl-machine.h (elf_machine_rel): Mark with always_inline
2611         attribute.
2612         (elf_machine_rel_relative): Likewise.
2614         * include/string.h: Add libc_hidden_proto for __strtok_r and
2615         __strsep_g.
2616         * sysdeps/generic/strsep.c: Add libc_hidden_def.
2617         * sysdeps/generic/strtok_r.c: Likewise.
2618         * sysdeps/i386/strtok_r.S: Add alias for internal symbol.
2619         * sysdeps/i386/i686/strtok_r.S: Likewise.
2620         * sysdeps/x86_64/strtok_r.S: Likewise.
2622 2004-07-09  Alexandre Oliva  <aoliva@redhat.com>
2624         * inet/getnetgrent_r.c (internal_setnetgrent): Make it hidden
2625         instead of internal-linkage, such that we can alias to it.
2626         (internal_endnetgrent, internal_getnetgrent_r): Likewise.
2628 2004-07-09  Ulrich Drepper  <drepper@redhat.com>
2630         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Move attribute
2631         to the front for gcc 3.5+.
2632         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
2633         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise.
2634         * include/fcntl.h: Don't declare __fcntl_nocancel here if
2635         NO_CANCELLATION is defined.
2637 2004-07-07  Jakub Jelinek  <jakub@redhat.com>
2639         * elf/dl-fini.c (_dl_fini): Add nloaded variable, load
2640         GL(dl_nloaded) into it while still in critical section.
2642 2004-07-06  Thorsten Kukuk  <kukuk@suse.de>
2644         * nss/getent.c (print_group, print_passwd): Use %lu format for
2645         `unsigned long int' values.
2647         * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Fix syntax
2648         error typos in goto statements.
2650 2004-07-07  Roland McGrath  <roland@frob.com>
2652         * Makefile (dist-separate): New variable.
2653         (glibc-%.tar rule): Make separate tar files for add-ons listed there.
2654         Depend on their configure files.
2655         (dist-do-separate-dirs): New canned sequence to do that.
2656         (dist-separate-libidn, dist-separate-linuxthreads): New variables.
2657         (dist): Depend on add-on tar files based on $(dist-separate).
2658         (dist-version): New variable, default to $(version).
2659         (tag-for-dist, dist): Use that in place of $(version) in deps.
2661 2004-07-07  Ulrich Drepper  <drepper@redhat.com>
2663         * elf/dl-fini.c (_dl_fini): Move the unlock of the ld.so lock
2664         before the loop running the destructors.
2666 2004-05-18  Andreas Schwab  <schwab@suse.de>
2668         * elf/dl-load.c (_dl_map_object_from_fd): Use the end address of
2669         the first segment for mprotect, not l_text_end.
2671 2004-07-05  Ulrich Drepper  <drepper@redhat.com>
2673         * elf/dl-profile.c (_dl_start_profile): Compact error handling.
2674         Remove hashfraction variable.  Make kcount and kcountsize local
2675         variables.
2677         * elf/dl-init.c: Don't define and use _dl_starting_up if
2678         HAVE_INLINED_SYSCALLS is defined and the variable is not used.
2679         * elf/dl-support.c: Likewise.
2680         * elf/rtld.c: Likewise.
2681         * elf/dl-misc.c (_dl_debug_vdprintf): Use writev syscall directly
2682         if HAVE_INLINED_SYSCALLS is defined.
2683         * sysdeps/powerpc/powerpc64/dl-machine.h: Don't reset _dl_starting_up
2684         here.
2685         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
2686         * sysdeps/unix/sysv/linux/configure.in: Define HAVE_INLINED_SYSCALLS.
2687         * config.h.in: Add entry for HAVE_INLINED_SYSCALLS.
2689         * sysdeps/posix/profil.c: If compiled for ld.so, omit code which
2690         is needed to stop profiling.
2691         * elf/dl-open.c (dl_open_worker): If a newly opened object is to be
2692         profile make sure it cannot be unloaded.
2694         * sysdeps/unix/sysv/linux/dl-origin.c: Inline readlink syscall.
2696         * sysdeps/unix/sysv/linux/fcntl.c: If compiled without cancellation
2697         support, make sure the helper function is inlined.
2698         * sysdeps/unix/sysv/linux/pread.c: Likewise.
2699         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
2700         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
2701         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise.
2703 2004-07-05  Jakub Jelinek  <jakub@redhat.com>
2705         * include/string.h (ffs): Add libc_hidden_builtin_proto.
2706         * sysdeps/rs6000/ffs.c (ffs): Add libc_hidden_builtin_def.
2707         * sysdeps/alpha/alphaev67/ffs.S (ffs): Likewise.
2708         * sysdeps/alpha/ffs.S (ffs): Likewise.
2709         * sysdeps/s390/ffs.c (ffs): Likewise.
2710         * sysdeps/powerpc/ffs.c (ffs): Likewise.
2711         * sysdeps/i386/ffs.c (ffs): Likewise.
2712         * sysdeps/i386/i686/ffs.c (ffs): Likewise.
2713         * sysdeps/m68k/ffs.c (ffs): Likewise.
2714         * sysdeps/generic/ffs.c (ffs): Likewise.
2715         * sysdeps/m88k/ffs.c (ffs): Likewise.
2716         * sysdeps/am29k/ffs.c (ffs): Likewise.
2717         * sysdeps/i960/ffs.c (ffs): Likewise.
2718         * sysdeps/x86_64/ffs.c (ffs): Likewise.
2720         * Makerules (check-abi): Use diff -p -U 0 instead of diff -pu0.
2722         * sysdeps/powerpc/novmx-longjmp.c (__libc_longjmp,
2723         __libc_siglongjmp): Remove symbol_version.
2724         * sysdeps/powerpc/longjmp.c (__libc_longjmp, __libc_siglongjmp):
2725         Export @@GLIBC_PRIVATE, not @@GLIBC_2.3.4.
2726         * sysdeps/powerpc/sigjmp.c (__sigjmp_save): Use strong_alias
2727         unconditionally.
2728         * sysdeps/powerpc/novmx-sigjmp.c (__sigjmp_save): Remove.
2729         * sysdeps/powerpc/powerpc32/__longjmp.S (__longjmp): Use
2730         strong_alias instead of default_symbol_version, remove
2731         symbol_version.
2732         * sysdeps/powerpc/powerpc64/__longjmp.S (__longjmp): Likewise.
2733         * sysdeps/powerpc/powerpc32/bsd-setjmp.S (__novmx__setjmp): Change
2734         into strong_alias to __novmxsetjmp.
2735         (__vmx__setjmp): Similarly with __vmxsetjmp.
2736         (__setjmp): Make it strong_alias to __vmx__setjmp, remove
2737         default_symbol_version and symbol_version.
2738         * sysdeps/powerpc/powerpc64/bsd-setjmp.S (__novmx__setjmp): Change
2739         into strong_alias to __novmxsetjmp.
2740         (__vmx__setjmp): Similarly with __vmxsetjmp.
2741         (__setjmp): Make it strong_alias to __vmx__setjmp, remove
2742         default_symbol_version and symbol_version.
2744         * nscd/nscd_getgr_r.c: Include stdio-common/_itoa.h.
2746 2004-07-05  Ulrich Drepper  <drepper@redhat.com>
2748         * elf/rtld.c (dl_main): Mark dyn_temp with attribute_relro.
2750 2004-07-04  Matthew Reppert  <arashi@kai.vm.bytemark.co.uk>
2752         * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Use libc_hidden_ver
2753         instead of libc_hidden_def.
2755 2004-07-01  Roland McGrath  <roland@redhat.com>
2757         * aclocal.m4: Add provide for AC_CONFIG_AUX_DIR_DEFAULT.
2759         * Makeconfig ($(common-objpfx)shlib-versions.v.i): Move top-level
2760         $(..)shlib-versions file to last in deps list.  This lets add-ons give
2761         more-specific matches that override defaults in the top-level file.
2763         * sysdeps/unix/sysv/linux/configure.in: If arch_minimum_kernel was
2764         already set, don't set it or libc_cv_gcc_unwind_find_fde.
2765         * sysdeps/unix/sysv/linux/configure: Regenerated.
2767 2004-07-01  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2769         * sysdeps/s390/fpu/bits/mathinline.h [__LIBC_INTERNAL_MATH_INLINES]
2770         (__ieee754_sqrt): Define as __MATH_INLINE using sqdbr instruction.
2771         (__ieee754_sqrtf): Define as __MATH_INLINE using sqebr instruction.
2772         * sysdeps/s390/fpu/e_sqrt.c: New file.
2773         * sysdeps/s390/fpu/e_sqrtf.c: New file.
2774         * sysdeps/s390/Implies: New file.
2775         * sysdeps/s390/s390-32/Implies: Remove ieee754, move
2776         ieee754/dbl-64 and ieee754/flt-32 to s390/Implies.
2777         * sysdeps/s390/s390-64/Implies: Likewise.
2779 2004-06-30  Jakub Jelinek  <jakub@redhat.com>
2781         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Include tls.h.
2782         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2784         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (thread_start):
2785         DO_CALL (exit, 1) instead of branching to _exit.
2786         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (thread_start):
2787         Likewise.
2789         * sysdeps/s390/fpu/bits/mathinline.h: New file.
2791         * include/glob.h (glob64): Add libc_hidden_proto.
2792         * sysdeps/generic/glob64.c (glob64): Add libc_hidden_def.
2793         * sysdeps/gnu/glob64.c (glob64): Likewise.
2794         * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Likewise.
2796 2004-06-11  Jakub Jelinek  <jakub@redhat.com>
2798         * sysdeps/i386/fpu/libm-test-ulps: Update for GCC 3.4.
2799         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
2801 2004-06-11  Dwayne Grant McConnell  <dgm69@us.ibm.com>
2803         * sysdeps/powerpc/fpu/s_lround.c: Removed.
2804         * sysdeps/powerpc/fpu/s_lroundf.c: Removed.
2805         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: New file.
2806         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: New file.
2807         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: New file.
2808         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: New file.
2809         * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: Removed.
2810         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: New file.
2811         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: New file.
2812         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: New file.
2813         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: New file.
2814         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: New file.
2815         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: New file.
2816         * sysdeps/powerpc/powerpc32/fpu/s_round.S: New file.
2817         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: New file.
2818         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: New file.
2820 2004-06-30  Ulrich Drepper  <drepper@redhat.com>
2822         * include/net/if.h: Handle if_nameindex and if_freenameindex with
2823         libc_proto_hidden.
2824         * sysdeps/unix/sysv/linux/netlinkaccess.h: New file.
2825         * sysdeps/unix/sysv/linux/ifaddrs.c: Export netlink handling functions.
2826         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Implement using
2827         netlink if possible.  Fall back on ioctl method if necessary.
2828         * sysdeps/unix/sysv/linux/Dist: Add netlinkaccess.h.
2830         * include/unistd.h: Declare __truncate.
2831         * sysdeps/generic/truncate.c: Also define __truncate.
2832         * sysdeps/mach/hurd/truncate.c: Likewise.
2833         * sysdeps/unix/common/syscalls.list: Likewise.
2834         * sysdeps/unix/sysv/linux/truncate64.c: Use __truncate, not truncate.
2836 2004-06-29  Ulrich Drepper  <drepper@redhat.com>
2838         * stdio-common/printf-parsemb.c (__parse_one_specmb): Initialize
2839         info.extra.  Patch by Marcus Meissner.
2841 2004-06-29  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2843         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
2844         Fix branch offset for a PLT entry.
2846 2004-06-20  Jim Meyering  <jim@meyering.net>
2848         * malloc/obstack.h (obstack_base): Cast to `void *', to align with
2849         documentation.
2851 2004-06-28  Ulrich Drepper  <drepper@redhat.com>
2853         * inet/bug-if1.c (do_test): Simply use 0 as invalid index.
2854         Workaround for [BZ #232].
2856         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Use extend_alloca.
2858 2004-06-28  GOTO Masanori  <gotom@debian.or.jp>
2860         * iconv/gconv_simple.c: Use get16/put16 for user given buffer
2861         in ucs2/ucs2reverse when unaligned memory access is attempted.
2862         * iconv/tst-iconv5.c: New file.
2863         * iconv/Makefile (tests): Add tst-iconv5.
2865 2004-06-28  Jakub Jelinek  <jakub@redhat.com>
2867         * inet/bug-if1.c: Include <string.h>.
2869 2004-06-19  Roland McGrath  <roland@redhat.com>
2871         * sysdeps/posix/waitid.c (do_waitid) [DO_WAITID]: Define function
2872         under this macro name instead.
2873         [NO_DO_WAITID]: Don't define it at all.
2874         (do_waitid) [WNOWAIT, WEXITED]: If these POSIX.1 waitid flag bits are
2875         defined, then return ENOTSUP for combinations of selection bits other
2876         than WEXITED and WEXITED|WSTOPPED, which this version cannot support.
2878         * posix/tst-waitid.c: New file.
2879         * posix/Makefile (tests): Add it.
2881 2004-06-28  Jakub Jelinek  <jakub@redhat.com>
2883         * sysdeps/unix/alpha/sysdep.h (inline_syscall6): Fix a typo.
2885         [BZ #231]
2886         * sysdeps/unix/alpha/sysdep.S (__syscall_error): Avoid !samegp
2887         relocation in librt.so.
2889         [BZ #230]
2890         * sysdeps/alpha/dl-machine.h (_dl_start_user): Use ldah/ldl to load
2891         _dl_skip_args.  Patch by Jakub Bogusz <qboosh@pld-linux.org>.
2893 2004-06-27  Ulrich Drepper  <drepper@redhat.com>
2895         * elf/ldconfig.c (add_dir): Take chroot into account.
2896         Based on changes by HJ Lu and Hideki Iwamoto.
2898         * nscd/connections.c (invalidate_cache): If the host cache has to
2899         be invalidated, re-read resolv.conf.
2901         * resolv/resolv.h (RES_NOIP6DOTINT): Define.
2902         * resolv/res_init.c (res_setoptions): Handle no-ip6-dotint option.
2903         * resolv/gethnamaddr.c (gethostbyaddr): Don't lookup with .ip6.int
2904         if RES_NOIP6DOTINT flag is set.
2905         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
2907 2004-06-25  Jakub Jelinek  <jakub@redhat.com>
2909         * sysdeps/unix/sysv/linux/powerpc/fcntl.c: Move to...
2910         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fcntl.c: ... here.
2911         * sysdeps/unix/sysv/linux/powerpc/lockf64.c: Move to...
2912         * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: ... here.
2913         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: New file.
2915         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_GETLK, F_SETLK,
2916         F_SETLKW): Fix values for -m32 -D_FILE_OFFSET_BITS=64.
2918 2004-06-21  Jakub Jelinek  <jakub@redhat.com>
2920         [BZ #231]
2921         * sysdeps/unix/alpha/Makefile: New file.
2922         * sysdeps/unix/alpha/rt-sysdep.S: New file.
2923         Reported by Jakub Bogusz <qboosh@pld-linux.org>.
2925 2004-06-18  Ulrich Drepper  <drepper@redhat.com>
2927         * sysdeps/posix/getaddrinfo.c (gaih_inet): For AI_CANONNAME,
2928         determine the canonical name only for the first returned entry.
2930         * inet/bug-if1.c: New file.
2931         * inet/Makefile (tests): Add bug-if1.
2933 2004-06-18  Roland McGrath  <roland@frob.com>
2935         * Makerules (compile-mkdep-flags): Add -MT $@.
2937         * Makefile (dist, tag-for-dist): New targets.
2938         (files-for-dist, tag-of-stem): New variables.
2939         (glibc-%.tar glibc-linuxthreads-%.tar): New pattern rule.
2940         Make tar files using cvs export.
2941         (%.bz2, %.gz, tag-%): New pattern rules.
2942         (distribute): Variable removed.
2943         (+subdir_targets): Remove distinfo targets.
2944         (echo_subdirs, echo-distinfo, parent_echo-distinfo): Targets removed.
2945         (rpm/%): Pattern rule removed.
2946         * rpm/Makefile, rpm/rpmrc, rpm/template: Ancient cruft files removed.
2947         * Rules (subdir_echo-headers, subdir_echo-distinfo, subdir_dist):
2948         Targets removed.
2949         * Makerules (dist, subdir_distinfo): Targets removed.
2950         ($(objpfx)distinfo): Depend on $(distribute).
2951         * Make-dist: File removed.
2953         * NEWS: Fix a typo.  Update bug-reporting instructions.
2955 2004-06-17  Thorsten Kukuk  <kukuk@suse.de>
2957         * sysdeps/unix/sysv/linux/sched_setaffinity.c
2958         (__sched_setaffinity_new): Set errno to EINVAL and return -1 if
2959         cpuset is wrongly set.
2961 2004-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
2963         * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling
2964         for POWER4 machines.
2966 2004-06-14  Jakub Jelinek  <jakub@redhat.com>
2968         [BZ #218]
2969         * sunrpc/pmap_prot2.c (xdr_pmaplist): When freeing, remember pml_next
2970         in a local variable, point rp to that local variable afterwards.
2972 2004-06-11  Jakub Jelinek  <jakub@redhat.com>
2974         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Handle special
2975         cases properly.
2977 2004-06-17  Ulrich Drepper  <drepper@redhat.com>
2979         * sysdeps/unix/sysv/linux/if_index.c (if_indextoname): Correct
2980         error value for unknown interface. [BZ #198]
2982 2004-06-13  Jakub Jelinek  <jakub@redhat.com>
2984         * sysdeps/i386/bits/string.h (memcpy): Add () around arguments.
2985         (memchr, __memrchr, strlen, strcmp, strncmp, __strchr_g, __strchr_c,
2986         __strchrnul_g, __strchrnul_c, strspn, strcspn, strpbrk): Add memory
2987         the asm uses as its input, either of size __n where __n is known or
2988         0xfffffff.
2989         (strstr): Add "memory" clobber.
2991 2004-06-14  Jakub Jelinek  <jakub@redhat.com>
2993         [BZ #219]
2994         * nss/nsswitch.c (free_mem): Don't try to close a library handle
2995         if the handle is invalid.  Patch by David Kimdon <kimdon@esrf.fr>.
2997 2004-06-11  Dmitry V. Levin  <ldv@altlinux.org>
2999         [BZ #217]
3000         * debug/xtrace.sh: Fix typo in error diagnostics.
3002 2004-06-14  Andreas Schwab  <schwab@suse.de>
3004         * stdio-common/psignal.c (psignal): Don't use BUF when asprintf
3005         failed.
3007 2004-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
3009         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix pasto
3010         that clobbers r19.  Fix pasto that overflowed sigcontext.v_reserve.
3011         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Fix pasto
3012         that clobbers r19.
3013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Fix pasto
3014         that clobbers r19.  Fix pasto that overflowed sigcontext.v_reserve.
3015         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S:
3016         Fix setting of sigcontext.v_regs.  Fix pasto that clobbers r19.
3017         Fix pasto that overflowed sigcontext.v_reserve.
3018         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S:
3019         Fix pasto that clobbers r19.
3020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Fix setting
3021         of sigcontext.v_regs.  Fix pasto that clobbers r19.  Fix pasto that
3022         overflowed sigcontext.v_reserve.
3024 2004-05-04  H.J. Lu  <hongjiu.lu@intel.com>
3026         [BZ #150]
3027         * sysdeps/generic/strtol_l.c (DEF): Use ".gnu.linkonce.r."
3028         instead of ".gnu.linkonce.ro." as the prefix for linkonce
3029         read-only section name.
3031 2004-06-14  Richard Henderson  <rth@redhat.com>
3033         * sysdeps/alpha/div_libc.h (_ITOFS): Use "sp" not "$sp".
3034         (_ITOFT, _FTOIT, _ITOFT2): Likewise.
3036 2004-06-08  Jakub Jelinek  <jakub@redhat.com>
3038         * sysdeps/s390/s390-32/backtrace.c (init): Guard with #ifdef SHARED.
3039         (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
3040         (__backtrace): Don't call init #ifndef SHARED.
3041         * sysdeps/s390/s390-64/backtrace.c (init): Guard with #ifdef SHARED.
3042         (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
3043         (__backtrace): Don't call init #ifndef SHARED.
3044         * sysdeps/ia64/backtrace.c (init): Guard with #ifdef SHARED.
3045         (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
3046         (__backtrace): Don't call init #ifndef SHARED.
3048 2004-06-11  Roland McGrath  <roland@redhat.com>
3050         * sysdeps/arm/strlen.S [__ARMEB__]: Compute correctly for big-endian.
3051         From Krzysztof Halasa <khc@pm.waw.pl>.
3053 2004-06-10  Jakub Jelinek  <jakub@redhat.com>
3055         * elf/tls-macros.h [__s390x__] (TLS_LD, TLS_GD): Clobber also r14.
3057 2004-06-08  Jakub Jelinek  <jakub@redhat.com>
3059         [BZ #199]
3060         * crypt/md5-crypt.c (__md5_crypt): Only update buflen if realloc
3061         succeeds.  Reported by Miles Ohlrich <miles@cray.com>.
3063         * elf/chroot_canon.c (chroot_canon): Avoid segfault if first malloc
3064         fails.  Avoid memory leak if realloc fails.
3066 2004-06-09  Jakub Jelinek  <jakub@redhat.com>
3068         * sysdeps/generic/setenv.c (setenv): Return -1/EINVAL if name is
3069         NULL, "" or contains '=' character in it.  Reported by
3070         Michael T Kerrisk <mtk-lists@gmx.net>.
3071         * stdlib/tst-environ.c: Include errno.h.
3072         (main): Add tests for these arguments to setenv/unsetenv.
3074 2004-06-07  Roland McGrath  <roland@frob.com>
3076         * NEWS: Update bug reporting instructions.  Fix some typos.
3078 2004-06-05  Ulrich Drepper  <drepper@redhat.com>
3080         * stdio-common/_itoa.h: Don't expand _itoa inline for libc.
3081         * stdio-common/_itoa.c: Add _itoa implementation.
3083         * nscd/nscd_gethst_r.c (__nscd_open_socket): Change implementation
3084         to also send request.  Add parameter to allow this.
3085         Change callers.
3086         * nscd/nscd_getgr_r.c: Change __nscd_open_socket caller.
3087         * nscd/nscd_getpw_r.c: Likewise.
3088         * nscd/nscd-client.h: Change __nscd_open_socket prototype.
3090 2004-06-05  Andreas Jaeger  <aj@suse.de>
3092         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3093         Handle more than 6 args correctly.  Based on a patch by Masahide
3094         Washizawa <washi@jp.ibm.com>.
3096 2004-06-04  Ulrich Drepper  <drepper@redhat.com>
3098         * nscd/nscd_gethst_r.c (nscd_gethst_r): Use __nss_not_use_nscd_hosts
3099         in all places, not __nss_not_use_nscd_group.
3100         Reported by Philippe Gregoire.
3102 2004-06-03  Ulrich Drepper  <drepper@redhat.com>
3104         * sysdeps/i386/i486/bits/atomic.h: Optimize a bit.
3106 2004-05-07  Dmitry V. Levin  <ldv@altlinux.org>
3108         * argp/argp-help.c (__argp_error, __argp_failure): Check result
3109         of __asprintf call and don't use string if it failed.
3110         * stdio-common/psignal.c (psignal): Likewise.
3111         * locale/programs/localedef.c (more_help): Likewise.
3112         * resolv/res_hconf.c (arg_service_list, arg_trimdomain_list,
3113         arg_bool, parse_line): Check result of __asprintf calls and
3114         don't use string if they failed.
3115         * sunrpc/svc_simple.c (registerrpc, universal): Likewise.
3116         * elf/ldconfig.c (parse_conf_include): Check result of __asprintf
3117         call and exit if it failed.
3119 2004-05-10  Jakub Jelinek  <jakub@redhat.com>
3121         * sysdeps/posix/sysconf.c (__sysconf) <cases _SC_REALTIME_SIGNALS,
3122         _SC_PRIORITY_SCHEDULING, _SC_TIMERS, _SC_ASYNCHRONOUS_IO,
3123         _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO, _SC_FSYNC, _SC_MAPPED_FILES,
3124         _SC_MEMLOCK, _SC_MEMLOCK_RANGE, _SC_MEMORY_PROTECTION,
3125         _SC_MESSAGE_PASSING, _SC_SEMAPHORES, _SC_SHARED_MEMORY_OBJECTS,
3126         _SC_THREADS, _SC_THREAD_SAFE_FUNCTIONS, _SC_THREAD_ATTR_STACKADDR,
3127         _SC_THREAD_ATTR_STACKSIZE, _SC_THREAD_PRIORITY_SCHEDULING,
3128         _SC_THREAD_PRIO_INHERIT, _SC_THREAD_PRIO_PROTECT,
3129         _SC_THREAD_PROCESS_SHARED>: Return _POSIX_* value instead of 1.
3130         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
3131         <case _SC_MONOTONIC_CLOCK>: Return _POSIX_VERSION instead of 1.
3133 2004-05-07  Jeroen Dekkers  <jeroen@dekkers.cx>
3135         * sysdeps/mach/hurd/i386/Makefile (CFLAGS-init-first.c): Add
3136         -momit-leaf-frame-pointer.
3138         * inet/test-ifaddrs.c (addr_string): Surround AF_PACKET case with
3139         #ifdef AF_PACKET.
3141         * sysdeps/mach/hurd/getcwd.c
3142         (_hurd_canonicalize_directory_name_intern): Only realloc when
3143         size is <= 0.
3145         * sysdeps/mach/hurd/mmap.c (__mmap): Fail when addr or offset
3146         isn't page aligned.
3148         * sysdeps/mach/hurd/spawni.c (EXPAND_DTABLE): Set dtablesize to
3149         new size.
3151         * sysdeps/mach/hurd/Versions (GLIBC_PRIVATE): Add __libc_read,
3152         __libc_write and __libc_lseek64.
3154 2004-05-29  Roland McGrath  <roland@redhat.com>
3156         * elf/Makefile (shared-only-routines): Add dl-caller.
3158 2004-05-28  Ulrich Drepper  <drepper@redhat.com>
3160         * sysdeps/powerpc/configure.in: New file.
3162 2004-05-28  Steven Munroe  <sjmunroe@us.ibm.com>
3164         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Add .machine
3165         "altivec" to enable VMX instructions.
3166         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
3167         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
3168         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
3169         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
3170         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
3171         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
3172         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
3173         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
3174         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3176 2004-05-27  Jakub Jelinek  <jakub@redhat.com>
3178         * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Define using
3179         __builtin_expm1l for GCC 3.5+.
3180         (__expl): Define using __builtin_expl for GCC 3.4+.
3181         (exp, expf, expl): Don't define for GCC 3.4+.
3182         (tan, tanf, tanl): Don't define for GCC 3.5+.
3183         (__atan2l): Define using __builtin_atan2l for GCC 3.4+.
3184         (atan2, atan2f, atan2l): Don't define for GCC 3.4+ or !__FAST_MATH__.
3185         (fmod, fmodf, fmodl): Don't define for GCC 3.5+ or !__FAST_MATH__.
3186         (fabsf, fabsl): Only provide if __USE_MISC or __USE_ISOC99.
3187         (sin, sinf, sinl, cos, cosf, cosl, log, logf, logl): Don't define
3188         for GCC 3.4+.
3189         (log10, log10f, log10l, asin, asinf, asinl, acos, acosf, acosl):
3190         Don't define for GCC 3.5+.
3191         (atan, atanf, atanl): Don't define for GCC 3.4+ or !__FAST_MATH__.
3192         (log1p, log1pf, log1pl, logb, logbf, logbl, log2, log2f, log2l): Don't
3193         define for GCC 3.5+.
3194         (drem, dremf, dreml): Don't define for GCC 3.5+ or !__FAST_MATH__.
3195         * sysdeps/sparc/fpu/bits/mathinline.h (sqrt, sqrtf, sqrtl): Don't
3196         define for GCC 3.2+.
3198 2004-05-27  Jakub Jelinek  <jakub@redhat.com>
3200         * string/bits/string2.h (__bzero): Define even for GCC 3.0+.
3201         * sysdeps/alpha/stpcpy.S (stpcpy): Add libc_hidden_builtin_def.
3202         * sysdeps/alpha/alphaev67/stpcpy.S (stpcpy): Likewise.
3203         * sysdeps/powerpc/powerpc32/stpcpy.S (stpcpy): Likewise.
3204         * sysdeps/powerpc/powerpc64/stpcpy.S (stpcpy): Likewise.
3205         * sysdeps/sparc/sparc32/stpcpy.S (stpcpy): Likewise.
3206         * sysdeps/sparc/sparc64/stpcpy.S (stpcpy): Likewise.
3207         * sysdeps/i386/stpcpy.S (stpcpy): Likewise.
3208         * sysdeps/i386/i586/stpcpy.S (stpcpy): Likewise.
3209         * sysdeps/generic/stpcpy.c (stpcpy): Likewise.
3210         * sysdeps/x86_64/stpcpy.S (stpcpy): Likewise.
3211         * sysdeps/i386/i586/memcpy.S (memcpy): Remove
3212         libc_hidden_builtin_def if MEMPCPY_P.
3213         * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
3214         * sysdeps/i386/i686/mempcpy.S (mempcpy): Add libc_hidden_builtin_def.
3215         * sysdeps/i386/i586/mempcpy.S (mempcpy): Likewise.
3216         * sysdeps/generic/mempcpy.c (mempcpy): Likewise.
3217         * sysdeps/x86_64/mempcpy.S (mempcpy): Likewise.
3219 2004-05-26  Roland McGrath  <roland@frob.com>
3221         * sysdeps/generic/bits/in.h
3222         (IMPLINK_IP, IMPLINK_LOWEXPER, IMPLINK_HIGHEXPER): Macros removed.
3223         These are long obsolete in BSD systems where they originated.
3224         * conform/data/netinet/in.h-data: Remove `allow IMPLINK_*'
3226 2004-05-26  Jakub Jelinek  <jakub@redhat.com>
3228         * include/string.h (mempcpy, stpcpy): Add libc_hidden_builtin_proto.
3229         * string/bits/string2.h (memset): Disable macro for GCC 3.0+.
3230         (__mempcpy): Use __builtin_mempcpy for GCC 3.4+.
3231         (strchr): For GCC 3.2+, only use __rawmemchr if second argument is
3232         constant '\0' and first argument is not constant.
3233         (__stpcpy): Use __builtin_stpcpy for GCC 3.4+.
3234         (strncpy): Remove #ifdef _USE_STRING_ARCH_mempcpy variant.
3235         For GCC 3.2+ use __builtin_strncpy.
3236         (strncat): For GCC 3.2+ use __builtin_strncat.
3237         (strcmp): For GCC 3.2+ use __builtin_strcmp if both arguments are
3238         constant.
3239         (strcspn, strspn, strpbrk): For GCC 3.2+, use builtin function
3240         if both arguments are constant.
3242 2004-05-26  Ulrich Drepper  <drepper@redhat.com>
3244         * nss/nss_files/files-hosts.c: Fix condition for looking up IPv4
3245         mapped addresses in gethostbyaddr.
3247 2004-05-25  Ulrich Drepper  <drepper@redhat.com>
3249         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove typep and
3250         flags parameter, convert afp to simple int parameter.  Adjust code.
3251         typep was never != NULL and flags therefore also unused.  *afp is
3252         never modified.
3253         * nss/nsswitch.h: Adjust __nss_hostname_digits_dots prototype.
3254         * nss/getXXbyYY.c: Remove HAVE_TYPE handling.  Adjust af parameter
3255         handling for __nss_hostname_digits_dots calls.
3256         * nss/getXXbyYY_r.c: Likewise.
3258         * elf/dl-load.c (_dl_map_object_from_fd): Map DSOs with MAP_DENYWRITE.
3260 2004-05-25  Steven Munroe  <sjmunroe@us.ibm.com>
3262         * sysdeps/powerpc/fpu/Makefile: Make ld.so a dependency of libm.so.
3263         * sysdeps/powerpc/fpu/bits/mathinline.h [__LIBC_INERNAL_MATH_INLINES]
3264         (__ieee754_sqrt): Define as __MATH_INLINE using fsqrt instruction.
3265         (__ieee754_sqrtf): Define as __MATH_INLINE using fsqrts instruction.
3266         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Moved
3267         implementation from w_sqrt.c.
3268         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Moved
3269         implementation from w_sqrtf.c.
3270         * sysdeps/powerpc/fpu/w_sqrt.c (__sqrt): Wrapper implementation
3271         using inline __ieee754_sqrt().
3272         * sysdeps/powerpc/fpu/w_sqrtf.c (__sqrtf): Wrapper implementation
3273         using inline __ieee754_sqrtf().
3274         * sysdeps/powerpc/powerpc32/sysdep.h [__ASSEMBLER__]: Include
3275         <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__.
3276         * sysdeps/powerpc/sysdep.h [__ASSEMBLER__] (PPC_FEATURE_*): Define
3277         PPC_FEATURE_*  independent of __ASSEMBLER__.
3279 2004-05-25  Jakub Jelinek  <jakub@redhat.com>
3281         * sysdeps/pthread/aio_notify.c: Use <> instead of "" for aio_misc.h
3282         include.
3283         (aio_start_notify_thread): Define if not defined.
3284         (notify_func_wrapper): Use it.
3285         * sysdeps/pthread/aio_misc.c: Use <> instead of "" for aio_misc.h
3286         include.
3287         (aio_create_helper_thread): Define if not defined.
3288         (__aio_create_helper_thread): New function.
3289         (__aio_enqueue_request): Use aio_create_helper_thread.
3291         * nis/ypclnt.c (ypall_data, ypall_foreach): Remove.
3292         (struct ypresp_all_data): New type.
3293         (__xdr_ypresp_all): Change second argument to
3294         struct ypresp_all_data *.  Replace ypall_foreach and
3295         ypall_data with objp->foreach and objp->data.
3296         (yp_all): Remove status variable, add data.  Replace
3297         all uses of status with data.status.  Initialize data.foreach
3298         and data.data instead of ypall_foreach and ypall_data.
3300 2004-05-24  Jakub Jelinek  <jakub@redhat.com>
3302         * elf/dl-lookup.c (add_dependency): Set DF_1_NODELETE bit
3303         in l_flags_1, not in l_flags.
3305 2004-04-10  Robert Millan  <robertmh@gnu.org>
3307         * sysdeps/unix/sysv/linux/bits/in.h: Cosmetic fixes to get in sync
3308         with sysdeps/generic/bits/in.h.
3310 2004-05-25  Roland McGrath  <roland@frob.com>
3312         * sysdeps/generic/unwind-dw2-fde-glibc.c: Change copyright terms from
3313         GCC GPL to standard glibc LGPL.
3315 2004-05-24  Ulrich Drepper  <drepper@redhat.com>
3317         * manual/string.texi (Copying and Concatenation): Fixed second
3318         concat example.
3319         Reported by Fabian Pietsch <fabian@zzznowman.dyndns.org>.
3321 2004-05-23  Ulrich Drepper  <drepper@redhat.com>
3323         * malloc/obstack.c: Don't allow linking with _obstack.
3325 2004-05-23  Andreas Schwab  <schwab@suse.de>
3327         * sysdeps/m68k/m68020/bits/atomic.h: Use "+m" constraint instead
3328         of separate "m" constraints.
3330 2004-05-15  Chris Demetriou  <cgd@broadcom.com>
3332         * sysdeps/mips/dl-machine.h (ELF_DL_FRAME_SIZE)
3333         (ELF_DL_SAVE_ARG_REGS, ELF_DL_RESTORE_ARG_REGS): For the N32
3334         and 64 ABIs, save and restore regs $10 and $11 (a6 and a7).
3336 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
3338         * malloc/obstack.c (_obstack) [!defined _LIBC]: Remove; not used.
3339         Add comment explaining why libc still defines it.
3341 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3343         * malloc/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
3344         obstack_alignment_mask, obstack_alloc, obstack_base,
3345         obstack_blank, obstack_blank_fast, obstack_chunk_size,
3346         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
3347         obstack_grow0, obstack_init, obstack_int_grow,
3348         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
3349         obstack_next_free, obstack_object_size, obstack_ptr_grow,
3350         obstack_ptr_grow_fast, obstack_room): Remove declarations of
3351         nonexistent functions.
3353 2004-05-18  Steven Munroe  <sjmunroe@us.ibm.com>
3355         * sysdeps/powerpc/powerpc64/sysdep.h [__ASSEMBLER__]: Include
3356         <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__.
3357         [PIC]: Redundent for powerpc64, removed.
3358         (ENTRY): Generate size and alignment for opd entry.
3359         (EALIGN): Generate size and alignment for opd entry.
3360         (END): Use DOT_LABEL in ASM_SIZE_DIRECTIVE.
3361         (END_GEN_TB): Use DOT_LABEL in ASM_SIZE_DIRECTIVE.
3363 2004-05-19  Ulrich Drepper  <drepper@redhat.com>
3365         * misc/regexp.h: Say the functions have been withdrawn.
3367         * wcsmbs/tst-wcpncpy.c: Add more tests.
3369 2004-05-18  Roland McGrath  <roland@frob.com>
3371         * sysdeps/generic/unwind.h: Change copyright terms from GCC GPL to
3372         standard glibc LGPL.
3373         * sysdeps/generic/unwind-dw2.c: Likewise.
3374         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
3375         * sysdeps/generic/unwind-dw2-fde.h: Likewise.
3376         * sysdeps/generic/unwind-pe.h: Likewise.
3378 2004-05-15  Petter Reinholdtsen  <pere@hungry.com>
3380         * locale/iso-3166.def: Remove YUGOSLAVIA and insert "SERBIA AND
3381         MONTENEGRO" which have taken over the code 819.  Patch from
3382         Danilo Segan. [BZ #40]
3384 2004-05-15  Jakub Jelinek  <jakub@redhat.com>
3386         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3387         (SYSCALL_ERROR_HANDLER): Rename __sparc.get_pic.l7 to
3388         __sparc_get_pic_l7.
3390 2004-05-15  Joseph S. Myers  <jsm@polyomino.org.uk>
3392         * catgets/gencat.c: Update bug reporting instructions.
3393         * csu/version.c: Likewise.
3394         * debug/catchsegv.sh: Likewise.
3395         * debug/pcprofiledump.c: Likewise.
3396         * debug/xtrace.sh: Likewise.
3397         * elf/ldd.bash.in: Likewise.
3398         * iconv/iconv_prog.c: Likewise.
3399         * iconv/iconvconfig.c: Likewise.
3400         * locale/programs/locale.c: Likewise.
3401         * locale/programs/localedef.c: Likewise.
3402         * login/programs/pt_chown.c: Likewise.
3403         * malloc/memusage.sh: Likewise.
3404         * malloc/memusagestat.c: Likewise.
3405         * malloc/mtrace.pl: Likewise.
3406         * manual/crypt.texi: Likewise.
3407         * manual/install.texi: Likewise.
3408         * nss/makedb.c: Likewise.
3410 2004-05-14  Jakub Jelinek  <jakub@redhat.com>
3412         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Only
3413         CHECK_STATIC_TLS if sym != NULL.
3414         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
3415         * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
3417 2004-05-12  Andreas Schwab  <schwab@suse.de>
3419         * posix/regex_internal.c (build_wcs_buffer): Also set pstr->mbs
3420         when translating.
3422 2004-05-13  H.J. Lu  <hongjiu.lu@intel.com>
3424         * Rules (xtests): Depend on tests.
3426 2004-05-13  Jakub Jelinek  <jakub@redhat.com>
3428         * libio/genops.c (_IO_default_xsputn): Avoid one overflow per char if
3429         count is negative, yet write_ptr < write_end.
3430         (_IO_default_xsgetn): Avoid one underflow per char if count is
3431         negative, yet read_ptr < read_end.
3433 2004-05-12  Steven Munroe  <sjmunroe@us.ibm.com>
3435         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XTABS): Define XTABS
3436         equal to TAB3.
3438 2004-05-12  Ulrich Drepper  <drepper@redhat.com>
3440         * elf/dl-lookup.c (_dl_lookup_symbol_x): Correct _dl_signal_cerror
3441         call.
3443 2004-05-10  Roland McGrath  <roland@frob.com>
3445         * hurd/hurdlookup.c (__hurd_file_name_split): Return ENOENT for "".
3446         (__hurd_directory_name_split): Likewise.
3448 2004-05-10  Ulrich Drepper  <drepper@redhat.com>
3450         * po/fr.po: Update from translation team.
3452 2004-05-10  Andreas Jaeger  <aj@suse.de>
3454         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3455         Correctly compute alignment.
3456         Patch by Michael Matz <matz@suse.de>.
3458 2004-05-09  Ulrich Drepper  <drepper@redhat.com>
3460         * sysdeps/generic/sigpause.c: Prevent sigpause prototype.
3461         * sysdeps/posix/sigpause.c: Likewise.
3462         * signal/signal.h: Don't define sigpause macro unless needed.
3464 2004-05-08  Jakub Jelinek  <jakub@redhat.com>
3466         * configure.in (libc_cv_libgcc_s_suffix): New check.
3467         (libc_cv_as_needed): Use -lgcc_s$libc_cv_libgcc_s_suffix.
3468         * config.make.in (libgcc_s_suffix): Set.
3469         * Makeconfig (libgcc_eh): Use -lgcc_s$(libgcc_s_suffix).
3471 2004-05-08  Ulrich Drepper  <drepper@redhat.com>
3473         * signal/signal.h: Use BSD sigpause only if BSD behavior is preferred.
3475 2004-04-29  Steven Munroe  <sjmunroe@us.ibm.com>
3477         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_1,
3478         LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6):
3479         Load argument values into temporary variables.
3480         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_1,
3481         LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6):
3482         Likewise.
3484 2004-05-07  Ulrich Drepper  <drepper@redhat.com>
3486         * sysdeps/unix/sysv/linux/Makefile: mq_send.c and mq_receive.c
3487         need to be compiled with exceptions.
3489 2004-05-06  Ulrich Drepper  <drepper@redhat.com>
3491         * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Fix memory handling.
3492         * sysdeps/generic/ifreq.c (__ifreq): Fix memory handling.
3494         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Make clear that
3495         realloc cannot fail.
3497         * nss/nss_files/files-netgrp.c (EXPAND): Free buffer which cannot
3498         be expanded.
3500         * nis/nis_table.c: Clean up memory handling.
3501         * nis/nis_subr.c (nis_getnames): Clean up memory handling.
3502         * nis/nis_removemember.c (nis_removemember): Add comment
3503         explaining use of realloc.
3505         * math/tgmath.h (fabs): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL.
3506         (carg): Likewise.
3507         Patch by Lev S Bishop <lev.bishop@yale.edu>.
3509         * math/bug-tgmath1.c (main): Test fabs and carg as well.
3511 2004-05-06  Richard Henderson  <rth@redhat.com>
3513         * elf/elf.h (AT_L1I_CACHESHAPE, AT_L1D_CACHESHAPE,
3514         AT_L2_CACHESHAPE, AT_L3_CACHESHAPE): New.
3515         * sysdeps/unix/sysv/linux/alpha/Versions: Export
3516         __libc_alpha_cache_shape as a private symbol.
3517         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c: New file.
3518         * sysdeps/unix/sysv/linux/alpha/sysconf.c: New file.
3520 2004-05-06  Richard Henderson  <rth@redhat.com>
3522         * sysdeps/alpha/div_libc.h (_ITOFS, _ITOFT, _FTOIT, _ITOFT2): New.
3523         * sysdeps/alpha/divl.S: Use them.
3524         * sysdeps/alpha/divq.S: Likewise.
3525         * sysdeps/alpha/divqu.S: Likewise.
3526         * sysdeps/alpha/reml.S: Likewise.
3527         * sysdeps/alpha/remq.S: Likewise.
3528         * sysdeps/alpha/remqu.S: Likewise.
3530 2004-05-06  Ulrich Drepper  <drepper@redhat.com>
3532         * math/tgmath.h (__TGMATH_UNARY_REAL_IMAG_RET_REAL):Define.
3533         (cimag): Use it.
3534         (creal): Likewise.
3535         * math/Makefile (tests): Add bug-tgmath1.
3536         * math/bug-tgmath1.c: New file.
3538 2004-05-05  Jakub Jelinek  <jakub@redhat.com>
3540         * sysdeps/alpha/atomicity.h: Remove.
3541         * sysdeps/generic/atomicity.h: Remove.
3543 2004-05-05  H.J. Lu  <hongjiu.lu@intel.com>
3545         * sysdeps/i386/i486/bits/string.h (strpbrk): Cast return to
3546         char *.
3548 2004-04-22  David Mosberger  <davidm@hpl.hp.com>
3550         * sysdeps/unix/sysv/linux/ia64/Makefile (librt-routines): Mention
3551           rt-sysdep.
3552         * sysdeps/unix/sysv/linux/ia64/rt-sysdep.S: New file.
3554         * sysdeps/ia64/strcat.c: New file.
3555         * sysdeps/ia64/strcat.S: Delete.
3557 2004-05-04  Jakub Jelinek  <jakub@redhat.com>
3559         * sysdeps/unix/sysv/linux/ia64/sysdep.S (USE___THREAD): Remove
3560         defined.
3562 2004-04-23  Jakub Jelinek  <jakub@redhat.com>
3564         * sysdeps/ia64/fpu/libm_support.h (__libm_error_support): Add
3565         libc_hidden_proto.  Define to __GI___libm_error_support for
3566         assembly going into libc.so.
3567         * sysdeps/ia64/fpu/libc_libm_error.c (__libm_error_support): Add
3568         libc_hidden_def.
3570         * include/libc-symbols.h (HIDDEN_BUILTIN_JUMPTARGET): Define.
3571         * sysdeps/ia64/bcopy.S (bcopy): Use it for jump to memmove.
3573         * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Access
3574         gprel errno if RTLD_PRIVATE_ERRNO or __thread __libc_errno/errno
3575         if USE___THREAD.
3577 2004-05-03  Jakub Jelinek  <jakub@redhat.com>
3579         * sysdeps/unix/bsd/bits/fcntl.h (F_SETOWN, F_GETOWN): Define if
3580         __USE_BSD or __USE_UNIX98.
3581         * sysdeps/unix/bsd/ultrix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3582         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3583         * sysdeps/unix/bsd/sun/sunos4/bits/fcntl.h (F_SETOWN, F_GETOWN):
3584         Likewise.
3585         * sysdeps/unix/common/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3586         * sysdeps/unix/sysv/aix/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3587         * sysdeps/unix/sysv/irix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3588         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_SETOWN, F_GETOWN):
3589         Likewise.
3590         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_SETOWN, F_GETOWN):
3591         Likewise.
3592         * sysdeps/unix/sysv/linux/cris/bits/fcntl.h (F_SETOWN, F_GETOWN):
3593         Likewise.
3594         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (F_SETOWN, F_GETOWN):
3595         Likewise.
3596         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_SETOWN, F_GETOWN):
3597         Likewise.
3598         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN, F_GETOWN):
3599         Likewise.
3600         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (F_SETOWN, F_GETOWN):
3601         Likewise.
3602         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (F_SETOWN, F_GETOWN):
3603         Likewise.
3604         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (F_SETOWN, F_GETOWN):
3605         Likewise.
3606         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (F_SETOWN, F_GETOWN):
3607         Likewise.
3608         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (F_SETOWN, F_GETOWN):
3609         Likewise.
3610         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (F_SETOWN, F_GETOWN):
3611         Likewise.
3612         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_SETOWN, F_GETOWN):
3613         Likewise.
3614         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3615         * sysdeps/mach/hurd/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3616         * io/sys/stat.h (S_ISSOCK, S_IFSOCK): Likewise.
3618 2004-05-01  Jakub Jelinek  <jakub@redhat.com>
3620         * posix/Versions (libc): Remove __libc_wait, __libc_waitpid,
3621         __libc_pause, __libc_nanosleep, __libc_pread, __libc_pread64,
3622         __libc_pwrite64, __waitid and __pselect @@GLIBC_PRIVATE.
3623         * stdlib/Versions (libc): Remove __on_exit@@GLIBC_PRIVATE.
3624         * sysdeps/unix/sysv/linux/Versions (libc): Remove
3625         __libc_sigaction@@GLIBC_PRIVATE.
3626         * sysdeps/unix/sysv/linux/x86_64/Versions (libc): Remove
3627         __modify_ldt@@GLIBC_PRIVATE.
3628         * socket/Versions (libc): Remove __libc_accept, __libc_send,
3629         __libc_recvfrom, __libc_recvmsg, __libc_sendmsg, __libc_recv,
3630         __libc_sendto and __libc_connect @@GLIBC_PRIVATE.
3631         * stdio-common/Versions (libc): Remove
3632         _itoa_upper_digits@@GLIBC_PRIVATE.
3633         * resolv/Versions (libresolv): Remove __ns_samename@@GLIBC_PRIVATE.
3634         * misc/Versions (libc): Remove __libc_fsync, __libc_msync,
3635         __libc_readv and __libc_writev @@GLIBC_PRIVATE.
3636         * termios/Versions (libc): Remove __libc_tcdrain@@GLIBC_PRIVATE.
3637         * io/Versions (libc): Remove __libc_open, __libc_close, __libc_read,
3638         __libc_write, __libc_lseek, __libc_fcntl, __libc_open64 and
3639         __libc_lseek64 @@GLIBC_PRIVATE.
3641 2004-04-30  Jakub Jelinek  <jakub@redhat.com>
3643         * elf/dl-load.c (open_verify): Move e_phentsize check after e_type
3644         check.
3646 2004-04-29  Steven Munroe  <sjmunroe@us.ibm.com>
3648         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: New file.
3649         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: New file.
3650         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: New file.
3651         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: New file.
3652         * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: Removed.
3653         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: New file.
3654         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Removed.
3655         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: New file.
3656         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: New file.
3657         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: New file.
3658         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: New file.
3659         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: New file.
3660         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: New file.
3661         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: New file.
3662         * sysdeps/powerpc/powerpc64/fpu/s_round.S: New file.
3663         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: New file.
3664         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: New file.
3665         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: New file.
3667         * math/test-misc.c [LDBL_MANT_DIG == 106](main): Correct LDBL_MAX
3668         mantissa for AIX long double format.
3669         * misc/qefgcvt.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Define for AIX
3670         long double format.
3671         * misc/qefgcvt_r.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Likewise.
3672         * stdlib/fpioconst.c [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024]
3673         (_fpioconst_pow10): AIX long double format has same exponent range as
3674         double.
3675         * stdlib/fpioconst.h [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024]
3676         (LDBL_MAX_10_EXP_LOG): AIX long double format has same exponent range
3677         as double.
3679 2004-04-23  Art Haas  <ahaas@airmail.net>
3681         * sysdeps/unix/sysv/linux/kernel-features.h: Add 'defined'.
3683 2004-04-28  Carlos O'Donell  <carlos@baldric.uwo.ca>
3685         * sysdeps/unix/sysv/linux/mq_getattr.c: Include <stddef.h>.
3686         * sysdeps/unix/sysv/linux/mq_notify.c: Likewise.
3687         * sysdeps/unix/sysv/linux/mq_open.c: Likewise.
3688         * sysdeps/unix/sysv/linux/mq_receive.c: Likewise.
3689         * sysdeps/unix/sysv/linux/mq_send.c: Likewise.
3691 2004-04-29  Philip Blundell  <pb@nexus.co.uk>
3693         * sysdeps/arm/dl-machine.h (RTLD_START): Avoid unnecessary GOT
3694         entries.
3696 2004-04-29  Jakub Jelinek  <jakub@redhat.com>
3698         * manual/resource.texi (sched_setaffinity, sched_getaffinity): Fix
3699         prototypes and description [BZ #131].
3701         * string/bits/string2.h (strpbrk): Cast NULL to char * [BZ #130].
3702         Patch by Ed Catmur <ed@catmur.co.uk>.
3703         * string/tst-inlcall.c (main): Add test for strpbrk.
3705         [BZ #140]
3706         * sysdeps/unix/sysv/linux/sys/sysctl.h: Remove linux/compiler.h
3707         include.
3708         (_LINUX_KERNEL_H, _LINUX_TYPES_H, _LINUX_LIST_H): Only define if not
3709         yet defined, #undef back after including linux/sysctl.h if defined
3710         here.
3711         (__LINUX_COMPILER_H, __user): Define if not yet defined, #undef
3712         back after including linux/sysctl.h if defined here.
3714         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c (_Qp_qtoi): Use %f31
3715         for single precision register, add it to __asm clobbers [BZ #139].
3716         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c (_Qp_qtoui): Use %f31
3717         for single precision register, add it to __asm clobbers.
3718         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c (_Qp_qtoux): Use fqtox
3719         instead of fqtoi in QP_HANDLE_EXCEPTIONS.
3720         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c (_Qp_qtox): Likewise.
3721         Reported by M. H. VanLeeuwen <vanl@megsinet.net>.
3723 2004-04-23  Andreas Schwab  <schwab@suse.de>
3725         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Use
3726         __attribute_used__.
3728 2004-04-22  Philip Blundell  <philb@gnu.org>
3730         * sysdeps/arm/dl-machine.h (elf_machine_rela): Don't use INTUSE
3731         when calling _dl_signal_error.
3732         (elf_machine_rel): Likewise.
3734 2004-04-21  Ulrich Drepper  <drepper@redhat.com>
3736         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Define _GI___sigsetjmp
3737         and use it internally instead of __sigsetjmp.
3738         * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Use _GI___libm_frexp_4f.
3739         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Use _GI___libm_frexp_4l.
3740         * sysdeps/ia64/fpu/libm_frexp4.S: Define _GI___libm_frexp_4.
3741         * sysdeps/ia64/fpu/libm_frexp4f.S: Define _GI___libm_frexp_4f.
3742         * sysdeps/ia64/fpu/libm_frexp4l.S: Define _GI___libm_frexp_4l.
3743         * sysdeps/ia64/fpu/s_frexp.c (frexp): Use _GI___libm_frexp_4.
3744         * sysdeps/ia64/fpu/libm_support.h: Declare _GI___libm_frexp_4,
3745         _GI___libm_frexp_4f, _GI___libm_frexp_4l.
3746         * sysdeps/ia64/fpu/bits/mathinline.h: New file.
3747         * sysdeps/unix/sysv/linux/ia64/__start_context.S: Use
3748         HIDDEN_JUMPTARGET for exit call.
3749         * sysdeps/unix/sysv/linux/ia64/clone2.S: Use HIDDEN_JUMPTARGET for
3750         _exit call.
3751         * sysdeps/ia64/bcopy.S: Use HIDDEN_JUMPTARGET for memmove call.
3752         * sysdeps/ia64/strcat.S: Use HIDDEN_JUMPTARGET for strlen and
3753         strcpy calls.
3755 2004-04-21  Jakub Jelinek  <jakub@redhat.com>
3757         * posix/tst-chmod.c (do_test): Fix a typo.
3759         * elf/lateglobal.c (main): Fix error checks.
3760         Patch by Stephen Clarke <stephen.clarke@st.com>.
3762         * manual/ctype.texi (isblank, iswblank): Mark as ISO functions,
3763         mention they have been added in ISO C99.
3764         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3766 2004-03-31  H.J. Lu  <hongjiu.lu@intel.com>
3768         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Fix typo.
3770 2004-04-20  Jakub Jelinek  <jakub@redhat.com>
3772         * sysdeps/unix/sysv/linux/shm_open.c (shm_unlink): Change EPERM into
3773         EACCES.
3775 2004-04-20  Jakub Jelinek  <jakub@redhat.com>
3777         * stdio-common/vfscanf.c (_IO_vfscanf): Revert last %% whitespace
3778         handling change.
3779         * stdio-common/tst-sscanf.c (int_tests): Adjust.
3781         * nis/nss-nis.c: Include stdlib.h.
3783         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Shut up a
3784         warning.
3785         * sysdeps/sparc/sparc64/memcmp.S (memcmp): Remove BP_SYM () from
3786         libc_hidden_builtin_def.
3788 2004-04-20  Jim Meyering  <jim@meyering.net>
3790         * misc/error.c (error_tail): Don't leak upon realloc failure.
3792 2004-04-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3794         * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable):
3795         Use RETURN_ADDRESS instead of __builtin_return_address.
3797 2004-04-19  Ulrich Drepper  <drepper@redhat.com>
3799         * sysdeps/unix/sysv/linux/mq_unlink.c: Rewrite to produce more
3800         compact code.
3802 2004-04-20  Jakub Jelinek  <jakub@redhat.com>
3804         * stdio-common/vfscanf.c (_IO_vfscanf): When skipping whitespace,
3805         do input_error () instead of conv_error () and don't look at errno.
3806         Don't eat any whitespace before %% if skip_space == 0.
3807         * stdio-common/tst-sscanf.c (int_tests): New array.
3808         (main): Run int_tests.
3811 See ChangeLog.14 for earlier changes.