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