Update.
[glibc.git] / ChangeLog
blobc030053630193cc507ced6824dc22acd31c0ed11
1 2004-09-28  Ulrich Drepper  <drepper@redhat.com>
3         * malloc/arena.c (ptmalloc_init): Allow MALLOC_CHECK_==0 to
4         disable all checking.
6         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (si_flags): Add
7         support to get this value.
9 2004-09-28  Jakub Jelinek  <jakub@redhat.com>
11         * io/utime.h (utime): Allow second argument to be NULL.
13 2004-09-28  Ulrich Drepper  <drepper@redhat.com>
15         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NAME is a numerical IP
16         address and AI_CANONNAME is set, return copy of NAME as ai_canonname.
18 2004-09-27  Andreas Jaeger  <aj@suse.de>
20         * sysdeps/i386/dl-machine.h (elf_machine_rela_relative): Replace
21         static inline by auto inline, add always_inline attribute.
22         (elf_machine_rel): Likewise.
23         (elf_machine_rela): Likewise.
24         (elf_machine_lazy_rel): Likewise.
25         (elf_machine_lazy_rela): Likewise.
26         (elf_machine_rel_relative): Likewise.
28 2004-09-27  Ulrich Drepper  <drepper@redhat.com>
30         * sunrpc/xdr_intXX_t.c: Add xdr_quad_t and xdr_u_quad_t aliases.
31         * sunrpc/rpc/xdr.h: Declare xdr_quad_t and xdr_u_quad_t.
32         * sunrpc/rpc_parse.c (get_type): Use "quad_t" for TOK_HYPER.
33         Otherwise isvectordef will loop infinitely if typedef hyper int64_t
34         is seen.
35         (unsigned_dec): Use "u_quad_t" for similar reasons.
36         * sunrpc/Versions: Export xdr_quad_t and xdr_u_quad_t.
38 2004-09-27  Roland McGrath  <roland@redhat.com>
40         * sysdeps/generic/bits/waitstatus.h (__WIFSIGNALED): Simplify bit
41         twiddling in last change.
43         * posix/tst-waitid.c (do_test): Add tests for waitpid with WCONTINUED.
45         [BZ #409]
46         * posix/sys/wait.h [__WIFCONTINUED] (WIFCONTINUED): New macro.
47         * stdlib/stdlib.h [__WIFCONTINUED] (WIFCONTINUED): New macro.
48         * sysdeps/generic/bits/waitstatus.h (__W_CONTINUED): New macro.
49         [WCONTINUED] (__WIFCONTINUED): New macro.
50         (__WIFSIGNALED): Rewritten to exclude __W_CONTINUED value, and have no
51         branches.
53         * sysdeps/unix/sysv/linux/waitid.c (do_waitid): Add fifth argument to
54         all three syscall uses, not just one!
56 2004-09-26  Richard Henderson  <rth@redhat.com>
58         * sysdeps/alpha/alphaev6/memcpy.S: Mark .prologue.
59         * sysdeps/unix/alpha/sysdep.h (LEAF, ENTRY): Align entry points
60         to 16 byte boundaries.
62 2004-09-26  Ulrich Drepper  <drepper@redhat.com>
64         * elf/readlib.c (process_file): Before complaining about too-short
65         file, check that it potentially be an ELF file.  Also complain about
66         empty files.  [BZ #151].
68         * scripts/test-installation.pl: Fix ld.so recognition for new
69         LD_TRACE_LOADED_OBJECTS output format.
70         Patch by <jsberg04+computing.glibc@ftml.net>  [BZ #407].
72         * elf/dl-support.c (_dl_non_dynamic_init): Fix cleaning of
73         environment.  [BZ #384]
75         * sunrpc/clnt_udp.c (is_network_up): Use getifaddrs instead of ioctl.
76         * sunrpc/get_myaddr.c (get_myaddress): Likewise.
77         * sunrpc/pmap_clnt.c (__get_myaddress): Likewise.
78         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.  Change interface
79         to avoid buffer overrun and remove now useless parameters.
80         (clnt_broadcast): Adjust caller.  [BZ #381].
82         * sysdeps/generic/s_fdim.c: Handle +inf/+inf
83         * sysdeps/generic/s_fdimf.c: Likewise.
84         * sysdeps/generic/s_fdiml.c: Likewise.
85         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
86         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
87         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
88         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
89         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
90         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
91         * math/libm-test.inc (fdim_test): Add test case.  [BZ #376].
93         * sysdeps/generic/bits/types.h: Fix __SQUAD_TYPE and __UQUAD_TYPE
94         for compilers without __GLIBC_HAVE_LONG_LONG.  [BZ #362]
96         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Remove incorrect
97         requirement on socktype and protocol.
98         (gaih_inet): If numeric port number is given, return records for all
99         possible socket types.
100         * posix/tst-getaddrinfo2.c: New file.
101         * posix/Makefile (tests): Add tst-getaddrinfo2.  [BZ #358]
103 2004-09-25  Ulrich Drepper  <drepper@redhat.com>
105         * locale/loadlocale.c (_nl_intern_locale_data): Recognize LC_CTYPE
106         data where _nl_value_type_LC_CTYPE does not contain the type
107         information.  Add range checks.
108         Reported by John Lumby <johnlumby@hotmail.com> [BZ #356].
110         * libio/vasprintf.c (_IO_vasprintf): Fix condition to decide
111         whether to realloc or not.
112         Reported by Pavel Kankovsky <peak@argo.troja.mff.cuni.cz> [BZ #346].
114         * intl/dcigettext.c (DCIGETTEXT): Protect tfind/tsearch calls.
115         * intl/dcigettext.c (_nl_find_msg): Call _nl_load_domain also if
116         decided < 0.
117         * intl/finddomain.c (_nl_find_domain): Likewise.
118         * intl/loadmsgcat.c (_nl_load_domain): Set decided to 1 only once we
119         are done.  First set to -1 to signal initialization is ongoing.
120         Protect against concurrent callers with recursive lock.
121         * intl/finddomain.c (_nl_find_domain): Protect calls to
122         _nl_make_l10nflist.  [BZ #322]
124         * sysdeps/posix/getaddrinfo.c (getaddrinfo): If determinination of
125         source address fails, initialized source_addr_len field so that
126         duplicate address recognition does not copy junk.
128 2004-09-25  Jakub Jelinek  <jakub@redhat.com>
130         * sysdeps/unix/sysv/linux/i386/setuid.c (__setuid): Remove second
131         result declaration.
133 2004-09-22  Andreas Schwab  <schwab@suse.de>
135         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Adjust whitespace.
137 2004-09-24  Ulrich Drepper  <drepper@redhat.com>
139         * misc/daemon.c (daemon): Don't succeed if /dev/null cannot be
140         opened.
142         * nis/ypclnt.c (do_ypcall): Add one missing unlock.  Simplify the
143         code a bit.
145         * misc/daemon.c (daemon): Define errno in case /dev/null is not
146         the correct device.
148         * nis/ypclnt.c (yp_bind_file): Optimize a bit.  Minimal cleanups.
150 2004-09-23  Andreas Jaeger  <aj@suse.de>
152         * locale/weight.h (findidx): Remove static, it's not supported
153         anymore with GCC 4.0 in a block scope.
154         * locale/weightwc.h (findidx): Likewise.
155         * posix/regcomp.c (seek_collating_symbol_entry): Likewise.
156         (lookup_collation_sequence_value): Likewise.
157         (build_range_exp): Likewise.
158         (build_collating_symbol): Likewise.
159         * iconv/iconvconfig.c (write_output): Likewise.
160         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
162         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Remove
163         static, add always_inline attribute.
164         (elf_machine_rela): Likewise.
165         (elf_machine_lazy_rel): Likewise.
167         * elf/dynamic-link.h (elf_get_dynamic_info): Make static dependend
168         on !RESOLVE so that it's not defined in local scope.
170 2004-09-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
172         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL_NCS): Define.
174 2004-09-23  Thorsten Kukuk  <kukuk@suse.de>
176         * sysdeps/unix/sysv/linux/sys/mount.h: Sync MS_RMT_MASK flag
177         and BLK* ioctls with linux kernel headers.
179 2004-09-23  Ulrich Drepper  <drepper@redhat.com>
181         * sysdeps/generic/bits/dlfcn.h: Add RTLD_DEEPBIND.
182         * elf/dl-object.c (_dl_new_object): Add new parameter mode.  If mode
183         has RTLD_DEEPBIND set add local searchlist before global scope.
184         * sysdeps/generic/ldsodefs.h (_dl_new_object): Adjust prototype.
185         * elf/rtld.c: Adjust callers of _dl_new_object.
186         * elf/dl-load.c: Likewise.
187         (_dl_map_object_from_fd): If RTLD_DEEPBIND is used, don't do anything
188         for DF_SYMBOLIC.
189         * elf/dl-open.c (dl_open_writer): Pass RTLD_DEEPBIND flag on to
190         _dl_map_object_deps.
191         * elf/tst-deep1.c: New file.
192         * elf/tst-deep1mod1.c: New file.
193         * elf/tst-deep1mod2.c: New file.
194         * elf/tst-deep1mod3.c: New file.
195         * elf/Makefile: Add rules to build and run new tests.
197         * elf/dl-deps.c: Pretty printing.
199 2004-09-23  Jakub Jelinek  <jakub@redhat.com>
201         * sysdeps/unix/alpha/sysdep.h (inline_syscall[0-6]): Change name
202         argument to numbers from syscall names.
203         (INLINE_SYSCALL1): Pass __NR_##name to inline_syscall##nr.
204         (INTERNAL_SYSCALL_NCS): Renamed from...
205         (INTERNAL_SYSCALL_1): ... this.  Use INTERNAL_SYSCALL_NCS.
206         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
207         (INTERNAL_SYSCALL_NCS): Define.
208         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
209         (INTERNAL_SYSCALL_NCS): Likewise.
210         * sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall[0-6]):
211         Change name argument to numbers from syscall names.
212         (INLINE_SYSCALL, INTERNAL_SYSCALL): Adjust.
213         (INTERNAL_SYSCALL_NCS): Define.
215 2004-09-22  Ulrich Drepper  <drepper@redhat.com>
217         * malloc/malloc.c (malloc_printerr): Use syslog if writev failed.
219         * string/string.h: Add __nonnull annotations.
220         * stdlib/stdlib.h: Likewise.
222 2004-09-20  H.J. Lu  <hongjiu.lu@intel.com>
224         * sysdeps/unix/sysv/linux/ia64/sysdep.h (DO_INLINE_SYSCALL):
225         Renamed to ...
226         (DO_INLINE_SYSCALL_NCS): This.
227         (DO_INLINE_SYSCALL): New.
228         (INLINE_SYSCALL): Updated.
229         (INTERNAL_SYSCALL_NCS): Updated.
231 2004-09-21  Ulrich Drepper  <drepper@redhat.com>
233         * elf/sprof.c (load_shobj): Add support for reading symbol table
234         from debuginfo file.
236         * elf/ldd.bash.in: Fix syntax errors.
238 2004-09-20  Ulrich Drepper  <drepper@redhat.com>
240         * sysdeps/unix/sysv/linux/dl-execstack.c
241         (_dl_make_stack_executable): Remove some duplication.
243         * nscd/nscd.c (options): Mark S option as hidden.
244         (parse_opt): When S option is used, print warning message.
245         * nscd/grpcache.c (adgrptbyX): Don't handle secure mode.
246         * nscd/hstcache.c (addhstbyX): Don't handle secure mode.
247         * nscd/aicache.c (addhstaiX): Don't handle secure mode.
248         * nscd/pwdcache.c (addpwbyX): Don't handle secure mode.
250 2004-09-20  Roland McGrath  <roland@frob.com>
252         * elf/dl-load.c (__stack_prot): Only use PROT_GROWSUP/PROT_GROWSDOWN
253         in initializer #if defined.
255 2004-09-18  Paul Eggert  <eggert@cs.ucla.edu>
257         [BZ #391]
258         * stdlib/getsubopt.c: Merge fixes from gnulib.
259         (__strchrnul) [!_LIBC]: Define and include "strchrnul.c".
260         (getsubopt): Use prototypes, not K&R style.
261         Fix bug: memcmp(A,B,N) was being invoked on a memory block B
262         whose size might be smaller than N.  Use strncmp to avoid the bug.
264 2004-09-20  Ulrich Drepper  <drepper@redhat.com>
266         * configure.in: If selinux has not explictly been requested, don't
267         comment on it missing.
269         * elf/dl-load.c: Define __stack_prot.
270         * sysdeps/unix/sysv/linux/dl-execstack.c: Don't define
271         __stack_prot here, just declare it.
273 2004-09-20  Jakub Jelinek  <jakub@redhat.com>
275         * configure.in (libc_cv_z_relro): Only set to yes if linker script
276         contains DATA_SEGMENT_RELRO_END.
278 2004-09-20  Ulrich Drepper  <drepper@redhat.com>
280         * elf/dl-load.c (_dl_map_object_from_fd): Add some error checking.
281         Reorder code slightly.
282         * elf/rtld.c (dl_main): No need to check whether l_info[DT_HASH]
283         is non-null, _dl_setup_hash will do that.
285 2004-09-19  Ulrich Drepper  <drepper@redhat.com>
287         * sysdeps/unix/sysv/linux/setegid.c [HAVE_PTR__NPTL_SETXID]: Call
288         callback to set IDs in all other threads as well.
289         * sysdeps/unix/sysv/linux/seteuid.c: Likewise.
290         * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise.
291         * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise.
292         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
293         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
294         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
295         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
296         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
297         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
298         * sysdeps/unix/sysv/linux/setuid.c: New file.
299         * sysdeps/unix/sysv/linux/setgid.c: New file.
300         * sysdeps/unix/sysv/linux/setreuid.c: New file.
301         * sysdeps/unix/sysv/linux/setregid.c: New file.
302         * sysdeps/unix/sysv/linux/setresuid.c: New file.
303         * sysdeps/unix/sysv/linux/setresgid.c: New file.
304         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define INTERNAL_SYSCALL_NCS.
305         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
306         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
307         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
308         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
309         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: Use x86 version.
310         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: Likewise.
311         * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: New file.
312         * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: New file.
313         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Remove setresgid
314         and setresuid.
315         * nscd/aicache.c: Use pthread_seteuid_np instead of seteuid.
316         * nscd/grpcache.c: Likewise.
317         * nscd/hstcache.c: Likewise.
318         * nscd/pwdcache.c: Likewise.
320         * resolv/res_mkquery.c (res_nmkquery): Fix typo.
322 2004-09-18  Ulrich Drepper  <drepper@redhat.com>
324         * sysdeps/unisx/sysv/linux/dl-execstack.c: Get protection flag
325         from memory.
326         * elf/dl-load.c (_dl_map_object_from_fd): Add PROT_EXEC flag to
327         __stack_flags.
329         * sysdeps/posix/getaddrinfo.c (gaih_inet): Do not use
330         gethostbyname3_r if we are not looking for the canonical name.
332         * resolv/res_mkquery.c (res_nmkquery): Randomize request ID every
333         time.
335 2004-09-18  Roland McGrath  <roland@redhat.com>
337         * sysdeps/unix/sysv/linux/waitid.c (do_waitid): Pass fifth argument to
338         system call.
340 2004-09-17  Ulrich Drepper  <drepper@redhat.com>
342         * include/link.h (struct link_map): Add l_used element.
343         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_UNUSED.
344         * elf/rtld.c (process_dl_debug): Recognize unused.
345         (dl_main): When unused debug flag is set check for unused direct
346         dependencies.
347         When printing dependencies and SONAME starts with /, omit the SONAME =>
348         part.
349         * elf/dl-lookup.c (_dl_lookup_symbol_x): Mark object in which the
350         symbol has been found as used.
351         * elf/ldd.bash.in: Add -u option.
353 2004-09-18  Jakub Jelinek  <jakub@redhat.com>
355         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
356         Do nothing if __NR_set_tid_address is not defined.  [BZ #390]
358 2004-09-17  Ulrich Drepper  <drepper@redhat.com>
360         * sysdeps/posix/getaddrinfo.c: Use gethostbyname3_r NSS function
361         in case it is available.
363 2004-09-17  Jakub Jelinek  <jakub@redhat.com>
365         * nscd/nscd.c (parse_opt): Write arg string instead of (void *)
366         key to the socket.
368 2004-09-17  Ulrich Drepper  <drepper@redhat.com>
370         * misc/sys/cdefs.h: Define __nonnull using nonnull function attribute
371         for gcc 3.3 and higher.
372         * io/fcntl.h: Add __nonnull where appropriate.
373         * io/ftw.h: Likewise.
374         * io/utime.h: Likewise.
375         * io/sys/poll.h: Likewise.
376         * io/sys/sendfile.h: Likewise.
377         * io/sys/stat.h: Likewise.
378         * io/sys/statfs.h: Likewise.
379         * io/sys/statvfs.h: Likewise.
380         * posix/unistd.h: Likewise.
381         * catgets/nl_types.h: Likewise.
382         * crypt/crypt.h: Likewise.
383         * debug/execinfo.h: Likewise.
385 2004-09-16  Ulrich Drepper  <drepper@redhat.com>
387         * posix/glob.h: Remove cruft to make header usable outside glibc.
388         The maintenance headache is too big.
390         * configure.in: Add test for required SELinux features.
391         * config.make.in: Add have-selinux entry.
392         * config.h.in: Add HAVE_SELINUX entry.
393         * nscd/Makefile (nscd-modules): Add selinux.
394         (CFLAGS-selinux.c): Add -fpie.
395         Define selinux-LIBS and use in link line.
396         * nscd/connections.c (handle_request): Check access SELinux permissions
397         before processing request.
398         * nscd/nscd.c (main): Initialize selinux_enabled and stop avc thread.
399         * nscd/nscd_stat.c: Transmit and print AVC statistics.
400         * nscd/selinux.c: New file.
401         * nscd/selinux.h: New file.
402         Patch mostly by Matthew Rickard <mjricka@epoch.ncsc.mil>.
404 2004-09-16  Jakub Jelinek  <jakub@redhat.com>
406         * nscd/nscd_helper.c (__nscd_unmap, get_mapping): Use __munmap
407         instead of munmap.
409         * nscd/Makefile (CFLAGS-aicache.c): Set to -fpie.
411 2004-09-16  Thorsten Kukuk  <kukuk@suse.de>
413         * sysdeps/posix/getaddrinfo.c (gaih_inet): Check
414         __nss_not_use_nscd_hosts variable if nscd should be used or not.
416 2004-09-16  Ulrich Drepper  <drepper@redhat.com>
418         * nscd/nscd_proto.h: Define NSS_NSCD_RETRY.
419         Add __nscd_getai prototype.
420         * nss/getXXbyYY_r.c: Remode definition of NSS_NSCD_RETRY.
421         * nscd/nscd-client.h: Remove __nscd_getai prototype.
422         * nscd/nscd_getai.c: Include nscd_proto.h.
424         * elf/ldd.bash.in: Add support for SELinux environments.
425         Patch by Stephen Smalley <sds@epoch.ncsc.mil>.
427 2004-09-16  Roland McGrath  <roland@redhat.com>
429         * configure.in (--with-headers): Let argument contain a : separated
430         list of directories to use, not just one.
431         * configure: Regenerated.
433 2004-09-15  Richard Henderson  <rth@redhat.com>
435         * sysdeps/alpha/fpu/libm-test-ulps: Update.
436         * scripts/data/c++-types-alpha-linux-gnu.data: New file.
438 2004-09-15  Ulrich Drepper  <drepper@redhat.com>
440         * nscd/aicache.c: Prefer using gethostbyname3_r NSS callback to also
441         get ttl and canonical name.  Use these two values.
442         * resolv/Versions: Export _nss_dns_gethostbyname3_r from libnss_dns.
443         * resolv/nss_dns/dns-host.c (getanswer_r): Take two new parameters.
444         If nonnull fill with TTL and pointer to canonical name respectively.
445         (_nss_dns_gethostbyaddr_r): Pass NULL in new parameters of getanswer_r.
446         (_nss_dns_gethostbyname2_r): Just wrapper around
447         _nss_dns_gethostbyname3_r.
448         (_nss_dns_gethostbyname3_r): Renamed from _nss_dns_gethostbyname2_r.
449         Take two new parameters which as passed to getanswer_r.
451         * nscd/Makefile (rountines): Add nscd_getai.
452         (nscd-modules): Add aicache.
453         * nscd/aicache.c: New file.
454         * nscd/nscd_getai.c: New file.
455         * nscd/cache.c (prune_cache): Handle GETAI request type.
456         * nscd/connections.c: Add GETAI support in request handling.
457         * nscd/nscd-client.h (request_type): Add GETAI.
458         Define ai_response_header and struct nscd_ai_result types.
459         (struct datahead): Add aidata field.
460         Declare __nscd_getai.
461         * nscd/nscd.c: Add getaddrinfo definition to catch problems.
462         * nscd/nscd.h: Declare addhstai and readdhstai.
464         * sysdeps/posix/getaddrinfo.c: Add support for using cached results.
465         * posix/Makefile (CFLAGS-getaddrinfo.c): Add -DUSE_NSCD.
467         * nscd/nscd-client.h  (struct datahead): Use uint8_t instead of bool.
469 2004-09-14  Ulrich Drepper  <drepper@redhat.com>
471         * misc/sys/cdefs.h: Remove debugging text from __P and __PMT.
473 2004-09-13  Ulrich Drepper  <drepper@redhat.com>
475         * misc/sys/cdefs.h: Restore old definition of __P.
476         * csu/munch.awk: Remove uses of __P and __PMT.
477         * gmon/gmon.c: Likewise.
478         * hesiod/hesiod.h: Likewise.
479         * include/stdio.h: Likewise.
480         * io/fts.c: Likewise.
481         * libio/genops.c: Likewise.
482         * libio/libioP.h: Likewise.
483         * libio/fileops.c: Likewise.
484         * libio/iolibio.h: Likewise.
485         * libio/libio.h: Likewise.
486         * libio/memstream.c: Likewise.
487         * libio/oldfileops.c: Likewise.
488         * libio/oldstdfiles.c: Likewise.
489         * libio/iopopen.c: Likewise.
490         * libio/vsnprintf.c: Likewise.
491         * libio/vswprintf.c: Likewise.
492         * libio/wgenops.c: Likewise.
493         * libio/oldiopopen.c: Likewise.
494         * locale/programs/xmalloc.c: Likewise.
495         * locale/programs/xstrdup.c: Likewise.
496         * malloc/mtrace.c: Likewise.
497         * misc/getttyent.c: Likewise.
498         * misc/getusershell.c: Likewise.
499         * nis/rpcsvc/ypupd.h: Likewise.
500         * posix/fnmatch.h: Likewise.
501         * posix/glob.h: Likewise.
502         * resolv/arpa/nameser.h: Likewise.
503         * resolv/gethnamaddr.c: Likewise.
504         * resolv/resolv.h: Likewise.
505         * resolv/inet_net_ntop.c: Likewise.
506         * resolv/inet_net_pton.c: Likewise.
507         * resolv/res_init.c: Likewise.
508         * resolv/nss_dns/dns-network.c: Likewise.
509         * stdio-common/vfprintf.c: Likewise.
510         * stdio-common/reg-printf.c: Likewise.
511         * sysdeps/generic/chflags.c: Likewise.
512         * sysdeps/generic/fchflags.c: Likewise.
513         * sysdeps/generic/glob.c: Likewise.
514         * sysdeps/generic/printf_fphex.c: Likewise.
515         * sysdeps/generic/memcmp.c: Likewise.
516         * sysdeps/generic/memcopy.h: Likewise.
517         * sysdeps/generic/morecore.c: Likewise.
518         * sysdeps/generic/sstk.c: Likewise.
519         * sysdeps/posix/sigvec.c: Likewise.
520         * sysdeps/posix/ttyname_r.c: Likewise.
521         * sysdeps/standalone/arm/bits/errno.h: Likewise.
522         * sysdeps/standalone/standalone.h: Likewise.
523         * sysdeps/standalone/i386/force_cpu386/brdinit.c: Likewise.
524         * sysdeps/standalone/i386/force_cpu386/_exit.c: Likewise.
525         * sysdeps/unix/arm/start.c: Likewise.
526         * sysdeps/unix/bsd/sigaction.c: Likewise.
527         * sysdeps/unix/bsd/sun/m68k/sigtramp.c: Likewise.
528         * sysdeps/unix/bsd/sun/sparc/sigtramp.c: Likewise.
529         * sysdeps/unix/bsd/sun/sunos4/wait4.c: Likewise.
530         * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: Likewise.
531         * sysdeps/unix/bsd/ultrix4/sysconf.c: Likewise.
532         * sysdeps/unix/sparc/start.c: Likewise.
533         * sysdeps/unix/sysv/getdents.c: Likewise.
534         * sysdeps/unix/sysv/irix4/fpathconf.c: Likewise.
535         * sysdeps/unix/sysv/irix4/getgroups.c: Likewise.
536         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
537         * sysdeps/unix/sysv/irix4/getrusage.c: Likewise.
538         * sysdeps/unix/sysv/irix4/pathconf.c: Likewise.
539         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
540         * sysdeps/unix/sysv/irix4/sigtramp.c: Likewise.
541         * sysdeps/unix/sysv/irix4/start.c: Likewise.
542         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
543         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c: Likewise.
544         * sysdeps/unix/sysv/sco3.2.4/getgroups.c: Likewise.
545         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
546         * sysdeps/unix/sysv/sysv4/__setpgid.c: Likewise.
547         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
548         * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
549         * sysdeps/unix/sysv/sysv4/sethostname.c: Likewise.
550         * sysdeps/unix/sysv/sysv4/setsid.c: Likewise.
551         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
552         * sysdeps/unix/sysv/sysv4/waitpid.c: Likewise.
553         * sysdeps/unix/sysv/sysv4/solaris2/getdents.c: Likewise.
554         * time/tzset.c: Likewise.
555         * time/strftime_l.c: Likewise.
556         * time/strptime_l.c: Likewise.
557         * crypt/md5.h: Likewise.
559 2004-09-13  Andreas Jaeger  <aj@suse.de>
561         * configure.in: Support GCC 4.x.
562         * configure: Regenerated.
564 2004-09-13  Thorsten Kukuk  <kukuk@suse.de>
566         * nscd/nscd_stat.c: Don't access dbs[cnt].head for disabled services.
568         * nscd/nscd.init: Fix path to socket.
570 2004-09-12  Ulrich Drepper  <drepper@redhat.com>
572         * nscd/nscd_helper.c (get_mapping): Correctly check cmsg length.
573         Avoid file descriptor leak in case of size mismatch.
575         * nscd/nscd-client.h: Fix database structure layout for biarch.
576         * nscd/mem.c (gc): Add casts to avoid warnings.
578         * nss/getent.c: Don't preconstruct help message.  Do it only when
579         needed.
581         * locale/programs/locale.c: Simplify help message printing.
583 2004-09-12  Roland McGrath  <roland@frob.com>
585         * sysdeps/mach/hurd/i386/init-first.c (init1) [! SHARED]: Add decls
586         missing in last change.
588 2004-09-11  Thorsten Kukuk  <kukuk@suse.de>
590         * nis/nss_compat/compat-grp.c: Check that buflen is greater zero
591         before writing data into the buffer with negative offset.
592         * nis/nss_compat/compat-initgroups.c: Likewise.
593         * nis/nss_compat/compat-pwd.c: Likewise.
594         * nis/nss_compat/compat-spwd.c Likewise.
596 2004-09-12  Ulrich Drepper  <drepper@redhat.com>
598         * misc/syslog.c (vsyslog): Fix copying of PID in case of
599         out-of-memory situation.  [BZ #365].
601         * sysdeps/alpha/fpu/bits/mathinline.h: Use __NTH instead of
602         __THROW in inline function definitions.
604         * posix/spawn.h [__USE_GNU]: Define POSIX_SPAWN_USEVFORK.
605         * posix/spawnattr_setflags.c: Check whether any unknown bit is set
606         in FLAGS parameter and fail if this is the case.
607         * sysdeps/posix/spawni.c: Use vfork if POSIX_SPAWN_USEVFORK flag is
608         set.
610         * nscd/pwdcache.c (cache_addpw): Sync also negative results to disk.
611         * nscd/grpcache.c (cache_addgr): Likewise.
612         * nscd/hstcache.c (cache_addhst): Likewise.
614 2004-09-11  Roland McGrath  <roland@frob.com>
616         * sysdeps/mach/hurd/i386/init-first.c (init1) [! SHARED]:
617         Set _dl_phdr and _dl_phnum.
618         (init1): When bootstrap task, bail early and never examine *D.
620 2004-09-11  Alfred M. Szmidt  <ams@kemisten.nu>
622         * sysdeps/mach/hurd/i386/tls.h (__i386_set_gdt) [!HAVE_I386_SET_GDT]:
623         Cast THR, SEL and DESC to `void'.
625 2004-09-11  Ulrich Drepper  <drepper@redhat.com>
627         * nscd/connections.c (nscd_run): Call setup_thread only for enabled
628         databases.
630         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Use __NTH for __cmsg_nxthdr.
632 2004-09-10  Ulrich Drepper  <drepper@redhat.com>
634         * nscd/nscd.c (pagesize_m1): New variable.
635         (main): Initialize it.
636         * nscd/nscd.h: Declare pagesize_m1.
637         * nscd/hstcache.c: Pass correctly aligned address to msync.
638         * nscd/grpcache.c: Likewise.
639         * nscd/pwdcache.c: Likewise.
641 2004-09-10  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
643         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Decrement
644         __nwaiters.  If pthread_cond_destroy has been called and this is
645         the last waiter, signal pthread_cond_destroy caller and avoid
646         using the pthread_cond_t structure after unlock.
647         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
649 2004-09-10  Ulrich Drepper  <drepper@redhat.com>
651         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
652         __ASSUME_CLONE_STOPPED.
654 2004-09-10  Jakub Jelinek  <jakub@redhat.com>
656         * misc/sys/cdefs.h (__REDIRECT_NTH): Change order of __THROW and
657         __asm__ for C++.  [BZ #377]
659 2004-09-10  Ulrich Drepper  <drepper@redhat.com>
661         * nscd/nscd_stat.c: Improve output by also printing .shared and
662         .persistent.
664         * nscd/connections.c: Allow cache sharing to be really disabled.
666 2004-09-10  Jakub Jelinek  <jakub@redhat.com>
668         * malloc/malloc.c (_int_free): Only do arena boundary check for
669         contiguous arenas.
671 2004-09-10  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
673         * stdlib/longlong.h [__M32R__] (add_ssaaaa, sub_ddmmss): Fix broken
674         instruct operands.
675         * elf/elf.h: Add R_M32R_* relocs.
677 2004-09-09  Ulrich Drepper  <drepper@redhat.com>
679         * misc/sys/cdefs.h: Despite what the gcc manual says, gcc 3.2
680         seems not to support the nothrow attribute.  Use it only for gcc
681         3.3 and higher.
683         * malloc/hooks.c (top_check): Print top chunk corruption as normal
684         error message.
686         * malloc/malloc.c (malloc_printerr): Don't make informational
687         message look like error message.
689 2004-09-09  Andreas Jaeger  <aj@suse.de>
691         * nscd/Makefile (CFLAGS-nscd_setup_thread.c): Set to -fpie.
693 2004-09-08  Ulrich Drepper  <drepper@redhat.com>
695         * sysdeps/unix/sysv/linux/bits/socket.h (__SCM_CONNECT): Removed.
697         * malloc/malloc.c (_int_free): Add inexpensive double free and
698         memory corruption tests.
699         (malloc_printf_nc): Renamed to malloc_printerr.  Second parameter
700         is no format string anymore.  Don't use stdio.  Adjust all callers.
701         * malloc/hooks.c: Adjust malloc_printf_nc callers.
703 2004-09-08  Roland McGrath  <roland@redhat.com>
705         * malloc/mcheck.c: Don't use __P.
706         Use prototypes definitions for static functions.
708 2004-09-08  Ulrich Drepper  <drepper@redhat.com>
710         * sysdeps/ia64/fpu/bits/mathinline.h: Use __NTH instead of __THROW.
712 2004-09-08  Ulrich Drepper  <drepper@redhat.com>
713             Jakub Jelinek  <jakub@redhat.com>
715         * nscd/nscd-client.h: Add a few #includes.
717         * nscd/Makefile (nscd-modules): Add nscd_setup_thread.
718         * nscd/connections.c (nscd_run): Call setup_thread for maintenance
719         threads.
720         * nscd/nscd-client.h (struct database_pers_head): Add
721         nscd_certainly_running field.
722         * nscd/nscd.h: Declare setup_thread.
723         * nscd/nscd_helper.c (__nscd_get_map_ref): Avoid the time test if
724         nscd_certainly_running is nonzero.
725         * sysdeps/generic/nscd_setup_thread.c: New file.
726         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: New file.
728 2004-09-08  Ulrich Drepper  <drepper@redhat.com>
730         * nscd/connections.c: Implement r/o sharing of nscd's cache with client
731         processes via shared memory.
732         * nscd/nscd-client.h: Likewise.
733         * nscd/nscd.h: Likewise.
734         * nscd/nscd_conf.c: Likewise.
735         * nscd/nscd_getgr_r.c: Likewise.
736         * nscd/nscd_getpw_r.c: Likewise.
737         * nscd/nscd_gethst_r.c: Likewise.
738         * nscd/nscd.conf: Add new config parameters.
739         * nscd/Makefile (aux): Add nscd_helper.
740         * nscd/nscd_helper.c: New file.
741         * nscd/mem.c (gc): Indicate beginning and end of the gc cycle.
743         * nscd/hstcache.c: Simplify a lot.  We cache only the request itself,
744         no derived information.
745         * connections.c (nscd_init): Fix bug in testing size of the persistent.
747         * nis/Makefile (aux): Add nis_hash.
748         * nis/nis_hash.c: New file.  Split out from nis_util.c.
749         * nis/nis_util.c: Move __nis_hash code in separate file.
751         * csu/tst-atomic.c: Improve atomic_increment_val test which would
752         not have found a ppc bug.
754         * sysdeps/s390/fpu/bits/mathinline.h: Remove unnecessary includes.
756         * malloc/arena.c: Remove __MALLOC_P uses.
757         * malloc/malloc.c: Likewise.
759         * malloc/mtrace.c: Remove __P uses.
760         * malloc/mcheck-init.c: Likewise.
762 2004-09-07  Jakub Jelinek  <jakub@redhat.com>
764         * sysdeps/powerpc/powerpc64/configure.in: New file.
765         * config.h.in (USE_PPC64_OVERLAPPING_OPD): Add.
766         * configure.in (HAVE_ASM_GLOBAL_DOT_NAME): Remove.
767         * sysdeps/powerpc/powerpc64/sysdep.h: Formatting.
768         (OPD_ENT, BODY_LABEL, ENTRY_1, ENTRY_2, END_2, DOT_PREFIX,
769         BODY_PREFIX): Define.
770         (ENTRY, DOT_LABEL, END, TRACEBACK, END_GEN_TB, EALIGN): Support
771         HAVE_ASM_GLOBAL_DOT_NAME or no dot symbols,
772         USE_PPC64_OVERLAPPING_OPD or never overlapping .opd entries.
773         * sysdeps/powerpc/powerpc64/dl-machine.h: Include sysdep.h.
774         (TRAMPOLINE_TEMPLATE, RTLD_START): Use the new sysdep.h macros.
776 2004-09-07  Ulrich Drepper  <drepper@redhat.com>
778         * malloc/malloc.h: Don't define __THROW if it is already defined.
780         * sysdeps/powerpc/bits/atomic.h (atomic_increment): Define.
781         (atomic_decrement): Define.
783         * sysdeps/powerpc/bits/atomic.h: Implement atomic_increment_val and
784         atomic_decrement_val.
785         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
786         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
788         * csu/tst-atomic.c (do_test): Add tests of atomic_increment_val
789         and atomic_decrement_val.
791         * include/atomic.h: Define atomic_increment_val, atomic_decrement_val,
792         and atomic_delay is not already defined.
793         * sysdeps/i386/i486/bits/atomic.h: Define atomic_delay.
794         * sysdeps/x86_64/bits/atomic.h: Likewise.
796         * miscd/sys/cdefs.h (__NTH): New macro.
797         (__THROW): Define using nothrow attribute for C code and gcc >= 3.2.
798         (__REDIRECT_NTH): New macro.
799         * argp/argp.h: Use __NTH and __REDIRECT_NTH where necessary.
800         * ctype/ctype.h: Likewise.
801         * dirent/dirent.h: Likewise.
802         * io/fcntl.h: Likewise.
803         * io/sys/sendfile.h: Likewise.
804         * io/sys/stat.h: Likewise.
805         * io/sys/statfs.h: Likewise.
806         * io/sys/statvfs.h: Likewise.
807         * libio/bits/stdio.h: Likewise.
808         * misc/sys/mman.h: Likewise.
809         * posix/unistd.h: Likewise.
810         * resource/sys/resource.h: Likewise.
811         * rt/aio.h: Likewise.
812         * signal/signal.h: Likewise.
813         * stdlib/stdlib.h: Likewise.
814         * string/argz.h: Likewise.
815         * string/string.h: Likewise.
816         * sysdeps/generic/inttypes.h: Likewise.
817         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
818         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
819         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
820         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
821         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
822         * sysdeps/unix/sysv/linux/bits/sys/sysmacros.h: Likewise.
823         * wcsmbs/wchar.h: Likewise.
825         * sysdeps/generic/glob.c: Use __PMT isntead of __P where appropriate.
827         * resolv/gethnamaddr.c (getanswer): Remove __P use in variable
828         definition.
830         * io/sys/poll.h: Remove __THROW from poll prototype, it's a
831         cancellation point.
833         * io/fts.c (fts_open): Remove uses of __P.
835         * include/stdlib.h: No need to use __THROW in this header.
837 2004-09-06  Roland McGrath  <roland@frob.com>
839         * sysdeps/mach/hurd/dl-sysdep.c (__writev): Does use assert on FD
840         validity, since __assert_fail gets to here anyway.  Just fail.
842 2004-09-06  Ulrich Drepper  <drepper@redhat.com>
844         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix problem with
845         AF_UNSPEC lookup with AI_CANONNAME of name which has only IPv6
846         addresses.
848 2004-09-05  Richard Henderson  <rth@redhat.com>
850         * sysdeps/alpha/fpu/fraiseexcpt.c: Remove file.
851         * sysdeps/unix/sysv/linux/kernel-features.h
852         (__ASSUME_IEEE_RAISE_EXCEPTION): New.
853         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.c: New file.
854         * sysdeps/unix/sysv/linux/alpha/kernel_sysinfo.h: New file.
855         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use it.
856         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
858 2004-09-05  Richard Henderson  <rth@redhat.com>
860         * sysdeps/alpha/div.S: Save and restore FPCR around fp operations.
861         * sysdeps/alpha/divl.S, sysdeps/alpha/divq.S, sysdeps/alpha/divqu.S,
862         sysdeps/alpha/ldiv.S, sysdeps/alpha/reml.S, sysdeps/alpha/remq.S,
863         sysdeps/alpha/remqu.S: Likewise.
864         * sysdeps/alpha/div_libc.h (FRAME): Increase to 64.
866 2004-09-05  Ulrich Drepper  <drepper@redhat.com>
868         * nscd/cache.c (cache_add): Correctly log GETHOSTBYADDR and
869         GETHOSTBYADDRv6 requests.
871 2004-09-04  Ulrich Drepper  <drepper@redhat.com>
873         * nscd/pwdcache.c (cache_addpw): Use correct key length in
874         cache_add calls.
875         * nscd/grpcache.c (cache_addgr): Likewise.
877 2004-09-03  Alfred M. Szmidt  <ams@kemisten.nu>
879         * sysdeps/mach/hurd/i386/tls.h (THREAD_DTV): Changed type of _DTV
880         to `dtv_t *'.
882 2004-09-03  Ulrich Drepper  <drepper@redhat.com>
884         * nscd/nscd.c (parse_opt): Use writev instead of two write for
885         invalidate command.
887 2004-09-02  Ulrich Drepper  <drepper@redhat.com>
889         * nscd/connections.c (nscd_run): Check early for invalid request types.
891 2004-09-02  Roland McGrath  <roland@frob.com>
893         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): New macro.
894         (INSTALL_NEW_DTV, THREAD_DTV): Rewritten to fetch the right word.
895         (THREAD_SELF): New macro.
897 2004-09-02  Steven Munroe  <sjmunroe@us.ibm.com>
899         [BZ #357]
900         * stdlib/tst-setcontext.c (test_stack): Added test for stack clobber.
901         (main): Call test_stack.
902         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
903         (__getcontext): Push stack frame then save parms in local frame.
904         Improve instruction scheduling.
905         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
906         (__swapcontext): Likewise.
908 2004-09-01  Andreas Schwab  <schwab@suse.de>
910         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h [g++ >= 3.5]: Use
911         __builtin_offsetof.
913 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
915         [BZ #361]
916         * posix/fnmatch_loop.c (FCT): For backslash between brackets, branch
917         to normal_bracket after fetching the next character.
918         * posix/tst-fnmatch.input: Add 25 new tests.
919         Reported by Markus Oberhumer <markus@oberhumer.com>.
921 2004-09-01  Ulrich Drepper  <drepper@redhat.com>
923         * elf/rtld.c (dl_main): First check existence of ld.so.preload
924         with access.
926 2004-09-01  Roland McGrath  <roland@redhat.com>
928         * sysdeps/unix/sysv/linux/bits/waitflags.h
929         (WSTOPPED, WEXITED, WCONTINUED, WNOWAIT): New macros.
930         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_WAITID_SYSCALL):
931         New macro.
932         * sysdeps/unix/sysv/linux/waitid.c: New file.  Use new syscall when
933         available, or fall back to the waitpid-based generic code.
935 2004-08-14  Alfred M. Szmidt  <ams@kemisten.nu>
937         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Let gcc
938         clobber the `ebp' register.
939         * sysdeps/mach/hurd/i386/Makefile (CFLAGS-init-first.c): Removed.
940         Reverts change from 2004-05-07 by Jeroen Dekkers.
942         * sysdeps/mach/hurd/i386/init-first.c (init): Changed the type of
943         NEWSP from `void *' to `int *'.  Changed all casts accordingly.
945 2004-08-31  Jakub Jelinek  <jakub@redhat.com>
947         * wcsmbs/wcsmbsload.c (__wcsmbs_getfct): Move attribute_hidden
948         before return type.
949         * locale/localename.c (__current_locale_name): Likewise.
951 2004-08-30  Roland McGrath  <roland@frob.com>
953         * scripts/extract-abilist.awk: If `lastversion' variable defined, omit
954         later sets from output.
955         * Makerules (check-abi): Pass option to set that with value of
956         LIB-abi-frozen variable if one is set.
958         * abilist/libcidn.abilist: New file (empty).
960 2004-08-30  Jakub Jelinek  <jakub@redhat.com>
962         * posix/bits/posix1_lim.h (_POSIX_CHILD_MAX, _POSIX_OPEN_MAX): If
963         not __USE_XOPEN2K, use the Unix98 mandated values.
965 2004-08-27  Roland McGrath  <roland@redhat.com>
967         * configure.in (usetls): Default to yes.
968         * configure: Regenerated.
970 2004-08-26  Roland McGrath  <roland@redhat.com>
972         * configure.in (add_ons_automatic): New variable, set to yes or no
973         indicating --enable-add-ons with no explicit list.
974         (running add-on fragments): Allow a fragment to modify $libc_add_on
975         and have that affect its place in the list of add-ons to use.
976         * configure: Regenerated.
978 2004-08-26  Ulrich Drepper  <drepper@redhat.com>
980         * nscd/cache.c: Major rewrite.  The data is now optionally kept in
981         a mmaped memory region which is automatically mirrored on disk.
982         This implements persistent data storage.  The Memory handled
983         needed to be completely revamped, it now uses a garbage collection
984         mechanism instead of malloc.
985         * nscd/connections.c: Likewise.
986         * nscd/nscd.c: Likewise.
987         * nscd/nscd.h: Likewise.
988         * nscd/nscd_conf.c: Likewise.
989         * nscd/nscd_stat.c: Likewise.
990         * nscd/grpcache.c: Likewise.
991         * nscd/hstcache.c:: Likewise.
992         * nscd/pwdcache.c:: Likewise.
993         * nscd/Makefile: Add rules to build mem.c.
994         * nscd/mem.c: New file.
995         * nscd/nscd.conf: Describe new configuration options.
997 2004-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
999         * sysdeps/unix/sysv/linux/mips/pread.c: Include sgidefs.h only if
1000         NO_SGIDEFS_H isn't defined.
1001         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1002         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1004         * sysdeps/unix/sysv/linux/sh/pread.c: Define NO_SGIDEFS_H and
1005         _MIPS_SIM.
1006         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
1007         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
1008         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
1010 2004-08-26  Ulrich Drepper  <drepper@redhat.com>
1012         * nscd/connections.c (nscd_run): atomic_increment was not missing.
1014         * sysdeps/gnu/Makefile (libdl-sysdep_routines): Don't add eval.
1015         Patch by Greg Schafer.
1017 2004-08-25  Richard Henderson  <rth@redhat.com>
1019         * sysdeps/alpha/elf/start.S (_start): Use $15 as frame unwind
1020         instead of $31.  Zero $15.
1021         * sysdeps/unix/sysv/linux/alpha/clone.S (thread_start): Likewise.
1023 2004-08-25  Ulrich Drepper  <drepper@redhat.com>
1025         * sysdeps/powerpc/powerpc64/bits/atomic.h
1026         (__arch_compare_and_exchange_bool_32_acq): Fix case where oldval
1027         is negative.
1028         (__arch_compare_and_exchange_bool_32_rel): Likewise.
1030         * nscd/connections.c: Make socket nonblocking so that threads
1031         don't get stuck on accept.  Fix locking.
1033         * nscd/grpcache.c (cache_addgr): Use copy of original key in hash
1034         entry with alternative key.
1035         * nscd/pwdcache.c (cache_addpw): Likewise.
1037 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
1039         * sysdeps/mips/dl-machine.h (_dl_start_user): Don't set
1040         __libc_stack_end.
1042 2004-08-23  Ulrich Drepper  <drepper@redhat.com>
1044         * sysdeps/gnu/netinet/udp.h: Cosmetic changes.  Remove unnecessary
1045         __BEGIN_DECLS/__END_DECLS.
1047 2004-08-23  Andreas Jaeger  <aj@suse.de>
1049         [BZ #341]
1050         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_NOATIME): Define.
1051         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (O_NOATIME): Likewise.
1052         * sysdeps/unix/sysv/linux/cris/bits/fcntl.h (O_NOATIME): Likewise.
1053         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (O_NOATIME): Likewise.
1054         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (O_NOATIME): Likewise.
1055         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_NOATIME): Likewise.
1056         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (O_NOATIME): Likewise.
1057         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_NOATIME): Likewise.
1058         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_NOATIME): Likewise.
1059         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_NOATIME): Likewise.
1060         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (O_NOATIME): Likewise.
1061         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_NOATIME): Likewise.
1062         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (O_NOATIME): Likewise.
1064 2004-08-21  Ulrich Drepper  <drepper@redhat.com>
1066         * malloc/hooks.c (DEFAULT_CHECK_ACTION): Moved to malloc.c.
1067         (check_action): Likewise.
1068         When printing error messages, use malloc_printf_nc now instead of
1069         fiddling with the streams cancellation flag in every place.
1070         * malloc/malloc.c (DEFAULT_CHECK_ACTION): New definition.  Change
1071         default to 3.
1072         (check_action): New variable.
1073         (unlink): Print error message and eventually terminate in case list
1074         is corrupted.
1075         (malloc_printf_nc): New function.  Use it in _int_free.
1076         Change proposed by Arjan van de Ven.
1078         * dlfcn/Makefile: Don't build eval.c anymore.
1080 2004-08-20  Roland McGrath  <roland@frob.com>
1082         * csu/Makefile ($(objpfx)version-info.h): Use printf in place
1083         of echo -e for POSIX.2 portability.
1084         Reported by Paul Jarc <prj@po.cwru.edu>.
1086 2004-08-19  Ulrich Drepper  <drepper@redhat.com>
1088         * sysdeps/posix/getaddrinfo.c (gaih_inet): Minor optimizations in
1089         list generation.
1091         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use
1092         getcanonname_r function if AI_CANONNAME flag is not set in
1093         request.
1095         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss):
1096         Initialize mysize with limits only if latter is >= 0.  Use mysize
1097         in malloc call.
1099 2004-08-19  Jakub Jelinek  <jakub@redhat.com>
1101         * sysdeps/posix/getaddrinfo.c (gaih_inet): Cast canon to (char *)
1102         to avoid warning.
1104         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Initialize
1105         status to NSS_STATUS_UNAVAIL.
1107 2004-08-19  Ulrich Drepper  <drepper@redhat.com>
1109         * sysdeps/posix/getaddrinfo.c (gaih_inet): Use h->h_name in the
1110         cannoname lookup since it has the FQDN even if the original NAME
1111         value has not.
1113 2004-08-18  Ulrich Drepper  <drepper@redhat.com>
1115         * sysdeps/posix/getaddrinfo.c (gaih_inet): Store NAME parameter
1116         pointer in new variable ORIG_NAME and use this pointer when
1117         determination of canonical name failed, not the possibly IDN
1118         translated value of NAME.
1120 2004-08-17  Ulrich Drepper  <drepper@redhat.com>
1122         * resolv/resolv.h (RES_DEFAULT): Add RES_NOIP6DOTINT.
1123         * resolv/res_init.c (res_setoptions): Recognize ip6-dotint option.
1124         Reset RES_NOIP6DOTINT flag in this case..
1126         * sysdeps/posix/getaddrinfo.c: Fix memory handling of
1127         ai_canonname.
1129 2004-08-16  Ulrich Drepper  <drepper@redhat.com>
1131         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Don't use
1132         CNAME records, we better follow the chain of CNAME records which
1133         can be accomplished with A/AAAA lookups.
1135 2004-08-15  Roland McGrath  <roland@redhat.com>
1137         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who):
1138         Remove __RUSAGE_BOTH constant and RUSAGE_BOTH macro.
1139         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1140         * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
1141         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1143 2004-08-15  Roland McGrath  <roland@frob.com>
1145         * sysdeps/i386/i686/Makefile (elide-routines.os): Append hp-timing to
1146         this, not ...
1147         (static-only-routines): ... this.
1148         * sysdeps/ia64/Makefile: Likewise.
1149         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
1150         * sysdeps/sparc/sparc64/Makefile: Likewise.
1151         * sysdeps/x86_64/Makefile: Likewise.
1152         * sysdeps/i386/i686/hp-timing.c: Revert copyright terms change.
1153         * sysdeps/ia64/hp-timing.c: Likewise.
1154         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
1155         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
1157         * csu/elf-init.c: Update copyright terms including special exception
1158         for these trivial files, which are statically linked into executables
1159         that use dynamic linking for the significant library code.
1160         * io/fstat.c: Likewise.
1161         * io/fstat64.c: Likewise.
1162         * io/lstat.c: Likewise.
1163         * io/lstat64.c: Likewise.
1164         * io/stat.c: Likewise.
1165         * io/stat64.c: Likewise.
1166         * stdlib/atexit.c: Likewise.
1167         * sysdeps/alpha/elf/initfini.c: Likewise.
1168         * sysdeps/alpha/elf/start.S: Likewise.
1169         * sysdeps/arm/elf/start.S: Likewise.
1170         * sysdeps/cris/elf/start.S: Likewise.
1171         * sysdeps/generic/initfini.c: Likewise.
1172         * sysdeps/generic/mknod.c: Likewise.
1173         * sysdeps/hppa/elf/initfini.c: Likewise.
1174         * sysdeps/hppa/elf/start.S: Likewise.
1175         * sysdeps/i386/elf/start.S: Likewise.
1176         * sysdeps/i386/i686/hp-timing.c: Likewise.
1177         * sysdeps/ia64/elf/initfini.c: Likewise.
1178         * sysdeps/ia64/elf/start.S: Likewise.
1179         * sysdeps/ia64/hp-timing.c: Likewise.
1180         * sysdeps/m68k/elf/start.S: Likewise.
1181         * sysdeps/mach/start.c: Likewise.
1182         * sysdeps/mips/elf/start.S: Likewise.
1183         * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
1184         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
1185         * sysdeps/s390/s390-32/elf/start.S: Likewise.
1186         * sysdeps/s390/s390-32/initfini.c: Likewise.
1187         * sysdeps/s390/s390-64/elf/start.S: Likewise.
1188         * sysdeps/s390/s390-64/initfini.c: Likewise.
1189         * sysdeps/sh/elf/initfini.c: Likewise.
1190         * sysdeps/sh/elf/start.S: Likewise.
1191         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
1192         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
1193         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
1194         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
1195         * sysdeps/standalone/i386/start.S: Likewise.
1196         * sysdeps/standalone/i960/start.S: Likewise.
1197         * sysdeps/standalone/m68k/m68020/start.S: Likewise.
1198         * sysdeps/unix/arm/start.c: Likewise.
1199         * sysdeps/unix/bsd/osf/alpha/start.S: Likewise.
1200         * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
1201         * sysdeps/unix/sparc/start.c: Likewise.
1202         * sysdeps/unix/start.c: Likewise.
1203         * sysdeps/unix/sysv/aix/start.s: Likewise.
1204         * sysdeps/unix/sysv/irix4/start.c: Likewise.
1205         * sysdeps/x86_64/elf/initfini.c: Likewise.
1206         * sysdeps/x86_64/elf/start.S: Likewise.
1208 2004-08-15  Roland McGrath  <roland@redhat.com>
1210         [BZ #227]
1211         * sysdeps/unix/sysv/linux/kernel-features.h
1212         (__ASSUME_BRK_PAGE_ROUNDED): New macro.
1213         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
1214         [! __ASSUME_BRK_PAGE_ROUNDED]: Adjust the break up if it falls within
1215         the partial page after the dynamic linker's own data segment.
1217 2004-08-15  Ulrich Drepper  <drepper@redhat.com>
1219         * sysdeps/posix/getaddrinfo.c (gaih_inet): Optimize generation of
1220         v4-mapped addresses a bit.
1221         (gethosts): Move alloca out of macro, so that it is done only once.
1223         * sysdeps/posix/getaddrinfo.c (gaih_addrtuple): Change type of
1224         addr to avoid casts.
1225         (gethosts): Removed.
1226         (gethosts2): Renamed to gethosts.  Make it usable for family !=
1227         AF_UNSPEC.  Fix AI_V4MAPPED.
1228         (gaih_inet): Remove use of old gethosts.  Always use what used to be
1229         gethosts2.  If entry is found, try to use the same NSS module's
1230         getcanonname_r function.  Use gethostbyaddr for AI_CANONNAME only
1231         if getcanonname_r was not available.  Fix filtering of AI_V4MAPPED
1232         addresses.  Numerous cleanups.
1233         * resolv/nss_dns/dns-canon.c: New file.
1234         * resolv/Makefile (libnss_dns-routines): Add dns-canon.
1235         * resolv/Versions (libnss_dns): Add _nss_dns_getcanonname_r.
1237         * elf/Makefile: Add rules to build and run tst-dlopenrpath.
1238         * elf/tst-dlopenrpath.c: New file.
1239         * elf/tst-dlopenrpathmod.c: New file.
1241         * intl/tst-gettext.sh: Adjust for change of de.po file to UTF-8.
1242         * intl/tst-gettext.c: Likewise.
1244         * nss/getent.c (ahosts_keys_int): Correctly print IPv6 addresses.
1246         * nss/getent.c: Allow queries for getaddrinfo with AF_INET and
1247         AF_INET6.
1249 2004-08-14  Ulrich Drepper  <drepper@redhat.com>
1251         * po/de.po: Update from translation team.
1253 2004-08-14  Roland McGrath  <roland@frob.com>
1255         * sysdeps/mach/configure: Regenerated.
1256         * sysdeps/mach/hurd/configure: Regenerated.
1258 2004-08-14  Ulrich Drepper  <drepper@redhat.com>
1260         * sysdeps/posix/getaddrinfo.c (getaddrinfo): If RFC3484 sorting is
1261         performed, make sure it is still the first entry after sorting
1262         that has the ai_canonname information.
1264         * sysdeps/posix/getaddrinfo.c (gaih_inet): Really set ai_canonname
1265         only in one entry.
1267 2004-08-13  Daniel Jacobowitz  <dan@debian.org>
1269         * scripts/output-format.sed: Handle default case of three-argument
1270         OUTPUT_FORMAT.
1272         * sysdeps/arm/machine-gmon.h (mcount_internal): Mark as
1273         __attribute_used__.
1275 2004-08-13  Ulrich Drepper  <drepper@redhat.com>
1277         * nss/getent.c (ahosts_keys): ai_canonname is NULL for all but the
1278         first returned entry.  Print name only if not NULL.
1280         * nis/nss_nis/nis-netgrp.c: Remove locking by using data in struct
1281         __netgrent object passed in instead of global variables.
1282         Optimize.
1283         * nis/nss_nisplus/nisplus-netgrp.c: Remove locking by using data
1284         in struct __netgrent object passed in instead of global variables.
1285         * inet/netgroup.h (struct __netgrent): Add service_user field.
1286         Move cursor in anonymous union, add new field location to that
1287         union.
1288         * inet/getnetgrent_r.c: Extensive rewrite to really enable
1289         concurrent uset of set/get/endnetgrent and innetgr.
1290         Reported by Chuck Simmons.
1292         * inet/netgroup.h (struct name_list): Replace name pointer with
1293         zero-sized array.
1294         * inet/getnetgrent_r.c: Adjust code for change in name_list
1295         layout.  Numerous strdup and free calls removed.
1297         * elf/sprof.c (read_symbols): When comparing aliases, prefer
1298         non-hidden over hidden symbols and strong over weak symbols
1299         if both don't start with '_'.
1301         * malloc/malloc.c: Use strong_alias instead of weak_alias wherever
1302         possible.
1304 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
1306         * sysdeps/unix/sysv/linux/bits/resource.h: Define non-standard
1307         RUSAGE_ enums as __RUSAGE_ and adjust macros accordingly.
1308         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1309         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1310         * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
1311         Define non-standard RLIMIT_ enums as __RLIMIT_ and adjust macros
1312         accordingly.
1314 2004-08-11  Andreas Schwab  <schwab@suse.de>
1316         * resolv/res_libc.c: Move definition of __res_initstamp ...
1317         * resolv/res_init.c: ... here.
1319 2004-08-10  GOTO Masanori  <gotom@debian.or.jp>
1321         * locale/C-time.c: Change default ERA value from NULL to "".
1322         * locale/tst-C-locale.c: Add test case for ERA keywords.
1324 2004-08-12  Ulrich Drepper  <drepper@redhat.com>
1326         * sysdeps/unix/sysv/linux/bits/resource.h: Define non-standard
1327         RLIMIT__ enums as __RLIMIT_ and adjust macros accordingly.
1328         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1329         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1331 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
1333         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_SIGPENDING,
1334         RLIMIT_MSGQUEUE): Add.
1335         (RLIMIT_NLIMITS, RLIM_NLIMITS): Adjust.
1336         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIMIT_SIGPENDING,
1337         RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
1338         (RLIM_NLIMITS): Adjust.
1339         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIMIT_SIGPENDING,
1340         RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
1341         (RLIM_NLIMITS): Adjust.
1342         * sysdeps/unix/sysv/linux/mips/bits/resource.h (RLIMIT_SIGPENDING,
1343         RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
1344         (RLIM_NLIMITS): Adjust.
1346 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
1348         * resolv/res_query.c (__libc_res_nsearch): Protect the debugging
1349         printf with #ifdef DEBUG and RES_DEBUG check.
1351         * sysdeps/unix/sysv/linux/bits/shm.h: Move __END_DECLS after
1352         __USE_MISC #endif.
1353         * sysdeps/generic/bits/shm.h: Add __BEGIN_DECLS for __getpagesize
1354         declaration.
1355         * sysdeps/gnu/bits/shm.h: Likewise.
1356         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
1357         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
1358         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
1359         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
1360         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
1362 2004-08-12  Ulrich Drepper  <drepper@redhat.com>
1364         * po/ca.po: Update from translation team.
1366 2004-08-11  Ulrich Drepper  <drepper@redhat.com>
1368         * sysdeps/unix/sysv/linux/bits/shm.h: Add __BEGIN_DECLS for
1369         __getpagesize declaration.
1371 2004-08-11  Roland McGrath  <roland@redhat.com>
1373         * configure.in (libc_cv_cpp_asm_debuginfo): Add missing braces around
1374         commands inside &&.
1375         Reported by Andreas Schwab <schwab@suse.de>.
1376         * configure: Regenerated.
1378         * posix/tst-waitid.c (do_test): Ignore SIGCHLD before cleanup SIGKILL.
1380 2004-08-11  Ulrich Drepper  <drepper@redhat.com>
1382         * time/tzset.c (tzset_internal): Add new parameter which is
1383         nonzero if called through tzset.  Use TZDEFAULT name including
1384         name comparison if the new parameter is zero.  This means implicit
1385         tzset calls will not cause files to be opened and read by tzfile.c
1386         all the time.
1388 2004-08-11  Jakub Jelinek  <jakub@redhat.com>
1390         * rt/tst-timer2.c (do_test): If timer_create fails, just continue.
1391         * rt/tst-timer4.c (do_test): If one of the timer_create calls fails,
1392         return 1 immediately.
1394         * time/tzfile.c (__tzfile_read): Free transitions only if it will
1395         not be reused.
1397         * sysdeps/ieee754/dbl-64/mpa.c: Include <sys/param.h>.
1398         * sysdeps/ieee754/dbl-64/mpa.h (MAX, MIN): Macros removed.
1400         * stdio-common/tst-popen.c: Include <string.h>.
1402         * resolv/res_send.c (__libc_res_nsend): Only define TMPBUF #if DEBUG.
1404         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Remove noreturn
1405         attribute.  Return NULL instead of calling pthread_exit at the end.
1407 2004-08-11  Roland McGrath  <roland@redhat.com>
1409         * iconvdata/testdata/ISO-2022-JP-3: Regenerated.
1411 2004-08-10  Alfred M. Szmidt  <ams@kemisten.nu>
1413         * sysdeps/generic/bits/in.h (struct ip_mreq): Remove definition.
1415 2004-08-10  Jakub Jelinek  <jakub@redhat.com>
1417         * libio/bits/stdio.h (fread_unlocked): Cast 0 to (size_t).
1418         (fwrite_unlocked): When checking if size * n is <= 8, cast each
1419         argument to size_t individually.  Cast n to (void) instead of
1420         (size_t), surround with (), return (size_t) 0 if one of n or size
1421         is 0.  [BZ #316]
1422         * stdio-common/Makefile (tests): Add tst-unlockedio.
1423         * stdio-common/tst-unlockedio.c: New test.
1425 2004-08-09  Roland McGrath  <roland@frob.com>
1427         * manual/install.texi (Supported Configurations): Replace bug-glibc
1428         mention with web URL.
1429         * INSTALL: Regenerated.
1430         * locale/iso-3166.def: Likewise, in comment.
1431         * locale/iso-4217.def: Likewise.
1432         * locale/iso-639.def: Likewise.
1433         * posix/cpio.h: Remove bug reporting comment.
1435 2004-08-09  Ulrich Drepper  <drepper@redhat.com>
1437         * libio/bits/stdio.h (fread_unlocked): Add a couple of (size_t)
1438         casts to handle funny calls with floating point argument values
1439         and signed values correctly and without warning.
1440         (fwrite_unlocked): Likewise.  [BZ #309]
1442         * malloc/memusage.c (me): Use creat64, not creat.
1443         * malloc/memusagestat.c: Fix handling of very large sizes.  [BZ #285]
1444         Patch by Guy Maor <guymaor@yahoo.com>.
1446         * elf/ldconfig.c (options): Mark parameter option names as
1447         translatable.  [BZ #253]  Patch by Jakub Bogusz <qboosh@pld-linux.org>.
1449         * iconv/gconv_charset.h (strip): Also allow comma which is what is
1450         used to separate options.  [BZ #194]
1452 2004-08-09  Roland McGrath  <roland@redhat.com>
1454         * FAQ.in: Refer to web pages instead of bug-glibc.
1455         * FAQ: Regenerated.
1457         * time/strptime_l.c: #include <stdbool.h>, `bool' used in last change.
1459 2004-08-09  Ulrich Drepper  <drepper@redhat.com>
1461         * time/tzset.c (tzset_internal): If TZ is not set do not compare
1462         old and new tz value since it might be /etc/localtime in both
1463         cases although the file changed.  [BZ #154]
1464         Patch by Christian Franke <franke@computer.org>.
1466         * time/tzfile.c (__tzfile_read): Determine dev/ino of file.
1467         Compare with values of previously opened file.  Don't do anything
1468         is they match.
1470 2004-08-08  Ulrich Drepper  <drepper@redhat.com>
1472         * elf/dl-load.c (_dl_map_object): If __RTLD_CALLMAP flag is set,
1473         reset loader before the actual loading.
1474         * elf/dl-open.c (dl_open_worker): If file name contains no path
1475         element determine map of caller.  Pass caller map in this case to
1476         _dl_map_object.  Set __RTLD_CALLMAP in mode.
1477         * include/dlfcn.h (__RTLD_CALLMAP): Define.  [BZ #116]
1478         Patch by Greg Wolodkin <greg@mathworks.com>.
1480         * misc/syslog.c (openlog_internal): Always try both UDP and TCP.
1481         [BZ #108]  Patch mainly by Bjorn Andersson <bjorn@iki.fi>.
1483         * configure.in: Also recognize i786. [BZ #106]
1484         Patch by <pluto@pld-linux.org>.
1486         * resolv/res_query.c (__libc_res_nsearch): Correctly test whether
1487         name contains any dots. [BZ #95]
1489         * resolv/res_send.c: Compiling with DEBUG defined works again.
1490         * resolv/gethnamaddr.c (dprintf): Renamed to Dprintf.  Adjust all
1491         callers.
1493         * resolv/tst-leaks.c (TIMEOUT): Define so that if no server is
1494         available the process is not killed. [BZ #41]
1496         * intl/tst-gettext.c (main): Improve some messages. [BZ #33]
1498         * time/strptime_l.c (__strptime_internal): Fix handling of %Ey.
1499         [BZ #28]
1501         * po/sv.po: Update from translation team.
1503 2004-08-07  Ulrich Drepper  <drepper@redhat.com>
1505         * inet/netinet/in.h: Add more const to the setipv4soucefilter,
1506         getsourcefilter, and setsourcefilter parameter list.
1507         * sysdeps/generic/setipv4sourcefilter.c: Likewise.
1508         * sysdeps/generic/getsourcefilter.c: Likewise.
1509         * sysdeps/generic/setsourcefilter.c: Likewise.
1510         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
1511         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
1512         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
1514         * po/tr.po: Update from translation team.
1516 2004-08-06  Ulrich Drepper  <drepper@redhat.com>
1518         * iconvdata/jisx0213.h (jisx0213_added_in_2004_p): Fix typo.
1519         Reported by Paolo Bonzini.
1521 2004-08-06  Jakub Jelinek  <jakub@redhat.com>
1523         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add
1524         always_inline.
1525         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_runtime_setup,
1526         elf_machine_fixup_plt, elf_machine_plt_conflict): Likewise.
1528         * sysdeps/unix/sysv/linux/netatalk/at.h: Include bits/sockaddr.h
1529         before including linux/atalk.h.
1531         * resolv/res_libc.c: Include atomic.h.
1533         * intl/finddomain.c (free_mem): Rename to...
1534         (_nl_finddomain_subfreeres): ... this.  Add
1535         __libc_freeres_fn_section.
1536         * intl/loadmsgcat.c (_nl_unload_domain): Add
1537         __libc_freeres_fn_section.
1538         * intl/gettextP.h (_nl_unload_domain): Move into #ifdef _LIBC.
1539         Add attribute_hidden.
1540         (_nl_findomain_subfreeres): New prototype.
1541         * iconv/gconv_db.c (free_mem): Call _nl_findomain_subfreeres.
1543 2004-07-30  Guido Guenther  <agx@sigxcpu.org>
1545         * nss/getent.c (passwd_keys): Use strtoul instead of isdigit to
1546         test if the key is numeric or not.
1547         (group_keys): Likewise.
1549 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
1551         * inet/netinet/in.h: Define struct ip_msfilter, IP_MSFILTER_SIZE,
1552         struct group_filter, and GROUP_FILTER_SIZE.
1553         * include/sys/socket.h: Declare __getsockopt.
1554         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: New file.
1555         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: New file.
1556         * sysdeps/unix/sysv/linux/setsourcefilter.c: New file.
1557         * sysdeps/unix/sysv/linux/getsourcefilter.c: New file. [BZ #211]
1559         * po/ko.po: Update from translation team.
1561 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
1563         * hesiod/hesiod.c (__hesiod_res_get): Use calloc instead of malloc +
1564         memset.
1565         (__hesiod_res_set): Free nsaddrs.
1567         * include/resolv.h (__res_maybe_init): Add prototype.
1568         * resolv/resolv.h (struct __res_state): Add _u._ext.initstamp field.
1569         * resolv/Versions (libc): Add __res_maybe_init@@GLIBC_PRIVATE.
1570         * resolv/res_libc.c (__res_initstamp, lock): New variables.
1571         (res_init): Increase __res_initstamp.
1572         (__res_maybe_init): New function.
1573         * resolv/res_init.c (__res_vinit): Initialize _u._ext.initstamp.
1574         * hesiod/hesiod.c (__hesiod_res_get): Use __res_maybe_init instead
1575         of RES_INIT check and {res_ninit,__res_ninit,res_init} call.
1576         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
1577         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
1578         _nss_dns_gethostbyaddr_r): Likewise.
1579         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
1580         _nss_dns_getnetbyaddr_r): Likewise.
1581         * resolv/gethnamaddr.c (gethostbyname, gethostbyname2,
1582         gethostbyaddr): Likewise.
1583         * resolv/res_data.c (fp_nquery, res_mkquery, res_mkupdate,
1584         res_isourserver, res_sendsigned, res_update, res_search,
1585         res_querydomain): Likewise.
1586         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Likewise.
1587         * nss/digits_dots.c (__nss_hostname_digits_dots): Likewise.
1588         * nss/getnssent_r.c (__nss_setent, __nss_endent, __nss_getent_r):
1589         Likewise.
1591 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
1593         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set ai_family for
1594         V4-mapped IPv6 addresses and req->ai_family==AF_INET.
1595         Reported by A. Guru <a.guru@sympatico.ca>.
1597         * po/sv.po: Update from translation team.
1598         * po/sk.po: Likewise.
1599         * po/pl.po: Likewise.
1601 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
1602             Ulrich Drepper  <drepper@redhat.com>
1604         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Don't read more input
1605         characters than necessary.
1607 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
1609         * wcsmbs/Makefile (tests): Add tst-mbsrtowcs.
1610         * wcsmbs/tst-mbsrtowcs.c: New file.
1612         * po/fr.po: Update from translation team.
1614 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
1616         * resolv/inet_pton.c (inet_pton4): Disallow octal numbers.  Reported
1617         by A. Guru <a.guru@sympatico.ca>.  [BZ #295]
1619 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
1621         * po/nl.po: Update from translation team.
1623         * sysdeps/posix/getaddrinfo.c (gaih_inet): Recognize all the IPv4
1624         numeric address formats inet_addr knows.
1625         (getaddrinfo): Allow AI_NUMERICSERV flag.
1626         If neither IPv4 nor IPv6 interface is present we cannot make any
1627         decision for AI_ADDRCONFIG.  Fail if AI_NUMERICSERV is set and the
1628         string is not just a number.  Remove useless freeaddrinfo call.
1629         * resolv/netdb.h (AI_NUMERICSERV): Define.
1630         Based on a patch by a.guru@sympatico.ca.
1632 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
1634         * stdlib/strfmon_l.c (__vstrfmon_l): Memset whole info structure
1635         instead of trying to initialize some, but not all, fields one by
1636         one.
1637         * stdio-common/printf_size.c (printf_size): Initialize fb_info
1638         structure with *info instead of trying to initialize some, but not
1639         all, fields from it.
1641         * nscd/connections.c (handle_request): Check if req->type is in
1642         LASTDBREQ .. LASTREQ range instead of req.
1644         * locale/programs/linereader.c (lr_create): Initialize
1645         lr->return_widestr to 0.
1647         * elf/dl-close.c (free_slotinfo): Add __libc_freeres_fn_section.
1648         (free_mem): Call free_slotinfo just once.
1650         * stdio-common/tst-fmemopen.c (main): Check for MAP_FAILED instead
1651         of NULL.
1653         * locale/localeinfo.h (_nl_locale_subfreeres): New prototype.
1654         * locale/setlocale.c (free_category): Add __libc_freeres_fn_section.
1655         (free_mem): Rename to _nl_locale_subfreeres.
1656         * iconv/gconv_db.c: Include locale/localeinfo.h.
1657         (free_derivation, free_modules_db): Add __libc_freeres_fn_section.
1658         (free_mem): Call _nl_locale_subfreeres.
1659         * iconv/gconv_dl.c (do_release_all): Add __libc_freeres_fn_section.
1661 2004-08-04  Roland McGrath  <roland@frob.com>
1663         * Makeconfig ($(common-objpfx)config.status):
1664         Fix typo: $(add_ons) -> $(add-ons).
1665         (Makeconfig-add-on): New variable.  When doing $(sysdep-makeconfigs)
1666         include, use black magic to get it set to an add-on's name during the
1667         include of the add-on's Makeconfig.
1669         * configure.in: Use variable name `libc_add_on' when sourcing add-on
1670         configure fragments, so they can refer to this.
1671         * configure: Regenerated.
1673 2004-08-04  Roland McGrath  <roland@redhat.com>
1675         * posix/tst-waitid.c (test_child): Sleep a second before stopping.
1676         (do_test): Bump sleep to three seconds.
1677         (sigchld, check_sigchld): New functions.
1678         (do_test): Handle SIGCHLD and check for getting the right details.
1680         * posix/tst-waitid.c (do_test): Kill the child process when bailing
1681         out early on some failure.
1682         [WCONTINUED]: Test WCONTINUED functionality.
1684 2004-08-03  Ulrich Drepper  <drepper@redhat.com>
1686         * nscd/connections.c (handle_request): Print more descriptive
1687         message for invalid request types.
1689 2004-08-02  Jakub Jelinek  <jakub@redhat.com>
1691         * iconvdata/ibm932.c (BODY): Avoid binary search for ch >= 0xffff.
1692         Always treat high as highest number in range + 1.
1693         * iconvdata/ibm943.c (BODY): Likewise.
1695 2004-07-31  Bruno Haible  <bruno@clisp.org>
1697         * iconvdata/JISX0213.TXT: Updated to JISX0213 plane 1 version 2004.
1698         * iconvdata/jisx0213.c (__jisx0213_to_ucs_main,
1699         __jisx0213_to_ucs_pagestart, __jisx0213_from_ucs_level1,
1700         __jisx0213_from_ucs_level2): Regenerated.
1701         * iconvdata/jisx0213.h (jisx0213_added_in_2004_p): New function.
1702         * iconvdata/iso-2022-jp-3.c (JISX0213_1_2000_set): Renamed from
1703         JISX0213_1_set.
1704         (JISX0213_1_2004_set): New enum value.
1705         (BODY for FROM_LOOP): Treat ESC $ ( Q like ESC $ ( O.
1706         (BODY for TO_LOOP): For JISX 0213 plane 1 characters, emit ESC $ ( O
1707         when possible, ESC $ ( Q when needed.
1708         * iconvdata/testdata/EUC-JISX0213: Add the 10 new characters.
1709         * iconvdata/testdata/EUC-JISX0213..UTF8: Update.
1710         * iconvdata/testdata/SHIFT_JISX0213: Add the 10 new characters.
1711         * iconvdata/testdata/SHIFT_JISX0213..UTF8: Update.
1712         * iconvdata/testdata/ISO-2022-JP-3: Add the 10 new JISX0213 characters.
1713         * iconvdata/testdata/ISO-2022-JP-3..UTF8: Update.
1715 2004-07-22  Bruno Haible  <bruno@clisp.org>
1717         * iconvdata/gconv-modules (ISO-8859-7): Add alias ISO_8859-7:2003.
1719 2004-07-29  David S. Miller  <davem@redhat.com>
1721         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy): Optimize
1722         better for smaller than 256 byte copies.  Also, use only one
1723         unrolled loop instead of two for the large copy case.
1725 2004-07-30  Richard Henderson  <rth@redhat.com>
1727         * sysdeps/alpha/divq.S: Save t3 before it gets clobbered.
1728         * sysdeps/alpha/remq.S: Likewise.
1729         * sysdeps/alpha/div.S, sysdeps/alpha/ldiv.S: Rewrite with the
1730         new division algorithms in divl.S and divq.S respectively.
1732 2004-07-28  GOTO Masanori  <gotom@debian.or.jp>
1734         * timezone/asia: Update from tzdata2004b.
1735         * timezone/backward: Likewise.
1736         * timezone/europe: Likewise.
1737         * timezone/iso3166.tab: Likewise.
1738         * timezone/leapseconds: Likewise.
1739         * timezone/northamerica: Likewise.
1740         * timezone/southamerica: Likewise.
1741         * timezone/zone.tab: Likewise.
1743         * timezone/private.h: Update from tzcode2004b.
1744         * timezone/zic.c: Likewise.
1746 2004-07-27  Ulrich Drepper  <drepper@redhat.com>
1748         * nscd/grpcache.c (cache_addgr): If necessary, add entry also
1749         under the name the user provided.
1750         * nscd/pwdcache.c (cache_addpw): Likewise.
1752 2004-07-26  Roland McGrath  <roland@redhat.com>
1754         * sysdeps/posix/waitid.c [WEXITED]: Clear WEXITED bit in OPTIONS for
1755         call to __waitpid.
1757 2004-07-26  Ulrich Drepper  <drepper@redhat.com>
1759         * nscd/hstcache.c (cache_addhst): Fix two scenarios which lead to
1760         memory leaks.
1762         * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Assign pointer for
1763         new buffer at the right time.
1764         Reported by Jakub Bogusz <qboosh@pld-linux.org>.
1766 2004-07-25  Ulrich Drepper  <drepper@redhat.com>
1768         * inet/Versions [libc, GLIBC_2.3.4]: Add getipv4sourcefilter,
1769         getsourcefilter, setipv4sourcefilter, and setsourcefilter.
1770         * inet/Makefile (routines): Likewise.
1771         * inet/netinet/in.h: Add prototypes for getipv4sourcefilter,
1772         getsourcefilter, setipv4sourcefilter, and setsourcefilter.
1773         * sysdeps/generic/getipv4sourcefilter.c: New file.
1774         * sysdeps/generic/setipv4sourcefilter.c: New file.
1775         * sysdeps/generic/getsourcefilter.c: New file.
1776         * sysdeps/generic/setsourcefilter.c: New file.
1778 2004-07-17  Steven Munroe  <sjmunroe@us.ibm.com>
1780         * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling
1781         for POWER4 machines.
1783 2004-07-21  Jakub Jelinek  <jakub@redhat.com>
1785         [BZ #274]
1786         * stdlib/strtod_l.c (INTERNAL (__STRTOF)): Fix used >=
1787         BITS_PER_MP_LIMB shifting up.
1788         * stdlib/tst-strtod.c (main): Add new tests.
1790 2004-07-23  Jakub Jelinek  <jakub@redhat.com>
1792         [BZ #282]
1793         * libio/iopopen.c (_IO_new_popen): Use _IO_init instead of
1794         _IO_no_init.  Remove wd from struct locked_FILE.
1795         (_IO_wproc_jumps): Remove.
1796         Reported by Andrew Josey <a.josey@opengroup.org>.
1797         * stdio-common/Makefile (tests): Add tst-popen.
1798         * stdio-common/tst-popen.c: New test.
1800 2004-07-23  Ulrich Drepper  <drepper@redhat.com>
1802         * posix/bits/posix1_lim.h: Fix values for _POSIX_CHILD_MAX and
1803         _POSIX_OPEN_MAX.  Add _POSIX_HOST_NAME_MAX, _POSIX_SYMLINK_MAX,
1804         _POSIX_SYMLOOP_MAX, and _POSIX_RE_DUP_MAX.
1805         Reported by Andrew Josey.
1807         * include/features.h: Document _POSIX_C_SOURCE == 200112L.
1809         * grp/grp.h: Define gid_t if __USE_XOPEN2K is defined.
1810         * pwd/pwd.h: Define uid_t and gid_t if __USE_XOPEN2K is defined.
1811         * io/sys/stat.h: Define dev_t, gid_t, ino_t, mode_t, nlink_t,
1812         off_t, time_t, and uid_t if __USE_XOPEN2K is defined.
1813         * signal/signal.h: Define pid_t if __USE_XOPEN2K is defined.
1814         * posix/unistd.h: Define gid_t, off_t, pid_t, uid_t, and
1815         useconds_t if __USE_XOPEN2K is defined.
1816         * io/utime.h: Define time_t if __USE_XOPEN2K is defined.
1817         * libio/stdio.h: Declare fseeko and ftello if __USE_XOPEN2K is defined.
1819 2004-07-19  Thorsten Kukuk  <kukuk@suse.de>
1821         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
1822         allocate memory for large temporary variables with alloca.
1824 2004-07-22  Ulrich Drepper  <drepper@redhat.com>
1826         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Compatibility
1827         code must have version GLIBC_2.0.  Patch by Dwayne McConnell.
1829         * nscd/nscd_getgr_r.c (nscd_getgr_r): Avoid read call with NULL
1830         pointer and zero length.
1832 2004-07-21  Ulrich Drepper  <drepper@redhat.com>
1834         * nscd/cache.c (prune_cache): Print correct list when debugging.
1836 2004-07-21  Jakub Jelinek  <jakub@redhat.com>
1838         * resolv/res_libc.c (res_init): If RES_INIT is set and
1839         _res.nscount > 0, call __res_nclose and free nsaddrs.
1840         * resolv/Makefile: Add rules to build and run tst-leaks2.
1841         * resolv/tst-leaks2.c: New test.
1843 2004-07-21  Ulrich Drepper  <drepper@redhat.com>
1845         * intl/libintl.h: Don't define macros for C++.
1846         Patch by Goto Masanori.
1848 2004-07-22  GOTO Masanori  <gotom@debian.or.jp>
1850         [BZ #276]
1851         * include/arpa/inet.h: Change inet_aton type from in_addr_t to int.
1852         * inet/arpa/inet.h: Likewise.
1853         * resolv/inet_addr.c: Likewise.
1855 2004-07-21  Alexandre Oliva  <aoliva@redhat.com>
1857         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Add semtimedop.
1859 2004-07-20  Roland McGrath  <roland@redhat.com>
1861         * configure.in (add_ons): Substitute this.  Move $add_ons handling
1862         after AC_CANONICAL_HOST and default setting of $machine et al.
1863         Don't set $subdirs from $add_ons.
1864         Instead, source add-on/configure fragments early on.
1865         (base_machine): If it's already set, don't set it based on $machine.
1866         (libc_config_ok): New variable, set to no.  If an add-on fragment sets
1867         it to yes, skip the  tuple sanity check as if --enable-hacker-mode.
1868         (sysnames): Try appending add-on names after machine as well.
1869         * config.make.in (add-ons): Set from @add_ons@ instead of @subdirs@.
1870         * Makeconfig ($(common-objpfx)config.status): Also depend on configure
1871         files in $(add_ons) dirs.
1873         * sysdeps/unix/sysv/linux/bits/in.h (struct ip_mreq): Remove
1874         definition, now in netinet/in.h proper.
1876 2004-07-20  Alexandre Oliva  <aoliva@redhat.com>
1878         * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h):
1879         Sort by syscalls.  Make sure we get headers such as sgidefs.h from
1880         the build tree before just-installed ones.
1882         * sysdeps/mips/atomicity.h: Use standard names for ABI macros,
1883         include sgidefs.h where appropriate.
1884         * sysdeps/mips/dl-machine.h: Likewise.
1885         * sysdeps/mips/machine-gmon.h: Likewise.
1886         * sysdeps/mips/bits/setjmp.h: Likewise.
1887         * sysdeps/mips/fpu/bits/mathdef.h: Likewise.
1888         * sysdeps/mips/mips64/__longjmp.c: Likewise.
1889         * sysdeps/mips/mips64/setjmp_aux.c: Likewise.
1890         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
1891         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
1892         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1893         * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
1894         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1895         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
1896         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
1897         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
1898         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
1899         * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: Likewise.
1900         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
1901         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
1902         * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: Likewise.
1903         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
1904         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
1905         * sysdeps/unix/sysv/linux/mips/sys/user.h: Likewise.
1906         * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h):
1907         Likewise.
1908         * sysdeps/unix/sysv/linux/mips/configure.in (asm-unistd.h):
1909         Likewise.
1911         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Update to use
1912         _dl_lookup_symbol_x.
1913         (elf_machine_runtime_link_map): Don't INTUSE _dl_signal_error.
1915 2004-07-20  Ulrich Drepper  <drepper@redhat.com>
1917         * inet/netinet/in.h: Define struct ip_mreq and struct
1918         ip_mreq_source.
1919         Define struct group_req and struct group_source_req.
1920         * sysdeps/unix/sysv/linux/bits/in.h: Define IP_UNBLOCK_SOURCE,
1921         IP_BLOCK_SOURCE, IP_ADD_SOURCE_MEMBERSHIP,
1922         IP_DROP_SOURCE_MEMBERSHIP, IP_MSFILTER, MCAST_JOIN_GROUP,
1923         MCAST_BLOCK_SOURCE, MCAST_UNBLOCK_SOURCE, MCAST_LEAVE_GROUP,
1924         MCAST_JOIN_SOURCE_GROUP, MCAST_LEAVE_SOURCE_GROUP, and
1925         MCAST_MSFILTER.
1926         Define MCAST_INCLUDE and MCAST_EXCLUDE.
1928         * iconvdata/gconv-modules: Add alias for IBM874 [BZ #244].
1930 2004-07-19  Jakub Jelinek  <jakub@redhat.com>
1932         [BZ #258]
1933         * math/libm-test.inc (max_value, min_value): New variables.
1934         (initialize): Initialize them.
1935         (pow_test): Add a couple of new tests.
1936         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Don't generate invalid
1937         exception if |y| >= 1U<<31.
1938         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Don't generate invalid
1939         exception if |y| >= 1L<<63.
1940         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
1941         If y*log2(x) overflows to +-inf, return still +inf/+0 instead of NaN.
1942         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
1944 2004-07-18  Ulrich Drepper  <drepper@redhat.com>
1946         * nscd/pwdcache.c (cache_addpw): Optimize case of unsuccessful
1947         lookup a bit.
1948         * nscd/grpcache.c (cache_addgr): Likewise.
1949         * nscd/hstcache.c (cache_addhst): Likewise.
1951 2004-07-10  GOTO Masanori  <gotom@debian.or.jp>
1953         * sysdeps/s390/s390-32/elf/start.S: Remove symbol _fp_hw.
1954         * sysdeps/s390/s390-64/elf/start.S: Likewise.
1956 2004-04-16  Andreas Schwab  <schwab@suse.de>
1958         * sysdeps/ia64/bits/atomic.h: Cast first argument of
1959         __sync_bool_compare_and_swap_si correct to void*.
1961 2004-07-17  Ulrich Drepper  <drepper@redhat.com>
1963         * iconv/iconv_prog.c (print_known_names): Make machine-readable
1964         output even less cluttered.
1966 2004-07-16  Steven Munroe  <sjmunroe@us.ibm.com>
1968         [BZ #269]
1969         * setjmp/Makefile (tests): Add bug269-setjmp.
1970         * setjmp/bug269-setjmp.c: New file.
1971         * sysdeps/powerpc/powerpc64/__longjmp-common.S [SHARED && !IS_IN_rtld]:
1972         Store R2 from jmpbuf in callers TOC save area.
1973         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S [SHARED && !IS_IN_rtld]:
1974         Store R2 in TOC save area.
1975         * sysdeps/powerpc/powerpc64/setjmp-common.S [SHARED && !IS_IN_rtld]:
1976         Copy TOC save area from previous frame as R2 (TOC) in jmpbuf.
1978 2004-07-16  Jakub Jelinek  <jakub@redhat.com>
1980         * locale/newlocale.c: Include bits/libc-lock.h.
1981         (__libc_setlocale_lock): Extern decl.
1982         (__newlocale): Use it.
1983         Reported by Ulrich Weigand <Ulrich.Weigand@de.ibm.com>.
1985 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
1987         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Remove
1988         static inline __attribute ((always_inline)).  Don't define if
1989         NO_CANCELLATION.
1990         (__libc_fcntl): Use INLINE_SYSCALL directly instead of
1991         __fcntl_nocancel.
1992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__fcntl_nocancel):
1993         Remove static inline __attribute ((always_inline)).  Don't define
1994         if NO_CANCELLATION.
1995         (__libc_fcntl): Use INLINE_SYSCALL directly instead of
1996         __fcntl_nocancel.
1997         * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Define to
1998         __libc_fcntl if NO_CANCELLATION and __ASSUME_FCNTL64 == 0.
1999         Don't define at all if NO_CANCELLATION and __ASSUME_FCNTL64 > 0.
2000         (__libc_fcntl): Don't define if __fcntl_nocancel is a macro.
2002         [BZ #262]
2003         * sysdeps/i386/elf/start.S (_start): Use @GOT instead of @GOTOFF
2004         for main.
2005         * elf/Makefile: Add rules to build and run tst-pie1.
2006         * elf/tst-pie1.c: New test.
2007         * elf/tst-piemod1.c: New file.
2009 2004-07-14  Jakub Jelinek  <jakub@redhat.com>
2011         [BZ #266]
2012         * manual/string.texi (l64a): Note that the static buffer is 7 bytes
2013         long.  Rewrite example code so that it takes into account l64a output
2014         shorter than 6 characters.
2015         Reported by Julian Graham <julian.graham@aya.yale.edu>.
2017 2004-07-14  Kaz  Kojima  <kkojima@rr.iij4u.or.jp>
2019         * sysdeps/sh/dl-machine.h: Don't reset _dl_starting_up here.
2020         (elf_machine_rela_relative): Remove unused valiable.
2022 2004-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2024         [BZ #263]
2025         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Don't store
2026         outside the buffer if the read returns 0.  __strtod_l can't set
2027         endp to NULL, so remove a test for that case.
2029 2004-07-12  Roland McGrath  <roland@redhat.com>
2031         * manual/signal.texi (Interrupted Primitives): Make clear that
2032         TEMP_FAILURE_RETRY evaluates its expression as long int and compares
2033         it to -1 to define "failure".
2035 2004-07-10  Ulrich Drepper  <drepper@redhat.com>
2037         * elf/ldconfig.c: Define PROCINFO_CLASS as static before including
2038         ldsodefs.h.
2039         * sysdeps/generic/ldsodefs.h: Only define PROCINFO_CLASS if it is not
2040         already defined.
2041         * sysdeps/i386/dl-procinfo.c: Define PROCINFO_CALLS only if not
2042         already defined.
2044         * elf/rtld.c (print_statistics): Mark with noinline attribute.
2045         * sysdeps/i386/dl-machine.h (elf_machine_rel): Mark with always_inline
2046         attribute.
2047         (elf_machine_rel_relative): Likewise.
2049         * include/string.h: Add libc_hidden_proto for __strtok_r and
2050         __strsep_g.
2051         * sysdeps/generic/strsep.c: Add libc_hidden_def.
2052         * sysdeps/generic/strtok_r.c: Likewise.
2053         * sysdeps/i386/strtok_r.S: Add alias for internal symbol.
2054         * sysdeps/i386/i686/strtok_r.S: Likewise.
2055         * sysdeps/x86_64/strtok_r.S: Likewise.
2057 2004-07-09  Alexandre Oliva  <aoliva@redhat.com>
2059         * inet/getnetgrent_r.c (internal_setnetgrent): Make it hidden
2060         instead of internal-linkage, such that we can alias to it.
2061         (internal_endnetgrent, internal_getnetgrent_r): Likewise.
2063 2004-07-09  Ulrich Drepper  <drepper@redhat.com>
2065         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Move attribute
2066         to the front for gcc 3.5+.
2067         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
2068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise.
2069         * include/fcntl.h: Don't declare __fcntl_nocancel here if
2070         NO_CANCELLATION is defined.
2072 2004-07-07  Jakub Jelinek  <jakub@redhat.com>
2074         * elf/dl-fini.c (_dl_fini): Add nloaded variable, load
2075         GL(dl_nloaded) into it while still in critical section.
2077 2004-07-06  Thorsten Kukuk  <kukuk@suse.de>
2079         * nss/getent.c (print_group, print_passwd): Use %lu format for
2080         `unsigned long int' values.
2082         * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Fix syntax
2083         error typos in goto statements.
2085 2004-07-07  Roland McGrath  <roland@frob.com>
2087         * Makefile (dist-separate): New variable.
2088         (glibc-%.tar rule): Make separate tar files for add-ons listed there.
2089         Depend on their configure files.
2090         (dist-do-separate-dirs): New canned sequence to do that.
2091         (dist-separate-libidn, dist-separate-linuxthreads): New variables.
2092         (dist): Depend on add-on tar files based on $(dist-separate).
2093         (dist-version): New variable, default to $(version).
2094         (tag-for-dist, dist): Use that in place of $(version) in deps.
2096 2004-07-07  Ulrich Drepper  <drepper@redhat.com>
2098         * elf/dl-fini.c (_dl_fini): Move the unlock of the ld.so lock
2099         before the loop running the destructors.
2101 2004-05-18  Andreas Schwab  <schwab@suse.de>
2103         * elf/dl-load.c (_dl_map_object_from_fd): Use the end address of
2104         the first segment for mprotect, not l_text_end.
2106 2004-07-05  Ulrich Drepper  <drepper@redhat.com>
2108         * elf/dl-profile.c (_dl_start_profile): Compact error handling.
2109         Remove hashfraction variable.  Make kcount and kcountsize local
2110         variables.
2112         * elf/dl-init.c: Don't define and use _dl_starting_up if
2113         HAVE_INLINED_SYSCALLS is defined and the variable is not used.
2114         * elf/dl-support.c: Likewise.
2115         * elf/rtld.c: Likewise.
2116         * elf/dl-misc.c (_dl_debug_vdprintf): Use writev syscall directly
2117         if HAVE_INLINED_SYSCALLS is defined.
2118         * sysdeps/powerpc/powerpc64/dl-machine.h: Don't reset _dl_starting_up
2119         here.
2120         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
2121         * sysdeps/unix/sysv/linux/configure.in: Define HAVE_INLINED_SYSCALLS.
2122         * config.h.in: Add entry for HAVE_INLINED_SYSCALLS.
2124         * sysdeps/posix/profil.c: If compiled for ld.so, omit code which
2125         is needed to stop profiling.
2126         * elf/dl-open.c (dl_open_worker): If a newly opened object is to be
2127         profile make sure it cannot be unloaded.
2129         * sysdeps/unix/sysv/linux/dl-origin.c: Inline readlink syscall.
2131         * sysdeps/unix/sysv/linux/fcntl.c: If compiled without cancellation
2132         support, make sure the helper function is inlined.
2133         * sysdeps/unix/sysv/linux/pread.c: Likewise.
2134         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
2135         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
2136         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise.
2138 2004-07-05  Jakub Jelinek  <jakub@redhat.com>
2140         * include/string.h (ffs): Add libc_hidden_builtin_proto.
2141         * sysdeps/rs6000/ffs.c (ffs): Add libc_hidden_builtin_def.
2142         * sysdeps/alpha/alphaev67/ffs.S (ffs): Likewise.
2143         * sysdeps/alpha/ffs.S (ffs): Likewise.
2144         * sysdeps/s390/ffs.c (ffs): Likewise.
2145         * sysdeps/powerpc/ffs.c (ffs): Likewise.
2146         * sysdeps/i386/ffs.c (ffs): Likewise.
2147         * sysdeps/i386/i686/ffs.c (ffs): Likewise.
2148         * sysdeps/m68k/ffs.c (ffs): Likewise.
2149         * sysdeps/generic/ffs.c (ffs): Likewise.
2150         * sysdeps/m88k/ffs.c (ffs): Likewise.
2151         * sysdeps/am29k/ffs.c (ffs): Likewise.
2152         * sysdeps/i960/ffs.c (ffs): Likewise.
2153         * sysdeps/x86_64/ffs.c (ffs): Likewise.
2155         * Makerules (check-abi): Use diff -p -U 0 instead of diff -pu0.
2157         * sysdeps/powerpc/novmx-longjmp.c (__libc_longjmp,
2158         __libc_siglongjmp): Remove symbol_version.
2159         * sysdeps/powerpc/longjmp.c (__libc_longjmp, __libc_siglongjmp):
2160         Export @@GLIBC_PRIVATE, not @@GLIBC_2.3.4.
2161         * sysdeps/powerpc/sigjmp.c (__sigjmp_save): Use strong_alias
2162         unconditionally.
2163         * sysdeps/powerpc/novmx-sigjmp.c (__sigjmp_save): Remove.
2164         * sysdeps/powerpc/powerpc32/__longjmp.S (__longjmp): Use
2165         strong_alias instead of default_symbol_version, remove
2166         symbol_version.
2167         * sysdeps/powerpc/powerpc64/__longjmp.S (__longjmp): Likewise.
2168         * sysdeps/powerpc/powerpc32/bsd-setjmp.S (__novmx__setjmp): Change
2169         into strong_alias to __novmxsetjmp.
2170         (__vmx__setjmp): Similarly with __vmxsetjmp.
2171         (__setjmp): Make it strong_alias to __vmx__setjmp, remove
2172         default_symbol_version and symbol_version.
2173         * sysdeps/powerpc/powerpc64/bsd-setjmp.S (__novmx__setjmp): Change
2174         into strong_alias to __novmxsetjmp.
2175         (__vmx__setjmp): Similarly with __vmxsetjmp.
2176         (__setjmp): Make it strong_alias to __vmx__setjmp, remove
2177         default_symbol_version and symbol_version.
2179         * nscd/nscd_getgr_r.c: Include stdio-common/_itoa.h.
2181 2004-07-05  Ulrich Drepper  <drepper@redhat.com>
2183         * elf/rtld.c (dl_main): Mark dyn_temp with attribute_relro.
2185 2004-07-04  Matthew Reppert  <arashi@kai.vm.bytemark.co.uk>
2187         * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Use libc_hidden_ver
2188         instead of libc_hidden_def.
2190 2004-07-01  Roland McGrath  <roland@redhat.com>
2192         * aclocal.m4: Add provide for AC_CONFIG_AUX_DIR_DEFAULT.
2194         * Makeconfig ($(common-objpfx)shlib-versions.v.i): Move top-level
2195         $(..)shlib-versions file to last in deps list.  This lets add-ons give
2196         more-specific matches that override defaults in the top-level file.
2198         * sysdeps/unix/sysv/linux/configure.in: If arch_minimum_kernel was
2199         already set, don't set it or libc_cv_gcc_unwind_find_fde.
2200         * sysdeps/unix/sysv/linux/configure: Regenerated.
2202 2004-07-01  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2204         * sysdeps/s390/fpu/bits/mathinline.h [__LIBC_INTERNAL_MATH_INLINES]
2205         (__ieee754_sqrt): Define as __MATH_INLINE using sqdbr instruction.
2206         (__ieee754_sqrtf): Define as __MATH_INLINE using sqebr instruction.
2207         * sysdeps/s390/fpu/e_sqrt.c: New file.
2208         * sysdeps/s390/fpu/e_sqrtf.c: New file.
2209         * sysdeps/s390/Implies: New file.
2210         * sysdeps/s390/s390-32/Implies: Remove ieee754, move
2211         ieee754/dbl-64 and ieee754/flt-32 to s390/Implies.
2212         * sysdeps/s390/s390-64/Implies: Likewise.
2214 2004-06-30  Jakub Jelinek  <jakub@redhat.com>
2216         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Include tls.h.
2217         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2219         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (thread_start):
2220         DO_CALL (exit, 1) instead of branching to _exit.
2221         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (thread_start):
2222         Likewise.
2224         * sysdeps/s390/fpu/bits/mathinline.h: New file.
2226         * include/glob.h (glob64): Add libc_hidden_proto.
2227         * sysdeps/generic/glob64.c (glob64): Add libc_hidden_def.
2228         * sysdeps/gnu/glob64.c (glob64): Likewise.
2229         * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Likewise.
2231 2004-06-11  Jakub Jelinek  <jakub@redhat.com>
2233         * sysdeps/i386/fpu/libm-test-ulps: Update for GCC 3.4.
2234         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
2236 2004-06-11  Dwayne Grant McConnell  <dgm69@us.ibm.com>
2238         * sysdeps/powerpc/fpu/s_lround.c: Removed.
2239         * sysdeps/powerpc/fpu/s_lroundf.c: Removed.
2240         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: New file.
2241         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: New file.
2242         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: New file.
2243         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: New file.
2244         * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: Removed.
2245         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: New file.
2246         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: New file.
2247         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: New file.
2248         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: New file.
2249         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: New file.
2250         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: New file.
2251         * sysdeps/powerpc/powerpc32/fpu/s_round.S: New file.
2252         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: New file.
2253         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: New file.
2255 2004-06-30  Ulrich Drepper  <drepper@redhat.com>
2257         * include/net/if.h: Handle if_nameindex and if_freenameindex with
2258         libc_proto_hidden.
2259         * sysdeps/unix/sysv/linux/netlinkaccess.h: New file.
2260         * sysdeps/unix/sysv/linux/ifaddrs.c: Export netlink handling functions.
2261         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Implement using
2262         netlink if possible.  Fall back on ioctl method if necessary.
2263         * sysdeps/unix/sysv/linux/Dist: Add netlinkaccess.h.
2265         * include/unistd.h: Declare __truncate.
2266         * sysdeps/generic/truncate.c: Also define __truncate.
2267         * sysdeps/mach/hurd/truncate.c: Likewise.
2268         * sysdeps/unix/common/syscalls.list: Likewise.
2269         * sysdeps/unix/sysv/linux/truncate64.c: Use __truncate, not truncate.
2271 2004-06-29  Ulrich Drepper  <drepper@redhat.com>
2273         * stdio-common/printf-parsemb.c (__parse_one_specmb): Initialize
2274         info.extra.  Patch by Marcus Meissner.
2276 2004-06-29  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2278         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
2279         Fix branch offset for a PLT entry.
2281 2004-06-20  Jim Meyering  <jim@meyering.net>
2283         * malloc/obstack.h (obstack_base): Cast to `void *', to align with
2284         documentation.
2286 2004-06-28  Ulrich Drepper  <drepper@redhat.com>
2288         * inet/bug-if1.c (do_test): Simply use 0 as invalid index.
2289         Workaround for [BZ #232].
2291         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Use extend_alloca.
2293 2004-06-28  GOTO Masanori  <gotom@debian.or.jp>
2295         * iconv/gconv_simple.c: Use get16/put16 for user given buffer
2296         in ucs2/ucs2reverse when unaligned memory access is attempted.
2297         * iconv/tst-iconv5.c: New file.
2298         * iconv/Makefile (tests): Add tst-iconv5.
2300 2004-06-28  Jakub Jelinek  <jakub@redhat.com>
2302         * inet/bug-if1.c: Include <string.h>.
2304 2004-06-19  Roland McGrath  <roland@redhat.com>
2306         * sysdeps/posix/waitid.c (do_waitid) [DO_WAITID]: Define function
2307         under this macro name instead.
2308         [NO_DO_WAITID]: Don't define it at all.
2309         (do_waitid) [WNOWAIT, WEXITED]: If these POSIX.1 waitid flag bits are
2310         defined, then return ENOTSUP for combinations of selection bits other
2311         than WEXITED and WEXITED|WSTOPPED, which this version cannot support.
2313         * posix/tst-waitid.c: New file.
2314         * posix/Makefile (tests): Add it.
2316 2004-06-28  Jakub Jelinek  <jakub@redhat.com>
2318         * sysdeps/unix/alpha/sysdep.h (inline_syscall6): Fix a typo.
2320         [BZ #231]
2321         * sysdeps/unix/alpha/sysdep.S (__syscall_error): Avoid !samegp
2322         relocation in librt.so.
2324         [BZ #230]
2325         * sysdeps/alpha/dl-machine.h (_dl_start_user): Use ldah/ldl to load
2326         _dl_skip_args.  Patch by Jakub Bogusz <qboosh@pld-linux.org>.
2328 2004-06-27  Ulrich Drepper  <drepper@redhat.com>
2330         * elf/ldconfig.c (add_dir): Take chroot into account.
2331         Based on changes by HJ Lu and Hideki Iwamoto.
2333         * nscd/connections.c (invalidate_cache): If the host cache has to
2334         be invalidated, re-read resolv.conf.
2336         * resolv/resolv.h (RES_NOIP6DOTINT): Define.
2337         * resolv/res_init.c (res_setoptions): Handle no-ip6-dotint option.
2338         * resolv/gethnamaddr.c (gethostbyaddr): Don't lookup with .ip6.int
2339         if RES_NOIP6DOTINT flag is set.
2340         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
2342 2004-06-25  Jakub Jelinek  <jakub@redhat.com>
2344         * sysdeps/unix/sysv/linux/powerpc/fcntl.c: Move to...
2345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fcntl.c: ... here.
2346         * sysdeps/unix/sysv/linux/powerpc/lockf64.c: Move to...
2347         * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: ... here.
2348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: New file.
2350         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_GETLK, F_SETLK,
2351         F_SETLKW): Fix values for -m32 -D_FILE_OFFSET_BITS=64.
2353 2004-06-21  Jakub Jelinek  <jakub@redhat.com>
2355         [BZ #231]
2356         * sysdeps/unix/alpha/Makefile: New file.
2357         * sysdeps/unix/alpha/rt-sysdep.S: New file.
2358         Reported by Jakub Bogusz <qboosh@pld-linux.org>.
2360 2004-06-18  Ulrich Drepper  <drepper@redhat.com>
2362         * sysdeps/posix/getaddrinfo.c (gaih_inet): For AI_CANONNAME,
2363         determine the canonical name only for the first returned entry.
2365         * inet/bug-if1.c: New file.
2366         * inet/Makefile (tests): Add bug-if1.
2368 2004-06-18  Roland McGrath  <roland@frob.com>
2370         * Makerules (compile-mkdep-flags): Add -MT $@.
2372         * Makefile (dist, tag-for-dist): New targets.
2373         (files-for-dist, tag-of-stem): New variables.
2374         (glibc-%.tar glibc-linuxthreads-%.tar): New pattern rule.
2375         Make tar files using cvs export.
2376         (%.bz2, %.gz, tag-%): New pattern rules.
2377         (distribute): Variable removed.
2378         (+subdir_targets): Remove distinfo targets.
2379         (echo_subdirs, echo-distinfo, parent_echo-distinfo): Targets removed.
2380         (rpm/%): Pattern rule removed.
2381         * rpm/Makefile, rpm/rpmrc, rpm/template: Ancient cruft files removed.
2382         * Rules (subdir_echo-headers, subdir_echo-distinfo, subdir_dist):
2383         Targets removed.
2384         * Makerules (dist, subdir_distinfo): Targets removed.
2385         ($(objpfx)distinfo): Depend on $(distribute).
2386         * Make-dist: File removed.
2388         * NEWS: Fix a typo.  Update bug-reporting instructions.
2390 2004-06-17  Thorsten Kukuk  <kukuk@suse.de>
2392         * sysdeps/unix/sysv/linux/sched_setaffinity.c
2393         (__sched_setaffinity_new): Set errno to EINVAL and return -1 if
2394         cpuset is wrongly set.
2396 2004-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
2398         * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling
2399         for POWER4 machines.
2401 2004-06-14  Jakub Jelinek  <jakub@redhat.com>
2403         [BZ #218]
2404         * sunrpc/pmap_prot2.c (xdr_pmaplist): When freeing, remember pml_next
2405         in a local variable, point rp to that local variable afterwards.
2407 2004-06-11  Jakub Jelinek  <jakub@redhat.com>
2409         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Handle special
2410         cases properly.
2412 2004-06-17  Ulrich Drepper  <drepper@redhat.com>
2414         * sysdeps/unix/sysv/linux/if_index.c (if_indextoname): Correct
2415         error value for unknown interface. [BZ #198]
2417 2004-06-13  Jakub Jelinek  <jakub@redhat.com>
2419         * sysdeps/i386/bits/string.h (memcpy): Add () around arguments.
2420         (memchr, __memrchr, strlen, strcmp, strncmp, __strchr_g, __strchr_c,
2421         __strchrnul_g, __strchrnul_c, strspn, strcspn, strpbrk): Add memory
2422         the asm uses as its input, either of size __n where __n is known or
2423         0xfffffff.
2424         (strstr): Add "memory" clobber.
2426 2004-06-14  Jakub Jelinek  <jakub@redhat.com>
2428         [BZ #219]
2429         * nss/nsswitch.c (free_mem): Don't try to close a library handle
2430         if the handle is invalid.  Patch by David Kimdon <kimdon@esrf.fr>.
2432 2004-06-11  Dmitry V. Levin  <ldv@altlinux.org>
2434         [BZ #217]
2435         * debug/xtrace.sh: Fix typo in error diagnostics.
2437 2004-06-14  Andreas Schwab  <schwab@suse.de>
2439         * stdio-common/psignal.c (psignal): Don't use BUF when asprintf
2440         failed.
2442 2004-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
2444         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix pasto
2445         that clobbers r19.  Fix pasto that overflowed sigcontext.v_reserve.
2446         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Fix pasto
2447         that clobbers r19.
2448         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Fix pasto
2449         that clobbers r19.  Fix pasto that overflowed sigcontext.v_reserve.
2450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S:
2451         Fix setting of sigcontext.v_regs.  Fix pasto that clobbers r19.
2452         Fix pasto that overflowed sigcontext.v_reserve.
2453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S:
2454         Fix pasto that clobbers r19.
2455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Fix setting
2456         of sigcontext.v_regs.  Fix pasto that clobbers r19.  Fix pasto that
2457         overflowed sigcontext.v_reserve.
2459 2004-05-04  H.J. Lu  <hongjiu.lu@intel.com>
2461         [BZ #150]
2462         * sysdeps/generic/strtol_l.c (DEF): Use ".gnu.linkonce.r."
2463         instead of ".gnu.linkonce.ro." as the prefix for linkonce
2464         read-only section name.
2466 2004-06-14  Richard Henderson  <rth@redhat.com>
2468         * sysdeps/alpha/div_libc.h (_ITOFS): Use "sp" not "$sp".
2469         (_ITOFT, _FTOIT, _ITOFT2): Likewise.
2471 2004-06-08  Jakub Jelinek  <jakub@redhat.com>
2473         * sysdeps/s390/s390-32/backtrace.c (init): Guard with #ifdef SHARED.
2474         (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
2475         (__backtrace): Don't call init #ifndef SHARED.
2476         * sysdeps/s390/s390-64/backtrace.c (init): Guard with #ifdef SHARED.
2477         (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
2478         (__backtrace): Don't call init #ifndef SHARED.
2479         * sysdeps/ia64/backtrace.c (init): Guard with #ifdef SHARED.
2480         (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
2481         (__backtrace): Don't call init #ifndef SHARED.
2483 2004-06-11  Roland McGrath  <roland@redhat.com>
2485         * sysdeps/arm/strlen.S [__ARMEB__]: Compute correctly for big-endian.
2486         From Krzysztof Halasa <khc@pm.waw.pl>.
2488 2004-06-10  Jakub Jelinek  <jakub@redhat.com>
2490         * elf/tls-macros.h [__s390x__] (TLS_LD, TLS_GD): Clobber also r14.
2492 2004-06-08  Jakub Jelinek  <jakub@redhat.com>
2494         [BZ #199]
2495         * crypt/md5-crypt.c (__md5_crypt): Only update buflen if realloc
2496         succeeds.  Reported by Miles Ohlrich <miles@cray.com>.
2498         * elf/chroot_canon.c (chroot_canon): Avoid segfault if first malloc
2499         fails.  Avoid memory leak if realloc fails.
2501 2004-06-09  Jakub Jelinek  <jakub@redhat.com>
2503         * sysdeps/generic/setenv.c (setenv): Return -1/EINVAL if name is
2504         NULL, "" or contains '=' character in it.  Reported by
2505         Michael T Kerrisk <mtk-lists@gmx.net>.
2506         * stdlib/tst-environ.c: Include errno.h.
2507         (main): Add tests for these arguments to setenv/unsetenv.
2509 2004-06-07  Roland McGrath  <roland@frob.com>
2511         * NEWS: Update bug reporting instructions.  Fix some typos.
2513 2004-06-05  Ulrich Drepper  <drepper@redhat.com>
2515         * stdio-common/_itoa.h: Don't expand _itoa inline for libc.
2516         * stdio-common/_itoa.c: Add _itoa implementation.
2518         * nscd/nscd_gethst_r.c (__nscd_open_socket): Change implementation
2519         to also send request.  Add parameter to allow this.
2520         Change callers.
2521         * nscd/nscd_getgr_r.c: Change __nscd_open_socket caller.
2522         * nscd/nscd_getpw_r.c: Likewise.
2523         * nscd/nscd-client.h: Change __nscd_open_socket prototype.
2525 2004-06-05  Andreas Jaeger  <aj@suse.de>
2527         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2528         Handle more than 6 args correctly.  Based on a patch by Masahide
2529         Washizawa <washi@jp.ibm.com>.
2531 2004-06-04  Ulrich Drepper  <drepper@redhat.com>
2533         * nscd/nscd_gethst_r.c (nscd_gethst_r): Use __nss_not_use_nscd_hosts
2534         in all places, not __nss_not_use_nscd_group.
2535         Reported by Philippe Gregoire.
2537 2004-06-03  Ulrich Drepper  <drepper@redhat.com>
2539         * sysdeps/i386/i486/bits/atomic.h: Optimize a bit.
2541 2004-05-07  Dmitry V. Levin  <ldv@altlinux.org>
2543         * argp/argp-help.c (__argp_error, __argp_failure): Check result
2544         of __asprintf call and don't use string if it failed.
2545         * stdio-common/psignal.c (psignal): Likewise.
2546         * locale/programs/localedef.c (more_help): Likewise.
2547         * resolv/res_hconf.c (arg_service_list, arg_trimdomain_list,
2548         arg_bool, parse_line): Check result of __asprintf calls and
2549         don't use string if they failed.
2550         * sunrpc/svc_simple.c (registerrpc, universal): Likewise.
2551         * elf/ldconfig.c (parse_conf_include): Check result of __asprintf
2552         call and exit if it failed.
2554 2004-05-10  Jakub Jelinek  <jakub@redhat.com>
2556         * sysdeps/posix/sysconf.c (__sysconf) <cases _SC_REALTIME_SIGNALS,
2557         _SC_PRIORITY_SCHEDULING, _SC_TIMERS, _SC_ASYNCHRONOUS_IO,
2558         _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO, _SC_FSYNC, _SC_MAPPED_FILES,
2559         _SC_MEMLOCK, _SC_MEMLOCK_RANGE, _SC_MEMORY_PROTECTION,
2560         _SC_MESSAGE_PASSING, _SC_SEMAPHORES, _SC_SHARED_MEMORY_OBJECTS,
2561         _SC_THREADS, _SC_THREAD_SAFE_FUNCTIONS, _SC_THREAD_ATTR_STACKADDR,
2562         _SC_THREAD_ATTR_STACKSIZE, _SC_THREAD_PRIORITY_SCHEDULING,
2563         _SC_THREAD_PRIO_INHERIT, _SC_THREAD_PRIO_PROTECT,
2564         _SC_THREAD_PROCESS_SHARED>: Return _POSIX_* value instead of 1.
2565         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2566         <case _SC_MONOTONIC_CLOCK>: Return _POSIX_VERSION instead of 1.
2568 2004-05-07  Jeroen Dekkers  <jeroen@dekkers.cx>
2570         * sysdeps/mach/hurd/i386/Makefile (CFLAGS-init-first.c): Add
2571         -momit-leaf-frame-pointer.
2573         * inet/test-ifaddrs.c (addr_string): Surround AF_PACKET case with
2574         #ifdef AF_PACKET.
2576         * sysdeps/mach/hurd/getcwd.c
2577         (_hurd_canonicalize_directory_name_intern): Only realloc when
2578         size is <= 0.
2580         * sysdeps/mach/hurd/mmap.c (__mmap): Fail when addr or offset
2581         isn't page aligned.
2583         * sysdeps/mach/hurd/spawni.c (EXPAND_DTABLE): Set dtablesize to
2584         new size.
2586         * sysdeps/mach/hurd/Versions (GLIBC_PRIVATE): Add __libc_read,
2587         __libc_write and __libc_lseek64.
2589 2004-05-29  Roland McGrath  <roland@redhat.com>
2591         * elf/Makefile (shared-only-routines): Add dl-caller.
2593 2004-05-28  Ulrich Drepper  <drepper@redhat.com>
2595         * sysdeps/powerpc/configure.in: New file.
2597 2004-05-28  Steven Munroe  <sjmunroe@us.ibm.com>
2599         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Add .machine
2600         "altivec" to enable VMX instructions.
2601         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
2602         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2603         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
2604         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
2605         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
2606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
2607         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
2608         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
2609         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
2611 2004-05-27  Jakub Jelinek  <jakub@redhat.com>
2613         * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Define using
2614         __builtin_expm1l for GCC 3.5+.
2615         (__expl): Define using __builtin_expl for GCC 3.4+.
2616         (exp, expf, expl): Don't define for GCC 3.4+.
2617         (tan, tanf, tanl): Don't define for GCC 3.5+.
2618         (__atan2l): Define using __builtin_atan2l for GCC 3.4+.
2619         (atan2, atan2f, atan2l): Don't define for GCC 3.4+ or !__FAST_MATH__.
2620         (fmod, fmodf, fmodl): Don't define for GCC 3.5+ or !__FAST_MATH__.
2621         (fabsf, fabsl): Only provide if __USE_MISC or __USE_ISOC99.
2622         (sin, sinf, sinl, cos, cosf, cosl, log, logf, logl): Don't define
2623         for GCC 3.4+.
2624         (log10, log10f, log10l, asin, asinf, asinl, acos, acosf, acosl):
2625         Don't define for GCC 3.5+.
2626         (atan, atanf, atanl): Don't define for GCC 3.4+ or !__FAST_MATH__.
2627         (log1p, log1pf, log1pl, logb, logbf, logbl, log2, log2f, log2l): Don't
2628         define for GCC 3.5+.
2629         (drem, dremf, dreml): Don't define for GCC 3.5+ or !__FAST_MATH__.
2630         * sysdeps/sparc/fpu/bits/mathinline.h (sqrt, sqrtf, sqrtl): Don't
2631         define for GCC 3.2+.
2633 2004-05-27  Jakub Jelinek  <jakub@redhat.com>
2635         * string/bits/string2.h (__bzero): Define even for GCC 3.0+.
2636         * sysdeps/alpha/stpcpy.S (stpcpy): Add libc_hidden_builtin_def.
2637         * sysdeps/alpha/alphaev67/stpcpy.S (stpcpy): Likewise.
2638         * sysdeps/powerpc/powerpc32/stpcpy.S (stpcpy): Likewise.
2639         * sysdeps/powerpc/powerpc64/stpcpy.S (stpcpy): Likewise.
2640         * sysdeps/sparc/sparc32/stpcpy.S (stpcpy): Likewise.
2641         * sysdeps/sparc/sparc64/stpcpy.S (stpcpy): Likewise.
2642         * sysdeps/i386/stpcpy.S (stpcpy): Likewise.
2643         * sysdeps/i386/i586/stpcpy.S (stpcpy): Likewise.
2644         * sysdeps/generic/stpcpy.c (stpcpy): Likewise.
2645         * sysdeps/x86_64/stpcpy.S (stpcpy): Likewise.
2646         * sysdeps/i386/i586/memcpy.S (memcpy): Remove
2647         libc_hidden_builtin_def if MEMPCPY_P.
2648         * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
2649         * sysdeps/i386/i686/mempcpy.S (mempcpy): Add libc_hidden_builtin_def.
2650         * sysdeps/i386/i586/mempcpy.S (mempcpy): Likewise.
2651         * sysdeps/generic/mempcpy.c (mempcpy): Likewise.
2652         * sysdeps/x86_64/mempcpy.S (mempcpy): Likewise.
2654 2004-05-26  Roland McGrath  <roland@frob.com>
2656         * sysdeps/generic/bits/in.h
2657         (IMPLINK_IP, IMPLINK_LOWEXPER, IMPLINK_HIGHEXPER): Macros removed.
2658         These are long obsolete in BSD systems where they originated.
2659         * conform/data/netinet/in.h-data: Remove `allow IMPLINK_*'
2661 2004-05-26  Jakub Jelinek  <jakub@redhat.com>
2663         * include/string.h (mempcpy, stpcpy): Add libc_hidden_builtin_proto.
2664         * string/bits/string2.h (memset): Disable macro for GCC 3.0+.
2665         (__mempcpy): Use __builtin_mempcpy for GCC 3.4+.
2666         (strchr): For GCC 3.2+, only use __rawmemchr if second argument is
2667         constant '\0' and first argument is not constant.
2668         (__stpcpy): Use __builtin_stpcpy for GCC 3.4+.
2669         (strncpy): Remove #ifdef _USE_STRING_ARCH_mempcpy variant.
2670         For GCC 3.2+ use __builtin_strncpy.
2671         (strncat): For GCC 3.2+ use __builtin_strncat.
2672         (strcmp): For GCC 3.2+ use __builtin_strcmp if both arguments are
2673         constant.
2674         (strcspn, strspn, strpbrk): For GCC 3.2+, use builtin function
2675         if both arguments are constant.
2677 2004-05-26  Ulrich Drepper  <drepper@redhat.com>
2679         * nss/nss_files/files-hosts.c: Fix condition for looking up IPv4
2680         mapped addresses in gethostbyaddr.
2682 2004-05-25  Ulrich Drepper  <drepper@redhat.com>
2684         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove typep and
2685         flags parameter, convert afp to simple int parameter.  Adjust code.
2686         typep was never != NULL and flags therefore also unused.  *afp is
2687         never modified.
2688         * nss/nsswitch.h: Adjust __nss_hostname_digits_dots prototype.
2689         * nss/getXXbyYY.c: Remove HAVE_TYPE handling.  Adjust af parameter
2690         handling for __nss_hostname_digits_dots calls.
2691         * nss/getXXbyYY_r.c: Likewise.
2693         * elf/dl-load.c (_dl_map_object_from_fd): Map DSOs with MAP_DENYWRITE.
2695 2004-05-25  Steven Munroe  <sjmunroe@us.ibm.com>
2697         * sysdeps/powerpc/fpu/Makefile: Make ld.so a dependency of libm.so.
2698         * sysdeps/powerpc/fpu/bits/mathinline.h [__LIBC_INERNAL_MATH_INLINES]
2699         (__ieee754_sqrt): Define as __MATH_INLINE using fsqrt instruction.
2700         (__ieee754_sqrtf): Define as __MATH_INLINE using fsqrts instruction.
2701         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Moved
2702         implementation from w_sqrt.c.
2703         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Moved
2704         implementation from w_sqrtf.c.
2705         * sysdeps/powerpc/fpu/w_sqrt.c (__sqrt): Wrapper implementation
2706         using inline __ieee754_sqrt().
2707         * sysdeps/powerpc/fpu/w_sqrtf.c (__sqrtf): Wrapper implementation
2708         using inline __ieee754_sqrtf().
2709         * sysdeps/powerpc/powerpc32/sysdep.h [__ASSEMBLER__]: Include
2710         <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__.
2711         * sysdeps/powerpc/sysdep.h [__ASSEMBLER__] (PPC_FEATURE_*): Define
2712         PPC_FEATURE_*  independent of __ASSEMBLER__.
2714 2004-05-25  Jakub Jelinek  <jakub@redhat.com>
2716         * sysdeps/pthread/aio_notify.c: Use <> instead of "" for aio_misc.h
2717         include.
2718         (aio_start_notify_thread): Define if not defined.
2719         (notify_func_wrapper): Use it.
2720         * sysdeps/pthread/aio_misc.c: Use <> instead of "" for aio_misc.h
2721         include.
2722         (aio_create_helper_thread): Define if not defined.
2723         (__aio_create_helper_thread): New function.
2724         (__aio_enqueue_request): Use aio_create_helper_thread.
2726         * nis/ypclnt.c (ypall_data, ypall_foreach): Remove.
2727         (struct ypresp_all_data): New type.
2728         (__xdr_ypresp_all): Change second argument to
2729         struct ypresp_all_data *.  Replace ypall_foreach and
2730         ypall_data with objp->foreach and objp->data.
2731         (yp_all): Remove status variable, add data.  Replace
2732         all uses of status with data.status.  Initialize data.foreach
2733         and data.data instead of ypall_foreach and ypall_data.
2735 2004-05-24  Jakub Jelinek  <jakub@redhat.com>
2737         * elf/dl-lookup.c (add_dependency): Set DF_1_NODELETE bit
2738         in l_flags_1, not in l_flags.
2740 2004-04-10  Robert Millan  <robertmh@gnu.org>
2742         * sysdeps/unix/sysv/linux/bits/in.h: Cosmetic fixes to get in sync
2743         with sysdeps/generic/bits/in.h.
2745 2004-05-25  Roland McGrath  <roland@frob.com>
2747         * sysdeps/generic/unwind-dw2-fde-glibc.c: Change copyright terms from
2748         GCC GPL to standard glibc LGPL.
2750 2004-05-24  Ulrich Drepper  <drepper@redhat.com>
2752         * manual/string.texi (Copying and Concatenation): Fixed second
2753         concat example.
2754         Reported by Fabian Pietsch <fabian@zzznowman.dyndns.org>.
2756 2004-05-23  Ulrich Drepper  <drepper@redhat.com>
2758         * malloc/obstack.c: Don't allow linking with _obstack.
2760 2004-05-23  Andreas Schwab  <schwab@suse.de>
2762         * sysdeps/m68k/m68020/bits/atomic.h: Use "+m" constraint instead
2763         of separate "m" constraints.
2765 2004-05-15  Chris Demetriou  <cgd@broadcom.com>
2767         * sysdeps/mips/dl-machine.h (ELF_DL_FRAME_SIZE)
2768         (ELF_DL_SAVE_ARG_REGS, ELF_DL_RESTORE_ARG_REGS): For the N32
2769         and 64 ABIs, save and restore regs $10 and $11 (a6 and a7).
2771 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
2773         * malloc/obstack.c (_obstack) [!defined _LIBC]: Remove; not used.
2774         Add comment explaining why libc still defines it.
2776 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2778         * malloc/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
2779         obstack_alignment_mask, obstack_alloc, obstack_base,
2780         obstack_blank, obstack_blank_fast, obstack_chunk_size,
2781         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
2782         obstack_grow0, obstack_init, obstack_int_grow,
2783         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
2784         obstack_next_free, obstack_object_size, obstack_ptr_grow,
2785         obstack_ptr_grow_fast, obstack_room): Remove declarations of
2786         nonexistent functions.
2788 2004-05-18  Steven Munroe  <sjmunroe@us.ibm.com>
2790         * sysdeps/powerpc/powerpc64/sysdep.h [__ASSEMBLER__]: Include
2791         <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__.
2792         [PIC]: Redundent for powerpc64, removed.
2793         (ENTRY): Generate size and alignment for opd entry.
2794         (EALIGN): Generate size and alignment for opd entry.
2795         (END): Use DOT_LABEL in ASM_SIZE_DIRECTIVE.
2796         (END_GEN_TB): Use DOT_LABEL in ASM_SIZE_DIRECTIVE.
2798 2004-05-19  Ulrich Drepper  <drepper@redhat.com>
2800         * misc/regexp.h: Say the functions have been withdrawn.
2802         * wcsmbs/tst-wcpncpy.c: Add more tests.
2804 2004-05-18  Roland McGrath  <roland@frob.com>
2806         * sysdeps/generic/unwind.h: Change copyright terms from GCC GPL to
2807         standard glibc LGPL.
2808         * sysdeps/generic/unwind-dw2.c: Likewise.
2809         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
2810         * sysdeps/generic/unwind-dw2-fde.h: Likewise.
2811         * sysdeps/generic/unwind-pe.h: Likewise.
2813 2004-05-15  Petter Reinholdtsen  <pere@hungry.com>
2815         * locale/iso-3166.def: Remove YUGOSLAVIA and insert "SERBIA AND
2816         MONTENEGRO" which have taken over the code 819.  Patch from
2817         Danilo Segan. [BZ #40]
2819 2004-05-15  Jakub Jelinek  <jakub@redhat.com>
2821         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2822         (SYSCALL_ERROR_HANDLER): Rename __sparc.get_pic.l7 to
2823         __sparc_get_pic_l7.
2825 2004-05-15  Joseph S. Myers  <jsm@polyomino.org.uk>
2827         * catgets/gencat.c: Update bug reporting instructions.
2828         * csu/version.c: Likewise.
2829         * debug/catchsegv.sh: Likewise.
2830         * debug/pcprofiledump.c: Likewise.
2831         * debug/xtrace.sh: Likewise.
2832         * elf/ldd.bash.in: Likewise.
2833         * iconv/iconv_prog.c: Likewise.
2834         * iconv/iconvconfig.c: Likewise.
2835         * locale/programs/locale.c: Likewise.
2836         * locale/programs/localedef.c: Likewise.
2837         * login/programs/pt_chown.c: Likewise.
2838         * malloc/memusage.sh: Likewise.
2839         * malloc/memusagestat.c: Likewise.
2840         * malloc/mtrace.pl: Likewise.
2841         * manual/crypt.texi: Likewise.
2842         * manual/install.texi: Likewise.
2843         * nss/makedb.c: Likewise.
2845 2004-05-14  Jakub Jelinek  <jakub@redhat.com>
2847         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Only
2848         CHECK_STATIC_TLS if sym != NULL.
2849         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
2850         * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
2852 2004-05-12  Andreas Schwab  <schwab@suse.de>
2854         * posix/regex_internal.c (build_wcs_buffer): Also set pstr->mbs
2855         when translating.
2857 2004-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2859         * Rules (xtests): Depend on tests.
2861 2004-05-13  Jakub Jelinek  <jakub@redhat.com>
2863         * libio/genops.c (_IO_default_xsputn): Avoid one overflow per char if
2864         count is negative, yet write_ptr < write_end.
2865         (_IO_default_xsgetn): Avoid one underflow per char if count is
2866         negative, yet read_ptr < read_end.
2868 2004-05-12  Steven Munroe  <sjmunroe@us.ibm.com>
2870         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XTABS): Define XTABS
2871         equal to TAB3.
2873 2004-05-12  Ulrich Drepper  <drepper@redhat.com>
2875         * elf/dl-lookup.c (_dl_lookup_symbol_x): Correct _dl_signal_cerror
2876         call.
2878 2004-05-10  Roland McGrath  <roland@frob.com>
2880         * hurd/hurdlookup.c (__hurd_file_name_split): Return ENOENT for "".
2881         (__hurd_directory_name_split): Likewise.
2883 2004-05-10  Ulrich Drepper  <drepper@redhat.com>
2885         * po/fr.po: Update from translation team.
2887 2004-05-10  Andreas Jaeger  <aj@suse.de>
2889         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2890         Correctly compute alignment.
2891         Patch by Michael Matz <matz@suse.de>.
2893 2004-05-09  Ulrich Drepper  <drepper@redhat.com>
2895         * sysdeps/generic/sigpause.c: Prevent sigpause prototype.
2896         * sysdeps/posix/sigpause.c: Likewise.
2897         * signal/signal.h: Don't define sigpause macro unless needed.
2899 2004-05-08  Jakub Jelinek  <jakub@redhat.com>
2901         * configure.in (libc_cv_libgcc_s_suffix): New check.
2902         (libc_cv_as_needed): Use -lgcc_s$libc_cv_libgcc_s_suffix.
2903         * config.make.in (libgcc_s_suffix): Set.
2904         * Makeconfig (libgcc_eh): Use -lgcc_s$(libgcc_s_suffix).
2906 2004-05-08  Ulrich Drepper  <drepper@redhat.com>
2908         * signal/signal.h: Use BSD sigpause only if BSD behavior is preferred.
2910 2004-04-29  Steven Munroe  <sjmunroe@us.ibm.com>
2912         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_1,
2913         LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6):
2914         Load argument values into temporary variables.
2915         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_1,
2916         LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6):
2917         Likewise.
2919 2004-05-07  Ulrich Drepper  <drepper@redhat.com>
2921         * sysdeps/unix/sysv/linux/Makefile: mq_send.c and mq_receive.c
2922         need to be compiled with exceptions.
2924 2004-05-06  Ulrich Drepper  <drepper@redhat.com>
2926         * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Fix memory handling.
2927         * sysdeps/generic/ifreq.c (__ifreq): Fix memory handling.
2929         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Make clear that
2930         realloc cannot fail.
2932         * nss/nss_files/files-netgrp.c (EXPAND): Free buffer which cannot
2933         be expanded.
2935         * nis/nis_table.c: Clean up memory handling.
2936         * nis/nis_subr.c (nis_getnames): Clean up memory handling.
2937         * nis/nis_removemember.c (nis_removemember): Add comment
2938         explaining use of realloc.
2940         * math/tgmath.h (fabs): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL.
2941         (carg): Likewise.
2942         Patch by Lev S Bishop <lev.bishop@yale.edu>.
2944         * math/bug-tgmath1.c (main): Test fabs and carg as well.
2946 2004-05-06  Richard Henderson  <rth@redhat.com>
2948         * elf/elf.h (AT_L1I_CACHESHAPE, AT_L1D_CACHESHAPE,
2949         AT_L2_CACHESHAPE, AT_L3_CACHESHAPE): New.
2950         * sysdeps/unix/sysv/linux/alpha/Versions: Export
2951         __libc_alpha_cache_shape as a private symbol.
2952         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c: New file.
2953         * sysdeps/unix/sysv/linux/alpha/sysconf.c: New file.
2955 2004-05-06  Richard Henderson  <rth@redhat.com>
2957         * sysdeps/alpha/div_libc.h (_ITOFS, _ITOFT, _FTOIT, _ITOFT2): New.
2958         * sysdeps/alpha/divl.S: Use them.
2959         * sysdeps/alpha/divq.S: Likewise.
2960         * sysdeps/alpha/divqu.S: Likewise.
2961         * sysdeps/alpha/reml.S: Likewise.
2962         * sysdeps/alpha/remq.S: Likewise.
2963         * sysdeps/alpha/remqu.S: Likewise.
2965 2004-05-06  Ulrich Drepper  <drepper@redhat.com>
2967         * math/tgmath.h (__TGMATH_UNARY_REAL_IMAG_RET_REAL):Define.
2968         (cimag): Use it.
2969         (creal): Likewise.
2970         * math/Makefile (tests): Add bug-tgmath1.
2971         * math/bug-tgmath1.c: New file.
2973 2004-05-05  Jakub Jelinek  <jakub@redhat.com>
2975         * sysdeps/alpha/atomicity.h: Remove.
2976         * sysdeps/generic/atomicity.h: Remove.
2978 2004-05-05  H.J. Lu  <hongjiu.lu@intel.com>
2980         * sysdeps/i386/i486/bits/string.h (strpbrk): Cast return to
2981         char *.
2983 2004-04-22  David Mosberger  <davidm@hpl.hp.com>
2985         * sysdeps/unix/sysv/linux/ia64/Makefile (librt-routines): Mention
2986           rt-sysdep.
2987         * sysdeps/unix/sysv/linux/ia64/rt-sysdep.S: New file.
2989         * sysdeps/ia64/strcat.c: New file.
2990         * sysdeps/ia64/strcat.S: Delete.
2992 2004-05-04  Jakub Jelinek  <jakub@redhat.com>
2994         * sysdeps/unix/sysv/linux/ia64/sysdep.S (USE___THREAD): Remove
2995         defined.
2997 2004-04-23  Jakub Jelinek  <jakub@redhat.com>
2999         * sysdeps/ia64/fpu/libm_support.h (__libm_error_support): Add
3000         libc_hidden_proto.  Define to __GI___libm_error_support for
3001         assembly going into libc.so.
3002         * sysdeps/ia64/fpu/libc_libm_error.c (__libm_error_support): Add
3003         libc_hidden_def.
3005         * include/libc-symbols.h (HIDDEN_BUILTIN_JUMPTARGET): Define.
3006         * sysdeps/ia64/bcopy.S (bcopy): Use it for jump to memmove.
3008         * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Access
3009         gprel errno if RTLD_PRIVATE_ERRNO or __thread __libc_errno/errno
3010         if USE___THREAD.
3012 2004-05-03  Jakub Jelinek  <jakub@redhat.com>
3014         * sysdeps/unix/bsd/bits/fcntl.h (F_SETOWN, F_GETOWN): Define if
3015         __USE_BSD or __USE_UNIX98.
3016         * sysdeps/unix/bsd/ultrix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3017         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3018         * sysdeps/unix/bsd/sun/sunos4/bits/fcntl.h (F_SETOWN, F_GETOWN):
3019         Likewise.
3020         * sysdeps/unix/common/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3021         * sysdeps/unix/sysv/aix/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3022         * sysdeps/unix/sysv/irix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3023         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_SETOWN, F_GETOWN):
3024         Likewise.
3025         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_SETOWN, F_GETOWN):
3026         Likewise.
3027         * sysdeps/unix/sysv/linux/cris/bits/fcntl.h (F_SETOWN, F_GETOWN):
3028         Likewise.
3029         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (F_SETOWN, F_GETOWN):
3030         Likewise.
3031         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_SETOWN, F_GETOWN):
3032         Likewise.
3033         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN, F_GETOWN):
3034         Likewise.
3035         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (F_SETOWN, F_GETOWN):
3036         Likewise.
3037         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (F_SETOWN, F_GETOWN):
3038         Likewise.
3039         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (F_SETOWN, F_GETOWN):
3040         Likewise.
3041         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (F_SETOWN, F_GETOWN):
3042         Likewise.
3043         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (F_SETOWN, F_GETOWN):
3044         Likewise.
3045         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (F_SETOWN, F_GETOWN):
3046         Likewise.
3047         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_SETOWN, F_GETOWN):
3048         Likewise.
3049         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3050         * sysdeps/mach/hurd/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3051         * io/sys/stat.h (S_ISSOCK, S_IFSOCK): Likewise.
3053 2004-05-01  Jakub Jelinek  <jakub@redhat.com>
3055         * posix/Versions (libc): Remove __libc_wait, __libc_waitpid,
3056         __libc_pause, __libc_nanosleep, __libc_pread, __libc_pread64,
3057         __libc_pwrite64, __waitid and __pselect @@GLIBC_PRIVATE.
3058         * stdlib/Versions (libc): Remove __on_exit@@GLIBC_PRIVATE.
3059         * sysdeps/unix/sysv/linux/Versions (libc): Remove
3060         __libc_sigaction@@GLIBC_PRIVATE.
3061         * sysdeps/unix/sysv/linux/x86_64/Versions (libc): Remove
3062         __modify_ldt@@GLIBC_PRIVATE.
3063         * socket/Versions (libc): Remove __libc_accept, __libc_send,
3064         __libc_recvfrom, __libc_recvmsg, __libc_sendmsg, __libc_recv,
3065         __libc_sendto and __libc_connect @@GLIBC_PRIVATE.
3066         * stdio-common/Versions (libc): Remove
3067         _itoa_upper_digits@@GLIBC_PRIVATE.
3068         * resolv/Versions (libresolv): Remove __ns_samename@@GLIBC_PRIVATE.
3069         * misc/Versions (libc): Remove __libc_fsync, __libc_msync,
3070         __libc_readv and __libc_writev @@GLIBC_PRIVATE.
3071         * termios/Versions (libc): Remove __libc_tcdrain@@GLIBC_PRIVATE.
3072         * io/Versions (libc): Remove __libc_open, __libc_close, __libc_read,
3073         __libc_write, __libc_lseek, __libc_fcntl, __libc_open64 and
3074         __libc_lseek64 @@GLIBC_PRIVATE.
3076 2004-04-30  Jakub Jelinek  <jakub@redhat.com>
3078         * elf/dl-load.c (open_verify): Move e_phentsize check after e_type
3079         check.
3081 2004-04-29  Steven Munroe  <sjmunroe@us.ibm.com>
3083         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: New file.
3084         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: New file.
3085         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: New file.
3086         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: New file.
3087         * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: Removed.
3088         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: New file.
3089         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Removed.
3090         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: New file.
3091         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: New file.
3092         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: New file.
3093         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: New file.
3094         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: New file.
3095         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: New file.
3096         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: New file.
3097         * sysdeps/powerpc/powerpc64/fpu/s_round.S: New file.
3098         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: New file.
3099         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: New file.
3100         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: New file.
3102         * math/test-misc.c [LDBL_MANT_DIG == 106](main): Correct LDBL_MAX
3103         mantissa for AIX long double format.
3104         * misc/qefgcvt.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Define for AIX
3105         long double format.
3106         * misc/qefgcvt_r.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Likewise.
3107         * stdlib/fpioconst.c [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024]
3108         (_fpioconst_pow10): AIX long double format has same exponent range as
3109         double.
3110         * stdlib/fpioconst.h [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024]
3111         (LDBL_MAX_10_EXP_LOG): AIX long double format has same exponent range
3112         as double.
3114 2004-04-23  Art Haas  <ahaas@airmail.net>
3116         * sysdeps/unix/sysv/linux/kernel-features.h: Add 'defined'.
3118 2004-04-28  Carlos O'Donell  <carlos@baldric.uwo.ca>
3120         * sysdeps/unix/sysv/linux/mq_getattr.c: Include <stddef.h>.
3121         * sysdeps/unix/sysv/linux/mq_notify.c: Likewise.
3122         * sysdeps/unix/sysv/linux/mq_open.c: Likewise.
3123         * sysdeps/unix/sysv/linux/mq_receive.c: Likewise.
3124         * sysdeps/unix/sysv/linux/mq_send.c: Likewise.
3126 2004-04-29  Philip Blundell  <pb@nexus.co.uk>
3128         * sysdeps/arm/dl-machine.h (RTLD_START): Avoid unnecessary GOT
3129         entries.
3131 2004-04-29  Jakub Jelinek  <jakub@redhat.com>
3133         * manual/resource.texi (sched_setaffinity, sched_getaffinity): Fix
3134         prototypes and description [BZ #131].
3136         * string/bits/string2.h (strpbrk): Cast NULL to char * [BZ #130].
3137         Patch by Ed Catmur <ed@catmur.co.uk>.
3138         * string/tst-inlcall.c (main): Add test for strpbrk.
3140         [BZ #140]
3141         * sysdeps/unix/sysv/linux/sys/sysctl.h: Remove linux/compiler.h
3142         include.
3143         (_LINUX_KERNEL_H, _LINUX_TYPES_H, _LINUX_LIST_H): Only define if not
3144         yet defined, #undef back after including linux/sysctl.h if defined
3145         here.
3146         (__LINUX_COMPILER_H, __user): Define if not yet defined, #undef
3147         back after including linux/sysctl.h if defined here.
3149         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c (_Qp_qtoi): Use %f31
3150         for single precision register, add it to __asm clobbers [BZ #139].
3151         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c (_Qp_qtoui): Use %f31
3152         for single precision register, add it to __asm clobbers.
3153         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c (_Qp_qtoux): Use fqtox
3154         instead of fqtoi in QP_HANDLE_EXCEPTIONS.
3155         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c (_Qp_qtox): Likewise.
3156         Reported by M. H. VanLeeuwen <vanl@megsinet.net>.
3158 2004-04-23  Andreas Schwab  <schwab@suse.de>
3160         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Use
3161         __attribute_used__.
3163 2004-04-22  Philip Blundell  <philb@gnu.org>
3165         * sysdeps/arm/dl-machine.h (elf_machine_rela): Don't use INTUSE
3166         when calling _dl_signal_error.
3167         (elf_machine_rel): Likewise.
3169 2004-04-21  Ulrich Drepper  <drepper@redhat.com>
3171         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Define _GI___sigsetjmp
3172         and use it internally instead of __sigsetjmp.
3173         * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Use _GI___libm_frexp_4f.
3174         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Use _GI___libm_frexp_4l.
3175         * sysdeps/ia64/fpu/libm_frexp4.S: Define _GI___libm_frexp_4.
3176         * sysdeps/ia64/fpu/libm_frexp4f.S: Define _GI___libm_frexp_4f.
3177         * sysdeps/ia64/fpu/libm_frexp4l.S: Define _GI___libm_frexp_4l.
3178         * sysdeps/ia64/fpu/s_frexp.c (frexp): Use _GI___libm_frexp_4.
3179         * sysdeps/ia64/fpu/libm_support.h: Declare _GI___libm_frexp_4,
3180         _GI___libm_frexp_4f, _GI___libm_frexp_4l.
3181         * sysdeps/ia64/fpu/bits/mathinline.h: New file.
3182         * sysdeps/unix/sysv/linux/ia64/__start_context.S: Use
3183         HIDDEN_JUMPTARGET for exit call.
3184         * sysdeps/unix/sysv/linux/ia64/clone2.S: Use HIDDEN_JUMPTARGET for
3185         _exit call.
3186         * sysdeps/ia64/bcopy.S: Use HIDDEN_JUMPTARGET for memmove call.
3187         * sysdeps/ia64/strcat.S: Use HIDDEN_JUMPTARGET for strlen and
3188         strcpy calls.
3190 2004-04-21  Jakub Jelinek  <jakub@redhat.com>
3192         * posix/tst-chmod.c (do_test): Fix a typo.
3194         * elf/lateglobal.c (main): Fix error checks.
3195         Patch by Stephen Clarke <stephen.clarke@st.com>.
3197         * manual/ctype.texi (isblank, iswblank): Mark as ISO functions,
3198         mention they have been added in ISO C99.
3199         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3201 2004-03-31  H.J. Lu  <hongjiu.lu@intel.com>
3203         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Fix typo.
3205 2004-04-20  Jakub Jelinek  <jakub@redhat.com>
3207         * sysdeps/unix/sysv/linux/shm_open.c (shm_unlink): Change EPERM into
3208         EACCES.
3210 2004-04-20  Jakub Jelinek  <jakub@redhat.com>
3212         * stdio-common/vfscanf.c (_IO_vfscanf): Revert last %% whitespace
3213         handling change.
3214         * stdio-common/tst-sscanf.c (int_tests): Adjust.
3216         * nis/nss-nis.c: Include stdlib.h.
3218         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Shut up a
3219         warning.
3220         * sysdeps/sparc/sparc64/memcmp.S (memcmp): Remove BP_SYM () from
3221         libc_hidden_builtin_def.
3223 2004-04-20  Jim Meyering  <jim@meyering.net>
3225         * misc/error.c (error_tail): Don't leak upon realloc failure.
3227 2004-04-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3229         * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable):
3230         Use RETURN_ADDRESS instead of __builtin_return_address.
3232 2004-04-19  Ulrich Drepper  <drepper@redhat.com>
3234         * sysdeps/unix/sysv/linux/mq_unlink.c: Rewrite to produce more
3235         compact code.
3237 2004-04-20  Jakub Jelinek  <jakub@redhat.com>
3239         * stdio-common/vfscanf.c (_IO_vfscanf): When skipping whitespace,
3240         do input_error () instead of conv_error () and don't look at errno.
3241         Don't eat any whitespace before %% if skip_space == 0.
3242         * stdio-common/tst-sscanf.c (int_tests): New array.
3243         (main): Run int_tests.
3246 See ChangeLog.14 for earlier changes.