1 2004-10-07 Andreas Schwab <schwab@suse.de>
3 * misc/sys/uio.h: Change __vector to __iovec to avoid clash with
6 2004-10-06 Alan Modra <amodra@bigpond.net.au>
8 * gmon/Makefile (CFLAGS-mcount.c): Move before inclusion of "Rules".
9 * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-mcount.c): Add
11 * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): New macros.
12 (CALL_MCOUNT): Replace with a gas macro implementation.
13 (EALIGN): Delete PROF version.
14 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Invoke CALL_MCOUNT.
15 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Likewise.
16 * sysdeps/powerpc/powerpc64/bsd-setjmp.S: Likewise.
17 * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
18 * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
19 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
20 * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
21 * sysdeps/powerpc/powerpc64/strchr.S: Likewise.
22 * sysdeps/powerpc/powerpc64/strcmp.S: Likewise.
23 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
24 * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
25 * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
26 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
27 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
28 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
29 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
30 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
31 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
32 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
33 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
34 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
35 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
36 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
37 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
38 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
39 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
40 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
42 * sysdeps/powerpc/powerpc64/setjmp-common.S: Add extra entry point
44 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Use it.
45 * sysdeps/powerpc/powerpc64/bsd-setjmp.S: Likewise.
47 2004-10-06 Ulrich Drepper <drepper@redhat.com>
49 * resolv/res_mkquery.c (res_nmkquery): Reject randombits value if
52 2004-10-06 Jakub Jelinek <jakub@redhat.com>
54 * posix/tst-getaddrinfo2.c: Include stdlib.h and string.h.
55 (do_test): Use %p instead of 0x%08X to print a pointer.
57 * malloc/malloc.c: Include stdio-common/_itoa.h.
59 2004-10-05 Ulrich Drepper <drepper@redhat.com>
61 * elf/rtld.c (dl_main): Use _dl_debug_printf instead of _dl_printf
64 2004-10-05 Jakub Jelinek <jakub@redhat.com>
66 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Include dl-sysdep.h.
67 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
69 2004-10-05 Ulrich Drepper <drepper@redhat.com>
71 * grp/initgroups.c: Remove duplicate group IDs.
72 * grp/compat-initgroups.c: Likewise.
73 * nscd/initgrcache.c: Likewise.
75 2004-10-05 Jakub Jelinek <jakub@redhat.com>
77 * sysdeps/unix/sysv/linux/x86_64/sysconf.c (__sysconf): Return 200112L
78 for _SC_CPUTIME or _SC_THREAD_CPUTIME.
80 * nscd/Makefile (nscd-cflags): Set to -DIS_IN_nscd=1, plus
81 -fpie if building PIE.
84 * nscd/Makefile (relro-LDFLAGS): Add -Wl,-z,now if have-z-relro.
85 ($(objpfx)nscd): Add $(relro-LDFLAGS).
87 * sysdeps/unix/sysv/linux/i386/sysconf.c: Include hp-timing.h.
88 (__sysconf): Return -1 for _SC_CPUTIME or _SC_THREAD_CPUTIME if
91 2004-10-05 Ulrich Drepper <drepper@redhat.com>
93 * nscd/Makefile (distribute): Remove TODO.
96 2004-10-04 Ulrich Drepper <drepper@redhat.com>
98 * nscd/gai.c: Define __no_netlink_support if NEED_NETLINK is
99 defined and __ASSUME_NETLINK_SUPPORT is zero.
100 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gai.c): Add
103 * malloc/mtrace.pl: Avoid calling location unless it is needed for
104 output. Patch by Edward Bishop <binutils@gmail.com>.
106 * nscd/Makefile (CFLAGS-gai.c): Add -fpie.
108 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
110 * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c
111 (clock_getcpuclockid): Add missing retval.
113 * sysdeps/unix/sysv/linux/ia64/sysconf.c (linux_sysconf): Fix a typo.
115 2004-10-04 Roland McGrath <roland@redhat.com>
117 * include/errno.h [RTLD_PRIVATE_ERRNO] (errno): Rename the real symbol
119 * sysdeps/generic/errno.c [RTLD_PRIVATE_ERRNO] (rtld_errno): Define it,
120 and don't define any other errno names.
121 * sysdeps/unix/alpha/sysdep.h [RTLD_PRIVATE_ERRNO]: Use rtld_errno in
123 * sysdeps/unix/i386/sysdep.S: Likewise.
124 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
125 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
126 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
127 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
128 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
129 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
130 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
131 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
132 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
133 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
134 * sysdeps/unix/x86_64/sysdep.S: Likewise.
136 * sysdeps/generic/errno.c [! USE___THREAD] (errno): Use `nocommon'
137 attribute instead of `section'.
139 2004-10-04 Ulrich Drepper <drepper@redhat.com>
141 * sysdeps/unix/sysv/linux/ia64/sysconf.c: New file.
142 * sysdeps/unix/sysv/linux/ia64/Dist: Add has_cpuclock.c.
143 * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c: Move actual
145 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: ...here. New file.
146 * sysdeps/unix/sysv/linux/i386/sysconf.c: Add dynamic check for
147 _SC_CPUTIME and _SC_THREAD_CPUTIME.
149 * nscd/connections.c (start_threads): Use sysconf in case
150 _POSIX_CLOCK_SELECTION or _POSIX_MONOTONIC_CLOCK is not greater zero.
152 * nscd/Makefile (nscd-modules): Add gai.
153 * nscd/gai.c: New file.
154 * nscd/nscd.c: Remove getaddrinfo stub definition.
156 * assert/assert.h: Give up on using __builtin_expect.
158 * elf/rtld.c (dl_main): Only skip => output in ldd mode if both
159 strings are identical.
161 2004-03-18 Jakub Jelinek <jakub@redhat.com>
163 * malloc/arena.c (aligned_heap_area): New variable.
164 (new_heap): If aligned_heap_area != NULL, attempt to use that
165 first. If HEAP_MAX_SIZE << 1 area is already HEAP_MAX_SIZE bytes
166 aligned, remember the second half in aligned_heap_area.
167 (delete_heap): Clear aligned_heap_area if deleting the area right
168 before aligned_heap_area.
170 2004-10-03 Juerg Billeter <j@bitron.ch>
172 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Return -1 if nscd
173 can't be used. [BZ #424]
175 2004-10-03 Ulrich Drepper <drepper@redhat.com>
177 Dynamically create new threads if necessary.
178 * nscd/connections.c (fd_ready): If no thread available for processing
179 the request, create a new one unless the limit is reached.
180 (start_threads): Check errors from pthread_create.
181 * nscd/nscd.h: Declare max_nthreads.
182 * nscd/nscd_conf.c: Parse max-nthreads entry.
183 * nscd/nscd.conf: Add max-threads entry.
184 * nscd/nscd_stat.c: Print current and maximum number of threads.
186 Implement paranoia mode.
187 * nscd/connections.c (nscd_init): Mark database and socket descriptors
189 (restart): New function.
190 (restart_p): New function.
191 (nscd_run): Add missing descrement of nready in case readylist is
193 (main_loop_poll): Call restart_p and restart.
194 (main_loop_epoll): Likewise.
195 (begin_drop_privileges): Save original UID and GID.
196 * nscd/nscd.c: Define new variables paranoia, restart_time,
197 restart_interval, oldcwd, old_gid, old_uid.
198 (main): Disable paranoia mode if we are not forking.
199 (check_pid): When re-execing, the PID file contains the same PID as
200 the current process. Do not fail in this case.
201 * nscd/nscd.conf: Add paranoia and restart-interval entries.
202 * nscd/nscd.h: Define RESTART_INTERVAL. Declare new variables.
203 * nscd/nscd_conf.c: Parse paranoia and restart-internal configurations.
204 * nscd/nscd_stat.c: Print paranoia and restart-internal values.
206 * nscd/connections.c: Implement alternative loop for main thread
208 * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]
209 (CFLAGS-connections.c): Add -DHAVE_EPOLL.
211 2004-10-02 Ulrich Drepper <drepper@redhat.com>
213 * nscd/Makefile (CFLAGS-initgrcache.c): Add to CFLAGS-* variables,
214 don't replace old content.
216 * nscd/connections.c: Rewrite handling of incoming connections. All
217 are handled by one thread which then hands off the descriptors for the
218 real work to the worker threads.
219 * nscd/Makefile: Link nscd with librt.
221 * nscd/selinux.c: Pretty printing.
223 * nscd/dbg_log.c (dbg_log): Don't add unnecessary newline to
224 output. Let syslog do the formatting if debug_level == 0.
226 * nscd/nscd_helper.c (get_mapping): No need to check timestamp if
227 nscd_certainly_running is nonzero.
229 2004-10-02 Simon Josefsson <jas@extundo.com>
232 * sysdeps/generic/memmem.c [!_LIBC]: Define __builtin_expect, to
233 make the file usable inside gnulib.
235 2004-10-01 Ulrich Drepper <drepper@redhat.com>
237 * malloc/malloc.c (public_vALLOc): Add missing use of hooks.
238 (public_pVALLOc): Likewise.
240 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Always add the
241 group the caller provided unless there is a real problem.
243 * posix/bug-glob1.c (prepare): Fix creation of symlink.
245 2004-09-30 Ulrich Drepper <drepper@redhat.com>
247 * posix/Makefile: Add rules to build and run bug-glob1.
248 * posix/bug-glob1.c: New file.
250 * iconv/iconv_prog.c (main): Print progress information to stderr.
252 * nscd/nscd.c (termination_handler): Reset timestamp so that
253 clients immediately stop using the database.
255 * nscd/nscd-client.h (__nscd_get_map_ref): Drop volatile from last
257 (__nscd_drop_map_ref): Change second parameter to be a reference to
258 a variable. Update variable when cycle count changed.
259 * nscd/nscd_helper.c (__nscd_get_map_ref): Remove volatile here, too.
260 * nscd/nscd_getai.c: Correctly use __nscd_drop_map_ref. Reinitialize
261 all variables and avoid memory leak in case of retries.
262 * nscd/nscd_getgr_r.c: Likewise.
263 * nscd/nscd_gethst_r.c: Likewise.
264 * nscd/nscd_getpw_r.c: Likewise.
265 * nscd/nscd_initgroups.c: Likewise.
267 * nscd/nscd.h: Add declaration of addinitgroups and
270 2004-09-30 Andreas Jaeger <aj@suse.de>
272 * nscd/Makefile (CFLAGS-nscd_initgroups.c): Set to -fpie.
273 (CFLAGS-initgrcache.c): Set to -fexceptions.
275 2004-09-29 Ulrich Drepper <drepper@redhat.com>
277 * sysdeps/generic/glob.c (glob_in_dir): Don't blindly trust
278 readdir results; for symlinks or files of unknown type check using
279 stat whether the file exists.
281 * posix/tst-gnuglob.c (find_file): Handle leading "./". Fix
282 recognition of files.
284 2004-09-29 Jakub Jelinek <jakub@redhat.com>
286 * time/tzfile.c (tzfile_mtime): New variable.
287 (__tzfile_read): Reread the file if mtime is different.
289 2004-09-28 Jakub Jelinek <jakub@redhat.com>
291 * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf, __fdim, fdimf, fdim):
293 * sysdeps/powerpc/fpu/bits/mathinline.h (fdim, fdimf): Likewise.
294 * sysdeps/sparc/fpu/bits/mathinline.h (fdim, fdimf): Likewise.
296 2004-09-29 Ulrich Drepper <drepper@redhat.com>
298 * nscd/nscd_gethst_r.c (nscd_gethst_r): Use correct constant for
299 testing result of __nscd_get_map_ref.
301 2004-09-29 Jakub Jelinek <jakub@redhat.com>
303 * sysdeps/i386/fpu/s_fdim.S (__fdim): Handle +inf/+inf.
304 * sysdeps/i386/fpu/s_fdimf.S (__fdimf): Likewise.
305 * sysdeps/i386/fpu/s_fdiml.S (__fdiml): Likewise.
307 004-09-29 Ulrich Drepper <drepper@redhat.com>
309 * grp/initgroups.c: Move compat_call implementation...
310 * grp/compat-initgroups.c: ...to here. New file.
311 * grp/Makefile (distribute): Add compat-initgroups.c.
312 (CFLAGS-initgroups.c): Add -DUSE_NSCD=1.
313 * mscd/initgrcache.c: New file.
314 * nscd/nscd_initgroups.c: New file.
315 * nscd/Makefile (routines): Add nscd_initgroups.
316 (nscd-modules): Add initgrcache.
317 * nscd/cache.c (prune_cache): Add support for INITGROUPS entries.
318 * nscd/connections.c: Handle INITGROUPS requests.
319 * nscd/nscd-client.h: Define INITGROUPS, initgr_response_header.
320 Add initgrdata element to struct datahead. Fix typo in comment.
321 * nscd/nscd_proto.h: Declare __nscd_getgrouplist. Fix parameter
322 type in __nscd_getgrgrid_r.
323 * nscd/selinux.c (perms): Add INITGROUPS entry.
325 * nscd/nscd_getai.c: No need to include <sys/mman.h>.
327 * sunrpc/get_myaddr.c (get_myaddress): Account for interfaces without
329 * sunrpc/pmap_clnt.c (__get_myaddress): Likewise.
330 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
331 * sunrpc/clnt_udp.c (is_network_up): Likewise.
333 * nscd/nscd.c: Define getaddrinfo hidden so that it is never found
336 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (si_segvflags):
337 Renamed from si_flags due to conflict with si_flags from <elf.h>.
339 2004-09-28 Ulrich Drepper <drepper@redhat.com>
341 * nscd/nscd_getai.c: Use NO_MAPPING instead of MAP_FAILED for test
342 of failing __nscd_get_map_ref. Fix a few typos.
344 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Make sure
345 SIGSETXID is not blocked.
346 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Likewise.
347 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
348 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
349 * sysdeps/generic/sigfillset.c (sigfillset): Don't set SIGSETXID.
351 * sunrpc/get_myaddr.c (get_myaddress): Fix test for failing
353 * sunrpc/pmap_clnt.c (__get_myaddress): Likewise.
354 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
355 * sunrpc/Makefile (xtests): Add tst-getmyaddr.
356 * sunrpc/tst-getmyaddr.c: New file.
358 * malloc/arena.c (ptmalloc_init): Allow MALLOC_CHECK_==0 to
359 disable all checking.
361 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (si_flags): Add
362 support to get this value.
364 2004-09-28 Jakub Jelinek <jakub@redhat.com>
366 * io/utime.h (utime): Allow second argument to be NULL.
368 2004-09-28 Ulrich Drepper <drepper@redhat.com>
370 * sysdeps/posix/getaddrinfo.c (gaih_inet): If NAME is a numerical IP
371 address and AI_CANONNAME is set, return copy of NAME as ai_canonname.
373 2004-09-27 Andreas Jaeger <aj@suse.de>
375 * sysdeps/i386/dl-machine.h (elf_machine_rela_relative): Replace
376 static inline by auto inline, add always_inline attribute.
377 (elf_machine_rel): Likewise.
378 (elf_machine_rela): Likewise.
379 (elf_machine_lazy_rel): Likewise.
380 (elf_machine_lazy_rela): Likewise.
381 (elf_machine_rel_relative): Likewise.
383 2004-09-27 Ulrich Drepper <drepper@redhat.com>
385 * sunrpc/xdr_intXX_t.c: Add xdr_quad_t and xdr_u_quad_t aliases.
386 * sunrpc/rpc/xdr.h: Declare xdr_quad_t and xdr_u_quad_t.
387 * sunrpc/rpc_parse.c (get_type): Use "quad_t" for TOK_HYPER.
388 Otherwise isvectordef will loop infinitely if typedef hyper int64_t
390 (unsigned_dec): Use "u_quad_t" for similar reasons.
391 * sunrpc/Versions: Export xdr_quad_t and xdr_u_quad_t.
393 2004-09-27 Roland McGrath <roland@redhat.com>
395 * sysdeps/generic/bits/waitstatus.h (__WIFSIGNALED): Simplify bit
396 twiddling in last change.
398 * posix/tst-waitid.c (do_test): Add tests for waitpid with WCONTINUED.
401 * posix/sys/wait.h [__WIFCONTINUED] (WIFCONTINUED): New macro.
402 * stdlib/stdlib.h [__WIFCONTINUED] (WIFCONTINUED): New macro.
403 * sysdeps/generic/bits/waitstatus.h (__W_CONTINUED): New macro.
404 [WCONTINUED] (__WIFCONTINUED): New macro.
405 (__WIFSIGNALED): Rewritten to exclude __W_CONTINUED value, and have no
408 * sysdeps/unix/sysv/linux/waitid.c (do_waitid): Add fifth argument to
409 all three syscall uses, not just one!
411 2004-09-26 Richard Henderson <rth@redhat.com>
413 * sysdeps/alpha/alphaev6/memcpy.S: Mark .prologue.
414 * sysdeps/unix/alpha/sysdep.h (LEAF, ENTRY): Align entry points
415 to 16 byte boundaries.
417 2004-09-26 Ulrich Drepper <drepper@redhat.com>
419 * elf/readlib.c (process_file): Before complaining about too-short
420 file, check that it potentially be an ELF file. Also complain about
421 empty files. [BZ #151].
423 * scripts/test-installation.pl: Fix ld.so recognition for new
424 LD_TRACE_LOADED_OBJECTS output format.
425 Patch by <jsberg04+computing.glibc@ftml.net> [BZ #407].
427 * elf/dl-support.c (_dl_non_dynamic_init): Fix cleaning of
428 environment. [BZ #384]
430 * sunrpc/clnt_udp.c (is_network_up): Use getifaddrs instead of ioctl.
431 * sunrpc/get_myaddr.c (get_myaddress): Likewise.
432 * sunrpc/pmap_clnt.c (__get_myaddress): Likewise.
433 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise. Change interface
434 to avoid buffer overrun and remove now useless parameters.
435 (clnt_broadcast): Adjust caller. [BZ #381].
437 * sysdeps/generic/s_fdim.c: Handle +inf/+inf
438 * sysdeps/generic/s_fdimf.c: Likewise.
439 * sysdeps/generic/s_fdiml.c: Likewise.
440 * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
441 * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
442 * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
443 * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
444 * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
445 * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
446 * math/libm-test.inc (fdim_test): Add test case. [BZ #376].
448 * sysdeps/generic/bits/types.h: Fix __SQUAD_TYPE and __UQUAD_TYPE
449 for compilers without __GLIBC_HAVE_LONG_LONG. [BZ #362]
451 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Remove incorrect
452 requirement on socktype and protocol.
453 (gaih_inet): If numeric port number is given, return records for all
454 possible socket types.
455 * posix/tst-getaddrinfo2.c: New file.
456 * posix/Makefile (tests): Add tst-getaddrinfo2. [BZ #358]
458 2004-09-25 Ulrich Drepper <drepper@redhat.com>
460 * locale/loadlocale.c (_nl_intern_locale_data): Recognize LC_CTYPE
461 data where _nl_value_type_LC_CTYPE does not contain the type
462 information. Add range checks.
463 Reported by John Lumby <johnlumby@hotmail.com> [BZ #356].
465 * libio/vasprintf.c (_IO_vasprintf): Fix condition to decide
466 whether to realloc or not.
467 Reported by Pavel Kankovsky <peak@argo.troja.mff.cuni.cz> [BZ #346].
469 * intl/dcigettext.c (DCIGETTEXT): Protect tfind/tsearch calls.
470 * intl/dcigettext.c (_nl_find_msg): Call _nl_load_domain also if
472 * intl/finddomain.c (_nl_find_domain): Likewise.
473 * intl/loadmsgcat.c (_nl_load_domain): Set decided to 1 only once we
474 are done. First set to -1 to signal initialization is ongoing.
475 Protect against concurrent callers with recursive lock.
476 * intl/finddomain.c (_nl_find_domain): Protect calls to
477 _nl_make_l10nflist. [BZ #322]
479 * sysdeps/posix/getaddrinfo.c (getaddrinfo): If determinination of
480 source address fails, initialized source_addr_len field so that
481 duplicate address recognition does not copy junk.
483 2004-09-25 Jakub Jelinek <jakub@redhat.com>
485 * sysdeps/unix/sysv/linux/i386/setuid.c (__setuid): Remove second
488 2004-09-22 Andreas Schwab <schwab@suse.de>
490 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Adjust whitespace.
492 2004-09-24 Ulrich Drepper <drepper@redhat.com>
494 * misc/daemon.c (daemon): Don't succeed if /dev/null cannot be
497 * nis/ypclnt.c (do_ypcall): Add one missing unlock. Simplify the
500 * misc/daemon.c (daemon): Define errno in case /dev/null is not
503 * nis/ypclnt.c (yp_bind_file): Optimize a bit. Minimal cleanups.
505 2004-09-23 Andreas Jaeger <aj@suse.de>
507 * locale/weight.h (findidx): Remove static, it's not supported
508 anymore with GCC 4.0 in a block scope.
509 * locale/weightwc.h (findidx): Likewise.
510 * posix/regcomp.c (seek_collating_symbol_entry): Likewise.
511 (lookup_collation_sequence_value): Likewise.
512 (build_range_exp): Likewise.
513 (build_collating_symbol): Likewise.
514 * iconv/iconvconfig.c (write_output): Likewise.
515 * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
517 * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Remove
518 static, add always_inline attribute.
519 (elf_machine_rela): Likewise.
520 (elf_machine_lazy_rel): Likewise.
522 * elf/dynamic-link.h (elf_get_dynamic_info): Make static dependend
523 on !RESOLVE so that it's not defined in local scope.
525 2004-09-23 Kaz Kojima <kkojima@rr.iij4u.or.jp>
527 * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL_NCS): Define.
529 2004-09-23 Thorsten Kukuk <kukuk@suse.de>
531 * sysdeps/unix/sysv/linux/sys/mount.h: Sync MS_RMT_MASK flag
532 and BLK* ioctls with linux kernel headers.
534 2004-09-23 Ulrich Drepper <drepper@redhat.com>
536 * sysdeps/generic/bits/dlfcn.h: Add RTLD_DEEPBIND.
537 * elf/dl-object.c (_dl_new_object): Add new parameter mode. If mode
538 has RTLD_DEEPBIND set add local searchlist before global scope.
539 * sysdeps/generic/ldsodefs.h (_dl_new_object): Adjust prototype.
540 * elf/rtld.c: Adjust callers of _dl_new_object.
541 * elf/dl-load.c: Likewise.
542 (_dl_map_object_from_fd): If RTLD_DEEPBIND is used, don't do anything
544 * elf/dl-open.c (dl_open_writer): Pass RTLD_DEEPBIND flag on to
546 * elf/tst-deep1.c: New file.
547 * elf/tst-deep1mod1.c: New file.
548 * elf/tst-deep1mod2.c: New file.
549 * elf/tst-deep1mod3.c: New file.
550 * elf/Makefile: Add rules to build and run new tests.
552 * elf/dl-deps.c: Pretty printing.
554 2004-09-23 Jakub Jelinek <jakub@redhat.com>
556 * sysdeps/unix/alpha/sysdep.h (inline_syscall[0-6]): Change name
557 argument to numbers from syscall names.
558 (INLINE_SYSCALL1): Pass __NR_##name to inline_syscall##nr.
559 (INTERNAL_SYSCALL_NCS): Renamed from...
560 (INTERNAL_SYSCALL_1): ... this. Use INTERNAL_SYSCALL_NCS.
561 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
562 (INTERNAL_SYSCALL_NCS): Define.
563 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
564 (INTERNAL_SYSCALL_NCS): Likewise.
565 * sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall[0-6]):
566 Change name argument to numbers from syscall names.
567 (INLINE_SYSCALL, INTERNAL_SYSCALL): Adjust.
568 (INTERNAL_SYSCALL_NCS): Define.
570 2004-09-22 Ulrich Drepper <drepper@redhat.com>
572 * malloc/malloc.c (malloc_printerr): Use syslog if writev failed.
574 * string/string.h: Add __nonnull annotations.
575 * stdlib/stdlib.h: Likewise.
577 2004-09-20 H.J. Lu <hongjiu.lu@intel.com>
579 * sysdeps/unix/sysv/linux/ia64/sysdep.h (DO_INLINE_SYSCALL):
581 (DO_INLINE_SYSCALL_NCS): This.
582 (DO_INLINE_SYSCALL): New.
583 (INLINE_SYSCALL): Updated.
584 (INTERNAL_SYSCALL_NCS): Updated.
586 2004-09-21 Ulrich Drepper <drepper@redhat.com>
588 * elf/sprof.c (load_shobj): Add support for reading symbol table
591 * elf/ldd.bash.in: Fix syntax errors.
593 2004-09-20 Ulrich Drepper <drepper@redhat.com>
595 * sysdeps/unix/sysv/linux/dl-execstack.c
596 (_dl_make_stack_executable): Remove some duplication.
598 * nscd/nscd.c (options): Mark S option as hidden.
599 (parse_opt): When S option is used, print warning message.
600 * nscd/grpcache.c (adgrptbyX): Don't handle secure mode.
601 * nscd/hstcache.c (addhstbyX): Don't handle secure mode.
602 * nscd/aicache.c (addhstaiX): Don't handle secure mode.
603 * nscd/pwdcache.c (addpwbyX): Don't handle secure mode.
605 2004-09-20 Roland McGrath <roland@frob.com>
607 * elf/dl-load.c (__stack_prot): Only use PROT_GROWSUP/PROT_GROWSDOWN
608 in initializer #if defined.
610 2004-09-18 Paul Eggert <eggert@cs.ucla.edu>
613 * stdlib/getsubopt.c: Merge fixes from gnulib.
614 (__strchrnul) [!_LIBC]: Define and include "strchrnul.c".
615 (getsubopt): Use prototypes, not K&R style.
616 Fix bug: memcmp(A,B,N) was being invoked on a memory block B
617 whose size might be smaller than N. Use strncmp to avoid the bug.
619 2004-09-20 Ulrich Drepper <drepper@redhat.com>
621 * configure.in: If selinux has not explictly been requested, don't
622 comment on it missing.
624 * elf/dl-load.c: Define __stack_prot.
625 * sysdeps/unix/sysv/linux/dl-execstack.c: Don't define
626 __stack_prot here, just declare it.
628 2004-09-20 Jakub Jelinek <jakub@redhat.com>
630 * configure.in (libc_cv_z_relro): Only set to yes if linker script
631 contains DATA_SEGMENT_RELRO_END.
633 2004-09-20 Ulrich Drepper <drepper@redhat.com>
635 * elf/dl-load.c (_dl_map_object_from_fd): Add some error checking.
636 Reorder code slightly.
637 * elf/rtld.c (dl_main): No need to check whether l_info[DT_HASH]
638 is non-null, _dl_setup_hash will do that.
640 2004-09-19 Ulrich Drepper <drepper@redhat.com>
642 * sysdeps/unix/sysv/linux/setegid.c [HAVE_PTR__NPTL_SETXID]: Call
643 callback to set IDs in all other threads as well.
644 * sysdeps/unix/sysv/linux/seteuid.c: Likewise.
645 * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise.
646 * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise.
647 * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
648 * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
649 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
650 * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
651 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
652 * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
653 * sysdeps/unix/sysv/linux/setuid.c: New file.
654 * sysdeps/unix/sysv/linux/setgid.c: New file.
655 * sysdeps/unix/sysv/linux/setreuid.c: New file.
656 * sysdeps/unix/sysv/linux/setregid.c: New file.
657 * sysdeps/unix/sysv/linux/setresuid.c: New file.
658 * sysdeps/unix/sysv/linux/setresgid.c: New file.
659 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define INTERNAL_SYSCALL_NCS.
660 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
661 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
662 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
663 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
664 * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: Use x86 version.
665 * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: Likewise.
666 * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: New file.
667 * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: New file.
668 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Remove setresgid
670 * nscd/aicache.c: Use pthread_seteuid_np instead of seteuid.
671 * nscd/grpcache.c: Likewise.
672 * nscd/hstcache.c: Likewise.
673 * nscd/pwdcache.c: Likewise.
675 * resolv/res_mkquery.c (res_nmkquery): Fix typo.
677 2004-09-18 Ulrich Drepper <drepper@redhat.com>
679 * sysdeps/unisx/sysv/linux/dl-execstack.c: Get protection flag
681 * elf/dl-load.c (_dl_map_object_from_fd): Add PROT_EXEC flag to
684 * sysdeps/posix/getaddrinfo.c (gaih_inet): Do not use
685 gethostbyname3_r if we are not looking for the canonical name.
687 * resolv/res_mkquery.c (res_nmkquery): Randomize request ID every
690 2004-09-18 Roland McGrath <roland@redhat.com>
692 * sysdeps/unix/sysv/linux/waitid.c (do_waitid): Pass fifth argument to
695 2004-09-17 Ulrich Drepper <drepper@redhat.com>
697 * include/link.h (struct link_map): Add l_used element.
698 * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_UNUSED.
699 * elf/rtld.c (process_dl_debug): Recognize unused.
700 (dl_main): When unused debug flag is set check for unused direct
702 When printing dependencies and SONAME starts with /, omit the SONAME =>
704 * elf/dl-lookup.c (_dl_lookup_symbol_x): Mark object in which the
705 symbol has been found as used.
706 * elf/ldd.bash.in: Add -u option.
708 2004-09-18 Jakub Jelinek <jakub@redhat.com>
710 * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
711 Do nothing if __NR_set_tid_address is not defined. [BZ #390]
713 2004-09-17 Ulrich Drepper <drepper@redhat.com>
715 * sysdeps/posix/getaddrinfo.c: Use gethostbyname3_r NSS function
716 in case it is available.
718 2004-09-17 Jakub Jelinek <jakub@redhat.com>
720 * nscd/nscd.c (parse_opt): Write arg string instead of (void *)
723 2004-09-17 Ulrich Drepper <drepper@redhat.com>
725 * misc/sys/cdefs.h: Define __nonnull using nonnull function attribute
726 for gcc 3.3 and higher.
727 * io/fcntl.h: Add __nonnull where appropriate.
728 * io/ftw.h: Likewise.
729 * io/utime.h: Likewise.
730 * io/sys/poll.h: Likewise.
731 * io/sys/sendfile.h: Likewise.
732 * io/sys/stat.h: Likewise.
733 * io/sys/statfs.h: Likewise.
734 * io/sys/statvfs.h: Likewise.
735 * posix/unistd.h: Likewise.
736 * catgets/nl_types.h: Likewise.
737 * crypt/crypt.h: Likewise.
738 * debug/execinfo.h: Likewise.
740 2004-09-16 Ulrich Drepper <drepper@redhat.com>
742 * posix/glob.h: Remove cruft to make header usable outside glibc.
743 The maintenance headache is too big.
745 * configure.in: Add test for required SELinux features.
746 * config.make.in: Add have-selinux entry.
747 * config.h.in: Add HAVE_SELINUX entry.
748 * nscd/Makefile (nscd-modules): Add selinux.
749 (CFLAGS-selinux.c): Add -fpie.
750 Define selinux-LIBS and use in link line.
751 * nscd/connections.c (handle_request): Check access SELinux permissions
752 before processing request.
753 * nscd/nscd.c (main): Initialize selinux_enabled and stop avc thread.
754 * nscd/nscd_stat.c: Transmit and print AVC statistics.
755 * nscd/selinux.c: New file.
756 * nscd/selinux.h: New file.
757 Patch mostly by Matthew Rickard <mjricka@epoch.ncsc.mil>.
759 2004-09-16 Jakub Jelinek <jakub@redhat.com>
761 * nscd/nscd_helper.c (__nscd_unmap, get_mapping): Use __munmap
764 * nscd/Makefile (CFLAGS-aicache.c): Set to -fpie.
766 2004-09-16 Thorsten Kukuk <kukuk@suse.de>
768 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check
769 __nss_not_use_nscd_hosts variable if nscd should be used or not.
771 2004-09-16 Ulrich Drepper <drepper@redhat.com>
773 * nscd/nscd_proto.h: Define NSS_NSCD_RETRY.
774 Add __nscd_getai prototype.
775 * nss/getXXbyYY_r.c: Remode definition of NSS_NSCD_RETRY.
776 * nscd/nscd-client.h: Remove __nscd_getai prototype.
777 * nscd/nscd_getai.c: Include nscd_proto.h.
779 * elf/ldd.bash.in: Add support for SELinux environments.
780 Patch by Stephen Smalley <sds@epoch.ncsc.mil>.
782 2004-09-16 Roland McGrath <roland@redhat.com>
784 * configure.in (--with-headers): Let argument contain a : separated
785 list of directories to use, not just one.
786 * configure: Regenerated.
788 2004-09-15 Richard Henderson <rth@redhat.com>
790 * sysdeps/alpha/fpu/libm-test-ulps: Update.
791 * scripts/data/c++-types-alpha-linux-gnu.data: New file.
793 2004-09-15 Ulrich Drepper <drepper@redhat.com>
795 * nscd/aicache.c: Prefer using gethostbyname3_r NSS callback to also
796 get ttl and canonical name. Use these two values.
797 * resolv/Versions: Export _nss_dns_gethostbyname3_r from libnss_dns.
798 * resolv/nss_dns/dns-host.c (getanswer_r): Take two new parameters.
799 If nonnull fill with TTL and pointer to canonical name respectively.
800 (_nss_dns_gethostbyaddr_r): Pass NULL in new parameters of getanswer_r.
801 (_nss_dns_gethostbyname2_r): Just wrapper around
802 _nss_dns_gethostbyname3_r.
803 (_nss_dns_gethostbyname3_r): Renamed from _nss_dns_gethostbyname2_r.
804 Take two new parameters which as passed to getanswer_r.
806 * nscd/Makefile (rountines): Add nscd_getai.
807 (nscd-modules): Add aicache.
808 * nscd/aicache.c: New file.
809 * nscd/nscd_getai.c: New file.
810 * nscd/cache.c (prune_cache): Handle GETAI request type.
811 * nscd/connections.c: Add GETAI support in request handling.
812 * nscd/nscd-client.h (request_type): Add GETAI.
813 Define ai_response_header and struct nscd_ai_result types.
814 (struct datahead): Add aidata field.
815 Declare __nscd_getai.
816 * nscd/nscd.c: Add getaddrinfo definition to catch problems.
817 * nscd/nscd.h: Declare addhstai and readdhstai.
819 * sysdeps/posix/getaddrinfo.c: Add support for using cached results.
820 * posix/Makefile (CFLAGS-getaddrinfo.c): Add -DUSE_NSCD.
822 * nscd/nscd-client.h (struct datahead): Use uint8_t instead of bool.
824 2004-09-14 Ulrich Drepper <drepper@redhat.com>
826 * misc/sys/cdefs.h: Remove debugging text from __P and __PMT.
828 2004-09-13 Ulrich Drepper <drepper@redhat.com>
830 * misc/sys/cdefs.h: Restore old definition of __P.
831 * csu/munch.awk: Remove uses of __P and __PMT.
832 * gmon/gmon.c: Likewise.
833 * hesiod/hesiod.h: Likewise.
834 * include/stdio.h: Likewise.
835 * io/fts.c: Likewise.
836 * libio/genops.c: Likewise.
837 * libio/libioP.h: Likewise.
838 * libio/fileops.c: Likewise.
839 * libio/iolibio.h: Likewise.
840 * libio/libio.h: Likewise.
841 * libio/memstream.c: Likewise.
842 * libio/oldfileops.c: Likewise.
843 * libio/oldstdfiles.c: Likewise.
844 * libio/iopopen.c: Likewise.
845 * libio/vsnprintf.c: Likewise.
846 * libio/vswprintf.c: Likewise.
847 * libio/wgenops.c: Likewise.
848 * libio/oldiopopen.c: Likewise.
849 * locale/programs/xmalloc.c: Likewise.
850 * locale/programs/xstrdup.c: Likewise.
851 * malloc/mtrace.c: Likewise.
852 * misc/getttyent.c: Likewise.
853 * misc/getusershell.c: Likewise.
854 * nis/rpcsvc/ypupd.h: Likewise.
855 * posix/fnmatch.h: Likewise.
856 * posix/glob.h: Likewise.
857 * resolv/arpa/nameser.h: Likewise.
858 * resolv/gethnamaddr.c: Likewise.
859 * resolv/resolv.h: Likewise.
860 * resolv/inet_net_ntop.c: Likewise.
861 * resolv/inet_net_pton.c: Likewise.
862 * resolv/res_init.c: Likewise.
863 * resolv/nss_dns/dns-network.c: Likewise.
864 * stdio-common/vfprintf.c: Likewise.
865 * stdio-common/reg-printf.c: Likewise.
866 * sysdeps/generic/chflags.c: Likewise.
867 * sysdeps/generic/fchflags.c: Likewise.
868 * sysdeps/generic/glob.c: Likewise.
869 * sysdeps/generic/printf_fphex.c: Likewise.
870 * sysdeps/generic/memcmp.c: Likewise.
871 * sysdeps/generic/memcopy.h: Likewise.
872 * sysdeps/generic/morecore.c: Likewise.
873 * sysdeps/generic/sstk.c: Likewise.
874 * sysdeps/posix/sigvec.c: Likewise.
875 * sysdeps/posix/ttyname_r.c: Likewise.
876 * sysdeps/standalone/arm/bits/errno.h: Likewise.
877 * sysdeps/standalone/standalone.h: Likewise.
878 * sysdeps/standalone/i386/force_cpu386/brdinit.c: Likewise.
879 * sysdeps/standalone/i386/force_cpu386/_exit.c: Likewise.
880 * sysdeps/unix/arm/start.c: Likewise.
881 * sysdeps/unix/bsd/sigaction.c: Likewise.
882 * sysdeps/unix/bsd/sun/m68k/sigtramp.c: Likewise.
883 * sysdeps/unix/bsd/sun/sparc/sigtramp.c: Likewise.
884 * sysdeps/unix/bsd/sun/sunos4/wait4.c: Likewise.
885 * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: Likewise.
886 * sysdeps/unix/bsd/ultrix4/sysconf.c: Likewise.
887 * sysdeps/unix/sparc/start.c: Likewise.
888 * sysdeps/unix/sysv/getdents.c: Likewise.
889 * sysdeps/unix/sysv/irix4/fpathconf.c: Likewise.
890 * sysdeps/unix/sysv/irix4/getgroups.c: Likewise.
891 * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
892 * sysdeps/unix/sysv/irix4/getrusage.c: Likewise.
893 * sysdeps/unix/sysv/irix4/pathconf.c: Likewise.
894 * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
895 * sysdeps/unix/sysv/irix4/sigtramp.c: Likewise.
896 * sysdeps/unix/sysv/irix4/start.c: Likewise.
897 * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
898 * sysdeps/unix/sysv/sco3.2.4/__setpgid.c: Likewise.
899 * sysdeps/unix/sysv/sco3.2.4/getgroups.c: Likewise.
900 * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
901 * sysdeps/unix/sysv/sysv4/__setpgid.c: Likewise.
902 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
903 * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
904 * sysdeps/unix/sysv/sysv4/sethostname.c: Likewise.
905 * sysdeps/unix/sysv/sysv4/setsid.c: Likewise.
906 * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
907 * sysdeps/unix/sysv/sysv4/waitpid.c: Likewise.
908 * sysdeps/unix/sysv/sysv4/solaris2/getdents.c: Likewise.
909 * time/tzset.c: Likewise.
910 * time/strftime_l.c: Likewise.
911 * time/strptime_l.c: Likewise.
912 * crypt/md5.h: Likewise.
914 2004-09-13 Andreas Jaeger <aj@suse.de>
916 * configure.in: Support GCC 4.x.
917 * configure: Regenerated.
919 2004-09-13 Thorsten Kukuk <kukuk@suse.de>
921 * nscd/nscd_stat.c: Don't access dbs[cnt].head for disabled services.
923 * nscd/nscd.init: Fix path to socket.
925 2004-09-12 Ulrich Drepper <drepper@redhat.com>
927 * nscd/nscd_helper.c (get_mapping): Correctly check cmsg length.
928 Avoid file descriptor leak in case of size mismatch.
930 * nscd/nscd-client.h: Fix database structure layout for biarch.
931 * nscd/mem.c (gc): Add casts to avoid warnings.
933 * nss/getent.c: Don't preconstruct help message. Do it only when
936 * locale/programs/locale.c: Simplify help message printing.
938 2004-09-12 Roland McGrath <roland@frob.com>
940 * sysdeps/mach/hurd/i386/init-first.c (init1) [! SHARED]: Add decls
941 missing in last change.
943 2004-09-11 Thorsten Kukuk <kukuk@suse.de>
945 * nis/nss_compat/compat-grp.c: Check that buflen is greater zero
946 before writing data into the buffer with negative offset.
947 * nis/nss_compat/compat-initgroups.c: Likewise.
948 * nis/nss_compat/compat-pwd.c: Likewise.
949 * nis/nss_compat/compat-spwd.c Likewise.
951 2004-09-12 Ulrich Drepper <drepper@redhat.com>
953 * misc/syslog.c (vsyslog): Fix copying of PID in case of
954 out-of-memory situation. [BZ #365].
956 * sysdeps/alpha/fpu/bits/mathinline.h: Use __NTH instead of
957 __THROW in inline function definitions.
959 * posix/spawn.h [__USE_GNU]: Define POSIX_SPAWN_USEVFORK.
960 * posix/spawnattr_setflags.c: Check whether any unknown bit is set
961 in FLAGS parameter and fail if this is the case.
962 * sysdeps/posix/spawni.c: Use vfork if POSIX_SPAWN_USEVFORK flag is
965 * nscd/pwdcache.c (cache_addpw): Sync also negative results to disk.
966 * nscd/grpcache.c (cache_addgr): Likewise.
967 * nscd/hstcache.c (cache_addhst): Likewise.
969 2004-09-11 Roland McGrath <roland@frob.com>
971 * sysdeps/mach/hurd/i386/init-first.c (init1) [! SHARED]:
972 Set _dl_phdr and _dl_phnum.
973 (init1): When bootstrap task, bail early and never examine *D.
975 2004-09-11 Alfred M. Szmidt <ams@kemisten.nu>
977 * sysdeps/mach/hurd/i386/tls.h (__i386_set_gdt) [!HAVE_I386_SET_GDT]:
978 Cast THR, SEL and DESC to `void'.
980 2004-09-11 Ulrich Drepper <drepper@redhat.com>
982 * nscd/connections.c (nscd_run): Call setup_thread only for enabled
985 * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Use __NTH for __cmsg_nxthdr.
987 2004-09-10 Ulrich Drepper <drepper@redhat.com>
989 * nscd/nscd.c (pagesize_m1): New variable.
990 (main): Initialize it.
991 * nscd/nscd.h: Declare pagesize_m1.
992 * nscd/hstcache.c: Pass correctly aligned address to msync.
993 * nscd/grpcache.c: Likewise.
994 * nscd/pwdcache.c: Likewise.
996 2004-09-10 Kaz Kojima <kkojima@rr.iij4u.or.jp>
998 * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Decrement
999 __nwaiters. If pthread_cond_destroy has been called and this is
1000 the last waiter, signal pthread_cond_destroy caller and avoid
1001 using the pthread_cond_t structure after unlock.
1002 * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
1004 2004-09-10 Ulrich Drepper <drepper@redhat.com>
1006 * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
1007 __ASSUME_CLONE_STOPPED.
1009 2004-09-10 Jakub Jelinek <jakub@redhat.com>
1011 * misc/sys/cdefs.h (__REDIRECT_NTH): Change order of __THROW and
1012 __asm__ for C++. [BZ #377]
1014 2004-09-10 Ulrich Drepper <drepper@redhat.com>
1016 * nscd/nscd_stat.c: Improve output by also printing .shared and
1019 * nscd/connections.c: Allow cache sharing to be really disabled.
1021 2004-09-10 Jakub Jelinek <jakub@redhat.com>
1023 * malloc/malloc.c (_int_free): Only do arena boundary check for
1026 2004-09-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1028 * stdlib/longlong.h [__M32R__] (add_ssaaaa, sub_ddmmss): Fix broken
1030 * elf/elf.h: Add R_M32R_* relocs.
1032 2004-09-09 Ulrich Drepper <drepper@redhat.com>
1034 * misc/sys/cdefs.h: Despite what the gcc manual says, gcc 3.2
1035 seems not to support the nothrow attribute. Use it only for gcc
1038 * malloc/hooks.c (top_check): Print top chunk corruption as normal
1041 * malloc/malloc.c (malloc_printerr): Don't make informational
1042 message look like error message.
1044 2004-09-09 Andreas Jaeger <aj@suse.de>
1046 * nscd/Makefile (CFLAGS-nscd_setup_thread.c): Set to -fpie.
1048 2004-09-08 Ulrich Drepper <drepper@redhat.com>
1050 * sysdeps/unix/sysv/linux/bits/socket.h (__SCM_CONNECT): Removed.
1052 * malloc/malloc.c (_int_free): Add inexpensive double free and
1053 memory corruption tests.
1054 (malloc_printf_nc): Renamed to malloc_printerr. Second parameter
1055 is no format string anymore. Don't use stdio. Adjust all callers.
1056 * malloc/hooks.c: Adjust malloc_printf_nc callers.
1058 2004-09-08 Roland McGrath <roland@redhat.com>
1060 * malloc/mcheck.c: Don't use __P.
1061 Use prototypes definitions for static functions.
1063 2004-09-08 Ulrich Drepper <drepper@redhat.com>
1065 * sysdeps/ia64/fpu/bits/mathinline.h: Use __NTH instead of __THROW.
1067 2004-09-08 Ulrich Drepper <drepper@redhat.com>
1068 Jakub Jelinek <jakub@redhat.com>
1070 * nscd/nscd-client.h: Add a few #includes.
1072 * nscd/Makefile (nscd-modules): Add nscd_setup_thread.
1073 * nscd/connections.c (nscd_run): Call setup_thread for maintenance
1075 * nscd/nscd-client.h (struct database_pers_head): Add
1076 nscd_certainly_running field.
1077 * nscd/nscd.h: Declare setup_thread.
1078 * nscd/nscd_helper.c (__nscd_get_map_ref): Avoid the time test if
1079 nscd_certainly_running is nonzero.
1080 * sysdeps/generic/nscd_setup_thread.c: New file.
1081 * sysdeps/unix/sysv/linux/nscd_setup_thread.c: New file.
1083 2004-09-08 Ulrich Drepper <drepper@redhat.com>
1085 * nscd/connections.c: Implement r/o sharing of nscd's cache with client
1086 processes via shared memory.
1087 * nscd/nscd-client.h: Likewise.
1088 * nscd/nscd.h: Likewise.
1089 * nscd/nscd_conf.c: Likewise.
1090 * nscd/nscd_getgr_r.c: Likewise.
1091 * nscd/nscd_getpw_r.c: Likewise.
1092 * nscd/nscd_gethst_r.c: Likewise.
1093 * nscd/nscd.conf: Add new config parameters.
1094 * nscd/Makefile (aux): Add nscd_helper.
1095 * nscd/nscd_helper.c: New file.
1096 * nscd/mem.c (gc): Indicate beginning and end of the gc cycle.
1098 * nscd/hstcache.c: Simplify a lot. We cache only the request itself,
1099 no derived information.
1100 * connections.c (nscd_init): Fix bug in testing size of the persistent.
1102 * nis/Makefile (aux): Add nis_hash.
1103 * nis/nis_hash.c: New file. Split out from nis_util.c.
1104 * nis/nis_util.c: Move __nis_hash code in separate file.
1106 * csu/tst-atomic.c: Improve atomic_increment_val test which would
1107 not have found a ppc bug.
1109 * sysdeps/s390/fpu/bits/mathinline.h: Remove unnecessary includes.
1111 * malloc/arena.c: Remove __MALLOC_P uses.
1112 * malloc/malloc.c: Likewise.
1114 * malloc/mtrace.c: Remove __P uses.
1115 * malloc/mcheck-init.c: Likewise.
1117 2004-09-07 Jakub Jelinek <jakub@redhat.com>
1119 * sysdeps/powerpc/powerpc64/configure.in: New file.
1120 * config.h.in (USE_PPC64_OVERLAPPING_OPD): Add.
1121 * configure.in (HAVE_ASM_GLOBAL_DOT_NAME): Remove.
1122 * sysdeps/powerpc/powerpc64/sysdep.h: Formatting.
1123 (OPD_ENT, BODY_LABEL, ENTRY_1, ENTRY_2, END_2, DOT_PREFIX,
1124 BODY_PREFIX): Define.
1125 (ENTRY, DOT_LABEL, END, TRACEBACK, END_GEN_TB, EALIGN): Support
1126 HAVE_ASM_GLOBAL_DOT_NAME or no dot symbols,
1127 USE_PPC64_OVERLAPPING_OPD or never overlapping .opd entries.
1128 * sysdeps/powerpc/powerpc64/dl-machine.h: Include sysdep.h.
1129 (TRAMPOLINE_TEMPLATE, RTLD_START): Use the new sysdep.h macros.
1131 2004-09-07 Ulrich Drepper <drepper@redhat.com>
1133 * malloc/malloc.h: Don't define __THROW if it is already defined.
1135 * sysdeps/powerpc/bits/atomic.h (atomic_increment): Define.
1136 (atomic_decrement): Define.
1138 * sysdeps/powerpc/bits/atomic.h: Implement atomic_increment_val and
1139 atomic_decrement_val.
1140 * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
1141 * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
1143 * csu/tst-atomic.c (do_test): Add tests of atomic_increment_val
1144 and atomic_decrement_val.
1146 * include/atomic.h: Define atomic_increment_val, atomic_decrement_val,
1147 and atomic_delay is not already defined.
1148 * sysdeps/i386/i486/bits/atomic.h: Define atomic_delay.
1149 * sysdeps/x86_64/bits/atomic.h: Likewise.
1151 * miscd/sys/cdefs.h (__NTH): New macro.
1152 (__THROW): Define using nothrow attribute for C code and gcc >= 3.2.
1153 (__REDIRECT_NTH): New macro.
1154 * argp/argp.h: Use __NTH and __REDIRECT_NTH where necessary.
1155 * ctype/ctype.h: Likewise.
1156 * dirent/dirent.h: Likewise.
1157 * io/fcntl.h: Likewise.
1158 * io/sys/sendfile.h: Likewise.
1159 * io/sys/stat.h: Likewise.
1160 * io/sys/statfs.h: Likewise.
1161 * io/sys/statvfs.h: Likewise.
1162 * libio/bits/stdio.h: Likewise.
1163 * misc/sys/mman.h: Likewise.
1164 * posix/unistd.h: Likewise.
1165 * resource/sys/resource.h: Likewise.
1166 * rt/aio.h: Likewise.
1167 * signal/signal.h: Likewise.
1168 * stdlib/stdlib.h: Likewise.
1169 * string/argz.h: Likewise.
1170 * string/string.h: Likewise.
1171 * sysdeps/generic/inttypes.h: Likewise.
1172 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
1173 * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
1174 * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
1175 * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
1176 * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
1177 * sysdeps/unix/sysv/linux/bits/sys/sysmacros.h: Likewise.
1178 * wcsmbs/wchar.h: Likewise.
1180 * sysdeps/generic/glob.c: Use __PMT isntead of __P where appropriate.
1182 * resolv/gethnamaddr.c (getanswer): Remove __P use in variable
1185 * io/sys/poll.h: Remove __THROW from poll prototype, it's a
1188 * io/fts.c (fts_open): Remove uses of __P.
1190 * include/stdlib.h: No need to use __THROW in this header.
1192 2004-09-06 Roland McGrath <roland@frob.com>
1194 * sysdeps/mach/hurd/dl-sysdep.c (__writev): Does use assert on FD
1195 validity, since __assert_fail gets to here anyway. Just fail.
1197 2004-09-06 Ulrich Drepper <drepper@redhat.com>
1199 * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix problem with
1200 AF_UNSPEC lookup with AI_CANONNAME of name which has only IPv6
1203 2004-09-05 Richard Henderson <rth@redhat.com>
1205 * sysdeps/alpha/fpu/fraiseexcpt.c: Remove file.
1206 * sysdeps/unix/sysv/linux/kernel-features.h
1207 (__ASSUME_IEEE_RAISE_EXCEPTION): New.
1208 * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.c: New file.
1209 * sysdeps/unix/sysv/linux/alpha/kernel_sysinfo.h: New file.
1210 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use it.
1211 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
1213 2004-09-05 Richard Henderson <rth@redhat.com>
1215 * sysdeps/alpha/div.S: Save and restore FPCR around fp operations.
1216 * sysdeps/alpha/divl.S, sysdeps/alpha/divq.S, sysdeps/alpha/divqu.S,
1217 sysdeps/alpha/ldiv.S, sysdeps/alpha/reml.S, sysdeps/alpha/remq.S,
1218 sysdeps/alpha/remqu.S: Likewise.
1219 * sysdeps/alpha/div_libc.h (FRAME): Increase to 64.
1221 2004-09-05 Ulrich Drepper <drepper@redhat.com>
1223 * nscd/cache.c (cache_add): Correctly log GETHOSTBYADDR and
1224 GETHOSTBYADDRv6 requests.
1226 2004-09-04 Ulrich Drepper <drepper@redhat.com>
1228 * nscd/pwdcache.c (cache_addpw): Use correct key length in
1230 * nscd/grpcache.c (cache_addgr): Likewise.
1232 2004-09-03 Alfred M. Szmidt <ams@kemisten.nu>
1234 * sysdeps/mach/hurd/i386/tls.h (THREAD_DTV): Changed type of _DTV
1237 2004-09-03 Ulrich Drepper <drepper@redhat.com>
1239 * nscd/nscd.c (parse_opt): Use writev instead of two write for
1242 2004-09-02 Ulrich Drepper <drepper@redhat.com>
1244 * nscd/connections.c (nscd_run): Check early for invalid request types.
1246 2004-09-02 Roland McGrath <roland@frob.com>
1248 * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): New macro.
1249 (INSTALL_NEW_DTV, THREAD_DTV): Rewritten to fetch the right word.
1250 (THREAD_SELF): New macro.
1252 2004-09-02 Steven Munroe <sjmunroe@us.ibm.com>
1255 * stdlib/tst-setcontext.c (test_stack): Added test for stack clobber.
1256 (main): Call test_stack.
1257 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1258 (__getcontext): Push stack frame then save parms in local frame.
1259 Improve instruction scheduling.
1260 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1261 (__swapcontext): Likewise.
1263 2004-09-01 Andreas Schwab <schwab@suse.de>
1265 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h [g++ >= 3.5]: Use
1268 2004-09-01 Jakub Jelinek <jakub@redhat.com>
1271 * posix/fnmatch_loop.c (FCT): For backslash between brackets, branch
1272 to normal_bracket after fetching the next character.
1273 * posix/tst-fnmatch.input: Add 25 new tests.
1274 Reported by Markus Oberhumer <markus@oberhumer.com>.
1276 2004-09-01 Ulrich Drepper <drepper@redhat.com>
1278 * elf/rtld.c (dl_main): First check existence of ld.so.preload
1281 2004-09-01 Roland McGrath <roland@redhat.com>
1283 * sysdeps/unix/sysv/linux/bits/waitflags.h
1284 (WSTOPPED, WEXITED, WCONTINUED, WNOWAIT): New macros.
1285 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_WAITID_SYSCALL):
1287 * sysdeps/unix/sysv/linux/waitid.c: New file. Use new syscall when
1288 available, or fall back to the waitpid-based generic code.
1290 2004-08-14 Alfred M. Szmidt <ams@kemisten.nu>
1292 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Let gcc
1293 clobber the `ebp' register.
1294 * sysdeps/mach/hurd/i386/Makefile (CFLAGS-init-first.c): Removed.
1295 Reverts change from 2004-05-07 by Jeroen Dekkers.
1297 * sysdeps/mach/hurd/i386/init-first.c (init): Changed the type of
1298 NEWSP from `void *' to `int *'. Changed all casts accordingly.
1300 2004-08-31 Jakub Jelinek <jakub@redhat.com>
1302 * wcsmbs/wcsmbsload.c (__wcsmbs_getfct): Move attribute_hidden
1304 * locale/localename.c (__current_locale_name): Likewise.
1306 2004-08-30 Roland McGrath <roland@frob.com>
1308 * scripts/extract-abilist.awk: If `lastversion' variable defined, omit
1309 later sets from output.
1310 * Makerules (check-abi): Pass option to set that with value of
1311 LIB-abi-frozen variable if one is set.
1313 * abilist/libcidn.abilist: New file (empty).
1315 2004-08-30 Jakub Jelinek <jakub@redhat.com>
1317 * posix/bits/posix1_lim.h (_POSIX_CHILD_MAX, _POSIX_OPEN_MAX): If
1318 not __USE_XOPEN2K, use the Unix98 mandated values.
1320 2004-08-27 Roland McGrath <roland@redhat.com>
1322 * configure.in (usetls): Default to yes.
1323 * configure: Regenerated.
1325 2004-08-26 Roland McGrath <roland@redhat.com>
1327 * configure.in (add_ons_automatic): New variable, set to yes or no
1328 indicating --enable-add-ons with no explicit list.
1329 (running add-on fragments): Allow a fragment to modify $libc_add_on
1330 and have that affect its place in the list of add-ons to use.
1331 * configure: Regenerated.
1333 2004-08-26 Ulrich Drepper <drepper@redhat.com>
1335 * nscd/cache.c: Major rewrite. The data is now optionally kept in
1336 a mmaped memory region which is automatically mirrored on disk.
1337 This implements persistent data storage. The Memory handled
1338 needed to be completely revamped, it now uses a garbage collection
1339 mechanism instead of malloc.
1340 * nscd/connections.c: Likewise.
1341 * nscd/nscd.c: Likewise.
1342 * nscd/nscd.h: Likewise.
1343 * nscd/nscd_conf.c: Likewise.
1344 * nscd/nscd_stat.c: Likewise.
1345 * nscd/grpcache.c: Likewise.
1346 * nscd/hstcache.c:: Likewise.
1347 * nscd/pwdcache.c:: Likewise.
1348 * nscd/Makefile: Add rules to build mem.c.
1349 * nscd/mem.c: New file.
1350 * nscd/nscd.conf: Describe new configuration options.
1352 2004-08-26 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1354 * sysdeps/unix/sysv/linux/mips/pread.c: Include sgidefs.h only if
1355 NO_SGIDEFS_H isn't defined.
1356 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1357 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1359 * sysdeps/unix/sysv/linux/sh/pread.c: Define NO_SGIDEFS_H and
1361 * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
1362 * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
1363 * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
1365 2004-08-26 Ulrich Drepper <drepper@redhat.com>
1367 * nscd/connections.c (nscd_run): atomic_increment was not missing.
1369 * sysdeps/gnu/Makefile (libdl-sysdep_routines): Don't add eval.
1370 Patch by Greg Schafer.
1372 2004-08-25 Richard Henderson <rth@redhat.com>
1374 * sysdeps/alpha/elf/start.S (_start): Use $15 as frame unwind
1375 instead of $31. Zero $15.
1376 * sysdeps/unix/sysv/linux/alpha/clone.S (thread_start): Likewise.
1378 2004-08-25 Ulrich Drepper <drepper@redhat.com>
1380 * sysdeps/powerpc/powerpc64/bits/atomic.h
1381 (__arch_compare_and_exchange_bool_32_acq): Fix case where oldval
1383 (__arch_compare_and_exchange_bool_32_rel): Likewise.
1385 * nscd/connections.c: Make socket nonblocking so that threads
1386 don't get stuck on accept. Fix locking.
1388 * nscd/grpcache.c (cache_addgr): Use copy of original key in hash
1389 entry with alternative key.
1390 * nscd/pwdcache.c (cache_addpw): Likewise.
1392 2004-08-25 Richard Sandiford <rsandifo@redhat.com>
1394 * sysdeps/mips/dl-machine.h (_dl_start_user): Don't set
1397 2004-08-23 Ulrich Drepper <drepper@redhat.com>
1399 * sysdeps/gnu/netinet/udp.h: Cosmetic changes. Remove unnecessary
1400 __BEGIN_DECLS/__END_DECLS.
1402 2004-08-23 Andreas Jaeger <aj@suse.de>
1405 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_NOATIME): Define.
1406 * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (O_NOATIME): Likewise.
1407 * sysdeps/unix/sysv/linux/cris/bits/fcntl.h (O_NOATIME): Likewise.
1408 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (O_NOATIME): Likewise.
1409 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (O_NOATIME): Likewise.
1410 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_NOATIME): Likewise.
1411 * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (O_NOATIME): Likewise.
1412 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_NOATIME): Likewise.
1413 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_NOATIME): Likewise.
1414 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_NOATIME): Likewise.
1415 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (O_NOATIME): Likewise.
1416 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_NOATIME): Likewise.
1417 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (O_NOATIME): Likewise.
1419 2004-08-21 Ulrich Drepper <drepper@redhat.com>
1421 * malloc/hooks.c (DEFAULT_CHECK_ACTION): Moved to malloc.c.
1422 (check_action): Likewise.
1423 When printing error messages, use malloc_printf_nc now instead of
1424 fiddling with the streams cancellation flag in every place.
1425 * malloc/malloc.c (DEFAULT_CHECK_ACTION): New definition. Change
1427 (check_action): New variable.
1428 (unlink): Print error message and eventually terminate in case list
1430 (malloc_printf_nc): New function. Use it in _int_free.
1431 Change proposed by Arjan van de Ven.
1433 * dlfcn/Makefile: Don't build eval.c anymore.
1435 2004-08-20 Roland McGrath <roland@frob.com>
1437 * csu/Makefile ($(objpfx)version-info.h): Use printf in place
1438 of echo -e for POSIX.2 portability.
1439 Reported by Paul Jarc <prj@po.cwru.edu>.
1441 2004-08-19 Ulrich Drepper <drepper@redhat.com>
1443 * sysdeps/posix/getaddrinfo.c (gaih_inet): Minor optimizations in
1446 * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use
1447 getcanonname_r function if AI_CANONNAME flag is not set in
1450 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss):
1451 Initialize mysize with limits only if latter is >= 0. Use mysize
1454 2004-08-19 Jakub Jelinek <jakub@redhat.com>
1456 * sysdeps/posix/getaddrinfo.c (gaih_inet): Cast canon to (char *)
1459 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Initialize
1460 status to NSS_STATUS_UNAVAIL.
1462 2004-08-19 Ulrich Drepper <drepper@redhat.com>
1464 * sysdeps/posix/getaddrinfo.c (gaih_inet): Use h->h_name in the
1465 cannoname lookup since it has the FQDN even if the original NAME
1468 2004-08-18 Ulrich Drepper <drepper@redhat.com>
1470 * sysdeps/posix/getaddrinfo.c (gaih_inet): Store NAME parameter
1471 pointer in new variable ORIG_NAME and use this pointer when
1472 determination of canonical name failed, not the possibly IDN
1473 translated value of NAME.
1475 2004-08-17 Ulrich Drepper <drepper@redhat.com>
1477 * resolv/resolv.h (RES_DEFAULT): Add RES_NOIP6DOTINT.
1478 * resolv/res_init.c (res_setoptions): Recognize ip6-dotint option.
1479 Reset RES_NOIP6DOTINT flag in this case..
1481 * sysdeps/posix/getaddrinfo.c: Fix memory handling of
1484 2004-08-16 Ulrich Drepper <drepper@redhat.com>
1486 * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Don't use
1487 CNAME records, we better follow the chain of CNAME records which
1488 can be accomplished with A/AAAA lookups.
1490 2004-08-15 Roland McGrath <roland@redhat.com>
1492 * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who):
1493 Remove __RUSAGE_BOTH constant and RUSAGE_BOTH macro.
1494 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1495 * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
1496 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1498 2004-08-15 Roland McGrath <roland@frob.com>
1500 * sysdeps/i386/i686/Makefile (elide-routines.os): Append hp-timing to
1502 (static-only-routines): ... this.
1503 * sysdeps/ia64/Makefile: Likewise.
1504 * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
1505 * sysdeps/sparc/sparc64/Makefile: Likewise.
1506 * sysdeps/x86_64/Makefile: Likewise.
1507 * sysdeps/i386/i686/hp-timing.c: Revert copyright terms change.
1508 * sysdeps/ia64/hp-timing.c: Likewise.
1509 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
1510 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
1512 * csu/elf-init.c: Update copyright terms including special exception
1513 for these trivial files, which are statically linked into executables
1514 that use dynamic linking for the significant library code.
1515 * io/fstat.c: Likewise.
1516 * io/fstat64.c: Likewise.
1517 * io/lstat.c: Likewise.
1518 * io/lstat64.c: Likewise.
1519 * io/stat.c: Likewise.
1520 * io/stat64.c: Likewise.
1521 * stdlib/atexit.c: Likewise.
1522 * sysdeps/alpha/elf/initfini.c: Likewise.
1523 * sysdeps/alpha/elf/start.S: Likewise.
1524 * sysdeps/arm/elf/start.S: Likewise.
1525 * sysdeps/cris/elf/start.S: Likewise.
1526 * sysdeps/generic/initfini.c: Likewise.
1527 * sysdeps/generic/mknod.c: Likewise.
1528 * sysdeps/hppa/elf/initfini.c: Likewise.
1529 * sysdeps/hppa/elf/start.S: Likewise.
1530 * sysdeps/i386/elf/start.S: Likewise.
1531 * sysdeps/i386/i686/hp-timing.c: Likewise.
1532 * sysdeps/ia64/elf/initfini.c: Likewise.
1533 * sysdeps/ia64/elf/start.S: Likewise.
1534 * sysdeps/ia64/hp-timing.c: Likewise.
1535 * sysdeps/m68k/elf/start.S: Likewise.
1536 * sysdeps/mach/start.c: Likewise.
1537 * sysdeps/mips/elf/start.S: Likewise.
1538 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
1539 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
1540 * sysdeps/s390/s390-32/elf/start.S: Likewise.
1541 * sysdeps/s390/s390-32/initfini.c: Likewise.
1542 * sysdeps/s390/s390-64/elf/start.S: Likewise.
1543 * sysdeps/s390/s390-64/initfini.c: Likewise.
1544 * sysdeps/sh/elf/initfini.c: Likewise.
1545 * sysdeps/sh/elf/start.S: Likewise.
1546 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
1547 * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
1548 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
1549 * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
1550 * sysdeps/standalone/i386/start.S: Likewise.
1551 * sysdeps/standalone/i960/start.S: Likewise.
1552 * sysdeps/standalone/m68k/m68020/start.S: Likewise.
1553 * sysdeps/unix/arm/start.c: Likewise.
1554 * sysdeps/unix/bsd/osf/alpha/start.S: Likewise.
1555 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
1556 * sysdeps/unix/sparc/start.c: Likewise.
1557 * sysdeps/unix/start.c: Likewise.
1558 * sysdeps/unix/sysv/aix/start.s: Likewise.
1559 * sysdeps/unix/sysv/irix4/start.c: Likewise.
1560 * sysdeps/x86_64/elf/initfini.c: Likewise.
1561 * sysdeps/x86_64/elf/start.S: Likewise.
1563 2004-08-15 Roland McGrath <roland@redhat.com>
1566 * sysdeps/unix/sysv/linux/kernel-features.h
1567 (__ASSUME_BRK_PAGE_ROUNDED): New macro.
1568 * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
1569 [! __ASSUME_BRK_PAGE_ROUNDED]: Adjust the break up if it falls within
1570 the partial page after the dynamic linker's own data segment.
1572 2004-08-15 Ulrich Drepper <drepper@redhat.com>
1574 * sysdeps/posix/getaddrinfo.c (gaih_inet): Optimize generation of
1575 v4-mapped addresses a bit.
1576 (gethosts): Move alloca out of macro, so that it is done only once.
1578 * sysdeps/posix/getaddrinfo.c (gaih_addrtuple): Change type of
1579 addr to avoid casts.
1580 (gethosts): Removed.
1581 (gethosts2): Renamed to gethosts. Make it usable for family !=
1582 AF_UNSPEC. Fix AI_V4MAPPED.
1583 (gaih_inet): Remove use of old gethosts. Always use what used to be
1584 gethosts2. If entry is found, try to use the same NSS module's
1585 getcanonname_r function. Use gethostbyaddr for AI_CANONNAME only
1586 if getcanonname_r was not available. Fix filtering of AI_V4MAPPED
1587 addresses. Numerous cleanups.
1588 * resolv/nss_dns/dns-canon.c: New file.
1589 * resolv/Makefile (libnss_dns-routines): Add dns-canon.
1590 * resolv/Versions (libnss_dns): Add _nss_dns_getcanonname_r.
1592 * elf/Makefile: Add rules to build and run tst-dlopenrpath.
1593 * elf/tst-dlopenrpath.c: New file.
1594 * elf/tst-dlopenrpathmod.c: New file.
1596 * intl/tst-gettext.sh: Adjust for change of de.po file to UTF-8.
1597 * intl/tst-gettext.c: Likewise.
1599 * nss/getent.c (ahosts_keys_int): Correctly print IPv6 addresses.
1601 * nss/getent.c: Allow queries for getaddrinfo with AF_INET and
1604 2004-08-14 Ulrich Drepper <drepper@redhat.com>
1606 * po/de.po: Update from translation team.
1608 2004-08-14 Roland McGrath <roland@frob.com>
1610 * sysdeps/mach/configure: Regenerated.
1611 * sysdeps/mach/hurd/configure: Regenerated.
1613 2004-08-14 Ulrich Drepper <drepper@redhat.com>
1615 * sysdeps/posix/getaddrinfo.c (getaddrinfo): If RFC3484 sorting is
1616 performed, make sure it is still the first entry after sorting
1617 that has the ai_canonname information.
1619 * sysdeps/posix/getaddrinfo.c (gaih_inet): Really set ai_canonname
1622 2004-08-13 Daniel Jacobowitz <dan@debian.org>
1624 * scripts/output-format.sed: Handle default case of three-argument
1627 * sysdeps/arm/machine-gmon.h (mcount_internal): Mark as
1630 2004-08-13 Ulrich Drepper <drepper@redhat.com>
1632 * nss/getent.c (ahosts_keys): ai_canonname is NULL for all but the
1633 first returned entry. Print name only if not NULL.
1635 * nis/nss_nis/nis-netgrp.c: Remove locking by using data in struct
1636 __netgrent object passed in instead of global variables.
1638 * nis/nss_nisplus/nisplus-netgrp.c: Remove locking by using data
1639 in struct __netgrent object passed in instead of global variables.
1640 * inet/netgroup.h (struct __netgrent): Add service_user field.
1641 Move cursor in anonymous union, add new field location to that
1643 * inet/getnetgrent_r.c: Extensive rewrite to really enable
1644 concurrent uset of set/get/endnetgrent and innetgr.
1645 Reported by Chuck Simmons.
1647 * inet/netgroup.h (struct name_list): Replace name pointer with
1649 * inet/getnetgrent_r.c: Adjust code for change in name_list
1650 layout. Numerous strdup and free calls removed.
1652 * elf/sprof.c (read_symbols): When comparing aliases, prefer
1653 non-hidden over hidden symbols and strong over weak symbols
1654 if both don't start with '_'.
1656 * malloc/malloc.c: Use strong_alias instead of weak_alias wherever
1659 2004-08-12 Jakub Jelinek <jakub@redhat.com>
1661 * sysdeps/unix/sysv/linux/bits/resource.h: Define non-standard
1662 RUSAGE_ enums as __RUSAGE_ and adjust macros accordingly.
1663 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1664 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1665 * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
1666 Define non-standard RLIMIT_ enums as __RLIMIT_ and adjust macros
1669 2004-08-11 Andreas Schwab <schwab@suse.de>
1671 * resolv/res_libc.c: Move definition of __res_initstamp ...
1672 * resolv/res_init.c: ... here.
1674 2004-08-10 GOTO Masanori <gotom@debian.or.jp>
1676 * locale/C-time.c: Change default ERA value from NULL to "".
1677 * locale/tst-C-locale.c: Add test case for ERA keywords.
1679 2004-08-12 Ulrich Drepper <drepper@redhat.com>
1681 * sysdeps/unix/sysv/linux/bits/resource.h: Define non-standard
1682 RLIMIT__ enums as __RLIMIT_ and adjust macros accordingly.
1683 * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1684 * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1686 2004-08-12 Jakub Jelinek <jakub@redhat.com>
1688 * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_SIGPENDING,
1689 RLIMIT_MSGQUEUE): Add.
1690 (RLIMIT_NLIMITS, RLIM_NLIMITS): Adjust.
1691 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIMIT_SIGPENDING,
1692 RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
1693 (RLIM_NLIMITS): Adjust.
1694 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIMIT_SIGPENDING,
1695 RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
1696 (RLIM_NLIMITS): Adjust.
1697 * sysdeps/unix/sysv/linux/mips/bits/resource.h (RLIMIT_SIGPENDING,
1698 RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
1699 (RLIM_NLIMITS): Adjust.
1701 2004-08-12 Jakub Jelinek <jakub@redhat.com>
1703 * resolv/res_query.c (__libc_res_nsearch): Protect the debugging
1704 printf with #ifdef DEBUG and RES_DEBUG check.
1706 * sysdeps/unix/sysv/linux/bits/shm.h: Move __END_DECLS after
1708 * sysdeps/generic/bits/shm.h: Add __BEGIN_DECLS for __getpagesize
1710 * sysdeps/gnu/bits/shm.h: Likewise.
1711 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
1712 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
1713 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
1714 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
1715 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
1717 2004-08-12 Ulrich Drepper <drepper@redhat.com>
1719 * po/ca.po: Update from translation team.
1721 2004-08-11 Ulrich Drepper <drepper@redhat.com>
1723 * sysdeps/unix/sysv/linux/bits/shm.h: Add __BEGIN_DECLS for
1724 __getpagesize declaration.
1726 2004-08-11 Roland McGrath <roland@redhat.com>
1728 * configure.in (libc_cv_cpp_asm_debuginfo): Add missing braces around
1730 Reported by Andreas Schwab <schwab@suse.de>.
1731 * configure: Regenerated.
1733 * posix/tst-waitid.c (do_test): Ignore SIGCHLD before cleanup SIGKILL.
1735 2004-08-11 Ulrich Drepper <drepper@redhat.com>
1737 * time/tzset.c (tzset_internal): Add new parameter which is
1738 nonzero if called through tzset. Use TZDEFAULT name including
1739 name comparison if the new parameter is zero. This means implicit
1740 tzset calls will not cause files to be opened and read by tzfile.c
1743 2004-08-11 Jakub Jelinek <jakub@redhat.com>
1745 * rt/tst-timer2.c (do_test): If timer_create fails, just continue.
1746 * rt/tst-timer4.c (do_test): If one of the timer_create calls fails,
1747 return 1 immediately.
1749 * time/tzfile.c (__tzfile_read): Free transitions only if it will
1752 * sysdeps/ieee754/dbl-64/mpa.c: Include <sys/param.h>.
1753 * sysdeps/ieee754/dbl-64/mpa.h (MAX, MIN): Macros removed.
1755 * stdio-common/tst-popen.c: Include <string.h>.
1757 * resolv/res_send.c (__libc_res_nsend): Only define TMPBUF #if DEBUG.
1759 * sysdeps/pthread/aio_misc.c (handle_fildes_io): Remove noreturn
1760 attribute. Return NULL instead of calling pthread_exit at the end.
1762 2004-08-11 Roland McGrath <roland@redhat.com>
1764 * iconvdata/testdata/ISO-2022-JP-3: Regenerated.
1766 2004-08-10 Alfred M. Szmidt <ams@kemisten.nu>
1768 * sysdeps/generic/bits/in.h (struct ip_mreq): Remove definition.
1770 2004-08-10 Jakub Jelinek <jakub@redhat.com>
1772 * libio/bits/stdio.h (fread_unlocked): Cast 0 to (size_t).
1773 (fwrite_unlocked): When checking if size * n is <= 8, cast each
1774 argument to size_t individually. Cast n to (void) instead of
1775 (size_t), surround with (), return (size_t) 0 if one of n or size
1777 * stdio-common/Makefile (tests): Add tst-unlockedio.
1778 * stdio-common/tst-unlockedio.c: New test.
1780 2004-08-09 Roland McGrath <roland@frob.com>
1782 * manual/install.texi (Supported Configurations): Replace bug-glibc
1783 mention with web URL.
1784 * INSTALL: Regenerated.
1785 * locale/iso-3166.def: Likewise, in comment.
1786 * locale/iso-4217.def: Likewise.
1787 * locale/iso-639.def: Likewise.
1788 * posix/cpio.h: Remove bug reporting comment.
1790 2004-08-09 Ulrich Drepper <drepper@redhat.com>
1792 * libio/bits/stdio.h (fread_unlocked): Add a couple of (size_t)
1793 casts to handle funny calls with floating point argument values
1794 and signed values correctly and without warning.
1795 (fwrite_unlocked): Likewise. [BZ #309]
1797 * malloc/memusage.c (me): Use creat64, not creat.
1798 * malloc/memusagestat.c: Fix handling of very large sizes. [BZ #285]
1799 Patch by Guy Maor <guymaor@yahoo.com>.
1801 * elf/ldconfig.c (options): Mark parameter option names as
1802 translatable. [BZ #253] Patch by Jakub Bogusz <qboosh@pld-linux.org>.
1804 * iconv/gconv_charset.h (strip): Also allow comma which is what is
1805 used to separate options. [BZ #194]
1807 2004-08-09 Roland McGrath <roland@redhat.com>
1809 * FAQ.in: Refer to web pages instead of bug-glibc.
1812 * time/strptime_l.c: #include <stdbool.h>, `bool' used in last change.
1814 2004-08-09 Ulrich Drepper <drepper@redhat.com>
1816 * time/tzset.c (tzset_internal): If TZ is not set do not compare
1817 old and new tz value since it might be /etc/localtime in both
1818 cases although the file changed. [BZ #154]
1819 Patch by Christian Franke <franke@computer.org>.
1821 * time/tzfile.c (__tzfile_read): Determine dev/ino of file.
1822 Compare with values of previously opened file. Don't do anything
1825 2004-08-08 Ulrich Drepper <drepper@redhat.com>
1827 * elf/dl-load.c (_dl_map_object): If __RTLD_CALLMAP flag is set,
1828 reset loader before the actual loading.
1829 * elf/dl-open.c (dl_open_worker): If file name contains no path
1830 element determine map of caller. Pass caller map in this case to
1831 _dl_map_object. Set __RTLD_CALLMAP in mode.
1832 * include/dlfcn.h (__RTLD_CALLMAP): Define. [BZ #116]
1833 Patch by Greg Wolodkin <greg@mathworks.com>.
1835 * misc/syslog.c (openlog_internal): Always try both UDP and TCP.
1836 [BZ #108] Patch mainly by Bjorn Andersson <bjorn@iki.fi>.
1838 * configure.in: Also recognize i786. [BZ #106]
1839 Patch by <pluto@pld-linux.org>.
1841 * resolv/res_query.c (__libc_res_nsearch): Correctly test whether
1842 name contains any dots. [BZ #95]
1844 * resolv/res_send.c: Compiling with DEBUG defined works again.
1845 * resolv/gethnamaddr.c (dprintf): Renamed to Dprintf. Adjust all
1848 * resolv/tst-leaks.c (TIMEOUT): Define so that if no server is
1849 available the process is not killed. [BZ #41]
1851 * intl/tst-gettext.c (main): Improve some messages. [BZ #33]
1853 * time/strptime_l.c (__strptime_internal): Fix handling of %Ey.
1856 * po/sv.po: Update from translation team.
1858 2004-08-07 Ulrich Drepper <drepper@redhat.com>
1860 * inet/netinet/in.h: Add more const to the setipv4soucefilter,
1861 getsourcefilter, and setsourcefilter parameter list.
1862 * sysdeps/generic/setipv4sourcefilter.c: Likewise.
1863 * sysdeps/generic/getsourcefilter.c: Likewise.
1864 * sysdeps/generic/setsourcefilter.c: Likewise.
1865 * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
1866 * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
1867 * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
1869 * po/tr.po: Update from translation team.
1871 2004-08-06 Ulrich Drepper <drepper@redhat.com>
1873 * iconvdata/jisx0213.h (jisx0213_added_in_2004_p): Fix typo.
1874 Reported by Paolo Bonzini.
1876 2004-08-06 Jakub Jelinek <jakub@redhat.com>
1878 * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add
1880 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_runtime_setup,
1881 elf_machine_fixup_plt, elf_machine_plt_conflict): Likewise.
1883 * sysdeps/unix/sysv/linux/netatalk/at.h: Include bits/sockaddr.h
1884 before including linux/atalk.h.
1886 * resolv/res_libc.c: Include atomic.h.
1888 * intl/finddomain.c (free_mem): Rename to...
1889 (_nl_finddomain_subfreeres): ... this. Add
1890 __libc_freeres_fn_section.
1891 * intl/loadmsgcat.c (_nl_unload_domain): Add
1892 __libc_freeres_fn_section.
1893 * intl/gettextP.h (_nl_unload_domain): Move into #ifdef _LIBC.
1894 Add attribute_hidden.
1895 (_nl_findomain_subfreeres): New prototype.
1896 * iconv/gconv_db.c (free_mem): Call _nl_findomain_subfreeres.
1898 2004-07-30 Guido Guenther <agx@sigxcpu.org>
1900 * nss/getent.c (passwd_keys): Use strtoul instead of isdigit to
1901 test if the key is numeric or not.
1902 (group_keys): Likewise.
1904 2004-08-05 Ulrich Drepper <drepper@redhat.com>
1906 * inet/netinet/in.h: Define struct ip_msfilter, IP_MSFILTER_SIZE,
1907 struct group_filter, and GROUP_FILTER_SIZE.
1908 * include/sys/socket.h: Declare __getsockopt.
1909 * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: New file.
1910 * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: New file.
1911 * sysdeps/unix/sysv/linux/setsourcefilter.c: New file.
1912 * sysdeps/unix/sysv/linux/getsourcefilter.c: New file. [BZ #211]
1914 * po/ko.po: Update from translation team.
1916 2004-08-04 Jakub Jelinek <jakub@redhat.com>
1918 * hesiod/hesiod.c (__hesiod_res_get): Use calloc instead of malloc +
1920 (__hesiod_res_set): Free nsaddrs.
1922 * include/resolv.h (__res_maybe_init): Add prototype.
1923 * resolv/resolv.h (struct __res_state): Add _u._ext.initstamp field.
1924 * resolv/Versions (libc): Add __res_maybe_init@@GLIBC_PRIVATE.
1925 * resolv/res_libc.c (__res_initstamp, lock): New variables.
1926 (res_init): Increase __res_initstamp.
1927 (__res_maybe_init): New function.
1928 * resolv/res_init.c (__res_vinit): Initialize _u._ext.initstamp.
1929 * hesiod/hesiod.c (__hesiod_res_get): Use __res_maybe_init instead
1930 of RES_INIT check and {res_ninit,__res_ninit,res_init} call.
1931 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
1932 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
1933 _nss_dns_gethostbyaddr_r): Likewise.
1934 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
1935 _nss_dns_getnetbyaddr_r): Likewise.
1936 * resolv/gethnamaddr.c (gethostbyname, gethostbyname2,
1937 gethostbyaddr): Likewise.
1938 * resolv/res_data.c (fp_nquery, res_mkquery, res_mkupdate,
1939 res_isourserver, res_sendsigned, res_update, res_search,
1940 res_querydomain): Likewise.
1941 * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Likewise.
1942 * nss/digits_dots.c (__nss_hostname_digits_dots): Likewise.
1943 * nss/getnssent_r.c (__nss_setent, __nss_endent, __nss_getent_r):
1946 2004-08-05 Ulrich Drepper <drepper@redhat.com>
1948 * sysdeps/posix/getaddrinfo.c (gaih_inet): Set ai_family for
1949 V4-mapped IPv6 addresses and req->ai_family==AF_INET.
1950 Reported by A. Guru <a.guru@sympatico.ca>.
1952 * po/sv.po: Update from translation team.
1953 * po/sk.po: Likewise.
1954 * po/pl.po: Likewise.
1956 2004-08-04 Jakub Jelinek <jakub@redhat.com>
1957 Ulrich Drepper <drepper@redhat.com>
1959 * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Don't read more input
1960 characters than necessary.
1962 2004-08-05 Ulrich Drepper <drepper@redhat.com>
1964 * wcsmbs/Makefile (tests): Add tst-mbsrtowcs.
1965 * wcsmbs/tst-mbsrtowcs.c: New file.
1967 * po/fr.po: Update from translation team.
1969 2004-08-04 Jakub Jelinek <jakub@redhat.com>
1971 * resolv/inet_pton.c (inet_pton4): Disallow octal numbers. Reported
1972 by A. Guru <a.guru@sympatico.ca>. [BZ #295]
1974 2004-08-05 Ulrich Drepper <drepper@redhat.com>
1976 * po/nl.po: Update from translation team.
1978 * sysdeps/posix/getaddrinfo.c (gaih_inet): Recognize all the IPv4
1979 numeric address formats inet_addr knows.
1980 (getaddrinfo): Allow AI_NUMERICSERV flag.
1981 If neither IPv4 nor IPv6 interface is present we cannot make any
1982 decision for AI_ADDRCONFIG. Fail if AI_NUMERICSERV is set and the
1983 string is not just a number. Remove useless freeaddrinfo call.
1984 * resolv/netdb.h (AI_NUMERICSERV): Define.
1985 Based on a patch by a.guru@sympatico.ca.
1987 2004-08-04 Jakub Jelinek <jakub@redhat.com>
1989 * stdlib/strfmon_l.c (__vstrfmon_l): Memset whole info structure
1990 instead of trying to initialize some, but not all, fields one by
1992 * stdio-common/printf_size.c (printf_size): Initialize fb_info
1993 structure with *info instead of trying to initialize some, but not
1994 all, fields from it.
1996 * nscd/connections.c (handle_request): Check if req->type is in
1997 LASTDBREQ .. LASTREQ range instead of req.
1999 * locale/programs/linereader.c (lr_create): Initialize
2000 lr->return_widestr to 0.
2002 * elf/dl-close.c (free_slotinfo): Add __libc_freeres_fn_section.
2003 (free_mem): Call free_slotinfo just once.
2005 * stdio-common/tst-fmemopen.c (main): Check for MAP_FAILED instead
2008 * locale/localeinfo.h (_nl_locale_subfreeres): New prototype.
2009 * locale/setlocale.c (free_category): Add __libc_freeres_fn_section.
2010 (free_mem): Rename to _nl_locale_subfreeres.
2011 * iconv/gconv_db.c: Include locale/localeinfo.h.
2012 (free_derivation, free_modules_db): Add __libc_freeres_fn_section.
2013 (free_mem): Call _nl_locale_subfreeres.
2014 * iconv/gconv_dl.c (do_release_all): Add __libc_freeres_fn_section.
2016 2004-08-04 Roland McGrath <roland@frob.com>
2018 * Makeconfig ($(common-objpfx)config.status):
2019 Fix typo: $(add_ons) -> $(add-ons).
2020 (Makeconfig-add-on): New variable. When doing $(sysdep-makeconfigs)
2021 include, use black magic to get it set to an add-on's name during the
2022 include of the add-on's Makeconfig.
2024 * configure.in: Use variable name `libc_add_on' when sourcing add-on
2025 configure fragments, so they can refer to this.
2026 * configure: Regenerated.
2028 2004-08-04 Roland McGrath <roland@redhat.com>
2030 * posix/tst-waitid.c (test_child): Sleep a second before stopping.
2031 (do_test): Bump sleep to three seconds.
2032 (sigchld, check_sigchld): New functions.
2033 (do_test): Handle SIGCHLD and check for getting the right details.
2035 * posix/tst-waitid.c (do_test): Kill the child process when bailing
2036 out early on some failure.
2037 [WCONTINUED]: Test WCONTINUED functionality.
2039 2004-08-03 Ulrich Drepper <drepper@redhat.com>
2041 * nscd/connections.c (handle_request): Print more descriptive
2042 message for invalid request types.
2044 2004-08-02 Jakub Jelinek <jakub@redhat.com>
2046 * iconvdata/ibm932.c (BODY): Avoid binary search for ch >= 0xffff.
2047 Always treat high as highest number in range + 1.
2048 * iconvdata/ibm943.c (BODY): Likewise.
2050 2004-07-31 Bruno Haible <bruno@clisp.org>
2052 * iconvdata/JISX0213.TXT: Updated to JISX0213 plane 1 version 2004.
2053 * iconvdata/jisx0213.c (__jisx0213_to_ucs_main,
2054 __jisx0213_to_ucs_pagestart, __jisx0213_from_ucs_level1,
2055 __jisx0213_from_ucs_level2): Regenerated.
2056 * iconvdata/jisx0213.h (jisx0213_added_in_2004_p): New function.
2057 * iconvdata/iso-2022-jp-3.c (JISX0213_1_2000_set): Renamed from
2059 (JISX0213_1_2004_set): New enum value.
2060 (BODY for FROM_LOOP): Treat ESC $ ( Q like ESC $ ( O.
2061 (BODY for TO_LOOP): For JISX 0213 plane 1 characters, emit ESC $ ( O
2062 when possible, ESC $ ( Q when needed.
2063 * iconvdata/testdata/EUC-JISX0213: Add the 10 new characters.
2064 * iconvdata/testdata/EUC-JISX0213..UTF8: Update.
2065 * iconvdata/testdata/SHIFT_JISX0213: Add the 10 new characters.
2066 * iconvdata/testdata/SHIFT_JISX0213..UTF8: Update.
2067 * iconvdata/testdata/ISO-2022-JP-3: Add the 10 new JISX0213 characters.
2068 * iconvdata/testdata/ISO-2022-JP-3..UTF8: Update.
2070 2004-07-22 Bruno Haible <bruno@clisp.org>
2072 * iconvdata/gconv-modules (ISO-8859-7): Add alias ISO_8859-7:2003.
2074 2004-07-29 David S. Miller <davem@redhat.com>
2076 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy): Optimize
2077 better for smaller than 256 byte copies. Also, use only one
2078 unrolled loop instead of two for the large copy case.
2080 2004-07-30 Richard Henderson <rth@redhat.com>
2082 * sysdeps/alpha/divq.S: Save t3 before it gets clobbered.
2083 * sysdeps/alpha/remq.S: Likewise.
2084 * sysdeps/alpha/div.S, sysdeps/alpha/ldiv.S: Rewrite with the
2085 new division algorithms in divl.S and divq.S respectively.
2087 2004-07-28 GOTO Masanori <gotom@debian.or.jp>
2089 * timezone/asia: Update from tzdata2004b.
2090 * timezone/backward: Likewise.
2091 * timezone/europe: Likewise.
2092 * timezone/iso3166.tab: Likewise.
2093 * timezone/leapseconds: Likewise.
2094 * timezone/northamerica: Likewise.
2095 * timezone/southamerica: Likewise.
2096 * timezone/zone.tab: Likewise.
2098 * timezone/private.h: Update from tzcode2004b.
2099 * timezone/zic.c: Likewise.
2101 2004-07-27 Ulrich Drepper <drepper@redhat.com>
2103 * nscd/grpcache.c (cache_addgr): If necessary, add entry also
2104 under the name the user provided.
2105 * nscd/pwdcache.c (cache_addpw): Likewise.
2107 2004-07-26 Roland McGrath <roland@redhat.com>
2109 * sysdeps/posix/waitid.c [WEXITED]: Clear WEXITED bit in OPTIONS for
2112 2004-07-26 Ulrich Drepper <drepper@redhat.com>
2114 * nscd/hstcache.c (cache_addhst): Fix two scenarios which lead to
2117 * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Assign pointer for
2118 new buffer at the right time.
2119 Reported by Jakub Bogusz <qboosh@pld-linux.org>.
2121 2004-07-25 Ulrich Drepper <drepper@redhat.com>
2123 * inet/Versions [libc, GLIBC_2.3.4]: Add getipv4sourcefilter,
2124 getsourcefilter, setipv4sourcefilter, and setsourcefilter.
2125 * inet/Makefile (routines): Likewise.
2126 * inet/netinet/in.h: Add prototypes for getipv4sourcefilter,
2127 getsourcefilter, setipv4sourcefilter, and setsourcefilter.
2128 * sysdeps/generic/getipv4sourcefilter.c: New file.
2129 * sysdeps/generic/setipv4sourcefilter.c: New file.
2130 * sysdeps/generic/getsourcefilter.c: New file.
2131 * sysdeps/generic/setsourcefilter.c: New file.
2133 2004-07-17 Steven Munroe <sjmunroe@us.ibm.com>
2135 * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling
2136 for POWER4 machines.
2138 2004-07-21 Jakub Jelinek <jakub@redhat.com>
2141 * stdlib/strtod_l.c (INTERNAL (__STRTOF)): Fix used >=
2142 BITS_PER_MP_LIMB shifting up.
2143 * stdlib/tst-strtod.c (main): Add new tests.
2145 2004-07-23 Jakub Jelinek <jakub@redhat.com>
2148 * libio/iopopen.c (_IO_new_popen): Use _IO_init instead of
2149 _IO_no_init. Remove wd from struct locked_FILE.
2150 (_IO_wproc_jumps): Remove.
2151 Reported by Andrew Josey <a.josey@opengroup.org>.
2152 * stdio-common/Makefile (tests): Add tst-popen.
2153 * stdio-common/tst-popen.c: New test.
2155 2004-07-23 Ulrich Drepper <drepper@redhat.com>
2157 * posix/bits/posix1_lim.h: Fix values for _POSIX_CHILD_MAX and
2158 _POSIX_OPEN_MAX. Add _POSIX_HOST_NAME_MAX, _POSIX_SYMLINK_MAX,
2159 _POSIX_SYMLOOP_MAX, and _POSIX_RE_DUP_MAX.
2160 Reported by Andrew Josey.
2162 * include/features.h: Document _POSIX_C_SOURCE == 200112L.
2164 * grp/grp.h: Define gid_t if __USE_XOPEN2K is defined.
2165 * pwd/pwd.h: Define uid_t and gid_t if __USE_XOPEN2K is defined.
2166 * io/sys/stat.h: Define dev_t, gid_t, ino_t, mode_t, nlink_t,
2167 off_t, time_t, and uid_t if __USE_XOPEN2K is defined.
2168 * signal/signal.h: Define pid_t if __USE_XOPEN2K is defined.
2169 * posix/unistd.h: Define gid_t, off_t, pid_t, uid_t, and
2170 useconds_t if __USE_XOPEN2K is defined.
2171 * io/utime.h: Define time_t if __USE_XOPEN2K is defined.
2172 * libio/stdio.h: Declare fseeko and ftello if __USE_XOPEN2K is defined.
2174 2004-07-19 Thorsten Kukuk <kukuk@suse.de>
2176 * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
2177 allocate memory for large temporary variables with alloca.
2179 2004-07-22 Ulrich Drepper <drepper@redhat.com>
2181 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Compatibility
2182 code must have version GLIBC_2.0. Patch by Dwayne McConnell.
2184 * nscd/nscd_getgr_r.c (nscd_getgr_r): Avoid read call with NULL
2185 pointer and zero length.
2187 2004-07-21 Ulrich Drepper <drepper@redhat.com>
2189 * nscd/cache.c (prune_cache): Print correct list when debugging.
2191 2004-07-21 Jakub Jelinek <jakub@redhat.com>
2193 * resolv/res_libc.c (res_init): If RES_INIT is set and
2194 _res.nscount > 0, call __res_nclose and free nsaddrs.
2195 * resolv/Makefile: Add rules to build and run tst-leaks2.
2196 * resolv/tst-leaks2.c: New test.
2198 2004-07-21 Ulrich Drepper <drepper@redhat.com>
2200 * intl/libintl.h: Don't define macros for C++.
2201 Patch by Goto Masanori.
2203 2004-07-22 GOTO Masanori <gotom@debian.or.jp>
2206 * include/arpa/inet.h: Change inet_aton type from in_addr_t to int.
2207 * inet/arpa/inet.h: Likewise.
2208 * resolv/inet_addr.c: Likewise.
2210 2004-07-21 Alexandre Oliva <aoliva@redhat.com>
2212 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Add semtimedop.
2214 2004-07-20 Roland McGrath <roland@redhat.com>
2216 * configure.in (add_ons): Substitute this. Move $add_ons handling
2217 after AC_CANONICAL_HOST and default setting of $machine et al.
2218 Don't set $subdirs from $add_ons.
2219 Instead, source add-on/configure fragments early on.
2220 (base_machine): If it's already set, don't set it based on $machine.
2221 (libc_config_ok): New variable, set to no. If an add-on fragment sets
2222 it to yes, skip the tuple sanity check as if --enable-hacker-mode.
2223 (sysnames): Try appending add-on names after machine as well.
2224 * config.make.in (add-ons): Set from @add_ons@ instead of @subdirs@.
2225 * Makeconfig ($(common-objpfx)config.status): Also depend on configure
2226 files in $(add_ons) dirs.
2228 * sysdeps/unix/sysv/linux/bits/in.h (struct ip_mreq): Remove
2229 definition, now in netinet/in.h proper.
2231 2004-07-20 Alexandre Oliva <aoliva@redhat.com>
2233 * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h):
2234 Sort by syscalls. Make sure we get headers such as sgidefs.h from
2235 the build tree before just-installed ones.
2237 * sysdeps/mips/atomicity.h: Use standard names for ABI macros,
2238 include sgidefs.h where appropriate.
2239 * sysdeps/mips/dl-machine.h: Likewise.
2240 * sysdeps/mips/machine-gmon.h: Likewise.
2241 * sysdeps/mips/bits/setjmp.h: Likewise.
2242 * sysdeps/mips/fpu/bits/mathdef.h: Likewise.
2243 * sysdeps/mips/mips64/__longjmp.c: Likewise.
2244 * sysdeps/mips/mips64/setjmp_aux.c: Likewise.
2245 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
2246 * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
2247 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2248 * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
2249 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2250 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2251 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
2252 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
2253 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
2254 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: Likewise.
2255 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
2256 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
2257 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: Likewise.
2258 * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
2259 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
2260 * sysdeps/unix/sysv/linux/mips/sys/user.h: Likewise.
2261 * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h):
2263 * sysdeps/unix/sysv/linux/mips/configure.in (asm-unistd.h):
2266 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Update to use
2267 _dl_lookup_symbol_x.
2268 (elf_machine_runtime_link_map): Don't INTUSE _dl_signal_error.
2270 2004-07-20 Ulrich Drepper <drepper@redhat.com>
2272 * inet/netinet/in.h: Define struct ip_mreq and struct
2274 Define struct group_req and struct group_source_req.
2275 * sysdeps/unix/sysv/linux/bits/in.h: Define IP_UNBLOCK_SOURCE,
2276 IP_BLOCK_SOURCE, IP_ADD_SOURCE_MEMBERSHIP,
2277 IP_DROP_SOURCE_MEMBERSHIP, IP_MSFILTER, MCAST_JOIN_GROUP,
2278 MCAST_BLOCK_SOURCE, MCAST_UNBLOCK_SOURCE, MCAST_LEAVE_GROUP,
2279 MCAST_JOIN_SOURCE_GROUP, MCAST_LEAVE_SOURCE_GROUP, and
2281 Define MCAST_INCLUDE and MCAST_EXCLUDE.
2283 * iconvdata/gconv-modules: Add alias for IBM874 [BZ #244].
2285 2004-07-19 Jakub Jelinek <jakub@redhat.com>
2288 * math/libm-test.inc (max_value, min_value): New variables.
2289 (initialize): Initialize them.
2290 (pow_test): Add a couple of new tests.
2291 * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Don't generate invalid
2292 exception if |y| >= 1U<<31.
2293 * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Don't generate invalid
2294 exception if |y| >= 1L<<63.
2295 * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
2296 If y*log2(x) overflows to +-inf, return still +inf/+0 instead of NaN.
2297 * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
2299 2004-07-18 Ulrich Drepper <drepper@redhat.com>
2301 * nscd/pwdcache.c (cache_addpw): Optimize case of unsuccessful
2303 * nscd/grpcache.c (cache_addgr): Likewise.
2304 * nscd/hstcache.c (cache_addhst): Likewise.
2306 2004-07-10 GOTO Masanori <gotom@debian.or.jp>
2308 * sysdeps/s390/s390-32/elf/start.S: Remove symbol _fp_hw.
2309 * sysdeps/s390/s390-64/elf/start.S: Likewise.
2311 2004-04-16 Andreas Schwab <schwab@suse.de>
2313 * sysdeps/ia64/bits/atomic.h: Cast first argument of
2314 __sync_bool_compare_and_swap_si correct to void*.
2316 2004-07-17 Ulrich Drepper <drepper@redhat.com>
2318 * iconv/iconv_prog.c (print_known_names): Make machine-readable
2319 output even less cluttered.
2321 2004-07-16 Steven Munroe <sjmunroe@us.ibm.com>
2324 * setjmp/Makefile (tests): Add bug269-setjmp.
2325 * setjmp/bug269-setjmp.c: New file.
2326 * sysdeps/powerpc/powerpc64/__longjmp-common.S [SHARED && !IS_IN_rtld]:
2327 Store R2 from jmpbuf in callers TOC save area.
2328 * sysdeps/powerpc/powerpc64/bsd-_setjmp.S [SHARED && !IS_IN_rtld]:
2329 Store R2 in TOC save area.
2330 * sysdeps/powerpc/powerpc64/setjmp-common.S [SHARED && !IS_IN_rtld]:
2331 Copy TOC save area from previous frame as R2 (TOC) in jmpbuf.
2333 2004-07-16 Jakub Jelinek <jakub@redhat.com>
2335 * locale/newlocale.c: Include bits/libc-lock.h.
2336 (__libc_setlocale_lock): Extern decl.
2337 (__newlocale): Use it.
2338 Reported by Ulrich Weigand <Ulrich.Weigand@de.ibm.com>.
2340 2004-07-15 Jakub Jelinek <jakub@redhat.com>
2342 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Remove
2343 static inline __attribute ((always_inline)). Don't define if
2345 (__libc_fcntl): Use INLINE_SYSCALL directly instead of
2347 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__fcntl_nocancel):
2348 Remove static inline __attribute ((always_inline)). Don't define
2350 (__libc_fcntl): Use INLINE_SYSCALL directly instead of
2352 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Define to
2353 __libc_fcntl if NO_CANCELLATION and __ASSUME_FCNTL64 == 0.
2354 Don't define at all if NO_CANCELLATION and __ASSUME_FCNTL64 > 0.
2355 (__libc_fcntl): Don't define if __fcntl_nocancel is a macro.
2358 * sysdeps/i386/elf/start.S (_start): Use @GOT instead of @GOTOFF
2360 * elf/Makefile: Add rules to build and run tst-pie1.
2361 * elf/tst-pie1.c: New test.
2362 * elf/tst-piemod1.c: New file.
2364 2004-07-14 Jakub Jelinek <jakub@redhat.com>
2367 * manual/string.texi (l64a): Note that the static buffer is 7 bytes
2368 long. Rewrite example code so that it takes into account l64a output
2369 shorter than 6 characters.
2370 Reported by Julian Graham <julian.graham@aya.yale.edu>.
2372 2004-07-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2374 * sysdeps/sh/dl-machine.h: Don't reset _dl_starting_up here.
2375 (elf_machine_rela_relative): Remove unused valiable.
2377 2004-07-12 Paul Eggert <eggert@cs.ucla.edu>
2380 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Don't store
2381 outside the buffer if the read returns 0. __strtod_l can't set
2382 endp to NULL, so remove a test for that case.
2384 2004-07-12 Roland McGrath <roland@redhat.com>
2386 * manual/signal.texi (Interrupted Primitives): Make clear that
2387 TEMP_FAILURE_RETRY evaluates its expression as long int and compares
2388 it to -1 to define "failure".
2390 2004-07-10 Ulrich Drepper <drepper@redhat.com>
2392 * elf/ldconfig.c: Define PROCINFO_CLASS as static before including
2394 * sysdeps/generic/ldsodefs.h: Only define PROCINFO_CLASS if it is not
2396 * sysdeps/i386/dl-procinfo.c: Define PROCINFO_CALLS only if not
2399 * elf/rtld.c (print_statistics): Mark with noinline attribute.
2400 * sysdeps/i386/dl-machine.h (elf_machine_rel): Mark with always_inline
2402 (elf_machine_rel_relative): Likewise.
2404 * include/string.h: Add libc_hidden_proto for __strtok_r and
2406 * sysdeps/generic/strsep.c: Add libc_hidden_def.
2407 * sysdeps/generic/strtok_r.c: Likewise.
2408 * sysdeps/i386/strtok_r.S: Add alias for internal symbol.
2409 * sysdeps/i386/i686/strtok_r.S: Likewise.
2410 * sysdeps/x86_64/strtok_r.S: Likewise.
2412 2004-07-09 Alexandre Oliva <aoliva@redhat.com>
2414 * inet/getnetgrent_r.c (internal_setnetgrent): Make it hidden
2415 instead of internal-linkage, such that we can alias to it.
2416 (internal_endnetgrent, internal_getnetgrent_r): Likewise.
2418 2004-07-09 Ulrich Drepper <drepper@redhat.com>
2420 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Move attribute
2421 to the front for gcc 3.5+.
2422 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
2423 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise.
2424 * include/fcntl.h: Don't declare __fcntl_nocancel here if
2425 NO_CANCELLATION is defined.
2427 2004-07-07 Jakub Jelinek <jakub@redhat.com>
2429 * elf/dl-fini.c (_dl_fini): Add nloaded variable, load
2430 GL(dl_nloaded) into it while still in critical section.
2432 2004-07-06 Thorsten Kukuk <kukuk@suse.de>
2434 * nss/getent.c (print_group, print_passwd): Use %lu format for
2435 `unsigned long int' values.
2437 * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Fix syntax
2438 error typos in goto statements.
2440 2004-07-07 Roland McGrath <roland@frob.com>
2442 * Makefile (dist-separate): New variable.
2443 (glibc-%.tar rule): Make separate tar files for add-ons listed there.
2444 Depend on their configure files.
2445 (dist-do-separate-dirs): New canned sequence to do that.
2446 (dist-separate-libidn, dist-separate-linuxthreads): New variables.
2447 (dist): Depend on add-on tar files based on $(dist-separate).
2448 (dist-version): New variable, default to $(version).
2449 (tag-for-dist, dist): Use that in place of $(version) in deps.
2451 2004-07-07 Ulrich Drepper <drepper@redhat.com>
2453 * elf/dl-fini.c (_dl_fini): Move the unlock of the ld.so lock
2454 before the loop running the destructors.
2456 2004-05-18 Andreas Schwab <schwab@suse.de>
2458 * elf/dl-load.c (_dl_map_object_from_fd): Use the end address of
2459 the first segment for mprotect, not l_text_end.
2461 2004-07-05 Ulrich Drepper <drepper@redhat.com>
2463 * elf/dl-profile.c (_dl_start_profile): Compact error handling.
2464 Remove hashfraction variable. Make kcount and kcountsize local
2467 * elf/dl-init.c: Don't define and use _dl_starting_up if
2468 HAVE_INLINED_SYSCALLS is defined and the variable is not used.
2469 * elf/dl-support.c: Likewise.
2470 * elf/rtld.c: Likewise.
2471 * elf/dl-misc.c (_dl_debug_vdprintf): Use writev syscall directly
2472 if HAVE_INLINED_SYSCALLS is defined.
2473 * sysdeps/powerpc/powerpc64/dl-machine.h: Don't reset _dl_starting_up
2475 * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
2476 * sysdeps/unix/sysv/linux/configure.in: Define HAVE_INLINED_SYSCALLS.
2477 * config.h.in: Add entry for HAVE_INLINED_SYSCALLS.
2479 * sysdeps/posix/profil.c: If compiled for ld.so, omit code which
2480 is needed to stop profiling.
2481 * elf/dl-open.c (dl_open_worker): If a newly opened object is to be
2482 profile make sure it cannot be unloaded.
2484 * sysdeps/unix/sysv/linux/dl-origin.c: Inline readlink syscall.
2486 * sysdeps/unix/sysv/linux/fcntl.c: If compiled without cancellation
2487 support, make sure the helper function is inlined.
2488 * sysdeps/unix/sysv/linux/pread.c: Likewise.
2489 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
2490 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
2491 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise.
2493 2004-07-05 Jakub Jelinek <jakub@redhat.com>
2495 * include/string.h (ffs): Add libc_hidden_builtin_proto.
2496 * sysdeps/rs6000/ffs.c (ffs): Add libc_hidden_builtin_def.
2497 * sysdeps/alpha/alphaev67/ffs.S (ffs): Likewise.
2498 * sysdeps/alpha/ffs.S (ffs): Likewise.
2499 * sysdeps/s390/ffs.c (ffs): Likewise.
2500 * sysdeps/powerpc/ffs.c (ffs): Likewise.
2501 * sysdeps/i386/ffs.c (ffs): Likewise.
2502 * sysdeps/i386/i686/ffs.c (ffs): Likewise.
2503 * sysdeps/m68k/ffs.c (ffs): Likewise.
2504 * sysdeps/generic/ffs.c (ffs): Likewise.
2505 * sysdeps/m88k/ffs.c (ffs): Likewise.
2506 * sysdeps/am29k/ffs.c (ffs): Likewise.
2507 * sysdeps/i960/ffs.c (ffs): Likewise.
2508 * sysdeps/x86_64/ffs.c (ffs): Likewise.
2510 * Makerules (check-abi): Use diff -p -U 0 instead of diff -pu0.
2512 * sysdeps/powerpc/novmx-longjmp.c (__libc_longjmp,
2513 __libc_siglongjmp): Remove symbol_version.
2514 * sysdeps/powerpc/longjmp.c (__libc_longjmp, __libc_siglongjmp):
2515 Export @@GLIBC_PRIVATE, not @@GLIBC_2.3.4.
2516 * sysdeps/powerpc/sigjmp.c (__sigjmp_save): Use strong_alias
2518 * sysdeps/powerpc/novmx-sigjmp.c (__sigjmp_save): Remove.
2519 * sysdeps/powerpc/powerpc32/__longjmp.S (__longjmp): Use
2520 strong_alias instead of default_symbol_version, remove
2522 * sysdeps/powerpc/powerpc64/__longjmp.S (__longjmp): Likewise.
2523 * sysdeps/powerpc/powerpc32/bsd-setjmp.S (__novmx__setjmp): Change
2524 into strong_alias to __novmxsetjmp.
2525 (__vmx__setjmp): Similarly with __vmxsetjmp.
2526 (__setjmp): Make it strong_alias to __vmx__setjmp, remove
2527 default_symbol_version and symbol_version.
2528 * sysdeps/powerpc/powerpc64/bsd-setjmp.S (__novmx__setjmp): Change
2529 into strong_alias to __novmxsetjmp.
2530 (__vmx__setjmp): Similarly with __vmxsetjmp.
2531 (__setjmp): Make it strong_alias to __vmx__setjmp, remove
2532 default_symbol_version and symbol_version.
2534 * nscd/nscd_getgr_r.c: Include stdio-common/_itoa.h.
2536 2004-07-05 Ulrich Drepper <drepper@redhat.com>
2538 * elf/rtld.c (dl_main): Mark dyn_temp with attribute_relro.
2540 2004-07-04 Matthew Reppert <arashi@kai.vm.bytemark.co.uk>
2542 * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Use libc_hidden_ver
2543 instead of libc_hidden_def.
2545 2004-07-01 Roland McGrath <roland@redhat.com>
2547 * aclocal.m4: Add provide for AC_CONFIG_AUX_DIR_DEFAULT.
2549 * Makeconfig ($(common-objpfx)shlib-versions.v.i): Move top-level
2550 $(..)shlib-versions file to last in deps list. This lets add-ons give
2551 more-specific matches that override defaults in the top-level file.
2553 * sysdeps/unix/sysv/linux/configure.in: If arch_minimum_kernel was
2554 already set, don't set it or libc_cv_gcc_unwind_find_fde.
2555 * sysdeps/unix/sysv/linux/configure: Regenerated.
2557 2004-07-01 Martin Schwidefsky <schwidefsky@de.ibm.com>
2559 * sysdeps/s390/fpu/bits/mathinline.h [__LIBC_INTERNAL_MATH_INLINES]
2560 (__ieee754_sqrt): Define as __MATH_INLINE using sqdbr instruction.
2561 (__ieee754_sqrtf): Define as __MATH_INLINE using sqebr instruction.
2562 * sysdeps/s390/fpu/e_sqrt.c: New file.
2563 * sysdeps/s390/fpu/e_sqrtf.c: New file.
2564 * sysdeps/s390/Implies: New file.
2565 * sysdeps/s390/s390-32/Implies: Remove ieee754, move
2566 ieee754/dbl-64 and ieee754/flt-32 to s390/Implies.
2567 * sysdeps/s390/s390-64/Implies: Likewise.
2569 2004-06-30 Jakub Jelinek <jakub@redhat.com>
2571 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Include tls.h.
2572 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2574 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (thread_start):
2575 DO_CALL (exit, 1) instead of branching to _exit.
2576 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (thread_start):
2579 * sysdeps/s390/fpu/bits/mathinline.h: New file.
2581 * include/glob.h (glob64): Add libc_hidden_proto.
2582 * sysdeps/generic/glob64.c (glob64): Add libc_hidden_def.
2583 * sysdeps/gnu/glob64.c (glob64): Likewise.
2584 * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Likewise.
2586 2004-06-11 Jakub Jelinek <jakub@redhat.com>
2588 * sysdeps/i386/fpu/libm-test-ulps: Update for GCC 3.4.
2589 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
2591 2004-06-11 Dwayne Grant McConnell <dgm69@us.ibm.com>
2593 * sysdeps/powerpc/fpu/s_lround.c: Removed.
2594 * sysdeps/powerpc/fpu/s_lroundf.c: Removed.
2595 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: New file.
2596 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: New file.
2597 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: New file.
2598 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: New file.
2599 * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: Removed.
2600 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: New file.
2601 * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: New file.
2602 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: New file.
2603 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: New file.
2604 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: New file.
2605 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: New file.
2606 * sysdeps/powerpc/powerpc32/fpu/s_round.S: New file.
2607 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: New file.
2608 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: New file.
2610 2004-06-30 Ulrich Drepper <drepper@redhat.com>
2612 * include/net/if.h: Handle if_nameindex and if_freenameindex with
2614 * sysdeps/unix/sysv/linux/netlinkaccess.h: New file.
2615 * sysdeps/unix/sysv/linux/ifaddrs.c: Export netlink handling functions.
2616 * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Implement using
2617 netlink if possible. Fall back on ioctl method if necessary.
2618 * sysdeps/unix/sysv/linux/Dist: Add netlinkaccess.h.
2620 * include/unistd.h: Declare __truncate.
2621 * sysdeps/generic/truncate.c: Also define __truncate.
2622 * sysdeps/mach/hurd/truncate.c: Likewise.
2623 * sysdeps/unix/common/syscalls.list: Likewise.
2624 * sysdeps/unix/sysv/linux/truncate64.c: Use __truncate, not truncate.
2626 2004-06-29 Ulrich Drepper <drepper@redhat.com>
2628 * stdio-common/printf-parsemb.c (__parse_one_specmb): Initialize
2629 info.extra. Patch by Marcus Meissner.
2631 2004-06-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2633 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
2634 Fix branch offset for a PLT entry.
2636 2004-06-20 Jim Meyering <jim@meyering.net>
2638 * malloc/obstack.h (obstack_base): Cast to `void *', to align with
2641 2004-06-28 Ulrich Drepper <drepper@redhat.com>
2643 * inet/bug-if1.c (do_test): Simply use 0 as invalid index.
2644 Workaround for [BZ #232].
2646 * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Use extend_alloca.
2648 2004-06-28 GOTO Masanori <gotom@debian.or.jp>
2650 * iconv/gconv_simple.c: Use get16/put16 for user given buffer
2651 in ucs2/ucs2reverse when unaligned memory access is attempted.
2652 * iconv/tst-iconv5.c: New file.
2653 * iconv/Makefile (tests): Add tst-iconv5.
2655 2004-06-28 Jakub Jelinek <jakub@redhat.com>
2657 * inet/bug-if1.c: Include <string.h>.
2659 2004-06-19 Roland McGrath <roland@redhat.com>
2661 * sysdeps/posix/waitid.c (do_waitid) [DO_WAITID]: Define function
2662 under this macro name instead.
2663 [NO_DO_WAITID]: Don't define it at all.
2664 (do_waitid) [WNOWAIT, WEXITED]: If these POSIX.1 waitid flag bits are
2665 defined, then return ENOTSUP for combinations of selection bits other
2666 than WEXITED and WEXITED|WSTOPPED, which this version cannot support.
2668 * posix/tst-waitid.c: New file.
2669 * posix/Makefile (tests): Add it.
2671 2004-06-28 Jakub Jelinek <jakub@redhat.com>
2673 * sysdeps/unix/alpha/sysdep.h (inline_syscall6): Fix a typo.
2676 * sysdeps/unix/alpha/sysdep.S (__syscall_error): Avoid !samegp
2677 relocation in librt.so.
2680 * sysdeps/alpha/dl-machine.h (_dl_start_user): Use ldah/ldl to load
2681 _dl_skip_args. Patch by Jakub Bogusz <qboosh@pld-linux.org>.
2683 2004-06-27 Ulrich Drepper <drepper@redhat.com>
2685 * elf/ldconfig.c (add_dir): Take chroot into account.
2686 Based on changes by HJ Lu and Hideki Iwamoto.
2688 * nscd/connections.c (invalidate_cache): If the host cache has to
2689 be invalidated, re-read resolv.conf.
2691 * resolv/resolv.h (RES_NOIP6DOTINT): Define.
2692 * resolv/res_init.c (res_setoptions): Handle no-ip6-dotint option.
2693 * resolv/gethnamaddr.c (gethostbyaddr): Don't lookup with .ip6.int
2694 if RES_NOIP6DOTINT flag is set.
2695 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
2697 2004-06-25 Jakub Jelinek <jakub@redhat.com>
2699 * sysdeps/unix/sysv/linux/powerpc/fcntl.c: Move to...
2700 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fcntl.c: ... here.
2701 * sysdeps/unix/sysv/linux/powerpc/lockf64.c: Move to...
2702 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: ... here.
2703 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: New file.
2705 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_GETLK, F_SETLK,
2706 F_SETLKW): Fix values for -m32 -D_FILE_OFFSET_BITS=64.
2708 2004-06-21 Jakub Jelinek <jakub@redhat.com>
2711 * sysdeps/unix/alpha/Makefile: New file.
2712 * sysdeps/unix/alpha/rt-sysdep.S: New file.
2713 Reported by Jakub Bogusz <qboosh@pld-linux.org>.
2715 2004-06-18 Ulrich Drepper <drepper@redhat.com>
2717 * sysdeps/posix/getaddrinfo.c (gaih_inet): For AI_CANONNAME,
2718 determine the canonical name only for the first returned entry.
2720 * inet/bug-if1.c: New file.
2721 * inet/Makefile (tests): Add bug-if1.
2723 2004-06-18 Roland McGrath <roland@frob.com>
2725 * Makerules (compile-mkdep-flags): Add -MT $@.
2727 * Makefile (dist, tag-for-dist): New targets.
2728 (files-for-dist, tag-of-stem): New variables.
2729 (glibc-%.tar glibc-linuxthreads-%.tar): New pattern rule.
2730 Make tar files using cvs export.
2731 (%.bz2, %.gz, tag-%): New pattern rules.
2732 (distribute): Variable removed.
2733 (+subdir_targets): Remove distinfo targets.
2734 (echo_subdirs, echo-distinfo, parent_echo-distinfo): Targets removed.
2735 (rpm/%): Pattern rule removed.
2736 * rpm/Makefile, rpm/rpmrc, rpm/template: Ancient cruft files removed.
2737 * Rules (subdir_echo-headers, subdir_echo-distinfo, subdir_dist):
2739 * Makerules (dist, subdir_distinfo): Targets removed.
2740 ($(objpfx)distinfo): Depend on $(distribute).
2741 * Make-dist: File removed.
2743 * NEWS: Fix a typo. Update bug-reporting instructions.
2745 2004-06-17 Thorsten Kukuk <kukuk@suse.de>
2747 * sysdeps/unix/sysv/linux/sched_setaffinity.c
2748 (__sched_setaffinity_new): Set errno to EINVAL and return -1 if
2749 cpuset is wrongly set.
2751 2004-06-15 Steven Munroe <sjmunroe@us.ibm.com>
2753 * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling
2754 for POWER4 machines.
2756 2004-06-14 Jakub Jelinek <jakub@redhat.com>
2759 * sunrpc/pmap_prot2.c (xdr_pmaplist): When freeing, remember pml_next
2760 in a local variable, point rp to that local variable afterwards.
2762 2004-06-11 Jakub Jelinek <jakub@redhat.com>
2764 * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Handle special
2767 2004-06-17 Ulrich Drepper <drepper@redhat.com>
2769 * sysdeps/unix/sysv/linux/if_index.c (if_indextoname): Correct
2770 error value for unknown interface. [BZ #198]
2772 2004-06-13 Jakub Jelinek <jakub@redhat.com>
2774 * sysdeps/i386/bits/string.h (memcpy): Add () around arguments.
2775 (memchr, __memrchr, strlen, strcmp, strncmp, __strchr_g, __strchr_c,
2776 __strchrnul_g, __strchrnul_c, strspn, strcspn, strpbrk): Add memory
2777 the asm uses as its input, either of size __n where __n is known or
2779 (strstr): Add "memory" clobber.
2781 2004-06-14 Jakub Jelinek <jakub@redhat.com>
2784 * nss/nsswitch.c (free_mem): Don't try to close a library handle
2785 if the handle is invalid. Patch by David Kimdon <kimdon@esrf.fr>.
2787 2004-06-11 Dmitry V. Levin <ldv@altlinux.org>
2790 * debug/xtrace.sh: Fix typo in error diagnostics.
2792 2004-06-14 Andreas Schwab <schwab@suse.de>
2794 * stdio-common/psignal.c (psignal): Don't use BUF when asprintf
2797 2004-06-15 Steven Munroe <sjmunroe@us.ibm.com>
2799 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix pasto
2800 that clobbers r19. Fix pasto that overflowed sigcontext.v_reserve.
2801 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Fix pasto
2803 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Fix pasto
2804 that clobbers r19. Fix pasto that overflowed sigcontext.v_reserve.
2805 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S:
2806 Fix setting of sigcontext.v_regs. Fix pasto that clobbers r19.
2807 Fix pasto that overflowed sigcontext.v_reserve.
2808 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S:
2809 Fix pasto that clobbers r19.
2810 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Fix setting
2811 of sigcontext.v_regs. Fix pasto that clobbers r19. Fix pasto that
2812 overflowed sigcontext.v_reserve.
2814 2004-05-04 H.J. Lu <hongjiu.lu@intel.com>
2817 * sysdeps/generic/strtol_l.c (DEF): Use ".gnu.linkonce.r."
2818 instead of ".gnu.linkonce.ro." as the prefix for linkonce
2819 read-only section name.
2821 2004-06-14 Richard Henderson <rth@redhat.com>
2823 * sysdeps/alpha/div_libc.h (_ITOFS): Use "sp" not "$sp".
2824 (_ITOFT, _FTOIT, _ITOFT2): Likewise.
2826 2004-06-08 Jakub Jelinek <jakub@redhat.com>
2828 * sysdeps/s390/s390-32/backtrace.c (init): Guard with #ifdef SHARED.
2829 (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
2830 (__backtrace): Don't call init #ifndef SHARED.
2831 * sysdeps/s390/s390-64/backtrace.c (init): Guard with #ifdef SHARED.
2832 (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
2833 (__backtrace): Don't call init #ifndef SHARED.
2834 * sysdeps/ia64/backtrace.c (init): Guard with #ifdef SHARED.
2835 (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
2836 (__backtrace): Don't call init #ifndef SHARED.
2838 2004-06-11 Roland McGrath <roland@redhat.com>
2840 * sysdeps/arm/strlen.S [__ARMEB__]: Compute correctly for big-endian.
2841 From Krzysztof Halasa <khc@pm.waw.pl>.
2843 2004-06-10 Jakub Jelinek <jakub@redhat.com>
2845 * elf/tls-macros.h [__s390x__] (TLS_LD, TLS_GD): Clobber also r14.
2847 2004-06-08 Jakub Jelinek <jakub@redhat.com>
2850 * crypt/md5-crypt.c (__md5_crypt): Only update buflen if realloc
2851 succeeds. Reported by Miles Ohlrich <miles@cray.com>.
2853 * elf/chroot_canon.c (chroot_canon): Avoid segfault if first malloc
2854 fails. Avoid memory leak if realloc fails.
2856 2004-06-09 Jakub Jelinek <jakub@redhat.com>
2858 * sysdeps/generic/setenv.c (setenv): Return -1/EINVAL if name is
2859 NULL, "" or contains '=' character in it. Reported by
2860 Michael T Kerrisk <mtk-lists@gmx.net>.
2861 * stdlib/tst-environ.c: Include errno.h.
2862 (main): Add tests for these arguments to setenv/unsetenv.
2864 2004-06-07 Roland McGrath <roland@frob.com>
2866 * NEWS: Update bug reporting instructions. Fix some typos.
2868 2004-06-05 Ulrich Drepper <drepper@redhat.com>
2870 * stdio-common/_itoa.h: Don't expand _itoa inline for libc.
2871 * stdio-common/_itoa.c: Add _itoa implementation.
2873 * nscd/nscd_gethst_r.c (__nscd_open_socket): Change implementation
2874 to also send request. Add parameter to allow this.
2876 * nscd/nscd_getgr_r.c: Change __nscd_open_socket caller.
2877 * nscd/nscd_getpw_r.c: Likewise.
2878 * nscd/nscd-client.h: Change __nscd_open_socket prototype.
2880 2004-06-05 Andreas Jaeger <aj@suse.de>
2882 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2883 Handle more than 6 args correctly. Based on a patch by Masahide
2884 Washizawa <washi@jp.ibm.com>.
2886 2004-06-04 Ulrich Drepper <drepper@redhat.com>
2888 * nscd/nscd_gethst_r.c (nscd_gethst_r): Use __nss_not_use_nscd_hosts
2889 in all places, not __nss_not_use_nscd_group.
2890 Reported by Philippe Gregoire.
2892 2004-06-03 Ulrich Drepper <drepper@redhat.com>
2894 * sysdeps/i386/i486/bits/atomic.h: Optimize a bit.
2896 2004-05-07 Dmitry V. Levin <ldv@altlinux.org>
2898 * argp/argp-help.c (__argp_error, __argp_failure): Check result
2899 of __asprintf call and don't use string if it failed.
2900 * stdio-common/psignal.c (psignal): Likewise.
2901 * locale/programs/localedef.c (more_help): Likewise.
2902 * resolv/res_hconf.c (arg_service_list, arg_trimdomain_list,
2903 arg_bool, parse_line): Check result of __asprintf calls and
2904 don't use string if they failed.
2905 * sunrpc/svc_simple.c (registerrpc, universal): Likewise.
2906 * elf/ldconfig.c (parse_conf_include): Check result of __asprintf
2907 call and exit if it failed.
2909 2004-05-10 Jakub Jelinek <jakub@redhat.com>
2911 * sysdeps/posix/sysconf.c (__sysconf) <cases _SC_REALTIME_SIGNALS,
2912 _SC_PRIORITY_SCHEDULING, _SC_TIMERS, _SC_ASYNCHRONOUS_IO,
2913 _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO, _SC_FSYNC, _SC_MAPPED_FILES,
2914 _SC_MEMLOCK, _SC_MEMLOCK_RANGE, _SC_MEMORY_PROTECTION,
2915 _SC_MESSAGE_PASSING, _SC_SEMAPHORES, _SC_SHARED_MEMORY_OBJECTS,
2916 _SC_THREADS, _SC_THREAD_SAFE_FUNCTIONS, _SC_THREAD_ATTR_STACKADDR,
2917 _SC_THREAD_ATTR_STACKSIZE, _SC_THREAD_PRIORITY_SCHEDULING,
2918 _SC_THREAD_PRIO_INHERIT, _SC_THREAD_PRIO_PROTECT,
2919 _SC_THREAD_PROCESS_SHARED>: Return _POSIX_* value instead of 1.
2920 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2921 <case _SC_MONOTONIC_CLOCK>: Return _POSIX_VERSION instead of 1.
2923 2004-05-07 Jeroen Dekkers <jeroen@dekkers.cx>
2925 * sysdeps/mach/hurd/i386/Makefile (CFLAGS-init-first.c): Add
2926 -momit-leaf-frame-pointer.
2928 * inet/test-ifaddrs.c (addr_string): Surround AF_PACKET case with
2931 * sysdeps/mach/hurd/getcwd.c
2932 (_hurd_canonicalize_directory_name_intern): Only realloc when
2935 * sysdeps/mach/hurd/mmap.c (__mmap): Fail when addr or offset
2938 * sysdeps/mach/hurd/spawni.c (EXPAND_DTABLE): Set dtablesize to
2941 * sysdeps/mach/hurd/Versions (GLIBC_PRIVATE): Add __libc_read,
2942 __libc_write and __libc_lseek64.
2944 2004-05-29 Roland McGrath <roland@redhat.com>
2946 * elf/Makefile (shared-only-routines): Add dl-caller.
2948 2004-05-28 Ulrich Drepper <drepper@redhat.com>
2950 * sysdeps/powerpc/configure.in: New file.
2952 2004-05-28 Steven Munroe <sjmunroe@us.ibm.com>
2954 * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Add .machine
2955 "altivec" to enable VMX instructions.
2956 * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
2957 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2958 * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
2959 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
2960 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
2961 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
2962 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
2963 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
2964 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
2966 2004-05-27 Jakub Jelinek <jakub@redhat.com>
2968 * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Define using
2969 __builtin_expm1l for GCC 3.5+.
2970 (__expl): Define using __builtin_expl for GCC 3.4+.
2971 (exp, expf, expl): Don't define for GCC 3.4+.
2972 (tan, tanf, tanl): Don't define for GCC 3.5+.
2973 (__atan2l): Define using __builtin_atan2l for GCC 3.4+.
2974 (atan2, atan2f, atan2l): Don't define for GCC 3.4+ or !__FAST_MATH__.
2975 (fmod, fmodf, fmodl): Don't define for GCC 3.5+ or !__FAST_MATH__.
2976 (fabsf, fabsl): Only provide if __USE_MISC or __USE_ISOC99.
2977 (sin, sinf, sinl, cos, cosf, cosl, log, logf, logl): Don't define
2979 (log10, log10f, log10l, asin, asinf, asinl, acos, acosf, acosl):
2980 Don't define for GCC 3.5+.
2981 (atan, atanf, atanl): Don't define for GCC 3.4+ or !__FAST_MATH__.
2982 (log1p, log1pf, log1pl, logb, logbf, logbl, log2, log2f, log2l): Don't
2983 define for GCC 3.5+.
2984 (drem, dremf, dreml): Don't define for GCC 3.5+ or !__FAST_MATH__.
2985 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt, sqrtf, sqrtl): Don't
2986 define for GCC 3.2+.
2988 2004-05-27 Jakub Jelinek <jakub@redhat.com>
2990 * string/bits/string2.h (__bzero): Define even for GCC 3.0+.
2991 * sysdeps/alpha/stpcpy.S (stpcpy): Add libc_hidden_builtin_def.
2992 * sysdeps/alpha/alphaev67/stpcpy.S (stpcpy): Likewise.
2993 * sysdeps/powerpc/powerpc32/stpcpy.S (stpcpy): Likewise.
2994 * sysdeps/powerpc/powerpc64/stpcpy.S (stpcpy): Likewise.
2995 * sysdeps/sparc/sparc32/stpcpy.S (stpcpy): Likewise.
2996 * sysdeps/sparc/sparc64/stpcpy.S (stpcpy): Likewise.
2997 * sysdeps/i386/stpcpy.S (stpcpy): Likewise.
2998 * sysdeps/i386/i586/stpcpy.S (stpcpy): Likewise.
2999 * sysdeps/generic/stpcpy.c (stpcpy): Likewise.
3000 * sysdeps/x86_64/stpcpy.S (stpcpy): Likewise.
3001 * sysdeps/i386/i586/memcpy.S (memcpy): Remove
3002 libc_hidden_builtin_def if MEMPCPY_P.
3003 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
3004 * sysdeps/i386/i686/mempcpy.S (mempcpy): Add libc_hidden_builtin_def.
3005 * sysdeps/i386/i586/mempcpy.S (mempcpy): Likewise.
3006 * sysdeps/generic/mempcpy.c (mempcpy): Likewise.
3007 * sysdeps/x86_64/mempcpy.S (mempcpy): Likewise.
3009 2004-05-26 Roland McGrath <roland@frob.com>
3011 * sysdeps/generic/bits/in.h
3012 (IMPLINK_IP, IMPLINK_LOWEXPER, IMPLINK_HIGHEXPER): Macros removed.
3013 These are long obsolete in BSD systems where they originated.
3014 * conform/data/netinet/in.h-data: Remove `allow IMPLINK_*'
3016 2004-05-26 Jakub Jelinek <jakub@redhat.com>
3018 * include/string.h (mempcpy, stpcpy): Add libc_hidden_builtin_proto.
3019 * string/bits/string2.h (memset): Disable macro for GCC 3.0+.
3020 (__mempcpy): Use __builtin_mempcpy for GCC 3.4+.
3021 (strchr): For GCC 3.2+, only use __rawmemchr if second argument is
3022 constant '\0' and first argument is not constant.
3023 (__stpcpy): Use __builtin_stpcpy for GCC 3.4+.
3024 (strncpy): Remove #ifdef _USE_STRING_ARCH_mempcpy variant.
3025 For GCC 3.2+ use __builtin_strncpy.
3026 (strncat): For GCC 3.2+ use __builtin_strncat.
3027 (strcmp): For GCC 3.2+ use __builtin_strcmp if both arguments are
3029 (strcspn, strspn, strpbrk): For GCC 3.2+, use builtin function
3030 if both arguments are constant.
3032 2004-05-26 Ulrich Drepper <drepper@redhat.com>
3034 * nss/nss_files/files-hosts.c: Fix condition for looking up IPv4
3035 mapped addresses in gethostbyaddr.
3037 2004-05-25 Ulrich Drepper <drepper@redhat.com>
3039 * nss/digits_dots.c (__nss_hostname_digits_dots): Remove typep and
3040 flags parameter, convert afp to simple int parameter. Adjust code.
3041 typep was never != NULL and flags therefore also unused. *afp is
3043 * nss/nsswitch.h: Adjust __nss_hostname_digits_dots prototype.
3044 * nss/getXXbyYY.c: Remove HAVE_TYPE handling. Adjust af parameter
3045 handling for __nss_hostname_digits_dots calls.
3046 * nss/getXXbyYY_r.c: Likewise.
3048 * elf/dl-load.c (_dl_map_object_from_fd): Map DSOs with MAP_DENYWRITE.
3050 2004-05-25 Steven Munroe <sjmunroe@us.ibm.com>
3052 * sysdeps/powerpc/fpu/Makefile: Make ld.so a dependency of libm.so.
3053 * sysdeps/powerpc/fpu/bits/mathinline.h [__LIBC_INERNAL_MATH_INLINES]
3054 (__ieee754_sqrt): Define as __MATH_INLINE using fsqrt instruction.
3055 (__ieee754_sqrtf): Define as __MATH_INLINE using fsqrts instruction.
3056 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Moved
3057 implementation from w_sqrt.c.
3058 * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Moved
3059 implementation from w_sqrtf.c.
3060 * sysdeps/powerpc/fpu/w_sqrt.c (__sqrt): Wrapper implementation
3061 using inline __ieee754_sqrt().
3062 * sysdeps/powerpc/fpu/w_sqrtf.c (__sqrtf): Wrapper implementation
3063 using inline __ieee754_sqrtf().
3064 * sysdeps/powerpc/powerpc32/sysdep.h [__ASSEMBLER__]: Include
3065 <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__.
3066 * sysdeps/powerpc/sysdep.h [__ASSEMBLER__] (PPC_FEATURE_*): Define
3067 PPC_FEATURE_* independent of __ASSEMBLER__.
3069 2004-05-25 Jakub Jelinek <jakub@redhat.com>
3071 * sysdeps/pthread/aio_notify.c: Use <> instead of "" for aio_misc.h
3073 (aio_start_notify_thread): Define if not defined.
3074 (notify_func_wrapper): Use it.
3075 * sysdeps/pthread/aio_misc.c: Use <> instead of "" for aio_misc.h
3077 (aio_create_helper_thread): Define if not defined.
3078 (__aio_create_helper_thread): New function.
3079 (__aio_enqueue_request): Use aio_create_helper_thread.
3081 * nis/ypclnt.c (ypall_data, ypall_foreach): Remove.
3082 (struct ypresp_all_data): New type.
3083 (__xdr_ypresp_all): Change second argument to
3084 struct ypresp_all_data *. Replace ypall_foreach and
3085 ypall_data with objp->foreach and objp->data.
3086 (yp_all): Remove status variable, add data. Replace
3087 all uses of status with data.status. Initialize data.foreach
3088 and data.data instead of ypall_foreach and ypall_data.
3090 2004-05-24 Jakub Jelinek <jakub@redhat.com>
3092 * elf/dl-lookup.c (add_dependency): Set DF_1_NODELETE bit
3093 in l_flags_1, not in l_flags.
3095 2004-04-10 Robert Millan <robertmh@gnu.org>
3097 * sysdeps/unix/sysv/linux/bits/in.h: Cosmetic fixes to get in sync
3098 with sysdeps/generic/bits/in.h.
3100 2004-05-25 Roland McGrath <roland@frob.com>
3102 * sysdeps/generic/unwind-dw2-fde-glibc.c: Change copyright terms from
3103 GCC GPL to standard glibc LGPL.
3105 2004-05-24 Ulrich Drepper <drepper@redhat.com>
3107 * manual/string.texi (Copying and Concatenation): Fixed second
3109 Reported by Fabian Pietsch <fabian@zzznowman.dyndns.org>.
3111 2004-05-23 Ulrich Drepper <drepper@redhat.com>
3113 * malloc/obstack.c: Don't allow linking with _obstack.
3115 2004-05-23 Andreas Schwab <schwab@suse.de>
3117 * sysdeps/m68k/m68020/bits/atomic.h: Use "+m" constraint instead
3118 of separate "m" constraints.
3120 2004-05-15 Chris Demetriou <cgd@broadcom.com>
3122 * sysdeps/mips/dl-machine.h (ELF_DL_FRAME_SIZE)
3123 (ELF_DL_SAVE_ARG_REGS, ELF_DL_RESTORE_ARG_REGS): For the N32
3124 and 64 ABIs, save and restore regs $10 and $11 (a6 and a7).
3126 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
3128 * malloc/obstack.c (_obstack) [!defined _LIBC]: Remove; not used.
3129 Add comment explaining why libc still defines it.
3131 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
3133 * malloc/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
3134 obstack_alignment_mask, obstack_alloc, obstack_base,
3135 obstack_blank, obstack_blank_fast, obstack_chunk_size,
3136 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
3137 obstack_grow0, obstack_init, obstack_int_grow,
3138 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
3139 obstack_next_free, obstack_object_size, obstack_ptr_grow,
3140 obstack_ptr_grow_fast, obstack_room): Remove declarations of
3141 nonexistent functions.
3143 2004-05-18 Steven Munroe <sjmunroe@us.ibm.com>
3145 * sysdeps/powerpc/powerpc64/sysdep.h [__ASSEMBLER__]: Include
3146 <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__.
3147 [PIC]: Redundent for powerpc64, removed.
3148 (ENTRY): Generate size and alignment for opd entry.
3149 (EALIGN): Generate size and alignment for opd entry.
3150 (END): Use DOT_LABEL in ASM_SIZE_DIRECTIVE.
3151 (END_GEN_TB): Use DOT_LABEL in ASM_SIZE_DIRECTIVE.
3153 2004-05-19 Ulrich Drepper <drepper@redhat.com>
3155 * misc/regexp.h: Say the functions have been withdrawn.
3157 * wcsmbs/tst-wcpncpy.c: Add more tests.
3159 2004-05-18 Roland McGrath <roland@frob.com>
3161 * sysdeps/generic/unwind.h: Change copyright terms from GCC GPL to
3162 standard glibc LGPL.
3163 * sysdeps/generic/unwind-dw2.c: Likewise.
3164 * sysdeps/generic/unwind-dw2-fde.c: Likewise.
3165 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
3166 * sysdeps/generic/unwind-pe.h: Likewise.
3168 2004-05-15 Petter Reinholdtsen <pere@hungry.com>
3170 * locale/iso-3166.def: Remove YUGOSLAVIA and insert "SERBIA AND
3171 MONTENEGRO" which have taken over the code 819. Patch from
3172 Danilo Segan. [BZ #40]
3174 2004-05-15 Jakub Jelinek <jakub@redhat.com>
3176 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3177 (SYSCALL_ERROR_HANDLER): Rename __sparc.get_pic.l7 to
3180 2004-05-15 Joseph S. Myers <jsm@polyomino.org.uk>
3182 * catgets/gencat.c: Update bug reporting instructions.
3183 * csu/version.c: Likewise.
3184 * debug/catchsegv.sh: Likewise.
3185 * debug/pcprofiledump.c: Likewise.
3186 * debug/xtrace.sh: Likewise.
3187 * elf/ldd.bash.in: Likewise.
3188 * iconv/iconv_prog.c: Likewise.
3189 * iconv/iconvconfig.c: Likewise.
3190 * locale/programs/locale.c: Likewise.
3191 * locale/programs/localedef.c: Likewise.
3192 * login/programs/pt_chown.c: Likewise.
3193 * malloc/memusage.sh: Likewise.
3194 * malloc/memusagestat.c: Likewise.
3195 * malloc/mtrace.pl: Likewise.
3196 * manual/crypt.texi: Likewise.
3197 * manual/install.texi: Likewise.
3198 * nss/makedb.c: Likewise.
3200 2004-05-14 Jakub Jelinek <jakub@redhat.com>
3202 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Only
3203 CHECK_STATIC_TLS if sym != NULL.
3204 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
3205 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
3207 2004-05-12 Andreas Schwab <schwab@suse.de>
3209 * posix/regex_internal.c (build_wcs_buffer): Also set pstr->mbs
3212 2004-05-13 H.J. Lu <hongjiu.lu@intel.com>
3214 * Rules (xtests): Depend on tests.
3216 2004-05-13 Jakub Jelinek <jakub@redhat.com>
3218 * libio/genops.c (_IO_default_xsputn): Avoid one overflow per char if
3219 count is negative, yet write_ptr < write_end.
3220 (_IO_default_xsgetn): Avoid one underflow per char if count is
3221 negative, yet read_ptr < read_end.
3223 2004-05-12 Steven Munroe <sjmunroe@us.ibm.com>
3225 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XTABS): Define XTABS
3228 2004-05-12 Ulrich Drepper <drepper@redhat.com>
3230 * elf/dl-lookup.c (_dl_lookup_symbol_x): Correct _dl_signal_cerror
3233 2004-05-10 Roland McGrath <roland@frob.com>
3235 * hurd/hurdlookup.c (__hurd_file_name_split): Return ENOENT for "".
3236 (__hurd_directory_name_split): Likewise.
3238 2004-05-10 Ulrich Drepper <drepper@redhat.com>
3240 * po/fr.po: Update from translation team.
3242 2004-05-10 Andreas Jaeger <aj@suse.de>
3244 * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3245 Correctly compute alignment.
3246 Patch by Michael Matz <matz@suse.de>.
3248 2004-05-09 Ulrich Drepper <drepper@redhat.com>
3250 * sysdeps/generic/sigpause.c: Prevent sigpause prototype.
3251 * sysdeps/posix/sigpause.c: Likewise.
3252 * signal/signal.h: Don't define sigpause macro unless needed.
3254 2004-05-08 Jakub Jelinek <jakub@redhat.com>
3256 * configure.in (libc_cv_libgcc_s_suffix): New check.
3257 (libc_cv_as_needed): Use -lgcc_s$libc_cv_libgcc_s_suffix.
3258 * config.make.in (libgcc_s_suffix): Set.
3259 * Makeconfig (libgcc_eh): Use -lgcc_s$(libgcc_s_suffix).
3261 2004-05-08 Ulrich Drepper <drepper@redhat.com>
3263 * signal/signal.h: Use BSD sigpause only if BSD behavior is preferred.
3265 2004-04-29 Steven Munroe <sjmunroe@us.ibm.com>
3267 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_1,
3268 LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6):
3269 Load argument values into temporary variables.
3270 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_1,
3271 LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6):
3274 2004-05-07 Ulrich Drepper <drepper@redhat.com>
3276 * sysdeps/unix/sysv/linux/Makefile: mq_send.c and mq_receive.c
3277 need to be compiled with exceptions.
3279 2004-05-06 Ulrich Drepper <drepper@redhat.com>
3281 * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Fix memory handling.
3282 * sysdeps/generic/ifreq.c (__ifreq): Fix memory handling.
3284 * resolv/res_hconf.c (_res_hconf_reorder_addrs): Make clear that
3285 realloc cannot fail.
3287 * nss/nss_files/files-netgrp.c (EXPAND): Free buffer which cannot
3290 * nis/nis_table.c: Clean up memory handling.
3291 * nis/nis_subr.c (nis_getnames): Clean up memory handling.
3292 * nis/nis_removemember.c (nis_removemember): Add comment
3293 explaining use of realloc.
3295 * math/tgmath.h (fabs): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL.
3297 Patch by Lev S Bishop <lev.bishop@yale.edu>.
3299 * math/bug-tgmath1.c (main): Test fabs and carg as well.
3301 2004-05-06 Richard Henderson <rth@redhat.com>
3303 * elf/elf.h (AT_L1I_CACHESHAPE, AT_L1D_CACHESHAPE,
3304 AT_L2_CACHESHAPE, AT_L3_CACHESHAPE): New.
3305 * sysdeps/unix/sysv/linux/alpha/Versions: Export
3306 __libc_alpha_cache_shape as a private symbol.
3307 * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c: New file.
3308 * sysdeps/unix/sysv/linux/alpha/sysconf.c: New file.
3310 2004-05-06 Richard Henderson <rth@redhat.com>
3312 * sysdeps/alpha/div_libc.h (_ITOFS, _ITOFT, _FTOIT, _ITOFT2): New.
3313 * sysdeps/alpha/divl.S: Use them.
3314 * sysdeps/alpha/divq.S: Likewise.
3315 * sysdeps/alpha/divqu.S: Likewise.
3316 * sysdeps/alpha/reml.S: Likewise.
3317 * sysdeps/alpha/remq.S: Likewise.
3318 * sysdeps/alpha/remqu.S: Likewise.
3320 2004-05-06 Ulrich Drepper <drepper@redhat.com>
3322 * math/tgmath.h (__TGMATH_UNARY_REAL_IMAG_RET_REAL):Define.
3325 * math/Makefile (tests): Add bug-tgmath1.
3326 * math/bug-tgmath1.c: New file.
3328 2004-05-05 Jakub Jelinek <jakub@redhat.com>
3330 * sysdeps/alpha/atomicity.h: Remove.
3331 * sysdeps/generic/atomicity.h: Remove.
3333 2004-05-05 H.J. Lu <hongjiu.lu@intel.com>
3335 * sysdeps/i386/i486/bits/string.h (strpbrk): Cast return to
3338 2004-04-22 David Mosberger <davidm@hpl.hp.com>
3340 * sysdeps/unix/sysv/linux/ia64/Makefile (librt-routines): Mention
3342 * sysdeps/unix/sysv/linux/ia64/rt-sysdep.S: New file.
3344 * sysdeps/ia64/strcat.c: New file.
3345 * sysdeps/ia64/strcat.S: Delete.
3347 2004-05-04 Jakub Jelinek <jakub@redhat.com>
3349 * sysdeps/unix/sysv/linux/ia64/sysdep.S (USE___THREAD): Remove
3352 2004-04-23 Jakub Jelinek <jakub@redhat.com>
3354 * sysdeps/ia64/fpu/libm_support.h (__libm_error_support): Add
3355 libc_hidden_proto. Define to __GI___libm_error_support for
3356 assembly going into libc.so.
3357 * sysdeps/ia64/fpu/libc_libm_error.c (__libm_error_support): Add
3360 * include/libc-symbols.h (HIDDEN_BUILTIN_JUMPTARGET): Define.
3361 * sysdeps/ia64/bcopy.S (bcopy): Use it for jump to memmove.
3363 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Access
3364 gprel errno if RTLD_PRIVATE_ERRNO or __thread __libc_errno/errno
3367 2004-05-03 Jakub Jelinek <jakub@redhat.com>
3369 * sysdeps/unix/bsd/bits/fcntl.h (F_SETOWN, F_GETOWN): Define if
3370 __USE_BSD or __USE_UNIX98.
3371 * sysdeps/unix/bsd/ultrix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3372 * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3373 * sysdeps/unix/bsd/sun/sunos4/bits/fcntl.h (F_SETOWN, F_GETOWN):
3375 * sysdeps/unix/common/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3376 * sysdeps/unix/sysv/aix/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3377 * sysdeps/unix/sysv/irix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3378 * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_SETOWN, F_GETOWN):
3380 * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_SETOWN, F_GETOWN):
3382 * sysdeps/unix/sysv/linux/cris/bits/fcntl.h (F_SETOWN, F_GETOWN):
3384 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (F_SETOWN, F_GETOWN):
3386 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_SETOWN, F_GETOWN):
3388 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN, F_GETOWN):
3390 * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (F_SETOWN, F_GETOWN):
3392 * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (F_SETOWN, F_GETOWN):
3394 * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (F_SETOWN, F_GETOWN):
3396 * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (F_SETOWN, F_GETOWN):
3398 * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (F_SETOWN, F_GETOWN):
3400 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (F_SETOWN, F_GETOWN):
3402 * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_SETOWN, F_GETOWN):
3404 * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3405 * sysdeps/mach/hurd/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3406 * io/sys/stat.h (S_ISSOCK, S_IFSOCK): Likewise.
3408 2004-05-01 Jakub Jelinek <jakub@redhat.com>
3410 * posix/Versions (libc): Remove __libc_wait, __libc_waitpid,
3411 __libc_pause, __libc_nanosleep, __libc_pread, __libc_pread64,
3412 __libc_pwrite64, __waitid and __pselect @@GLIBC_PRIVATE.
3413 * stdlib/Versions (libc): Remove __on_exit@@GLIBC_PRIVATE.
3414 * sysdeps/unix/sysv/linux/Versions (libc): Remove
3415 __libc_sigaction@@GLIBC_PRIVATE.
3416 * sysdeps/unix/sysv/linux/x86_64/Versions (libc): Remove
3417 __modify_ldt@@GLIBC_PRIVATE.
3418 * socket/Versions (libc): Remove __libc_accept, __libc_send,
3419 __libc_recvfrom, __libc_recvmsg, __libc_sendmsg, __libc_recv,
3420 __libc_sendto and __libc_connect @@GLIBC_PRIVATE.
3421 * stdio-common/Versions (libc): Remove
3422 _itoa_upper_digits@@GLIBC_PRIVATE.
3423 * resolv/Versions (libresolv): Remove __ns_samename@@GLIBC_PRIVATE.
3424 * misc/Versions (libc): Remove __libc_fsync, __libc_msync,
3425 __libc_readv and __libc_writev @@GLIBC_PRIVATE.
3426 * termios/Versions (libc): Remove __libc_tcdrain@@GLIBC_PRIVATE.
3427 * io/Versions (libc): Remove __libc_open, __libc_close, __libc_read,
3428 __libc_write, __libc_lseek, __libc_fcntl, __libc_open64 and
3429 __libc_lseek64 @@GLIBC_PRIVATE.
3431 2004-04-30 Jakub Jelinek <jakub@redhat.com>
3433 * elf/dl-load.c (open_verify): Move e_phentsize check after e_type
3436 2004-04-29 Steven Munroe <sjmunroe@us.ibm.com>
3438 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: New file.
3439 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: New file.
3440 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: New file.
3441 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: New file.
3442 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: Removed.
3443 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: New file.
3444 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Removed.
3445 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: New file.
3446 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: New file.
3447 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: New file.
3448 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: New file.
3449 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: New file.
3450 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: New file.
3451 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: New file.
3452 * sysdeps/powerpc/powerpc64/fpu/s_round.S: New file.
3453 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: New file.
3454 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: New file.
3455 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: New file.
3457 * math/test-misc.c [LDBL_MANT_DIG == 106](main): Correct LDBL_MAX
3458 mantissa for AIX long double format.
3459 * misc/qefgcvt.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Define for AIX
3461 * misc/qefgcvt_r.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Likewise.
3462 * stdlib/fpioconst.c [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024]
3463 (_fpioconst_pow10): AIX long double format has same exponent range as
3465 * stdlib/fpioconst.h [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024]
3466 (LDBL_MAX_10_EXP_LOG): AIX long double format has same exponent range
3469 2004-04-23 Art Haas <ahaas@airmail.net>
3471 * sysdeps/unix/sysv/linux/kernel-features.h: Add 'defined'.
3473 2004-04-28 Carlos O'Donell <carlos@baldric.uwo.ca>
3475 * sysdeps/unix/sysv/linux/mq_getattr.c: Include <stddef.h>.
3476 * sysdeps/unix/sysv/linux/mq_notify.c: Likewise.
3477 * sysdeps/unix/sysv/linux/mq_open.c: Likewise.
3478 * sysdeps/unix/sysv/linux/mq_receive.c: Likewise.
3479 * sysdeps/unix/sysv/linux/mq_send.c: Likewise.
3481 2004-04-29 Philip Blundell <pb@nexus.co.uk>
3483 * sysdeps/arm/dl-machine.h (RTLD_START): Avoid unnecessary GOT
3486 2004-04-29 Jakub Jelinek <jakub@redhat.com>
3488 * manual/resource.texi (sched_setaffinity, sched_getaffinity): Fix
3489 prototypes and description [BZ #131].
3491 * string/bits/string2.h (strpbrk): Cast NULL to char * [BZ #130].
3492 Patch by Ed Catmur <ed@catmur.co.uk>.
3493 * string/tst-inlcall.c (main): Add test for strpbrk.
3496 * sysdeps/unix/sysv/linux/sys/sysctl.h: Remove linux/compiler.h
3498 (_LINUX_KERNEL_H, _LINUX_TYPES_H, _LINUX_LIST_H): Only define if not
3499 yet defined, #undef back after including linux/sysctl.h if defined
3501 (__LINUX_COMPILER_H, __user): Define if not yet defined, #undef
3502 back after including linux/sysctl.h if defined here.
3504 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c (_Qp_qtoi): Use %f31
3505 for single precision register, add it to __asm clobbers [BZ #139].
3506 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c (_Qp_qtoui): Use %f31
3507 for single precision register, add it to __asm clobbers.
3508 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c (_Qp_qtoux): Use fqtox
3509 instead of fqtoi in QP_HANDLE_EXCEPTIONS.
3510 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c (_Qp_qtox): Likewise.
3511 Reported by M. H. VanLeeuwen <vanl@megsinet.net>.
3513 2004-04-23 Andreas Schwab <schwab@suse.de>
3515 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Use
3518 2004-04-22 Philip Blundell <philb@gnu.org>
3520 * sysdeps/arm/dl-machine.h (elf_machine_rela): Don't use INTUSE
3521 when calling _dl_signal_error.
3522 (elf_machine_rel): Likewise.
3524 2004-04-21 Ulrich Drepper <drepper@redhat.com>
3526 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Define _GI___sigsetjmp
3527 and use it internally instead of __sigsetjmp.
3528 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Use _GI___libm_frexp_4f.
3529 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Use _GI___libm_frexp_4l.
3530 * sysdeps/ia64/fpu/libm_frexp4.S: Define _GI___libm_frexp_4.
3531 * sysdeps/ia64/fpu/libm_frexp4f.S: Define _GI___libm_frexp_4f.
3532 * sysdeps/ia64/fpu/libm_frexp4l.S: Define _GI___libm_frexp_4l.
3533 * sysdeps/ia64/fpu/s_frexp.c (frexp): Use _GI___libm_frexp_4.
3534 * sysdeps/ia64/fpu/libm_support.h: Declare _GI___libm_frexp_4,
3535 _GI___libm_frexp_4f, _GI___libm_frexp_4l.
3536 * sysdeps/ia64/fpu/bits/mathinline.h: New file.
3537 * sysdeps/unix/sysv/linux/ia64/__start_context.S: Use
3538 HIDDEN_JUMPTARGET for exit call.
3539 * sysdeps/unix/sysv/linux/ia64/clone2.S: Use HIDDEN_JUMPTARGET for
3541 * sysdeps/ia64/bcopy.S: Use HIDDEN_JUMPTARGET for memmove call.
3542 * sysdeps/ia64/strcat.S: Use HIDDEN_JUMPTARGET for strlen and
3545 2004-04-21 Jakub Jelinek <jakub@redhat.com>
3547 * posix/tst-chmod.c (do_test): Fix a typo.
3549 * elf/lateglobal.c (main): Fix error checks.
3550 Patch by Stephen Clarke <stephen.clarke@st.com>.
3552 * manual/ctype.texi (isblank, iswblank): Mark as ISO functions,
3553 mention they have been added in ISO C99.
3554 Reported by Ben Pfaff <blp@cs.stanford.edu>.
3556 2004-03-31 H.J. Lu <hongjiu.lu@intel.com>
3558 * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Fix typo.
3560 2004-04-20 Jakub Jelinek <jakub@redhat.com>
3562 * sysdeps/unix/sysv/linux/shm_open.c (shm_unlink): Change EPERM into
3565 2004-04-20 Jakub Jelinek <jakub@redhat.com>
3567 * stdio-common/vfscanf.c (_IO_vfscanf): Revert last %% whitespace
3569 * stdio-common/tst-sscanf.c (int_tests): Adjust.
3571 * nis/nss-nis.c: Include stdlib.h.
3573 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Shut up a
3575 * sysdeps/sparc/sparc64/memcmp.S (memcmp): Remove BP_SYM () from
3576 libc_hidden_builtin_def.
3578 2004-04-20 Jim Meyering <jim@meyering.net>
3580 * misc/error.c (error_tail): Don't leak upon realloc failure.
3582 2004-04-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
3584 * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable):
3585 Use RETURN_ADDRESS instead of __builtin_return_address.
3587 2004-04-19 Ulrich Drepper <drepper@redhat.com>
3589 * sysdeps/unix/sysv/linux/mq_unlink.c: Rewrite to produce more
3592 2004-04-20 Jakub Jelinek <jakub@redhat.com>
3594 * stdio-common/vfscanf.c (_IO_vfscanf): When skipping whitespace,
3595 do input_error () instead of conv_error () and don't look at errno.
3596 Don't eat any whitespace before %% if skip_space == 0.
3597 * stdio-common/tst-sscanf.c (int_tests): New array.
3598 (main): Run int_tests.
3601 See ChangeLog.14 for earlier changes.