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