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