[BZ #1125]
[glibc.git] / ChangeLog
blob1ad714dae37f9a4e527864e5cf9fd9b0456cec96
1 2005-07-24  Ulrich Drepper  <drepper@redhat.com>
3         [BZ #1125]
4         * posix/Makefile (tests): Add tst-execvp4.
5         * posix/tst-execvp4.c: New file.
7 2005-07-24  Jakub Jelinek  <jakub@redhat.com>
9         [BZ #1125]
10         * posix/execvp.c (execvp): Change path_malloc to
11         char *, free that pointer on failure.
13 -2005-07-24  Ulrich Drepper  <drepper@redhat.com>
15         * wcsmbs/bits/wchar2.h: Use __FILE not FILE.
16         * wcsmbs/Makefile: Add rules to build and run tst-wchar-h.
17         * wcsmbs/tst-wchar-h.c: New file.
19 2005-07-22  Ulrich Drepper  <drepper@redhat.com>
21         * stdio-common/fxprintf.c (__fxprintf): Define variable more local.
23 2005-07-22  Jakub Jelinek  <jakub@redhat.com>
25         * wcsmbs/bits/wchar2.h (__vfwprintf_chk, __vwprintf_chk): Use
26         __gnuc_va_list rather than _G_va_list.
28 2005-07-22  Roland McGrath  <roland@redhat.com>
30         [BZ #869]
31         * Makerules ($(objpfx)stubs): Fix last change.
33 2005-07-21  Roland McGrath  <roland@redhat.com>
35         * nscd/Makefile ($(objpfx)nscd): Pass $(nscd-cflags) to $(LINK.o).
37         * stdlib/Makefile (headers): Move bits/wchar.h to ...
38         * wcsmbs/Makefile (headers): ... here.  Add bits/wchar2.h too.
40 2005-07-21  Jakub Jelinek  <jakub@redhat.com>
42         * wcsmbs/bits/wchar2.h (swprintf): Remove format argument.
43         * debug/tst-chk1.c (do_test): Add test for swprintf with format
44         being the last argument.
46 2005-07-21  Thorsten Kukuk  <kukuk@suse.de>
48         * debug/getgroups_chk.c (__getgroups_chk): Fix return value.
50         * stdio-common/fxprintf.c: Include string.h.
52 2005-07-20  Ulrich Drepper  <drepper@redhat.com>
54         * sysdeps/x86_64/fpu/libm-test-ulps: Adjust expected atan2f results.
55         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
56         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
58 2005-07-20  Bob Wilson  <bob.wilson@acm.org>
59             Darin Petkov  <darin@tensilica.com>
61         * sysdeps/ieee754/flt-32/e_atan2f.c (pi_lo): Correct exponent value.
63 2005-07-20  Jakub Jelinek  <jakub@redhat.com>
65         * include/stdio.h (__fxprintf): Remove wfmt argument.
66         * stdio-common/fxprintf.c: Include assert.h, ctype.h and wchar.h.
67         (__fxprintf): Remove wfmt argument, create wfmt format string on
68         the fly from fmt.
69         * argp/argp-fmtstream.c: Adjust all __fxprintf callers.
70         * argp/argp-help.c: Likewise.
71         * assert/assert-perr.c: Likewise.
72         * assert/assert.c: Likewise.
73         * gmon/gmon.c: Likewise.
74         * inet/rcmd.c: Likewise.
75         * malloc/obstack.c: Likewise.
76         * misc/error.c: Likewise.
77         * misc/getpass.c: Likewise.
78         * posix/getopt.c: Likewise.
79         * resolv/res_hconf.c: Likewise.
80         * stdio-common/perror.c: Likewise.
81         * stdio-common/psignal.c: Likewise.
82         * stdlib/fmtmsg.c: Likewise.
83         * sunrpc/auth_unix.c: Likewise.
84         * sunrpc/clnt_perr.c: Likewise.
85         * sunrpc/clnt_tcp.c: Likewise.
86         * sunrpc/clnt_udp.c: Likewise.
87         * sunrpc/clnt_unix.c: Likewise.
88         * sunrpc/svc_simple.c: Likewise.
89         * sunrpc/svc_tcp.c: Likewise.
90         * sunrpc/svc_udp.c: Likewise.
91         * sunrpc/svc_unix.c: Likewise.
92         * sunrpc/xdr.c: Likewise.
93         * sunrpc/xdr_array.c: Likewise.
94         * sunrpc/xdr_rec.c: Likewise.
95         * sunrpc/xdr_ref.c: Likewise.
96         * sysdeps/generic/wordexp.c: Likewise.
98 2005-07-20  Ulrich Drepper  <drepper@redhat.com>
100         * wcsmbs/bits/wchar2.h: Add definitions for wcrtomb, mbsrtowcs,
101         wcsrtombs, mbsnrtowcs, and wcsnrtombs.
102         * debug/Makefile (routines): Add wcrtomb_chk, mbsrtowcs_chk,
103         wcsrtombs_chk, mbsnrtowcs_chk, and wcsnrtombs_chk.
104         * debug/Versions: Add __wcrtomb_chk, __mbsrtowcs_chk,
105         __wcsrtombs_chk, __mbsnrtowcs_chk, and __wcsnrtombs_chk.
106         * debug/tst-chk1.c: Add tests for new functions.
107         * debug/mbsnrtowcs_chk.c: New file.
108         * debug/mbsrtowcs_chk.c: New file.
109         * debug/wcrtomb_chk.c: New file.
110         * debug/wcsnrtombs_chk.c: New file.
111         * debug/wcsrtombs_chk.c: New file.
113 2005-07-19  Ulrich Drepper  <drepper@redhat.com>
115         * stdio-common/Makefile (aux): Add fxprintf.
116         * stdio-common/fxprintf.c: New file.
117         * include/stdio.h: Add declaration for __fxprintf.
118         * argp/argp-fmtstream.c: Use __fxprintf instead of inline stream
119         orientation test and two separate function calls.
120         * argp/argp-help.c: Likewise.
121         * assert/assert-perr.c: Likewise.
122         * assert/assert.c: Likewise.
123         * gmon/gmon.c: Likewise.
124         * inet/rcmd.c: Likewise.
125         * malloc/obstack.c: Likewise.
126         * misc/error.c: Likewise.
127         * misc/getpass.c: Likewise.
128         * posix/getopt.c: Likewise.
129         * resolv/res_hconf.c: Likewise.
130         * stdio-common/perror.c: Likewise.
131         * stdio-common/psignal.c: Likewise.
132         * stdlib/fmtmsg.c: Likewise.
133         * sunrpc/auth_unix.c: Likewise.
134         * sunrpc/clnt_perr.c: Likewise.
135         * sunrpc/clnt_tcp.c: Likewise.
136         * sunrpc/clnt_udp.c: Likewise.
137         * sunrpc/clnt_unix.c: Likewise.
138         * sunrpc/svc_simple.c: Likewise.
139         * sunrpc/svc_tcp.c: Likewise.
140         * sunrpc/svc_udp.c: Likewise.
141         * sunrpc/svc_unix.c: Likewise.
142         * sunrpc/xdr.c: Likewise.
143         * sunrpc/xdr_array.c: Likewise.
144         * sunrpc/xdr_rec.c: Likewise.
145         * sunrpc/xdr_ref.c: Likewise.
146         * sysdeps/generic/wordexp.c: Likewise.
148         * misc/Makefile: Add rules to build and run tst-error1.
149         * misc/tst-error1.c: New file.
150         * misc/error.c: Fix memory leak and possibly endless loop.
152         * configure.in: Check for -fstack-protector gcc option.
153         * config.make.in (have-ssp): Add template.
154         * nscd/Makefile (nscd-cflags): Add -fstack-protector if supported.
156         * nscd/nscd.c (main): Don't ignore result of chdir call.
158 2005-07-18  Roland McGrath  <roland@redhat.com>
160         [BZ #869]
161         * Makerules ($(objpfx)stubs): Do cd into $(objdir) to reduce size of
162         objdump command line.
164 2005-07-18  Ulrich Drepper  <drepper@redhat.com>
166         * nscd/Makefile (nscd-cflags): Add _FORTIFY_SOURCE.
168         * nscd/connections.c: Fix a few wur warnings.
170         [BZ #1113]
171         * nscd/grpcache.c (cache_addgr): Use correct maximum for group ID
172         length.  Patch by Ivan Gyurdiev <ivg2@cornell.edu>.
174         * debug/confstr_chk.c: New file.
175         * debug/getdomainname_chk.c: New file.
176         * debug/getgroups_chk.c: New file.
177         * debug/gethostname_chk.c: New file.
178         * debug/getlogin_r_chk.c: New file.
179         * debug/ttyname_r_chk.c: New file.
180         * posix/bits/unistd.h: Add definitions for new debug versions.
181         * debug/tst-chk1.c: Add tests for new functions.
182         * debug/Versions: Export new functions.
183         * debug/Makefile (routines): Add new files.
185         * stdlib/bits/stdlib.h: Fix typo.
187 2005-07-13  Thorsten Kukuk  <kukuk@suse.de>
189         * manual/Makefile (libc/index.html): Depend on dir-add.texi.
191 2005-07-15  Ulrich Drepper  <drepper@redhat.com>
193         * stdlib/bits/stdlib.h: Use __REDIRECT_NTH instead of __REDIRECT
194         where necessary.
195         * wcsmbs/bits/wchar2.h: Likewise.
197 2005-07-15  Andreas Jaeger  <aj@suse.de>
199         * debug/Makefile (tst-lfschk3-ENV): New, set locale.
200         (tst-lfschk2-ENV): New.
201         (tst-lfschk1-ENV): New.
202         (tst-chk3-ENV): New.
203         (tst-chk2-ENV): New.
204         (tst-chk1-ENV): New.
206         [BZ #1079]
207         * include/stdlib.h: Remove malloc attribute from __posix_memalign.
208         * stdlib/stdlib.h: Likewise.
210 2005-07-15  Ulrich Drepper  <drepper@redhat.com>
212         * wcsmbs/bits/wchar2.h: New file.
213         * include/bits/wchar2.h: New file.
214         * wcsmbs/wchar.h: Include <bits/wchar2.h> if fortification is
215         requested.
216         * wcsmbs/wcsncpy.c: Add __wcsncpy alias.
217         * string/bits/string3.h: Add fortified stpncpy definitions.
218         * sysdeps/generic/stpncpy_chk.c: New file.
219         * libio/vswprintf.c: Move _IO_wstrnfile definition to strfile.h.
220         Export _IO_wstrn_jumps.
221         * libio/strfile.h: Define _IO_wstrnfile and declare _IO_wstrn_jumps.
222         * include/wchar.h: Declare __wcsncpy and __vswprintf_chk.
223         * debug/fgetws_chk.c: New file.
224         * debug/fgetws_u_chk.c: New file.
225         * debug/fwprintf_chk.c: New file.
226         * debug/swprintf_chk.c: New file.
227         * debug/vfwprintf_chk.c: New file.
228         * debug/vswprintf_chk.c: New file.
229         * debug/vwprintf_chk.c: New file.
230         * debug/wcpcpy_chk.c: New file.
231         * debug/wcpncpy_chk.c: New file.
232         * debug/wcscat_chk.c: New file.
233         * debug/wcscpy_chk.c: New file.
234         * debug/wcsncat_chk.c: New file.
235         * debug/wcsncpy_chk.c: New file.
236         * debug/wmemcpy_chk.c: New file.
237         * debug/wmemmove_chk.c: New file.
238         * debug/wmempcpy_chk.c: New file.
239         * debug/wmemset_chk.c: New file.
240         * debug/wprintf_chk.c: New file.
241         * debug/tst-chk1.c: Add tests for new functions.
242         * debug/Versions: Export new functions.
243         * debug/Makefile (routines): Add new functions.
245 2005-07-13  Ulrich Drepper  <drepper@redhat.com>
247         * nscd/nscd_helper.c: Add a few __builtin_expect.
249         [BZ #1080]
250         * nscd/connections.c (send_ro_fd): Make sure BUF is aligned correctly.
251         * nscd/nscd_helper.c (wait_on_socket): New function.
252         (get_mapping): Use wait_on_socket instead of poll.  The former handles
253         EINTR of poll correctly.
254         (__nscd_open_socket): Likewise.
255         (get_mapping): Make sure BUF is aligned correctly.
256         (get_mapping): Use munmap on correct pointer.
258 2005-07-12  Ulrich Drepper  <drepper@redhat.com>
260         * include/libc-symbols.h: Define macros for librt hidden symbols.
261         * include/time.h: Add librt_hidden_proto definition for clock_gettime.
262         * sysdeps/generic/clock_gettime.c: Add librt_hidden_def.
263         * sysdeps/unix/clock_gettime.c: Likewise.
265         * stdlib/bits/stdlib.h: New file.
266         * stdlib/stdlib.h: Include <bits/stdlib.h> if fortification is
267         requested.
268         * Makefile (headers): Add bits/stdlib.h.
269         * include/bits/stdlib.h: New file.
270         * debug/Depend: New file.
271         * debug/ptsname_r_chk.c: New file.
272         * debug/realpath_chk.c: New file.
273         * debug/wctomb_chk.c: New file.
274         * debug/Makefile (routines): Add ptsname_r_chk, realpath_chk, and
275         wctomb_chk.
276         * debug/Versions: Export __ptsname_r_chk, __realpath_chk, and
277         __wctomb_chk.
278         * debug/tst-chk1.c: Add tests for __ptsname_r_chk, __realpath_chk, and
279         __wctomb_chk.
281 2005-07-12  Jakub Jelinek  <jakub@redhat.com>
283         [BZ #1106]
284         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Include not-cancel.h.
285         (has_cpuclock): Use open_not_cancel_2 instead of open, read_not_cancel
286         instead of read and close_not_cancel_no_status instead of close.
288         [BZ #1106]
289         * sysdeps/s390/s390-64/bcopy.S (__bcopy): Use
290         HIDDEN_BUILTIN_JUMPTARGET to jump to memmove.
292 2005-06-27  Carlos O'Donell  <carlos@systemhalted.org>
294         * posix/regcomp.c (re_compile_internal): Call __libc_lock_init
295         after init_dfa.
297 2005-07-08  Ulrich Drepper  <drepper@redhat.com>
299         * sysdeps/x86_64/fpu/s_sincosl.S: Use retq not ret.  Remove
300         alignment.
301         * sysdeps/x86_64/fpu/s_sincos.S: New file.
303         * include/fenv.h: Add libm_hidden_proto for fesetround and
304         feholdexcept.
305         * sysdeps/alpha/fpu/feholdexcpt.c: Add libm_hidden_def.
306         * sysdeps/alpha/fpu/fesetround.c: Likewise.
307         * sysdeps/generic/feholdexcpt.c: Likewise.
308         * sysdeps/generic/fesetround.c: Likewise.
309         * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
310         * sysdeps/i386/fpu/fesetround.c: Likewise.
311         * sysdeps/ia64/fpu/feholdexcpt.c: Likewise.
312         * sysdeps/ia64/fpu/fesetround.c: Likewise.
313         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
314         * sysdeps/powerpc/fpu/fesetround.c: Likewise.
315         * sysdeps/s390/fpu/feholdexcpt.c: Likewise.
316         * sysdeps/s390/fpu/fesetround.c: Likewise.
317         * sysdeps/sh/sh4/fpu/feholdexcpt.c: Likewise.
318         * sysdeps/sh/sh4/fpu/fesetround.c: Likewise.
319         * sysdeps/sparc/fpu/feholdexcpt.c: Likewise.
320         * sysdeps/sparc/fpu/fesetround.c: Likewise.
321         * sysdeps/x86_64/fpu/feholdexcpt.c: Likewise.
322         * sysdeps/x86_64/fpu/fesetround.c: Likewise.
323         * sysdeps/generic/s_significand.c (__significand): Use __ilogb not
324         ilogb.
325         * sysdeps/generic/s_significandf.c (__significandf): Use __ilogbf
326         not ilogbf.
327         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use __sin and
328         __cos, not sin and cos.
330 2005-07-07  Ulrich Drepper  <drepper@redhat.com>
332         * resolv/res_send.c (send_dg): Recognize referral results and
333         treat them as server errors.
334         Based on a patch by Jason Vas Dias <jvdias@redhat.com>.
336 2005-07-08  Carlos O'Donell  <carlos@systemhalted.org>
338         * sysdeps/hppa/setjmp.S (__sigsetjmp): Use %r1 not %r19.
340         * sysdeps/hppa/add_n.s (__mpn_add_n): Use sr0 or r0, not 0.
341         * sysdeps/hppa/lshift.s (__mpn_lshift): Likewise.
342         * sysdeps/hppa/rshift.s (__mpn_rshift): Likewise.
343         * sysdeps/hppa/sub_n.s (__mpn_sub_n): Likewise.
344         * sysdeps/hppa/udiv_qrnnd.s (__udiv_qrnnd): Likewise.
345         * sysdeps/hppa/hppa1.1/udiv_qrnnd.s (__udiv_qrnnd): Likewise.
347 2005-07-07  Ulrich Drepper  <drepper@redhat.com>
349         * sysdeps/generic/s_ctanh.c (__ctanh): Handle case of zero den better.
350         * sysdeps/generic/s_ctanhf.c (__ctanhf): Likewise.
351         * sysdeps/generic/s_ctanhl.c (__ctanhl): Likewise.
352         * sysdeps/generic/s_ctan.c (__ctan): Likewise.
353         * sysdeps/generic/s_ctanf.c (__ctanf): Likewise.
354         * sysdeps/generic/s_ctanl.c (__ctanl): Likewise.
356 2005-04-13  H.J. Lu  <hongjiu.lu@intel.com>
358         [BZ #974]
359         * csu/elf-init.c (__preinit_array_start): Take int, char **, char **.
360         (__preinit_array_end): Likewise.
361         (__init_array_start): Likewise.
362         (__init_array_end): Likewise.
363         (__libc_csu_init): Take int argc, char **argv, char **envp.
364         Call preinit_array and init_array with argc, argv, envp.
365         * sysdeps/generic/libc-start.c (LIBC_START_MAIN): Remove
366         INIT_MAIN_ARGS.
367         * sysdeps/powerpc/elf/libc-start.c (INIT_MAIN_ARGS): Removed.
368         * elf/Makefile (distribute): Add tst-array5.c, tst-array5-static.c,
369         tst-array5dep.c, and tst-array5.exp.
370         (tests): Add tst-array5.
371         (tests-static): Add tst-array5-static.
372         ($(objpfx)tst-array5): New target.
373         ($(objpfx)tst-array5.out): Likewise.
374         ($(objpfx)tst-array5-static.out): Likewise.
375         * elf/tst-array5-static.c: New file.
376         * elf/tst-array5-static.exp: Likewise.
377         * elf/tst-array5.c: Likewise.
378         * elf/tst-array5.exp: Likewise.
379         * elf/tst-array5dep.c: Likewise.
381 2005-07-07  Ulrich Drepper  <drepper@redhat.com>
383         * sysdeps/unix/sysv/linux/bits/sched.h: Adjust clone prototype.
385 2005-07-05  Jakub Jelinek  <jakub@redhat.com>
387         * elf/stackguard-macros.h (STACK_CHK_GUARD): Fix s390/s390x definition.
388         Reported by Ulrich Weigand <uweigand@de.ibm.com>.
390         * elf/stackguard-macros.h (STACK_CHK_GUARD): Add ia64 definition.
392 2005-07-06  Ulrich Drepper  <drepper@redhat.com>
394         * elf/dl-error.c (_dl_signal_error): When testing for executable
395         being relocated, take into account that nothing might even be loaded.
397         * elf/dl-reloc.c [PROF] (_dl_relocate_object): Define
398         consider_profiling always to zero.  Don't count of compiler to
399         remove unreached if block.
400         * sysdeps/x86_64/dl-trampoline.S [PROF] (_dl_runtime_profile):
401         Don't compile.
402         * sysdeps/i386/dl-trampoline.S [PROF] (_dl_runtime_profile): Likewise.
403         * sysdeps/ia64/dl-trampoline.S [PROF] (_dl_runtime_profile): Likewise.
404         * sysdeps/s390/s390-64/dl-trampoline.S [PROF] (_dl_runtime_profile):
405         Likewise.
406         * sysdeps/s390/s390-32/dl-trampoline.S [PROF] (_dl_runtime_profile):
407         Likewise.
408         * sysdeps/powerpc/powerpc64/dl-trampoline.S [PROF]
409         (_dl_profile_resolve): Likewise.
410         * sysdeps/powerpc/powerpc32/dl-trampoline.S [PROF]
411         (_dl_profile_resolve): Likewise.
412         * gmon/Makefile: Add rules to build and run tst-profile-static.
413         * gmon/tst-profile-static.c: New file.
414         * Makeconfig (+link-static): Allow passing program-specific flags.
416 2005-07-05  Thorsten Kukuk  <kukuk@suse.de>
418         [BZ #1111]
419         * nis/nss_compat/compat-grp.c (internal_getgrgid_r): Check if NSS
420         module provides getgrgid_r.
421         (getgrnam_plusgroup): Preserve original return value.
422         * nis/nss_compat/compat-pwd.c (getpwnam_plususer): Preserve
423         original return value.
424         * nis/nss_compat/compat-spwd.c (getspnam_plususer): Likewise.
426 2005-07-05  Ulrich Drepper  <drepper@redhat.com>
428         [BZ #1101]
429         * posix/regex_internal.c (build_wcs_buffer): Use MB_LEN_MAX not
430         MB_CUR_MAX.
431         (build_wcs_upper_buffer): Likewise.
433         * csu/elf-init.c (__libc_csu_fini): Pretty printing.
435 2005-07-02  Roland McGrath  <roland@redhat.com>
437         * NEWS: Note LinuxThreads removal.
438         * manual/install.texi (Installation): Don't mention linuxthreads.
439         (Configuring and compiling): Don't use linuxthreads as example.
441         * sysdeps/unix/sysv/linux/configure.in: Check for nptl add-on only,
442         not linuxthreads.
443         * sysdeps/unix/sysv/linux/configure: Regenerated.
444         * resolv/Depend: Add nptl.
445         * rt/Depend: Likewise.
447         * linuxthreads, linuxthreads_db: Directories removed (preserved in
448         ports repository).
450 2005-06-27  Jakub Jelinek  <jj@ultra.linux.cz>
452         [BZ #1037]
453         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: -mv8 is deprecated,
454         use -mcpu=v8.
456 2005-06-16  Jakub Jelinek  <jakub@redhat.com>
458         [BZ #1016]
459         * sysdeps/ia64/strlen.S (strlen): Change l2 into a local label.
461 2005-06-23  Thorsten Kukuk  <kukuk@suse.de>
463         [BZ #1109]
464         * nscd/nscd_stat.c (receive_print_stats): Replace YESSTR/NOSTR
465         with own translation.
467 2005-06-25  Jakub Jelinek  <jakub@redhat.com>
469         [BZ #1097]
470         * sunrpc/xdr.c (xdr_hyper, xdr_u_hyper): When decoding, cast
471         t2 to uint32_t instead of ulong.
472         * sunrpc/Makefile (tests): Add tst-xdrmem.
473         * sunrpc/tst-xdrmem.c: New test.
475         * Versions.def (ld): Add GLIBC_2.4.
476         * configure.in: Add --enable-stackguard-randomization option.
477         (ENABLE_STACKGUARD_RANDOMIZE): New define.
478         * config.h.in (ENABLE_STACKGUARD_RANDOMIZE): Add.
479         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include stdint.h.
480         (_dl_setup_stack_chk_guard): New inline function.
481         * sysdeps/generic/dl-osinfo.h: Include stdint.h.
482         (_dl_setup_stack_chk_guard): New inline function.
483         * elf/rtld.c (__stack_chk_guard): New variable.
484         (dl_main): Remove all traces of TLS_INIT_TP_EXPENSIVE.
485         Set __stack_chk_guard to _dl_setup_stack_chk_guard (),
486         use THREAD_SET_STACK_GUARD if defined.
487         * elf/Versions (ld): Export __stack_chk_guard@@GLIBC_2.4.
488         * sysdeps/generic/libc-start.c (__stack_chk_guard): New variable.
489         (__libc_start_main): Set __stack_chk_guard to
490         _dl_setup_stack_chk_guard (), use THREAD_SET_STACK_GUARD if defined.
491         * sysdeps/generic/libc-tls.c (__libc_setup_tls): Remove all
492         traces of TLS_INIT_TP_EXPENSIVE.
493         * debug/Versions (libc): Export __stack_chk_fail@@GLIBC_2.4.
494         * debug/Makefile (routines): Add stack_chk_fail.
495         (static-only-routines): Add stack_chk_fail_local.
496         * debug/stack_chk_fail_local.c: New file.
497         * debug/stack_chk_fail.c: New file.
498         * elf/Makefile: Add rules to build and run tst-stackguard1{,-static}
499         tests.
500         * elf/tst-stackguard1.c: New file.
501         * elf/tst-stackguard1-static.c: New file.
502         * elf/stackguard-macros.h: New file.
504 2005-06-21  Ulrich Drepper  <drepper@redhat.com>
506         * resource/Makefile (tests): Add tst-getrlimit.
507         * resource/tst-getrlimit.c: New file.
509         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTPRIO): Fix typo.
510         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Likewise.
511         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
513 2005-06-20  Ulrich Drepper  <drepper@redhat.com>
515         * nscd/nscd.init: Get more in line with lsb3.
516         * nscd/nscd.c: Adjust some error codes to fit in better with lsb3.
517         * nscd/connections.c: Likewise.
519 2005-06-20  Jakub Jelinek  <jakub@redhat.com>
521         [BZ #653]
522         * sysdeps/unix/sysv/linux/sys/quota.h: Add definitions and types for
523         _LINUX_QUOTA_VERSION >= 2.
524         (_LINUX_QUOTA_VERSION): Define if not yet defined.
526         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_NICE,
527         RLIMIT_RTPRIO): Add.
528         (RLIMIT_NLIMITS): Adjust.
529         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIMIT_NICE,
530         RLIMIT_RTPRIO): Add.
531         (RLIMIT_NLIMITS): Adjust.
532         * sysdeps/unix/sysv/linux/mips/bits/resource.h (RLIMIT_NICE,
533         RLIMIT_RTPRIO): Add.
534         (RLIMIT_NLIMITS): Adjust.
535         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIMIT_NICE,
536         RLIMIT_RTPRIO): Add.
537         (RLIMIT_NLIMITS): Adjust.
539 2005-06-17  Ulrich Drepper  <drepper@redhat.com>
541         [BZ #1106]
542         * time/mktime.c: Always include <string.h> for prototype of
543         implicitly used memcpy.
545         [BZ #1104]
546         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
547         (truncate64): Use __truncate, not truncate.
548         (__have_no_truncate64): Renamed from have_no_truncate64.
549         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
550         (__have_no_truncate64): Renamed from have_no_truncate64.
552         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ulps for complex
553         float functions for gcc 4.
555 2005-06-10  Jakub Jelinek  <jakub@redhat.com>
557         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_runtime_setup):
558         Handle prelinked libraries and binaries with new style PLT.
560 2005-06-07  Jakub Jelinek  <jakub@redhat.com>
562         * elf/elf.h (R_PPC_REL16, R_PPC_REL16_LO, R_PPC_REL16_HI,
563         R_PPC_REL16_HA): Define.
565 2005-06-14  Alan Modra  <amodra@bigpond.net.au>
567         * config.h.in (HAVE_ASM_PPC_REL16): Add.
568         * elf/elf.h (DT_PPC_GOT, DT_PPC_NUM): Define.
569         * elf/tls-macros.h (PowerPC32): Include config.h.  Add variants of
570         TLS_IE, TLS_LD and TLS_GD for new PLT/GOT layout.
571         * sysdeps/powerpc/powerpc32/configure.in: New file,
572         * sysdeps/powerpc/powerpc32/dl-dtprocnum.h: New file.
573         * sysdeps/powerpc/powerpc32/dl-machine.h (DT_PPC): Define.
574         (ppc_got): New inline function.
575         (elf_machine_dynamic): Use ppc_got.  Add attribute const.
576         (elf_machine_load_address): Add attribute const.  Don't use int vars.
577         Use bcl rather than bl to save trashing branch target stack.  Use
578         elf_machine_dynamic rather than duplicating code here.
579         (elf_machine_runtime_setup): New inline function replacing define.
580         Handle new PLT.
581         (elf_machine_fixup_plt): Handle new PLT.
582         (elf_machine_rela): Likewise.
583         * sysdeps/powerpc/powerpc32/sysdep.h: Include config.h.
584         (CALL_MCOUNT): Don't set up counter vars.
585         * sysdeps/powerpc/powerpc32/ppc-mcount.S: Correct comment.
586         * sysdeps/powerpc/powerpc32/elf/start.S (start_addressesp): Don't
587         define when HAVE_ASM_PPC_REL16.
588         (_start): Add HAVE_ASM_PPC_REL16 code.
589         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Don't bl
590         into the GOT when HAVE_ASM_PPC_REL16.
591         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
592         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Ditto.
593         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Likewise.
594         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
595         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
596         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
597         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Likewise.
598         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
599         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
600         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
601         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
602         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
603         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
604         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S (__sigsetjmp):
605         Likewise.
606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S (__brk): Likewise.
607         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
608         (__getcontext): Likewise.
609         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
610         (__setcontext): Likewise.
611         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
612         (__swapcontext): Likewise.
613         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S (stackblock):
614         Comment.
615         (__socket): Bomb if NARGS >= 7.  Invoke CGOTSETUP and CGOTRESTORE.
617 2005-06-17  Ulrich Drepper  <drepper@redhat.com>
619         [BZ #1106]
620         * sysdeps/posix/sigignore.c: Include <string.h> to tell the compiler
621         to use __GI_memset.
622         * sysdeps/posix/signal.c: Likewise.
623         * sysdeps/posix/sigset.c: Likewise.
624         * sysdeps/posix/sysv_signal.c: Likewise.
625         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
626         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
627         * sysdeps/unix/sysv/linux/system.c: Likewise.
629 2005-06-15  Jakub Jelinek  <jakub@redhat.com>
631         [BZ #1088]
632         * hesiod/hesiod.c (hesiod_init): Don't check for ctx->classes[0] == 0
633         or both classes equal here.
634         (parse_config_file): If both classes are equal, clear the second one.
636 2005-06-08  Karl Kelley  <kekelley@iastate.edu>
638         [BZ #1088]
639         * hesiod/hesiod_p.h (struct hesiod_p): Add classes array.
640         * hesiod/hesiod.c (hesiod_init): Initialize classes.  Fail if no
641         valid classes were given or if both are equal.
642         (hesiod_resolve): Use ctx->classes instead of hardcoded C_IN
643         and C_HS order.
644         (parse_config_file): Handle classes keyword.
645         * hesiod/README.hesiod: Mention addition of the classes keyword.
647 2005-06-14  Ulrich Drepper  <drepper@redhat.com>
649         [BZ #1085]
650         * configure.in: Add test for availability of libaudit.
651         * config.h.in: Define HAVE_LIBAUDIT.
652         * config.make.in: Define have-libaudit.
653         * nscd/Makefile: If libaudit is available, link nscd with it.
654         * nscd/selinux.c: If HAVE_LIBAUDIT is defined, log using libaudit.
655         Patch by Steve Grubb <sgrubb@redhat.com>.
657         * debug/pread64_chk.c: Use __libc_pread64 instead of __pread64.
658         * sysdeps/posix/posix_fallocate64.c: Likewise.
659         * include/string.h: Use libc_hidden_proto for strnlen.
660         * sysdeps/generic/strnlen.c: Add libc_hidden_def.
661         * include/libintl.h: Use libc_hidden_proto for __dcgettext.
662         * intl/dcgettext.c: Add libc_hidden_def.
663         * include/execinfo.h: Add libc_hidden_proto for __backtrace and
664         __backtrace_symbols_fd.
665         * sysdeps/generic/backtrace.c: Add libc_hidden_def.
666         * sysdeps/generic/backtracesymsfd.c: Likewise.
667         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
668         * sysdeps/i386/backtrace.c: Likewise.
669         * sysdeps/ia64/backtrace.c: Likewise.
670         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
671         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
672         * sysdeps/s390/s390-32/backtrace.c: Likewise.
673         * sysdeps/s390/s390-64/backtrace.c: Likewise.
675 2005-06-13  Ulrich Drepper  <drepper@redhat.com>
677         * sysdeps/unix/clock_gettime.c (clock_gettime): Implement case
678         where HANDLED_REALTIME is not defined.  [BZ #966]
680 2005-06-13  Jakub Jelinek  <jakub@redhat.com>
682         [BZ #1096]
683         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_sendreq,
684         __netlink_receive): Remove prototypes.
685         (__netlink_request): New prototype.
686         * sysdeps/unix/sysv/linux/ifaddrs.c: Include <alloca.h> and
687         <stdint.h>.
688         (__netlink_sendreq): Make static.
689         (__netlink_receive): Rename to...
690         (__netlink_request): ... this.  Add type argument, call
691         __netlink_sendreq.  If MSG_TRUNC is set after recvmsg, retry
692         with a bigger buffer.  Don't record buffers that contain no
693         messages we are expecting.
694         (getifaddrs): Use __netlink_request instead of __netlink_sendreq
695         and __netlink_receive pairs.  Formatting.
696         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex_netlink): Use
697         __netlink_request instead of __netlink_sendreq and __netlink_receive
698         pair.
700 2005-06-13  Thorsten Kukuk  <kukuk@suse.de>
702         * sysdeps/unix/sysv/linux/netinet/if_tr.h: Don't include kernel
703         headers, instead copy important structs/defines.
705 2005-06-13  Jakub Jelinek  <jakub@redhat.com>
707         * elf/rtld.c (dl_main): Move DT_DEBUG setup before first
708         _dl_debug_state call.
710 2005-06-12  Ulrich Drepper  <drepper@redhat.com>
712         * elf/dl-error.c (_dl_signal_error): Store information about use of
713         real malloc in the catch object.
714         (_dl_catch_error): Forward information about malloc use to caller
715         in new parameter.
716         (_dl_out_of_memory): Make static.
717         * elf/dl-deps.c: Adjust callers of _dl_catch_error.
718         * elf/dl-libc.c: Likewise.
719         * elf/dl-open.c: Likewise.
720         * elf/rtld.c: Likewise.
721         Add new --audit option.
722         * sysdeps/generic/ldsodefs.h: Remove _dl_out_of_memory declaration.
723         (rtld_global_ro._dl_signal_error): Add new parameter.
724         * include/dlfcn.h (_dl_catch_error): Add new parameter.
725         * dlfcn/dlfcn.c (_dlerror_run): Pass additional parameter to
726         _dl_catch_error.  Only free if the returned newly value says so.
728 2005-06-01  Roland McGrath  <roland@redhat.com>
730         [BZ #959]
731         * posix/tst-mmap.c (main): Fill the test file with enough data for the
732         page size.
734 2005-05-30  Jakub Jelinek  <jakub@redhat.com>
736         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): If
737         GLRO(dl_osversion) has been already set to a value smaller than
738         _dl_discover_osversion (), don't overwrite it here.
740 2005-05-24  Thomas Schwinge  <schwinge@nic-nac-project.de>
742         * sysdeps/mach/i386/syscall.S (syscall): Call END.
744 2005-05-28  Richard Henderson  <rth@redhat.com>
746         * elf/elf.h (DT_ALPHA_PLTRO, DT_ALPHA_NUM): New.
747         * sysdeps/alpha/dl-dtprocnum.h: New file.
748         * sysdeps/alpha/dl-machine.h (DT_ALPHA): New.
749         (elf_machine_load_address): Simplify to rely on gprel relocations.
750         (elf_machine_runtime_setup): Handle DT_ALPHA_PLTRO plt format.
751         Remove thread safety workaround for binutils 2.6.
752         (elf_machine_fixup_plt): Handle DT_ALPHA_PLTRO plt format.
753         * sysdeps/alpha/dl-trampoline.S (_dl_runtime_resolve_new): New.
754         (_dl_runtime_profile_new): New.
755         (_dl_runtime_resolve_old): Rename from _dl_runtime_resolve.
756         (_dl_runtime_profile_old): Rename from _dl_runtime_profile.  Fix
757         typo in _dl_call_pltexit argument loading.
759         * sysdeps/alpha/div_libc.h (funcnoplt): New.
760         * sysdeps/alpha/divl.S: Use it.
761         * sysdeps/alpha/divq.S: Likewise
762         * sysdeps/alpha/divqu.S: Likewise.
763         * sysdeps/alpha/reml.S: Likewise.
764         * sysdeps/alpha/remq.S: Likewise.
765         * sysdeps/alpha/remqu.S: Likewise.
767 2005-05-26  Andreas Schwab  <schwab@suse.de>
769         * locale/Makefile (CFLAGS-loadlocale.c): Don't define.
771 2005-05-26  Ulrich Drepper  <drepper@redhat.com>
773         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_DIRECT): Fix value.
774         Reported by Colin Gibbs <colin@gibbsonline.net>.  [BZ #954]
776 2005-05-17  Alan Modra  <amodra@bigpond.net.au>
778         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S (__longjmp): Corrent
779         _dl_hwcap access in PIC && !SHARED case.
780         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
782 2005-05-25  Dwayne Grant McConnell  <dgm69@us.ibm.com>
784         * gmon/gmon.c: Add space in weak_alias use.
785         * linuxthreads/sysdeps/unix/sysv/linux/mips/vfork.S: Likewise.
786         * sysdeps/alpha/htonl.S: Likewise.
787         * sysdeps/alpha/htons.S: Likewise.
788         * sysdeps/alpha/elf/start.S: Likewise.
789         * sysdeps/i386/i386-mcount.S: Likewise.
790         * sysdeps/ia64/strchr.S: Likewise.
791         * sysdeps/ia64/fpu/e_lgamma_r.c: Likewise.
792         * sysdeps/ia64/fpu/e_lgamma_r.c: Likewise.
793         * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
794         * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
795         * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
796         * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
797         * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
798         * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
799         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
800         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
801         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
802         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
803         * sysdeps/mach/hurd/readdir64_r.c: Likewise.
804         * sysdeps/mach/hurd/sigaltstack.c: Likewise.
805         * sysdeps/powerpc/fpu/s_fabs.S: Likewise.
806         * sysdeps/powerpc/fpu/s_fabs.S: Likewise.
807         * sysdeps/powerpc/fpu/s_fabs.S: Likewise.
808         * sysdeps/powerpc/fpu/s_fabs.S: Likewise.
809         * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
810         * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
811         * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
812         * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
813         * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
814         * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
815         * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
816         * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
817         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
818         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
819         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
820         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
821         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
822         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
823         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
824         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
825         * sysdeps/sparc/sparc32/memset.S: Likewise.
826         * sysdeps/sparc/sparc32/stpcpy.S: Likewise.
827         * sysdeps/sparc/sparc32/strchr.S: Likewise.
828         * sysdeps/sparc/sparc32/strchr.S: Likewise.
829         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
830         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
831         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
832         * sysdeps/sparc/sparc64/memset.S: Likewise.
833         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
834         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
835         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
836         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
837         * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
838         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
839         * sysdeps/unix/sysv/linux/alpha/getcontext.S: Likewise.
840         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
841         * sysdeps/unix/sysv/linux/alpha/setcontext.S: Likewise.
842         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
843         * sysdeps/unix/sysv/linux/alpha/swapcontext.S: Likewise.
844         * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
845         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
846         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
847         * sysdeps/unix/sysv/linux/hppa/clone.S: Likewise.
848         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
849         * sysdeps/unix/sysv/linux/i386/makecontext.S: Likewise.
850         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
851         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
852         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Likewise.
853         * sysdeps/unix/sysv/linux/ia64/setcontext.S: Likewise.
854         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
855         * sysdeps/unix/sysv/linux/mips/vfork.S: Likewise.
856         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
857         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
858         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
859         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
860         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
861         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
862         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
863         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Likewise.
864         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
865         * sysdeps/unix/sysv/linux/sparc/sparc64/getcontext.S: Likewise.
866         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Likewise.
867         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Likewise.
868         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Likewise.
869         * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
870         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
871         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Likewise.
872         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
873         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
874         * sysdeps/x86_64/_mcount.S: Likewise.
876 2005-05-24  Roland McGrath  <roland@redhat.com>
878         * sysdeps/unix/sysv/linux/i386/sysdep.h
879         (SETUP_PIC_REG, LOAD_PIC_REG): Move these macros ...
880         * sysdeps/i386/sysdep.h [PIC]: ... to here.
882 2005-05-23  Roland McGrath  <roland@redhat.com>
884         * sysdeps/arm, sysdeps/unix/arm, sysdeps/unix/sysv/linux/arm:
885         Subdirectories moved to ports repository.
886         * configure.in (base_machine): Remove arm* and thumb* patterns.
887         * shlib-versions (arm.*-.*-linux.*): Remove this pattern.
889 2005-05-23  Ulrich Drepper  <drepper@redhat.com>
891         [BZ #1086]
892         * sunrpc/bindrsvprt.c (LOWPORT): Apparently some mountd
893         implementations are broken and don't accept ports < 512.
895 2005-05-22  Dmitry V. Levin  <ldv@altlinux.org>
897         [BZ #961]
898         * io/sys/sendfile.h: Remove __nonnull from sendfile and sendfile64
899         declarations.
901 2005-05-23  Ulrich Drepper  <drepper@redhat.com>
903         [BZ #1086]
904         * sunrpc/pm_getport.c (__get_socket): New function.
905         (pmap_getport): Use it to open a non-reserved socket to the portmapper
906         for TCP.
907         * include/rpc/pmap_clnt.h (__get_socket): Declare.
908         * sunrpc/pm_getmaps.c (pmap_getmaps): Use __get_socket to get an
909         non-reserved socket for the portmapper.
910         Based on a patch by Steve Dickson <steved@redhat.com>.
912         [BZ #1086]
913         * sunrpc/bindrsvprt.c (bindresvport): Try harder to find a port.
914         If we tried looking at the usual range without success extend the
915         range to even lower ports.
917         * sysdeps/unix/clock_gettime.c (clock_gettime): Revert last patch.
919 2005-05-22  Andreas Schwab  <schwab@suse.de>
921         * elf/rtld.c: Include <dl-osinfo.h>.
923 2005-05-17  Alan Modra  <amodra@bigpond.net.au>
925         * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Don't use
926         JUMPTARGET.  Instead append @local to __syscall_error.
927         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Delete all occurrences
928         of JUMPTARGET.  Instead append @local to labels.
929         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
930         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
931         * sysdeps/powerpc/powerpc32/ppc-mcount.S: Likewise.
932         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
933         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
934         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
935         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
936         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Likewise.
937         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
938         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
939         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
941         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Use float constants.
942         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
943         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Likewise.
944         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
945         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.  Use one GOT
946         slot to access both constants.
947         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
948         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
950         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (TWO52.0): Delete.
951         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (TWO23.0): Delete.
952         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (TWO52.0): Delete.
953         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (TWO23.0): Delete.
954         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Comment typo.
955         (NEGZERO.0, POINTFIVE.0): Delete.
956         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (TWO52.0): Delete.
957         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (TWO23.0): Delete.
958         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Code in .text.
959         (TWO52.0, POINTFIVE.0): Delete.
960         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Code in .text.
961         (TWO23.0, POINTFIVE.0): Delete.
962         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Code in .text.
963         (TWO52.0): Delete.
964         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Code in .text.
965         (TWO23.0): Delete.
966         * sysdeps/powerpc/powerpc32/memset.S (memset): Formatting.
968 2005-05-19  Richard Henderson  <rth@redhat.com>
970         * sysdeps/unix/clock_gettime.c (clock_gettime): Fix typo around
971         CLOCK_REALTIME.
973         * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_bool_32_acq,
974         __arch_compare_and_exchange_bool_64_acq,
975         __arch_compare_and_exchange_val_32_acq,
976         __arch_compare_and_exchange_val_64_acq, atomic_exchange_and_add):
977         Use __sync builtin without _si or _di suffix.
979 2005-05-19  Jakub Jelinek  <jakub@redhat.com>
981         [BZ #955]
982         * iconvdata/ibm939.c (BODY): Avoid segfaults with input characters
983         <UFFFF> and above.
985 2005-05-17  Andreas Schwab  <schwab@suse.de>
987         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
988         (clock_getcpuclockid): Always return a defined value.
990 2005-05-17  Neal H. Walfield  <neal@gnu.org>
992         * sysdeps/posix/getaddrinfo.c (gaih_local): Check [_HAVE_SA_LEN]
993         instead of [SALEN].
994         (gaih_inet): Likewise.
996 2005-05-11  Ulrich Drepper  <drepper@redhat.com>
998         * elf/elf.h (Elf32_auxv_t): Make cross-compile safe.
999         (Elf64_auxv_t): Likewise.
1000         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Adjust for
1001         removal of a_ptr element in ElfXX_auxv_t.
1002         * elf/dl-support.c (_dl_aux_init): Likewise.
1004 2005-05-09  Daniel Jacobowitz  <dan@codesourcery.com>
1006         * sysdeps/unix/sysv/linux/clock_getres.c: Include <time.h>.
1007         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
1009 2005-05-09  Alan Modra  <amodra@bigpond.net.au>
1011         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
1012         .pushsection/.popsection in place of .section/.previous.
1014 2005-05-08  Ulrich Drepper  <drepper@redhat.com>
1016         * MakeTAGS: Make xgettext not look into test cases.
1018         * MakeTAGS: Make sure translations in error calls are marked with
1019         c-format by xgettext.
1021 2005-05-07  Ulrich Drepper  <drepper@redhat.com>
1023         * intl/libintl.h: Always use __attribute_format_arg__ for gettext
1024         functions since gcc sometimes forgets the attribute for the
1025         standard functions.
1027 2005-05-06  Jakub Jelinek  <jakub@redhat.com>
1029         [BZ #934]
1030         * posix/regex_internal.h: Include bits/libc-lock.h or define dummy
1031         __libc_lock_* macros if not _LIBC.
1032         (struct re_dfa_t): Add lock.
1033         * posix/regcomp.c (re_compile_internal): Add __libc_lock_init.
1034         * posix/regexec.c (regexec, re_search_stub): Add locking.
1036 2005-05-04  Jakub Jelinek  <jakub@redhat.com>
1038         * intl/Makefile (tst-gettext[45].out): Pass also $(run-program-prefix)
1039         as argument to the scripts.
1040         * intl/tst-gettext2.sh: Use mkdir -p instead of test -d + mkdir.
1041         * intl/tst-gettext4.sh: Likewise.  Use run_program_prefix argument.
1042         * intl/tst-gettext5.sh: Likewise.
1044         * intl/tst-translit.sh: Add mkdir -p.
1046         * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Use
1047         .ifndef/.endif to allow use of this macro more than once per .S
1048         file.
1049         (LOAD_PIC_REG): New macro.
1050         * sysdeps/unix/sysv/linux/i386/makecontext.S: Add call frame
1051         information.
1052         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
1053         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
1054         * sysdeps/i386/fpu/s_asinh.S: Use LOAD_PIC_REG macro.  Add call frame
1055         information.
1056         * sysdeps/i386/fpu/e_log10f.S: Likewise.
1057         * sysdeps/i386/fpu/s_expm1.S: Likewise.
1058         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
1059         * sysdeps/i386/fpu/e_log2l.S: Likewise.
1060         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
1061         * sysdeps/i386/fpu/s_lrint.S: Likewise.
1062         * sysdeps/i386/fpu/s_llrint.S: Likewise.
1063         * sysdeps/i386/fpu/s_ilogbf.S: Likewise.
1064         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
1065         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
1066         * sysdeps/i386/fpu/e_log.S: Likewise.
1067         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
1068         * sysdeps/i386/fpu/s_lrintl.S: Likewise.
1069         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
1070         * sysdeps/i386/fpu/e_scalb.S: Likewise.
1071         * sysdeps/i386/fpu/s_log1p.S: Likewise.
1072         * sysdeps/i386/fpu/s_nearbyintl.S: Likewise.
1073         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
1074         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
1075         * sysdeps/i386/fpu/s_nearbyintf.S: Likewise.
1076         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
1077         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
1078         * sysdeps/i386/fpu/s_lrintf.S: Likewise.
1079         * sysdeps/i386/fpu/e_acosh.S: Likewise.
1080         * sysdeps/i386/fpu/s_cexp.S: Likewise.
1081         * sysdeps/i386/fpu/s_ilogbl.S: Likewise.
1082         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
1083         * sysdeps/i386/fpu/e_powl.S: Likewise.
1084         * sysdeps/i386/fpu/e_powf.S: Likewise.
1085         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
1086         * sysdeps/i386/fpu/e_logl.S: Likewise.
1087         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
1088         * sysdeps/i386/fpu/s_frexp.S: Likewise.
1089         * sysdeps/i386/fpu/e_pow.S: Likewise.
1090         * sysdeps/i386/fpu/e_logf.S: Likewise.
1091         * sysdeps/i386/fpu/e_log2.S: Likewise.
1092         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
1093         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
1094         * sysdeps/i386/fpu/s_llrintf.S: Likewise.
1095         * sysdeps/i386/fpu/s_ilogb.S: Likewise.
1096         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
1097         * sysdeps/i386/fpu/e_atanh.S: Likewise.
1098         * sysdeps/i386/fpu/e_log10.S: Likewise.
1099         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
1100         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
1101         * sysdeps/i386/fpu/s_llrintl.S: Likewise.
1102         * sysdeps/i386/fpu/e_log10l.S: Likewise.
1103         * sysdeps/i386/fpu/s_nearbyint.S: Likewise.
1104         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
1105         * sysdeps/i386/fpu/e_log2f.S: Likewise.
1106         * sysdeps/i386/addmul_1.S: Various fixes to cfi handling.
1107         * sysdeps/i386/mul_1.S: Likewise.
1108         * sysdeps/i386/strtok.S: Likewise.
1109         * sysdeps/i386/sub_n.S: Likewise.
1110         * sysdeps/i386/submul_1.S: Likewise.
1111         * sysdeps/i386/i586/addmul_1.S: Likewise.
1112         * sysdeps/i386/i586/memcpy.S: Likewise.
1113         * sysdeps/i386/i586/mul_1.S: Likewise.
1114         * sysdeps/i386/i586/rshift.S: Likewise.
1115         * sysdeps/i386/i586/sub_n.S: Likewise.
1116         * sysdeps/i386/i586/submul_1.S: Likewise.
1117         * sysdeps/i386/i686/memcmp.S: Likewise.
1118         * sysdeps/i386/i686/memmove.S: Likewise.
1119         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
1120         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
1121         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
1122         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
1124 2005-05-03  Ulrich Drepper  <drepper@redhat.com>
1126         * sysdeps/i386/add_n.S: Add call frame information.
1127         * sysdeps/i386/addmul_1.S: Likewise.
1128         * sysdeps/i386/bsd-setjmp.S: Likewise.
1129         * sysdeps/i386/lshift.S: Likewise.
1130         * sysdeps/i386/memchr.S: Likewise.
1131         * sysdeps/i386/memcmp.S: Likewise.
1132         * sysdeps/i386/mul_1.S: Likewise.
1133         * sysdeps/i386/rawmemchr.S: Likewise.
1134         * sysdeps/i386/rshift.S: Likewise.
1135         * sysdeps/i386/stpncpy.S: Likewise.
1136         * sysdeps/i386/strchr.S: Likewise.
1137         * sysdeps/i386/strchrnul.S: Likewise.
1138         * sysdeps/i386/strcspn.S: Likewise.
1139         * sysdeps/i386/strpbrk.S: Likewise.
1140         * sysdeps/i386/strrchr.S: Likewise.
1141         * sysdeps/i386/strspn.S: Likewise.
1142         * sysdeps/i386/strtok.S: Likewise.
1143         * sysdeps/i386/sub_n.S: Likewise.
1144         * sysdeps/i386/submul_1.S: Likewise.
1145         * sysdeps/i386/elf/bsd-setjmp.S: Likewise.
1146         * sysdeps/i386/i486/strcat.S: Likewise.
1147         * sysdeps/i386/i586/add_n.S: Likewise.
1148         * sysdeps/i386/i586/addmul_1.S: Likewise.
1149         * sysdeps/i386/i586/lshift.S: Likewise.
1150         * sysdeps/i386/i586/memcpy.S: Likewise.
1151         * sysdeps/i386/i586/memset.S: Likewise.
1152         * sysdeps/i386/i586/mul_1.S: Likewise.
1153         * sysdeps/i386/i586/rshift.S: Likewise.
1154         * sysdeps/i386/i586/strchr.S: Likewise.
1155         * sysdeps/i386/i586/strcpy.S: Likewise.
1156         * sysdeps/i386/i586/sub_n.S: Likewise.
1157         * sysdeps/i386/i586/submul_1.S: Likewise.
1158         * sysdeps/i386/i686/add_n.S: Likewise.
1159         * sysdeps/i386/i686/memcmp.S: Likewise.
1160         * sysdeps/i386/i686/memmove.S: Likewise.
1161         * sysdeps/i386/i686/mempcpy.S: Likewise.
1162         * sysdeps/i386/i686/memset.S: Likewise.
1163         * sysdeps/i386/i686/strtok.S: Likewise.
1164         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
1165         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
1166         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
1167         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Likewise.
1168         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
1169         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
1171         * sysdeps/i386/fpu/libm-test-ulps: Adjust for gcc 4.
1173         * sysdeps/unix/sysv/linux/kernel-features.h: waitid is available
1174         on ppc in 2.6.12.
1176 2005-04-29  Jakub Jelinek  <jakub@redhat.com>
1178         [BZ #1083]
1179         * sysdeps/posix/posix_fallocate.c (posix_fallocate): If len == 0,
1180         call ftruncate if offset is bigger than current size.  Make sure
1181         the file is offset + len bytes long if that is more than current size.
1182         Don't overwrite previous content of the file.
1183         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
1184         Likewise.
1186 2005-05-02  Roland McGrath  <roland@redhat.com>
1188         [BZ #924]
1189         * crypt/md5.c [! HAVE_MEMCPY] (memcpy): Yield proper expression value.
1191 2005-04-29  Roland McGrath  <roland@redhat.com>
1193         * timezone/africa: Update from tzdata2005i.
1194         * timezone/asia: Likewise.
1195         * timezone/northamerica: Likewise.
1196         * timezone/yearistype: Likewise.
1198         * sysdeps/i386/sysdep.h (CALL_MCOUNT): Fix typo in last change.
1200 2005-04-29  Ulrich Drepper  <drepper@redhat.com>
1202         [BZ #1093]
1203         * nis/nis_table.c: Fix realloc handling.
1204         * nis/nis_removemember.c: Likewise.
1206 2005-04-28  Ulrich Drepper  <drepper@redhat.com>
1208         [BZ #798]
1209         * nscd/Makefile: Help losers who use --with-headers.
1211 2005-04-28  Roland McGrath  <roland@redhat.com>
1213         [BZ #796]
1214         * sysdeps/unix/sysv/linux/dl-sysdep.h: New file.
1215         Define NEED_DL_SYSINFO_DSO for all platforms.
1217         * sysdeps/generic/dl-sysdep.h: Remove multiple inclusion protection.
1218         * sysdeps/alpha/dl-sysdep.h: Likewise.
1219         Use #include_next instead of duplicating generic file's contents.
1220         * sysdeps/ia64/dl-sysdep.h: Likewise.
1221         * sysdeps/sparc/dl-sysdep.h: Likewise.
1223 2005-03-22  Steven Munroe  <sjmunroe@us.ibm.com>
1225         * sysdeps/powerpc/powerpc64/memset.S (memset): Make ___memset local.
1227 2005-03-07  Steven Munroe  <sjmunroe@us.ibm.com>
1229         [BZ #781]
1230         * sysdeps/unix/sysv/linux/kernel-features.h
1231         (__ASSUME_TGKILL): Define for powerpc32/64 starting with 2.6.1.
1232         (__ASSUME_UTIMES): Define for powerpc32/64 starting with 2.6.1.
1233         (__ASSUME_FADVISE64_64_SYSCALL): Define for powerpc32 only starting
1234         with 2.6.1.
1235         (__ASSUME_WAITID_SYSCALL): Don't define for powerpc32/64.
1237 2005-04-28  Ulrich Drepper  <drepper@redhat.com>
1239         * sysdeps/i386/sysdep.h: Add cfi instrumentation to asm fragments.
1240         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
1241         * sysdeps/unix/sysv/linux/i386/socket.S: Remove now duplicate
1242         cfi_startproc and cfi_endproc.
1244         * configure.in: Remove ultrasparc names.
1246         * sysdeps/i386/i686/memcmp.S: Move misplaced END.
1248 2005-03-27  Bruno Haible  <bruno@clisp.org>
1250         Make it possible for multiple threads to use gettext() in different
1251         locales.
1252         * intl/dcigettext.c (HAVE_PER_THREAD_LOCALE): New macro.
1253         (struct known_translation_t): If HAVE_PER_THREAD_LOCALE, add localename
1254         field.
1255         (transcmp): If HAVE_PER_THREAD_LOCALE, compare localename fields.
1256         (DCIGETTEXT): If HAVE_PER_THREAD_LOCALE, fill the localename field in
1257         search and newp.
1259         * intl/tst-gettext4.c: New file.
1260         * intl/tst-gettext4.sh: New file.
1261         * intl/tst-gettext4-de.po: New file.
1262         * intl/tst-gettext4-fr.po: New file.
1263         * intl/tst-gettext5.c: New file.
1264         * intl/tst-gettext5.sh: New file.
1265         * intl/Makefile (distribute): Add tst-gettext4.sh, tst-gettext4-de.po,
1266         tst-gettext4-fr.po, tst-gettext5.sh.
1267         (multithread-test-srcs): New variable.
1268         (test-srcs): Add its contents.
1269         (tests): Depend on tst-gettext4.out, tst-gettext5.out.
1270         (tst-gettext4.out, tst-gettext5.out): New rules.
1271         (CFLAGS-tst-gettext4.c, CFLAGS-tst-gettext5.c): New variables.
1272         Add rule for linking the multithread-test-srcs with the appropriate
1273         thread-library.
1275 2005-04-28  Ulrich Drepper  <drepper@redhat.com>
1277         * po/rw.po: New file.  From translation team.
1279         * scripts/config.guess: Update from upstream.
1280         * scripts/config.sub: Likewise.
1282 2005-04-27  Ulrich Drepper  <drepper@redhat.com>
1284         [BZ #1094]
1285         * nscd/connections.c (nscd_run): Use time() value in prune_cache
1286         call, not timeout value, since the latter might be from another clock.
1288 2005-04-27  Roland McGrath  <roland@redhat.com>
1290         [BZ #877]
1291         * posix/unistd.h: Remove __nonnull from acct decl.
1293         * rt/tst-cpuclock1.c: New file.
1294         * rt/tst-cpuclock2.c: New file.
1295         * rt/tst-cputimer1.c: New file.
1296         * rt/tst-cputimer2.c: New file.
1297         * rt/tst-cputimer3.c: New file.
1298         * rt/Makefile (tests): Add them.
1300         * sysdeps/unix/sysv/linux/kernel-posix-cpu-timers.h: New file.
1301         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: New file.
1302         * sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c
1303         (HAS_CPUCLOCK): New macro.
1304         (clock_getcpuclockid): Function removed.
1305         #include the new linux file to define it instead.
1306         * sysdeps/unix/clock_gettime.c [HP_TIMING_AVAIL] (hp_timing_gettime):
1307         New function, broken out of ...
1308         (clock_gettime) [HP_TIMING_AVAIL]: ... here.  Call it.
1309         (realtime_gettime): New function, broken out of ...
1310         (clock_gettime) [! HANDLED_REALTIME]: ... here.  Call it.
1311         (clock_gettime) [SYSDEP_GETTIME_CPU]: Use new macro in default case.
1312         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): New macro.
1313         (SYSDEP_GETTIME_CPUTIME): New macro.
1314         (SYSDEP_GETTIME): Use both.
1315         [! __ASSUME_POSIX_TIMERS] (maybe_syscall_gettime): New function, broken
1316         out of ...
1317         (SYSDEP_GETTIME): ... here.  Use it.
1318         [__NR_clock_gettime] (HANDLED_CPUTIME): Define it.
1319         (SYSDEP_GETTIME_CPUTIME): New macro.  Handle CPU timers by trying
1320         kernel support and falling back to hp-timing code.
1321         * sysdeps/posix/clock_getres.c
1322         [HP_TIMING_AVAIL] (hp_timing_getres): New function, broken out of ...
1323         (clock_getres) [HP_TIMING_AVAIL]: ... here.  Call it.
1324         (realtime_getres): New function, broken out of ...
1325         (clock_getres) [! HANDLED_REALTIME]: ... here.  Call it.
1326         (clock_getres) [SYSDEP_GETRES_CPU]: Use new macro in default case.
1327         * sysdeps/unix/sysv/linux/clock_getres.c (SYSCALL_GETRES): New macro.
1328         (SYSDEP_GETRES_CPUTIME): New macro.
1329         (SYSDEP_GETRES): Use both.
1330         [! __ASSUME_POSIX_TIMERS] (maybe_syscall_getres): New function, broken
1331         out of ...
1332         (SYSDEP_GETRES): ... here.  Use it.
1333         [__NR_clock_getres] (HANDLED_CPUTIME): Define it.
1334         (SYSDEP_GETRES_CPUTIME): New macro.  Handle CPU timers by trying
1335         kernel support and falling back to hp-timing code.
1336         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Handle
1337         CLOCK_PROCESS_CPUTIME_ID and CLOCK_PROCESS_THREAD_ID specially,
1338         translating to the kernel clockid_t for our own process/thread clock.
1340 2005-04-27  Ulrich Drepper  <drepper@redhat.com>
1342         * stdlib/test-canon.c: Make doesExist a directory and add more tests
1343         for the new error case.
1345 2004-06-02  Dmitry V. Levin  <ldv@altlinux.org>
1346             Ranjani Murthy <ranmur@gmail.com>
1348         * stdlib/canonicalize.c (__realpath): Change realpath(3) to
1349         return NULL and set errno to ENOTDIR for such pathnames like
1350         "/path/to/existing-non-directory/".
1352 2005-04-26  Ulrich Drepper  <drepper@redhat.com>
1354         [BZ #1105]
1355         * time/strptime_l.c (__strptime_internal): Handle 'z' to set
1356         tm_gmtoff.
1357         * time/Makefile (tests): Add tst-strptime2.
1358         * time/tst-strptime2.c: New file.
1360 2005-04-26  Jakub Jelinek  <jakub@redhat.com>
1362         [BZ #1081]
1363         * elf/dl-close.c: Include stddef.h.
1364         (_dl_close): If called recursively, just remember GC needs to be rerun
1365         and decrease l_direct_opencount.  Avoid GC if l_direct_opencount
1366         decreased to 1.  Rerun GC at the end if any destructor unloaded some
1367         additional libraries.
1368         * elf/Makefile: Add rules to build and run unload6 test.
1369         * elf/unload6.c: New test.
1370         * elf/unload6mod1.c: New file.
1371         * elf/unload6mod2.c: New file.
1372         * elf/unload6mod3.c: New file.
1374         * malloc/hooks.c (mem2chunk_check): Add magic_p argument, set *magic_p
1375         if magic_p is not NULL.
1376         (top_check): Invoke MALLOC_FAILURE_ACTION if MORECORE failed.
1377         (malloc_check): Fail if sz == -1.
1378         (free_check): Adjust mem2chunk_check caller.
1379         (realloc_check): Likewise.  Fail if bytes == -1.  If bytes == 0 and
1380         oldmem != NULL, call free_check and return NULL.  If reallocating
1381         and returning NULL, invert magic byte again to make oldmem valid
1382         region for further checking.
1383         (memalign_check): Fail if bytes == -1.
1384         * malloc/Makefile: Add rules to build and run tst-mcheck.
1385         * malloc/tst-mcheck.c: New test.
1387 2005-04-26  Ulrich Drepper  <drepper@redhat.com>
1389         [BZ #1110]
1390         * stdio-common/vfscanf.c: Correctly account for characters of
1391         decimal points right after +-.
1393 2005-04-26  Roland McGrath  <roland@redhat.com>
1395         * elf/rtld-Rules (rtld-all): Test ifndef rtld-modules instead of
1396         ifeq ($(subdir),elf) to distinguish main driver from subdir runs.
1398 2005-04-25  Roland McGrath  <roland@redhat.com>
1400         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
1401         (INTERNAL_SYSCALL_ERROR_P): Fix typo in last change.
1403         * sunrpc/xdr.c (xdr_u_int): Use `long' for L and cast where needed.
1405         * elf/dl-load.c: Revert last change.
1407 2005-04-24  Ulrich Drepper  <drepper@redhat.com>
1409         [BZ #1110]
1410         * stdio-common/vfscanf.c: Fix parsing of decimal point after +-.
1411         Patch by Hamed Malek <hamed@bamdad.org>.
1413 2005-04-21  Roland McGrath  <roland@redhat.com>
1415         * elf/dl-load.c (_dl_map_object_from_fd): Don't use MAP_DENYWRITE,
1416         since Linux ignores it in user mmap calls.
1418 2005-04-17  David S. Miller  <davem@davemloft.net>
1420         * sysdeps/sparc/sparc32/elf/start.S: Define __data_start.
1421         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
1423 2005-04-15  Roland McGrath  <roland@redhat.com>
1425         * timezone/Makefile (zic-deps): New variable.
1426         ($(testdata)/America/New_York): Use it instead of explicit deps.
1427         ($(testdata)/Etc/UTC, $(testdata)/Australia/Melbourne): Likewise.
1428         ($(testdata)/America/Sao_Paulo, $(testdata)/Asia/Tokyo): Likewise.
1429         (%/UTC %/Universal): New pattern rule, replaces ...
1430         ($(testdata)/UTC, $(testdata)/Universal): ... these removed targets.
1431         ($(testdata)/%/Berlin $(testdata)/%/London): New pattern rule.
1432         ($(testdata)/Europe/London, $(testdata)/Europe/Berlin): Removed.
1434 2005-04-14  Roland McGrath  <roland@redhat.com>
1436         * MakeTAGS ($P/$(domain).pot): Depend on distinfo file as well.
1437         (extract): Filter-out distinfo file name.
1439         [BZ #253]
1440         * MakeTAGS (text-srcs): Match %.bash.in files too.
1442         [BZ #253]
1443         * nscd/Makefile (all-nscd-modules): New variable, include selinux
1444         module regardless of configuration.
1445         (distribute): Use that instead of $(nscd-modules).
1447 2005-04-13  David S. Miller  <davem@davemloft.net>
1449         Add sparc64 TLS and NPTL support.
1450         * elf/tls-macros.h: Add Sparc64 defines.
1451         * sysdeps/sparc/sparc64/dl-machine.h (sparc64_fixup_plt): Mark as
1452         always_inline.
1453         (elf_machine_fixup_plt): Likewise.
1454         (elf_machine_rela): Handle TLS relocations.
1455         (elf_machine_type_cleaa): Likewise.
1456         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
1457         (SYSCALL_ERROR_HANDLER_ENTRY): Use sethi/or for GOT reloc.
1458         It does not always fit in R_SPARC_GOT13 when building -fPIC.
1459         Also, add TLS handling.
1460         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1461         Increase it to 2.4.21 for sparc64.
1462         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: NULL terminate
1463         backtrace by zero'ing out %fp.  Store away flags, func_ptr,
1464         and func_arg in global registers not local registers.
1465         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Handle PTID, TLS,
1466         and CTID arguments properly.  Add RESET_PID handling.
1467         * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Rework so that we
1468         do not invoke __sigprocmask().  We can always assume rt signals
1469         are present on sparc64, so just do an inline syscall.
1471 2005-04-13  Jakub Jelinek  <jakub@redhat.com>
1473         * sysdeps/sparc/sparc64/dl-machine.h: Add dl_machine_h multiple
1474         inclusion guard for the first half of the header.
1475         (elf_machine_type_class, ELF_MACHINE_JMP_SLOT, ELF_MACHINE_NO_REL,
1476         ELF_MACHINE_PLTREL_OVERLAP, elf_machine_runtime_setup,
1477         elf_machine_relplt, DL_STACK_END, RTLD_START): Move into the
1478         #ifndef dl_machine_h guarded part of the header.
1480 2005-04-14  Ulrich Drepper  <drepper@redhat.com>
1482         [BZ #851]
1483         * posix/execvp.c (execvp): Use file name including path when
1484         trying to run it with shell.
1485         * posix/Makefile: Add rules to build and run tst-execvp3.
1486         * posix/tst-execvp3.c: New file.
1488 2005-04-12  Ulrich Drepper  <drepper@redhat.com>
1490         [BZ #1090]
1491         * stdlib/random_r.c (__initstate_r): Don't use non-existing state.
1492         * string/tst-strfry.c: New file.
1493         * string/Makefile (tests): Add tst-strfry.
1495 2005-04-11  James A. Morrison  <ja2morri@uwaterloo.ca>
1497         * manual/string.texi: Fix typo in wmemcpy decl.
1499 2005-04-10  David S. Miller  <davem@davemloft.net>
1501         * sysdeps/sparc/sparc32/dl-trampoline.S: Use std not stx.
1503 2005-04-08  Carlos O'Donell <carlos@baldric.uwo.ca>
1505         * FAQ.in: Explain why `make' might fail running rpcgen.
1506         * FAQ: Regenerated.
1508 2005-04-07  Roland McGrath  <roland@redhat.com>
1510         * po/libc.pot: Regenerated.
1512 2005-04-07  Roland McGrath  <roland@redhat.com>
1514         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion)
1515         [(NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO) && SHARED]: Scan
1516         GLRO(dl_sysinfo_map) for PT_NOTE giving Linux kernel version,
1517         we can skip the uname call if it's there.
1518         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Don't use
1519         DL_SYSDEP_OSCHECK here.
1520         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]: Do it here instead.
1522         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro):
1523         Add _dl_sysinfo_map.
1524         * elf/rtld.c (dl_main): Don't call _dl_init_paths early in the
1525         rtld_is_main case.  Call it unconditionally later.
1526         Move GLRO(dl_sysinfo_dso) handling earlier, before _dl_init_paths call.
1527         Initialize GLRO(dl_sysinfo_map).
1528         * elf/dl-load.c (open_path): Bail out if _dl_init_paths wasn't called.
1529         * sysdeps/generic/dl-sysdep.c (_DL_FIRST_EXTRA): New macro.
1530         (_dl_important_hwcaps)
1531         [(NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO) && SHARED]: Scan
1532         GLRO(dl_sysinfo_map) for PT_NOTE giving synthetic hwcap names
1533         and bit values.
1534         * elf/ldconfig.c (_DL_FIRST_EXTRA): New macro.
1535         (hwcap_extra): New static variable.
1536         (is_hwcap_platform): Check hwcap_extra for a matching name.
1537         Remove tls special case.
1538         (path_hwcap): Likewise.
1539         (parse_conf): Parse "hwcap" directive to define synthetic hwcap bits
1540         and their names, stored in hwcap_extra.
1541         (main) [USE_TLS]: Initialize final synthetic hwcap bit as "tls".
1543         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Use uint64_t for
1544         _dl_hwcap and _dl_hwcap_mask.
1545         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Cast a_val for
1546         AT_HWCAP to unsigned long int.
1547         * elf/dl-support.c (_dl_aux_init): Likewise.
1548         (_dl_hwcap): Update defn.
1550         * elf/cache.c (print_entry): Pad hwcap value with 0s in diagnostic.
1551         * elf/ldconfig.c (search_dir): Likewise.
1553 2005-04-05  Roland McGrath  <roland@redhat.com>
1555         * NEWS: Copy 2.3.5 section from 2.3 branch.
1557         * intl/tst-codeset.sh: Use mkdir -p.  Put msgfmt output in temporary
1558         file and mv it into place.
1559         * intl/tst-gettext3.sh: Likewise.
1561         * Makefile (glibc-%.tar rule): Use make -q to ensure configure scripts
1562         are up to date in srcdir.  Touch all configure scripts after export.
1564         * iconv/gconv_int.h: Include <ctype.h> and <string.h>.
1566 2005-04-05  H.J. Lu  <hongjiu.lu@intel.com>
1568         [BZ #592]
1569         * sysdeps/ia64/fpu/e_acosh.S: Update from Intel libm 2005-04-05
1570         (comment changes only).
1571         * sysdeps/ia64/fpu/e_acoshl.S: Likewise.
1572         * sysdeps/ia64/fpu/e_atanh.S: Likewise.
1573         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
1574         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
1575         * sysdeps/ia64/fpu/e_exp.S: Likewise.
1576         * sysdeps/ia64/fpu/e_exp10.S: Likewise.
1577         * sysdeps/ia64/fpu/e_exp10f.S: Likewise.
1578         * sysdeps/ia64/fpu/e_exp2.S: Likewise.
1579         * sysdeps/ia64/fpu/e_exp2f.S: Likewise.
1580         * sysdeps/ia64/fpu/e_expf.S: Likewise.
1581         * sysdeps/ia64/fpu/e_log.S: Likewise.
1582         * sysdeps/ia64/fpu/e_logf.S: Likewise.
1583         * sysdeps/ia64/fpu/e_pow.S: Likewise.
1584         * sysdeps/ia64/fpu/e_powf.S: Likewise.
1585         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
1586         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
1587         * sysdeps/ia64/fpu/libm_error.c: Likewise.
1588         * sysdeps/ia64/fpu/libm_lgamma.S: Likewise.
1589         * sysdeps/ia64/fpu/libm_lgammaf.S: Likewise.
1590         * sysdeps/ia64/fpu/libm_lgammal.S: Likewise.
1591         * sysdeps/ia64/fpu/libm_sincos.S: Likewise.
1592         * sysdeps/ia64/fpu/libm_sincosf.S: Likewise.
1593         * sysdeps/ia64/fpu/s_asinh.S: Likewise.
1594         * sysdeps/ia64/fpu/s_atanl.S: Likewise.
1595         * sysdeps/ia64/fpu/s_cos.S: Likewise.
1596         * sysdeps/ia64/fpu/s_cosf.S: Likewise.
1597         * sysdeps/ia64/fpu/s_erf.S: Likewise.
1598         * sysdeps/ia64/fpu/s_erfc.S: Likewise.
1599         * sysdeps/ia64/fpu/s_erfcf.S: Likewise.
1600         * sysdeps/ia64/fpu/s_erfcl.S: Likewise.
1601         * sysdeps/ia64/fpu/s_erff.S: Likewise.
1602         * sysdeps/ia64/fpu/s_expm1.S: Likewise.
1603         * sysdeps/ia64/fpu/s_expm1f.S: Likewise.
1604         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
1605         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
1606         * sysdeps/ia64/fpu/s_tanh.S: Likewise.
1607         * sysdeps/ia64/fpu/s_tanhf.S: Likewise.
1608         * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
1609         * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
1610         * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
1612 2005-04-05  Roland McGrath  <roland@redhat.com>
1614         * scripts/config.guess: Update from master, timestamp='2005-03-24'.
1615         * scripts/config.sub: Update from master, timestamp='2005-02-10'.
1617 2005-04-04  David S. Miller  <davem@davemloft.net>
1619         * sysdeps/sparc/sparc32/dl-trampoline.S: New file.
1620         * sysdeps/sparc/sparc32/dl-machine.h: Move PLT trampolines there.
1621         Use RESOLVE_MAP instead of RESOLVE to protect relocation code.
1622         (elf_machine_runtime_setup): Test for dl_profile non-null.
1623         * sysdeps/sparc/sparc64/dl-trampoline.S: New file.
1624         (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): New.
1625         * sysdeps/sparc/sparc64/dl-machine.h: Move PLT trampolines there.
1626         Use RESOLVE_MAP instead of RESOLVE to protect relocation code.
1627         (elf_machine_runtime_setup): Test for dl_profile non-null.
1628         * sysdeps/sparc/bits/link.h: New file.
1629         * sysdeps/generic/ldsodefs.h (La_sparc32_regs, La_sparc32_retval,
1630         La_sparc64_regs, La_sparc64_retval): New.
1631         (struct audit_ifaces): Add sparc entries.
1632         * elf/tst-auditmod1.c: Add sparc entries.
1634 2005-03-27  Bruno Haible  <bruno@clisp.org>
1636         * intl/tst-gettext3.c: New file.
1637         * intl/tst-gettext3.sh: New file.
1638         * intl/Makefile (distribute): Add tst-gettext3.sh.
1639         (test-srcs): Add tst-gettext3.
1640         (tests): Depend on tst-gettext3.out.
1641         (tst-gettext3.out): New rule.
1642         (CFLAGS-tst-gettext3.c): New variable.
1644         Fix bug exposed by tst-gettext3.
1645         * intl/gettextP.h (struct converted_domain): New type.
1646         (struct loaded_domain): Remove the conv, conv_tab fields. Add
1647         conversions, nconversions fields.
1648         (_nl_init_domain_conv): Remove declaration.
1649         (_nl_free_domain_conv): Remove declaration.
1650         (_nl_find_msg): Add convert argument.
1651         * intl/dcigettext.c (DCIGETTEXT): Call _nl_find_msg with convert=1.
1652         (_nl_find_msg): Add convert argument. When a conversion to a different
1653         charset is needed, create a new converted_domain element, instead of
1654         throwing away the old converted translations.
1655         (get_output_charset): New function.
1656         * intl/loadmsgcat.c (_nl_init_domain_conv): Remove function.
1657         (_nl_free_domain_conv): Remove function.
1658         (_nl_load_domain): Initialize the conversions array to empty. Use
1659         _nl_find_msg instead of _nl_init_domain_conv to retrieve the header
1660         entry.
1661         (_nl_unload_domain): Free the conversions array and its contents.
1663         * intl/gettextP.h (struct loaded_domain): Remove codeset_cntr field.
1664         (struct binding): Likewise.
1665         * intl/bindtextdom.c (set_binding_values): Drop codeset_cntr
1666         modifications.
1668 2005-04-04  Jakub Jelinek  <jakub@redhat.com>
1670         [BZ #1082]
1671         * sunrpc/pmap_rmt.c (xdr_rmtcall_args): Use a dummy arglen instead
1672         of trying to encode uninitialized arglen.
1674 2005-04-04  Ulrich Drepper  <drepper@redhat.com>
1676         [BZ #825]
1677         * timezone/scheck.c: Update from tzcode2005h.
1678         * timezone/tzfile.h: Likewise.
1679         * timezone/zdump.c: Likewise.
1680         * timezone/zic.c: Likewise.
1682         [BZ #825]
1683         * timezone/antarctica: Update from tzdata2005h.
1684         * timezone/asia: Likewise.
1685         * timezone/australasia: Likewise.
1686         * timezone/etcetera: Likewise.
1687         * timezone/europe: Likewise.
1688         * timezone/northamerica: Likewise.
1689         * timezone/southamerica: Likewise.
1690         * timezone/leapseconds: Likewise.
1691         * timezone/iso3166.tab: Likewise.
1693 2005-03-31  H.J. Lu  <hongjiu.lu@intel.com>
1695         [BZ #592]
1696         * sysdeps/ia64/fpu/libm_cpu_defs.h: Update copyright.
1698 2005-04-01  Ulrich Drepper  <drepper@redhat.com>
1700         * wcsmbs/btowc.c (__btowc): Optimize parameters in ASCII range.
1701         * wcsmbs/wctob.c (wctob): Likewise.
1702         * wcsmbs/wchar.h (btowc): Add optimized inline function.
1703         (wctob): Likewise.
1705 2005-03-31  Jakub Jelinek  <jakub@redhat.com>
1707         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Use functionally
1708         equivalent, but shorter instructions.
1709         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
1710         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
1711         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
1712         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
1713         * sysdeps/unix/x86_64/sysdep.S: Likewise.
1714         * sysdeps/x86_64/strchr.S: Likewise.
1715         * sysdeps/x86_64/memset.S: Likewise.
1716         * sysdeps/x86_64/strcspn.S: Likewise.
1717         * sysdeps/x86_64/strcmp.S: Likewise.
1718         * sysdeps/x86_64/elf/start.S: Likewise.
1719         * sysdeps/x86_64/strspn.S: Likewise.
1720         * sysdeps/x86_64/dl-machine.h: Likewise.
1721         * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
1722         * sysdeps/x86_64/bsd-setjmp.S: Likewise.
1723         * sysdeps/x86_64/strtok.S: Likewise.
1725 2005-03-30  H.J. Lu  <hongjiu.lu@intel.com>
1727         [BZ #592]
1728         * sysdeps/ia64/fpu/e_acosf.S: Update from Intel libm 2005-03-21.
1729         * sysdeps/ia64/fpu/e_acoshf.S: Likewise.
1730         * sysdeps/ia64/fpu/e_acoshl.S: Likewise.
1731         * sysdeps/ia64/fpu/e_acosh.S: Likewise.
1732         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
1733         * sysdeps/ia64/fpu/e_acos.S: Likewise.
1734         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
1735         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
1736         * sysdeps/ia64/fpu/e_asin.S: Likewise.
1737         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
1738         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
1739         * sysdeps/ia64/fpu/e_atanhf.S: Likewise.
1740         * sysdeps/ia64/fpu/e_atanhl.S: Likewise.
1741         * sysdeps/ia64/fpu/e_atanh.S: Likewise.
1742         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
1743         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
1744         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
1745         * sysdeps/ia64/fpu/e_exp10f.S: Likewise.
1746         * sysdeps/ia64/fpu/e_exp10l.S: Likewise.
1747         * sysdeps/ia64/fpu/e_exp10.S: Likewise.
1748         * sysdeps/ia64/fpu/e_exp2f.S: Likewise.
1749         * sysdeps/ia64/fpu/e_exp2l.S: Likewise.
1750         * sysdeps/ia64/fpu/e_exp2.S: Likewise.
1751         * sysdeps/ia64/fpu/e_expf.S: Likewise.
1752         * sysdeps/ia64/fpu/e_exp.S: Likewise.
1753         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
1754         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
1755         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
1756         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
1757         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
1758         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
1759         * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
1760         * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
1761         * sysdeps/ia64/fpu/e_lgamma_r.c: Likewise.
1762         * sysdeps/ia64/fpu/e_log2f.S: Likewise.
1763         * sysdeps/ia64/fpu/e_log2l.S: Likewise.
1764         * sysdeps/ia64/fpu/e_log2.S: Likewise.
1765         * sysdeps/ia64/fpu/e_logf.S: Likewise.
1766         * sysdeps/ia64/fpu/e_logl.S: Likewise.
1767         * sysdeps/ia64/fpu/e_log.S: Likewise.
1768         * sysdeps/ia64/fpu/e_powf.S: Likewise.
1769         * sysdeps/ia64/fpu/e_powl.S: Likewise.
1770         * sysdeps/ia64/fpu/e_pow.S: Likewise.
1771         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
1772         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
1773         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
1774         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
1775         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
1776         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
1777         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
1778         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
1779         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
1780         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
1781         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
1782         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
1783         * sysdeps/ia64/fpu/libm_error.c: Likewise.
1784         * sysdeps/ia64/fpu/libm_lgammaf.S: Likewise.
1785         * sysdeps/ia64/fpu/libm_lgammal.S: Likewise.
1786         * sysdeps/ia64/fpu/libm_lgamma.S: Likewise.
1787         * sysdeps/ia64/fpu/libm_scalblnf.S: Likewise.
1788         * sysdeps/ia64/fpu/libm_sincosf.S: Likewise.
1789         * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1790         * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1791         * sysdeps/ia64/fpu/libm_sincos.S: Likewise.
1792         * sysdeps/ia64/fpu/libm_support.h: Likewise.
1793         * sysdeps/ia64/fpu/s_asinhl.S: Likewise.
1794         * sysdeps/ia64/fpu/s_asinh.S: Likewise.
1795         * sysdeps/ia64/fpu/s_atanf.S: Likewise.
1796         * sysdeps/ia64/fpu/s_atanl.S: Likewise.
1797         * sysdeps/ia64/fpu/s_cbrtf.S: Likewise.
1798         * sysdeps/ia64/fpu/s_cbrtl.S: Likewise.
1799         * sysdeps/ia64/fpu/s_cosf.S: Likewise.
1800         * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1801         * sysdeps/ia64/fpu/s_cos.S: Likewise.
1802         * sysdeps/ia64/fpu/s_erfcf.S: Likewise.
1803         * sysdeps/ia64/fpu/s_erfcl.S: Likewise.
1804         * sysdeps/ia64/fpu/s_erfc.S: Likewise.
1805         * sysdeps/ia64/fpu/s_erfl.S: Likewise.
1806         * sysdeps/ia64/fpu/s_erf.S: Likewise.
1807         * sysdeps/ia64/fpu/s_expm1f.S: Likewise.
1808         * sysdeps/ia64/fpu/s_expm1l.S: Likewise.
1809         * sysdeps/ia64/fpu/s_expm1.S: Likewise.
1810         * sysdeps/ia64/fpu/s_fdimf.S: Likewise.
1811         * sysdeps/ia64/fpu/s_fdiml.S: Likewise.
1812         * sysdeps/ia64/fpu/s_fdim.S: Likewise.
1813         * sysdeps/ia64/fpu/s_frexp.c: Likewise.
1814         * sysdeps/ia64/fpu/s_frexpf.c: Likewise.
1815         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
1816         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
1817         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
1818         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
1819         * sysdeps/ia64/fpu/s_ldexp.c: Likewise.
1820         * sysdeps/ia64/fpu/s_ldexpf.c: Likewise.
1821         * sysdeps/ia64/fpu/s_ldexpl.c: Likewise.
1822         * sysdeps/ia64/fpu/s_libm_ldexpf.S: Likewise.
1823         * sysdeps/ia64/fpu/s_libm_ldexpl.S: Likewise.
1824         * sysdeps/ia64/fpu/s_libm_ldexp.S: Likewise.
1825         * sysdeps/ia64/fpu/s_libm_scalbnf.S: Likewise.
1826         * sysdeps/ia64/fpu/s_libm_scalbnl.S: Likewise.
1827         * sysdeps/ia64/fpu/s_libm_scalbn.S: Likewise.
1828         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
1829         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
1830         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
1831         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
1832         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
1833         * sysdeps/ia64/fpu/s_logb.S: Likewise.
1834         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
1835         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
1836         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
1837         * sysdeps/ia64/fpu/s_nextafterf.S: Likewise.
1838         * sysdeps/ia64/fpu/s_nextafterl.S: Likewise.
1839         * sysdeps/ia64/fpu/s_nextafter.S: Likewise.
1840         * sysdeps/ia64/fpu/s_nexttowardf.S: Likewise.
1841         * sysdeps/ia64/fpu/s_nexttowardl.S: Likewise.
1842         * sysdeps/ia64/fpu/s_nexttoward.S: Likewise.
1843         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
1844         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
1845         * sysdeps/ia64/fpu/s_round.S: Likewise.
1846         * sysdeps/ia64/fpu/s_scalblnf.c: Likewise.
1847         * sysdeps/ia64/fpu/s_scalbn.c: Likewise.
1848         * sysdeps/ia64/fpu/s_scalbnf.c: Likewise.
1849         * sysdeps/ia64/fpu/s_scalbnl.c: Likewise.
1850         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
1851         * sysdeps/ia64/fpu/s_tanhl.S: Likewise.
1852         * sysdeps/ia64/fpu/s_tanh.S: Likewise.
1853         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
1854         * sysdeps/ia64/fpu/s_tan.S: Likewise.
1855         * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
1856         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
1857         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
1858         * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
1859         * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
1860         * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
1862         [BZ #592]
1863         * sysdeps/ia64/fpu/libm_cpu_defs.h: New file.
1864         * sysdeps/ia64/fpu/libm_error_codes.h: New file.
1866         [BZ #592]
1867         * sysdeps/ia64/fpu/gen_import_file_list: Updated for Intel libm
1868         2005-03-21.
1869         * sysdeps/ia64/fpu/import_file.awk: Likewise.
1870         * sysdeps/ia64/fpu/import_intel_libm: Likewise.
1871         * sysdeps/ia64/fpu/Makefile: Likewise.
1873 2005-03-29  Jakub Jelinek  <jakub@redhat.com>
1875         [BZ #1087]
1876         * posix/fnmatch.c (fnmatch): For short patterns or strings attempt to
1877         avoid calling mbsrtowcs twice.
1879 2005-03-29  Roland McGrath  <roland@redhat.com>
1881         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): New
1882         function, inline broken out of ...
1883         (DL_SYSDEP_OSCHECK): ... here.  Use that.
1884         Do the discovery and set GLRO(dl_osversion) if successful,
1885         if __LINUX_KERNEL_VERSION <= 0.
1886         * elf/dl-load.c: Don't include dl-osinfo.h here.
1888 2005-03-29  Alfred M. Szmidt  <ams@gnu.org>
1890         * manual/install.texi (Tools for Compilation): GNU binutils 2.15
1891         is now needed.
1893 2005-03-19  Bruno Haible  <bruno@clisp.org>
1895         * intl/dcigettext.c (struct known_translation_t): Change type of
1896         domainname field to 'const char *'.
1897         (DCIGETTEXT): Remove const-cast.
1899 2005-03-29  Thorsten Kukuk  <kukuk@suse.de>
1901         [BZ #661]
1902         * grp/initgroups.c (internal_getgrouplist): Check if we have
1903         enough space before adding the primary group to the list.
1905         * posix/tst-execle1.c (do_test): Fix execle arguments.
1906         * posix/tst-execle2.c (do_test): Likewise.
1908 2005-03-28  Roland McGrath  <roland@redhat.com>
1910         * sysdeps/generic/w_exp2.c [NO_LONG_DOUBLE]: Fix typos in alias names.
1911         Reported by Mark Mitchell <mark@codesourcery.com>.
1912         * Versions.def (libm): Define GLIBC_2.4 set.
1913         * math/Versions (libm: GLIBC_2.4): Add this set, with exp2l.
1914         * sysdeps/i386/Versions (libm: GLIBC_2.1): Add this set, with exp2l.
1915         * sysdeps/ia64/Versions: Likewise.
1916         * sysdeps/m68k/Versions: Likewise.
1917         * sysdeps/sparc/sparc64/Versions: Likewise.
1918         * sysdeps/x86_64/Versions: New file.
1919         * sysdeps/mips/mips64/Versions: New file.
1921         * locale/langinfo.h (_NL_LOCALE_NAME): New macro.
1922         [__USE_GNU] (NL_LOCALE_NAME): New macro.
1923         * locale/nl_langinfo.c: Grok special item value for _NL_LOCALE_NAME,
1924         return locale name string for the category.
1926 2005-03-25  Jakub Jelinek  <jakub@redhat.com>
1928         * sysdeps/generic/wcstoul_l.c: Include "wcstol_l.c" rather than
1929         <wcstol_l.c>.
1931 2005-03-28  Daniel Jacobowitz  <dan@codesourcery.com>
1933         * sysdeps/mips/atomicity.h: Remove unused file.
1934         * sysdeps/mips/dl-machine.h (elf_machine_rel): Add TLS relocations.
1935         * sysdeps/mips/dl-tls.h: New file.
1936         * sysdeps/mips/libc-tls.c: New file.
1937         * sysdeps/mips/tls-macros.h: New file.
1938         * sysdeps/mips/bits/atomic.h: New file.
1939         * sysdeps/mips/bits/setjmp.h: Protect against multiple inclusion.
1940         * sysdeps/mips/elf/configure.in: New file.
1941         * sysdeps/mips/elf/configure: Generated.
1942         * sysdeps/mips/sys/asm.h: New file.
1943         * sysdeps/unix/sysv/linux/mips/vfork.S: New file.
1944         * sysdeps/unix/sysv/linux/mips/clone.S: Add NPTL and five-argument
1945         clone support.
1946         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
1947         (INTERNAL_SYSCALL_NCS): New.
1948         (INTERNAL_SYSCALL): Update for non-constant support.
1949         (internal_syscall0): Likewise.
1950         (internal_syscall1): Likewise.
1951         (internal_syscall2): Likewise.
1952         (internal_syscall3): Likewise.
1953         (internal_syscall4): Likewise.
1954         (internal_syscall5): Likewise.
1955         (internal_syscall6): Likewise.
1956         (internal_syscall7): Likewise.
1957         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (SIGEV_THREAD):
1958         Update to match the kernel.
1959         (SIGEV_CALLBACK): Likewise.
1960         (SIGEV_THREAD_ID): Likewise.
1962 2005-03-28  Daniel Jacobowitz  <dan@codesourcery.com>
1964         [BZ #783]
1965         * elf/tst-auditmod1.c: Add MIPS support.
1966         * sysdeps/generic/ldsodefs.h (La_mips_32_regs): New.
1967         (La_mips_32_retval): New.
1968         (La_mips_64_regs): New.
1969         (La_mips_64_retval): New.
1970         (struct audit_ifaces): Add MIPS entries.
1971         * sysdeps/mips/dl-machine.h: Check RESOLVE_MAP instead of RESOLVE.
1972         (elf_machine_runtime_link_map, ELF_DL_FRAME_SIZE,
1973         ELF_DL_SAVE_ARG_REGS, ELF_DL_RESTORE_ARG_REGS,
1974         ELF_MACHINE_RUNTIME_TRAMPOLINE): Move to dl-trampoline.c.
1975         (RTLD_START): Align the stack before calling _dl_init_internal.
1976         Use .ent for _dl_start_user.
1977         (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): Define.
1978         (elf_machine_rel, elf_machine_rel_relative, elf_machine_lazy_rel)
1979         (elf_machine_runtime_setup): Use "auto inline".
1980         (elf_machine_rela, elf_machine_rela_relative): Provide empty versions.
1981         (elf_machine_got_rel): Likewise.  Use RESOLVE_MAP.
1982         * sysdeps/mips/dl-trampoline.c: New file.
1983         * sysdeps/mips/bits/link.h: New file.
1984         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
1985         (internal_syscall5): Use register operands instead of non-lvalue
1986         memory operands.
1987         (internal_syscall6): Likewise.
1988         (internal_syscall7): Likewise.
1990 2005-03-27  Andreas Jaeger  <aj@suse.de>
1992         * debug/warning-nop.c (__builtin___memcpy_chk): Define away to
1993         avoid warnings with older compiler.
1994         (__builtin___memcpy_chk): Likewise.
1995         (__builtin___memmove_chk: Likewise.
1996         (__builtin___mempcpy_chk): Likewise.
1997         (__builtin___memset_chk): Likewise.
1998         (__builtin___stpcpy_chk): Likewise.
1999         (__builtin___strcat_chk): Likewise.
2000         (__builtin___strcpy_chk): Likewise.
2001         (__builtin___strncat_chk): Likewise.
2002         (__builtin___strncpy_chk): Likewise.
2003         (__builtin_object_size): Likewise.
2005 2005-03-27  Daniel Jacobowitz  <dan@codesourcery.com>
2007         * elf/tls-macros.h: Correct typo.
2009 2005-03-23  Jakub Jelinek  <jakub@redhat.com>
2011         [BZ #822]
2012         * nis/ypclnt.c (yp_2_yperr): Revert 2004-11-30 patch.
2013         (ypprot_err): Use yp_2_yperr table also for YP_NODOM .. YP_NOMORE.
2015 2005-03-22  Roland McGrath  <roland@redhat.com>
2017         * locale/setlocale.c: Comment typo.
2019         * scripts/versions.awk: No errors for GLIBC_PRIVATE.
2021         * Versions.def (libdl, librt): Add GLIBC_2.3.4 version.
2023         * scripts/versions.awk: Print all errors and die at the end.
2024         Use library name in versions array keys.
2026 2005-03-22  Daniel Jacobowitz  <dan@codesourcery.com>
2028         * elf/elf.h (PT_ARM_EXIDX): New macro.
2030 2005-03-21  Thorsten Kukuk  <kukuk@suse.de>
2032         [BZ #1098]
2033         * sunrpc/xdr_stdio.c (xdrstdio_getlong, xdrstdio_putlong):
2034         Convert correctly between long/int on 64bit big-endian.
2036 2005-03-21  David Mosberger  <davidm@hpl.hp.com>
2038         * sysdeps/ia64/_mcount.S: Newer kernels don't like register-frames
2039         with more than 8 output registers.  Fix this by passing original
2040         ar.pfs to _mcount_ret_helper via r3.
2042 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
2044         [BZ #786]
2045         * sysdeps/generic/dl-tls.c (_dl_next_tls_modid): Handle
2046         GL(dl_tls_static_nelem) == GL(dl_tls_max_dtv_idx).
2047         * elf/Makefile: Add rules to build and run tst-tls15.
2048         * elf/tst-tls15.c: New test.
2049         * elf/tst-tlsmod15a.c: New file.
2050         * elf/tst-tlsmod15b.c: New file.
2052 2005-03-20  Ulrich Drepper  <drepper@redhat.com>
2054         * elf/rtld.c (dl_main): Always call init_tls if we have audit modules.
2056 2005-03-20  Alfred M. Szmidt  <ams@gnu.org>
2058         * elf/dl-open.c (dl_open_worker): Fix typo.
2060 2005-03-20  Ulrich Drepper  <drepper@redhat.com>
2062         * malloc/malloc.c (public_cALLOc): We cannot skip the memory
2063         clearing if perturb_byte != 0.
2065 2005-03-20  Jakub Jelinek  <jakub@redhat.com>
2067         * posix/bits/unistd.h (pread) [__USE_FILE_OFFSET64]: Use __off64_t
2068         instead of __off_t for last argument.
2069         * debug/Makefile (tests): Add tst-lfschk{1,2,3}.
2070         * debug/tst-lfschk1.c: New test.
2071         * debug/tst-lfschk2.c: New test.
2072         * debug/tst-lfschk3.c: New test.
2074 2005-02-09  Jakub Jelinek  <jakub@redhat.com>
2076         * sysdeps/unix/sysv/linux/bits/termios.h (CMSPAR): Define.
2077         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Add __USE_MISC
2078         and __USE_XOPEN guards to match linux/bits/termios.h.
2079         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2080         (CMSPAR): Define.
2081         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2083 2005-02-10  H.J. Lu  <hongjiu.lu@intel.com>
2085         * sysdeps/ia64/elf/initfini.c: Add local _init and _fini labels.
2087 2005-02-27  Denis Barbier  <barbier@debian.org>
2089         [BZ #549]
2090         * locale/iso-4217.def: Add CSD currency.
2092 2005-03-19  Ulrich Drepper  <drepper@redhat.com>
2094         * inet/test-ifaddrs.c: Use test-skeleton.
2095         * inet/test_ifindex.c: Likewise.
2097         [BZ #821]
2098         * elf/dl-lookup.c (add_dependency): Always search l_initfini if
2099         the list exists.
2101         [BZ #821]
2102         * elf/Makefile: Add rules to build and run order2.
2103         * elf/order2.c: New file.
2104         * elf/order2mod1.c: New file.
2105         * elf/order2mod2.c: New file.
2106         * elf/order2mod3.c: New file.
2107         * elf/order2mod4.c: New file.
2109 2005-03-19  Jakub Jelinek  <jakub@redhat.com>
2111         [BZ #821]
2112         * elf/dl-open.c (dl_open_worker): Print exact l_direct_opencount value,
2113         it has been incremented before.
2115 2005-03-18  Ulrich Drepper  <drepper@redhat.com>
2117         [BZ #821]
2118         * elf/dl-fini.c (_dl_fini): Split sorting of the maps in separate
2119         function _dl_sort_fini.
2120         (_dl_sort_fini): New function.
2121         * sysdeps/generic/ldsodefs.h: Declare _dl_sort_fini.
2122         * elf/dl-close.c (_dl_close): Call _dl_sort_fini before running
2123         destructors to call them in the right order.
2125 2005-02-07  Steven Munroe  <sjmunroe@us.ibm.com>
2127         * sysdeps/powerpc/bits/link.h (La_ppc64_regs): Add lr_vrsave.
2128         (La_ppc64_retval): Correct size of lrc_fp.
2129         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_profile_resolve):
2130         Fix up ABI problems and complete function.
2132 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
2134         * math/test-misc.c (main): Add some more tests.
2136 2005-03-17  Jakub Jelinek  <jakub@redhat.com>
2138         * posix/regcomp.c (re_compile_fastmap_iter): Fix check for failed
2139         __wcrtomb.  Check return values of other __wcrtomb calls.
2140         * posix/regex_internal.c (build_wcs_buffer, re_string_skip_chars):
2141         Change mbclen type to size_t.
2142         (build_wcs_upper_buffer): Change mbclen and mbcdlen type to size_t.
2143         Handle mb chars whose upper case doesn't have multibyte representation
2144         in locale's charset.
2146 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
2148         * malloc/malloc.c (_int_icalloc, _int_icomalloc, iALLOc,
2149         public_iCALLOc, public_iCALLOc, public_iCOMALLOc): Protect with
2150         #ifndef _LIBC.
2152         [BZ #779]
2153         * malloc/malloc.c (public_mTRIm): Initialize malloc if not yet
2154         initialized.
2156 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
2158         * misc/sys/cdefs.h (__always_inline): Define.
2159         * posix/bits/unistd.h (read, pread, pread64, readlink, getcwd, getwd):
2160         Use __always_inline instead of __inline.
2161         * socket/bits/socket2.h (recv, recvfrom): Likewise.
2162         * libio/bits/stdio2.h (gets, fgets, fgets_unlocked): Likewise.
2163         * string/bits/string3.h (__memcpy_ichk, __memmove_ichk, __mempcpy_ichk,
2164         __memset_ichk, __strcpy_ichk, __stpcpy_ichk, __strncpy_ichk,
2165         __strcat_ichk, __strncat_ichk): Use __always_inline instead of
2166         __inline__ __attribute__ ((__always_inline__)).
2168 2005-03-09  Jakub Jelinek  <jakub@redhat.com>
2170         * debug/tst-chk1.c: Include sys/socket.h and sys/un.h.
2171         (do_test): Add new tests for recv, recvfrom, getcwd, getwd and
2172         readlink.  Add some more tests for read, pread, pread64, fgets and
2173         fgets_unlocked.
2175         * posix/bits/unistd.h (read, pread, pread64, readlink,
2176         getcwd, getwd): Change macros into extern inline functions.
2177         (__read_alias, __pread_alias, __pread64_alias, __readlink_alias,
2178         __getcwd_alias, __getwd_alias): New prototypes.
2179         * socket/bits/socket2.h (recv, recvfrom): Change macros into
2180         extern inline functions.
2181         (__recv_alias, __recvfrom_alias): New prototypes.
2182         * libio/bits/stdio2.h (gets, fgets, fgets_unlocked): Change macros
2183         into extern inline functions.
2184         (__gets_alias, __fgets_alias, __fgets_unlocked_alias): New prototypes.
2186         * debug/pread_chk.c (__pread_chk): Fix order of arguments passed
2187         to __pread.
2188         * debug/pread64_chk.c (__pread64_chk): Fix order of arguments passed
2189         to __pread64.
2191 2005-03-18  Daniel Jacobowitz  <dan@codesourcery.com>
2193         * configure.in: Use %function instead of @function.
2195 2005-03-18  Ulrich Drepper  <drepper@redhat.com>
2197         [BZ #821]
2198         * include/link.h (struct link_map): Remove l_opencount.  Add l_removed.
2199         Change type of l_idx to int.
2200         * elf/dl-close.c: Basically rewrite.  Do not use l_opencount to
2201         determine whether a DSO has to be unloaded.  Instead compute this
2202         in this function.
2203         * elf/dl-deps.c: No need to manipulate l_opencount anymore.
2204         * elf/dl-lookup.c: Likewise.
2205         * elf/rtld.c: Likewise
2206         * elf/dl-open.c: Likewise.  Use l_init_called to determine whether
2207         object was just loaded.
2208         * elf/dl-fini.c: Bump l_direct_opencount instead of l_opencount.
2209         * elf/dl-load.c (_dl_map_object_from_fd): Do not recognize DSO which
2210         is about to be unloaded as a match.
2211         (_dl_map_object): Likewise.
2212         * elf/do-lookup.h (do_lookup_x): Do not look into DSO which is about
2213         to be unloaded.
2214         * elf/circleload1.c: Don't use l_opencount anymore.
2215         * elf/neededtest.c: Likewise.
2216         * elf/neededtest2.c: Likewise.
2217         * elf/neededtest3.c: Likewise.
2218         * elf/neededtest4.c: Likewise.
2219         * elf/unload.c: Likewise.
2220         * elf/unload2.c: Likewise.
2221         * elf/loadtest.c: Likewise.
2223         [BZ #821]
2224         * elf/rtld.c: Preloading errors are now never fatal.
2226 2005-03-08  Jakub Jelinek  <jakub@redhat.com>
2228         [BZ #821]
2229         * elf/Makefile: Add rules to build and run unload5 test.
2230         * elf/unload5.c: New file.
2232         [BZ #821]
2233         * elf/Makefile: Add rules to build and run unload4 test.
2234         * elf/unload4.c: New file.
2235         * elf/unload4mod1.c: New file.
2236         * elf/unload4mod2.c: New file.
2237         * elf/unload4mod3.c: New file.
2238         * elf/unload4mod4.c: New file.
2240 2005-03-17  Roland McGrath  <roland@redhat.com>
2242         * nscd/aicache.c (addhstaiX): Tweak type to avoid warning.
2244 2005-03-16  Richard Henderson  <rth@redhat.com>
2246         * include/libc-symbols.h (__hidden_proto): Remove bogus declaration
2247         of internal.
2248         (__hidden_def1, __hidden_dot_def1): Remove.
2249         (__hidden_def2, __hidden_def3): Remove.
2250         (__hidden_ver1): New.
2251         (hidden_ver, hidden_def, hidden_weak): Use it.
2252         (hidden_data_ver, hidden_data_ver, hidden_data_weak): Use non-data
2253         version of the macro.
2255         * include/wchar.h (__wcscoll): Remove.
2256         * wcsmbs/wcscoll.c: Define wcscoll directly instead of via __wcscoll.
2257         * string/strcoll.c: Don't issue libc_hidden_def STRCOLL redefined.
2259 2005-03-16  Daniel Jacobowitz  <dan@codesourcery.com>
2261         * elf/elf.h: Define MIPS TLS relocations.
2263 2005-03-16  Ulrich Drepper  <drepper@redhat.com>
2265         * elf/circleload1.c (main): Pretty printing.
2267 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
2269         * sysdeps/generic/wordexp.c (exec_comm_child): Add inline keyword.
2270         Patch by Dan Kegel <dank@kegel.com>.
2272         * elf/dynamic-link.h (elf_machine_rel, elf_machine_rel_relative,
2273         elf_machine_rela, elf_machine_rela_relative, elf_machine_lazy_rel):
2274         Add inline keyword.
2275         * sysdeps/alpha/dl-machine.h (elf_machine_rela,
2276         elf_machine_rela_relative, elf_machine_lazy_rel): Add always_inline
2277         attribute.
2278         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
2279         elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.  Change
2280         static inline into auto inline.
2281         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
2282         elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.
2283         * sysdeps/generic/dl-machine.h (elf_machine_rel, elf_machine_rela):
2284         Likewise.
2285         * sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rel_relative,
2286         elf_machine_rela, elf_machine_rela_relative, elf_machine_lazy_rel):
2287         Likewise.
2289 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
2291         [BZ #789]
2292         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Fix asm constraints.
2293         Remove memory clobber.
2295         * sysdeps/x86_64/hp-timing.h (HP_TIMING_ACCUM): Make the addition
2296         thread-safe.  Subtract GLRO(dl_hp_timing_overhead) from Diff.
2298 2005-03-14  Jakub Jelinek  <jakub@redhat.com>
2300         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Don't include
2301         asm/types.h.
2303 2005-03-10  GOTO Masanori  <gotom@debian.or.jp>
2305         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Define MAP_POPULATE and
2306         MAP_NONBLOCK.
2307         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
2308         Correct MAP_GROWSDOWN value.
2310 2005-03-13  Roland McGrath  <roland@redhat.com>
2312         * elf/tls-macros.h: #include_next <tls-macros.h> to get a sysdeps
2313         version if there is one.  Only #error if macros are then undefined.
2314         * sysdeps/generic/tls-macros.h: New file.
2316 2005-03-10  GOTO Masanori  <gotom@debian.or.jp>
2318         * sysdeps/hppa/configure.in: Remove old Makefile leftovers.
2319         * sysdeps/hppa/configure: Regenerated.
2321 2005-03-08  Roland McGrath  <roland@redhat.com>
2323         * sysdeps/gnu/errlist-compat.awk: Use NERR in all array decls, so
2324         array types match exactly in C alias decls.
2326 2005-03-07  Ulrich Drepper  <drepper@redhat.com>
2328         * malloc/arena.c (ptmalloc_init): Recognize MALLOC_PERTURB_ and call
2329         mallopt appropriately.
2330         * malloc/malloc.h: Define M_PERTURB.
2331         * malloc/malloc.c (perturb_byte): New variable.
2332         (alloc_perturb, free_perturb): New macros.
2333         (_int_malloc): Before returning, overwrite the memory if this is
2334         requested.
2335         (_int_free): Overwrite freed memory if requested.
2336         (mALLOPt): Handle M_PERTURB.
2337         * test-skeleton.c: Add call to mallopt with M_PERTURB command.
2339         * elf/dl-close.c (_dl_close): Decrement l_opencount before
2340         printing debug message.
2341         * elf/dl-open.c (dl_open_worker): Always print the new opencount
2342         in debug messages.
2344 2005-03-06  Ulrich Drepper  <drepper@redhat.com>
2346         * elf/dl-close.c (_dl_close): Unify debug message format.
2348         * elf/dl-close.c (_dl_close): Print debug message just before
2349         destroying a link map.
2351         * elf/do-lookup.h (do_lookup_x): Add namespace info to debug output.
2352         * elf/dl-version.c (match_symbol): Likewise.
2354         * posix/bits/unistd.h (pread): Fix typo in __USE_FILE_OFFSET64 code.
2356         * debug/recv_chk.c (__recv_chk): Always fail if request could
2357         overflow the buffer.
2358         * debug/recvfrom_chk.c (__recvfrom_chk): Likewise.
2359         * socket/bits/socket2.h (recv): Avoid calls to the _chk variant if
2360         we know the call succeeds.
2361         (recvfrom): Likewise.
2363 2005-03-05  Ulrich Drepper  <drepper@redhat.com>
2365         * posix/regexec.c (check_node_accept_bytes): Correct cast to avoid
2366         warning.
2367         * posix/regex_internal.c (re_string_reconstruct): Add cast to
2368         avoid warning.
2369         (build_wcs_upper_buffer): Change type of bug to plain char.
2370         * locale/weightwc.h (findidx): Add casts to avoid warnings.
2371         * time/mktime.c (ranged_convert): Initialize tm to make the
2372         compiler happy.
2373         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Add casts to avoid warnings.
2374         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Add casts to avoid warnings.
2375         * wcsmbs/mbsnrtowcs.c: Add casts to avoid warnings.
2376         * wcsmbs/wcsrtombs.c (__wcsrtombs): Add casts to avoid warnings.
2377         * wcsmbs/wcrtomb.c (__wcrtomb): Add casts to avoid warnings.
2378         * wcsmbs/mbrtowc.c (__mbrtowc): Use unsigned char for outbuf.
2379         * wcsmbs/wctob.c (wctob): Make buf array of unsigned char.
2380         * sysdeps/generic/strchrnul.c: Add cast to avoid warning.
2381         * libio/iofwide.c: Add casts to avoid warnings.
2382         * stdio-common/printf-prs.c (parse_printf_format): Introduce new
2383         variable f to avoid warnings.
2384         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
2385         Fix a few casts to avoid warnings.
2386         * iconv/gconv_simple.c (internal_utf8_loop): Make start unsigned
2387         to avoid warning.
2389         [BZ #1101]
2390         * posix/regex_internal.c [_LIBC] (build_wcs_buffer): Avoid using
2391         dynamically sized array.
2392         (build_wcs_upper_buffer): Likewise.
2394 2005-03-05  Jakub Jelinek  <jakub@redhat.com>
2396         * include/bits/unistd.h: New file.
2397         * include/bits/socket2.h: New file.
2399 2005-03-05  Ulrich Drepper  <drepper@redhat.com>
2401         * sunrpc/key_call.c: Remove doors support.
2402         * sunrpc/Makefile: Remove CPPFLAGS-key_call.c definition.
2403         * configure.in: Remove test for doors support which never existed.
2404         * config.make.in: Remove have_doors entry.
2406         * configure.in: Make sure at least gcc 3.4 is used.  Undo last change.
2407         * config.make.in: Undo last change.
2409         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Unconditionally use
2410         -mtune.
2412 2005-03-05  Roland McGrath  <roland@redhat.com>
2414         * sysdeps/generic/ldsodefs.h (_dl_out_of_memory_internal): Remove decl.
2415         (_dl_out_of_memory): Use rtld_hidden_proto.
2416         * elf/dl-error.c (_dl_out_of_memory): Use rtld_hidden_data_def.
2417         (_dl_signal_error): Don't use INTUSE on _dl_out_of_memory.
2418         * elf/dl-open.c (_dl_open): Likewise.
2419         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
2421         * sunrpc/des_impl.c (des_set_key): Make first argument unsigned char *.
2423         * elf/dl-addr.c (_dl_addr): Add a cast.
2425         [BZ #821]
2426         * elf/unload3mod4.c: Declare foo.
2427         * elf/testobj2.c: Include <stdio.h>.
2429         * sysdeps/gnu/errlist.awk: Emit NERR macro for _sys_nerr_internal
2430         value constant, and use it in the defn.
2431         * sysdeps/gnu/errlist-compat.awk: Use NERR in array decl.
2432         Use actual size for compat array decls.
2434         * config.make.in (cc-mtune): New substituted variable.
2435         * configure.in (libc_cv_cc_mtune): New test for -mtune= switch,
2436         done only if libc_mtune_example is defined.
2437         * sysdeps/i386/configure.in (libc_mtune_example): Set it.
2438         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Use $(cc-mtune).
2440 2005-03-05  Jakub Jelinek  <jakub@redhat.com>
2442         * sysdeps/i386/dl-machine.h (ELF_MACHINE_NO_RELA): Define
2443         unconditionally to (defined RTLD_BOOTSTRAP).
2444         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_RELA): Likewise.
2446 2005-03-05  Jakub Jelinek  <jakub@redhat.com>
2448         * Makerules ($(inst_libdir)/libc.so): Use $(slibdir) instead of
2449         $(inst_slibdir) in AS_NEEDED directive.
2451 2005-03-03  Jakub Jelinek  <jakub@redhat.com>
2453         * posix/bits/unistd.h (pread, pread64): Don't swap function arguments.
2455 2005-03-01  H.J. Lu  <hongjiu.lu@intel.com>
2457         [BZ #776]
2458         * iconv/iconvconfig.c: Fix comment for the output file.
2459         (write_output): Clear padding in header.
2461 2005-03-03  Ulrich Drepper  <drepper@redhat.com>
2463         [BZ #821]
2464         * elf/dl-close.c (_dl_close): Don't try to set up new searchpath if the
2465         loader is closed.  Fixes unload3.
2466         * elf/tst-global1.c: New file.
2467         * elf/Makefile (tests): Add tst-global1.
2468         * elf/testobj2.c (p): New function.
2470 2005-03-03  Jakub Jelinek  <jakub@redhat.com>
2472         [BZ #821]
2473         * elf/Makefile: Add rules to build and run unload3 test.
2474         * elf/unload3.c: New test.
2475         * elf/unload3mod1.c: New file.
2476         * elf/unload3mod2.c: New file.
2477         * elf/unload3mod3.c: New file.
2478         * elf/unload3mod4.c: New file.
2480 2005-02-21  Alan Modra <amodra@bigpond.net.au>
2482         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Don't
2483         use __uint128_t.
2485 2005-03-01  Jakub Jelinek  <jakub@redhat.com>
2487         * posix/bits/unistd.h (read, pread, pread64): Use __bos0 instead
2488         of __bos.
2489         * socket/bits/socket2.h (recv, recvfrom): Likewise.
2491 2005-03-01  Roland McGrath  <roland@redhat.com>
2493         [BZ #721]
2494         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_RELA): Define this outside
2495         of [RESOLVE_MAP].
2497 2005-03-01  Alfred M. Szmidt  <ams@gnu.org>
2499         [BZ #777]
2500         * elf/dl-load.c (__stack_prot) [!PROT_GROWSUP && !PROT_GROWSDOWN]:
2501         Add missing initializer.
2503         [BZ #777]
2504         * malloc/arena.c: #include <stdbool.h> outside of [SHARED &&
2505         USE_TLS && !USE___THREAD].
2507 2005-02-26  GOTO Masanori  <gotom@debian.or.jp>
2509         * csu/Makefile: Use printf instead of echo for some shells.
2511 2005-02-28  Roland McGrath  <roland@redhat.com>
2513         * debug/warning-nop.c (__nop): Rename to nop, make it static.
2514         (__warndecl): Use alias attribute directly, instead of strong_alias
2515         macro.  Add attribute_hidden.
2517 2005-02-28  Ulrich Drepper  <drepper@redhat.com>
2519         * posix/bits/unistd.h: Avoid calling __*_chk variants if we can
2520         determine the call will never trigger a failure.
2521         * debug/read_chk.c (__read_chk): Always fail if the buffer is too
2522         small.
2523         * debug/readlink_chk.c (__readlink_chk): Likewise.
2524         * debug/pread64_chk.c (__pread64_chk): Likewise.
2525         * debug/pread_chk.c (__pread_chk): Likewise.
2527         * sysdeps/i386/i686/memset_chk.S: Remove alias and warning.
2528         * sysdeps/x86_64/memset_chk.S: Likewise.
2530 2005-02-24  Roland McGrath  <roland@redhat.com>
2532         * debug/Versions (libc: GLIBC_2.4): Remove
2533         __memset_zero_constant_len_parameter.
2534         * sysdeps/generic/memset_chk.c: Remove alias and warning.
2535         * misc/sys/cdefs.h (__warndecl): New macro.
2536         * debug/warning-nop.c: New file.
2537         * string/bits/string3.h (memset): Call __warn_memset_zero_len with no
2538         arguments, instead of calling __memset_zero_constant_len_parameter.
2539         Use __warndecl for __warn_memset_zero_len.
2540         * debug/Makefile (routines): Add $(static-only-routines).
2541         (static-only-routines): New variable.
2543 2005-02-27  Ulrich Drepper  <drepper@redhat.com>
2545         * po/tr.po: Update from translation team.
2547 2005-02-26  Ulrich Drepper  <drepper@redhat.com>
2549         * elf/dl-addr.c: Cleanups.  Move declaration next to first use.
2551         * dlfcn/dlerror.c (check_free): New function.  Extract common code
2552         from fini and free_key_mem.  Check whether this is libdl in the
2553         base namespace.
2555 2005-02-25  Ulrich Drepper  <drepper@redhat.com>
2557         * elf/dl-lookup.c (_dl_debug_bindings): Add namespace information
2558         to debug output.
2560 2004-11-11  Richard Sandiford  <rsandifo@redhat.com>
2562         [BZ #758]
2563         * sysdeps/unix/sysv/linux/mips/configure.in (asm-unistd.h): Only
2564         preprocess <asm/unistd.h> if it defines ABI-prefixed syscall names
2565         like __NR_N32_open.  Just include <asm/unistd.h> otherwise.
2566         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
2567         * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: Delete
2568         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h (SYS_ify): Use the
2569         standard __NR prefix.
2570         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h (SYS_ify): Likewise.
2571         * sysdeps/unix/sysv/linux/mips/Makefile (syscall-%.h): Rework so that
2572         the output file is compatible with both pre-2.6 and 2.6 kernel headers.
2573         Extract separate syscall lists for each ABI.
2575 2005-02-23  Ulrich Drepper  <drepper@redhat.com>
2577         * Makerules (libc.so): Add AS_NEEDED line for dynamic linker.
2579         [BZ #719]
2580         * elf/Makefile: Run tst-tls9-static again.
2582 2005-02-22  Ulrich Drepper  <drepper@redhat.com>
2584         [BZ #719]
2585         * sysdeps/generic/libc-tls.c (static_dtv): Size the same as the
2586         slotinfo array.
2587         (__libc_setup_tls): Initialize length of DTV based on array length.
2588         * elf/dl-load.c: Revert last change.
2589         * sysdeps/generic/dl-tls.c: Revert last change.
2591         * posix/Makefile (tests): Add tst-execvp1, tst-execvp2, tst-execlp1,
2592         tst-execlp2, tst-execv1, tst-execv2, tst-execl1, tst-execl2,
2593         tst-execve1, tst-execve2, tst-execle1, and tst-execle2.
2594         * posix/tst-execl1.c: New file.
2595         * posix/tst-execl2.c: New file.
2596         * posix/tst-execle1.c: New file.
2597         * posix/tst-execle2.c: New file.
2598         * posix/tst-execlp1.c: New file.
2599         * posix/tst-execlp2.c: New file.
2600         * posix/tst-execv1.c: New file.
2601         * posix/tst-execv2.c: New file.
2602         * posix/tst-execve1.c: New file.
2603         * posix/tst-execve2.c: New file.
2604         * posix/tst-execvp1.c: New file.
2605         * posix/tst-execvp2.c: New file.
2607 2005-02-22  Roland McGrath  <roland@redhat.com>
2609         * include/signal.h: Revert last change.
2610         (__sigemptyset): Use __builtin_memset instead of memset.
2612 2005-02-22  Ulrich Drepper  <drepper@redhat.com>
2614         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Use
2615         non-cancelable I/O functions.
2617 2005-02-22  Jakub Jelinek  <jakub@redhat.com>
2619         [BZ #769]
2620         * nscd/nscd-client.h: Include sys/uio.h.
2621         (__readall, __readvall, writeall): New prototypes.
2622         * nscd/connections.c (writeall): New function.
2623         (handle_request): Use it.
2624         * nscd/aicache.c (addhstaiX): Likewise.
2625         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2626         * nscd/hstcache.c (cache_addhst): Likewise.
2627         * nscd/grpcache.c (cache_addgr): Likewise.
2628         * nscd/pwdcache.c (cache_addpw): Likewise.
2629         * nscd/nscd_helper.c (__readall, __readvall): New functions.
2630         * nscd/nscd_getai.c (__nscd_getai): Use them.
2631         * nscd/nscd_getpw_r.c (__nscd_getpw_r): Likewise.
2632         * nscd/nscd_getgr_r.c (__nscd_getgr_r): Likewise.
2633         * nscd/nscd_gethst_r.c (__nscd_gethst_r): Likewise.
2634         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
2636 2005-02-22  Roland McGrath  <roland@redhat.com>
2638         * include/sys/socket.h: Declare __recv.
2639         * sysdeps/generic/recv.c (recv): Rename to __recv, and add weak alias.
2640         * sysdeps/mach/hurd/recv.c: Likewise.
2642         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <execinfo.h> for
2643         __backtrace_* decls.
2645         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
2646         (INTERNAL_SYSCALL_ERROR_P): Evalute VAL.  Parenthesize ERR.
2647         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
2649         * include/signal.h: Include <string.h> for memset decl.
2651 2005-02-22  Andreas Schwab  <schwab@suse.de>
2653         * posix/execvp.c (execvp): Fix invalid free.
2655 2005-02-22  Jakub Jelinek  <jakub@redhat.com>
2657         [BZ #1095]
2658         * malloc/Makefile (CFLAGS-mcheck-init.c): Add.
2659         * sunrpc/Makefile: Add $(PIC-ccflag) to CFLAGS-x* for
2660         librpcsvc.a objects.
2662 2005-02-21  Ulrich Drepper  <drepper@redhat.com>
2664         [BZ #1107]
2665         * iconvdata/ibm930.h: Correct Yen mapping.
2666         * iconvdata/ibm939.h: Likewise.
2667         * iconvdata/testdata/IBM930..UTF8: Adjust test data.
2668         * iconvdata/testdata/IBM939..UTF8: Likewise.
2669         Patch by Jiro Sekiba <SEKIBA@jp.ibm.com>.
2671         * iconvdata/Makefile (modules): Add IBM1025, IBM1122, IBM1137, IBM1153,
2672         IBM1154, IBM1155, IBM1156, IBM1157, and IBM1158.
2673         (distribute): Add ibm1025.c, ibm1025.h, ibm1122.c, ibm1122.h,
2674         ibm1137.c, ibm1137.h, ibm1153.c, ibm1153.h, ibm1154.c, ibm1154.h,
2675         ibm1155.c, ibm1155.h, ibm1156.c, ibm1156.h, ibm1157.c, ibm1157.h,
2676         ibm1158.c, and ibm1158.h.
2677         * iconvdata/TESTS: Add IBM1025, IBM1122, IBM1137, IBM1153,
2678         IBM1154, IBM1155, IBM1156, IBM1157, and IBM1158.
2679         * iconvdata/gconv-modules: Likewise.
2680         * iconvdata/ibm1025.c: New file.
2681         * iconvdata/ibm1025.h: New file.
2682         * iconvdata/ibm1122.c: New file.
2683         * iconvdata/ibm1122.h: New file.
2684         * iconvdata/ibm1137.c: New file.
2685         * iconvdata/ibm1137.h: New file.
2686         * iconvdata/ibm1153.c: New file.
2687         * iconvdata/ibm1153.h: New file.
2688         * iconvdata/ibm1154.c: New file.
2689         * iconvdata/ibm1154.h: New file.
2690         * iconvdata/ibm1155.c: New file.
2691         * iconvdata/ibm1155.h: New file.
2692         * iconvdata/ibm1156.c: New file.
2693         * iconvdata/ibm1156.h: New file.
2694         * iconvdata/ibm1157.c: New file.
2695         * iconvdata/ibm1157.h: New file.
2696         * iconvdata/ibm1158.c: New file.
2697         * iconvdata/ibm1158.h: New file.
2698         * iconvdata/testdata/IBM1025: New file.
2699         * iconvdata/testdata/IBM1025..UTF8: New file.
2700         * iconvdata/testdata/IBM1122: New file.
2701         * iconvdata/testdata/IBM1122..UTF8: New file.
2702         * iconvdata/testdata/IBM1137: New file.
2703         * iconvdata/testdata/IBM1137..UTF8: New file.
2704         * iconvdata/testdata/IBM1153: New file.
2705         * iconvdata/testdata/IBM1153..UTF8: New file.
2706         * iconvdata/testdata/IBM1154: New file.
2707         * iconvdata/testdata/IBM1154..UTF8: New file.
2708         * iconvdata/testdata/IBM1155: New file.
2709         * iconvdata/testdata/IBM1155..UTF8: New file.
2710         * iconvdata/testdata/IBM1156: New file.
2711         * iconvdata/testdata/IBM1156..UTF8: New file.
2712         * iconvdata/testdata/IBM1157: New file.
2713         * iconvdata/testdata/IBM1157..UTF8: New file.
2714         * iconvdata/testdata/IBM1158: New file.
2715         * iconvdata/testdata/IBM1158..UTF8: New file.
2716         Contributed by Jiro Sekiba <SEKIBA@jp.ibm.com>.
2718 2005-02-10  Paolo Bonzini  <bonzini@gnu.org>
2720         * posix/regcomp.c (lower_subexp): Do not optimize empty
2721         subexpressions even with REG_NOSUB.
2722         * posix/rxspencer/tests: Add a previously failing testcase.
2724 2005-02-21  Alan Modra <amodra@bigpond.net.au>
2726         [BZ #719]
2727         * elf/dl-reloc.c (_dl_nothread_init_static_tls): Assert that dtv
2728         array index is within bounds.
2730 2005-02-21  Ulrich Drepper  <drepper@redhat.com>
2732         [BZ #719]
2733         * elf/dl-load.c: Do not allow PT_TLS in modules loaded in statically
2734         linked code.
2735         * sysdeps/generic/dl-tls.c [!SHARED]: Don't build _dl_next_tls_modid.
2736         * elf/Makefile: Remove rules to build and run tst-tls9-static.
2738         [BZ #719]
2739         * elf/dl-reloc.c (_dl_nothread_init_static_tls): Avoid using
2740         THREAD_DTV multiple times, this minimally reduces code size on
2741         some archs.
2743 2005-02-21  Jakub Jelinek  <jakub@redhat.com>
2745         [BZ #768]
2746         * nscd/nscd_gethst_r.c (nscd_gethst_r): Set *h_errnop to
2747         NETDB_INTERNAL if buffer is too small.
2749         [BZ #768]
2750         * nscd/hstcache.c (INCR): Remove.
2751         (addhstbyX): Double buflen in each iteration rather than add INCR.
2752         * nscd/grpcache.c: Likewise.
2753         * nscd/pwdcache.c: Likewise.
2755 2005-02-21  Ulrich Drepper  <drepper@redhat.com>
2757         * sysdeps/unix/sysv/linux/libc_fatal.c: Print backtrace and memory
2758         map if requested.
2759         * debug/chk_fail.c: Request backtrace and memory map dump.
2761         * Versions.def: Add GLIBC_2.4 for libc.
2762         * debug/fgets_chk.c: New file.
2763         * debug/fgets_u_chk.c: New file.
2764         * debug/getcwd_chk.c: New file.
2765         * debug/getwd_chk.c: New file.
2766         * debug/readlink_chk.c: New file.
2767         * debug/read_chk.c: New file.
2768         * debug/pread_chk.c: New file.
2769         * debug/pread64_chk.c: New file.
2770         * debug/recv_chk.c: New file.
2771         * debug/recvfrom_chk.c: New file.
2772         * debug/Versions: Add all new functions with version GLIBC_2.4.
2773         * debug/Makefile (routines): Add fgets_chk, fgets_u_chk, read_chk,
2774         pread_chk, pread64_chk, recv_chk, recvfrom_chk, readlink_chk,
2775         getwd_chk, and getcwd_chk.  Plus appropriate CFLAGS definitions.
2776         * debug/tst-chk1.c: Add more tests.
2777         * libio/bits/stdio2.h: Add macros for fgets and fgets_unlocked.
2778         * include/stdio.h: Declare __fgets_chk and __fgets_unlocked_chk.
2779         * posix/unistd.h: Include <bits/unistd.h> for fortification.
2780         * posix/bits/unistd.h: New file.
2781         * posix/Makefile (headers): Add bits/unistd.h.
2782         * socket/sys/socket.h: Include <bits/socket2.h> for fortification.
2783         * socket/bits/socket2.h: New file.
2784         * socket/Makefile (headers): Add bits/socket2.h.
2786         * string/bits/string3.h: Extend memset macro to check for zero 3rd
2787         parameter and use __memset_zero_constant_len_parameter in that case.
2788         * sysdeps/generic/memset_chk.c: Add
2789         __memset_zero_constant_len_parameter alias and linker warning.
2790         * debug/Versions: Add __memset_zero_constant_len_parameter to libc
2791         with version GLIBC_2.4.
2793         * sysdeps/generic/bits/types.h: Don't unnecessarily use __extension__
2794         in __STD_TYPE definition.
2796 2005-02-21  Jakub Jelinek  <jakub@redhat.com>
2798         * malloc/malloc.c (malloc_printerr): If MALLOC_CHECK_={5,7}, print
2799         the error message rather than program name.
2801 2005-02-21  Ulrich Drepper  <drepper@redhat.com>
2803         [BZ #767]
2804         * posix/unistd.h: symlink and readlink are unconditionally
2805         available in the 2001 spec.
2807 2005-02-16  Roland McGrath  <roland@redhat.com>
2809         * intl/dcigettext.c (_nl_find_msg): Add a cast.
2811         * nis/nis_clone_dir.c (nis_clone_directory): Use char * for ADDR.
2812         * nis/nis_clone_obj.c (nis_clone_object): Likewise.
2813         * nis/nis_clone_res.c (nis_clone_result): Likewise.
2815         * resolv/nss_dns/dns-network.c (getanswer_r): Use const unsigned char *
2816         for END_OF_MESSAGE and CP.
2818         * resolv/res_send.c (send_dg): Add else branch for case impossible
2819         unless `poll' is buggy.
2821         * crypt/crypt_util.c (__setkey_r): Add a cast.
2823         * locale/programs/linereader.c (get_toplvl_escape): Use size_t for
2824         NBYTES, and unsigned char * for BYTES.
2826         * locale/programs/charmap.c (charmap_new_char): Use size_t and
2827         unsighed char * for NBYTES, BYTES parameters.
2829         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Take const char * argument
2830         and cast it.
2831         * sysdeps/i386/i686/dl-hash.h (_dl_elf_hash): Likewise.
2833         * sunrpc/create_xid.c (_create_xid): Don't use unsigned long for RES.
2835         * sunrpc/svcauth_des.c (_svcauth_des): Fix cast type.
2837         * sunrpc/auth_des.c (authdes_create): Don't use u_char for PKEY_DATA.
2838         (authdes_marshal): Don't use unsigned int for LEN.
2839         * sunrpc/xdr.c (xdr_hyper): Don't use unsigned long for T2.
2840         (xdr_u_hyper): Likewise.
2841         (xdr_u_short): Don't use u_long for L.
2842         * sunrpc/xdr_intXX_t.c (xdr_int64_t): Don't use uint32_t for T2.
2844         * inet/rexec.c (rexec_af): Use socklen_t.
2845         * sunrpc/key_call.c (getkeyserv_handle): Likewise.
2846         * sunrpc/rtime.c (rtime): Likewise.
2847         * resolv/res_send.c (send_vc, send_dg): Likewise.
2848         * nis/nis_callback.c (__nis_create_callback): Likewise.
2850         * sysdeps/generic/libc-start.c: Use unsigned int for nthreads ptr.
2852         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix type of ADDR local.
2854         * libio/libio.h (_IO_BE): Add parenthesis around EXPR.
2856         * intl/dcigettext.c (INTVARDEF, INTUSE): Macros removed.
2857         (_nl_default_dirname): Use libc_hidden_data_def instead of INTVARDEF.
2858         (libc_freeres_fn, DCIGETTEXT): Don't use INTUSE.
2859         * intl/bindtextdom.c (INTUSE): Macro removed.
2860         (_nl_default_dirname): Use libc_hidden_proto.
2861         (set_binding_values): Don't use INTUSE.
2862         * include/libintl.h (_libc_intl_domainname_internal): Decl removed.
2863         (_libc_intl_domainname): Use libc_hidden_proto.
2864         * posix/regex_internal.h (gettext): Remove INTUSE on it.
2865         * locale/SYS_libc.c (_libc_intl_domainname): Use libc_hidden_data_def
2866         rather than INTDEF.
2867         * include/libintl.h (_): Don't use *_internal name.
2869         * ctype/ctype-extn.c (__ctype_tolower, __ctype_toupper): Use int32_t,
2870         not uint32_t.
2871         * locale/lc-ctype.c (_nl_postload_ctype): Likewise for assignments.
2873         * iconv/gconv_open.c (__gconv_open): Remove useless cast.
2875         [BZ #721]
2876         * sysdeps/i386/dl-machine.h (ELF_MACHINE_NO_RELA): Define this outside
2877         of [RESOLVE_MAP].
2878         * sysdeps/sh/dl-machine.h (ELF_MACHINE_NO_REL): Likewise.
2879         * sysdeps/powerpc/powerpc32/dl-machine.h
2880         (elf_machine_rel, elf_machine_rel_relative): Removed.
2881         * sysdeps/powerpc/powerpc64/dl-machine.h
2882         (elf_machine_rel, elf_machine_rel_relative): Removed.
2884 2005-02-03  Alexandre Oliva  <aoliva@redhat.com>
2886         [BZ #721]
2887         * elf/dynamic-link.h: Don't declare nested auto functions that are
2888         not going to be defined.
2890 2004-07-23  Jakub Jelinek  <jakub@redhat.com>
2892         [BZ #284]
2893         * include/features.h (_POSIX_SOURCE, _POSIX_C_SOURCE): Define
2894         if _XOPEN_SOURCE >= 500 even if __STRICT_ANSI__ is defined.
2896 2005-02-16  Roland McGrath  <roland@redhat.com>
2898         * sysdeps/generic/libc-start.c (LIBC_START_MAIN): Move UBP_EV defn
2899         inside [! SHARED] where it's used.
2901 2005-02-15  Ulrich Drepper  <drepper@redhat.com>
2903         * sysdeps/generic/bits/byteswap.h: Make sure result of all the
2904         functions and macros is unsigned.
2906 2005-02-11  Barry deFrese  <bddebian@comcast.net>
2908         [BZ #722]
2909         * sysdeps/mach/hurd/setresgid.c: Use weak_alias.
2910         * sysdeps/mach/hurd/setresuid.c: Likewise.
2912 2005-02-14  GOTO Masanori  <gotom@debian.or.jp>
2914         * misc/sys/syslog.h: Fix typo in comment.
2916 2005-02-14  Roland McGrath  <roland@redhat.com>
2918         [BZ #720]
2919         * sysdeps/unix/sysv/linux/sys/kd.h: Don't leave _LINUX_TYPES_H defined
2920         if it wasn't originally.
2922 2005-02-14  GOTO Masanori  <gotom@debian.or.jp>
2924         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove the duplicated
2925         getpeername entry.
2926         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2927         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2929 2005-02-11  Jakub Jelinek  <jakub@redhat.com>
2931         * scripts/soversions.awk: Only record first WORDSIZE{32,64}
2932         matching line.
2934 2005-02-14  Alan Modra  <amodra@bigpond.net.au>
2936         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Define
2937         with auto inline, and attribute always_inline.
2938         (elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.
2939         (elf_machine_rel, elf_machine_rel_relative): Likewise.
2940         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
2941         (elf_machine_rela_relative, elf_machine_lazy_rel): Likewise.
2942         (elf_machine_rel, elf_machine_rel_relative): Likewise.
2943         (elf_machine_tprel): Likewise.
2945 2005-02-14  Andreas Schwab  <schwab@suse.de>
2947         * manual/filesys.texi (Random Access Directory): Fix type of file
2948         position value for telldir and seekdir.
2949         (Attribute Meanings): Fix typo.
2951 2005-02-14  H.J. Lu  <hongjiu.lu@intel.com>
2953         * csu/elf-init.c (__libc_csu_fini): Enable if LIBC_NONSHARED
2954         isn't defined.
2955         * sysdeps/generic/libc-start.c (LIBC_START_MAIN): Call fini
2956         if SHARED isn't defined.
2957         * elf/Makefile (tests-static): Add tst-array1-static.
2958         ($(objpfx)tst-array1-static.out): New target.
2959         * elf/tst-array1-static.c: New file.
2961 2005-02-11  Jakub Jelinek  <jakub@redhat.com>
2963         [BZ #1100]
2964         * debug/chk_fail.c (__chk_fail): Add a while (1) loop around
2965         __libc_message to kill GCC warning about noreturn function returning.
2967         * elf/rtld.c (dlmain): If LD_TRACE_PRELINKING, clear l_relocated flag
2968         before relocating ld.so again.
2970         * elf/rtld.c (_dl_start): Set bootstrap_map.l_relocated even
2971         for already prelinked ld.so.
2973 2005-02-11  Roland McGrath  <roland@redhat.com>
2975         [BZ #715]
2976         * Makefile (installed-stubs): New variable.
2977         Set to $(inst_includedir)/gnu/stubs.h if $(biarch) is no,
2978         or to $(inst_includedir)/gnu/stubs-$(biarch).h if otherwise.
2979         [$(biarch) != no] (install-others-nosubdir): Add $(installed-stubs).
2980         ($(inst_includedir)/gnu/stubs.h): Use $(installed-stubs) for this
2981         rule's target.
2982         ($(inst_includedir)/gnu/stubs.h): New target, install from ...
2983         * include/stubs-biarch.h: New file.
2985         * shlib-versions (i.86-.*-.*): Add WORDSIZE64 line mapping to x86_64.
2987         * Makeconfig ($(common-objpfx)soversions.mk): Depend on Makeconfig.
2988         Emit defn for variable `biarch'.
2990         * include/stub-tag.h: Update comment.
2992         * scripts/soversions.awk: Fix default version set handling.
2994 2005-02-10  Roland McGrath  <roland@redhat.com>
2996         [BZ #157]
2997         * include/libc-symbols.h (stub_warning): Emit a marker section called
2998         .gnu.glibc-stub.NAME.
2999         * Makerules ($(objpfx)stubs): Depend on object files, not dep files.
3000         Use objdump to collect those marker section names.
3001         ($(common-objpfx)shlib.lds): Discard .gnu.glibc-stub.* sections.
3003         * Rules (subdir_objs, subdir_stubs): New phony targets.
3004         * Makefile (+subdir_targets): Add them.
3006         * Makerules ($(common-objpfx)Versions.all): Grok new leading column in
3007         soversions.i.
3009         * scripts/lib-names.awk: Consider [0-9].* a "number", not just [0-9]+.
3010         Reported by H.J. Lu <hongjiu.lu@intel.com>.
3012         * scripts/lib-names.awk: Always print WORDSIZE32 section first when
3013         doing two.
3015 2005-02-10  Jakub Jelinek  <jakub@redhat.com>
3017         * sysdeps/powerpc/powerpc32/bits/link.h: Removed.
3018         * sysdeps/powerpc/powerpc64/bits/link.h: Moved to...
3019         * sysdeps/powerpc/bits/link.h: ... here.  New file.
3021 2005-02-09  Jakub Jelinek  <jakub@redhat.com>
3023         [BZ #710]
3024         * stdlib/random_r.c (__initstate_r): Save old state.
3025         * stdlib/Makefile (tests): Add tst-random2.
3026         * stdlib/tst-random2.c: New test.
3027         Reported by Peter Bergner <bergner@vnet.ibm.com>.
3029 2005-01-25  H.J. Lu  <hongjiu.lu@intel.com>
3031         * dlfcn/dlfcn.c (init): Put it in .init_array section.
3033 2005-02-10  Roland McGrath  <roland@redhat.com>
3035         [BZ #632]
3036         * scripts/soversions.awk: Expect cpu, vendor, os as separate variables
3037         from command line.
3038         Grok shlib-versions lines with WORDSIZE* in second column.
3039         Add new leading column to output, DEFAULT for existing output lines.
3040         Also emit lines with WORDSIZE* for alternate configurations.
3041         * Makeconfig ($(common-objpfx)soversions.i): Pass those variables.
3042         ($(common-objpfx)soversions.mk): Grok new column, use only DEFAULT.
3043         ($(common-objpfx)gnu/lib-names.stmp): Depend on soversions.i instead
3044         of soversions.mk; replace inline shell script with use of ...
3045         * scripts/lib-names.awk: New file.  If input has non-DEFAULT lines,
3046         emit multiple sets of macros under #if.
3047         * shlib-versions (x86_64-.*-.*): Add WORDSIZE32 line mapping to i686.
3048         (s390x-.*-.*): Likewise for s390.
3049         (powerpc64-.*-.*): Likewise for powerpc.
3050         (sparc64-.*-.*): Likewise for sparc.
3051         (s390-.*-.*, powerpc.*-.*-.*, sparc.*-.*-.*): Add WORDSIZE64 entries
3052         for these mapping back to the above.
3054 2005-02-08  Jakub Jelinek  <jakub@redhat.com>
3056         * elf/dl-load.c (_dl_map_object_from_fd): Fix a typo.
3058 2005-02-08  Andreas Schwab  <schwab@suse.de>
3060         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Remove use of
3061         RESOLVE.
3063 2005-02-07  Richard Henderson  <rth@redhat.com>
3065         * iconvdata/jis0208.h (struct jisx0208_ucs_idx): Move before use.
3067 2005-02-08  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3069         * sysdeps/sh/dl-machine.h (elf_machine_rela): Remove code using
3070         RESOLVE.
3072 2005-02-07  Ulrich Drepper  <drepper@redhat.com>
3074         * elf/dl-load.c (_dl_map_object_from_fd): Make sure registers are
3075         set correctly.
3077 2005-01-07  Richard Henderson  <rth@redhat.com>
3079         * math/math_private.h (__copysign): Define as builtin for gcc 4.
3080         (__copysignf, __copysignl): Likewise.
3081         * sysdeps/alpha/fpu/bits/mathinline.h (copysign): Don't define
3082         for gcc 4.0.
3083         (copysignf, copysignl, fabsf, fabs): Likewise.
3084         (__copysign, __copysignf, __copysignl): Remove.
3085         (__fabs, __fabsf): Remove.
3087 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
3089         [BZ #738]
3090         * elf/dl-load.c (open_path): If rtld_search_dirs is in RELRO segment,
3091         avoid writing to it if none of the standard search directories exist.
3093 2005-02-07  Steven Munroe  <sjmunroe@us.ibm.com>
3095         [BZ #700]
3096         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3097         (__novec_setcontext, __setcontext): Fix typo so CCR is restored.
3098         Load MSR as a doubleword.
3099         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3100         (__novec_swapcontext, __swapcontext): Likewise.
3102 2005-02-07  Ulrich Drepper  <drepper@redhat.com>
3104         * iconv/iconv_prog.c (main): Provide more help in case on an error.
3106         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Define.
3108 2005-02-07  Jakub Jelinek  <jakub@redhat.com>
3110         [BZ #741]
3111         * nscd/nscd.c (termination_handler): Avoid segfault if some database
3112         is not enabled.
3114         [BZ #741]
3115         * nscd/nscd_getai.c (__nscd_getai): If ai_resp->found == -1, set
3116         __nss_not_use_nscd_hosts and return -1.
3117         * nscd/nscd_initgroups.c (__nscd_getgrouplist): If
3118         initgr_resp->found == -1, set __nss_not_use_nscd_group and return -1.
3119         Avoid leaking sockets.
3121 2005-01-28  Andreas Schwab  <schwab@suse.de>
3122             H.J. Lu  <hongjiu.lu@intel.com>
3124         [BZ #677]
3125         * elf/dl-runtime.c (fixup): Change return type to
3126         DL_FIXUP_VALUE_TYPE. Use DL_FIXUP_VALUE_TYPE,
3127         DL_FIXUP_MAKE_VALUE and DL_FIXUP_VALUE_CODE_ADDR for relocation
3128         values. Use DL_FIXUP_VALUE_ADDR and DL_FIXUP_ADDR_VALUE to
3129         store and retrieve relocation values.
3130         (profile_fixup): Likewise.
3131         * include/link.h (link_map): Use DL_FIXUP_VALUE_TYPE for
3132         l_reloc_result.
3133         * sysdeps/generic/dl-fptr.h (link_map): Forward declaration.
3134         * sysdeps/generic/dl-lookupcfg.h (DL_FIXUP_VALUE_TYPE): New.
3135         (DL_FIXUP_MAKE_VALUE): Likewise.
3136         (DL_FIXUP_VALUE_CODE_ADDR): Likewise.
3137         (DL_FIXUP_VALUE_ADDR): Likewise.
3138         (DL_FIXUP_ADDR_VALUE): Likewise.
3139         * sysdeps/ia64/dl-lookupcfg.h: Include <dl-fptr.h> for "struct fdesc".
3140         (DL_FIXUP_VALUE_TYPE): New.
3141         (DL_FIXUP_MAKE_VALUE): Likewise.
3142         (DL_FIXUP_VALUE_CODE_ADDR): Likewise.
3143         (DL_FIXUP_VALUE_ADDR): Likewise.
3144         (DL_FIXUP_ADDR_VALUE): Likewise.
3145         * sysdeps/ia64/dl-machine.h (elf_machine_profile_fixup_plt): Removed.
3146         (elf_machine_profile_plt): Removed.
3147         (elf_machine_fixup_plt): Change return type and type of value
3148         parameter to struct fdesc.
3149         (elf_machine_plt_value): Likewise.
3150         (elf_machine_rela): Use DL_FIXUP_MAKE_VALUE to construct
3151         argument for elf_machine_fixup_plt.
3153 2005-02-07  Jakub Jelinek  <jakub@redhat.com>
3155         [BZ #742]
3156         * nscd/nscd.init (reload): Print Reloading nscd: before and a newline
3157         after the status string printed by killproc.
3159 2004-11-18  Alexandre Oliva  <aoliva@redhat.com>
3161         * manual/.cvsignore: Add dir-add.texi.
3163 2005-02-06  Richard Henderson  <rth@redhat.com>
3165         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Use RESOLVE_MAP
3166         all the time.
3168 2004-11-03  Marcus Brinkmann  <marcus@gnu.org>
3170         * configure.in (sysnames): Append sysdeps/generic for each add-on.
3171         * configure: Regenerated.
3173 2005-02-02  Alfred M. Szmidt  <ams@gnu.org>
3175         * sysdeps/mach/hurd/tls.h: Include <stdbool.h>
3176         (dtv_t): Change pointer type to be a struct which also contains
3177         information whether the memory pointed to is static TLS or not.
3179         * sysdeps/generic/syslog.c (send_flags) [!send_flags]: Define it.
3181         * shadow/sgetspent_r.c (FALSE): Macro renamed to ...
3182         (FALSEP): ... this.  Updated all references.
3184         [BZ #765]
3185         * libio/fmemopen.c: Include <stdint.h>.
3187 2005-01-30  Ulrich Drepper  <drepper@redhat.com>
3189         [BZ #1103]
3190         * nscd/nscd_helper.c (get_mapping): Use MSG_NOSIGNAL if available.
3191         * nscd/connections.c (send_ro_fd): Likewise.
3193 2005-01-28  H.J. Lu  <hongjiu.lu@intel.com>
3195         * elf/tst-auditmod1.c: Add ia64 entries.
3196         * sysdeps/generic/ldsodefs.h (La_ia64_regs): New.
3197         (La_ia64_retval): New.
3198         (audit_ifaces): Add ia64 entries.
3199         * sysdeps/ia64/bits/link.h: New file.
3200         * sysdeps/ia64/dl-machine.h (elf_machine_runtime_setup): Test
3201         for dl_profile non-null.
3202         (ARCH_LA_PLTENTER): New.
3203         (ARCH_LA_PLTEXIT): New.
3204         * sysdeps/ia64/dl-trampoline.S (_dl_runtime_resolve): Allocate
3205         only 2 output registers. Allocate stack to save/restore
3206         8 incoming fp registers. Call _dl_fixup instead of fixup.
3207         (_dl_runtime_profile): Rewrite.
3209 2005-01-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3211         * sysdeps/s390/bits/link.h: New file.
3212         * sysdeps/s390/s390-32/dl-trampoline.S: New file.
3213         * sysdeps/s390/s390-64/dl-trampoline.S: New file.
3214         * sysdeps/s390/s390-32/dl-machine.h: Move PLT trampolines to
3215         dl-trampoline.S. Use RESOLVE_MAP instead of RESOLVE to protect
3216         relocation code.
3217         (elf_machine_runtime_setup): Test for dl_profile non-null.
3218         (elf_machine_rela): Remove code using RESOLVE.
3219         (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): New.
3220         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3221         * sysdeps/generic/ldsodefs.h (La_s390_32_regs, La_s390_32_retval,
3222         La_s390_64_regs, La_s390_64_retval): New.
3223         * elf/tst-auditmod1.c: Add s390 entries.
3225         [BZ #743]
3226         * sysdeps/s390/bits/string.h (strlen, strncpy, strcat, strncat,
3227         strncat, memchr, strcmp): Add missing memory clobber.
3229 2005-01-27  Ulrich Drepper  <drepper@redhat.com>
3231         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_globfree): Also
3232         copy gl_offs.  Patch by Sergey Tikhonov <tsv@solvo.ru>.
3234 2005-01-27  Paolo Bonzini  <bonzini@gnu.org>
3236         [BZ #558]
3237         * posix/regcomp.c (calc_inveclosure): Return reg_errcode_t.
3238         Initialize the node sets in dfa->inveclosures.
3239         (analyze): Initialize inveclosures only if it is needed.
3240         Check errors from calc_inveclosure.
3241         * posix/regex_internal.c (re_dfa_add_node): Do not initialize
3242         the inveclosure node set.
3243         * posix/regexec.c (re_search_internal): If nmatch includes unused
3244         subexpressions, reset them to { rm_so: -1, rm_eo: -1 } here.
3246         * posix/regcomp.c (parse_bracket_exp) [!RE_ENABLE_I18N]:
3247         Do build a SIMPLE_BRACKET token.
3249         * posix/regexec.c (transit_state_mb): Do not examine nodes
3250         where ACCEPT_MB is not set.
3252 2005-01-27  Jakub Jelinek  <jakub@redhat.com>
3254         * stdlib/tst-fmtmsg.c: Include stdlib.h.
3255         * stdio-common/tst-fmemopen2.c: Include string.h.
3256         * posix/execvp.c: Include stdbool.h.
3258 2004-12-13  Paolo Bonzini  <bonzini@gnu.org>
3260         Separate parsing and creation of the NFA.  Avoided recursion on
3261         the (very unbalanced) parse tree.
3262         [BZ #611]
3263         * posix/regcomp.c (struct subexp_optimize, analyze_tree, calc_epsdest,
3264         re_dfa_add_tree_node, mark_opt_subexp_iter): Removed.
3265         (optimize_subexps, duplicate_tree, calc_first, calc_next,
3266         mark_opt_subexp): Rewritten.
3267         (preorder, postorder, lower_subexps, lower_subexp, link_nfa_nodes,
3268         create_token_tree, free_tree, free_token): New.
3269         (analyze): Accept a regex_t *.  Invoke the passes via the preorder and
3270         postorder generic visitors.  Do not initialize the fields in the
3271         re_dfa_t that represent the transitions.
3272         (free_dfa_content): Use free_token.
3273         (re_compile_internal): Analyze before UTF-8 optimizations.  Do not
3274         include optimization of subexpressions.
3275         (create_initial_state): Fetch the DFA node index from the first node's
3276         bin_tree_t *.
3277         (optimize_utf8): Abort on unexpected nodes, including OP_DUP_QUESTION.
3278         Return on COMPLEX_BRACKET.
3279         (duplicate_node_closure): Fix comment.
3280         (duplicate_node): Do not initialize the fields in the
3281         re_dfa_t that represent the transitions.
3282         (calc_eclosure, calc_inveclosure): Do not handle OP_DELETED_SUBEXP.
3283         (create_tree): Remove final argument.  All callers adjusted.  Rewritten
3284         to use create_token_tree.
3285         (parse_reg_exp, parse_branch, parse_expression, parse_bracket_exp,
3286         build_charclass_op): Use create_tree or create_token_tree instead
3287         of re_dfa_add_tree_node.
3288         (parse_dup_op): Likewise.  Also free the tree using free_tree for
3289         "<re>{0}", and lower OP_DUP_QUESTION to OP_ALT: "a?" is equivalent
3290         to "a|".  Adjust invocation of mark_opt_subexp.
3291         (parse_sub_exp): Create a single SUBEXP node.
3292         * posix/regex_internal.c (re_dfa_add_node): Remove last parameter,
3293         always perform as if it was 1.  Do not initialize OPT_SUBEXP and
3294         DUPLICATED, and initialize the DFA fields representing the transitions.
3295         * posix/regex_internal.h (re_dfa_add_node): Adjust prototype.
3296         (re_token_type_t): Move OP_DUP_PLUS and OP_DUP_QUESTION to the tokens
3297         section.  Add a tree-only code SUBEXP.  Remove OP_DELETED_SUBEXP.
3298         (bin_tree_t): Include a full re_token_t for TOKEN.  Turn FIRST and
3299         NEXT into pointers to trees.  Remove ECLOSURE.
3301 2004-12-28  Paolo Bonzini  <bonzini@gnu.org >
3303         [BZ #605]
3304         * posix/regcomp.c (parse_bracket_exp): Do not modify DFA nodes
3305         that were already created.
3306         * posix/regex_internal.c (re_dfa_add_node): Set accept_mb field
3307         in the token if needed.
3308         (create_ci_newstate, create_cd_newstate): Set accept_mb field
3309         from the tokens' field.
3310         * posix/regex_internal.h (re_token_t): Add accept_mb field.
3311         (ACCEPT_MB_NODE): Removed.
3312         * posix/regexec.c (proceed_next_node, transit_states_mb,
3313         build_sifted_states, check_arrival_add_next_nodes): Use
3314         accept_mb instead of ACCEPT_MB_NODE.
3316 2005-01-26  Ulrich Drepper  <drepper@redhat.com>
3318         [BZ #1100]
3319         * debug/chk_fail.c (__chk_fail): Print program name in final message.
3321         * sysdeps/unix/sysv/linux/kernel-features.h: Found reference to
3322         MSG_NOSIGNAL being in 2.2 kernels.
3324 2005-01-26  Jakub Jelinek  <jakub@redhat.com>
3326         * sysdeps/unix/sysv/linux/i386/sysdep.h
3327         (SYSCALL_ERROR_HANDLER_TLS_STORE): Remove unnecessary 0 imm.
3329         [BZ #693]
3330         * posix/regex_internal.h (DUMMY_CONSTRAINT): Rename to...
3331         (WORD_DELIM_CONSTRAINT): ...this.
3332         (NOT_WORD_DELIM_CONSTRAINT): Define.
3333         (re_context_type): Add INSIDE_NOTWORD and NOT_WORD_DELIM,
3334         change WORD_DELIM to use WORD_DELIM_CONSTRAINT.
3335         * posix/regcomp.c (peek_token): For \B create NOT_WORD_DELIM
3336         anchor instead of INSIDE_WORD.
3337         (parse_expression): Handle NOT_WORD_DELIM constraint.
3338         * posix/bug-regex19.c (tests): Adjust tests that relied on \B
3339         being inside word instead of not word delim.
3340         * posix/tst-rxspencer.c (mb_frob_pattern): Don't frob escaped
3341         characters.
3342         * posix/rxspencer/tests: Add some new tests.
3344 2005-01-14  GOTO Masanori  <gotom@debian.or.jp>
3346         [BZ #1108]
3347         * sunrpc/rpc_main.c (s_output): Generate #include <rpc/pmap_clnt.h>
3348         irrespective of Cflag.
3350         * manual/memory.texi (sbrk): Fix definition.
3351         * manual/string.texi (strcasestr): Fix example typo.
3353 2005-01-25  Roland McGrath  <roland@redhat.com>
3355         * sysdeps/generic/syslog.c [NO_SIGPIPE]: Protect sigpipe_handler decl.
3357 2005-01-23  Roland McGrath  <roland@redhat.com>
3359         [BZ #737]
3360         * sysdeps/i386/Makefile (defines): If -mno-tls-direct-seg-refs appears
3361         in $(CFLAGS), add -DNO_TLS_DIRECT_SEG_REFS.
3362         * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]
3363         (SYSCALL_ERROR_HANDLER) [NO_TLS_DIRECT_SEG_REFS]: Load thread pointer
3364         from %gs:0 and add to that value, rather that direct %gs:OFFSET access.
3365         * sysdeps/unix/i386/sysdep.S [NO_TLS_DIRECT_SEG_REFS]: Likewise.
3367 2005-01-25  Jakub Jelinek  <jakub@redhat.com>
3369         [BZ #731]
3370         * stdlib/fmtmsg.c (addseverity): Remove new_string variable.
3371         (free_mem): Don't free string.
3372         * stdlib/tst-fmtmsg.c: Include string.h.
3373         (main): Add some more tests.
3375 2005-01-25  Andreas Schwab  <schwab@suse.de>
3377         [BZ #736]
3378         * timezone/asia: Update from tzdata2005c.
3379         * timezone/backward: Likewise.
3380         * timezone/europe: Likewise.
3381         * timezone/leapseconds: Likewise.
3382         * timezone/northamerica: Likewise.
3383         * timezone/southamerica: Likewise.
3385         [BZ #736]
3386         * timezone/private.h: Update from tzcode2005c.
3387         * timezone/tzfile.h: Likewise.
3388         * timezone/zdump.c: Likewise.
3389         * timezone/zic.c: Likewise.
3391 2005-01-25  Ulrich Drepper  <drepper@redhat.com>
3393         * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove code using
3394         RESOLVE.
3395         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Remove code
3396         using RESOLVE.
3397         * elf/rtld.c (_dl_start): Remove RESOLVE definition.
3399 2005-01-25  Alan Modra  <amodra@bigpond.net.au>
3401         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Test
3402         sym_map, not sym, against zero.
3404 2005-01-24  Ulrich Drepper  <drepper@redhat.com>
3406         [BZ #671]
3407         * misc/syslog.c: Moved to...
3408         * sysdeps/generic/syslog.c: ...here.
3409         [NO_SIGIPE]: Don't install SIGPIPE handler.
3410         * sysdeps/unix/sysv/linux/syslog.c: New file.
3411         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3412         __ASSUME_MSG_NOSIGNAL.
3414 2005-01-22  Richard Henderson  <rth@redhat.com>
3416         * sysdeps/alpha/dl-trampoline.S: New file.
3417         * sysdeps/alpha/dl-machine.h: Move PLT trampolines there.
3418         Use RESOLVE_MAP instead of RESOLVE to protect relocation code.
3419         (elf_machine_runtime_setup): Test for dl_profile non-null.
3420         (ARCH_LA_PLTENTER, ARCH_LA_PLTEXIT): New.
3421         * sysdeps/alpha/bits/link.h: New file.
3422         * sysdeps/generic/ldsodefs.h (La_alpha_regs, La_alpha_retval): New.
3423         (struct audit_ifaces): Add alpha entries.
3424         * elf/tst-auditmod1.c: Add alpha entries.
3426 2005-01-22  Ulrich Drepper  <drepper@redhat.com>
3428         * sysdeps/ia64/dl-machine.h: Remove PLT trampolines here.
3429         * sysdeps/ia64/dl-trampoline.S: New file.
3431         * sysdeps/x86_64/bits/link.h: Use namespace-safe identifiers in
3432         La_x86_64_xmm definition.
3434         * posix/Makefile: Use CFLAGS-*.os instead of CFLAGS-*.c for frame
3435         pointer option.
3436         * stdlib/Makefile (CFLAGS-system.os): Use this instead of
3437         CFLAGS-system.c for frame pointer option.
3439 2005-01-21  Roland McGrath  <roland@redhat.com>
3441         * elf/dl-runtime.c (_dl_profile_fixup): Remove const from REGS.
3442         * sysdeps/i386/dl-machine.h: Update decl.
3444 2005-01-21  Jakub Jelinek  <jakub@redhat.com>
3446         [BZ #735]
3447         * elf/Makefile: Add rules to build and run tst-align2.
3448         * elf/tst-align2.c: New test.
3449         * elf/tst-alignmod2.c: New file.
3450         * sysdeps/powerpc/tst-stack-align.h: New file.
3451         * sysdeps/i386/dl-machine.h (RTLD_START): Align stack and clear frame
3452         pointer before calling _dl_init.
3453         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
3455 2005-01-20  Ulrich Drepper  <drepper@redhat.com>
3457         * posix/execl.c: Do not allocate potentially large buffers on the
3458         stack.
3459         * posix/execle.c: Likewise.
3460         * posix/execlp.c: Likewise.
3461         * posix/execvp.c: Likewise.
3462         (script_execute): Removed.
3463         (allocate_scripts_argv): New function.  Called at most once to
3464         allocate memory, not every time a script is run.  Adjust caller.
3466         * sysdeps/generic/wordexp.c (exec_comm): Add a few
3467         TEMP_FAILURE_RETRY.  Reorganize code to avoid multiple calls to
3468         exec_comm_child.
3469         (exec_comm_child): Can now be inlined.
3471         * posix/Makefile: Add -fomit-frame-pointer for a few more files.
3472         * stdlib/Makefile: Likewise.
3474 2005-01-19  Roland McGrath  <roland@redhat.com>
3476         [BZ #681]
3477         * sunrpc/openchild.c (_openchild): Use NULL instead of 0 for trailing
3478         argument to execlp.
3479         Reported by Marcus Meissner <meissner@suse.de>.
3481 2005-01-19  Jakub Jelinek  <jakub@redhat.com>
3483         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Fix a typo
3484         in assert.
3485         * iconv/strtab.c (strtabfinalize): Likewise.
3487         * libio/iofopncook.c (_IO_cookie_seekoff): Add prototype.
3489 2005-01-17  Roland McGrath  <roland@redhat.com>
3491         [BZ #745]
3492         * nscd/Makefile (LDLIBS-nscd): New variable.
3493         ($(objpfx)nscd): Use that instead of selinux-LIBS.
3495         * Makeconfig (link-extra-libs): Define just as $(LDLIBS-$(@F)).
3496         (link-extra-libs-static): Define to $(link-extra-libs).
3497         (link-extra-libs-bounded): Likewise.
3499 2005-01-17  Ulrich Drepper  <drepper@redhat.com>
3501         * include/link.h: Remove stray definition of pltenter.
3503 2005-01-16  GOTO Masanori  <gotom@debian.or.jp>
3505         [BZ #734]
3506         * sysdeps/unix/rewinddir.c: Reset filepos.
3507         * dirent/tst-seekdir.c: Check telldir value after calling rewinddir.
3509 2005-01-15  Ulrich Drepper  <drepper@redhat.com>
3511         * elf/tst-auditmod1.c: Reduce duplication.
3513 2005-01-16  Andreas Schwab  <schwab@suse.de>
3515         * sysdeps/m68k/dl-machine.h: Remove trampoline code.  Define
3516         ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
3517         (elf_machine_runtime_setup): If profile != 0 does not anymore mean
3518         GLRO(dl_profile) != NULL.
3519         * sysdeps/m68k/dl-trampoline.S: New file.
3520         * sysdeps/m68k/bits/link.h: New file.
3521         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add m68k
3522         variants.
3523         * elf/tst-auditmod1.c: Add m68k support.
3525 2005-01-14  Ulrich Drepper  <drepper@redhat.com>
3527         * posix/regcomp.c [!_LIBC] (init_dfa): Fix determining of relevant
3528         LC_* variable.  Patch by Aharon Robbins <arnold@skeeve.com>.
3530         [BZ #731]
3531         * stdlib/fmtmsg.c (internal_addseverity): Remove incorrect free call.
3532         * stdlib/tst-fmtmsg.c (main): Add another addseverity test.
3534 2005-01-12  Ulrich Drepper  <drepper@redhat.com>
3536         * elf/dl-load.c (_dl_map_object_from_fd): We don't have to allow
3537         callers from libc anymore.
3539         * elf/dl-open.c (dl_open_worker): Pass __RTLD_AUDIT flag from caller
3540         to _dl_map_object_deps.
3541         * elf/dl-load.c (_dl_map_object_from_fd): Don't change memory
3542         protections when loading auditing modules.
3544         * dlfcn/dlopen.c (dlopen_doit): Catch invalid mode arguments and fail.
3546         * posix/getconf.c: Update copyright year.
3547         * nss/getent.c: Likewise.
3548         * nscd/nscd_nischeck.c: Likewise.
3549         * iconv/iconvconfig.c: Likewise.
3550         * iconv/iconv_prog.c: Likewise.
3551         * elf/ldconfig.c: Likewise.
3552         * catgets/gencat.c: Likewise.
3553         * csu/version.c: Likewise.
3554         * elf/ldd.bash.in: Likewise.
3555         * elf/sprof.c (print_version): Likewise.
3556         * locale/programs/locale.c: Likewise.
3557         * locale/programs/localedef.c: Likewise.
3558         * nscd/nscd.c (print_version): Likewise.
3559         * debug/xtrace.sh: Likewise.
3560         * malloc/memusage.sh: Likewise.
3561         * malloc/mtrace.pl: Likewise.
3562         * debug/catchsegv.sh: Likewise.
3564 2005-01-11  Thorsten Kukuk  <kukuk@suse.de>
3566         [BZ #733]
3567         * sunrpc/svc_tcp.c (svctcp_create): Call listen with SOMAXCONN
3568         as backlog.
3569         * sunrpc/svc_unix.c (svcunix_create): Likewise.
3571         [BZ #1099]
3572         * grp/putgrent.c (putgrent): Don't write 0 as group
3573         ID if groupname starts with + or -.
3574         * pwd/putpwent.c (putpwent): Don't write 0 as user or
3575         group ID if user name starts with + or -.
3577 2005-01-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3579         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add sh variants.
3580         * sysdeps/elf/tst-auditmod1.c: Add sh support.
3581         * sysdeps/sh/bits/link.h: New.
3582         * sysdeps/sh/dl-machine.h: Remove trampoline code here.  Define
3583         ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.  Remove obsolete comments.
3584         (RTLD_START): Define __fpscr_values.
3585         * sysdeps/sh/dl-trampoline.S: New file.
3586         * sysdeps/sh/sh4/dl-trampoline.S: New file.
3587         * sysdeps/sh/sh4/Versions [ld]: Add __fpscr_values.
3588         * sysdeps/sh/sh4/dl-machine.h: Remove.
3590 2005-01-10  Jakub Jelinek  <jakub@redhat.com>
3592         [BZ #732]
3593         * time/tst-strptime.c (day_tests): Add 2 new tests.
3594         (test_tm, main): Issue an error instead of segfaulting if
3595         strptime returns NULL.
3597 2005-01-10  H.J. Lu  <hongjiu.lu@intel.com>
3599         * sysdeps/alpha/libc-tls.c (__tls_get_addr): Updated for dtv_t union.
3600         * sysdeps/ia64/libc-tls.c (__tls_get_addr): Likewise.
3602 2005-01-11  Ulrich Drepper  <drepper@redhat.com>
3604         * malloc/malloc.h: Remove no-glibc support.
3606 2005-01-12  GOTO Masanori  <gotom@debian.or.jp>
3608         [BZ #650]
3609         * malloc/malloc.h: Always include features.h.
3611 2005-01-10  Roland McGrath  <roland@redhat.com>
3613         * sysdeps/ia64/fpu/e_logl.c: File removed.
3615         * dlfcn/dlfcn.c (init): Fix typo in attribute decl.
3617 2005-01-10  Ulrich Drepper  <drepper@redhat.com>
3619         * sysdeps/generic/dl-tls.c (_dl_next_tls_modid): Fix assertion and
3620         recognition of last entry.
3622 2005-01-09  Ulrich Drepper  <drepper@redhat.com>
3624         * elf/dl-runtime.c: Include <sys/param.h>.
3626         * elf/Makefile (headers): Add bits/link.h.
3628 2005-01-09  Andreas Schwab  <schwab@suse.de>
3630         * elf/rtld.c (dl_main): Create main_map with __RTLD_OPENEXEC.
3632 2005-01-09  Andreas Jaeger  <aj@suse.de>
3634         [BZ #732]
3635         * time/strptime_l.c (__strptime_internal): Add braces to avoid
3636         warning.
3638         * sysdeps/x86_64/bits/link.h: Use vector_size for GCC 4.0.
3640         * elf/rtld.c (dl_main): Call _dl_add_to_slotinfo only if USE_TLS.
3642 2005-01-08  Jakub Jelinek  <jakub@redhat.com>
3644         * elf/Makefile (generated): Add tst-pie1{,.out,.o}.
3646 2005-01-09  Ulrich Drepper  <drepper@redhat.com>
3648         * elf/dl-fini.c (_dl_fini): Call destructors of audit DSOs after
3649         those of all the regular objects.
3651         * elf/dl-debug.c (_dl_debug_initialize): Take extra parameter and
3652         use it to select the r_debug structure for that namespace.
3653         * elf/dl-close.c (_dl_close): Adjust call to _dl_debug_initialize.
3654         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
3655         * elf/dl-open.c (_dl_open): Likewise.
3656         * elf/rtld.c (dl_main): Likewise.
3657         * sysdeps/generic/ldsodefs.h (struct link_namespaces): Add _ns_debug
3658         member.
3659         (_dl_debug_initialize): Add new parameter in declaration.
3661         * elf/dl-close.c (_dl_close): Make sure auditing callbacks are not
3662         called for the auditing objects themselves.
3663         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
3665 2005-01-07  Ulrich Drepper  <drepper@redhat.com>
3667         * sysdeps/powerpc/powerpc64/dl-machine.h
3668         (elf_machine_runtime_setup): If profile != 0 does not anymore mean
3669         GLRO(dl_profile) != NULL.
3670         * sysdeps/powerpc/powerpc64/bits/link.h (struct la_ppc64_regs): Add
3671         padding.
3672         * sysdeps/powerpc/powerpc64/dl-trampoline.S: (_dl_profile_resolve):
3673         Extend _dl_prof_resolve to add pass extra parameters to
3674         _dl_profile_fixup and set up structure with register content.
3676         * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_machine_runtime_setup):
3677         If profile != 0 does not anymore mean GLRO(dl_profile) != NULL.
3678         * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_prof_resolve):
3679         Extend _dl_prof_resolve to add pass extra parameters to
3680         _dl_profile_fixup and set up structure with register content.
3681         * sysdeps/powerpc/powerpc32/bits/link.h: Fix types of some fields in
3682         the register and result structures.
3683         * sysdeps/powerpc/powerpc64/bits/link.h: Fix types of some fields
3684         in the 32-bit register and result structures.
3686         * sysdeps/powerpc/powerpc64/dl-trampoline.S: Use register names.
3688         * sysdeps/powerpc/powerpc32/dl-trampoline.S: New file.
3689         * sysdeps/powerpc/powerpc32/dl-machine.h: Remove trampoline code here.
3690         Define ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
3691         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add ppc32 variants.
3692         * elf/tst-auditmod1.c: Add ppc32 support.
3693         * sysdeps/powerpc/powerpc32/bits/link.h: New file.
3694         * sysdeps/powerpc/powerpc64/bits/link.h: Add ppc32 definitions.
3696         * malloc/malloc.c (malloc_printerr): Print program name as part of
3697         error message.
3699         * misc/sys/cdefs.h (__attribute_warn_unused_result__): Define.
3700         * stdlib/stdlib.h: Make realloc with
3701         __attribute_warn_unused_result__ instead of __wur.
3702         * malloc/malloc.h: Add __wur and __attribute_warn_unused_result__
3703         markers as in <stdlib.h>.
3705         * libio/stdio.h: Remove __wur from rename and remove.
3706         * posix/unistd.h: Remove __wur from dup2.
3708 2005-01-03  Andreas Jaeger  <aj@suse.de>
3710         * elf/Makefile (tests): Revert patch from 2005-01-03.
3712 2005-01-07  Ulrich Drepper  <drepper@redhat.com>
3714         * sysdeps/unix/sysv/linux/init-first.c (__libc_init_first): Don't
3715         make __libc_init_first hidden.
3717         * elf/rtld.c [!DONT_USE_BOOTSTRAP_MAP] (_dl_start_final): Initialize
3718         l_relocated of rtld map.
3719         * sysdeps/powerpc/powerpc64/dl-trampoline.S: New file.
3720         * sysdeps/powerpc/powerpc64/dl-machine.h: Remove trampoline code here.
3721         Define ARCH_LA_PLTENTER and ARCH_LA_PLTEXIT.
3722         * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add ppc64 variants.
3723         * elf/tst-auditmod1.c: Add ppc64 support.
3724         * sysdeps/powerpc/powerpc64/bits/link.h: New file.
3726 2005-01-06  Roland McGrath  <roland@redhat.com>
3728         [BZ #633]
3729         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Catch errno values
3730         indicating file-name lookup errors, and return ENOSYS or EBADF instead.
3732 2005-01-06  Ulrich Drepper  <drepper@redhat.com>
3734         * csu/elf-init.c (__libc_csu_fini): Don't do anything here.
3735         * sysdeps/generic/libc-start.c: Don't register program destructor here.
3737         * dlfcn/Makefile: Add rules to build dlfcn.c.
3738         (LDFLAGS-dl.so): Removed.
3739         * dlfcn/dlclose.c: _dl_close is now in ld.so, use function pointer
3740         table.
3741         * dlfcn/dlmopen.c: Likewise for _dl_open.
3742         * dlfcn/dlopen.c: Likewise.
3743         * dlfcn/dlopenold.c: Likewise.
3744         * elf/dl-libc.c: Likewise for _dl_open and _dl_close.
3745         * elf/Makefile (routines): Remove dl-open and dl-close.
3746         (dl-routines): Add dl-open, dl-close, and dl-trampoline.
3747         Add rules to build and run tst-audit1.
3748         * elf/tst-audit1.c: New file.
3749         * elf/tst-auditmod1.c: New file.
3750         * elf/Versions [libc]: Remove _dl_open and _dl_close.
3751         * elf/dl-close.c: Change for use inside ld.so instead of libc.so.
3752         * elf/dl-open.c: Likewise.
3753         * elf/dl-debug.c (_dl_debug_initialize): Allow reinitialization,
3754         signaled by nonzero parameter.
3755         * elf/dl-init.c: Fix use of r_state.
3756         * elf/dl-load.c: Likewise.
3758         * elf/dl-close.c: Add auditing checkpoints.
3759         * elf/dl-open.c: Likewise.
3760         * elf/dl-fini.c: Likewise.
3761         * elf/dl-load.c: Likewise.
3762         * elf/dl-sym.c: Likewise.
3763         * sysdeps/generic/libc-start.c: Likewise.
3764         * elf/dl-object.c: Allocate memory for auditing information.
3765         * elf/dl-reloc.c: Remove RESOLV.  We now always need the map.
3766         Correctly initialize slotinfo.
3767         * elf/dynamic-link.h: Adjust after removal of RESOLV.
3768         * sysdeps/hppa/dl-lookupcfg.h: Likewise.
3769         * sysdeps/ia64/dl-lookupcfg.h: Likewise.
3770         * sysdeps/powerpc/powerpc64/dl-lookupcfg.h: Removed.
3771         * elf/dl-runtime.c (_dl_fixup): Little cleanup.
3772         (_dl_profile_fixup): New parameters to point to register struct and
3773         variable for frame size.
3774         Add auditing checkpoints.
3775         (_dl_call_pltexit): New function.
3776         Don't define trampoline code here.
3777         * elf/rtld.c: Recognize LD_AUDIT.  Load modules on startup.
3778         Remove all the functions from _rtld_global_ro which only _dl_open
3779         and _dl_close needed.
3780         Add auditing checkpoints.
3781         * elf/link.h: Define symbols for auditing interfaces.
3782         * include/link.h: Likewise.
3783         * include/dlfcn.h: Define __RTLD_AUDIT.
3784         Remove prototypes for _dl_open and _dl_close.
3785         Adjust access to argc and argv in libdl.
3786         * dlfcn/dlfcn.c: New file.
3787         * sysdeps/generic/dl-lookupcfg.h: Remove all content now that RESOLVE
3788         is gone.
3789         * sysdeps/generic/ldsodefs.h: Add definitions for auditing interfaces.
3790         * sysdeps/generic/unsecvars.h: Add LD_AUDIT.
3791         * sysdeps/i386/dl-machine.h: Remove trampoline code here.
3792         Adjust for removal of RESOLVE.
3793         * sysdeps/x86_64/dl-machine.h: Likewise.
3794         * sysdeps/generic/dl-trampoline.c: New file.
3795         * sysdeps/i386/dl-trampoline.c: New file.
3796         * sysdeps/x86_64/dl-trampoline.c: New file.
3798         * sysdeps/generic/dl-tls.c: Cleanups.  Fixup for dtv_t change.
3799         Fix updating of DTV.
3800         * sysdeps/generic/libc-tls.c: Likewise.
3802         * sysdeps/arm/bits/link.h: Renamed to ...
3803         * sysdeps/arm/bits/linkmap.h: ...this.
3804         * sysdeps/generic/bits/link.h: Renamed to...
3805         * sysdeps/generic/bits/linkmap.h: ...this.
3806         * sysdeps/hppa/bits/link.h: Renamed to...
3807         * sysdeps/hppa/bits/linkmap.h: ...this.
3808         * sysdeps/i386/bits/link.h: Renamed to...
3809         * sysdeps/i386/bits/linkmap.h: ...this.
3810         * sysdeps/ia64/bits/link.h: Renamed to...
3811         * sysdeps/ia64/bits/linkmap.h: ...this.
3812         * sysdeps/s390/bits/link.h: Renamed to...
3813         * sysdeps/s390/bits/linkmap.h: ...this.
3814         * sysdeps/sh/bits/link.h: Renamed to...
3815         * sysdeps/sh/bits/linkmap.h: ...this.
3816         * sysdeps/x86_64/bits/link.h: Renamed to...
3817         * sysdeps/x86_64/bits/linkmap.h: ...this.
3819         * posix/unistd.h: Declare ftruncate for POSIX 2003.  [BZ #640]
3821 2004-12-22  Steven Munroe  <sjmunroe@us.ibm.com>
3823         [BZ #602]
3824         * math/libm-test.inc (rint_test_tonearest): New test.
3825         (rint_test_towardzero): New test.
3826         (rint_test_downward): New test.
3827         (rint_test_upward): New test.
3828         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Fix -0.0 case.
3829         Remove redundant const values.
3830         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Fix -0.0 case.
3831         Remove redundant const values.  Use float const.
3832         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Fix -0.0 case.
3833         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Fix -0.0 case.
3834         Use float const.
3835         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Fix -0.0 case.
3836         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Fix -0.0 case.
3837         Use float const.
3838         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Fix -0.0 case.
3839         Remove redundant const values.
3840         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Fix -0.0 case.
3841         Remove redundant const values.  Use float const.
3842         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Fix -0.0 case.
3843         Remove redundant const values.
3844         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Fix -0.0 case.
3845         Remove redundant const values.  Use float const.
3846         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Use EALIGN for Quadword
3847         alignment.  Fix -0.0 case.  Remove redundant const values.
3848         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Use EALIGN for Quadword
3849         alignment.  Fix -0.0 case.  Remove redundant const values.
3850         Use float const.
3851         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Use EALIGN for Quadword
3852         alignment.  Fix -0.0 case.
3853         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Use EALIGN for Quadword
3854         alignment.  Fix -0.0 case.  Use float const.
3855         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Use EALIGN for Quadword
3856         alignment.  Fix -0.0 case.
3857         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Use EALIGN for Quadword
3858         alignment.  Fix -0.0 case.  Use float const.
3859         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Use EALIGN for Quadword
3860         alignment.  Fix -0.0 case.  Remove redundant const values.
3861         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Use EALIGN for Quadword
3862         alignment.  Fix -0.0 case.  Remove redundant const values.
3863         Use float const.
3864         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Use EALIGN for Quadword
3865         alignment.  Fix -0.0 case.
3866         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Use EALIGN for Quadword
3867         alignment.  Fix -0.0 case.  Remove redundant const values.
3868         Use float const.
3870 2005-01-06  Ulrich Drepper  <drepper@redhat.com>
3872         * misc/sys/cdefs.h: Define __wur.
3873         * libio/stdio.h: Use __wur for a number of interfaces.
3874         * posix/unistd.h: Likewise.
3875         * stdlib/stdlib.h: Likewise.
3877 2004-12-29  Jakub Jelinek  <jakub@redhat.com>
3879         [BZ #592]
3880         * sysdeps/ia64/fpu/libm_support.h (__libm_error_support): Use
3881         libc_hidden_proto instead of HIDDEN_PROTO.
3882         * sysdeps/ia64/fpu/libm-symbols.h (HIDDEN_PROTO): Remove.
3883         (__libm_error_support): If ASSEMBLER and in libc, define to
3884         HIDDEN_JUMPTARGET(__libm_error_support).
3886 2004-12-28  David Mosberger  <davidm@hpl.hp.com>
3888         [BZ #592]
3889         * sysdeps/ia64/fpu/Makefile (duplicated-routines): New macro.
3890         (sysdep_routines): Replace libm_ldexp{,f,l} and libm_scalbn{,f,l}
3891         with $(duplicated-routines).
3892         (libm-sysdep_routines): Likewise, but substitute "s_" prefix for
3893         "m_" prefix.
3895 2004-12-27  David Mosberger  <davidm@hpl.hp.com>
3897         [BZ #592]
3898         * sysdeps/ia64/fpu/libm-symbols.h: Add include of <sysdep.h> and
3899         undefine "ret" macro.  Add __libm_error_support hidden definitions.
3901         [BZ #592]
3902         * sysdeps/ia64/fpu/e_lgamma_r.c: Remove CVS-id comment.  Add
3903         missing portion of copyright statement.
3904         * sysdeps/ia64/fpu/e_lgammaf_r.c: Likewise.
3905         * sysdeps/ia64/fpu/e_lgammal_r.c: Likewise.
3907         [BZ #592]
3908         * sysdeps/ia64/fpu/w_lgamma.c: Remove CVS-id comment.  Add
3909         missing portion of copyright statement.
3910         (__ieee754_lgamma): Rename from lgamma().  Make lgamma() a weak alias.
3911         (__ieee754_gamma): Likewise.
3912         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
3913         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
3915 2004-12-09  H.J. Lu <hjl@lucon.org>
3917         [BZ #592]
3918         * sysdeps/ia64/fpu/s_nextafterl.c: Remove.
3919         * sysdeps/ia64/fpu/s_nexttoward.c: Likewise.
3920         * sysdeps/ia64/fpu/s_nexttowardf.c: Likewise.
3921         * sysdeps/ia64/fpu/e_atan2l.S: Remove (duplicate of e_atan2l.c).
3922         * sysdeps/ia64/fpu/e_expl.S: Likewise.
3923         * sysdeps/ia64/fpu/e_logl.c: Remove (conflicts with e_logl.S).
3925 2004-11-18  David Mosberger  <davidm@hpl.hp.com>
3927         [BZ #592]
3928         * sysdeps/ia64/fpu/README: New file.
3929         * sysdeps/ia64/fpu/gen_import_file_list: New file.
3930         * sysdeps/ia64/fpu/import_check: Likewise.
3931         * sysdeps/ia64/fpu/import_diffs: Likewise.
3932         * sysdeps/ia64/fpu/import_file.awk: Likewise.
3933         * sysdeps/ia64/fpu/import_intel_libm: Likewise.
3934         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
3936         [BZ #592]
3937         * sysdeps/ia64/fpu/e_acos.S: Update from Intel libm v2.1+.
3938         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
3939         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
3940         * sysdeps/ia64/fpu/e_asin.S: Likewise.
3941         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
3942         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
3943         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
3944         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
3945         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
3946         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
3947         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
3948         * sysdeps/ia64/fpu/e_exp.S: Likewise.
3949         * sysdeps/ia64/fpu/e_expf.S: Likewise.
3950         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
3951         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
3952         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
3953         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
3954         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
3955         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
3956         * sysdeps/ia64/fpu/e_log.S: Likewise.
3957         * sysdeps/ia64/fpu/e_log2.S: Likewise.
3958         * sysdeps/ia64/fpu/e_log2f.S: Likewise.
3959         * sysdeps/ia64/fpu/e_log2l.S: Likewise.
3960         * sysdeps/ia64/fpu/e_logf.S: Likewise.
3961         * sysdeps/ia64/fpu/e_pow.S: Likewise.
3962         * sysdeps/ia64/fpu/e_powf.S: Likewise.
3963         * sysdeps/ia64/fpu/e_powl.S: Likewise.
3964         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
3965         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
3966         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
3967         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
3968         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
3969         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
3970         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
3971         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
3972         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
3973         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
3974         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
3975         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
3976         * sysdeps/ia64/fpu/libm_error.c: Likewise.
3977         * sysdeps/ia64/fpu/libm_reduce.c: Likewise.
3978         * sysdeps/ia64/fpu/libm_support.h: Likewise.
3979         * sysdeps/ia64/fpu/s_atan.S: Likewise.
3980         * sysdeps/ia64/fpu/s_atanf.S: Likewise.
3981         * sysdeps/ia64/fpu/s_atanl.S: Likewise.
3982         * sysdeps/ia64/fpu/s_cbrt.S: Likewise.
3983         * sysdeps/ia64/fpu/s_cbrtf.S: Likewise.
3984         * sysdeps/ia64/fpu/s_cbrtl.S: Likewise.
3985         * sysdeps/ia64/fpu/s_ceil.S: Likewise.
3986         * sysdeps/ia64/fpu/s_ceilf.S: Likewise.
3987         * sysdeps/ia64/fpu/s_ceill.S: Likewise.
3988         * sysdeps/ia64/fpu/s_cos.S: Likewise.
3989         * sysdeps/ia64/fpu/s_cosf.S: Likewise.
3990         * sysdeps/ia64/fpu/s_cosl.S: Likewise.
3991         * sysdeps/ia64/fpu/s_expm1.S: Likewise.
3992         * sysdeps/ia64/fpu/s_expm1f.S: Likewise.
3993         * sysdeps/ia64/fpu/s_expm1l.S: Likewise.
3994         * sysdeps/ia64/fpu/s_fabs.S: Likewise.
3995         * sysdeps/ia64/fpu/s_fabsf.S: Likewise.
3996         * sysdeps/ia64/fpu/s_fabsl.S: Likewise.
3997         * sysdeps/ia64/fpu/s_floor.S: Likewise.
3998         * sysdeps/ia64/fpu/s_floorf.S: Likewise.
3999         * sysdeps/ia64/fpu/s_floorl.S: Likewise.
4000         * sysdeps/ia64/fpu/s_frexp.c: Likewise.
4001         * sysdeps/ia64/fpu/s_frexpf.c: Likewise.
4002         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
4003         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
4004         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
4005         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
4006         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
4007         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
4008         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
4009         * sysdeps/ia64/fpu/s_logb.S: Likewise.
4010         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
4011         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
4012         * sysdeps/ia64/fpu/s_modf.S: Likewise.
4013         * sysdeps/ia64/fpu/s_modff.S: Likewise.
4014         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
4015         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
4016         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
4017         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
4018         * sysdeps/ia64/fpu/s_rint.S: Likewise.
4019         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
4020         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
4021         * sysdeps/ia64/fpu/s_round.S: Likewise.
4022         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
4023         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
4024         * sysdeps/ia64/fpu/s_significand.S: Likewise.
4025         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
4026         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
4027         * sysdeps/ia64/fpu/s_tan.S: Likewise.
4028         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
4029         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
4030         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
4031         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
4032         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
4034         [BZ #592]
4035         * sysdeps/ia64/fpu/e_acosh.S: New file from Intel libm v2.1+.
4036         * sysdeps/ia64/fpu/e_acoshf.S: Likewise.
4037         * sysdeps/ia64/fpu/e_acoshl.S: Likewise.
4038         * sysdeps/ia64/fpu/e_atanh.S: Likewise.
4039         * sysdeps/ia64/fpu/e_atanhf.S: Likewise.
4040         * sysdeps/ia64/fpu/e_atanhl.S: Likewise.
4041         * sysdeps/ia64/fpu/e_exp10.S: Likewise.
4042         * sysdeps/ia64/fpu/e_exp10f.S: Likewise.
4043         * sysdeps/ia64/fpu/e_exp10l.S: Likewise.
4044         * sysdeps/ia64/fpu/e_exp2.S: Likewise.
4045         * sysdeps/ia64/fpu/e_exp2f.S: Likewise.
4046         * sysdeps/ia64/fpu/e_exp2l.S: Likewise.
4047         * sysdeps/ia64/fpu/e_lgamma_r.S: Likewise.
4048         * sysdeps/ia64/fpu/e_lgammaf_r.S: Likewise.
4049         * sysdeps/ia64/fpu/e_lgammal_r.S: Likewise.
4050         * sysdeps/ia64/fpu/e_logl.S: Likewise.
4051         * sysdeps/ia64/fpu/libm_frexp.S: Likewise.
4052         * sysdeps/ia64/fpu/libm_frexpf.S: Likewise.
4053         * sysdeps/ia64/fpu/libm_frexpl.S: Likewise.
4054         * sysdeps/ia64/fpu/s_libm_ldexp.S: Likewise.
4055         * sysdeps/ia64/fpu/s_libm_ldexpf.S: Likewise.
4056         * sysdeps/ia64/fpu/s_libm_ldexpl.S: Likewise.
4057         * sysdeps/ia64/fpu/s_libm_scalbn.S: Likewise.
4058         * sysdeps/ia64/fpu/s_libm_scalbnf.S: Likewise.
4059         * sysdeps/ia64/fpu/s_libm_scalbnl.S: Likewise.
4060         * sysdeps/ia64/fpu/libm_lgamma.S: Likewise.
4061         * sysdeps/ia64/fpu/libm_lgammaf.S: Likewise.
4062         * sysdeps/ia64/fpu/libm_lgammal.S: Likewise.
4063         * sysdeps/ia64/fpu/libm_sincos.S: Likewise.
4064         * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
4065         * sysdeps/ia64/fpu/libm_sincosf.S: Likewise.
4066         * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
4067         * sysdeps/ia64/fpu/libm_scalblnf.S: Likewise.
4068         * sysdeps/ia64/fpu/s_asinh.S: Likewise.
4069         * sysdeps/ia64/fpu/s_asinhf.S: Likewise.
4070         * sysdeps/ia64/fpu/s_asinhl.S: Likewise.
4071         * sysdeps/ia64/fpu/s_erf.S: Likewise.
4072         * sysdeps/ia64/fpu/s_erfc.S: Likewise.
4073         * sysdeps/ia64/fpu/s_erfcf.S: Likewise.
4074         * sysdeps/ia64/fpu/s_erfcl.S: Likewise.
4075         * sysdeps/ia64/fpu/s_erff.S: Likewise.
4076         * sysdeps/ia64/fpu/s_erfl.S: Likewise.
4077         * sysdeps/ia64/fpu/s_fdim.S: Likewise.
4078         * sysdeps/ia64/fpu/s_fdimf.S: Likewise.
4079         * sysdeps/ia64/fpu/s_fdiml.S: Likewise.
4080         * sysdeps/ia64/fpu/s_fma.S: Likewise.
4081         * sysdeps/ia64/fpu/s_fmaf.S: Likewise.
4082         * sysdeps/ia64/fpu/s_fmal.S: Likewise.
4083         * sysdeps/ia64/fpu/s_fmax.S: Likewise.
4084         * sysdeps/ia64/fpu/s_fmaxf.S: Likewise.
4085         * sysdeps/ia64/fpu/s_fmaxl.S: Likewise.
4086         * sysdeps/ia64/fpu/s_ldexp.c: Likewise.
4087         * sysdeps/ia64/fpu/s_ldexpf.c: Likewise.
4088         * sysdeps/ia64/fpu/s_ldexpl.c: Likewise.
4089         * sysdeps/ia64/fpu/s_nextafter.S: Likewise.
4090         * sysdeps/ia64/fpu/s_nextafterf.S: Likewise.
4091         * sysdeps/ia64/fpu/s_nextafterl.S: Likewise.
4092         * sysdeps/ia64/fpu/s_nexttoward.S: Likewise.
4093         * sysdeps/ia64/fpu/s_nexttowardf.S: Likewise.
4094         * sysdeps/ia64/fpu/s_nexttowardl.S: Likewise.
4095         * sysdeps/ia64/fpu/s_tanh.S: Likewise.
4096         * sysdeps/ia64/fpu/s_tanhf.S: Likewise.
4097         * sysdeps/ia64/fpu/s_tanhl.S: Likewise.
4098         * sysdeps/ia64/fpu/s_scalblnf.c: Likewise.
4099         * sysdeps/ia64/fpu/w_lgamma.c: Likewise.
4100         * sysdeps/ia64/fpu/w_lgammaf.c: Likewise.
4101         * sysdeps/ia64/fpu/w_lgammal.c: Likewise.
4102         * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
4103         * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
4104         * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
4106         [BZ #592]
4107         * sysdeps/ia64/fpu/e_gamma_r.c: New empty dummy-file.
4108         * sysdeps/ia64/fpu/e_gammaf_r.c: Likewise.
4109         * sysdeps/ia64/fpu/e_gammal_r.c: Likewise.
4110         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
4111         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
4112         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
4113         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
4114         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
4115         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
4116         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
4117         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
4118         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
4119         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
4120         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
4121         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
4122         * sysdeps/ia64/fpu/w_expl.c: Likewise.
4123         * sysdeps/ia64/fpu/e_expl.S: Likewise.
4124         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
4125         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
4126         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
4127         * sysdeps/ia64/fpu/w_log2.c: Likewise.
4128         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
4129         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
4130         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
4131         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
4132         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
4134         [BZ #592]
4135         * sysdeps/ia64/fpu/libm_atan2_reg.S: Remove.
4136         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
4137         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
4138         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
4139         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
4140         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
4141         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
4143         [BZ #592]
4144         * sysdeps/ia64/fpu/s_sincos.c: Make it an empty dummy-file.
4145         * sysdeps/ia64/fpu/s_sincosf.c: Likewise.
4146         * sysdeps/ia64/fpu/s_sincosl.c: Likewise.
4148         [BZ #592]
4149         * sysdeps/ia64/fpu/e_atan2l.S: Add "Not needed" comment.
4151         [BZ #592]
4152         * sysdeps/ia64/fpu/s_copysign.S: Add __libm_copysign{,f,l}
4153         alias for use by libm_error.c
4155         [BZ #592]
4156         * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove
4157         libm_atan2_reg, libm_tan, libm_frexp4{f,l}.
4158         Mention s_erfc{,f,l}, libm_frexp{,f,l}, libm_ldexp{,f,l},
4159         libm_sincos{,f,l}, libm_sincos_large, libm_lgamma{,f,l},
4160         libm_scalbn{,f,l}, libm_scalblnf.
4161         (sysdep_routines): Remove libm_frexp4{,f,l}.
4162         Mention libm_frexp{,f,l}, libm_ldexp{,f,l}, and libm_scalbn{,f,l}.
4163         (sysdep-CPPFLAGS): Add -include libm-symbols.h, -D__POSIX__,
4164         _D_LIB_VERSIONIMF=_LIB_VERSION, -DSIZE_LONG_INT_64, and
4165         -DSIZE_LONG_LONG_INT_64.
4167 2005-01-05  Steven Munroe  <sjmunroe@us.ibm.com>
4169         [BZ #729]
4170         * elf/rtld.c (dl_main) [NEED_DL_SYSINFO_DSO]: Insure l_map_end and
4171         l_text_end are set for a VDSO with a single PT_LOAD entry.
4173 2005-01-05  Ulrich Drepper  <drepper@redhat.com>
4175         [BZ #730]
4176         * libio/iofopncook.c (_IO_cookie_seekoff): Define.  Mark offset as
4177         invalid to disable optimizations in fileops which won't work here.
4178         (_IO_cookie_jumps): Use it.
4179         (_IO_old_cookie_jumps): Likewise.
4180         * libio/fmemopen.c (fmemopen_seek): Result must be returned in *P,
4181         not the return value.
4182         * stdio-common/Makefile (tests): Add tst-fmemopen2.
4183         * stdio-common/tst-fmemopen2.c: New file.
4185         * sysdeps/unix/sysv/linux/bits/waitflags.h: Define __WNOTHREAD.
4187 2005-01-05  Roland McGrath  <roland@redhat.com>
4189         * configure.in (libc_cv_cpp_asm_debuginfo): Checked moved ...
4190         * sysdeps/i386/configure.in: ... here.  New file.
4192 2005-01-03  Ulrich Drepper  <drepper@redhat.com>
4194         [BZ #727]
4195         * sysdeps/generic/libc-start.c [SHARED] (__libc_start_main): Don't
4196         initialize __environ again.
4197         * stdlib/Makefile: Add rules to build and run tst-putenv.
4198         * stdlib/tst-putenv.c: New file.
4199         * stdlib/tst-putenvmod.c: New file.
4201         * sysdeps/unix/sysv/linux/init-first.c: Clean file up.  Don't
4202         define unnecessary wrappers or aliases of static functions.
4204 2005-01-03  Andreas Jaeger  <aj@suse.de>
4206         * csu/Makefile (generated): Add start.os and start.ob.
4208         * elf/Makefile (tests): Change rule for tst-pie1 so that make
4209         clean works.
4211 2004-12-29  Roland McGrath  <roland@redhat.com>
4213         [BZ #626]
4214         * sysdeps/unix/alarm.c (alarm): Round return value to nearest rather
4215         than always up; when nearest is zero, round up to one.
4217 2004-12-28  Ulrich Drepper  <drepper@redhat.com>
4219         * po/es.po: Update from translation team.
4221         [BZ #726]
4222         * sysdeps/generic/dl-tls.c (__tls_get_addr): Fix typo.
4224 2004-12-27  Ulrich Drepper  <drepper@redhat.com>
4226         [BZ #744]
4227         * include/signal.h: Define __sigemptyset.
4229 2004-04-27  Paolo Bonzini  <bonzini@gnu.org>
4231         * posix/regex_internal.h (struct re_dfastate_t): Make
4232         word_trtable a pointer to the 512-item transition table.
4233         * posix/regexec.c (build_trtable): Fill in either state->trtable
4234         or state->word_trtable.  Return a boolean indicating success.
4235         (transit_state): Expect state->trtable to be a 256-item
4236         transition table.  Reorganize code to have less tests in
4237         the common case, and to save an indentation level.
4238         * posix/regex_internal.c (free_state): Free word_trtable.
4240 2004-12-21  Jakub Jelinek  <jakub@redhat.com>
4242         [BZ #723]
4243         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Make sure %esp when
4244         calling fn is 16 byte aligned.
4245         * sysdeps/i386/tst-stack-align.h: New file.
4247         [BZ #725]
4248         * misc/efgcvt_r.c (FLOAT_MIN_10_EXP, FLOAT_MIN_10_NORM): Define.
4249         (ecvt_r): Special case denormals.
4250         * misc/qefgcvt_r.c (FLOAT_MIN_10_EXP, FLOAT_MIN_10_NORM): Define.
4251         * misc/tst-efgcvt.c: Include float.h.
4252         (ecvt_tests): Add 2 new tests.
4254 2004-12-20  Roland McGrath  <roland@frob.com>
4256         * version.h (RELEASE, VERSION): development, 2.3.90
4257         * include/features.h (__GLIBC_MINOR__): Now 4.
4260 See ChangeLog.15 for earlier changes.