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