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