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