Update.
[glibc.git] / ChangeLog
blob1f7b8138636ef85bfcb5f41f2643bcd4f84fab95
1 2004-10-02  Simon Josefsson  <jas@extundo.com>
3         [BZ #420]
4         * sysdeps/generic/memmem.c [!_LIBC]: Define __builtin_expect, to
5         make the file usable inside gnulib.
7 2004-10-01  Ulrich Drepper  <drepper@redhat.com>
9         * malloc/malloc.c (public_vALLOc): Add missing use of hooks.
10         (public_pVALLOc): Likewise.
12         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Always add the
13         group the caller provided unless there is a real problem.
15         * posix/bug-glob1.c (prepare): Fix creation of symlink.
17 2004-09-30  Ulrich Drepper  <drepper@redhat.com>
19         * posix/Makefile: Add rules to build and run bug-glob1.
20         * posix/bug-glob1.c: New file.
22         * iconv/iconv_prog.c (main): Print progress information to stderr.
24         * nscd/nscd.c (termination_handler): Reset timestamp so that
25         clients immediately stop using the database.
27         * nscd/nscd-client.h (__nscd_get_map_ref): Drop volatile from last
28         parameter.
29         (__nscd_drop_map_ref): Change second parameter to be a reference to
30         a variable.  Update variable when cycle count changed.
31         * nscd/nscd_helper.c (__nscd_get_map_ref): Remove volatile here, too.
32         * nscd/nscd_getai.c: Correctly use __nscd_drop_map_ref.  Reinitialize
33         all variables and avoid memory leak in case of retries.
34         * nscd/nscd_getgr_r.c: Likewise.
35         * nscd/nscd_gethst_r.c: Likewise.
36         * nscd/nscd_getpw_r.c: Likewise.
37         * nscd/nscd_initgroups.c: Likewise.
39         * nscd/nscd.h: Add declaration of addinitgroups and
40         readdinitgroups.
42 2004-09-30  Andreas Jaeger  <aj@suse.de>
44         * nscd/Makefile (CFLAGS-nscd_initgroups.c): Set to -fpie.
45         (CFLAGS-initgrcache.c): Set to -fexceptions.
47 2004-09-29  Ulrich Drepper  <drepper@redhat.com>
49         * sysdeps/generic/glob.c (glob_in_dir): Don't blindly trust
50         readdir results; for symlinks or files of unknown type check using
51         stat whether the file exists.
53         * posix/tst-gnuglob.c (find_file): Handle leading "./".  Fix
54         recognition of files.
56 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
58         * time/tzfile.c (tzfile_mtime): New variable.
59         (__tzfile_read): Reread the file if mtime is different.
61 2004-09-28  Jakub Jelinek  <jakub@redhat.com>
63         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf, __fdim, fdimf, fdim):
64         Handle +inf/+inf.
65         * sysdeps/powerpc/fpu/bits/mathinline.h (fdim, fdimf): Likewise.
66         * sysdeps/sparc/fpu/bits/mathinline.h (fdim, fdimf): Likewise.
68 2004-09-29  Ulrich Drepper  <drepper@redhat.com>
70         * nscd/nscd_gethst_r.c (nscd_gethst_r): Use correct constant for
71         testing result of __nscd_get_map_ref.
73 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
75         * sysdeps/i386/fpu/s_fdim.S (__fdim): Handle +inf/+inf.
76         * sysdeps/i386/fpu/s_fdimf.S (__fdimf): Likewise.
77         * sysdeps/i386/fpu/s_fdiml.S (__fdiml): Likewise.
79 004-09-29  Ulrich Drepper  <drepper@redhat.com>
81         * grp/initgroups.c: Move compat_call implementation...
82         * grp/compat-initgroups.c: ...to here.  New file.
83         * grp/Makefile (distribute): Add compat-initgroups.c.
84         (CFLAGS-initgroups.c): Add -DUSE_NSCD=1.
85         * mscd/initgrcache.c: New file.
86         * nscd/nscd_initgroups.c: New file.
87         * nscd/Makefile (routines): Add nscd_initgroups.
88         (nscd-modules): Add initgrcache.
89         * nscd/cache.c (prune_cache): Add support for INITGROUPS entries.
90         * nscd/connections.c: Handle INITGROUPS requests.
91         * nscd/nscd-client.h: Define INITGROUPS, initgr_response_header.
92         Add initgrdata element to struct datahead.  Fix typo in comment.
93         * nscd/nscd_proto.h: Declare __nscd_getgrouplist.  Fix parameter
94         type in __nscd_getgrgrid_r.
95         * nscd/selinux.c (perms): Add INITGROUPS entry.
97         * nscd/nscd_getai.c: No need to include <sys/mman.h>.
99         * sunrpc/get_myaddr.c (get_myaddress): Account for interfaces without
100         assigned addresses.
101         * sunrpc/pmap_clnt.c (__get_myaddress): Likewise.
102         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
103         * sunrpc/clnt_udp.c (is_network_up): Likewise.
105         * nscd/nscd.c: Define getaddrinfo hidden so that it is never found
106         outside.
108         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (si_segvflags):
109         Renamed from si_flags due to conflict with si_flags from <elf.h>.
111 2004-09-28  Ulrich Drepper  <drepper@redhat.com>
113         * nscd/nscd_getai.c: Use NO_MAPPING instead of MAP_FAILED for test
114         of failing __nscd_get_map_ref.  Fix a few typos.
116         * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Make sure
117         SIGSETXID is not blocked.
118         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Likewise.
119         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
120         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
121         * sysdeps/generic/sigfillset.c (sigfillset): Don't set SIGSETXID.
123         * sunrpc/get_myaddr.c (get_myaddress): Fix test for failing
124         getifaddrs call.
125         * sunrpc/pmap_clnt.c (__get_myaddress): Likewise.
126         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
127         * sunrpc/Makefile (xtests): Add tst-getmyaddr.
128         * sunrpc/tst-getmyaddr.c: New file.
130         * malloc/arena.c (ptmalloc_init): Allow MALLOC_CHECK_==0 to
131         disable all checking.
133         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (si_flags): Add
134         support to get this value.
136 2004-09-28  Jakub Jelinek  <jakub@redhat.com>
138         * io/utime.h (utime): Allow second argument to be NULL.
140 2004-09-28  Ulrich Drepper  <drepper@redhat.com>
142         * sysdeps/posix/getaddrinfo.c (gaih_inet): If NAME is a numerical IP
143         address and AI_CANONNAME is set, return copy of NAME as ai_canonname.
145 2004-09-27  Andreas Jaeger  <aj@suse.de>
147         * sysdeps/i386/dl-machine.h (elf_machine_rela_relative): Replace
148         static inline by auto inline, add always_inline attribute.
149         (elf_machine_rel): Likewise.
150         (elf_machine_rela): Likewise.
151         (elf_machine_lazy_rel): Likewise.
152         (elf_machine_lazy_rela): Likewise.
153         (elf_machine_rel_relative): Likewise.
155 2004-09-27  Ulrich Drepper  <drepper@redhat.com>
157         * sunrpc/xdr_intXX_t.c: Add xdr_quad_t and xdr_u_quad_t aliases.
158         * sunrpc/rpc/xdr.h: Declare xdr_quad_t and xdr_u_quad_t.
159         * sunrpc/rpc_parse.c (get_type): Use "quad_t" for TOK_HYPER.
160         Otherwise isvectordef will loop infinitely if typedef hyper int64_t
161         is seen.
162         (unsigned_dec): Use "u_quad_t" for similar reasons.
163         * sunrpc/Versions: Export xdr_quad_t and xdr_u_quad_t.
165 2004-09-27  Roland McGrath  <roland@redhat.com>
167         * sysdeps/generic/bits/waitstatus.h (__WIFSIGNALED): Simplify bit
168         twiddling in last change.
170         * posix/tst-waitid.c (do_test): Add tests for waitpid with WCONTINUED.
172         [BZ #409]
173         * posix/sys/wait.h [__WIFCONTINUED] (WIFCONTINUED): New macro.
174         * stdlib/stdlib.h [__WIFCONTINUED] (WIFCONTINUED): New macro.
175         * sysdeps/generic/bits/waitstatus.h (__W_CONTINUED): New macro.
176         [WCONTINUED] (__WIFCONTINUED): New macro.
177         (__WIFSIGNALED): Rewritten to exclude __W_CONTINUED value, and have no
178         branches.
180         * sysdeps/unix/sysv/linux/waitid.c (do_waitid): Add fifth argument to
181         all three syscall uses, not just one!
183 2004-09-26  Richard Henderson  <rth@redhat.com>
185         * sysdeps/alpha/alphaev6/memcpy.S: Mark .prologue.
186         * sysdeps/unix/alpha/sysdep.h (LEAF, ENTRY): Align entry points
187         to 16 byte boundaries.
189 2004-09-26  Ulrich Drepper  <drepper@redhat.com>
191         * elf/readlib.c (process_file): Before complaining about too-short
192         file, check that it potentially be an ELF file.  Also complain about
193         empty files.  [BZ #151].
195         * scripts/test-installation.pl: Fix ld.so recognition for new
196         LD_TRACE_LOADED_OBJECTS output format.
197         Patch by <jsberg04+computing.glibc@ftml.net>  [BZ #407].
199         * elf/dl-support.c (_dl_non_dynamic_init): Fix cleaning of
200         environment.  [BZ #384]
202         * sunrpc/clnt_udp.c (is_network_up): Use getifaddrs instead of ioctl.
203         * sunrpc/get_myaddr.c (get_myaddress): Likewise.
204         * sunrpc/pmap_clnt.c (__get_myaddress): Likewise.
205         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.  Change interface
206         to avoid buffer overrun and remove now useless parameters.
207         (clnt_broadcast): Adjust caller.  [BZ #381].
209         * sysdeps/generic/s_fdim.c: Handle +inf/+inf
210         * sysdeps/generic/s_fdimf.c: Likewise.
211         * sysdeps/generic/s_fdiml.c: Likewise.
212         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
213         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
214         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
215         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
216         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
217         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
218         * math/libm-test.inc (fdim_test): Add test case.  [BZ #376].
220         * sysdeps/generic/bits/types.h: Fix __SQUAD_TYPE and __UQUAD_TYPE
221         for compilers without __GLIBC_HAVE_LONG_LONG.  [BZ #362]
223         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Remove incorrect
224         requirement on socktype and protocol.
225         (gaih_inet): If numeric port number is given, return records for all
226         possible socket types.
227         * posix/tst-getaddrinfo2.c: New file.
228         * posix/Makefile (tests): Add tst-getaddrinfo2.  [BZ #358]
230 2004-09-25  Ulrich Drepper  <drepper@redhat.com>
232         * locale/loadlocale.c (_nl_intern_locale_data): Recognize LC_CTYPE
233         data where _nl_value_type_LC_CTYPE does not contain the type
234         information.  Add range checks.
235         Reported by John Lumby <johnlumby@hotmail.com> [BZ #356].
237         * libio/vasprintf.c (_IO_vasprintf): Fix condition to decide
238         whether to realloc or not.
239         Reported by Pavel Kankovsky <peak@argo.troja.mff.cuni.cz> [BZ #346].
241         * intl/dcigettext.c (DCIGETTEXT): Protect tfind/tsearch calls.
242         * intl/dcigettext.c (_nl_find_msg): Call _nl_load_domain also if
243         decided < 0.
244         * intl/finddomain.c (_nl_find_domain): Likewise.
245         * intl/loadmsgcat.c (_nl_load_domain): Set decided to 1 only once we
246         are done.  First set to -1 to signal initialization is ongoing.
247         Protect against concurrent callers with recursive lock.
248         * intl/finddomain.c (_nl_find_domain): Protect calls to
249         _nl_make_l10nflist.  [BZ #322]
251         * sysdeps/posix/getaddrinfo.c (getaddrinfo): If determinination of
252         source address fails, initialized source_addr_len field so that
253         duplicate address recognition does not copy junk.
255 2004-09-25  Jakub Jelinek  <jakub@redhat.com>
257         * sysdeps/unix/sysv/linux/i386/setuid.c (__setuid): Remove second
258         result declaration.
260 2004-09-22  Andreas Schwab  <schwab@suse.de>
262         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Adjust whitespace.
264 2004-09-24  Ulrich Drepper  <drepper@redhat.com>
266         * misc/daemon.c (daemon): Don't succeed if /dev/null cannot be
267         opened.
269         * nis/ypclnt.c (do_ypcall): Add one missing unlock.  Simplify the
270         code a bit.
272         * misc/daemon.c (daemon): Define errno in case /dev/null is not
273         the correct device.
275         * nis/ypclnt.c (yp_bind_file): Optimize a bit.  Minimal cleanups.
277 2004-09-23  Andreas Jaeger  <aj@suse.de>
279         * locale/weight.h (findidx): Remove static, it's not supported
280         anymore with GCC 4.0 in a block scope.
281         * locale/weightwc.h (findidx): Likewise.
282         * posix/regcomp.c (seek_collating_symbol_entry): Likewise.
283         (lookup_collation_sequence_value): Likewise.
284         (build_range_exp): Likewise.
285         (build_collating_symbol): Likewise.
286         * iconv/iconvconfig.c (write_output): Likewise.
287         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
289         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Remove
290         static, add always_inline attribute.
291         (elf_machine_rela): Likewise.
292         (elf_machine_lazy_rel): Likewise.
294         * elf/dynamic-link.h (elf_get_dynamic_info): Make static dependend
295         on !RESOLVE so that it's not defined in local scope.
297 2004-09-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
299         * sysdeps/unix/sysv/linux/sh/sysdep.h (INTERNAL_SYSCALL_NCS): Define.
301 2004-09-23  Thorsten Kukuk  <kukuk@suse.de>
303         * sysdeps/unix/sysv/linux/sys/mount.h: Sync MS_RMT_MASK flag
304         and BLK* ioctls with linux kernel headers.
306 2004-09-23  Ulrich Drepper  <drepper@redhat.com>
308         * sysdeps/generic/bits/dlfcn.h: Add RTLD_DEEPBIND.
309         * elf/dl-object.c (_dl_new_object): Add new parameter mode.  If mode
310         has RTLD_DEEPBIND set add local searchlist before global scope.
311         * sysdeps/generic/ldsodefs.h (_dl_new_object): Adjust prototype.
312         * elf/rtld.c: Adjust callers of _dl_new_object.
313         * elf/dl-load.c: Likewise.
314         (_dl_map_object_from_fd): If RTLD_DEEPBIND is used, don't do anything
315         for DF_SYMBOLIC.
316         * elf/dl-open.c (dl_open_writer): Pass RTLD_DEEPBIND flag on to
317         _dl_map_object_deps.
318         * elf/tst-deep1.c: New file.
319         * elf/tst-deep1mod1.c: New file.
320         * elf/tst-deep1mod2.c: New file.
321         * elf/tst-deep1mod3.c: New file.
322         * elf/Makefile: Add rules to build and run new tests.
324         * elf/dl-deps.c: Pretty printing.
326 2004-09-23  Jakub Jelinek  <jakub@redhat.com>
328         * sysdeps/unix/alpha/sysdep.h (inline_syscall[0-6]): Change name
329         argument to numbers from syscall names.
330         (INLINE_SYSCALL1): Pass __NR_##name to inline_syscall##nr.
331         (INTERNAL_SYSCALL_NCS): Renamed from...
332         (INTERNAL_SYSCALL_1): ... this.  Use INTERNAL_SYSCALL_NCS.
333         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
334         (INTERNAL_SYSCALL_NCS): Define.
335         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
336         (INTERNAL_SYSCALL_NCS): Likewise.
337         * sysdeps/unix/sysv/linux/sparc/sysdep.h (inline_syscall[0-6]):
338         Change name argument to numbers from syscall names.
339         (INLINE_SYSCALL, INTERNAL_SYSCALL): Adjust.
340         (INTERNAL_SYSCALL_NCS): Define.
342 2004-09-22  Ulrich Drepper  <drepper@redhat.com>
344         * malloc/malloc.c (malloc_printerr): Use syslog if writev failed.
346         * string/string.h: Add __nonnull annotations.
347         * stdlib/stdlib.h: Likewise.
349 2004-09-20  H.J. Lu  <hongjiu.lu@intel.com>
351         * sysdeps/unix/sysv/linux/ia64/sysdep.h (DO_INLINE_SYSCALL):
352         Renamed to ...
353         (DO_INLINE_SYSCALL_NCS): This.
354         (DO_INLINE_SYSCALL): New.
355         (INLINE_SYSCALL): Updated.
356         (INTERNAL_SYSCALL_NCS): Updated.
358 2004-09-21  Ulrich Drepper  <drepper@redhat.com>
360         * elf/sprof.c (load_shobj): Add support for reading symbol table
361         from debuginfo file.
363         * elf/ldd.bash.in: Fix syntax errors.
365 2004-09-20  Ulrich Drepper  <drepper@redhat.com>
367         * sysdeps/unix/sysv/linux/dl-execstack.c
368         (_dl_make_stack_executable): Remove some duplication.
370         * nscd/nscd.c (options): Mark S option as hidden.
371         (parse_opt): When S option is used, print warning message.
372         * nscd/grpcache.c (adgrptbyX): Don't handle secure mode.
373         * nscd/hstcache.c (addhstbyX): Don't handle secure mode.
374         * nscd/aicache.c (addhstaiX): Don't handle secure mode.
375         * nscd/pwdcache.c (addpwbyX): Don't handle secure mode.
377 2004-09-20  Roland McGrath  <roland@frob.com>
379         * elf/dl-load.c (__stack_prot): Only use PROT_GROWSUP/PROT_GROWSDOWN
380         in initializer #if defined.
382 2004-09-18  Paul Eggert  <eggert@cs.ucla.edu>
384         [BZ #391]
385         * stdlib/getsubopt.c: Merge fixes from gnulib.
386         (__strchrnul) [!_LIBC]: Define and include "strchrnul.c".
387         (getsubopt): Use prototypes, not K&R style.
388         Fix bug: memcmp(A,B,N) was being invoked on a memory block B
389         whose size might be smaller than N.  Use strncmp to avoid the bug.
391 2004-09-20  Ulrich Drepper  <drepper@redhat.com>
393         * configure.in: If selinux has not explictly been requested, don't
394         comment on it missing.
396         * elf/dl-load.c: Define __stack_prot.
397         * sysdeps/unix/sysv/linux/dl-execstack.c: Don't define
398         __stack_prot here, just declare it.
400 2004-09-20  Jakub Jelinek  <jakub@redhat.com>
402         * configure.in (libc_cv_z_relro): Only set to yes if linker script
403         contains DATA_SEGMENT_RELRO_END.
405 2004-09-20  Ulrich Drepper  <drepper@redhat.com>
407         * elf/dl-load.c (_dl_map_object_from_fd): Add some error checking.
408         Reorder code slightly.
409         * elf/rtld.c (dl_main): No need to check whether l_info[DT_HASH]
410         is non-null, _dl_setup_hash will do that.
412 2004-09-19  Ulrich Drepper  <drepper@redhat.com>
414         * sysdeps/unix/sysv/linux/setegid.c [HAVE_PTR__NPTL_SETXID]: Call
415         callback to set IDs in all other threads as well.
416         * sysdeps/unix/sysv/linux/seteuid.c: Likewise.
417         * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise.
418         * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise.
419         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
420         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
421         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
422         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
423         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
424         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
425         * sysdeps/unix/sysv/linux/setuid.c: New file.
426         * sysdeps/unix/sysv/linux/setgid.c: New file.
427         * sysdeps/unix/sysv/linux/setreuid.c: New file.
428         * sysdeps/unix/sysv/linux/setregid.c: New file.
429         * sysdeps/unix/sysv/linux/setresuid.c: New file.
430         * sysdeps/unix/sysv/linux/setresgid.c: New file.
431         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define INTERNAL_SYSCALL_NCS.
432         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
433         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
434         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
435         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
436         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: Use x86 version.
437         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: Likewise.
438         * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: New file.
439         * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: New file.
440         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Remove setresgid
441         and setresuid.
442         * nscd/aicache.c: Use pthread_seteuid_np instead of seteuid.
443         * nscd/grpcache.c: Likewise.
444         * nscd/hstcache.c: Likewise.
445         * nscd/pwdcache.c: Likewise.
447         * resolv/res_mkquery.c (res_nmkquery): Fix typo.
449 2004-09-18  Ulrich Drepper  <drepper@redhat.com>
451         * sysdeps/unisx/sysv/linux/dl-execstack.c: Get protection flag
452         from memory.
453         * elf/dl-load.c (_dl_map_object_from_fd): Add PROT_EXEC flag to
454         __stack_flags.
456         * sysdeps/posix/getaddrinfo.c (gaih_inet): Do not use
457         gethostbyname3_r if we are not looking for the canonical name.
459         * resolv/res_mkquery.c (res_nmkquery): Randomize request ID every
460         time.
462 2004-09-18  Roland McGrath  <roland@redhat.com>
464         * sysdeps/unix/sysv/linux/waitid.c (do_waitid): Pass fifth argument to
465         system call.
467 2004-09-17  Ulrich Drepper  <drepper@redhat.com>
469         * include/link.h (struct link_map): Add l_used element.
470         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_UNUSED.
471         * elf/rtld.c (process_dl_debug): Recognize unused.
472         (dl_main): When unused debug flag is set check for unused direct
473         dependencies.
474         When printing dependencies and SONAME starts with /, omit the SONAME =>
475         part.
476         * elf/dl-lookup.c (_dl_lookup_symbol_x): Mark object in which the
477         symbol has been found as used.
478         * elf/ldd.bash.in: Add -u option.
480 2004-09-18  Jakub Jelinek  <jakub@redhat.com>
482         * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread):
483         Do nothing if __NR_set_tid_address is not defined.  [BZ #390]
485 2004-09-17  Ulrich Drepper  <drepper@redhat.com>
487         * sysdeps/posix/getaddrinfo.c: Use gethostbyname3_r NSS function
488         in case it is available.
490 2004-09-17  Jakub Jelinek  <jakub@redhat.com>
492         * nscd/nscd.c (parse_opt): Write arg string instead of (void *)
493         key to the socket.
495 2004-09-17  Ulrich Drepper  <drepper@redhat.com>
497         * misc/sys/cdefs.h: Define __nonnull using nonnull function attribute
498         for gcc 3.3 and higher.
499         * io/fcntl.h: Add __nonnull where appropriate.
500         * io/ftw.h: Likewise.
501         * io/utime.h: Likewise.
502         * io/sys/poll.h: Likewise.
503         * io/sys/sendfile.h: Likewise.
504         * io/sys/stat.h: Likewise.
505         * io/sys/statfs.h: Likewise.
506         * io/sys/statvfs.h: Likewise.
507         * posix/unistd.h: Likewise.
508         * catgets/nl_types.h: Likewise.
509         * crypt/crypt.h: Likewise.
510         * debug/execinfo.h: Likewise.
512 2004-09-16  Ulrich Drepper  <drepper@redhat.com>
514         * posix/glob.h: Remove cruft to make header usable outside glibc.
515         The maintenance headache is too big.
517         * configure.in: Add test for required SELinux features.
518         * config.make.in: Add have-selinux entry.
519         * config.h.in: Add HAVE_SELINUX entry.
520         * nscd/Makefile (nscd-modules): Add selinux.
521         (CFLAGS-selinux.c): Add -fpie.
522         Define selinux-LIBS and use in link line.
523         * nscd/connections.c (handle_request): Check access SELinux permissions
524         before processing request.
525         * nscd/nscd.c (main): Initialize selinux_enabled and stop avc thread.
526         * nscd/nscd_stat.c: Transmit and print AVC statistics.
527         * nscd/selinux.c: New file.
528         * nscd/selinux.h: New file.
529         Patch mostly by Matthew Rickard <mjricka@epoch.ncsc.mil>.
531 2004-09-16  Jakub Jelinek  <jakub@redhat.com>
533         * nscd/nscd_helper.c (__nscd_unmap, get_mapping): Use __munmap
534         instead of munmap.
536         * nscd/Makefile (CFLAGS-aicache.c): Set to -fpie.
538 2004-09-16  Thorsten Kukuk  <kukuk@suse.de>
540         * sysdeps/posix/getaddrinfo.c (gaih_inet): Check
541         __nss_not_use_nscd_hosts variable if nscd should be used or not.
543 2004-09-16  Ulrich Drepper  <drepper@redhat.com>
545         * nscd/nscd_proto.h: Define NSS_NSCD_RETRY.
546         Add __nscd_getai prototype.
547         * nss/getXXbyYY_r.c: Remode definition of NSS_NSCD_RETRY.
548         * nscd/nscd-client.h: Remove __nscd_getai prototype.
549         * nscd/nscd_getai.c: Include nscd_proto.h.
551         * elf/ldd.bash.in: Add support for SELinux environments.
552         Patch by Stephen Smalley <sds@epoch.ncsc.mil>.
554 2004-09-16  Roland McGrath  <roland@redhat.com>
556         * configure.in (--with-headers): Let argument contain a : separated
557         list of directories to use, not just one.
558         * configure: Regenerated.
560 2004-09-15  Richard Henderson  <rth@redhat.com>
562         * sysdeps/alpha/fpu/libm-test-ulps: Update.
563         * scripts/data/c++-types-alpha-linux-gnu.data: New file.
565 2004-09-15  Ulrich Drepper  <drepper@redhat.com>
567         * nscd/aicache.c: Prefer using gethostbyname3_r NSS callback to also
568         get ttl and canonical name.  Use these two values.
569         * resolv/Versions: Export _nss_dns_gethostbyname3_r from libnss_dns.
570         * resolv/nss_dns/dns-host.c (getanswer_r): Take two new parameters.
571         If nonnull fill with TTL and pointer to canonical name respectively.
572         (_nss_dns_gethostbyaddr_r): Pass NULL in new parameters of getanswer_r.
573         (_nss_dns_gethostbyname2_r): Just wrapper around
574         _nss_dns_gethostbyname3_r.
575         (_nss_dns_gethostbyname3_r): Renamed from _nss_dns_gethostbyname2_r.
576         Take two new parameters which as passed to getanswer_r.
578         * nscd/Makefile (rountines): Add nscd_getai.
579         (nscd-modules): Add aicache.
580         * nscd/aicache.c: New file.
581         * nscd/nscd_getai.c: New file.
582         * nscd/cache.c (prune_cache): Handle GETAI request type.
583         * nscd/connections.c: Add GETAI support in request handling.
584         * nscd/nscd-client.h (request_type): Add GETAI.
585         Define ai_response_header and struct nscd_ai_result types.
586         (struct datahead): Add aidata field.
587         Declare __nscd_getai.
588         * nscd/nscd.c: Add getaddrinfo definition to catch problems.
589         * nscd/nscd.h: Declare addhstai and readdhstai.
591         * sysdeps/posix/getaddrinfo.c: Add support for using cached results.
592         * posix/Makefile (CFLAGS-getaddrinfo.c): Add -DUSE_NSCD.
594         * nscd/nscd-client.h  (struct datahead): Use uint8_t instead of bool.
596 2004-09-14  Ulrich Drepper  <drepper@redhat.com>
598         * misc/sys/cdefs.h: Remove debugging text from __P and __PMT.
600 2004-09-13  Ulrich Drepper  <drepper@redhat.com>
602         * misc/sys/cdefs.h: Restore old definition of __P.
603         * csu/munch.awk: Remove uses of __P and __PMT.
604         * gmon/gmon.c: Likewise.
605         * hesiod/hesiod.h: Likewise.
606         * include/stdio.h: Likewise.
607         * io/fts.c: Likewise.
608         * libio/genops.c: Likewise.
609         * libio/libioP.h: Likewise.
610         * libio/fileops.c: Likewise.
611         * libio/iolibio.h: Likewise.
612         * libio/libio.h: Likewise.
613         * libio/memstream.c: Likewise.
614         * libio/oldfileops.c: Likewise.
615         * libio/oldstdfiles.c: Likewise.
616         * libio/iopopen.c: Likewise.
617         * libio/vsnprintf.c: Likewise.
618         * libio/vswprintf.c: Likewise.
619         * libio/wgenops.c: Likewise.
620         * libio/oldiopopen.c: Likewise.
621         * locale/programs/xmalloc.c: Likewise.
622         * locale/programs/xstrdup.c: Likewise.
623         * malloc/mtrace.c: Likewise.
624         * misc/getttyent.c: Likewise.
625         * misc/getusershell.c: Likewise.
626         * nis/rpcsvc/ypupd.h: Likewise.
627         * posix/fnmatch.h: Likewise.
628         * posix/glob.h: Likewise.
629         * resolv/arpa/nameser.h: Likewise.
630         * resolv/gethnamaddr.c: Likewise.
631         * resolv/resolv.h: Likewise.
632         * resolv/inet_net_ntop.c: Likewise.
633         * resolv/inet_net_pton.c: Likewise.
634         * resolv/res_init.c: Likewise.
635         * resolv/nss_dns/dns-network.c: Likewise.
636         * stdio-common/vfprintf.c: Likewise.
637         * stdio-common/reg-printf.c: Likewise.
638         * sysdeps/generic/chflags.c: Likewise.
639         * sysdeps/generic/fchflags.c: Likewise.
640         * sysdeps/generic/glob.c: Likewise.
641         * sysdeps/generic/printf_fphex.c: Likewise.
642         * sysdeps/generic/memcmp.c: Likewise.
643         * sysdeps/generic/memcopy.h: Likewise.
644         * sysdeps/generic/morecore.c: Likewise.
645         * sysdeps/generic/sstk.c: Likewise.
646         * sysdeps/posix/sigvec.c: Likewise.
647         * sysdeps/posix/ttyname_r.c: Likewise.
648         * sysdeps/standalone/arm/bits/errno.h: Likewise.
649         * sysdeps/standalone/standalone.h: Likewise.
650         * sysdeps/standalone/i386/force_cpu386/brdinit.c: Likewise.
651         * sysdeps/standalone/i386/force_cpu386/_exit.c: Likewise.
652         * sysdeps/unix/arm/start.c: Likewise.
653         * sysdeps/unix/bsd/sigaction.c: Likewise.
654         * sysdeps/unix/bsd/sun/m68k/sigtramp.c: Likewise.
655         * sysdeps/unix/bsd/sun/sparc/sigtramp.c: Likewise.
656         * sysdeps/unix/bsd/sun/sunos4/wait4.c: Likewise.
657         * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: Likewise.
658         * sysdeps/unix/bsd/ultrix4/sysconf.c: Likewise.
659         * sysdeps/unix/sparc/start.c: Likewise.
660         * sysdeps/unix/sysv/getdents.c: Likewise.
661         * sysdeps/unix/sysv/irix4/fpathconf.c: Likewise.
662         * sysdeps/unix/sysv/irix4/getgroups.c: Likewise.
663         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
664         * sysdeps/unix/sysv/irix4/getrusage.c: Likewise.
665         * sysdeps/unix/sysv/irix4/pathconf.c: Likewise.
666         * sysdeps/unix/sysv/irix4/setgroups.c: Likewise.
667         * sysdeps/unix/sysv/irix4/sigtramp.c: Likewise.
668         * sysdeps/unix/sysv/irix4/start.c: Likewise.
669         * sysdeps/unix/sysv/irix4/sysconf.c: Likewise.
670         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c: Likewise.
671         * sysdeps/unix/sysv/sco3.2.4/getgroups.c: Likewise.
672         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
673         * sysdeps/unix/sysv/sysv4/__setpgid.c: Likewise.
674         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
675         * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
676         * sysdeps/unix/sysv/sysv4/sethostname.c: Likewise.
677         * sysdeps/unix/sysv/sysv4/setsid.c: Likewise.
678         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
679         * sysdeps/unix/sysv/sysv4/waitpid.c: Likewise.
680         * sysdeps/unix/sysv/sysv4/solaris2/getdents.c: Likewise.
681         * time/tzset.c: Likewise.
682         * time/strftime_l.c: Likewise.
683         * time/strptime_l.c: Likewise.
684         * crypt/md5.h: Likewise.
686 2004-09-13  Andreas Jaeger  <aj@suse.de>
688         * configure.in: Support GCC 4.x.
689         * configure: Regenerated.
691 2004-09-13  Thorsten Kukuk  <kukuk@suse.de>
693         * nscd/nscd_stat.c: Don't access dbs[cnt].head for disabled services.
695         * nscd/nscd.init: Fix path to socket.
697 2004-09-12  Ulrich Drepper  <drepper@redhat.com>
699         * nscd/nscd_helper.c (get_mapping): Correctly check cmsg length.
700         Avoid file descriptor leak in case of size mismatch.
702         * nscd/nscd-client.h: Fix database structure layout for biarch.
703         * nscd/mem.c (gc): Add casts to avoid warnings.
705         * nss/getent.c: Don't preconstruct help message.  Do it only when
706         needed.
708         * locale/programs/locale.c: Simplify help message printing.
710 2004-09-12  Roland McGrath  <roland@frob.com>
712         * sysdeps/mach/hurd/i386/init-first.c (init1) [! SHARED]: Add decls
713         missing in last change.
715 2004-09-11  Thorsten Kukuk  <kukuk@suse.de>
717         * nis/nss_compat/compat-grp.c: Check that buflen is greater zero
718         before writing data into the buffer with negative offset.
719         * nis/nss_compat/compat-initgroups.c: Likewise.
720         * nis/nss_compat/compat-pwd.c: Likewise.
721         * nis/nss_compat/compat-spwd.c Likewise.
723 2004-09-12  Ulrich Drepper  <drepper@redhat.com>
725         * misc/syslog.c (vsyslog): Fix copying of PID in case of
726         out-of-memory situation.  [BZ #365].
728         * sysdeps/alpha/fpu/bits/mathinline.h: Use __NTH instead of
729         __THROW in inline function definitions.
731         * posix/spawn.h [__USE_GNU]: Define POSIX_SPAWN_USEVFORK.
732         * posix/spawnattr_setflags.c: Check whether any unknown bit is set
733         in FLAGS parameter and fail if this is the case.
734         * sysdeps/posix/spawni.c: Use vfork if POSIX_SPAWN_USEVFORK flag is
735         set.
737         * nscd/pwdcache.c (cache_addpw): Sync also negative results to disk.
738         * nscd/grpcache.c (cache_addgr): Likewise.
739         * nscd/hstcache.c (cache_addhst): Likewise.
741 2004-09-11  Roland McGrath  <roland@frob.com>
743         * sysdeps/mach/hurd/i386/init-first.c (init1) [! SHARED]:
744         Set _dl_phdr and _dl_phnum.
745         (init1): When bootstrap task, bail early and never examine *D.
747 2004-09-11  Alfred M. Szmidt  <ams@kemisten.nu>
749         * sysdeps/mach/hurd/i386/tls.h (__i386_set_gdt) [!HAVE_I386_SET_GDT]:
750         Cast THR, SEL and DESC to `void'.
752 2004-09-11  Ulrich Drepper  <drepper@redhat.com>
754         * nscd/connections.c (nscd_run): Call setup_thread only for enabled
755         databases.
757         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Use __NTH for __cmsg_nxthdr.
759 2004-09-10  Ulrich Drepper  <drepper@redhat.com>
761         * nscd/nscd.c (pagesize_m1): New variable.
762         (main): Initialize it.
763         * nscd/nscd.h: Declare pagesize_m1.
764         * nscd/hstcache.c: Pass correctly aligned address to msync.
765         * nscd/grpcache.c: Likewise.
766         * nscd/pwdcache.c: Likewise.
768 2004-09-10  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
770         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Decrement
771         __nwaiters.  If pthread_cond_destroy has been called and this is
772         the last waiter, signal pthread_cond_destroy caller and avoid
773         using the pthread_cond_t structure after unlock.
774         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
776 2004-09-10  Ulrich Drepper  <drepper@redhat.com>
778         * sysdeps/unix/sysv/linux/kernel-features.h: Don't define
779         __ASSUME_CLONE_STOPPED.
781 2004-09-10  Jakub Jelinek  <jakub@redhat.com>
783         * misc/sys/cdefs.h (__REDIRECT_NTH): Change order of __THROW and
784         __asm__ for C++.  [BZ #377]
786 2004-09-10  Ulrich Drepper  <drepper@redhat.com>
788         * nscd/nscd_stat.c: Improve output by also printing .shared and
789         .persistent.
791         * nscd/connections.c: Allow cache sharing to be really disabled.
793 2004-09-10  Jakub Jelinek  <jakub@redhat.com>
795         * malloc/malloc.c (_int_free): Only do arena boundary check for
796         contiguous arenas.
798 2004-09-10  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
800         * stdlib/longlong.h [__M32R__] (add_ssaaaa, sub_ddmmss): Fix broken
801         instruct operands.
802         * elf/elf.h: Add R_M32R_* relocs.
804 2004-09-09  Ulrich Drepper  <drepper@redhat.com>
806         * misc/sys/cdefs.h: Despite what the gcc manual says, gcc 3.2
807         seems not to support the nothrow attribute.  Use it only for gcc
808         3.3 and higher.
810         * malloc/hooks.c (top_check): Print top chunk corruption as normal
811         error message.
813         * malloc/malloc.c (malloc_printerr): Don't make informational
814         message look like error message.
816 2004-09-09  Andreas Jaeger  <aj@suse.de>
818         * nscd/Makefile (CFLAGS-nscd_setup_thread.c): Set to -fpie.
820 2004-09-08  Ulrich Drepper  <drepper@redhat.com>
822         * sysdeps/unix/sysv/linux/bits/socket.h (__SCM_CONNECT): Removed.
824         * malloc/malloc.c (_int_free): Add inexpensive double free and
825         memory corruption tests.
826         (malloc_printf_nc): Renamed to malloc_printerr.  Second parameter
827         is no format string anymore.  Don't use stdio.  Adjust all callers.
828         * malloc/hooks.c: Adjust malloc_printf_nc callers.
830 2004-09-08  Roland McGrath  <roland@redhat.com>
832         * malloc/mcheck.c: Don't use __P.
833         Use prototypes definitions for static functions.
835 2004-09-08  Ulrich Drepper  <drepper@redhat.com>
837         * sysdeps/ia64/fpu/bits/mathinline.h: Use __NTH instead of __THROW.
839 2004-09-08  Ulrich Drepper  <drepper@redhat.com>
840             Jakub Jelinek  <jakub@redhat.com>
842         * nscd/nscd-client.h: Add a few #includes.
844         * nscd/Makefile (nscd-modules): Add nscd_setup_thread.
845         * nscd/connections.c (nscd_run): Call setup_thread for maintenance
846         threads.
847         * nscd/nscd-client.h (struct database_pers_head): Add
848         nscd_certainly_running field.
849         * nscd/nscd.h: Declare setup_thread.
850         * nscd/nscd_helper.c (__nscd_get_map_ref): Avoid the time test if
851         nscd_certainly_running is nonzero.
852         * sysdeps/generic/nscd_setup_thread.c: New file.
853         * sysdeps/unix/sysv/linux/nscd_setup_thread.c: New file.
855 2004-09-08  Ulrich Drepper  <drepper@redhat.com>
857         * nscd/connections.c: Implement r/o sharing of nscd's cache with client
858         processes via shared memory.
859         * nscd/nscd-client.h: Likewise.
860         * nscd/nscd.h: Likewise.
861         * nscd/nscd_conf.c: Likewise.
862         * nscd/nscd_getgr_r.c: Likewise.
863         * nscd/nscd_getpw_r.c: Likewise.
864         * nscd/nscd_gethst_r.c: Likewise.
865         * nscd/nscd.conf: Add new config parameters.
866         * nscd/Makefile (aux): Add nscd_helper.
867         * nscd/nscd_helper.c: New file.
868         * nscd/mem.c (gc): Indicate beginning and end of the gc cycle.
870         * nscd/hstcache.c: Simplify a lot.  We cache only the request itself,
871         no derived information.
872         * connections.c (nscd_init): Fix bug in testing size of the persistent.
874         * nis/Makefile (aux): Add nis_hash.
875         * nis/nis_hash.c: New file.  Split out from nis_util.c.
876         * nis/nis_util.c: Move __nis_hash code in separate file.
878         * csu/tst-atomic.c: Improve atomic_increment_val test which would
879         not have found a ppc bug.
881         * sysdeps/s390/fpu/bits/mathinline.h: Remove unnecessary includes.
883         * malloc/arena.c: Remove __MALLOC_P uses.
884         * malloc/malloc.c: Likewise.
886         * malloc/mtrace.c: Remove __P uses.
887         * malloc/mcheck-init.c: Likewise.
889 2004-09-07  Jakub Jelinek  <jakub@redhat.com>
891         * sysdeps/powerpc/powerpc64/configure.in: New file.
892         * config.h.in (USE_PPC64_OVERLAPPING_OPD): Add.
893         * configure.in (HAVE_ASM_GLOBAL_DOT_NAME): Remove.
894         * sysdeps/powerpc/powerpc64/sysdep.h: Formatting.
895         (OPD_ENT, BODY_LABEL, ENTRY_1, ENTRY_2, END_2, DOT_PREFIX,
896         BODY_PREFIX): Define.
897         (ENTRY, DOT_LABEL, END, TRACEBACK, END_GEN_TB, EALIGN): Support
898         HAVE_ASM_GLOBAL_DOT_NAME or no dot symbols,
899         USE_PPC64_OVERLAPPING_OPD or never overlapping .opd entries.
900         * sysdeps/powerpc/powerpc64/dl-machine.h: Include sysdep.h.
901         (TRAMPOLINE_TEMPLATE, RTLD_START): Use the new sysdep.h macros.
903 2004-09-07  Ulrich Drepper  <drepper@redhat.com>
905         * malloc/malloc.h: Don't define __THROW if it is already defined.
907         * sysdeps/powerpc/bits/atomic.h (atomic_increment): Define.
908         (atomic_decrement): Define.
910         * sysdeps/powerpc/bits/atomic.h: Implement atomic_increment_val and
911         atomic_decrement_val.
912         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
913         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
915         * csu/tst-atomic.c (do_test): Add tests of atomic_increment_val
916         and atomic_decrement_val.
918         * include/atomic.h: Define atomic_increment_val, atomic_decrement_val,
919         and atomic_delay is not already defined.
920         * sysdeps/i386/i486/bits/atomic.h: Define atomic_delay.
921         * sysdeps/x86_64/bits/atomic.h: Likewise.
923         * miscd/sys/cdefs.h (__NTH): New macro.
924         (__THROW): Define using nothrow attribute for C code and gcc >= 3.2.
925         (__REDIRECT_NTH): New macro.
926         * argp/argp.h: Use __NTH and __REDIRECT_NTH where necessary.
927         * ctype/ctype.h: Likewise.
928         * dirent/dirent.h: Likewise.
929         * io/fcntl.h: Likewise.
930         * io/sys/sendfile.h: Likewise.
931         * io/sys/stat.h: Likewise.
932         * io/sys/statfs.h: Likewise.
933         * io/sys/statvfs.h: Likewise.
934         * libio/bits/stdio.h: Likewise.
935         * misc/sys/mman.h: Likewise.
936         * posix/unistd.h: Likewise.
937         * resource/sys/resource.h: Likewise.
938         * rt/aio.h: Likewise.
939         * signal/signal.h: Likewise.
940         * stdlib/stdlib.h: Likewise.
941         * string/argz.h: Likewise.
942         * string/string.h: Likewise.
943         * sysdeps/generic/inttypes.h: Likewise.
944         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
945         * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
946         * sysdeps/s390/fpu/bits/mathinline.h: Likewise.
947         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
948         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
949         * sysdeps/unix/sysv/linux/bits/sys/sysmacros.h: Likewise.
950         * wcsmbs/wchar.h: Likewise.
952         * sysdeps/generic/glob.c: Use __PMT isntead of __P where appropriate.
954         * resolv/gethnamaddr.c (getanswer): Remove __P use in variable
955         definition.
957         * io/sys/poll.h: Remove __THROW from poll prototype, it's a
958         cancellation point.
960         * io/fts.c (fts_open): Remove uses of __P.
962         * include/stdlib.h: No need to use __THROW in this header.
964 2004-09-06  Roland McGrath  <roland@frob.com>
966         * sysdeps/mach/hurd/dl-sysdep.c (__writev): Does use assert on FD
967         validity, since __assert_fail gets to here anyway.  Just fail.
969 2004-09-06  Ulrich Drepper  <drepper@redhat.com>
971         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix problem with
972         AF_UNSPEC lookup with AI_CANONNAME of name which has only IPv6
973         addresses.
975 2004-09-05  Richard Henderson  <rth@redhat.com>
977         * sysdeps/alpha/fpu/fraiseexcpt.c: Remove file.
978         * sysdeps/unix/sysv/linux/kernel-features.h
979         (__ASSUME_IEEE_RAISE_EXCEPTION): New.
980         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.c: New file.
981         * sysdeps/unix/sysv/linux/alpha/kernel_sysinfo.h: New file.
982         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Use it.
983         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
985 2004-09-05  Richard Henderson  <rth@redhat.com>
987         * sysdeps/alpha/div.S: Save and restore FPCR around fp operations.
988         * sysdeps/alpha/divl.S, sysdeps/alpha/divq.S, sysdeps/alpha/divqu.S,
989         sysdeps/alpha/ldiv.S, sysdeps/alpha/reml.S, sysdeps/alpha/remq.S,
990         sysdeps/alpha/remqu.S: Likewise.
991         * sysdeps/alpha/div_libc.h (FRAME): Increase to 64.
993 2004-09-05  Ulrich Drepper  <drepper@redhat.com>
995         * nscd/cache.c (cache_add): Correctly log GETHOSTBYADDR and
996         GETHOSTBYADDRv6 requests.
998 2004-09-04  Ulrich Drepper  <drepper@redhat.com>
1000         * nscd/pwdcache.c (cache_addpw): Use correct key length in
1001         cache_add calls.
1002         * nscd/grpcache.c (cache_addgr): Likewise.
1004 2004-09-03  Alfred M. Szmidt  <ams@kemisten.nu>
1006         * sysdeps/mach/hurd/i386/tls.h (THREAD_DTV): Changed type of _DTV
1007         to `dtv_t *'.
1009 2004-09-03  Ulrich Drepper  <drepper@redhat.com>
1011         * nscd/nscd.c (parse_opt): Use writev instead of two write for
1012         invalidate command.
1014 2004-09-02  Ulrich Drepper  <drepper@redhat.com>
1016         * nscd/connections.c (nscd_run): Check early for invalid request types.
1018 2004-09-02  Roland McGrath  <roland@frob.com>
1020         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): New macro.
1021         (INSTALL_NEW_DTV, THREAD_DTV): Rewritten to fetch the right word.
1022         (THREAD_SELF): New macro.
1024 2004-09-02  Steven Munroe  <sjmunroe@us.ibm.com>
1026         [BZ #357]
1027         * stdlib/tst-setcontext.c (test_stack): Added test for stack clobber.
1028         (main): Call test_stack.
1029         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1030         (__getcontext): Push stack frame then save parms in local frame.
1031         Improve instruction scheduling.
1032         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1033         (__swapcontext): Likewise.
1035 2004-09-01  Andreas Schwab  <schwab@suse.de>
1037         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h [g++ >= 3.5]: Use
1038         __builtin_offsetof.
1040 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
1042         [BZ #361]
1043         * posix/fnmatch_loop.c (FCT): For backslash between brackets, branch
1044         to normal_bracket after fetching the next character.
1045         * posix/tst-fnmatch.input: Add 25 new tests.
1046         Reported by Markus Oberhumer <markus@oberhumer.com>.
1048 2004-09-01  Ulrich Drepper  <drepper@redhat.com>
1050         * elf/rtld.c (dl_main): First check existence of ld.so.preload
1051         with access.
1053 2004-09-01  Roland McGrath  <roland@redhat.com>
1055         * sysdeps/unix/sysv/linux/bits/waitflags.h
1056         (WSTOPPED, WEXITED, WCONTINUED, WNOWAIT): New macros.
1057         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_WAITID_SYSCALL):
1058         New macro.
1059         * sysdeps/unix/sysv/linux/waitid.c: New file.  Use new syscall when
1060         available, or fall back to the waitpid-based generic code.
1062 2004-08-14  Alfred M. Szmidt  <ams@kemisten.nu>
1064         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Let gcc
1065         clobber the `ebp' register.
1066         * sysdeps/mach/hurd/i386/Makefile (CFLAGS-init-first.c): Removed.
1067         Reverts change from 2004-05-07 by Jeroen Dekkers.
1069         * sysdeps/mach/hurd/i386/init-first.c (init): Changed the type of
1070         NEWSP from `void *' to `int *'.  Changed all casts accordingly.
1072 2004-08-31  Jakub Jelinek  <jakub@redhat.com>
1074         * wcsmbs/wcsmbsload.c (__wcsmbs_getfct): Move attribute_hidden
1075         before return type.
1076         * locale/localename.c (__current_locale_name): Likewise.
1078 2004-08-30  Roland McGrath  <roland@frob.com>
1080         * scripts/extract-abilist.awk: If `lastversion' variable defined, omit
1081         later sets from output.
1082         * Makerules (check-abi): Pass option to set that with value of
1083         LIB-abi-frozen variable if one is set.
1085         * abilist/libcidn.abilist: New file (empty).
1087 2004-08-30  Jakub Jelinek  <jakub@redhat.com>
1089         * posix/bits/posix1_lim.h (_POSIX_CHILD_MAX, _POSIX_OPEN_MAX): If
1090         not __USE_XOPEN2K, use the Unix98 mandated values.
1092 2004-08-27  Roland McGrath  <roland@redhat.com>
1094         * configure.in (usetls): Default to yes.
1095         * configure: Regenerated.
1097 2004-08-26  Roland McGrath  <roland@redhat.com>
1099         * configure.in (add_ons_automatic): New variable, set to yes or no
1100         indicating --enable-add-ons with no explicit list.
1101         (running add-on fragments): Allow a fragment to modify $libc_add_on
1102         and have that affect its place in the list of add-ons to use.
1103         * configure: Regenerated.
1105 2004-08-26  Ulrich Drepper  <drepper@redhat.com>
1107         * nscd/cache.c: Major rewrite.  The data is now optionally kept in
1108         a mmaped memory region which is automatically mirrored on disk.
1109         This implements persistent data storage.  The Memory handled
1110         needed to be completely revamped, it now uses a garbage collection
1111         mechanism instead of malloc.
1112         * nscd/connections.c: Likewise.
1113         * nscd/nscd.c: Likewise.
1114         * nscd/nscd.h: Likewise.
1115         * nscd/nscd_conf.c: Likewise.
1116         * nscd/nscd_stat.c: Likewise.
1117         * nscd/grpcache.c: Likewise.
1118         * nscd/hstcache.c:: Likewise.
1119         * nscd/pwdcache.c:: Likewise.
1120         * nscd/Makefile: Add rules to build mem.c.
1121         * nscd/mem.c: New file.
1122         * nscd/nscd.conf: Describe new configuration options.
1124 2004-08-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1126         * sysdeps/unix/sysv/linux/mips/pread.c: Include sgidefs.h only if
1127         NO_SGIDEFS_H isn't defined.
1128         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1129         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1131         * sysdeps/unix/sysv/linux/sh/pread.c: Define NO_SGIDEFS_H and
1132         _MIPS_SIM.
1133         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
1134         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
1135         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
1137 2004-08-26  Ulrich Drepper  <drepper@redhat.com>
1139         * nscd/connections.c (nscd_run): atomic_increment was not missing.
1141         * sysdeps/gnu/Makefile (libdl-sysdep_routines): Don't add eval.
1142         Patch by Greg Schafer.
1144 2004-08-25  Richard Henderson  <rth@redhat.com>
1146         * sysdeps/alpha/elf/start.S (_start): Use $15 as frame unwind
1147         instead of $31.  Zero $15.
1148         * sysdeps/unix/sysv/linux/alpha/clone.S (thread_start): Likewise.
1150 2004-08-25  Ulrich Drepper  <drepper@redhat.com>
1152         * sysdeps/powerpc/powerpc64/bits/atomic.h
1153         (__arch_compare_and_exchange_bool_32_acq): Fix case where oldval
1154         is negative.
1155         (__arch_compare_and_exchange_bool_32_rel): Likewise.
1157         * nscd/connections.c: Make socket nonblocking so that threads
1158         don't get stuck on accept.  Fix locking.
1160         * nscd/grpcache.c (cache_addgr): Use copy of original key in hash
1161         entry with alternative key.
1162         * nscd/pwdcache.c (cache_addpw): Likewise.
1164 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
1166         * sysdeps/mips/dl-machine.h (_dl_start_user): Don't set
1167         __libc_stack_end.
1169 2004-08-23  Ulrich Drepper  <drepper@redhat.com>
1171         * sysdeps/gnu/netinet/udp.h: Cosmetic changes.  Remove unnecessary
1172         __BEGIN_DECLS/__END_DECLS.
1174 2004-08-23  Andreas Jaeger  <aj@suse.de>
1176         [BZ #341]
1177         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_NOATIME): Define.
1178         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (O_NOATIME): Likewise.
1179         * sysdeps/unix/sysv/linux/cris/bits/fcntl.h (O_NOATIME): Likewise.
1180         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (O_NOATIME): Likewise.
1181         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (O_NOATIME): Likewise.
1182         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_NOATIME): Likewise.
1183         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (O_NOATIME): Likewise.
1184         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_NOATIME): Likewise.
1185         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_NOATIME): Likewise.
1186         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_NOATIME): Likewise.
1187         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (O_NOATIME): Likewise.
1188         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_NOATIME): Likewise.
1189         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (O_NOATIME): Likewise.
1191 2004-08-21  Ulrich Drepper  <drepper@redhat.com>
1193         * malloc/hooks.c (DEFAULT_CHECK_ACTION): Moved to malloc.c.
1194         (check_action): Likewise.
1195         When printing error messages, use malloc_printf_nc now instead of
1196         fiddling with the streams cancellation flag in every place.
1197         * malloc/malloc.c (DEFAULT_CHECK_ACTION): New definition.  Change
1198         default to 3.
1199         (check_action): New variable.
1200         (unlink): Print error message and eventually terminate in case list
1201         is corrupted.
1202         (malloc_printf_nc): New function.  Use it in _int_free.
1203         Change proposed by Arjan van de Ven.
1205         * dlfcn/Makefile: Don't build eval.c anymore.
1207 2004-08-20  Roland McGrath  <roland@frob.com>
1209         * csu/Makefile ($(objpfx)version-info.h): Use printf in place
1210         of echo -e for POSIX.2 portability.
1211         Reported by Paul Jarc <prj@po.cwru.edu>.
1213 2004-08-19  Ulrich Drepper  <drepper@redhat.com>
1215         * sysdeps/posix/getaddrinfo.c (gaih_inet): Minor optimizations in
1216         list generation.
1218         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use
1219         getcanonname_r function if AI_CANONNAME flag is not set in
1220         request.
1222         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss):
1223         Initialize mysize with limits only if latter is >= 0.  Use mysize
1224         in malloc call.
1226 2004-08-19  Jakub Jelinek  <jakub@redhat.com>
1228         * sysdeps/posix/getaddrinfo.c (gaih_inet): Cast canon to (char *)
1229         to avoid warning.
1231         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Initialize
1232         status to NSS_STATUS_UNAVAIL.
1234 2004-08-19  Ulrich Drepper  <drepper@redhat.com>
1236         * sysdeps/posix/getaddrinfo.c (gaih_inet): Use h->h_name in the
1237         cannoname lookup since it has the FQDN even if the original NAME
1238         value has not.
1240 2004-08-18  Ulrich Drepper  <drepper@redhat.com>
1242         * sysdeps/posix/getaddrinfo.c (gaih_inet): Store NAME parameter
1243         pointer in new variable ORIG_NAME and use this pointer when
1244         determination of canonical name failed, not the possibly IDN
1245         translated value of NAME.
1247 2004-08-17  Ulrich Drepper  <drepper@redhat.com>
1249         * resolv/resolv.h (RES_DEFAULT): Add RES_NOIP6DOTINT.
1250         * resolv/res_init.c (res_setoptions): Recognize ip6-dotint option.
1251         Reset RES_NOIP6DOTINT flag in this case..
1253         * sysdeps/posix/getaddrinfo.c: Fix memory handling of
1254         ai_canonname.
1256 2004-08-16  Ulrich Drepper  <drepper@redhat.com>
1258         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Don't use
1259         CNAME records, we better follow the chain of CNAME records which
1260         can be accomplished with A/AAAA lookups.
1262 2004-08-15  Roland McGrath  <roland@redhat.com>
1264         * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who):
1265         Remove __RUSAGE_BOTH constant and RUSAGE_BOTH macro.
1266         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1267         * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
1268         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1270 2004-08-15  Roland McGrath  <roland@frob.com>
1272         * sysdeps/i386/i686/Makefile (elide-routines.os): Append hp-timing to
1273         this, not ...
1274         (static-only-routines): ... this.
1275         * sysdeps/ia64/Makefile: Likewise.
1276         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
1277         * sysdeps/sparc/sparc64/Makefile: Likewise.
1278         * sysdeps/x86_64/Makefile: Likewise.
1279         * sysdeps/i386/i686/hp-timing.c: Revert copyright terms change.
1280         * sysdeps/ia64/hp-timing.c: Likewise.
1281         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
1282         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
1284         * csu/elf-init.c: Update copyright terms including special exception
1285         for these trivial files, which are statically linked into executables
1286         that use dynamic linking for the significant library code.
1287         * io/fstat.c: Likewise.
1288         * io/fstat64.c: Likewise.
1289         * io/lstat.c: Likewise.
1290         * io/lstat64.c: Likewise.
1291         * io/stat.c: Likewise.
1292         * io/stat64.c: Likewise.
1293         * stdlib/atexit.c: Likewise.
1294         * sysdeps/alpha/elf/initfini.c: Likewise.
1295         * sysdeps/alpha/elf/start.S: Likewise.
1296         * sysdeps/arm/elf/start.S: Likewise.
1297         * sysdeps/cris/elf/start.S: Likewise.
1298         * sysdeps/generic/initfini.c: Likewise.
1299         * sysdeps/generic/mknod.c: Likewise.
1300         * sysdeps/hppa/elf/initfini.c: Likewise.
1301         * sysdeps/hppa/elf/start.S: Likewise.
1302         * sysdeps/i386/elf/start.S: Likewise.
1303         * sysdeps/i386/i686/hp-timing.c: Likewise.
1304         * sysdeps/ia64/elf/initfini.c: Likewise.
1305         * sysdeps/ia64/elf/start.S: Likewise.
1306         * sysdeps/ia64/hp-timing.c: Likewise.
1307         * sysdeps/m68k/elf/start.S: Likewise.
1308         * sysdeps/mach/start.c: Likewise.
1309         * sysdeps/mips/elf/start.S: Likewise.
1310         * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
1311         * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
1312         * sysdeps/s390/s390-32/elf/start.S: Likewise.
1313         * sysdeps/s390/s390-32/initfini.c: Likewise.
1314         * sysdeps/s390/s390-64/elf/start.S: Likewise.
1315         * sysdeps/s390/s390-64/initfini.c: Likewise.
1316         * sysdeps/sh/elf/initfini.c: Likewise.
1317         * sysdeps/sh/elf/start.S: Likewise.
1318         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
1319         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
1320         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
1321         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
1322         * sysdeps/standalone/i386/start.S: Likewise.
1323         * sysdeps/standalone/i960/start.S: Likewise.
1324         * sysdeps/standalone/m68k/m68020/start.S: Likewise.
1325         * sysdeps/unix/arm/start.c: Likewise.
1326         * sysdeps/unix/bsd/osf/alpha/start.S: Likewise.
1327         * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
1328         * sysdeps/unix/sparc/start.c: Likewise.
1329         * sysdeps/unix/start.c: Likewise.
1330         * sysdeps/unix/sysv/aix/start.s: Likewise.
1331         * sysdeps/unix/sysv/irix4/start.c: Likewise.
1332         * sysdeps/x86_64/elf/initfini.c: Likewise.
1333         * sysdeps/x86_64/elf/start.S: Likewise.
1335 2004-08-15  Roland McGrath  <roland@redhat.com>
1337         [BZ #227]
1338         * sysdeps/unix/sysv/linux/kernel-features.h
1339         (__ASSUME_BRK_PAGE_ROUNDED): New macro.
1340         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
1341         [! __ASSUME_BRK_PAGE_ROUNDED]: Adjust the break up if it falls within
1342         the partial page after the dynamic linker's own data segment.
1344 2004-08-15  Ulrich Drepper  <drepper@redhat.com>
1346         * sysdeps/posix/getaddrinfo.c (gaih_inet): Optimize generation of
1347         v4-mapped addresses a bit.
1348         (gethosts): Move alloca out of macro, so that it is done only once.
1350         * sysdeps/posix/getaddrinfo.c (gaih_addrtuple): Change type of
1351         addr to avoid casts.
1352         (gethosts): Removed.
1353         (gethosts2): Renamed to gethosts.  Make it usable for family !=
1354         AF_UNSPEC.  Fix AI_V4MAPPED.
1355         (gaih_inet): Remove use of old gethosts.  Always use what used to be
1356         gethosts2.  If entry is found, try to use the same NSS module's
1357         getcanonname_r function.  Use gethostbyaddr for AI_CANONNAME only
1358         if getcanonname_r was not available.  Fix filtering of AI_V4MAPPED
1359         addresses.  Numerous cleanups.
1360         * resolv/nss_dns/dns-canon.c: New file.
1361         * resolv/Makefile (libnss_dns-routines): Add dns-canon.
1362         * resolv/Versions (libnss_dns): Add _nss_dns_getcanonname_r.
1364         * elf/Makefile: Add rules to build and run tst-dlopenrpath.
1365         * elf/tst-dlopenrpath.c: New file.
1366         * elf/tst-dlopenrpathmod.c: New file.
1368         * intl/tst-gettext.sh: Adjust for change of de.po file to UTF-8.
1369         * intl/tst-gettext.c: Likewise.
1371         * nss/getent.c (ahosts_keys_int): Correctly print IPv6 addresses.
1373         * nss/getent.c: Allow queries for getaddrinfo with AF_INET and
1374         AF_INET6.
1376 2004-08-14  Ulrich Drepper  <drepper@redhat.com>
1378         * po/de.po: Update from translation team.
1380 2004-08-14  Roland McGrath  <roland@frob.com>
1382         * sysdeps/mach/configure: Regenerated.
1383         * sysdeps/mach/hurd/configure: Regenerated.
1385 2004-08-14  Ulrich Drepper  <drepper@redhat.com>
1387         * sysdeps/posix/getaddrinfo.c (getaddrinfo): If RFC3484 sorting is
1388         performed, make sure it is still the first entry after sorting
1389         that has the ai_canonname information.
1391         * sysdeps/posix/getaddrinfo.c (gaih_inet): Really set ai_canonname
1392         only in one entry.
1394 2004-08-13  Daniel Jacobowitz  <dan@debian.org>
1396         * scripts/output-format.sed: Handle default case of three-argument
1397         OUTPUT_FORMAT.
1399         * sysdeps/arm/machine-gmon.h (mcount_internal): Mark as
1400         __attribute_used__.
1402 2004-08-13  Ulrich Drepper  <drepper@redhat.com>
1404         * nss/getent.c (ahosts_keys): ai_canonname is NULL for all but the
1405         first returned entry.  Print name only if not NULL.
1407         * nis/nss_nis/nis-netgrp.c: Remove locking by using data in struct
1408         __netgrent object passed in instead of global variables.
1409         Optimize.
1410         * nis/nss_nisplus/nisplus-netgrp.c: Remove locking by using data
1411         in struct __netgrent object passed in instead of global variables.
1412         * inet/netgroup.h (struct __netgrent): Add service_user field.
1413         Move cursor in anonymous union, add new field location to that
1414         union.
1415         * inet/getnetgrent_r.c: Extensive rewrite to really enable
1416         concurrent uset of set/get/endnetgrent and innetgr.
1417         Reported by Chuck Simmons.
1419         * inet/netgroup.h (struct name_list): Replace name pointer with
1420         zero-sized array.
1421         * inet/getnetgrent_r.c: Adjust code for change in name_list
1422         layout.  Numerous strdup and free calls removed.
1424         * elf/sprof.c (read_symbols): When comparing aliases, prefer
1425         non-hidden over hidden symbols and strong over weak symbols
1426         if both don't start with '_'.
1428         * malloc/malloc.c: Use strong_alias instead of weak_alias wherever
1429         possible.
1431 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
1433         * sysdeps/unix/sysv/linux/bits/resource.h: Define non-standard
1434         RUSAGE_ enums as __RUSAGE_ and adjust macros accordingly.
1435         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1436         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1437         * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
1438         Define non-standard RLIMIT_ enums as __RLIMIT_ and adjust macros
1439         accordingly.
1441 2004-08-11  Andreas Schwab  <schwab@suse.de>
1443         * resolv/res_libc.c: Move definition of __res_initstamp ...
1444         * resolv/res_init.c: ... here.
1446 2004-08-10  GOTO Masanori  <gotom@debian.or.jp>
1448         * locale/C-time.c: Change default ERA value from NULL to "".
1449         * locale/tst-C-locale.c: Add test case for ERA keywords.
1451 2004-08-12  Ulrich Drepper  <drepper@redhat.com>
1453         * sysdeps/unix/sysv/linux/bits/resource.h: Define non-standard
1454         RLIMIT__ enums as __RLIMIT_ and adjust macros accordingly.
1455         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
1456         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
1458 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
1460         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_SIGPENDING,
1461         RLIMIT_MSGQUEUE): Add.
1462         (RLIMIT_NLIMITS, RLIM_NLIMITS): Adjust.
1463         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIMIT_SIGPENDING,
1464         RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
1465         (RLIM_NLIMITS): Adjust.
1466         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIMIT_SIGPENDING,
1467         RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
1468         (RLIM_NLIMITS): Adjust.
1469         * sysdeps/unix/sysv/linux/mips/bits/resource.h (RLIMIT_SIGPENDING,
1470         RLIMIT_MSGQUEUE, RLIMIT_NLIMITS): Add.
1471         (RLIM_NLIMITS): Adjust.
1473 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
1475         * resolv/res_query.c (__libc_res_nsearch): Protect the debugging
1476         printf with #ifdef DEBUG and RES_DEBUG check.
1478         * sysdeps/unix/sysv/linux/bits/shm.h: Move __END_DECLS after
1479         __USE_MISC #endif.
1480         * sysdeps/generic/bits/shm.h: Add __BEGIN_DECLS for __getpagesize
1481         declaration.
1482         * sysdeps/gnu/bits/shm.h: Likewise.
1483         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
1484         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
1485         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
1486         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
1487         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
1489 2004-08-12  Ulrich Drepper  <drepper@redhat.com>
1491         * po/ca.po: Update from translation team.
1493 2004-08-11  Ulrich Drepper  <drepper@redhat.com>
1495         * sysdeps/unix/sysv/linux/bits/shm.h: Add __BEGIN_DECLS for
1496         __getpagesize declaration.
1498 2004-08-11  Roland McGrath  <roland@redhat.com>
1500         * configure.in (libc_cv_cpp_asm_debuginfo): Add missing braces around
1501         commands inside &&.
1502         Reported by Andreas Schwab <schwab@suse.de>.
1503         * configure: Regenerated.
1505         * posix/tst-waitid.c (do_test): Ignore SIGCHLD before cleanup SIGKILL.
1507 2004-08-11  Ulrich Drepper  <drepper@redhat.com>
1509         * time/tzset.c (tzset_internal): Add new parameter which is
1510         nonzero if called through tzset.  Use TZDEFAULT name including
1511         name comparison if the new parameter is zero.  This means implicit
1512         tzset calls will not cause files to be opened and read by tzfile.c
1513         all the time.
1515 2004-08-11  Jakub Jelinek  <jakub@redhat.com>
1517         * rt/tst-timer2.c (do_test): If timer_create fails, just continue.
1518         * rt/tst-timer4.c (do_test): If one of the timer_create calls fails,
1519         return 1 immediately.
1521         * time/tzfile.c (__tzfile_read): Free transitions only if it will
1522         not be reused.
1524         * sysdeps/ieee754/dbl-64/mpa.c: Include <sys/param.h>.
1525         * sysdeps/ieee754/dbl-64/mpa.h (MAX, MIN): Macros removed.
1527         * stdio-common/tst-popen.c: Include <string.h>.
1529         * resolv/res_send.c (__libc_res_nsend): Only define TMPBUF #if DEBUG.
1531         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Remove noreturn
1532         attribute.  Return NULL instead of calling pthread_exit at the end.
1534 2004-08-11  Roland McGrath  <roland@redhat.com>
1536         * iconvdata/testdata/ISO-2022-JP-3: Regenerated.
1538 2004-08-10  Alfred M. Szmidt  <ams@kemisten.nu>
1540         * sysdeps/generic/bits/in.h (struct ip_mreq): Remove definition.
1542 2004-08-10  Jakub Jelinek  <jakub@redhat.com>
1544         * libio/bits/stdio.h (fread_unlocked): Cast 0 to (size_t).
1545         (fwrite_unlocked): When checking if size * n is <= 8, cast each
1546         argument to size_t individually.  Cast n to (void) instead of
1547         (size_t), surround with (), return (size_t) 0 if one of n or size
1548         is 0.  [BZ #316]
1549         * stdio-common/Makefile (tests): Add tst-unlockedio.
1550         * stdio-common/tst-unlockedio.c: New test.
1552 2004-08-09  Roland McGrath  <roland@frob.com>
1554         * manual/install.texi (Supported Configurations): Replace bug-glibc
1555         mention with web URL.
1556         * INSTALL: Regenerated.
1557         * locale/iso-3166.def: Likewise, in comment.
1558         * locale/iso-4217.def: Likewise.
1559         * locale/iso-639.def: Likewise.
1560         * posix/cpio.h: Remove bug reporting comment.
1562 2004-08-09  Ulrich Drepper  <drepper@redhat.com>
1564         * libio/bits/stdio.h (fread_unlocked): Add a couple of (size_t)
1565         casts to handle funny calls with floating point argument values
1566         and signed values correctly and without warning.
1567         (fwrite_unlocked): Likewise.  [BZ #309]
1569         * malloc/memusage.c (me): Use creat64, not creat.
1570         * malloc/memusagestat.c: Fix handling of very large sizes.  [BZ #285]
1571         Patch by Guy Maor <guymaor@yahoo.com>.
1573         * elf/ldconfig.c (options): Mark parameter option names as
1574         translatable.  [BZ #253]  Patch by Jakub Bogusz <qboosh@pld-linux.org>.
1576         * iconv/gconv_charset.h (strip): Also allow comma which is what is
1577         used to separate options.  [BZ #194]
1579 2004-08-09  Roland McGrath  <roland@redhat.com>
1581         * FAQ.in: Refer to web pages instead of bug-glibc.
1582         * FAQ: Regenerated.
1584         * time/strptime_l.c: #include <stdbool.h>, `bool' used in last change.
1586 2004-08-09  Ulrich Drepper  <drepper@redhat.com>
1588         * time/tzset.c (tzset_internal): If TZ is not set do not compare
1589         old and new tz value since it might be /etc/localtime in both
1590         cases although the file changed.  [BZ #154]
1591         Patch by Christian Franke <franke@computer.org>.
1593         * time/tzfile.c (__tzfile_read): Determine dev/ino of file.
1594         Compare with values of previously opened file.  Don't do anything
1595         is they match.
1597 2004-08-08  Ulrich Drepper  <drepper@redhat.com>
1599         * elf/dl-load.c (_dl_map_object): If __RTLD_CALLMAP flag is set,
1600         reset loader before the actual loading.
1601         * elf/dl-open.c (dl_open_worker): If file name contains no path
1602         element determine map of caller.  Pass caller map in this case to
1603         _dl_map_object.  Set __RTLD_CALLMAP in mode.
1604         * include/dlfcn.h (__RTLD_CALLMAP): Define.  [BZ #116]
1605         Patch by Greg Wolodkin <greg@mathworks.com>.
1607         * misc/syslog.c (openlog_internal): Always try both UDP and TCP.
1608         [BZ #108]  Patch mainly by Bjorn Andersson <bjorn@iki.fi>.
1610         * configure.in: Also recognize i786. [BZ #106]
1611         Patch by <pluto@pld-linux.org>.
1613         * resolv/res_query.c (__libc_res_nsearch): Correctly test whether
1614         name contains any dots. [BZ #95]
1616         * resolv/res_send.c: Compiling with DEBUG defined works again.
1617         * resolv/gethnamaddr.c (dprintf): Renamed to Dprintf.  Adjust all
1618         callers.
1620         * resolv/tst-leaks.c (TIMEOUT): Define so that if no server is
1621         available the process is not killed. [BZ #41]
1623         * intl/tst-gettext.c (main): Improve some messages. [BZ #33]
1625         * time/strptime_l.c (__strptime_internal): Fix handling of %Ey.
1626         [BZ #28]
1628         * po/sv.po: Update from translation team.
1630 2004-08-07  Ulrich Drepper  <drepper@redhat.com>
1632         * inet/netinet/in.h: Add more const to the setipv4soucefilter,
1633         getsourcefilter, and setsourcefilter parameter list.
1634         * sysdeps/generic/setipv4sourcefilter.c: Likewise.
1635         * sysdeps/generic/getsourcefilter.c: Likewise.
1636         * sysdeps/generic/setsourcefilter.c: Likewise.
1637         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
1638         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
1639         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
1641         * po/tr.po: Update from translation team.
1643 2004-08-06  Ulrich Drepper  <drepper@redhat.com>
1645         * iconvdata/jisx0213.h (jisx0213_added_in_2004_p): Fix typo.
1646         Reported by Paolo Bonzini.
1648 2004-08-06  Jakub Jelinek  <jakub@redhat.com>
1650         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add
1651         always_inline.
1652         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_runtime_setup,
1653         elf_machine_fixup_plt, elf_machine_plt_conflict): Likewise.
1655         * sysdeps/unix/sysv/linux/netatalk/at.h: Include bits/sockaddr.h
1656         before including linux/atalk.h.
1658         * resolv/res_libc.c: Include atomic.h.
1660         * intl/finddomain.c (free_mem): Rename to...
1661         (_nl_finddomain_subfreeres): ... this.  Add
1662         __libc_freeres_fn_section.
1663         * intl/loadmsgcat.c (_nl_unload_domain): Add
1664         __libc_freeres_fn_section.
1665         * intl/gettextP.h (_nl_unload_domain): Move into #ifdef _LIBC.
1666         Add attribute_hidden.
1667         (_nl_findomain_subfreeres): New prototype.
1668         * iconv/gconv_db.c (free_mem): Call _nl_findomain_subfreeres.
1670 2004-07-30  Guido Guenther  <agx@sigxcpu.org>
1672         * nss/getent.c (passwd_keys): Use strtoul instead of isdigit to
1673         test if the key is numeric or not.
1674         (group_keys): Likewise.
1676 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
1678         * inet/netinet/in.h: Define struct ip_msfilter, IP_MSFILTER_SIZE,
1679         struct group_filter, and GROUP_FILTER_SIZE.
1680         * include/sys/socket.h: Declare __getsockopt.
1681         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: New file.
1682         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: New file.
1683         * sysdeps/unix/sysv/linux/setsourcefilter.c: New file.
1684         * sysdeps/unix/sysv/linux/getsourcefilter.c: New file. [BZ #211]
1686         * po/ko.po: Update from translation team.
1688 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
1690         * hesiod/hesiod.c (__hesiod_res_get): Use calloc instead of malloc +
1691         memset.
1692         (__hesiod_res_set): Free nsaddrs.
1694         * include/resolv.h (__res_maybe_init): Add prototype.
1695         * resolv/resolv.h (struct __res_state): Add _u._ext.initstamp field.
1696         * resolv/Versions (libc): Add __res_maybe_init@@GLIBC_PRIVATE.
1697         * resolv/res_libc.c (__res_initstamp, lock): New variables.
1698         (res_init): Increase __res_initstamp.
1699         (__res_maybe_init): New function.
1700         * resolv/res_init.c (__res_vinit): Initialize _u._ext.initstamp.
1701         * hesiod/hesiod.c (__hesiod_res_get): Use __res_maybe_init instead
1702         of RES_INIT check and {res_ninit,__res_ninit,res_init} call.
1703         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
1704         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
1705         _nss_dns_gethostbyaddr_r): Likewise.
1706         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
1707         _nss_dns_getnetbyaddr_r): Likewise.
1708         * resolv/gethnamaddr.c (gethostbyname, gethostbyname2,
1709         gethostbyaddr): Likewise.
1710         * resolv/res_data.c (fp_nquery, res_mkquery, res_mkupdate,
1711         res_isourserver, res_sendsigned, res_update, res_search,
1712         res_querydomain): Likewise.
1713         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Likewise.
1714         * nss/digits_dots.c (__nss_hostname_digits_dots): Likewise.
1715         * nss/getnssent_r.c (__nss_setent, __nss_endent, __nss_getent_r):
1716         Likewise.
1718 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
1720         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set ai_family for
1721         V4-mapped IPv6 addresses and req->ai_family==AF_INET.
1722         Reported by A. Guru <a.guru@sympatico.ca>.
1724         * po/sv.po: Update from translation team.
1725         * po/sk.po: Likewise.
1726         * po/pl.po: Likewise.
1728 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
1729             Ulrich Drepper  <drepper@redhat.com>
1731         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Don't read more input
1732         characters than necessary.
1734 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
1736         * wcsmbs/Makefile (tests): Add tst-mbsrtowcs.
1737         * wcsmbs/tst-mbsrtowcs.c: New file.
1739         * po/fr.po: Update from translation team.
1741 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
1743         * resolv/inet_pton.c (inet_pton4): Disallow octal numbers.  Reported
1744         by A. Guru <a.guru@sympatico.ca>.  [BZ #295]
1746 2004-08-05  Ulrich Drepper  <drepper@redhat.com>
1748         * po/nl.po: Update from translation team.
1750         * sysdeps/posix/getaddrinfo.c (gaih_inet): Recognize all the IPv4
1751         numeric address formats inet_addr knows.
1752         (getaddrinfo): Allow AI_NUMERICSERV flag.
1753         If neither IPv4 nor IPv6 interface is present we cannot make any
1754         decision for AI_ADDRCONFIG.  Fail if AI_NUMERICSERV is set and the
1755         string is not just a number.  Remove useless freeaddrinfo call.
1756         * resolv/netdb.h (AI_NUMERICSERV): Define.
1757         Based on a patch by a.guru@sympatico.ca.
1759 2004-08-04  Jakub Jelinek  <jakub@redhat.com>
1761         * stdlib/strfmon_l.c (__vstrfmon_l): Memset whole info structure
1762         instead of trying to initialize some, but not all, fields one by
1763         one.
1764         * stdio-common/printf_size.c (printf_size): Initialize fb_info
1765         structure with *info instead of trying to initialize some, but not
1766         all, fields from it.
1768         * nscd/connections.c (handle_request): Check if req->type is in
1769         LASTDBREQ .. LASTREQ range instead of req.
1771         * locale/programs/linereader.c (lr_create): Initialize
1772         lr->return_widestr to 0.
1774         * elf/dl-close.c (free_slotinfo): Add __libc_freeres_fn_section.
1775         (free_mem): Call free_slotinfo just once.
1777         * stdio-common/tst-fmemopen.c (main): Check for MAP_FAILED instead
1778         of NULL.
1780         * locale/localeinfo.h (_nl_locale_subfreeres): New prototype.
1781         * locale/setlocale.c (free_category): Add __libc_freeres_fn_section.
1782         (free_mem): Rename to _nl_locale_subfreeres.
1783         * iconv/gconv_db.c: Include locale/localeinfo.h.
1784         (free_derivation, free_modules_db): Add __libc_freeres_fn_section.
1785         (free_mem): Call _nl_locale_subfreeres.
1786         * iconv/gconv_dl.c (do_release_all): Add __libc_freeres_fn_section.
1788 2004-08-04  Roland McGrath  <roland@frob.com>
1790         * Makeconfig ($(common-objpfx)config.status):
1791         Fix typo: $(add_ons) -> $(add-ons).
1792         (Makeconfig-add-on): New variable.  When doing $(sysdep-makeconfigs)
1793         include, use black magic to get it set to an add-on's name during the
1794         include of the add-on's Makeconfig.
1796         * configure.in: Use variable name `libc_add_on' when sourcing add-on
1797         configure fragments, so they can refer to this.
1798         * configure: Regenerated.
1800 2004-08-04  Roland McGrath  <roland@redhat.com>
1802         * posix/tst-waitid.c (test_child): Sleep a second before stopping.
1803         (do_test): Bump sleep to three seconds.
1804         (sigchld, check_sigchld): New functions.
1805         (do_test): Handle SIGCHLD and check for getting the right details.
1807         * posix/tst-waitid.c (do_test): Kill the child process when bailing
1808         out early on some failure.
1809         [WCONTINUED]: Test WCONTINUED functionality.
1811 2004-08-03  Ulrich Drepper  <drepper@redhat.com>
1813         * nscd/connections.c (handle_request): Print more descriptive
1814         message for invalid request types.
1816 2004-08-02  Jakub Jelinek  <jakub@redhat.com>
1818         * iconvdata/ibm932.c (BODY): Avoid binary search for ch >= 0xffff.
1819         Always treat high as highest number in range + 1.
1820         * iconvdata/ibm943.c (BODY): Likewise.
1822 2004-07-31  Bruno Haible  <bruno@clisp.org>
1824         * iconvdata/JISX0213.TXT: Updated to JISX0213 plane 1 version 2004.
1825         * iconvdata/jisx0213.c (__jisx0213_to_ucs_main,
1826         __jisx0213_to_ucs_pagestart, __jisx0213_from_ucs_level1,
1827         __jisx0213_from_ucs_level2): Regenerated.
1828         * iconvdata/jisx0213.h (jisx0213_added_in_2004_p): New function.
1829         * iconvdata/iso-2022-jp-3.c (JISX0213_1_2000_set): Renamed from
1830         JISX0213_1_set.
1831         (JISX0213_1_2004_set): New enum value.
1832         (BODY for FROM_LOOP): Treat ESC $ ( Q like ESC $ ( O.
1833         (BODY for TO_LOOP): For JISX 0213 plane 1 characters, emit ESC $ ( O
1834         when possible, ESC $ ( Q when needed.
1835         * iconvdata/testdata/EUC-JISX0213: Add the 10 new characters.
1836         * iconvdata/testdata/EUC-JISX0213..UTF8: Update.
1837         * iconvdata/testdata/SHIFT_JISX0213: Add the 10 new characters.
1838         * iconvdata/testdata/SHIFT_JISX0213..UTF8: Update.
1839         * iconvdata/testdata/ISO-2022-JP-3: Add the 10 new JISX0213 characters.
1840         * iconvdata/testdata/ISO-2022-JP-3..UTF8: Update.
1842 2004-07-22  Bruno Haible  <bruno@clisp.org>
1844         * iconvdata/gconv-modules (ISO-8859-7): Add alias ISO_8859-7:2003.
1846 2004-07-29  David S. Miller  <davem@redhat.com>
1848         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy): Optimize
1849         better for smaller than 256 byte copies.  Also, use only one
1850         unrolled loop instead of two for the large copy case.
1852 2004-07-30  Richard Henderson  <rth@redhat.com>
1854         * sysdeps/alpha/divq.S: Save t3 before it gets clobbered.
1855         * sysdeps/alpha/remq.S: Likewise.
1856         * sysdeps/alpha/div.S, sysdeps/alpha/ldiv.S: Rewrite with the
1857         new division algorithms in divl.S and divq.S respectively.
1859 2004-07-28  GOTO Masanori  <gotom@debian.or.jp>
1861         * timezone/asia: Update from tzdata2004b.
1862         * timezone/backward: Likewise.
1863         * timezone/europe: Likewise.
1864         * timezone/iso3166.tab: Likewise.
1865         * timezone/leapseconds: Likewise.
1866         * timezone/northamerica: Likewise.
1867         * timezone/southamerica: Likewise.
1868         * timezone/zone.tab: Likewise.
1870         * timezone/private.h: Update from tzcode2004b.
1871         * timezone/zic.c: Likewise.
1873 2004-07-27  Ulrich Drepper  <drepper@redhat.com>
1875         * nscd/grpcache.c (cache_addgr): If necessary, add entry also
1876         under the name the user provided.
1877         * nscd/pwdcache.c (cache_addpw): Likewise.
1879 2004-07-26  Roland McGrath  <roland@redhat.com>
1881         * sysdeps/posix/waitid.c [WEXITED]: Clear WEXITED bit in OPTIONS for
1882         call to __waitpid.
1884 2004-07-26  Ulrich Drepper  <drepper@redhat.com>
1886         * nscd/hstcache.c (cache_addhst): Fix two scenarios which lead to
1887         memory leaks.
1889         * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Assign pointer for
1890         new buffer at the right time.
1891         Reported by Jakub Bogusz <qboosh@pld-linux.org>.
1893 2004-07-25  Ulrich Drepper  <drepper@redhat.com>
1895         * inet/Versions [libc, GLIBC_2.3.4]: Add getipv4sourcefilter,
1896         getsourcefilter, setipv4sourcefilter, and setsourcefilter.
1897         * inet/Makefile (routines): Likewise.
1898         * inet/netinet/in.h: Add prototypes for getipv4sourcefilter,
1899         getsourcefilter, setipv4sourcefilter, and setsourcefilter.
1900         * sysdeps/generic/getipv4sourcefilter.c: New file.
1901         * sysdeps/generic/setipv4sourcefilter.c: New file.
1902         * sysdeps/generic/getsourcefilter.c: New file.
1903         * sysdeps/generic/setsourcefilter.c: New file.
1905 2004-07-17  Steven Munroe  <sjmunroe@us.ibm.com>
1907         * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling
1908         for POWER4 machines.
1910 2004-07-21  Jakub Jelinek  <jakub@redhat.com>
1912         [BZ #274]
1913         * stdlib/strtod_l.c (INTERNAL (__STRTOF)): Fix used >=
1914         BITS_PER_MP_LIMB shifting up.
1915         * stdlib/tst-strtod.c (main): Add new tests.
1917 2004-07-23  Jakub Jelinek  <jakub@redhat.com>
1919         [BZ #282]
1920         * libio/iopopen.c (_IO_new_popen): Use _IO_init instead of
1921         _IO_no_init.  Remove wd from struct locked_FILE.
1922         (_IO_wproc_jumps): Remove.
1923         Reported by Andrew Josey <a.josey@opengroup.org>.
1924         * stdio-common/Makefile (tests): Add tst-popen.
1925         * stdio-common/tst-popen.c: New test.
1927 2004-07-23  Ulrich Drepper  <drepper@redhat.com>
1929         * posix/bits/posix1_lim.h: Fix values for _POSIX_CHILD_MAX and
1930         _POSIX_OPEN_MAX.  Add _POSIX_HOST_NAME_MAX, _POSIX_SYMLINK_MAX,
1931         _POSIX_SYMLOOP_MAX, and _POSIX_RE_DUP_MAX.
1932         Reported by Andrew Josey.
1934         * include/features.h: Document _POSIX_C_SOURCE == 200112L.
1936         * grp/grp.h: Define gid_t if __USE_XOPEN2K is defined.
1937         * pwd/pwd.h: Define uid_t and gid_t if __USE_XOPEN2K is defined.
1938         * io/sys/stat.h: Define dev_t, gid_t, ino_t, mode_t, nlink_t,
1939         off_t, time_t, and uid_t if __USE_XOPEN2K is defined.
1940         * signal/signal.h: Define pid_t if __USE_XOPEN2K is defined.
1941         * posix/unistd.h: Define gid_t, off_t, pid_t, uid_t, and
1942         useconds_t if __USE_XOPEN2K is defined.
1943         * io/utime.h: Define time_t if __USE_XOPEN2K is defined.
1944         * libio/stdio.h: Declare fseeko and ftello if __USE_XOPEN2K is defined.
1946 2004-07-19  Thorsten Kukuk  <kukuk@suse.de>
1948         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss): Don't
1949         allocate memory for large temporary variables with alloca.
1951 2004-07-22  Ulrich Drepper  <drepper@redhat.com>
1953         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Compatibility
1954         code must have version GLIBC_2.0.  Patch by Dwayne McConnell.
1956         * nscd/nscd_getgr_r.c (nscd_getgr_r): Avoid read call with NULL
1957         pointer and zero length.
1959 2004-07-21  Ulrich Drepper  <drepper@redhat.com>
1961         * nscd/cache.c (prune_cache): Print correct list when debugging.
1963 2004-07-21  Jakub Jelinek  <jakub@redhat.com>
1965         * resolv/res_libc.c (res_init): If RES_INIT is set and
1966         _res.nscount > 0, call __res_nclose and free nsaddrs.
1967         * resolv/Makefile: Add rules to build and run tst-leaks2.
1968         * resolv/tst-leaks2.c: New test.
1970 2004-07-21  Ulrich Drepper  <drepper@redhat.com>
1972         * intl/libintl.h: Don't define macros for C++.
1973         Patch by Goto Masanori.
1975 2004-07-22  GOTO Masanori  <gotom@debian.or.jp>
1977         [BZ #276]
1978         * include/arpa/inet.h: Change inet_aton type from in_addr_t to int.
1979         * inet/arpa/inet.h: Likewise.
1980         * resolv/inet_addr.c: Likewise.
1982 2004-07-21  Alexandre Oliva  <aoliva@redhat.com>
1984         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Add semtimedop.
1986 2004-07-20  Roland McGrath  <roland@redhat.com>
1988         * configure.in (add_ons): Substitute this.  Move $add_ons handling
1989         after AC_CANONICAL_HOST and default setting of $machine et al.
1990         Don't set $subdirs from $add_ons.
1991         Instead, source add-on/configure fragments early on.
1992         (base_machine): If it's already set, don't set it based on $machine.
1993         (libc_config_ok): New variable, set to no.  If an add-on fragment sets
1994         it to yes, skip the  tuple sanity check as if --enable-hacker-mode.
1995         (sysnames): Try appending add-on names after machine as well.
1996         * config.make.in (add-ons): Set from @add_ons@ instead of @subdirs@.
1997         * Makeconfig ($(common-objpfx)config.status): Also depend on configure
1998         files in $(add_ons) dirs.
2000         * sysdeps/unix/sysv/linux/bits/in.h (struct ip_mreq): Remove
2001         definition, now in netinet/in.h proper.
2003 2004-07-20  Alexandre Oliva  <aoliva@redhat.com>
2005         * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h):
2006         Sort by syscalls.  Make sure we get headers such as sgidefs.h from
2007         the build tree before just-installed ones.
2009         * sysdeps/mips/atomicity.h: Use standard names for ABI macros,
2010         include sgidefs.h where appropriate.
2011         * sysdeps/mips/dl-machine.h: Likewise.
2012         * sysdeps/mips/machine-gmon.h: Likewise.
2013         * sysdeps/mips/bits/setjmp.h: Likewise.
2014         * sysdeps/mips/fpu/bits/mathdef.h: Likewise.
2015         * sysdeps/mips/mips64/__longjmp.c: Likewise.
2016         * sysdeps/mips/mips64/setjmp_aux.c: Likewise.
2017         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
2018         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
2019         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2020         * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise.
2021         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2022         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2023         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
2024         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
2025         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
2026         * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: Likewise.
2027         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
2028         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
2029         * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: Likewise.
2030         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
2031         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
2032         * sysdeps/unix/sysv/linux/mips/sys/user.h: Likewise.
2033         * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h):
2034         Likewise.
2035         * sysdeps/unix/sysv/linux/mips/configure.in (asm-unistd.h):
2036         Likewise.
2038         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Update to use
2039         _dl_lookup_symbol_x.
2040         (elf_machine_runtime_link_map): Don't INTUSE _dl_signal_error.
2042 2004-07-20  Ulrich Drepper  <drepper@redhat.com>
2044         * inet/netinet/in.h: Define struct ip_mreq and struct
2045         ip_mreq_source.
2046         Define struct group_req and struct group_source_req.
2047         * sysdeps/unix/sysv/linux/bits/in.h: Define IP_UNBLOCK_SOURCE,
2048         IP_BLOCK_SOURCE, IP_ADD_SOURCE_MEMBERSHIP,
2049         IP_DROP_SOURCE_MEMBERSHIP, IP_MSFILTER, MCAST_JOIN_GROUP,
2050         MCAST_BLOCK_SOURCE, MCAST_UNBLOCK_SOURCE, MCAST_LEAVE_GROUP,
2051         MCAST_JOIN_SOURCE_GROUP, MCAST_LEAVE_SOURCE_GROUP, and
2052         MCAST_MSFILTER.
2053         Define MCAST_INCLUDE and MCAST_EXCLUDE.
2055         * iconvdata/gconv-modules: Add alias for IBM874 [BZ #244].
2057 2004-07-19  Jakub Jelinek  <jakub@redhat.com>
2059         [BZ #258]
2060         * math/libm-test.inc (max_value, min_value): New variables.
2061         (initialize): Initialize them.
2062         (pow_test): Add a couple of new tests.
2063         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Don't generate invalid
2064         exception if |y| >= 1U<<31.
2065         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Don't generate invalid
2066         exception if |y| >= 1L<<63.
2067         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
2068         If y*log2(x) overflows to +-inf, return still +inf/+0 instead of NaN.
2069         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
2071 2004-07-18  Ulrich Drepper  <drepper@redhat.com>
2073         * nscd/pwdcache.c (cache_addpw): Optimize case of unsuccessful
2074         lookup a bit.
2075         * nscd/grpcache.c (cache_addgr): Likewise.
2076         * nscd/hstcache.c (cache_addhst): Likewise.
2078 2004-07-10  GOTO Masanori  <gotom@debian.or.jp>
2080         * sysdeps/s390/s390-32/elf/start.S: Remove symbol _fp_hw.
2081         * sysdeps/s390/s390-64/elf/start.S: Likewise.
2083 2004-04-16  Andreas Schwab  <schwab@suse.de>
2085         * sysdeps/ia64/bits/atomic.h: Cast first argument of
2086         __sync_bool_compare_and_swap_si correct to void*.
2088 2004-07-17  Ulrich Drepper  <drepper@redhat.com>
2090         * iconv/iconv_prog.c (print_known_names): Make machine-readable
2091         output even less cluttered.
2093 2004-07-16  Steven Munroe  <sjmunroe@us.ibm.com>
2095         [BZ #269]
2096         * setjmp/Makefile (tests): Add bug269-setjmp.
2097         * setjmp/bug269-setjmp.c: New file.
2098         * sysdeps/powerpc/powerpc64/__longjmp-common.S [SHARED && !IS_IN_rtld]:
2099         Store R2 from jmpbuf in callers TOC save area.
2100         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S [SHARED && !IS_IN_rtld]:
2101         Store R2 in TOC save area.
2102         * sysdeps/powerpc/powerpc64/setjmp-common.S [SHARED && !IS_IN_rtld]:
2103         Copy TOC save area from previous frame as R2 (TOC) in jmpbuf.
2105 2004-07-16  Jakub Jelinek  <jakub@redhat.com>
2107         * locale/newlocale.c: Include bits/libc-lock.h.
2108         (__libc_setlocale_lock): Extern decl.
2109         (__newlocale): Use it.
2110         Reported by Ulrich Weigand <Ulrich.Weigand@de.ibm.com>.
2112 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
2114         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Remove
2115         static inline __attribute ((always_inline)).  Don't define if
2116         NO_CANCELLATION.
2117         (__libc_fcntl): Use INLINE_SYSCALL directly instead of
2118         __fcntl_nocancel.
2119         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__fcntl_nocancel):
2120         Remove static inline __attribute ((always_inline)).  Don't define
2121         if NO_CANCELLATION.
2122         (__libc_fcntl): Use INLINE_SYSCALL directly instead of
2123         __fcntl_nocancel.
2124         * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Define to
2125         __libc_fcntl if NO_CANCELLATION and __ASSUME_FCNTL64 == 0.
2126         Don't define at all if NO_CANCELLATION and __ASSUME_FCNTL64 > 0.
2127         (__libc_fcntl): Don't define if __fcntl_nocancel is a macro.
2129         [BZ #262]
2130         * sysdeps/i386/elf/start.S (_start): Use @GOT instead of @GOTOFF
2131         for main.
2132         * elf/Makefile: Add rules to build and run tst-pie1.
2133         * elf/tst-pie1.c: New test.
2134         * elf/tst-piemod1.c: New file.
2136 2004-07-14  Jakub Jelinek  <jakub@redhat.com>
2138         [BZ #266]
2139         * manual/string.texi (l64a): Note that the static buffer is 7 bytes
2140         long.  Rewrite example code so that it takes into account l64a output
2141         shorter than 6 characters.
2142         Reported by Julian Graham <julian.graham@aya.yale.edu>.
2144 2004-07-14  Kaz  Kojima  <kkojima@rr.iij4u.or.jp>
2146         * sysdeps/sh/dl-machine.h: Don't reset _dl_starting_up here.
2147         (elf_machine_rela_relative): Remove unused valiable.
2149 2004-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2151         [BZ #263]
2152         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Don't store
2153         outside the buffer if the read returns 0.  __strtod_l can't set
2154         endp to NULL, so remove a test for that case.
2156 2004-07-12  Roland McGrath  <roland@redhat.com>
2158         * manual/signal.texi (Interrupted Primitives): Make clear that
2159         TEMP_FAILURE_RETRY evaluates its expression as long int and compares
2160         it to -1 to define "failure".
2162 2004-07-10  Ulrich Drepper  <drepper@redhat.com>
2164         * elf/ldconfig.c: Define PROCINFO_CLASS as static before including
2165         ldsodefs.h.
2166         * sysdeps/generic/ldsodefs.h: Only define PROCINFO_CLASS if it is not
2167         already defined.
2168         * sysdeps/i386/dl-procinfo.c: Define PROCINFO_CALLS only if not
2169         already defined.
2171         * elf/rtld.c (print_statistics): Mark with noinline attribute.
2172         * sysdeps/i386/dl-machine.h (elf_machine_rel): Mark with always_inline
2173         attribute.
2174         (elf_machine_rel_relative): Likewise.
2176         * include/string.h: Add libc_hidden_proto for __strtok_r and
2177         __strsep_g.
2178         * sysdeps/generic/strsep.c: Add libc_hidden_def.
2179         * sysdeps/generic/strtok_r.c: Likewise.
2180         * sysdeps/i386/strtok_r.S: Add alias for internal symbol.
2181         * sysdeps/i386/i686/strtok_r.S: Likewise.
2182         * sysdeps/x86_64/strtok_r.S: Likewise.
2184 2004-07-09  Alexandre Oliva  <aoliva@redhat.com>
2186         * inet/getnetgrent_r.c (internal_setnetgrent): Make it hidden
2187         instead of internal-linkage, such that we can alias to it.
2188         (internal_endnetgrent, internal_getnetgrent_r): Likewise.
2190 2004-07-09  Ulrich Drepper  <drepper@redhat.com>
2192         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Move attribute
2193         to the front for gcc 3.5+.
2194         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
2195         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise.
2196         * include/fcntl.h: Don't declare __fcntl_nocancel here if
2197         NO_CANCELLATION is defined.
2199 2004-07-07  Jakub Jelinek  <jakub@redhat.com>
2201         * elf/dl-fini.c (_dl_fini): Add nloaded variable, load
2202         GL(dl_nloaded) into it while still in critical section.
2204 2004-07-06  Thorsten Kukuk  <kukuk@suse.de>
2206         * nss/getent.c (print_group, print_passwd): Use %lu format for
2207         `unsigned long int' values.
2209         * sysdeps/unix/sysv/linux/i386/fcntl.c (__fcntl_nocancel): Fix syntax
2210         error typos in goto statements.
2212 2004-07-07  Roland McGrath  <roland@frob.com>
2214         * Makefile (dist-separate): New variable.
2215         (glibc-%.tar rule): Make separate tar files for add-ons listed there.
2216         Depend on their configure files.
2217         (dist-do-separate-dirs): New canned sequence to do that.
2218         (dist-separate-libidn, dist-separate-linuxthreads): New variables.
2219         (dist): Depend on add-on tar files based on $(dist-separate).
2220         (dist-version): New variable, default to $(version).
2221         (tag-for-dist, dist): Use that in place of $(version) in deps.
2223 2004-07-07  Ulrich Drepper  <drepper@redhat.com>
2225         * elf/dl-fini.c (_dl_fini): Move the unlock of the ld.so lock
2226         before the loop running the destructors.
2228 2004-05-18  Andreas Schwab  <schwab@suse.de>
2230         * elf/dl-load.c (_dl_map_object_from_fd): Use the end address of
2231         the first segment for mprotect, not l_text_end.
2233 2004-07-05  Ulrich Drepper  <drepper@redhat.com>
2235         * elf/dl-profile.c (_dl_start_profile): Compact error handling.
2236         Remove hashfraction variable.  Make kcount and kcountsize local
2237         variables.
2239         * elf/dl-init.c: Don't define and use _dl_starting_up if
2240         HAVE_INLINED_SYSCALLS is defined and the variable is not used.
2241         * elf/dl-support.c: Likewise.
2242         * elf/rtld.c: Likewise.
2243         * elf/dl-misc.c (_dl_debug_vdprintf): Use writev syscall directly
2244         if HAVE_INLINED_SYSCALLS is defined.
2245         * sysdeps/powerpc/powerpc64/dl-machine.h: Don't reset _dl_starting_up
2246         here.
2247         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
2248         * sysdeps/unix/sysv/linux/configure.in: Define HAVE_INLINED_SYSCALLS.
2249         * config.h.in: Add entry for HAVE_INLINED_SYSCALLS.
2251         * sysdeps/posix/profil.c: If compiled for ld.so, omit code which
2252         is needed to stop profiling.
2253         * elf/dl-open.c (dl_open_worker): If a newly opened object is to be
2254         profile make sure it cannot be unloaded.
2256         * sysdeps/unix/sysv/linux/dl-origin.c: Inline readlink syscall.
2258         * sysdeps/unix/sysv/linux/fcntl.c: If compiled without cancellation
2259         support, make sure the helper function is inlined.
2260         * sysdeps/unix/sysv/linux/pread.c: Likewise.
2261         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
2262         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
2263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Likewise.
2265 2004-07-05  Jakub Jelinek  <jakub@redhat.com>
2267         * include/string.h (ffs): Add libc_hidden_builtin_proto.
2268         * sysdeps/rs6000/ffs.c (ffs): Add libc_hidden_builtin_def.
2269         * sysdeps/alpha/alphaev67/ffs.S (ffs): Likewise.
2270         * sysdeps/alpha/ffs.S (ffs): Likewise.
2271         * sysdeps/s390/ffs.c (ffs): Likewise.
2272         * sysdeps/powerpc/ffs.c (ffs): Likewise.
2273         * sysdeps/i386/ffs.c (ffs): Likewise.
2274         * sysdeps/i386/i686/ffs.c (ffs): Likewise.
2275         * sysdeps/m68k/ffs.c (ffs): Likewise.
2276         * sysdeps/generic/ffs.c (ffs): Likewise.
2277         * sysdeps/m88k/ffs.c (ffs): Likewise.
2278         * sysdeps/am29k/ffs.c (ffs): Likewise.
2279         * sysdeps/i960/ffs.c (ffs): Likewise.
2280         * sysdeps/x86_64/ffs.c (ffs): Likewise.
2282         * Makerules (check-abi): Use diff -p -U 0 instead of diff -pu0.
2284         * sysdeps/powerpc/novmx-longjmp.c (__libc_longjmp,
2285         __libc_siglongjmp): Remove symbol_version.
2286         * sysdeps/powerpc/longjmp.c (__libc_longjmp, __libc_siglongjmp):
2287         Export @@GLIBC_PRIVATE, not @@GLIBC_2.3.4.
2288         * sysdeps/powerpc/sigjmp.c (__sigjmp_save): Use strong_alias
2289         unconditionally.
2290         * sysdeps/powerpc/novmx-sigjmp.c (__sigjmp_save): Remove.
2291         * sysdeps/powerpc/powerpc32/__longjmp.S (__longjmp): Use
2292         strong_alias instead of default_symbol_version, remove
2293         symbol_version.
2294         * sysdeps/powerpc/powerpc64/__longjmp.S (__longjmp): Likewise.
2295         * sysdeps/powerpc/powerpc32/bsd-setjmp.S (__novmx__setjmp): Change
2296         into strong_alias to __novmxsetjmp.
2297         (__vmx__setjmp): Similarly with __vmxsetjmp.
2298         (__setjmp): Make it strong_alias to __vmx__setjmp, remove
2299         default_symbol_version and symbol_version.
2300         * sysdeps/powerpc/powerpc64/bsd-setjmp.S (__novmx__setjmp): Change
2301         into strong_alias to __novmxsetjmp.
2302         (__vmx__setjmp): Similarly with __vmxsetjmp.
2303         (__setjmp): Make it strong_alias to __vmx__setjmp, remove
2304         default_symbol_version and symbol_version.
2306         * nscd/nscd_getgr_r.c: Include stdio-common/_itoa.h.
2308 2004-07-05  Ulrich Drepper  <drepper@redhat.com>
2310         * elf/rtld.c (dl_main): Mark dyn_temp with attribute_relro.
2312 2004-07-04  Matthew Reppert  <arashi@kai.vm.bytemark.co.uk>
2314         * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Use libc_hidden_ver
2315         instead of libc_hidden_def.
2317 2004-07-01  Roland McGrath  <roland@redhat.com>
2319         * aclocal.m4: Add provide for AC_CONFIG_AUX_DIR_DEFAULT.
2321         * Makeconfig ($(common-objpfx)shlib-versions.v.i): Move top-level
2322         $(..)shlib-versions file to last in deps list.  This lets add-ons give
2323         more-specific matches that override defaults in the top-level file.
2325         * sysdeps/unix/sysv/linux/configure.in: If arch_minimum_kernel was
2326         already set, don't set it or libc_cv_gcc_unwind_find_fde.
2327         * sysdeps/unix/sysv/linux/configure: Regenerated.
2329 2004-07-01  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2331         * sysdeps/s390/fpu/bits/mathinline.h [__LIBC_INTERNAL_MATH_INLINES]
2332         (__ieee754_sqrt): Define as __MATH_INLINE using sqdbr instruction.
2333         (__ieee754_sqrtf): Define as __MATH_INLINE using sqebr instruction.
2334         * sysdeps/s390/fpu/e_sqrt.c: New file.
2335         * sysdeps/s390/fpu/e_sqrtf.c: New file.
2336         * sysdeps/s390/Implies: New file.
2337         * sysdeps/s390/s390-32/Implies: Remove ieee754, move
2338         ieee754/dbl-64 and ieee754/flt-32 to s390/Implies.
2339         * sysdeps/s390/s390-64/Implies: Likewise.
2341 2004-06-30  Jakub Jelinek  <jakub@redhat.com>
2343         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Include tls.h.
2344         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
2346         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (thread_start):
2347         DO_CALL (exit, 1) instead of branching to _exit.
2348         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (thread_start):
2349         Likewise.
2351         * sysdeps/s390/fpu/bits/mathinline.h: New file.
2353         * include/glob.h (glob64): Add libc_hidden_proto.
2354         * sysdeps/generic/glob64.c (glob64): Add libc_hidden_def.
2355         * sysdeps/gnu/glob64.c (glob64): Likewise.
2356         * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Likewise.
2358 2004-06-11  Jakub Jelinek  <jakub@redhat.com>
2360         * sysdeps/i386/fpu/libm-test-ulps: Update for GCC 3.4.
2361         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
2363 2004-06-11  Dwayne Grant McConnell  <dgm69@us.ibm.com>
2365         * sysdeps/powerpc/fpu/s_lround.c: Removed.
2366         * sysdeps/powerpc/fpu/s_lroundf.c: Removed.
2367         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: New file.
2368         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: New file.
2369         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: New file.
2370         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: New file.
2371         * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: Removed.
2372         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: New file.
2373         * sysdeps/powerpc/powerpc32/fpu/s_lroundf.S: New file.
2374         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: New file.
2375         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: New file.
2376         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: New file.
2377         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: New file.
2378         * sysdeps/powerpc/powerpc32/fpu/s_round.S: New file.
2379         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: New file.
2380         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: New file.
2382 2004-06-30  Ulrich Drepper  <drepper@redhat.com>
2384         * include/net/if.h: Handle if_nameindex and if_freenameindex with
2385         libc_proto_hidden.
2386         * sysdeps/unix/sysv/linux/netlinkaccess.h: New file.
2387         * sysdeps/unix/sysv/linux/ifaddrs.c: Export netlink handling functions.
2388         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Implement using
2389         netlink if possible.  Fall back on ioctl method if necessary.
2390         * sysdeps/unix/sysv/linux/Dist: Add netlinkaccess.h.
2392         * include/unistd.h: Declare __truncate.
2393         * sysdeps/generic/truncate.c: Also define __truncate.
2394         * sysdeps/mach/hurd/truncate.c: Likewise.
2395         * sysdeps/unix/common/syscalls.list: Likewise.
2396         * sysdeps/unix/sysv/linux/truncate64.c: Use __truncate, not truncate.
2398 2004-06-29  Ulrich Drepper  <drepper@redhat.com>
2400         * stdio-common/printf-parsemb.c (__parse_one_specmb): Initialize
2401         info.extra.  Patch by Marcus Meissner.
2403 2004-06-29  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2405         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
2406         Fix branch offset for a PLT entry.
2408 2004-06-20  Jim Meyering  <jim@meyering.net>
2410         * malloc/obstack.h (obstack_base): Cast to `void *', to align with
2411         documentation.
2413 2004-06-28  Ulrich Drepper  <drepper@redhat.com>
2415         * inet/bug-if1.c (do_test): Simply use 0 as invalid index.
2416         Workaround for [BZ #232].
2418         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Use extend_alloca.
2420 2004-06-28  GOTO Masanori  <gotom@debian.or.jp>
2422         * iconv/gconv_simple.c: Use get16/put16 for user given buffer
2423         in ucs2/ucs2reverse when unaligned memory access is attempted.
2424         * iconv/tst-iconv5.c: New file.
2425         * iconv/Makefile (tests): Add tst-iconv5.
2427 2004-06-28  Jakub Jelinek  <jakub@redhat.com>
2429         * inet/bug-if1.c: Include <string.h>.
2431 2004-06-19  Roland McGrath  <roland@redhat.com>
2433         * sysdeps/posix/waitid.c (do_waitid) [DO_WAITID]: Define function
2434         under this macro name instead.
2435         [NO_DO_WAITID]: Don't define it at all.
2436         (do_waitid) [WNOWAIT, WEXITED]: If these POSIX.1 waitid flag bits are
2437         defined, then return ENOTSUP for combinations of selection bits other
2438         than WEXITED and WEXITED|WSTOPPED, which this version cannot support.
2440         * posix/tst-waitid.c: New file.
2441         * posix/Makefile (tests): Add it.
2443 2004-06-28  Jakub Jelinek  <jakub@redhat.com>
2445         * sysdeps/unix/alpha/sysdep.h (inline_syscall6): Fix a typo.
2447         [BZ #231]
2448         * sysdeps/unix/alpha/sysdep.S (__syscall_error): Avoid !samegp
2449         relocation in librt.so.
2451         [BZ #230]
2452         * sysdeps/alpha/dl-machine.h (_dl_start_user): Use ldah/ldl to load
2453         _dl_skip_args.  Patch by Jakub Bogusz <qboosh@pld-linux.org>.
2455 2004-06-27  Ulrich Drepper  <drepper@redhat.com>
2457         * elf/ldconfig.c (add_dir): Take chroot into account.
2458         Based on changes by HJ Lu and Hideki Iwamoto.
2460         * nscd/connections.c (invalidate_cache): If the host cache has to
2461         be invalidated, re-read resolv.conf.
2463         * resolv/resolv.h (RES_NOIP6DOTINT): Define.
2464         * resolv/res_init.c (res_setoptions): Handle no-ip6-dotint option.
2465         * resolv/gethnamaddr.c (gethostbyaddr): Don't lookup with .ip6.int
2466         if RES_NOIP6DOTINT flag is set.
2467         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
2469 2004-06-25  Jakub Jelinek  <jakub@redhat.com>
2471         * sysdeps/unix/sysv/linux/powerpc/fcntl.c: Move to...
2472         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fcntl.c: ... here.
2473         * sysdeps/unix/sysv/linux/powerpc/lockf64.c: Move to...
2474         * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: ... here.
2475         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: New file.
2477         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_GETLK, F_SETLK,
2478         F_SETLKW): Fix values for -m32 -D_FILE_OFFSET_BITS=64.
2480 2004-06-21  Jakub Jelinek  <jakub@redhat.com>
2482         [BZ #231]
2483         * sysdeps/unix/alpha/Makefile: New file.
2484         * sysdeps/unix/alpha/rt-sysdep.S: New file.
2485         Reported by Jakub Bogusz <qboosh@pld-linux.org>.
2487 2004-06-18  Ulrich Drepper  <drepper@redhat.com>
2489         * sysdeps/posix/getaddrinfo.c (gaih_inet): For AI_CANONNAME,
2490         determine the canonical name only for the first returned entry.
2492         * inet/bug-if1.c: New file.
2493         * inet/Makefile (tests): Add bug-if1.
2495 2004-06-18  Roland McGrath  <roland@frob.com>
2497         * Makerules (compile-mkdep-flags): Add -MT $@.
2499         * Makefile (dist, tag-for-dist): New targets.
2500         (files-for-dist, tag-of-stem): New variables.
2501         (glibc-%.tar glibc-linuxthreads-%.tar): New pattern rule.
2502         Make tar files using cvs export.
2503         (%.bz2, %.gz, tag-%): New pattern rules.
2504         (distribute): Variable removed.
2505         (+subdir_targets): Remove distinfo targets.
2506         (echo_subdirs, echo-distinfo, parent_echo-distinfo): Targets removed.
2507         (rpm/%): Pattern rule removed.
2508         * rpm/Makefile, rpm/rpmrc, rpm/template: Ancient cruft files removed.
2509         * Rules (subdir_echo-headers, subdir_echo-distinfo, subdir_dist):
2510         Targets removed.
2511         * Makerules (dist, subdir_distinfo): Targets removed.
2512         ($(objpfx)distinfo): Depend on $(distribute).
2513         * Make-dist: File removed.
2515         * NEWS: Fix a typo.  Update bug-reporting instructions.
2517 2004-06-17  Thorsten Kukuk  <kukuk@suse.de>
2519         * sysdeps/unix/sysv/linux/sched_setaffinity.c
2520         (__sched_setaffinity_new): Set errno to EINVAL and return -1 if
2521         cpuset is wrongly set.
2523 2004-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
2525         * sysdeps/powerpc/powerpc64/memcpy.S: Improve instruction scheduling
2526         for POWER4 machines.
2528 2004-06-14  Jakub Jelinek  <jakub@redhat.com>
2530         [BZ #218]
2531         * sunrpc/pmap_prot2.c (xdr_pmaplist): When freeing, remember pml_next
2532         in a local variable, point rp to that local variable afterwards.
2534 2004-06-11  Jakub Jelinek  <jakub@redhat.com>
2536         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Handle special
2537         cases properly.
2539 2004-06-17  Ulrich Drepper  <drepper@redhat.com>
2541         * sysdeps/unix/sysv/linux/if_index.c (if_indextoname): Correct
2542         error value for unknown interface. [BZ #198]
2544 2004-06-13  Jakub Jelinek  <jakub@redhat.com>
2546         * sysdeps/i386/bits/string.h (memcpy): Add () around arguments.
2547         (memchr, __memrchr, strlen, strcmp, strncmp, __strchr_g, __strchr_c,
2548         __strchrnul_g, __strchrnul_c, strspn, strcspn, strpbrk): Add memory
2549         the asm uses as its input, either of size __n where __n is known or
2550         0xfffffff.
2551         (strstr): Add "memory" clobber.
2553 2004-06-14  Jakub Jelinek  <jakub@redhat.com>
2555         [BZ #219]
2556         * nss/nsswitch.c (free_mem): Don't try to close a library handle
2557         if the handle is invalid.  Patch by David Kimdon <kimdon@esrf.fr>.
2559 2004-06-11  Dmitry V. Levin  <ldv@altlinux.org>
2561         [BZ #217]
2562         * debug/xtrace.sh: Fix typo in error diagnostics.
2564 2004-06-14  Andreas Schwab  <schwab@suse.de>
2566         * stdio-common/psignal.c (psignal): Don't use BUF when asprintf
2567         failed.
2569 2004-06-15  Steven Munroe  <sjmunroe@us.ibm.com>
2571         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix pasto
2572         that clobbers r19.  Fix pasto that overflowed sigcontext.v_reserve.
2573         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Fix pasto
2574         that clobbers r19.
2575         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Fix pasto
2576         that clobbers r19.  Fix pasto that overflowed sigcontext.v_reserve.
2577         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S:
2578         Fix setting of sigcontext.v_regs.  Fix pasto that clobbers r19.
2579         Fix pasto that overflowed sigcontext.v_reserve.
2580         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S:
2581         Fix pasto that clobbers r19.
2582         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Fix setting
2583         of sigcontext.v_regs.  Fix pasto that clobbers r19.  Fix pasto that
2584         overflowed sigcontext.v_reserve.
2586 2004-05-04  H.J. Lu  <hongjiu.lu@intel.com>
2588         [BZ #150]
2589         * sysdeps/generic/strtol_l.c (DEF): Use ".gnu.linkonce.r."
2590         instead of ".gnu.linkonce.ro." as the prefix for linkonce
2591         read-only section name.
2593 2004-06-14  Richard Henderson  <rth@redhat.com>
2595         * sysdeps/alpha/div_libc.h (_ITOFS): Use "sp" not "$sp".
2596         (_ITOFT, _FTOIT, _ITOFT2): Likewise.
2598 2004-06-08  Jakub Jelinek  <jakub@redhat.com>
2600         * sysdeps/s390/s390-32/backtrace.c (init): Guard with #ifdef SHARED.
2601         (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
2602         (__backtrace): Don't call init #ifndef SHARED.
2603         * sysdeps/s390/s390-64/backtrace.c (init): Guard with #ifdef SHARED.
2604         (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
2605         (__backtrace): Don't call init #ifndef SHARED.
2606         * sysdeps/ia64/backtrace.c (init): Guard with #ifdef SHARED.
2607         (unwind_backtrace, unwind_getip): Define #ifndef SHARED.
2608         (__backtrace): Don't call init #ifndef SHARED.
2610 2004-06-11  Roland McGrath  <roland@redhat.com>
2612         * sysdeps/arm/strlen.S [__ARMEB__]: Compute correctly for big-endian.
2613         From Krzysztof Halasa <khc@pm.waw.pl>.
2615 2004-06-10  Jakub Jelinek  <jakub@redhat.com>
2617         * elf/tls-macros.h [__s390x__] (TLS_LD, TLS_GD): Clobber also r14.
2619 2004-06-08  Jakub Jelinek  <jakub@redhat.com>
2621         [BZ #199]
2622         * crypt/md5-crypt.c (__md5_crypt): Only update buflen if realloc
2623         succeeds.  Reported by Miles Ohlrich <miles@cray.com>.
2625         * elf/chroot_canon.c (chroot_canon): Avoid segfault if first malloc
2626         fails.  Avoid memory leak if realloc fails.
2628 2004-06-09  Jakub Jelinek  <jakub@redhat.com>
2630         * sysdeps/generic/setenv.c (setenv): Return -1/EINVAL if name is
2631         NULL, "" or contains '=' character in it.  Reported by
2632         Michael T Kerrisk <mtk-lists@gmx.net>.
2633         * stdlib/tst-environ.c: Include errno.h.
2634         (main): Add tests for these arguments to setenv/unsetenv.
2636 2004-06-07  Roland McGrath  <roland@frob.com>
2638         * NEWS: Update bug reporting instructions.  Fix some typos.
2640 2004-06-05  Ulrich Drepper  <drepper@redhat.com>
2642         * stdio-common/_itoa.h: Don't expand _itoa inline for libc.
2643         * stdio-common/_itoa.c: Add _itoa implementation.
2645         * nscd/nscd_gethst_r.c (__nscd_open_socket): Change implementation
2646         to also send request.  Add parameter to allow this.
2647         Change callers.
2648         * nscd/nscd_getgr_r.c: Change __nscd_open_socket caller.
2649         * nscd/nscd_getpw_r.c: Likewise.
2650         * nscd/nscd-client.h: Change __nscd_open_socket prototype.
2652 2004-06-05  Andreas Jaeger  <aj@suse.de>
2654         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2655         Handle more than 6 args correctly.  Based on a patch by Masahide
2656         Washizawa <washi@jp.ibm.com>.
2658 2004-06-04  Ulrich Drepper  <drepper@redhat.com>
2660         * nscd/nscd_gethst_r.c (nscd_gethst_r): Use __nss_not_use_nscd_hosts
2661         in all places, not __nss_not_use_nscd_group.
2662         Reported by Philippe Gregoire.
2664 2004-06-03  Ulrich Drepper  <drepper@redhat.com>
2666         * sysdeps/i386/i486/bits/atomic.h: Optimize a bit.
2668 2004-05-07  Dmitry V. Levin  <ldv@altlinux.org>
2670         * argp/argp-help.c (__argp_error, __argp_failure): Check result
2671         of __asprintf call and don't use string if it failed.
2672         * stdio-common/psignal.c (psignal): Likewise.
2673         * locale/programs/localedef.c (more_help): Likewise.
2674         * resolv/res_hconf.c (arg_service_list, arg_trimdomain_list,
2675         arg_bool, parse_line): Check result of __asprintf calls and
2676         don't use string if they failed.
2677         * sunrpc/svc_simple.c (registerrpc, universal): Likewise.
2678         * elf/ldconfig.c (parse_conf_include): Check result of __asprintf
2679         call and exit if it failed.
2681 2004-05-10  Jakub Jelinek  <jakub@redhat.com>
2683         * sysdeps/posix/sysconf.c (__sysconf) <cases _SC_REALTIME_SIGNALS,
2684         _SC_PRIORITY_SCHEDULING, _SC_TIMERS, _SC_ASYNCHRONOUS_IO,
2685         _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO, _SC_FSYNC, _SC_MAPPED_FILES,
2686         _SC_MEMLOCK, _SC_MEMLOCK_RANGE, _SC_MEMORY_PROTECTION,
2687         _SC_MESSAGE_PASSING, _SC_SEMAPHORES, _SC_SHARED_MEMORY_OBJECTS,
2688         _SC_THREADS, _SC_THREAD_SAFE_FUNCTIONS, _SC_THREAD_ATTR_STACKADDR,
2689         _SC_THREAD_ATTR_STACKSIZE, _SC_THREAD_PRIORITY_SCHEDULING,
2690         _SC_THREAD_PRIO_INHERIT, _SC_THREAD_PRIO_PROTECT,
2691         _SC_THREAD_PROCESS_SHARED>: Return _POSIX_* value instead of 1.
2692         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2693         <case _SC_MONOTONIC_CLOCK>: Return _POSIX_VERSION instead of 1.
2695 2004-05-07  Jeroen Dekkers  <jeroen@dekkers.cx>
2697         * sysdeps/mach/hurd/i386/Makefile (CFLAGS-init-first.c): Add
2698         -momit-leaf-frame-pointer.
2700         * inet/test-ifaddrs.c (addr_string): Surround AF_PACKET case with
2701         #ifdef AF_PACKET.
2703         * sysdeps/mach/hurd/getcwd.c
2704         (_hurd_canonicalize_directory_name_intern): Only realloc when
2705         size is <= 0.
2707         * sysdeps/mach/hurd/mmap.c (__mmap): Fail when addr or offset
2708         isn't page aligned.
2710         * sysdeps/mach/hurd/spawni.c (EXPAND_DTABLE): Set dtablesize to
2711         new size.
2713         * sysdeps/mach/hurd/Versions (GLIBC_PRIVATE): Add __libc_read,
2714         __libc_write and __libc_lseek64.
2716 2004-05-29  Roland McGrath  <roland@redhat.com>
2718         * elf/Makefile (shared-only-routines): Add dl-caller.
2720 2004-05-28  Ulrich Drepper  <drepper@redhat.com>
2722         * sysdeps/powerpc/configure.in: New file.
2724 2004-05-28  Steven Munroe  <sjmunroe@us.ibm.com>
2726         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Add .machine
2727         "altivec" to enable VMX instructions.
2728         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
2729         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
2730         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
2731         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
2732         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
2733         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
2734         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
2735         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
2736         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
2738 2004-05-27  Jakub Jelinek  <jakub@redhat.com>
2740         * sysdeps/i386/fpu/bits/mathinline.h (__expm1_code): Define using
2741         __builtin_expm1l for GCC 3.5+.
2742         (__expl): Define using __builtin_expl for GCC 3.4+.
2743         (exp, expf, expl): Don't define for GCC 3.4+.
2744         (tan, tanf, tanl): Don't define for GCC 3.5+.
2745         (__atan2l): Define using __builtin_atan2l for GCC 3.4+.
2746         (atan2, atan2f, atan2l): Don't define for GCC 3.4+ or !__FAST_MATH__.
2747         (fmod, fmodf, fmodl): Don't define for GCC 3.5+ or !__FAST_MATH__.
2748         (fabsf, fabsl): Only provide if __USE_MISC or __USE_ISOC99.
2749         (sin, sinf, sinl, cos, cosf, cosl, log, logf, logl): Don't define
2750         for GCC 3.4+.
2751         (log10, log10f, log10l, asin, asinf, asinl, acos, acosf, acosl):
2752         Don't define for GCC 3.5+.
2753         (atan, atanf, atanl): Don't define for GCC 3.4+ or !__FAST_MATH__.
2754         (log1p, log1pf, log1pl, logb, logbf, logbl, log2, log2f, log2l): Don't
2755         define for GCC 3.5+.
2756         (drem, dremf, dreml): Don't define for GCC 3.5+ or !__FAST_MATH__.
2757         * sysdeps/sparc/fpu/bits/mathinline.h (sqrt, sqrtf, sqrtl): Don't
2758         define for GCC 3.2+.
2760 2004-05-27  Jakub Jelinek  <jakub@redhat.com>
2762         * string/bits/string2.h (__bzero): Define even for GCC 3.0+.
2763         * sysdeps/alpha/stpcpy.S (stpcpy): Add libc_hidden_builtin_def.
2764         * sysdeps/alpha/alphaev67/stpcpy.S (stpcpy): Likewise.
2765         * sysdeps/powerpc/powerpc32/stpcpy.S (stpcpy): Likewise.
2766         * sysdeps/powerpc/powerpc64/stpcpy.S (stpcpy): Likewise.
2767         * sysdeps/sparc/sparc32/stpcpy.S (stpcpy): Likewise.
2768         * sysdeps/sparc/sparc64/stpcpy.S (stpcpy): Likewise.
2769         * sysdeps/i386/stpcpy.S (stpcpy): Likewise.
2770         * sysdeps/i386/i586/stpcpy.S (stpcpy): Likewise.
2771         * sysdeps/generic/stpcpy.c (stpcpy): Likewise.
2772         * sysdeps/x86_64/stpcpy.S (stpcpy): Likewise.
2773         * sysdeps/i386/i586/memcpy.S (memcpy): Remove
2774         libc_hidden_builtin_def if MEMPCPY_P.
2775         * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
2776         * sysdeps/i386/i686/mempcpy.S (mempcpy): Add libc_hidden_builtin_def.
2777         * sysdeps/i386/i586/mempcpy.S (mempcpy): Likewise.
2778         * sysdeps/generic/mempcpy.c (mempcpy): Likewise.
2779         * sysdeps/x86_64/mempcpy.S (mempcpy): Likewise.
2781 2004-05-26  Roland McGrath  <roland@frob.com>
2783         * sysdeps/generic/bits/in.h
2784         (IMPLINK_IP, IMPLINK_LOWEXPER, IMPLINK_HIGHEXPER): Macros removed.
2785         These are long obsolete in BSD systems where they originated.
2786         * conform/data/netinet/in.h-data: Remove `allow IMPLINK_*'
2788 2004-05-26  Jakub Jelinek  <jakub@redhat.com>
2790         * include/string.h (mempcpy, stpcpy): Add libc_hidden_builtin_proto.
2791         * string/bits/string2.h (memset): Disable macro for GCC 3.0+.
2792         (__mempcpy): Use __builtin_mempcpy for GCC 3.4+.
2793         (strchr): For GCC 3.2+, only use __rawmemchr if second argument is
2794         constant '\0' and first argument is not constant.
2795         (__stpcpy): Use __builtin_stpcpy for GCC 3.4+.
2796         (strncpy): Remove #ifdef _USE_STRING_ARCH_mempcpy variant.
2797         For GCC 3.2+ use __builtin_strncpy.
2798         (strncat): For GCC 3.2+ use __builtin_strncat.
2799         (strcmp): For GCC 3.2+ use __builtin_strcmp if both arguments are
2800         constant.
2801         (strcspn, strspn, strpbrk): For GCC 3.2+, use builtin function
2802         if both arguments are constant.
2804 2004-05-26  Ulrich Drepper  <drepper@redhat.com>
2806         * nss/nss_files/files-hosts.c: Fix condition for looking up IPv4
2807         mapped addresses in gethostbyaddr.
2809 2004-05-25  Ulrich Drepper  <drepper@redhat.com>
2811         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove typep and
2812         flags parameter, convert afp to simple int parameter.  Adjust code.
2813         typep was never != NULL and flags therefore also unused.  *afp is
2814         never modified.
2815         * nss/nsswitch.h: Adjust __nss_hostname_digits_dots prototype.
2816         * nss/getXXbyYY.c: Remove HAVE_TYPE handling.  Adjust af parameter
2817         handling for __nss_hostname_digits_dots calls.
2818         * nss/getXXbyYY_r.c: Likewise.
2820         * elf/dl-load.c (_dl_map_object_from_fd): Map DSOs with MAP_DENYWRITE.
2822 2004-05-25  Steven Munroe  <sjmunroe@us.ibm.com>
2824         * sysdeps/powerpc/fpu/Makefile: Make ld.so a dependency of libm.so.
2825         * sysdeps/powerpc/fpu/bits/mathinline.h [__LIBC_INERNAL_MATH_INLINES]
2826         (__ieee754_sqrt): Define as __MATH_INLINE using fsqrt instruction.
2827         (__ieee754_sqrtf): Define as __MATH_INLINE using fsqrts instruction.
2828         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Moved
2829         implementation from w_sqrt.c.
2830         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Moved
2831         implementation from w_sqrtf.c.
2832         * sysdeps/powerpc/fpu/w_sqrt.c (__sqrt): Wrapper implementation
2833         using inline __ieee754_sqrt().
2834         * sysdeps/powerpc/fpu/w_sqrtf.c (__sqrtf): Wrapper implementation
2835         using inline __ieee754_sqrtf().
2836         * sysdeps/powerpc/powerpc32/sysdep.h [__ASSEMBLER__]: Include
2837         <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__.
2838         * sysdeps/powerpc/sysdep.h [__ASSEMBLER__] (PPC_FEATURE_*): Define
2839         PPC_FEATURE_*  independent of __ASSEMBLER__.
2841 2004-05-25  Jakub Jelinek  <jakub@redhat.com>
2843         * sysdeps/pthread/aio_notify.c: Use <> instead of "" for aio_misc.h
2844         include.
2845         (aio_start_notify_thread): Define if not defined.
2846         (notify_func_wrapper): Use it.
2847         * sysdeps/pthread/aio_misc.c: Use <> instead of "" for aio_misc.h
2848         include.
2849         (aio_create_helper_thread): Define if not defined.
2850         (__aio_create_helper_thread): New function.
2851         (__aio_enqueue_request): Use aio_create_helper_thread.
2853         * nis/ypclnt.c (ypall_data, ypall_foreach): Remove.
2854         (struct ypresp_all_data): New type.
2855         (__xdr_ypresp_all): Change second argument to
2856         struct ypresp_all_data *.  Replace ypall_foreach and
2857         ypall_data with objp->foreach and objp->data.
2858         (yp_all): Remove status variable, add data.  Replace
2859         all uses of status with data.status.  Initialize data.foreach
2860         and data.data instead of ypall_foreach and ypall_data.
2862 2004-05-24  Jakub Jelinek  <jakub@redhat.com>
2864         * elf/dl-lookup.c (add_dependency): Set DF_1_NODELETE bit
2865         in l_flags_1, not in l_flags.
2867 2004-04-10  Robert Millan  <robertmh@gnu.org>
2869         * sysdeps/unix/sysv/linux/bits/in.h: Cosmetic fixes to get in sync
2870         with sysdeps/generic/bits/in.h.
2872 2004-05-25  Roland McGrath  <roland@frob.com>
2874         * sysdeps/generic/unwind-dw2-fde-glibc.c: Change copyright terms from
2875         GCC GPL to standard glibc LGPL.
2877 2004-05-24  Ulrich Drepper  <drepper@redhat.com>
2879         * manual/string.texi (Copying and Concatenation): Fixed second
2880         concat example.
2881         Reported by Fabian Pietsch <fabian@zzznowman.dyndns.org>.
2883 2004-05-23  Ulrich Drepper  <drepper@redhat.com>
2885         * malloc/obstack.c: Don't allow linking with _obstack.
2887 2004-05-23  Andreas Schwab  <schwab@suse.de>
2889         * sysdeps/m68k/m68020/bits/atomic.h: Use "+m" constraint instead
2890         of separate "m" constraints.
2892 2004-05-15  Chris Demetriou  <cgd@broadcom.com>
2894         * sysdeps/mips/dl-machine.h (ELF_DL_FRAME_SIZE)
2895         (ELF_DL_SAVE_ARG_REGS, ELF_DL_RESTORE_ARG_REGS): For the N32
2896         and 64 ABIs, save and restore regs $10 and $11 (a6 and a7).
2898 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
2900         * malloc/obstack.c (_obstack) [!defined _LIBC]: Remove; not used.
2901         Add comment explaining why libc still defines it.
2903 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2905         * malloc/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
2906         obstack_alignment_mask, obstack_alloc, obstack_base,
2907         obstack_blank, obstack_blank_fast, obstack_chunk_size,
2908         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
2909         obstack_grow0, obstack_init, obstack_int_grow,
2910         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
2911         obstack_next_free, obstack_object_size, obstack_ptr_grow,
2912         obstack_ptr_grow_fast, obstack_room): Remove declarations of
2913         nonexistent functions.
2915 2004-05-18  Steven Munroe  <sjmunroe@us.ibm.com>
2917         * sysdeps/powerpc/powerpc64/sysdep.h [__ASSEMBLER__]: Include
2918         <sysdeps/powerpc/sysdep.h> independent of __ASSEMBLER__.
2919         [PIC]: Redundent for powerpc64, removed.
2920         (ENTRY): Generate size and alignment for opd entry.
2921         (EALIGN): Generate size and alignment for opd entry.
2922         (END): Use DOT_LABEL in ASM_SIZE_DIRECTIVE.
2923         (END_GEN_TB): Use DOT_LABEL in ASM_SIZE_DIRECTIVE.
2925 2004-05-19  Ulrich Drepper  <drepper@redhat.com>
2927         * misc/regexp.h: Say the functions have been withdrawn.
2929         * wcsmbs/tst-wcpncpy.c: Add more tests.
2931 2004-05-18  Roland McGrath  <roland@frob.com>
2933         * sysdeps/generic/unwind.h: Change copyright terms from GCC GPL to
2934         standard glibc LGPL.
2935         * sysdeps/generic/unwind-dw2.c: Likewise.
2936         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
2937         * sysdeps/generic/unwind-dw2-fde.h: Likewise.
2938         * sysdeps/generic/unwind-pe.h: Likewise.
2940 2004-05-15  Petter Reinholdtsen  <pere@hungry.com>
2942         * locale/iso-3166.def: Remove YUGOSLAVIA and insert "SERBIA AND
2943         MONTENEGRO" which have taken over the code 819.  Patch from
2944         Danilo Segan. [BZ #40]
2946 2004-05-15  Jakub Jelinek  <jakub@redhat.com>
2948         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
2949         (SYSCALL_ERROR_HANDLER): Rename __sparc.get_pic.l7 to
2950         __sparc_get_pic_l7.
2952 2004-05-15  Joseph S. Myers  <jsm@polyomino.org.uk>
2954         * catgets/gencat.c: Update bug reporting instructions.
2955         * csu/version.c: Likewise.
2956         * debug/catchsegv.sh: Likewise.
2957         * debug/pcprofiledump.c: Likewise.
2958         * debug/xtrace.sh: Likewise.
2959         * elf/ldd.bash.in: Likewise.
2960         * iconv/iconv_prog.c: Likewise.
2961         * iconv/iconvconfig.c: Likewise.
2962         * locale/programs/locale.c: Likewise.
2963         * locale/programs/localedef.c: Likewise.
2964         * login/programs/pt_chown.c: Likewise.
2965         * malloc/memusage.sh: Likewise.
2966         * malloc/memusagestat.c: Likewise.
2967         * malloc/mtrace.pl: Likewise.
2968         * manual/crypt.texi: Likewise.
2969         * manual/install.texi: Likewise.
2970         * nss/makedb.c: Likewise.
2972 2004-05-14  Jakub Jelinek  <jakub@redhat.com>
2974         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Only
2975         CHECK_STATIC_TLS if sym != NULL.
2976         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
2977         * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
2979 2004-05-12  Andreas Schwab  <schwab@suse.de>
2981         * posix/regex_internal.c (build_wcs_buffer): Also set pstr->mbs
2982         when translating.
2984 2004-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2986         * Rules (xtests): Depend on tests.
2988 2004-05-13  Jakub Jelinek  <jakub@redhat.com>
2990         * libio/genops.c (_IO_default_xsputn): Avoid one overflow per char if
2991         count is negative, yet write_ptr < write_end.
2992         (_IO_default_xsgetn): Avoid one underflow per char if count is
2993         negative, yet read_ptr < read_end.
2995 2004-05-12  Steven Munroe  <sjmunroe@us.ibm.com>
2997         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XTABS): Define XTABS
2998         equal to TAB3.
3000 2004-05-12  Ulrich Drepper  <drepper@redhat.com>
3002         * elf/dl-lookup.c (_dl_lookup_symbol_x): Correct _dl_signal_cerror
3003         call.
3005 2004-05-10  Roland McGrath  <roland@frob.com>
3007         * hurd/hurdlookup.c (__hurd_file_name_split): Return ENOENT for "".
3008         (__hurd_directory_name_split): Likewise.
3010 2004-05-10  Ulrich Drepper  <drepper@redhat.com>
3012         * po/fr.po: Update from translation team.
3014 2004-05-10  Andreas Jaeger  <aj@suse.de>
3016         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
3017         Correctly compute alignment.
3018         Patch by Michael Matz <matz@suse.de>.
3020 2004-05-09  Ulrich Drepper  <drepper@redhat.com>
3022         * sysdeps/generic/sigpause.c: Prevent sigpause prototype.
3023         * sysdeps/posix/sigpause.c: Likewise.
3024         * signal/signal.h: Don't define sigpause macro unless needed.
3026 2004-05-08  Jakub Jelinek  <jakub@redhat.com>
3028         * configure.in (libc_cv_libgcc_s_suffix): New check.
3029         (libc_cv_as_needed): Use -lgcc_s$libc_cv_libgcc_s_suffix.
3030         * config.make.in (libgcc_s_suffix): Set.
3031         * Makeconfig (libgcc_eh): Use -lgcc_s$(libgcc_s_suffix).
3033 2004-05-08  Ulrich Drepper  <drepper@redhat.com>
3035         * signal/signal.h: Use BSD sigpause only if BSD behavior is preferred.
3037 2004-04-29  Steven Munroe  <sjmunroe@us.ibm.com>
3039         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_1,
3040         LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6):
3041         Load argument values into temporary variables.
3042         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_1,
3043         LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5, LOADARGS_6):
3044         Likewise.
3046 2004-05-07  Ulrich Drepper  <drepper@redhat.com>
3048         * sysdeps/unix/sysv/linux/Makefile: mq_send.c and mq_receive.c
3049         need to be compiled with exceptions.
3051 2004-05-06  Ulrich Drepper  <drepper@redhat.com>
3053         * sysdeps/unix/sysv/linux/ifreq.c (__ifreq): Fix memory handling.
3054         * sysdeps/generic/ifreq.c (__ifreq): Fix memory handling.
3056         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Make clear that
3057         realloc cannot fail.
3059         * nss/nss_files/files-netgrp.c (EXPAND): Free buffer which cannot
3060         be expanded.
3062         * nis/nis_table.c: Clean up memory handling.
3063         * nis/nis_subr.c (nis_getnames): Clean up memory handling.
3064         * nis/nis_removemember.c (nis_removemember): Add comment
3065         explaining use of realloc.
3067         * math/tgmath.h (fabs): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL.
3068         (carg): Likewise.
3069         Patch by Lev S Bishop <lev.bishop@yale.edu>.
3071         * math/bug-tgmath1.c (main): Test fabs and carg as well.
3073 2004-05-06  Richard Henderson  <rth@redhat.com>
3075         * elf/elf.h (AT_L1I_CACHESHAPE, AT_L1D_CACHESHAPE,
3076         AT_L2_CACHESHAPE, AT_L3_CACHESHAPE): New.
3077         * sysdeps/unix/sysv/linux/alpha/Versions: Export
3078         __libc_alpha_cache_shape as a private symbol.
3079         * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c: New file.
3080         * sysdeps/unix/sysv/linux/alpha/sysconf.c: New file.
3082 2004-05-06  Richard Henderson  <rth@redhat.com>
3084         * sysdeps/alpha/div_libc.h (_ITOFS, _ITOFT, _FTOIT, _ITOFT2): New.
3085         * sysdeps/alpha/divl.S: Use them.
3086         * sysdeps/alpha/divq.S: Likewise.
3087         * sysdeps/alpha/divqu.S: Likewise.
3088         * sysdeps/alpha/reml.S: Likewise.
3089         * sysdeps/alpha/remq.S: Likewise.
3090         * sysdeps/alpha/remqu.S: Likewise.
3092 2004-05-06  Ulrich Drepper  <drepper@redhat.com>
3094         * math/tgmath.h (__TGMATH_UNARY_REAL_IMAG_RET_REAL):Define.
3095         (cimag): Use it.
3096         (creal): Likewise.
3097         * math/Makefile (tests): Add bug-tgmath1.
3098         * math/bug-tgmath1.c: New file.
3100 2004-05-05  Jakub Jelinek  <jakub@redhat.com>
3102         * sysdeps/alpha/atomicity.h: Remove.
3103         * sysdeps/generic/atomicity.h: Remove.
3105 2004-05-05  H.J. Lu  <hongjiu.lu@intel.com>
3107         * sysdeps/i386/i486/bits/string.h (strpbrk): Cast return to
3108         char *.
3110 2004-04-22  David Mosberger  <davidm@hpl.hp.com>
3112         * sysdeps/unix/sysv/linux/ia64/Makefile (librt-routines): Mention
3113           rt-sysdep.
3114         * sysdeps/unix/sysv/linux/ia64/rt-sysdep.S: New file.
3116         * sysdeps/ia64/strcat.c: New file.
3117         * sysdeps/ia64/strcat.S: Delete.
3119 2004-05-04  Jakub Jelinek  <jakub@redhat.com>
3121         * sysdeps/unix/sysv/linux/ia64/sysdep.S (USE___THREAD): Remove
3122         defined.
3124 2004-04-23  Jakub Jelinek  <jakub@redhat.com>
3126         * sysdeps/ia64/fpu/libm_support.h (__libm_error_support): Add
3127         libc_hidden_proto.  Define to __GI___libm_error_support for
3128         assembly going into libc.so.
3129         * sysdeps/ia64/fpu/libc_libm_error.c (__libm_error_support): Add
3130         libc_hidden_def.
3132         * include/libc-symbols.h (HIDDEN_BUILTIN_JUMPTARGET): Define.
3133         * sysdeps/ia64/bcopy.S (bcopy): Use it for jump to memmove.
3135         * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Access
3136         gprel errno if RTLD_PRIVATE_ERRNO or __thread __libc_errno/errno
3137         if USE___THREAD.
3139 2004-05-03  Jakub Jelinek  <jakub@redhat.com>
3141         * sysdeps/unix/bsd/bits/fcntl.h (F_SETOWN, F_GETOWN): Define if
3142         __USE_BSD or __USE_UNIX98.
3143         * sysdeps/unix/bsd/ultrix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3144         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3145         * sysdeps/unix/bsd/sun/sunos4/bits/fcntl.h (F_SETOWN, F_GETOWN):
3146         Likewise.
3147         * sysdeps/unix/common/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3148         * sysdeps/unix/sysv/aix/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3149         * sysdeps/unix/sysv/irix4/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3150         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_SETOWN, F_GETOWN):
3151         Likewise.
3152         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_SETOWN, F_GETOWN):
3153         Likewise.
3154         * sysdeps/unix/sysv/linux/cris/bits/fcntl.h (F_SETOWN, F_GETOWN):
3155         Likewise.
3156         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (F_SETOWN, F_GETOWN):
3157         Likewise.
3158         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_SETOWN, F_GETOWN):
3159         Likewise.
3160         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN, F_GETOWN):
3161         Likewise.
3162         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (F_SETOWN, F_GETOWN):
3163         Likewise.
3164         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (F_SETOWN, F_GETOWN):
3165         Likewise.
3166         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (F_SETOWN, F_GETOWN):
3167         Likewise.
3168         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (F_SETOWN, F_GETOWN):
3169         Likewise.
3170         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (F_SETOWN, F_GETOWN):
3171         Likewise.
3172         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (F_SETOWN, F_GETOWN):
3173         Likewise.
3174         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (F_SETOWN, F_GETOWN):
3175         Likewise.
3176         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3177         * sysdeps/mach/hurd/bits/fcntl.h (F_SETOWN, F_GETOWN): Likewise.
3178         * io/sys/stat.h (S_ISSOCK, S_IFSOCK): Likewise.
3180 2004-05-01  Jakub Jelinek  <jakub@redhat.com>
3182         * posix/Versions (libc): Remove __libc_wait, __libc_waitpid,
3183         __libc_pause, __libc_nanosleep, __libc_pread, __libc_pread64,
3184         __libc_pwrite64, __waitid and __pselect @@GLIBC_PRIVATE.
3185         * stdlib/Versions (libc): Remove __on_exit@@GLIBC_PRIVATE.
3186         * sysdeps/unix/sysv/linux/Versions (libc): Remove
3187         __libc_sigaction@@GLIBC_PRIVATE.
3188         * sysdeps/unix/sysv/linux/x86_64/Versions (libc): Remove
3189         __modify_ldt@@GLIBC_PRIVATE.
3190         * socket/Versions (libc): Remove __libc_accept, __libc_send,
3191         __libc_recvfrom, __libc_recvmsg, __libc_sendmsg, __libc_recv,
3192         __libc_sendto and __libc_connect @@GLIBC_PRIVATE.
3193         * stdio-common/Versions (libc): Remove
3194         _itoa_upper_digits@@GLIBC_PRIVATE.
3195         * resolv/Versions (libresolv): Remove __ns_samename@@GLIBC_PRIVATE.
3196         * misc/Versions (libc): Remove __libc_fsync, __libc_msync,
3197         __libc_readv and __libc_writev @@GLIBC_PRIVATE.
3198         * termios/Versions (libc): Remove __libc_tcdrain@@GLIBC_PRIVATE.
3199         * io/Versions (libc): Remove __libc_open, __libc_close, __libc_read,
3200         __libc_write, __libc_lseek, __libc_fcntl, __libc_open64 and
3201         __libc_lseek64 @@GLIBC_PRIVATE.
3203 2004-04-30  Jakub Jelinek  <jakub@redhat.com>
3205         * elf/dl-load.c (open_verify): Move e_phentsize check after e_type
3206         check.
3208 2004-04-29  Steven Munroe  <sjmunroe@us.ibm.com>
3210         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: New file.
3211         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: New file.
3212         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: New file.
3213         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: New file.
3214         * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: Removed.
3215         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: New file.
3216         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Removed.
3217         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: New file.
3218         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: New file.
3219         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: New file.
3220         * sysdeps/powerpc/powerpc64/fpu/s_lround.S: New file.
3221         * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: New file.
3222         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: New file.
3223         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: New file.
3224         * sysdeps/powerpc/powerpc64/fpu/s_round.S: New file.
3225         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: New file.
3226         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: New file.
3227         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: New file.
3229         * math/test-misc.c [LDBL_MANT_DIG == 106](main): Correct LDBL_MAX
3230         mantissa for AIX long double format.
3231         * misc/qefgcvt.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Define for AIX
3232         long double format.
3233         * misc/qefgcvt_r.c [LDBL_MANT_DIG == 106] (NDIGIT_MAX): Likewise.
3234         * stdlib/fpioconst.c [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024]
3235         (_fpioconst_pow10): AIX long double format has same exponent range as
3236         double.
3237         * stdlib/fpioconst.h [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__>1024]
3238         (LDBL_MAX_10_EXP_LOG): AIX long double format has same exponent range
3239         as double.
3241 2004-04-23  Art Haas  <ahaas@airmail.net>
3243         * sysdeps/unix/sysv/linux/kernel-features.h: Add 'defined'.
3245 2004-04-28  Carlos O'Donell  <carlos@baldric.uwo.ca>
3247         * sysdeps/unix/sysv/linux/mq_getattr.c: Include <stddef.h>.
3248         * sysdeps/unix/sysv/linux/mq_notify.c: Likewise.
3249         * sysdeps/unix/sysv/linux/mq_open.c: Likewise.
3250         * sysdeps/unix/sysv/linux/mq_receive.c: Likewise.
3251         * sysdeps/unix/sysv/linux/mq_send.c: Likewise.
3253 2004-04-29  Philip Blundell  <pb@nexus.co.uk>
3255         * sysdeps/arm/dl-machine.h (RTLD_START): Avoid unnecessary GOT
3256         entries.
3258 2004-04-29  Jakub Jelinek  <jakub@redhat.com>
3260         * manual/resource.texi (sched_setaffinity, sched_getaffinity): Fix
3261         prototypes and description [BZ #131].
3263         * string/bits/string2.h (strpbrk): Cast NULL to char * [BZ #130].
3264         Patch by Ed Catmur <ed@catmur.co.uk>.
3265         * string/tst-inlcall.c (main): Add test for strpbrk.
3267         [BZ #140]
3268         * sysdeps/unix/sysv/linux/sys/sysctl.h: Remove linux/compiler.h
3269         include.
3270         (_LINUX_KERNEL_H, _LINUX_TYPES_H, _LINUX_LIST_H): Only define if not
3271         yet defined, #undef back after including linux/sysctl.h if defined
3272         here.
3273         (__LINUX_COMPILER_H, __user): Define if not yet defined, #undef
3274         back after including linux/sysctl.h if defined here.
3276         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c (_Qp_qtoi): Use %f31
3277         for single precision register, add it to __asm clobbers [BZ #139].
3278         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c (_Qp_qtoui): Use %f31
3279         for single precision register, add it to __asm clobbers.
3280         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c (_Qp_qtoux): Use fqtox
3281         instead of fqtoi in QP_HANDLE_EXCEPTIONS.
3282         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c (_Qp_qtox): Likewise.
3283         Reported by M. H. VanLeeuwen <vanl@megsinet.net>.
3285 2004-04-23  Andreas Schwab  <schwab@suse.de>
3287         * sysdeps/unix/sysv/linux/m68k/register-dump.h: Use
3288         __attribute_used__.
3290 2004-04-22  Philip Blundell  <philb@gnu.org>
3292         * sysdeps/arm/dl-machine.h (elf_machine_rela): Don't use INTUSE
3293         when calling _dl_signal_error.
3294         (elf_machine_rel): Likewise.
3296 2004-04-21  Ulrich Drepper  <drepper@redhat.com>
3298         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Define _GI___sigsetjmp
3299         and use it internally instead of __sigsetjmp.
3300         * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Use _GI___libm_frexp_4f.
3301         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Use _GI___libm_frexp_4l.
3302         * sysdeps/ia64/fpu/libm_frexp4.S: Define _GI___libm_frexp_4.
3303         * sysdeps/ia64/fpu/libm_frexp4f.S: Define _GI___libm_frexp_4f.
3304         * sysdeps/ia64/fpu/libm_frexp4l.S: Define _GI___libm_frexp_4l.
3305         * sysdeps/ia64/fpu/s_frexp.c (frexp): Use _GI___libm_frexp_4.
3306         * sysdeps/ia64/fpu/libm_support.h: Declare _GI___libm_frexp_4,
3307         _GI___libm_frexp_4f, _GI___libm_frexp_4l.
3308         * sysdeps/ia64/fpu/bits/mathinline.h: New file.
3309         * sysdeps/unix/sysv/linux/ia64/__start_context.S: Use
3310         HIDDEN_JUMPTARGET for exit call.
3311         * sysdeps/unix/sysv/linux/ia64/clone2.S: Use HIDDEN_JUMPTARGET for
3312         _exit call.
3313         * sysdeps/ia64/bcopy.S: Use HIDDEN_JUMPTARGET for memmove call.
3314         * sysdeps/ia64/strcat.S: Use HIDDEN_JUMPTARGET for strlen and
3315         strcpy calls.
3317 2004-04-21  Jakub Jelinek  <jakub@redhat.com>
3319         * posix/tst-chmod.c (do_test): Fix a typo.
3321         * elf/lateglobal.c (main): Fix error checks.
3322         Patch by Stephen Clarke <stephen.clarke@st.com>.
3324         * manual/ctype.texi (isblank, iswblank): Mark as ISO functions,
3325         mention they have been added in ISO C99.
3326         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3328 2004-03-31  H.J. Lu  <hongjiu.lu@intel.com>
3330         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Fix typo.
3332 2004-04-20  Jakub Jelinek  <jakub@redhat.com>
3334         * sysdeps/unix/sysv/linux/shm_open.c (shm_unlink): Change EPERM into
3335         EACCES.
3337 2004-04-20  Jakub Jelinek  <jakub@redhat.com>
3339         * stdio-common/vfscanf.c (_IO_vfscanf): Revert last %% whitespace
3340         handling change.
3341         * stdio-common/tst-sscanf.c (int_tests): Adjust.
3343         * nis/nss-nis.c: Include stdlib.h.
3345         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Shut up a
3346         warning.
3347         * sysdeps/sparc/sparc64/memcmp.S (memcmp): Remove BP_SYM () from
3348         libc_hidden_builtin_def.
3350 2004-04-20  Jim Meyering  <jim@meyering.net>
3352         * misc/error.c (error_tail): Don't leak upon realloc failure.
3354 2004-04-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3356         * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable):
3357         Use RETURN_ADDRESS instead of __builtin_return_address.
3359 2004-04-19  Ulrich Drepper  <drepper@redhat.com>
3361         * sysdeps/unix/sysv/linux/mq_unlink.c: Rewrite to produce more
3362         compact code.
3364 2004-04-20  Jakub Jelinek  <jakub@redhat.com>
3366         * stdio-common/vfscanf.c (_IO_vfscanf): When skipping whitespace,
3367         do input_error () instead of conv_error () and don't look at errno.
3368         Don't eat any whitespace before %% if skip_space == 0.
3369         * stdio-common/tst-sscanf.c (int_tests): New array.
3370         (main): Run int_tests.
3373 See ChangeLog.14 for earlier changes.