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