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