Update.
[glibc.git] / ChangeLog
blob050fc07f41a3b1728aeadfe2471fec0049acb40c
1 2002-02-17  Andreas Schwab  <schwab@suse.de>
3         * reldep7.c: New file.
4         * reldep7mod1.c: New file.
5         * reldep7mod2.c: New file.
6         * Makefile: Add rules to build and run reldep7.
8 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
10         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
11         the end of the function.  Pass original flags to recursive call if
12         add_dependency failed.
13         (_dl_lookup_versioned_symbol): Likewise.
15 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
17         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
18         early, but check whether it overflowed afterwards.
19         * time/tst-mktime.c (main): Add new tests.
21 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
23         * debug/xtrace.sh: Fix program name in help message.
24         Patch by Roger Luethi <rl@hellgate.ch>.
26         * include/sys/stat.h: Add prototypes for __lxstat_internal and
27         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
28         NOT_IN_libc.
29         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
30         * sysdeps/mach/hurd/lxstat.c: Likewise.
31         * sysdeps/unix/common/lxstat.c: Likewise.
32         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
33         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
34         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
35         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
36         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
37         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
38         * sysdeps/mach/hurd/lxstat64.c: Likewise.
39         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
40         * sysdeps/unix/sysv/linuxx/lxstat64.c: Likewise.
42         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
43         prototypes.  Add __mbrlen and __mbrtowc macros.
44         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
45         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
47         * include/unistd.h: Add prototype for __write_internal and add
48         __libc_write macro is SHARED.
49         * sysdeps/generic/write.c: Use INTDEF for __write.
50         * sysdeps/mach/hurd/write.c: Likewise.
51         * sysdeps/unix/sysv/aix/write.c: Likewise.
52         * sysdeps/unix/syscalls.list: Add __libc_write alias.
54         * assert/assert.c: Replace STR_N_SIZE with something usable in
55         macro arguments.
56         * assert/assert-perr.c: Likewise.
58         * include/sys/socket.h: Declare __libc_sa_len_internal and define
59         SA_LEN macro to use it if not NOT_IN_libc.
60         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
62         * include/fcntl.h: Declare __open_internal and define __open and
63         __libc_open macros if not NOT_IN_libc.
64         * sysdeps/generic/open.c: Use INTDEF for __open.
65         * sysdeps/mach/hurd/open.c: Likewise.
66         * sysdeps/unix/sysv/aix/open.c: Likewise.
67         * sysdeps/unix/syscalls.list: Add __open_internal alias.
69         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
70         has correct number.
72         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
73         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
74         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
75         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
77         * include/wctype.h: Declare __iswalpha_l_internal,
78         __iswdigit_l_internal, __iswspace_l_internal,
79         __iswxdigit_l_internal, and __iswctype_internal.  Define
80         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
81         __iswxdigit_l macros if not NOT_IN_libc.
82         * wctype/iswctype.c: Use INTDEF for __iswctype.
83         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
85         * include/math.h: Declare __isinf_internal, __isinfl_internal,
86         __isnan_internal, and __isnanl_internal.
87         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
88         __isnan, and __isnanl.
89         * stdio-common/printf_size.c: Likewise.
90         * sysdeps/generic/printf_fphex.c: Likewise.
91         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
92         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
93         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
94         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
95         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
96         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
97         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
98         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
99         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
100         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
101         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
102         * sysdeps/m68k/s_isinfl.c: Likewise.
103         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
104         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
106         * include/sys/time.h: Declare __gettimeofday_internal and define
107         __gettimeofday macro if not NOT_IN_libc.
108         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
109         * sysdeps/mach/gettimeofday.c: Likewise.
110         * sysdeps/posix/gettimeofday.c: Likewise.
111         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
112         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
113         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
114         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
116         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
117         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
118         Remove __lstat and __fstat inline functions.
119         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
120         * sysdeps/mach/hurd/fxstat.c: Likewise.
121         * sysdeps/unix/fxstat.c: Likewise.
122         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
123         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
124         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
125         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
126         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
127         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
128         * sysdeps/mach/hurd/fxstat64.c: Likewise.
129         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
130         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
132         * include/unistd.h: Declare __getpid_internal and define
133         __getpid macro if not NOT_IN_libc.
134         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
135         * sysdeps/generic/getpid.c: Likewise.
136         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
137         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
139         * include/unistd.h: Declare __getpgid_internal and define
140         __getpgid macro if not NOT_IN_libc.
141         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
142         * sysdeps/mach/hurd/getpgid.c: Likewise.
143         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
144         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
145         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
146         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
148         * include/unistd.h: Declare __getpagesize_internal and define
149         __getpagesize macro if not NOT_IN_libc.
150         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
151         __getpagesize.
152         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
153         * sysdeps/mach/getpagesize.c: Likewise.
154         * sysdeps/posix/getpagesize.c: Likewise.
155         * sysdeps/unix/getpagesize.c: Likewise.
156         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
157         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
158         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
159         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
161 2002-04-13  Andreas Jaeger  <aj@suse.de>
163         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
164         as clobber to reduce register pressure.
165         (__strpbrk_cg): Likewise.
166         (__mempcpy_by4): Likewise.
167         (__strstr_cg): Likewise.
168         Add prototype for __memrchr.
170 2002-04-13  Andreas Schwab  <schwab@suse.de>
172         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
173         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
174         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
176 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
178         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
179         check whether the caller prefers getting the most recent version of
180         a symbol of the earliest version.
181         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
182         _dl_do_lookup to also take the new parameter and pass it on.
183         Change 'explicit' parameter of _dl_lookup_symbol and
184         _dl_lookup_versioned_symbol to flags.  Adjust tests.
185         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
186         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
187         _dl_lookup_versioned_symbol.
188         * elf/dl-reloc.c: Likewise.
189         * elf/dl-runtime.c: Likewise.
190         * elf/dl-sym.c: Likewise.
191         * sysdeps/mips/dl-machine.h: Likewise.
193 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
195         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
196         in a token.
197         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
199 2002-04-10  Andreas Jaeger  <aj@suse.de>
201         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
203         * include/argz.h: Remove extra char from last patch.
205 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
207         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
208         * sysdeps/unix/sysv/aix/chown.c: Likewise.
209         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
210         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
211         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
212         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
213         __chown_internal.
214         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
216         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
217         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
218         * intl/ngettext.c: Likewise.
220         * include/sys/socket.h: Declare __connect_internal and define
221         __connect macro if not NOT_IN_libc.
222         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
223         * sysdeps/unix/sysv/aix/connect.c: Likewise.
224         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
226         * include/unistd.h: Declare __close_internal and define __close macro
227         if not NOT_IN_libc.
228         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
229         WJUMP3): Add extra parenthesis to avoid expanding element names with
230         macors like __close.
231         * sysdeps/unix/syscalls.list: Add __close_internal alias.
233         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
234         if not NOT_IN_libc.
235         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
236         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
237         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
239         * include/unistd.h: Declare __fork_internal and define __fork macro
240         if not NOT_IN_libc.
241         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
242         * sysdeps/unix/sysv/aix/fork.c: Likewise.
243         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
245         * include/stdio_ext.h: Declare __fsetlocking_internal and define
246         __fsetlocking macro to use it if not NOT_IN_libc.
247         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
249         * libio/__fbufsize.c: Correct copyright.
250         * libio/__flbf.c: Likewise.
251         * libio/__fpending.c: Likewise.
252         * libio/__fpurge.c: Likewise.
253         * libio/__freadable.c: Likewise.
254         * libio/__freading.c: Likewise.
255         * libio/__fsetlocking.c: Likewise.
256         * libio/__fwritable.c: Likewise.
257         * libio/__fwriting.c: Likewise.
259         * include/stdio.h: Declare __asprintf_internal and define __asprintf
260         macro to use it if not NOT_IN_libc.
261         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
263         * include/mntent.h: Declare __setmntent_internal,
264         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
265         __getmntent_r, and __endmntent macros to use these functions if not
266         NOT_IN_libc.
267         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
268         __endmntent.
270         * include/math.h: Declare __finite_internal, __finitef_internal, and
271         __finitel_internal.  Redefine isfinite macro if in libc or libm using
272         these functions.
273         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
274         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
275         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
276         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
277         * sysdeps/i386/fpu/s_finitef.S: Likewise.
278         * sysdeps/i386/fpu/s_finitel.S: Likewise.
279         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
280         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
281         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
282         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
284         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
285         to use this function if not NOT_IN_libc.
286         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
287         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
288         * sysdeps/mach/hurd/fcntl.c: Likewise.
289         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
290         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
292         * include/argz.h: Declare __argz_count_internal and
293         __argz_stringify_internal.
294         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
295         __argz_stringify.
296         * string/argz-count.c: Use INTDEF for __argz_count.
297         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
299         * include/stdlib.h: Declare __cxa_atexit_internal and define
300         __cxa_atexit macro if not NOT_IN_libc.
301         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
302         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
304         * assert/assert.c: Use INTDEF for __assert_fail.
305         * assert/__assert.c: Use INTUSE for call to __assert_fail.
306         * include/assert.h: Declare __assert_fail_internal.
308         * extra-lib.mk: Mark assignment to lib with override.
310 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
312         * Makerules: Use cppflags-iterator.mk to add defines for all test
313         source files.
315 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
317         * elf/elf.h: Define R_SH_TLS_xxx macros.
318         * elf/rtld.c: Remove an extra parenthesis.
319         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
320         TLS_GD macros.
321         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
322         * sysdeps/sh/dl-lookupcfg.h: New file.
323         * sysdeps/sh/dl-tls.h: New file.
324         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
325         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
326         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
327         R_SH_TLS_TPOFF32 relocations.
329 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
331         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
332         of NOT_IN_LIBC.
333         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
334         * include/stdlib.h: Likewise.
336 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
338         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
339         instead of _RTLD_LOCAL.
340         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
341         * include/unistd.h: Likewise.
342         * sysdeps/generic/ldsodefs.h: Likewise.
344         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
345         if in libc or ld.so.
347 2002-04-08  Andreas Jaeger  <aj@suse.de>
349         * elf/cache.c (print_entry): Support x86-64.
351 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
353         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
354         with one accessing the locale data structures directly.
355         * stdio-common/printf-prs.c: Include localeinfo.h for new
356         MB_CUR_MAX definition.
358         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
359         is the name of the source file without extension.
360         * Makefile (distribute): Add cppflags-iterator.mk.
361         * cppflags-iterator.mk: New file.
362         * extra-lib.mk: For the sources of the library run
363         cppflags-iterator.mk.
365         * include/libintl.h: Declare __dcgettext_internal and
366         _libc_intl_domainname_internal.  Define __dcgettext using these
367         two symbols if used in libc itself.
368         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
369         _libc_intl_domainname_internal.
370         * argp/argp-parse.c: Likewise.
371         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
372         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
373         * intl/gettext.c: Likewise.
374         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
375         alias.
376         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
377         __dcgettext.
378         * posix/regex_internal.c (gettext): Likewise.
380 2002-04-08  Andreas Jaeger  <aj@suse.de>
382         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
384         * sysdeps/x86_64/fpu/s_llrint.S: New.
385         * sysdeps/x86_64/fpu/s_llrintf.S: New.
386         * sysdeps/x86_64/fpu/s_llrintl.S: New.
387         * sysdeps/x86_64/fpu/s_lrint.S: New.
388         * sysdeps/x86_64/fpu/s_lrintf.S: New
389         * sysdeps/x86_64/fpu/s_lrintl.S: New.
391 2002-04-08  Roland McGrath  <roland@frob.com>
393         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
394         widening __hurd_fail value.
396 2002-04-07  Roland McGrath  <roland@frob.com>
398         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
399         <mach/machine/alpha_instruction.h>.
400         (_hurd_setup_sighandler): Take proper arguments for current decls.
401         Update code to use _hurdsig_catch_fault.
402         Use `callsys' instruction instead of `call_pal'.
403         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
405         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
406         (ALIGN, at, AT, fp): New macros.
408 2002-04-06  Roland McGrath  <roland@frob.com>
410         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
412         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
413         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
415         * sysdeps/mach/hurd/bind.c: Use prototype definition.
416         * sysdeps/mach/hurd/connect.c: Likewise.
417         * sysdeps/mach/hurd/getsockopt.c: Likewise.
418         * sysdeps/mach/hurd/setsockopt.c: Likewise.
420         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
421         __msg_sig_post RPC.
423         * hurd/catch-exc.c: Use integer_t instead of int.
424         * hurd/hurdfault.c: Likewise.
426         * sysdeps/mach/hurd/alpha/exc2signal.c
427         (_hurd_exception2signal): Rewritten.
428         * sysdeps/mach/hurd/alpha/longjmp-ts.c
429         (_hurd_longjmp_thread_state): Rewritten.
431 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
433         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
434         DB_LOOKUP_FCT prototype.
435         * nss/getXXent_r.c: Likewise.
436         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
437         * inet/getaliasname_r.c: Likewise.
438         * inet/getnetbyad_r.c: Likewise.
439         * inet/getnetbynm_r.c: Likewise.
440         * inet/getnetent_r.c: Likewise.
441         * inet/getproto_r.c: Likewise.
442         * inet/getprtent_r.c: Likewise.
443         * inet/getprtname_r.c: Likewise.
444         * inet/getrpcbyname_r.c: Likewise.
445         * inet/getrpcbynumber_r.c: Likewise.
446         * inet/getrpcent_r.c: Likewise.
447         * inet/getservent_r.c: Likewise.
448         * inet/getsrvbynm_r.c: Likewise.
449         * inet/getsrvbypt_r.c: Likewise.
450         * shadow/getspent_r.c: Likewise.
451         * shadow/getspnam_r.c: Likewise.
453         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
455         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
456         Use i686-friendly PIC code.
457         * sysdeps/i386/elf/setjmp.S: Likewise.
459         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
461         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
462         list.
463         * elf/Versions: Remove it here.
465 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
467         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
468         direction.  Reported by H . J . Lu <hjl@lucon.org>.
470 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
472         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
473         test just before the test runs.
474         * intl/tst-translit.sh: Likewise.
475         * intl/tst-codeset.sh: Likewise.
477         * timezone/zic.c: Update from tzcode2002c.
478         * timezone/asia: Update from tzdata2002c.
479         * timezone/backward: Likewise.
480         * timezone/europe: Likewise.
481         * timezone/northamerica: Likewise.
482         * timezone/northamerica: Likewise.
483         * timezone/northamerica: Likewise.
484         * timezone/southamerica: Likewise.
485         * timezone/zone.tab: Likewise.
487 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
489         * sysdeps/generic/brk.c (__curbrk): Declare.
490         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
491         * sysdeps/generic/dl-sbrk.c: Likewise.
492         * sysdeps/unix/arm/dl-brk.S: New file.
493         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
494         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
495         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
496         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
497         * sysdeps/unix/i386/dl-brk.S: New file.
498         * sysdeps/unix/mips/dl-brk.S: New file.
499         * sysdeps/unix/sparc/dl-brk.S: New file.
500         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
501         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
502         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
503         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
505 2002-04-03  Andreas Schwab  <schwab@suse.de>
507         * Makefile (headers): Add gnu/lib-names.h here instead of
508         install-others.
509         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
510         installation rule.
511         (install-headers): Add dependency on install-headers-nosubdir.
512         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
513         instead of install-others.
514         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
515         installation rule.
517 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
519         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
520         Reported by Sam Roberts <sroberts@uniserve.com>.
522 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
524         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
525         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
526         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
527         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
529 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
531         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
532         (RTLD_START): Ditto.
533         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
534         dependency violation.
536 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
538         * time/mktime.c (__mktime_internal): Move check for year < 70 below
539         all variable declarations.
541 2002-04-04  Andreas Schwab  <schwab@suse.de>
543         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
545 2002-04-04  Andreas Jaeger  <aj@suse.de>
547         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
548         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
550         * sysdeps/x86_64/fpu/s_fabs.c: New file.
551         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
552         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
554         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
556         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
558         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
559         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
561         * configure.in: Handle all mips entries the same.
563         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
564         * sysdeps/mips/mips3/*: Likewise.
565         * sysdeps/mips/p40/bits/endian.h: Likewise.
567 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
569         * misc/dirname.c (dirname): Ignore trailing slashes at end of
570         non-null result [PR libc/2600].
572         * misc/tst-dirname.c: Add more tests.
574 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
576         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
577         define a code_set_name provide one based on the filename.
579         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
581 2001-12-28  Andreas Jaeger  <aj@suse.de>
583         * time/mktime.c (__mktime_internal): Check for year < 70
584         [PR libc/2738].
586 2002-04-03  Andreas Jaeger  <aj@suse.de>
588         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
589         shmat.
590         Reported by Andi Kleen <ak@suse.de>.
592 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
594         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
595         * sysdeps/generic/w_lgammaf.c: Likewise.
596         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
598         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
599         Adjust for new output format of the backtrace functions.
601         * misc/syslog.c (vsyslog): Only use cleanup handler if
602         _LIBC_REENTRANT is defined [PR libc/2924].
604         * libio/Makefile (tests): Add bug-ungetwc2.
605         * libio/bug-ungetwc2.c: New file.
607         * manual/install.texi: Typographical and grammatical cleanup.
608         Patch by Dennis Grace <dgrace@us.ibm.com>.
610         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
611         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
613         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
614         always "&".  Adjust callers.
615         Add "_" prefix to several generated definitions.
616         Patch by paul@serice.net [PR libc/3158].
618 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
620         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
621         size of _dl_arm_cap_flags.
622         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
624         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
625         Define as 8.
627 2002-03-22  H.J. Lu  <hjl@gnu.org>
629         * scripts/firstversions.awk: Check the first version.
631 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
633         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
634         dependencies must be stable to work correctly.
635         Reported by martin.lubich@datacon.at.
637         * libio/bug-ungetwc1.c: New file.
638         * libio/Makefile (tests): Add bug-ungetwc1.
640         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
641         if stream was last used for writing.
643         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
644         number [PR libc/3111].
646         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
647         to ...
648         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
650 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
652         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
653         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
654         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
655         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
656         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
658 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
660         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
661         dynamic tags.
663 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
665         * sysdeps/i386/fpu/s_fabs.S: New file.
666         * sysdeps/i386/fpu/s_fabsf.S: New file.
667         * sysdeps/i386/fpu/s_fabsl.S: New file.
668         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
669         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
670         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
672 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
674         * rt/tst-shm.c (do_test): Add one more test for size of shared
675         memory object.
677 2002-03-29  Wolfram Gloger  <wg@malloc.de>
679         * malloc/malloc.c: Add short description and prototypes for
680         malloc_get_state, malloc_set_state and posix_memalign, for
681         consistency and to avoid warnings with -Wstrict-prototypes.
682         Reported by Andreas Jaeger <aj@suse.de>.
684 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
686         * po/gl.po: Update from translation team.
688 2002-03-31  Roland McGrath  <roland@frob.com>
690         * hurd/hurdselect.c (_hurd_select): Fix
691         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
692         Use a union rather than casts to compare mach_msg_type_t as int.
694 2002-03-25  Roland McGrath  <roland@frob.com>
696         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
697         check off the end of NAME when it's shorter than 2 chars.
698         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
700 2002-03-17  Roland McGrath  <roland@frob.com>
702         * sysdeps/mach/hurd/i386/sys/io.h: New file.
703         * sysdeps/mach/hurd/i386/ioperm.c: New file.
704         * sysdeps/mach/hurd/i386/Dist: Add them.
705         * sysdeps/mach/hurd/i386/Versions
706         (libc: GLIBC_2.2.6): New set, add ioperm.
707         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
708         (mach_interface_list): Check for mach_i386.defs.
709         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
710         * sysdeps/mach/configure: Regenerated.
712 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
714         * po/fr.po: Update from translation team.
716 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
718         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
719         getpriority from syscalls list.
721 2002-03-28  Andreas Jaeger  <aj@suse.de>
723         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
724         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
725         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
726         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
728 2002-03-27  Andreas Jaeger  <aj@suse.de>
730         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
731         sigcontext): Follow further kernel change.
733         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
734         kernel change.
736         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
737         Change for struct sigcontext change.
739         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
740         Follow changes in struct sigcontext.
742         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
743         sysycall, use wrapper instead.
745 2002-03-26  Andreas Jaeger  <aj@suse.de>
747         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
748         read and write accesses as detailed as possible.
749         (__memcpy_by2): Likewise.
750         (__memcpy_g): Likewise.
751         (memmove): Likewise.
752         (memcmp): Likewise.
753         (__memset_ccn_by4): Likewise.
754         (__memset_ccn_by2): Likewise.
755         (__memset_gcn_by4): Likewise.
756         (__memset_gcn_by2): Likewise.
757         (memchr): Likewise.
758         (__memrchr): Likewise.
759         (rawmemchr): Likewise.
760         (__strlen_g): Likewise.
761         (__strcpy_g): Likewise.
762         (__mempcpy_by4): Likewise.
763         (__mempcpy_by2): Likewise.
764         (__mempcpy_byn): Likewise.
765         (__stpcpy_g): Likewise.
766         (__strncpy_by4): Likewise.
767         (__strncpy_by2): Likewise.
768         (__strncpy_byn): Likewise.
769         (__strncpy_gg): Likewise.
770         (__strcat_c): Likewise.
771         (__strcat_g): Likewise.
772         (__strncat_g): Likewise.
773         (__strcmp_gg): Likewise.
774         (__strncmp_g): Likewise.
775         (__strchr_c): Likewise.
776         (__strchr_g): Likewise.
777         (__strchrnul_c): Likewise.
778         (__strchrnul_g): Likewise.
779         (__strrchr_c): Likewise.
780         (__strrchr_g): Likewise.
781         (__strrchr_c): Likewise.
782         (__strrchr_g): Likewise.
783         (__strcspn_c1): Likewise.
784         (__strcspn_cg): Likewise.
785         (__strcspn_g): Likewise.
786         (__strcspn_g): Likewise.
787         (__strspn_c1): Likewise.
788         (__strspn_cg): Likewise.
789         (__strspn_g): Likewise.
790         (__strspn_g): Likewise.
791         (__strpbrk_cg): Likewise.
792         (__strpbrk_g): Likewise.
793         (__strstr_cg): Likewise.
794         (__strstr_g): Likewise.
796         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
797         Michal Ludvig <mludvig@suse.cz>.
799         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
800         compatibilty, adjust for kernel changes.
802         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
803         sigcontext): Adjust for kernel changes.
805 2002-03-25  Andreas Jaeger  <aj@suse.de>
807         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
808         little endian.
809         Reported by Artur Zaprzala <zybi@talex.com.pl>.
811 2002-03-24  Andreas Jaeger  <aj@suse.de>
813         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
815         * stdio-common/tst-fdopen.c (main): Remove unused variable.
817         * iconv/tst-iconv3.c (main): Use correct printf strings.
819 2002-03-18  Roland McGrath  <roland@frob.com>
821         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
822         (CMGROUP_MAX): New macro.
824 2002-03-23  Roland McGrath  <roland@frob.com>
826         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
827         * sysdeps/posix/shm_unlink.c: Likewise.
829 2002-03-22  Roland McGrath  <roland@frob.com>
831         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
832         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
833         under --enable-libio.
834         * sysdeps/mach/hurd/configure: Regenerated.
836 2002-03-23  Roland McGrath  <roland@frob.com>
838         * sysdeps/mach/hurd/i386/Makefile
839         (sysdep_routines, shared-only-routines): Don't add framestate,
840         reverting 2001-10-02 change.
841         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
842         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
843         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
844         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
845         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
846         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
847         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
848         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
849         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
850         Do it here instead, only if [$(unwind-find-fde) = yes].
852 2002-03-23  Andreas Jaeger  <aj@suse.de>
854         * signal/signal.h: Fix typo. Patch by Steve Kemp
855         <skx@tardis.ed.ac.uk>.
857 2002-03-22  Andreas Jaeger  <aj@suse.de>
859         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
860         getresuid.
862         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
863         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
864         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
865         user_fpregs_struct): Rename fwd.
867         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
868         Follow sigcontext changes.
870 2002-03-22  Andreas Jaeger  <aj@suse.de>
872         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
873         changes for NaNs on MIPS.
874         Patch by Hartvig Ekner <hartvige@mips.com>.
876 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
878         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
879         Use realloc if too large.
880         (addgrbyid): Likewise.
881         * nscd/hstcache.c (addhstbyname): Likewise.
882         (addhstbyaddr): Likewise.
883         (addhstbynamev6): Likewise.
884         (addhstbyaddrv6): Likewise.
885         * nscd/pwdcache.c (addpwbyname): Likewise.
886         (addpwbyuid): Likewise.
888 2002-03-21  Andreas Jaeger  <aj@suse.de>
890         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
891         _fpstate): Add separate struct for x86-64.
893         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
894         user_fpregs_struct): Change member names to follow kernel.
896 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
898         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
899         Correctly close the UDP connection right away [PR libc/3120].
901 2002-03-20  Andreas Jaeger  <aj@suse.de>
903         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
904         user_fpregs_struct): Fix for changed kernel struct.
905         (struct user_regs_struct): Likewise.
906         (struct user): Likewise.
907         Add 32-bit x86 compatibility.
909         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
911 2002-03-19  Andreas Jaeger  <aj@suse.de>
913         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
915 2002-03-18  Andreas Jaeger  <aj@suse.de>
917         * iconvdata/Makefile: Only run tests when shared libs are
918         available.
920 2002-03-17  Andreas Jaeger  <aj@suse.de>
922         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
924         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
926         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
927         bits.
929         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
930         (CAUSE_SHIFT): New.
931         Patch by Hartvig Ekner <hartvige@mips.com>.
933         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
934         * sysdeps/generic/unwind-pe.h: Likewise.
936         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
937         type to _IO_setb.
939         * libio/stdio.c (AL2): Define variant when visibility attribute is
940         not supported.
942         * include/libc-symbols.h (_INTVARDEF): Define variant when
943         visibility attribute is not supported.
945 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
947         * po/fr.po: Update from translation team.
949 2002-02-25  Bruno Haible  <bruno@clisp.org>
951         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
953 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
955         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
956         buffers if _IO_file_attach failed.
958         * libio/fileops.c (_IO_file_open): Close file descriptor if
959         _IO_SEEKOFF call failed.
961 2002-03-15  H.J. Lu  <hjl@gnu.org>
962             Ulrich Drepper  <drepper@redhat.com>
964         * configure.in: Check for availability of
965         init_array/fini_array/preinit_array handling in binutils.
966         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
967         * config.make.in (have-initfini-array): New variable.
969 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
971         * stdio-common/tst-printf.c (main): Comment out one test which
972         checked the compiler's ability to fold floating-point constants
973         but not really printf.
974         (rfg3): Make s const.
975         * stdio-common/tst-printf.sh: Adjust for removed test.
977         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
978         internal function.  Adjust for internal_function calling convention.
979         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
980         as internal_function.
982         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
983         hidden.
985         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
986         declaration and definition.
987         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
988         declaration.
989         * nss/getXXent_r.c: Likewise.
990         * nss/nsswitch.h (db_lookup_function): Add internal_function to
991         definition.
993         * include/time.h: Declare __localtime_r as hidden.
995         * include/aliases.h: Declare __getaliasent_r as hidden.
996         * include/grp.h: Declare __getgrent_r as hidden.
997         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
998         __getservent_r, and __getprotoent_r as hidden.
999         * include/pwd.h: Declare __getpwent_r as hidden.
1000         * include/shadow.h: Declare __getspent_r as hidden.
1001         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
1003         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
1004         and __gconv_transliterate as hidden.
1005         Add internal_function to __gconv_get_path declaration.
1006         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
1007         definition.  Add attribute_hidden to __gconv_read_conf definition.
1009 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
1011         * elf/rtld.c: Declare _environ as hidden.
1012         * sysdeps/generic/dl-environ.c: Likewise.
1013         * sysdeps/generic/dl-sysdep.c: Likewise.
1015         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
1016         _dl_mcount_internal as hidden.
1018         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
1019         * sysdeps/generic/dl-brk.c: New file.
1020         * sysdeps/generic/dl-sbrk.c: New file.
1021         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
1022         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
1024         * elf/dl-minimal.c (malloc): Declare _end as hidden.
1025         (__errno_location): New function.  Declare errno as hidden.
1026         * elf/rtld.c (_dl_argc): Define as hidden.
1027         (_dl_skip_args): Define as hidden.
1028         (_begin, _end): Declare as hidden.
1029         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
1030         * sysdeps/generic/entry.h (_start): Declare as hidden.
1031         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
1032         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
1033         _dl_runtime_resolve and _dl_runtime_profile as hidden.
1034         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
1036 2002-03-14  Roland McGrath  <roland@frob.com>
1038         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
1040         * Makeconfig (%.v.i, %.v): New implicit rules.
1041         (preprocess-versions): Variable removed.
1042         ($(common-objpfx)shlib-versions.v.i): New target giving just the
1043         shlib-versions input files as dependencies.
1044         ($(common-objpfx)soversions.i): Depend on that instead of the input
1045         files.  Use it as input instead of using a pipeline.
1046         (postclean-generated): Append soversions.i, shlib-versions.v, and
1047         shlib-versions.v.i here.
1048         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
1049         the Versions.def input files as dependencies.
1050         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
1051         ($(common-objpfx)Versions.all): Depend on that instead of the input
1052         files.  Use it as input instead of using a pipeline.
1053         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
1054         (postclean-generated): Append those .v and .v.i files here.
1056 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
1058         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
1059         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
1060         Remove.
1062 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
1064         * sysdeps/generic/mp_clz_tab.c: New file.
1065         * sysdeps/i386/mp_clz_tab.c: New file.
1066         * sysdeps/hppa/mp_clz_tab.c: New file.
1067         * sysdeps/powerpc/mp_clz_tab.c: New file.
1068         * stdlib/Makefile (aux): Revert last patch.
1069         * math/Makefile (gmp-objs): Likewise.
1071 2002-03-13  Paul Eggert  <eggert@twinsun.com>
1073         * time/strftime.c: Comment fixes for references to obsolescent
1074         standards, In most cases the simplest fix is to remove the
1075         confusing comments.  Cross-referencing all the standards properly
1076         is a bit of a pain, and it should be enough to put that info in
1077         the documentation as I did in my recent time.texi patch.
1079 2002-03-13  Paul Eggert  <eggert@twinsun.com>
1081         * manual/time.texi (Formatting Calendar Time):
1082         ISO C99 also specifies the E and O modifiers.
1083         %P is a GNU extension, and is not in ISO C99.
1084         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
1085         %T is also in ISO C99.
1086         The RFC 822 example is not valid in arbitrary locales.
1087         Reword the POSIX.2 wording slightly, to make it a bit clearer
1088         that POSIX.2 formats are also supported by later POSIX versions.
1089         If a format was introduced in ISO C99 it is also required by
1090         POSIX.1-2001.
1092 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
1094         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
1095         _sys_nerr_internal with INTVARDEF2.
1096         * include/libc-symbols.h (INTVARDEF2): New macro.
1097         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
1098         (_sys_nerr_internal): Library.
1100         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
1101         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
1103         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
1105 2002-03-13  Wolfram Gloger  <wg@malloc.de>
1107         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
1109 2002-03-02  Andreas Schwab  <schwab@suse.de>
1111         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
1112         'h' flag and positional arg.
1113         * stdio-common/tst-printf.c (rfg3): New function to test
1114         positional arguments.
1115         (main): Fix some warnings.
1117 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
1119         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
1120         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
1122 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
1124         * grp/initgroups.c (__nss_group_data): Declare as hidden.
1126         * include/locale.h (_nl_C_locobj): Declare as hidden.
1128         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
1129         * time/strptime.c (_nl_C_LC_TIME): Likewise.
1131         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
1133         * include/sys/gmon.h: Declare _gmonparam as hidden.
1135         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
1136         (__ctype32_wctrans): Likewise.
1137         (__ctype32_width): Likewise.
1139         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
1140         use of __ttyname.
1142         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
1143         Define as hidden.
1144         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
1145         hidden.  Change all users of these variables.
1147         * posix/regex_internal.h (__re_error_msgid): Renamed from
1148         re_error_msgid.  Declare as hidden.
1149         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
1150         hidden.
1152         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
1153         (__printf_function_table): Likewise.
1154         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
1155         hidden.
1156         (__printf_function_table): Likewise.
1158         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
1159         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
1161         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
1162         * nss/nsswitch.c: Declare _nss_*_database as hidden.
1164         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
1165         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
1167 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
1169         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
1170         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
1171         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
1172         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
1173         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
1174         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
1175         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
1176         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
1177         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
1178         _nl_C_LC_CTYPE_width: Declare as hidden.
1179         * include/locale.h: Declare _nl_locale_file_list.
1180         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
1181         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
1182         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
1183         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
1184         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
1185         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
1186         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
1187         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
1188         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
1189         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
1190         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
1191         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
1192         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
1193         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
1194         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
1195         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
1196         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
1197         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
1198         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
1199         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
1200         _nl_C_LC_CTYPE_width, and as hidden.
1201         * locale/findlocale.c: Declare _nl_C as hidden.
1202         * locale/newlocale.c: Likewise.
1203         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
1204         _nl_locale_file_list.
1205         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
1206         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
1207         Define _nl_C_locobj as hidden.
1209         * malloc/mtrace.c (_mtrace_file): Define as hidden.
1210         (_mtrace_line): Likewise.
1212         * include/time.h: Declare __mon_yday as hidden.
1213         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
1215         * libio/libioP.h: Declare __libio_codecvt as hidden.
1216         * libio/fileops.c: Declare __libio_translit as hidden.
1217         * libio/iofwide.c: Define __libio_translit as hidden.
1219         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
1220         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
1221         * login/getutline_r.c: Likewise.
1222         * login/utmpname.c: Likewise.
1224         * login/utmp-private.h: Declare __libc_utmp_file_functions,
1225         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
1226         __libc_utmp_file_name as hidden.
1228         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
1229         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
1230         * locale/freelocale.c: Likewise.
1231         * locale/lc-time.c: Likewise.
1233         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
1234         (__libc_ptyname2): Likewise.
1235         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
1236         hidden.
1237         (__libc_ptyname2): Likewise.
1239         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
1240         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
1241         * sysdeps/generic/init-first.c: Likewise.
1242         * sysdeps/i386/init-first.c: Likewise.
1243         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
1244         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1245         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1246         * sysdeps/sh/init-first.c: Likewise.
1247         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
1248         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
1250         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
1251         (_itowa_upper_digits): Likewise.
1253         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
1254         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
1255         as hidden.
1257         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
1258         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
1259         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
1260         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
1262         * gmon/gmon.c (__bb_head): Define as hidden.
1263         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
1265         * argp/argp-parse.c (_argp_hang): Define as static.
1267         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
1268         handling in latest compilers.
1270         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
1271         define alias.
1272         * libio/fileops.c (_IO_file_jumps): Likewise.
1273         * libio/stdfiles.c (_IO_list_all): Likewise.
1274         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
1276         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
1277         include/malloc.h.
1278         * include/malloc.h: Add __libc_malloc_initialized declaration
1279         here.  Mark variable hidden.
1280         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
1282         * elf/dl-open.c (__libc_argc): Declare as hidden.
1283         (__libc_argv): Likewise.
1284         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
1285         (__libc_argv): Likewise.
1286         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
1287         __libc_argv as hidden.
1288         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1289         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1290         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
1291         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
1293         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
1294         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
1295         * stdlib/erand48.c: Likewise.
1296         * stdlib/jrand48.c: Likewise.
1297         * stdlib/lcong48.c: Likewise.
1298         * stdlib/lrand48.c: Likewise.
1299         * stdlib/mrand48.c: Likewise.
1300         * stdlib/nrand48.c: Likewise.
1301         * stdlib/seed48.c: Likewise.
1302         * stdlib/srand48.c: Likewise.
1304         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
1305         (_itoa_lower_digits_internal): New declaration.
1306         (_itoa_upper_digits_internal): New declaration.
1307         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
1308         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
1309         (_itoa_upper_digits_internal): New declaration.
1310         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
1311         _itoa_lower_digits.
1312         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
1313         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
1315         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
1316         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
1318         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
1319         (_itowa_lower_digits): Likewise.
1320         (_itowa_upper_digits): Likewise.
1321         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
1322         (_itowa_upper_digits): Likewise.
1324         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
1325         not already defined.
1326         (GERMANIC_PLURAL): Declare as hidden.
1328         * posix/getopt.c (__getopt_initialized): Declare as hidden.
1329         (attribute_hidden): Define as empty macro if not already defined.
1331         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
1332         (__gconv_max_path_elem_len): Likewise.
1333         (__gconv_path_envvar): Likewise.
1335         * math/Makefile (gmp-objs): Remove mp_clz_tab.
1336         * stdlib/Makefile (aux): Remove mp_clz_tab.
1337         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
1339         * stdlib/exit.h (__exit_funcs): Declare as hidden.
1341         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
1343         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
1344         _nl_category_names, _nl_category_name_sizes, _nl_current,
1345         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
1347         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
1348         (_nl_current_default_domain): Likewise
1349         (_nl_state_lock): Likewise.
1350         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
1351         (_nl_current_default_domain): Likewise
1352         (_nl_state_lock): Likewise.
1353         * intl/bindtextdom.c (_nl_state_lock): Likewise.
1355         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
1356         (_fpioconst_pow10): Likewise.
1358         * include/time.h (_tmbuf): Add attribute_hidden.
1360         * time/tzset.c (tzstring_list): Define as static.
1362         * include/time.h: Add attribute_hidden to __tzname_cur_max and
1363         __use_tzfile declaration.
1365         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
1366         and __wcsmbs_last_locale declaration.
1368 2002-02-25  Paul Eggert  <eggert@twinsun.com>
1370         * timezone/Makefile (tzbases): Move systemv from here...
1371         (tzlinks): to here, since the entries in systemv were all changed
1372         from Zone to Link lines in tz-2001a.  Bug reported (and patch
1373         tested) by Peter Breitenlohner.
1375 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
1377         * time/tst-posixtz.c (tests): Add new tests.
1378         (main): Test whether tzset() sets daylight properly.
1380 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
1382         * time/tzset.c (tz_compute): Move __daylight, __tzname and
1383         __tzname_cur_max setting...
1384         (tzset_internal): ...here.
1386 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
1388         * time/tzset.c (compute_change): Don't return any value.
1389         (tz_compute): Likewise.  Don't handle southern hemisphere here.
1390         (__tz_convert): But here.
1392 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
1394         * manual/examples/mkfsock.c: Include <string.h> as well.
1395         Patch by Alain De Carolis <alaind@wseurope.com>.
1397 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
1399         * posix/regexec.c (re_match): Fix incorrect register sizes.
1400         (re_search): Likewise.
1402 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
1404         * posix/regcomp.c (regfree): Remove a disused condition.
1405         * posix/regex_internal.c (re_acquire_state): Likewise.
1406         (re_acquire_state_context): Likewise.
1407         (register_state): Remove a redundant malloc invocation.
1408         * posix/regex_internal.h: (re_state_table_entry): Simplify
1409         the structure.
1411 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
1413         * posix/regcomp.c (regcomp): Add __builtin_expect to error
1414         handling conditions.
1415         (regerror): Likewise.
1416         (regfree): Likewise.
1417         (re_compile_internal): Likewise.
1418         (init_dfa): Likewise.
1419         (init_word_char): Likewise.
1420         (create_initial_state): Likewise.
1421         (analyze): Likewise.
1422         (analyze_tree): Likewise.
1423         (duplicate_node): Likewise.
1424         (calc_eclosure): Likewise.
1425         (calc_eclosure_iter): Likewise.
1426         (parse): Likewise.
1427         (parse_reg_exp): Likewise.
1428         (parse_branch): Likewise.
1429         (parse_expression): Likewise.
1430         (parse_subexp): Likewise.
1431         (parse_dup_op): Likewise.
1432         (parse_bracket_exp): Likewise.
1433         (build_equiv_class): Likewise.
1434         (build_charclass): Likewise.
1435         (build_word_op): Likewise.
1436         (fetch_number): Likewise.
1437         (create_tree): Likewise.
1438         (duplicate_tree): Likewise.
1439         * posix/regex.c (BE): New macro.
1440         * posix/regexec.c (re_match): Add __builtin_expect to error
1441         handling conditions.
1442         (re_match_2): Likewise.
1443         (re_search): Likewise.
1444         (re_search_internal): Likewise.
1445         (check_matching): Likewise.
1446         (proceed_next_node): Likewise.
1447         (set_regs): Likewise.
1448         (sift_states_backward): Likewise.
1449         (add_epsilon_backreference): Likewise.
1450         (transit_state): Likewise.
1451         (transit_state_sb): Likewise.
1452         (transit_state_mb): Likewise.
1453         (transit_state_bkref): Likewise.
1454         (transit_state_bkref_loop): Likewise.
1455         (build_trtable): Likewise.
1456         (group_nodes_into_DFAstates): Likewise.
1457         (match_ctx_init): Likewise.
1458         (match_ctx_add_entry): Likewise.
1459         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
1460         to error handling conditions.
1461         (re_string_construct_toupper): Likewise.
1462         (build_wcs_buffer): Likewise.
1463         (build_wcs_upper_buffer): Likewise.
1464         (build_upper_buffer): Likewise.
1465         (re_string_translate_buffer): Likewise.
1466         (re_node_set_alloc): Likewise.
1467         (re_node_set_init_1): Likewise.
1468         (re_node_set_init_2): Likewise.
1469         (re_node_set_init_copy): Likewise.
1470         (re_node_set_intersect): Likewise.
1471         (re_node_set_init_union): Likewise.
1472         (re_node_set_merge): Likewise.
1473         (re_node_set_insert): Likewise.
1474         (re_dfa_add_node): Likewise.
1475         (re_acquire_state): Likewise.
1476         (re_acquire_state_context): Likewise.
1477         (create_new_state_common): Likewise.
1478         (register_state): Likewise.
1479         (create_ci_new_state): Likewise.
1480         (create_cd_new_state): Likewise.
1481         (re_string_context_at): Remove redundant condition.
1483 2002-01-16  Roger Sayle  <roger@eyesopen.com>
1485         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
1487         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
1489 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
1491         * sysdeps/i386/elf/configure.in: Fix comment.
1493         * sysdeps/sparc/sparc64/configure.in: New.
1494         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
1495         if .dynamic comes before .got.
1496         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
1498         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
1499         HP_TIMING_ACCUM): Fix typos.
1501 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
1503         * string/strfry.c: Add some more randomness to the seed.
1504         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
1506         * po/es.po: Update from translation team.
1507         * po/fr.po: Likewise.
1509         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
1511         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
1512         when determining type of format.
1513         Patch by James Antill <james@anqd.org> [PR libc/2787].
1515 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
1517         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
1519 2002-03-11  Roland McGrath  <roland@frob.com>
1521         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
1523         * Versions.def (libc): Add GLIBC_2.2.6.
1524         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
1525         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
1526         __errno_location instead of __hurd_errno_location, and don't inline it.
1527         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1528         * hurd/errno.c: New file.
1529         * hurd/Makefile (routines): Add errno.
1531 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
1533         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
1534         ridiculously large widths and precisions [PR libc/3026].
1536 2002-03-11  Andreas Jaeger  <aj@suse.de>
1538         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
1539         support.
1540         Patch by Susanne Oberhauser <froh@SuSE.de>.
1542 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
1544         * inet/rexec.c (ahostbuf): Define as static.
1546         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
1547         (__ctype32_wctrans): Likewise.
1548         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
1549         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
1550         (__ctype32_wctrans): Likewise.
1551         (__ctype32_width): Likewise.
1553         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
1554         They were never exported anyway.
1556         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
1557         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
1558         exported.
1559         * include/sys/gmon.h: Declare _gmonparam.
1561         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
1562         symbols for getdents64.  They were never exported.
1564 2002-03-09  Roland McGrath  <roland@frob.com>
1566         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
1567         Reported by Jon Arney <jarney1@cox.net>.
1569 2002-02-23  Roland McGrath  <roland@frob.com>
1571         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
1572         declaration.
1573         (__hurd_errno_location): Function removed.
1575 2002-03-06  Andreas Jaeger  <aj@suse.de>
1577         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
1578         32-bit.
1580 2002-03-04  Andreas Jaeger  <aj@suse.de>
1582         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
1584         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
1585         x86-64.
1587         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
1589         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
1591         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
1593         * sysdeps/x86_64/bits/setjmp.h: New.
1595         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
1597         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
1599         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
1600         for x86.
1601         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
1602         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
1604 2002-02-28  Bo Thorsen  <bo@suse.de>
1606         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
1607         version.
1609 2002-03-03  Andreas Jaeger  <aj@suse.de>
1611         * sysdeps/x86_64/bits/wordsize.h: New file.
1613         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
1614         * elf/tst-tlsmod1.c: Likewise.
1616         * posix/regcomp.c: Get regex.h from include dir for internal
1617         prototypes.
1619         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
1620         to libc-internal.h and include it.
1621         * include/libc-internal.h: Add __init_misc.
1623         * misc/init-misc.c: Include libc-internal.h for prototypes.
1625         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
1627         * misc/error.c [_LIBC]: Include libioP.h for prototype of
1628         _IO_putc_internal.
1630 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
1632         * posix/regcomp.c: Compatibility changes to allow using the code
1633         outside glibc.
1635 2002-02-28  Hartvig Ekner <hartvige@mips.com>
1637         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
1638         compiled non-PIC.
1640 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
1642         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
1643         of .str elements in the returned data structure.
1645         * elf/elf.h: Add Alpha TLS bits.
1647 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
1649         * sysdeps/unix/sysv/linux/nice.c: New file.
1651 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
1653         * elf/Makefile (dl-routines): Add dl-origin.
1654         (elide-routines.os): Add dl-origin.
1655         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
1656         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
1657         _dl_debug_state.
1658         * include/libc-symbols.c: Define attribute_hidden depending on
1659         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
1661         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
1662         * elf/dl-load.c: Likewise.
1663         * elf/rtld.c: Likewise.
1664         * include/unistd.h: Declare __libc_enable_secure_internal.
1665         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
1666         Use INTUSE with __libc_enable_secure.
1667         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
1669         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
1670         * elf/dl-error.c: Likewise,
1671         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
1673         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
1674         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
1675         function definition.  Use INTDEF with _dl_get_origin.
1676         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
1678         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
1679         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
1681         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
1682         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
1683         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
1685         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
1686         * elf/dl-deps.c: Likewise.
1687         * elf/dl-error.c: Likewise.
1688         * elf/dl-fini.c: Likewise.
1689         * elf/dl-init.c: Likewise.
1690         * elf/dl-load.c: Likewise.
1691         * elf/dl-lookup.c: Likewise.
1692         * elf/dl-reloc.c: Likewise.
1693         * elf/dl-version.c: Likewise.
1694         * elf/do-lookup.h: Likewise.
1695         * sysdeps/arm/dl-machine.h: Likewise.
1696         * sysdeps/cris/dl-machine.h: Likewise.
1697         * sysdeps/hppa/dl-machine.h: Likewise.
1698         * sysdeps/i386/dl-machine.h: Likewise.
1699         * sysdeps/m68k/dl-machine.h: Likewise.
1700         * sysdeps/powerpc/dl-machine.h: Likewise.
1701         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1702         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1703         * sysdeps/sh/dl-machine.h: Likewise.
1704         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
1705         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
1706         * sysdeps/x86_64/dl-machine.h: Likewise.
1707         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
1708         _dl_argv[0].  Use INTUSE with _dl_argv.
1709         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
1710         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
1712 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
1714         * elf/rtld.c (_rtld_global): Remove .protected.
1715         (_rtld_local): Strong alias to _rtld_global.
1716         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
1717         only .os object.
1718         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
1719         _rtld_local instead of _rtld_global.
1720         (_rtld_local): Add hidden extern, possibly in .sdata section.
1721         * configure.in: Add tests for visibility attribute and .sdata.
1722         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
1723         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
1724         * sysdeps/arm/dl-machine.h: Likewise.
1725         * sysdeps/generic/ldsodefs.h: Likewise.
1726         * sysdeps/hppa/dl-machine.h: Likewise.
1727         * sysdeps/cris/dl-machine.h: Likewise.
1728         * sysdeps/i386/dl-machine.h: Likewise.
1729         * sysdeps/ia64/dl-machine.h: Likewise.
1730         * sysdeps/m68k/dl-machine.h: Likewise.
1731         * sysdeps/mips/mips64/dl-machine.h: Likewise.
1732         * sysdeps/mips/dl-machine.h: Likewise.
1733         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1734         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
1735         * sysdeps/sh/dl-machine.h: Likewise.
1736         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1737         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1738         * sysdeps/x86_64/dl-machine.h: Likewise.
1740 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
1742         * login/login.c (login): Always initialize ut_line field
1743         [PR libc/2991].
1745 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
1747         * sysdeps/i386/Makefile (sysdep_routines): Add
1748         divdi3 in csu dir.
1749         (shared-only-routines): Likewise.
1750         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
1751         (shared-only-routines): Likewise.
1752         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
1753         (shared-only-routines): Likewise.
1754         * sysdeps/wordsize-32/divdi3.c: New file.
1756 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
1758         * locale/iso-4217.def: Remove obsolete currencies for countries
1759         with Euro.
1761 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
1763         * posix/regcomp.c (regcomp): Remove a redundant condition.
1764         (init_word_char): Add a check on malloc failure.
1765         (create_initial_state): Likewise.
1766         (duplicate_node): Likewise.
1767         (calc_eclosure): Likewise.
1768         (calc_eclosure_iter): Likewise.
1769         (parse_expression): Likewise.
1770         (parse_bracket_exp): Remove unnecessary malloc invocations.
1771         (build_equiv_class): Likewise.
1772         (build_charclass): Likewise.
1773         * posix/regex_internal.c (re_node_set_intersect): Add a check
1774         on malloc failure.
1775         (re_node_set_add_intersect): Likewise.
1776         (re_node_set_merge): Likewise.
1777         (re_acquire_state): Likewise.
1778         (re_acquire_state_context): Likewise.
1779         (create_newstate_common): Likewise.
1780         (register_state): Likewise.
1781         (create_ci_newstate): Likewise.
1782         (create_cd_newstate): Likewise.
1783         * posix/regex_internal.h: Fix prototypes of re_acquire_state
1784         and re_acquire_state_context.
1785         * posix/regexec.c (regexec): Suit it to the error handling of
1786         re_search_internal.
1787         (re_match): Likewise.
1788         (re_search): Likewise.
1789         (re_search_internal): Add a check on malloc failure.
1790         (acquire_init_state_context): Likewise.
1791         (check_matching): Likewise.
1792         (proceed_next_node): Likewise.
1793         (set_regs): Likewise.
1794         (sift_states_backward): Likewise.
1795         (sift_states_iter_bkref): Likewise.
1796         (add_epsilon_backreference): Likewise.
1797         (transit_state): Likewise.
1798         (transit_state_sb): Likewise.
1799         (transit_state_mb): Likewise.
1800         (transit_state_bkref_loop): Likewise.
1801         (build_trtable): Likewise.
1802         (group_nodes_into_DFAstates): Likewise.
1803         (match_ctx_init): Likewise.
1804         (match_ctx_add_entry): Likewise.
1806 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
1808         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
1809         l_libname if profiling is enabled [PR libc/2916].
1811         * sysdeps/ia64/dl-tls.h: New file.
1813 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
1815         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
1816         Work around an Alpha gas bug.
1818 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
1820         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
1821         uses read to load the catalog.
1822         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
1824 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
1826         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
1827         regex_internal.c, and regex_internal.h.
1828         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
1829         * posix/regex.c: Complete rewrite.
1830         * posix/regexec.c: New file.
1831         * posix/regcomp.c: New file.
1832         * posix/regex_internal.c: New file.
1833         * posix/regex_internal.h: New file.
1834         * posix/regex.h (RE_ICASE): New macro.
1835         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
1837         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
1838         ungetwc.  It's a macro.
1839         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
1840         implementation.
1841         Reported by Jason Merrill <jason@redhat.com>.
1843 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
1845         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
1846         position to fp->_offset if it is set.
1847         * stdio-common/Makefile (tests): Add tst-fdopen.
1848         * stdio-common/tst-fdopen.c: New test.
1850 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
1852         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
1853         * stdio-common/tst-ungetc.c (main): Add another test.
1855 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
1857         * assert/assert-perr.c: Use INTUSE to reference functions and variables
1858         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
1859         aliases.  Add prototypes for the new aliases.
1860         * assert/assert.c: Likewise.
1861         * include/libc-symbols.h: Likewise.
1862         * include/stdio.h: Likewise.
1863         * include/netinet/in.h: Likewise.
1864         * include/rpc/auth.h: Likewise.
1865         * include/rpc/auth_unix.h: Likewise.
1866         * include/rpc/key_prot.h: Likewise.
1867         * include/rpc/pmap_prot.h: Likewise.
1868         * include/rpc/pmap_rmt.h: Likewise.
1869         * include/rpc/rpc_msg.h: Likewise.
1870         * include/rpc/xdr.h: Likewise.
1871         * inet/gethstbyad_r.c: Likewise.
1872         * inet/gethstbynm2_r.c: Likewise.
1873         * inet/gethstbynm_r.c: Likewise.
1874         * inet/gethstent_r.c: Likewise.
1875         * inet/in6_addr.c: Likewise.
1876         * libio/__fpurge.c: Likewise.
1877         * libio/filedoalloc.c: Likewise.
1878         * libio/fileops.c: Likewise.
1879         * libio/ftello.c: Likewise.
1880         * libio/ftello64.c: Likewise.
1881         * libio/genops.c: Likewise.
1882         * libio/iofclose.c: Likewise.
1883         * libio/iofdopen.c: Likewise.
1884         * libio/iofflush.c: Likewise.
1885         * libio/iofflush_u.c: Likewise.
1886         * libio/iofgetpos.c: Likewise.
1887         * libio/iofgetpos64.c: Likewise.
1888         * libio/iofgets.c: Likewise.
1889         * libio/iofgets_u.c: Likewise.
1890         * libio/iofopen.c: Likewise.
1891         * libio/iofopncook.c: Likewise.
1892         * libio/iofputs.c: Likewise.
1893         * libio/iofread.c: Likewise.
1894         * libio/iofread_u.c: Likewise.
1895         * libio/iofsetpos.c: Likewise.
1896         * libio/iofsetpos64.c: Likewise.
1897         * libio/ioftell.c: Likewise.
1898         * libio/iofwrite.c: Likewise.
1899         * libio/iogetline.c: Likewise.
1900         * libio/iogets.c: Likewise.
1901         * libio/iogetwline.c: Likewise.
1902         * libio/iolibio.h: Likewise.
1903         * libio/iopadn.c: Likewise.
1904         * libio/iopopen.c: Likewise.
1905         * libio/ioseekoff.c: Likewise.
1906         * libio/ioseekpos.c: Likewise.
1907         * libio/iosetbuffer.c: Likewise.
1908         * libio/iosetvbuf.c: Likewise.
1909         * libio/ioungetc.c: Likewise.
1910         * libio/ioungetwc.c: Likewise.
1911         * libio/iovdprintf.c: Likewise.
1912         * libio/iovsprintf.c: Likewise.
1913         * libio/iovsscanf.c: Likewise.
1914         * libio/libioP.h: Likewise.
1915         * libio/memstream.c: Likewise.
1916         * libio/obprintf.c: Likewise.
1917         * libio/oldfileops.c: Likewise.
1918         * libio/oldiofclose.c: Likewise.
1919         * libio/oldiofdopen.c: Likewise.
1920         * libio/oldiofgetpos.c: Likewise.
1921         * libio/oldiofgetpos64.c: Likewise.
1922         * libio/oldiofopen.c: Likewise.
1923         * libio/oldiofsetpos.c: Likewise.
1924         * libio/oldiofsetpos64.c: Likewise.
1925         * libio/oldiopopen.c: Likewise.
1926         * libio/oldstdfiles.c: Likewise.
1927         * libio/putc.c: Likewise.
1928         * libio/setbuf.c: Likewise.
1929         * libio/setlinebuf.c: Likewise.
1930         * libio/stdfiles.c: Likewise.
1931         * libio/stdio.c: Likewise.
1932         * libio/strops.c: Likewise.
1933         * libio/vasprintf.c: Likewise.
1934         * libio/vscanf.c: Likewise.
1935         * libio/vsnprintf.c: Likewise.
1936         * libio/vswprintf.c: Likewise.
1937         * libio/wfiledoalloc.c: Likewise.
1938         * libio/wfileops.c: Likewise.
1939         * libio/wgenops.c: Likewise.
1940         * libio/wstrops.c: Likewise.
1941         * malloc/mtrace.c: Likewise.
1942         * misc/error.c: Likewise.
1943         * misc/syslog.c: Likewise.
1944         * nss/getXXbyYY_r.c: Likewise.
1945         * nss/getXXent_r.c: Likewise.
1946         * nss/hosts-lookup.c: Likewise.
1947         * stdio-common/getw.c
1948         * stdio-common/printf-prs.c: Likewise.
1949         * stdio-common/printf_fp.c: Likewise.
1950         * stdio-common/printf_size.c: Likewise.
1951         * stdio-common/putw.c: Likewise.
1952         * stdio-common/scanf.c: Likewise.
1953         * stdio-common/sprintf.c: Likewise.
1954         * stdio-common/tmpfile64.c: Likewise.
1955         * stdio-common/vfprintf.c: Likewise.
1956         * stdio-common/vfscanf.c: Likewise.
1957         * stdlib/strfmon.c: Likewise.
1958         * sunrpc/auth_des.c: Likewise.
1959         * sunrpc/auth_none.c: Likewise.
1960         * sunrpc/auth_unix.c: Likewise.
1961         * sunrpc/authdes_prot.c: Likewise.
1962         * sunrpc/authuxprot.c: Likewise.
1963         * sunrpc/clnt_perr.c: Likewise.
1964         * sunrpc/clnt_raw.c: Likewise.
1965         * sunrpc/clnt_tcp.c: Likewise.
1966         * sunrpc/clnt_udp.c: Likewise.
1967         * sunrpc/clnt_unix.c: Likewise.
1968         * sunrpc/key_call.c: Likewise.
1969         * sunrpc/key_prot.c: Likewise.
1970         * sunrpc/openchild.c: Likewise.
1971         * sunrpc/pm_getmaps.c: Likewise.
1972         * sunrpc/pm_getport.c: Likewise.
1973         * sunrpc/pmap_clnt.c: Likewise.
1974         * sunrpc/pmap_prot.c: Likewise.
1975         * sunrpc/pmap_prot2.c: Likewise.
1976         * sunrpc/pmap_rmt.c: Likewise.
1977         * sunrpc/rpc_cmsg.c: Likewise.
1978         * sunrpc/rpc_prot.c: Likewise.
1979         * sunrpc/svc_authux.c: Likewise.
1980         * sunrpc/svc_raw.c: Likewise.
1981         * sunrpc/svc_simple.c: Likewise.
1982         * sunrpc/svc_tcp.c: Likewise.
1983         * sunrpc/svc_udp.c: Likewise.
1984         * sunrpc/svc_unix.c: Likewise.
1985         * sunrpc/xdr.c: Likewise.
1986         * sunrpc/xdr_array.c: Likewise.
1987         * sunrpc/xdr_mem.c: Likewise.
1988         * sunrpc/xdr_rec.c: Likewise.
1989         * sunrpc/xdr_ref.c: Likewise.
1990         * sunrpc/xdr_stdio.c: Likewise.
1991         * sysdeps/generic/_strerror.c: Likewise.
1992         * sysdeps/generic/printf_fphex.c: Likewise.
1993         * sysdeps/generic/tmpfile.c: Likewise.
1994         * sysdeps/gnu/errlist.awk: Likewise.
1995         * sysdeps/gnu/errlist.c: Likewise.
1997         * libio/Makefile (routines): Remove iosprint.
1998         * libio/iosprintf.c: Removed
2001 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
2003         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
2004         non_dynamic_init and exported now.
2005         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
2006         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
2007         !SHARED.
2008         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
2009         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
2010         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
2012 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
2014         * elf/dl-close.c (free_slotinfo): Check for end of list and return
2015         true in this case.
2017         * locale/iso-639.def: Add language codes for Walloon.
2019         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
2020         total number of relocations performed.
2022         * elf/sprof.c (load_profdata): If do_test provide information as
2023         to why loading failed.
2024         * elf/dl-profile.c (_dl_start_profile): Initialize all of
2025         hist_hdr.dimen.
2027         * csu/set-init.c: Moved to...
2028         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
2029         * csu/Makefile: Don't compile set-init.
2030         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
2031         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
2032         to __libc_init.
2033         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
2034         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
2035         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
2036         __libc_init.
2037         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
2038         __libc_subinit.
2040 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
2042         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
2043         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
2044         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
2045         (_dl_deallocate_tls): New function.
2046         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
2047         _dl_deallocate_tls.
2049 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
2051         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
2052         * stdio-common/tst-fseek.c (main): Add test for this.
2054 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
2056         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
2058 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
2060         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
2061         pointer before dereferencing.
2063 2002-02-18  Roland McGrath  <roland@frob.com>
2065         * sysdeps/mach/hurd/times.c: Fix typo in last change.
2067         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
2068         Use task_policy in place of task_priority.
2070         * sysdeps/generic/bits/mman.h
2071         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
2072         * sysdeps/mach/msync.c: New file.
2074         * sysdeps/mach/powerpc/syscall.S: New file.
2076         * mach/msg.c [MACH_MSG_OVERWRITE]
2077         (__mach_msg_trap, __mach_msg_overwrite): New functions.
2078         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
2080         * sysdeps/mach/configure.in: Check for clock.defs to put into
2081         mach_interface_list.
2082         * sysdeps/mach/configure: Regenerated.
2084         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
2085         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
2086         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
2087         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
2088         (mach-shortcuts): Add device_read_overwrite_request,
2089         device_read_overwrite, vm_read_overwrite, thread_switch.
2091         * configure.in (base_machine): Set to $machine by default.
2092         * configure: Regenerated.
2094         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
2095         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
2096         * sysdeps/mach/configure: Regenerated.
2097         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
2099         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
2101         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
2103         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
2104         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
2106 2002-02-17  Roland McGrath  <roland@frob.com>
2108         * sysdeps/mach/hurd/times.c
2109         [NO_CREATION_TIME] (startup_time): New static variable.
2110         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
2111         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
2112         creation_time from task_basic_info.
2113         (__times): Use __gettimeofday instead of __host_get_time.
2115         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
2116         Use untyped Mach IPC message format.
2118         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
2120         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
2121         _S_catch_exception_raise_state_identity,
2122         _hurdsig_fault_catch_exception_raise_state,
2123         _hurdsig_fault_catch_exception_raise_state_identity.
2125         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
2127         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
2128         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
2130         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
2131         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
2133         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
2134         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
2135         them as no-op macros.
2136         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
2137         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
2139         * sysdeps/powerpc/dl-machine.h
2140         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
2142         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
2143         Use untyped Mach IPC message format.
2145         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
2146         Handle untyped Mach IPC message formats.
2148         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
2149         Expect different argument conventions when this is defined.
2150         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
2151         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
2152         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
2153         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
2154         for OSF Mach variant.
2155         (faulted): Use mig_reply_error_t for REPLY.
2156         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
2157         in __thread_set_exception_ports call.
2158         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
2159         __mach_port_set_attributes in place of __mach_port_set_qlimit.
2161         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
2162         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
2163         on Darwin, which includes bogons.
2165         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
2166         variable LOADBASE so it's not declared when it's not used.
2168 2002-02-16  Roland McGrath  <roland@frob.com>
2170         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
2171         to use BI.creation_time.
2173         * mach/Machrules (MIG): Add -x c to CPP value passed down.
2175         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
2176         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
2177         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
2178         host_page_size instead of vm_statistics.
2180         * sysdeps/mach/Makefile (mach-before-compile): Don't include
2181         mach_interface.h here, since not all variants use that name.
2183         * sysdeps/mach/configure.in: Add some checks for Mach headers
2184         to ensure a sane installation.
2185         (mach_interface_list): Define this variable by checking for .defs
2186         files found in various variants.
2187         * configure.in (mach_interface_list): AC_SUBST this.
2188         * config.make.in (mach-interface-list): New substituted variable.
2189         * mach/Makefile (user-interfaces): Define this using the value
2190         of $(mach-interface-list) instead of mach, mach4.
2191         Updated other references to mach_interface to use it as well.
2193         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
2195         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
2196         mig_reply_error_t for OSF Mach variant.
2198         * mach/Makefile (routines): Remove bootprivport.
2199         * mach/bootprivport.c: File removed.  It has never been used.
2201         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
2202         Grok the OSF flavor of message format.
2203         (mach_msg_destroy_port): For MAKE_SEND and
2204         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
2205         no-senders notification.
2207 2002-02-06  Roland McGrath  <roland@frob.com>
2209         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
2210         to here if 2.0 compatibility enabled ...
2211         (libc: GLIBC_2.1.3): ... from here.
2213 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
2215         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
2216         generation counter.
2217         * elf/dl-close.c (_dl_close): Likewise.
2219 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
2221         * elf/Makefile: Add rules to build and run tst-tls8.
2222         * elf/tst-tls8.c: New file.
2223         * elf/tst-tlsmod4.c: New file.
2225         * stdlib/test-a64l.c (tests): Add more test cases.
2227         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
2228         Reported by Walter Harms <WHarms@bfs.de>.
2230 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
2232         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
2233         definitions for struct sigcontext.
2234         Suggested by David Mosberger-Tang.
2236 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
2238         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
2239         for removing reference of module in slotinfo list.
2240         (_dl_close): Use remove_slotinfo.
2241         * sysdeps/generic/dl-tls.c: General pretty printing.
2242         (oom): Define only if SHARED.
2243         (_dl_next_tls_modid): Correct starting point for the case we assume
2244         there is a gap.  Add missing instruction grouping (doh!).  Correct
2245         tests for reaching maximum index.
2246         * elf/Makefile: Add rules to build and run tst-tls7.
2247         * elf/tst-tls7.c: New file.
2248         * elf/tst-tlsmod3.c: New file.
2250         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
2251         USE_TLS.
2252         * elf/tst-tlsmod2.c: Likewise.
2254         * elf/dl-close.c (_dl_close): When closing an object using TLS
2255         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
2256         true.  Increment dl_tls_generation only if we closed any TLS-using
2257         object.
2258         * elf/tst-tls6.c: New file.
2259         * elf/Makefile: Add rules to build and run tst-tls6.
2261         * po/da.po: Update from translation team.
2263         * locale/categories.def: Fix typo [PR libc/2948].
2264         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
2265         [PR libc/2949].
2266         * locale/iso-4217.def: Update from official version [PR libc/2950].
2267         * glibcbug.in: Honor TMPDIR [PR libc/2951].
2268         * locale/programs/ld-collate.c (collate_finish): Bail out with a
2269         message if input is too confusion instead of using assert.
2270         (collate_read): Don't crash on unknown symbol [PR libc/2952].
2271         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
2273         * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
2274         * elf/tst-tls2.c: Likewise.
2275         * elf/tst-tls3.c: Likewise.
2277 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
2279         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
2281 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
2283         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
2284         if this is really necessary.
2286         * elf/dl-close.c (_dl_close): Implement freeing entries in the
2287         slotinfo array.
2288         (free_mem): Free memory for the slotinfo array if possible.
2290 2002-02-12  Andreas Schwab  <schwab@suse.de>
2292         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
2294 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
2296         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
2297         TLS_DTV_UNALLOCATE.
2298         (oom): New function.
2299         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
2300         (_dl_determine_tlsoffset): Likewise.
2301         (_dl_allocate_tls): Likewise.
2302         (__TLS_GET_ADDR): Define if not already defined.
2303         (_dl_tls_symaddr): New function.
2304         (allocate_and_init): New function.
2305         (__tls_get_addr): Actually implement handling of generation counter
2306         and deferred allocation.
2307         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
2308         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
2309         _dl_tls_generation.
2310         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
2311         Declare _dl_tls_symaddr.
2312         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
2313         SHARED.
2314         * include/link.h (struct link_map):  Remove l_tls_nextimage and
2315         l_tls_previmage.
2316         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
2317         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
2318         (_dl_vsym): Likewise.
2319         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
2320         layout.
2321         (dl_main): Allow PT_TLS be present for empty segment.  Remove
2322         nextimage list handling.  Instead add all modules using TLS to
2323         dl_tls_dtv_slotinfo_list.
2324         * elf/dl-open.c (dl_open_worker): After successfully loading all
2325         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
2326         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
2327         empty segment don't do anything.  Remove handling of initimage list.
2328         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
2329         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
2330         * elf/dl-minimal.c: Define __libc_memalign.
2331         * elf/dl-support.c: Remove _dl_initimage_list.  Add
2332         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
2333         _dl_tls_generation.
2334         * include/stdlib.h: Declare __libc_memalign.
2336         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
2337         * elf/tst-tls4.c: New file.
2338         * elf/tst-tls5.c: New file.
2339         * elf/tst-tlsmod2.c: New file.
2341         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
2343         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
2345         * elf/tst-tls1.c: Use test-skeleton.c.
2346         * elf/tst-tls2.c: Likewise.
2347         * elf/tst-tls3.c: Likewise.
2349         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
2351 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
2353         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
2355 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
2357         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
2359         * elf/tst-tls3.c: New file.
2360         * elf/tst-tlsmod1.c: New file.
2361         * elf/Makefile: Add rules to build and run tst-tls3.
2363         * sysdeps/i386/dl-machine.h: Include <tls.h>.
2364         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
2365         TLS relocations.
2367         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
2369         * po/fr.po: Update from translation team.
2371         * elf/tls-macros.h: Add alternative macros for use in PIC.
2373         * elf/dl-lookup.c: Include <tls.h>.
2374         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
2376         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
2377         required by passing pointer to last element of the list.
2379         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
2380         l_tls_initimage to a place where it actually is performed.
2382         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
2383         after globfree() calls.
2385         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
2386         (openaux): Pass open_mode as new last argument to _dl_map_object.
2387         (_dl_map_object_deps): Add new argument open_mode.  Initialize
2388         open_mode element of args variable with it.
2389         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
2390         _dl_map_object_deps.
2391         * elf/rtld.c (dl_main): Add zero as last parameter to
2392         _dl_map_object_deps call.
2393         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
2394         * elf/nodlopen2.c: New file.
2395         * elf/nodlopenmod2.c: New file.
2396         * elf/Makefile: Add rules to build and run nodlopen2.
2398         * elf/tst-tls1.c: Move TLS helper macros to...
2399         * elf/tls-macros.h: ...here.  New file.
2400         * elf/tst-tls2.c: New file.
2401         * elf/Makefile (tests): Add tst-tls2.
2402         (distribute): Add tls-macros.h.
2404         * po/sv.po: Update from translation team.
2406         * elf/tst-tls1.c (main): Add complete set of tests.  Split
2407         architecture specific definitions from the actual test code.
2409         * po/tr.po: Update from translation team.
2411 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
2413         * elf/Makefile (tests): Add tst-tls1.
2414         * elf/tst-tls1.c: New file.
2416         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
2417         alignment of TCB for now.
2419         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
2420         initialization image for the application itself.
2422         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
2423         loop to initialize TLS block.
2425 2002-02-08  Richard Henderson  <rth@redhat.com>
2427         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
2428         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
2430         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
2432 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
2434         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
2436 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
2438         * po/ca.po: Update from translation team.
2439         * po/sk.po: Likewise.
2441         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
2442         (dl_main): Move dtv/static TLS handling before relocation.
2443         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
2444         TLS_INIT_TP to allocate and install the dtv/static TLS block.
2445         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
2446         so far uses TLS initialize GL(dl_tls_static_size) and
2447         GL(dl_tls_static_align) to account for the TCB.
2448         (_dl_allocate_tls): New function.
2449         * sysdeps/generic/ldsodefs.h (rtld_global): Add
2450         _dl_initial_dtv_malloced.
2452         * configure.in: Test for __builtin_memset more realistically.
2454         * csu/version.c (banner): If TLS support is available say so.
2456 2002-02-04  H.J. Lu  <hjl@gnu.org>
2458         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
2459         __attribute_used__.
2460         (__dl_runtime_resolve): Likewise.
2462         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
2463         declaration.
2465 2001-11-15  H.J. Lu  <hjl@gnu.org>
2467         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
2468         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
2470         * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
2472 2002-02-07  H.J. Lu  <hjl@gnu.org>
2474         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
2475         ".set noreorder".
2476         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
2477         Likewise.
2479 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
2481         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
2483         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
2484         ___tls_get_addr_internal.
2485         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
2487         * po/ko.po: Update from translation team.
2489 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
2491         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
2492         attribute, change __pad{1,2} type to unsigned int.
2493         (struct stat64): Remove packed attribute.
2495 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
2497         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
2499 2002-02-07  Andreas Schwab  <schwab@suse.de>
2501         * configure.in: Fix check for -zcombreloc.
2503 2002-02-06  H.J. Lu  <hjl@gnu.org>
2505         * config.h.in (HAVE_BUILTIN_MEMSET): New.
2506         * configure.in: Check if __builtin_memset really works.
2507         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
2508         __GNUC_PREREQ (2, 96) before using __builtin_memset.
2510 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
2512         * io/bug-ftw3.c (main): Don't try the test if root.
2514 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2516         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
2517         constraints.
2518         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
2519         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
2520         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
2521         Likewise.
2522         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
2523         a weak alias for __clone.
2524         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
2525         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
2526         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
2527         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
2528         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
2529         a weak alias for __mmap64.
2531 2002-02-05  H.J. Lu  <hjl@gnu.org>
2533         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
2534         (atomic_add): Likewise.
2535         (compare_and_swap): Likewise.
2536         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
2538 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
2540         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
2542         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
2543         alignment of the TCB and store total size and alignment of static
2544         TLS block in _dl_tls_static_size and _dl_tls_static_align.
2545         tls_index is a typedef.
2546         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
2547         _dl_tls_static_align.
2548         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
2549         * elf/dl-support.c: Define _dl_tls_static_size and
2550         _dl_tls_static_align.
2552 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
2554         * configure.in: Add --without-tls option.
2555         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
2556         --without-tls is given.
2558         * sysdeps/generic/dl-tls.c: Include <tls.h>.
2560         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
2562 2002-02-06  Roland McGrath  <roland@frob.com>
2564         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
2565         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
2567         * scripts/versions.awk: Improve error message for missing version.
2568         Each version inherits from the last one only if they have the same
2569         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
2570         but not GLIBC_x and FOO_y.
2572         * scripts/firstversions.awk: Handle libraries that don't have each
2573         particular version named in the third column of shlib-versions.
2575         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
2577 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
2579         * Versions.def [ld]: Add GLIBC_2.3.
2580         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
2581         * elf/Makefile (dl-routines): Add dl-tls.
2582         (distribute): Add dl-tls.h.
2583         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
2584         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
2585         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
2586         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
2587         along with the other info in the link map.  Change queueing of init
2588         images for double linked list.  Use _dl_next_tls_modid to compute
2589         l_tls_modid.
2590         * elf/rtld.c (_dl_start_final): Store alignment requirement
2591         along with the other info in rtld map and executable map.
2592         (dl_main): Add ld.so to the init image list if necessary.  Compute
2593         final module ID with _dl_next_tls_modid.
2594         * include/link.h (struct link_map): Add l_tls_previmage and
2595         l_tls_align.
2596         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
2597         * sysdeps/i386/elf/Versions: New file.
2598         * sysdeps/generic/dl-tls.c: New file.
2599         * sysdeps/generic/dl-tls.h: New file.
2600         * sysdeps/i386/dl-tls.h: New file.
2602 2002-02-06  Roland McGrath  <roland@frob.com>
2604         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
2605         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
2607 2002-01-05  Roland McGrath  <roland@frob.com>
2609         * sysdeps/mach/configure.in: New file.
2610         * sysdeps/mach/configure: New generated file.
2612         * mach/Makefile (user-interfaces): Remove default_pager_helper.
2613         It has never been used by anything.
2615 2002-02-06  H.J. Lu  <hjl@gnu.org>
2617         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
2618         is included.
2620 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
2622         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
2623         attribute((packed)) to counter stupid people misusing gcc options.
2624         (struct stat64): Likewise.
2626 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
2628         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
2629         the variables which are used as booleans.
2631 2002-02-06  Andreas Jaeger  <aj@suse.de>
2633         * include/libc-symbols.h (INTUSE): Renamed from INT.
2634         * elf/dl-deps.c: Change users.
2635         * sysdeps/generic/dl-sysdep.c: Likewise.
2636         * sysdeps/generic/dl-cache.c: Likewise.
2637         * elf/dl-reloc.c: Likewise.
2638         * elf/rtld.c: Likewise.
2639         * elf/dl-version.c: Likewise.
2640         * elf/dl-load.c: Likewise.
2641         * elf/dl-dst.h: Likewise.
2642         * elf/dl-init.c: Likewise.
2643         * elf/dl-error.c: Likewise.
2644         * elf/dl-fini.c: Likewise.
2645         * elf/dl-runtime.c: Likewise.
2646         * elf/do-lookup.h: Likewise.
2648         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
2649         definition.
2650         * stdio-common/_itowa.h: Likewise.
2652 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
2654         * elf/dl-minimal.c: Define _itoa_lower_digits.
2656         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
2657         DT_FLAGS set.
2659         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
2660         loading modules with the DF_STATIC_TLS flag set.
2661         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
2662         element.
2663         * include/link.h (struct link_map): Add l_flags field.
2664         * elf/elf.h (DF_STATIC_TLS): New definition.
2666         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
2667         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
2669         * elf/rtld.c (process_dl_debug): Correct printing help message.
2670         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
2671         for %s.
2673         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
2674         definition and pass &errno in use of this variable.
2675         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
2677 2002-02-04  Andreas Schwab  <schwab@suse.de>
2679         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
2680         * locale/programs/charmap-dir.c: Wrap calls that output messages
2681         with WITH_CUR_LOCALE.  Include "localedef.h" first.
2682         * locale/programs/charmap.c: Likewise.
2683         * locale/programs/ld-address.c: Likewise.
2684         * locale/programs/ld-collate.c: Likewise.
2685         * locale/programs/ld-ctype.c: Likewise.
2686         * locale/programs/ld-identification.c: Likewise.
2687         * locale/programs/ld-measurement.c: Likewise.
2688         * locale/programs/ld-messages.c: Likewise.
2689         * locale/programs/ld-monetary.c: Likewise.
2690         * locale/programs/ld-name.c: Likewise.
2691         * locale/programs/ld-numeric.c: Likewise.
2692         * locale/programs/ld-paper.c: Likewise.
2693         * locale/programs/ld-telephone.c: Likewise.
2694         * locale/programs/ld-time.c: Likewise.
2695         * locale/programs/linereader.c: Likewise.
2696         * locale/programs/linereader.h: Likewise.
2697         * locale/programs/localedef.c: Likewise.
2698         * locale/programs/locfile.c: Likewise.
2699         * locale/programs/repertoire.c: Likewise.
2701 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
2703         * elf/rtld.c (_dl_start_final): Determine load address to locate
2704         ehdr with GL(dl_rtld_map).l_map_start.
2706         * po/ca.po: Update from translation team.
2708         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
2709         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
2710         header entry.
2711         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
2712         _dl_tls_module_cnt.
2713         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
2715 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
2717         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
2718         * include/link.h (struct link_map): Add various members for TLS
2719         information.
2720         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
2721         _rtld_tlsoffset, add _dl_initimage_list.
2722         * sysdeps/i386/dl-lookupcfg.h: New file.
2723         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
2724         TLS relocation.  When using TLS we now use RESOLVE_MAP.
2725         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
2726         is used.
2728         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
2729         unused.
2731         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
2732         thread-pointer as soon as possible.
2733         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
2734         elements in rtld_global.
2735         * sysdeps/generic/tls.h: New file.
2736         * elf/Makefile (distribute): Add tls.h.
2737         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
2738         relocations.  Not complete yet.
2740         * resolv/resolv.h: Allow user to define __need_res_state and only
2741         define __res_start structure then.
2742         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
2744         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
2745         dl_cpuclock_offset initialization to _dl_start_final.
2746         (_dl_show_auxv): Avoid unnecessary sign extension.
2747         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
2749 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
2751         * config.h.in: Add HAVE_TLS_SUPPORT.
2752         * sysdeps/i386/elf/configure.in: New file.
2754 2002-02-03  Andreas Schwab  <schwab@suse.de>
2756         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
2757         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
2759 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
2761         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
2762         alloca if the memory reqirements are too high.
2764 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
2766         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
2767         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
2768         the former is available anyway and speed isn't important here.
2769         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2770         * elf/dl-version.c (match_symbol): Likewise.
2771         (_dl_check_map_versions): Likewise.
2772         * elf/rtld.c (process_envvars): Likewise.
2773         (print_statistics): Likewise.
2774         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
2775         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
2776         bases.  Add assert to catch uses of unimplemented features.
2777         (__strsep): Add assert to catch uses of unimplemented features.
2778         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
2779         and avoid inline optimization.
2780         * elf/rtld.c (process_envvars): Likewise.
2781         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
2782         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
2783         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
2785 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
2787         * stdio-common/_itoa.h: Minor simplifications of the code.
2788         * stdio-common/_itoa.c: Likewise.
2790         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
2791         instead of _dl_printf for debugging info output.
2793         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
2794         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
2796 2002-02-01  H.J. Lu  <hjl@gnu.org>
2798         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
2799         (atomic_add): Likewise.
2800         (compare_and_swap): Return 0 only when failed to compare. Use
2801         branch likely.
2803         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
2804         branch likely.
2806 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2808         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
2810 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
2812         * elf/dl-minimal.c (__strsep): New minimal implementation.
2814 2002-02-02  Paul Eggert  <eggert@twinsun.com>
2816         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
2817         (__mktime_internal): If no tm_isdst is requested, prefer solutions
2818         with tm_isdst > 0 when the requested time falls within a
2819         spring-forward gap [PR libc/2894].
2821 2002-02-03  Andreas Schwab  <schwab@suse.de>
2823         * stdio-common/tst-rndseek.c: Increase timeout.
2825 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
2827         Change ld.so to not use functions which are exported.  One cannot
2828         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
2829         definitions.
2830         * include/libc-symbols.h: Define INT and INTDEF.
2831         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
2832         _dl_signal_error_internal, _dl_map_object_internal,
2833         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
2834         _dl_lookup_versioned_symbol_internal,
2835         _dl_relocate_object_internal, _dl_debug_state_internal,
2836         _dl_start_profile_internal, and _dl_unload_cache_internal.
2837         * include/dlfcn.h: Declare _dl_catch_error_internal.
2838         * elf/rtld.c: Use INT for calls to any of the *_internal functions
2839         above.  Add INTDEF to function definitions.
2840         * elf/dl-debug.c: Likewise.
2841         * elf/dl-deps.c: Likewise.
2842         * elf/dl-dst.h: Likewise.
2843         * elf/dl-error.c: Likewise.
2844         * elf/dl-fini.c: Likewise.
2845         * elf/dl-init.c: Likewise.
2846         * elf/dl-load.c: Likewise.
2847         * elf/dl-lookup.c: Likewise.
2848         * elf/dl-misc.c: Likewise.
2849         * elf/dl-open.c: Likewise.
2850         * elf/dl-profile.c: Likewise.
2851         * elf/dl-reloc.c: Likewise.
2852         * elf/dl-runtime.c: Likewise.
2853         * elf/dl-version.c: Likewise.
2854         * elf/do-lookup.h: Likewise.
2855         * sysdeps/generic/dl-cache.c: Likewise.
2856         * sysdeps/generic/dl-sysdep.c: Likewise.
2857         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
2858         instead of _dl_init.
2859         * sysdeps/arm/dl-machine.h: Likewise.
2860         * sysdeps/cris/dl-machine.h: Likewise.
2861         * sysdeps/hppa/dl-machine.h: Likewise.
2862         * sysdeps/i386/dl-machine.h: Likewise.
2863         * sysdeps/ia64/dl-machine.h: Likewise.
2864         * sysdeps/m68k/dl-machine.h: Likewise.
2865         * sysdeps/mips/dl-machine.h: Likewise.
2866         * sysdeps/mips/mips64/dl-machine.h: Likewise.
2867         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2868         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2869         * sysdeps/sh/dl-machine.h: Likewise.
2870         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2871         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2872         * sysdeps/x86_64/dl-machine.h: Likewise.
2873         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
2875         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
2876         and _dl_debug_initialize.
2878         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
2879         more information.
2880         * elf/rtld.c (dl_main): Avoid strrchr.
2881         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
2882         result of readlink.  Search from the back for '/'.
2884         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
2885         strncpy if possible.
2887         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
2888         strncmp.
2889         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
2890         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
2891         strspn, and strcspn.
2892         (process_envvars): Don't use strcspn.
2894         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
2895         (_dl_dst_substitute): Likewise.
2897 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
2899         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
2900         code which is never used when relocating ld.so itself.
2902         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
2903         starting ld.so itself.  Move l_addr variable initialization closer
2904         to use.
2905         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
2907 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
2909         * Versions.def (libc): Add GLIBC_PRIVATE.
2910         (libdb, libnss_db, libdb1): Remove.
2911         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
2912         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
2913         (libpthread): Add GLIBC_PRIVATE.
2914         (libresolv): Likewise, remove GLIBC_2.1.
2915         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
2916         GLIBC_2.2.3, GLIBC_2.3.
2917         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
2918         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
2919         _dl_sym, _dl_vsym): Likewise.
2920         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
2921         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
2922         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
2923         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
2924         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
2925         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
2926         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
2927         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
2928         Likewise.
2929         (_dl_object_relocation_scope): Remove.
2930         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
2931         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
2932         __gconv_cache): Move to GLIBC_PRIVATE.
2933         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
2934         __internal_setnetgrent): Likewise.
2935         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
2936         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
2937         * locale/Versions (__collate_element_hash, __collate_element_strings,
2938         __collate_symbol_classes, __collate_symbol_hash,
2939         __collate_symbol_strings, _nl_current_LC_COLLATE,
2940         _nl_current_LC_CTYPE): Likewise.
2941         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
2942         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
2943         (libnss_nis, libnss_nisplus): Likewise.
2944         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
2945         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
2946         (libnss_files): Move all symbols to GLIBC_PRIVATE.
2947         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
2948         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
2949         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
2950         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
2951         __ns_get16, __ns_samename): Likewise.
2952         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
2953         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
2954         GLIBC_PRIVATE.
2955         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
2956         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
2957         __libc_connect): Likewise.
2958         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
2959         Likewise.
2960         * stdlib/Versions (__libc_system): Likewise.
2961         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
2962         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
2963         * sysdeps/ia64/fpu/Versions: Likewise.
2964         * sysdeps/ia64/Versions: Likewise.
2965         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2966         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
2967         to GLIBC_PRIVATE.
2968         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
2969         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
2970         __libc_sigaction): Likewise.
2971         * termios/Versions (__libc_tcdrain): Likewise.
2973         * misc/sys/cdefs (__attribute_noinline__): Define.
2974         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
2975         __attribute_noinline__.
2977         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
2978         * elf/dl-xstat64.c: New file.
2979         * elf/dl-fxstat64.c: New file.
2980         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
2981         don't export __fxstat64 at multiple versions.
2982         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
2983         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
2985 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
2987         * locale/program/ld-collate.c (collate_finish): Assign a wide
2988         char collation sequence value to multi character collating
2989         elements, and avoid over writing by non-character elements.
2991 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
2993         * elf/Makefile (distribute): Add dl-procinfo.c.
2994         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
2995         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
2997 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
2999         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
3000         definition.
3001         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
3002         _rtld_global struct.
3003         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
3004         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
3005         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
3006         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
3007         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
3008         _dl_fpu_control_set): Remove unused externs.
3009         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
3010         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
3011         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
3012         related variables in _rtld_global struct.
3013         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
3014         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
3015         unused extern.
3017 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
3019         * sysdeps/generic/dl-procinfo.c: New file.
3021 2002-02-01  Andreas Schwab  <schwab@suse.de>
3023         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
3025 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
3027         * elf/rtld.c (_dl_start): Mark as internal_function.
3028         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
3029         in register.
3030         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
3031         General pretty printing.
3033 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
3035         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
3036         * elf/dl-reloc.c: Pretty printing.
3037         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
3038         procinfo-related variables in rtld_global struct.
3039         * elf/dl-support.c: Likewise.
3040         * elf/rtld.c: Likewise.
3041         * sysdeps/i386/i686/Makefile: Likewise.
3042         * sysdeps/i386/i686/hp-timing.c: Likewise.
3043         * sysdeps/i386/i686/hp-timing.h: Likewise.
3044         * sysdeps/ia64/Makefile: Likewise.
3045         * sysdeps/ia64/hp-timing.c: Likewise.
3046         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
3047         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
3048         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
3049         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
3050         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
3051         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
3052         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
3053         * sysdeps/x86_64/Makefile: Likewise.
3055         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
3056         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
3057         _dl_debug_fd to rtld_global.
3058         * elf/Versions: Likewise.
3059         * elf/dl-close.c: Likewise.
3060         * elf/dl-iteratephdr.c: Likewise.
3061         * elf/dl-lookup.c: Likewise.
3062         * elf/dl-misc.c: Likewise.
3063         * elf/dl-open.c: Likewise.
3064         * elf/dl-support.c: Likewise.
3065         * elf/do-lookup.h: Likewise.
3066         * elf/rtld.c: Likewise.
3067         * sysdeps/generic/dl-cache.c: Likewise.
3068         * sysdeps/generic/dl-sysdep.c: Likewise.
3069         * sysdeps/ia64/Versions: Likewise.
3070         * sysdeps/unix/clock_gettime.c: Likewise.
3071         * sysdeps/unix/clock_settime.c: Likewise.
3072         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
3073         * sysdeps/sparc/Versions: Removed.
3074         * sysdeps/i386/i686/Versions : Removed.
3075         * sysdeps/x86_64/Versions: Removed.
3076         * configure.in: Define HAVE_PROTECTED if .protected is available.
3077         * config.h.in: Add entry for HAVE_PROTECTED.
3079 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
3081         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
3082         code in struct _rtld_global.  Export this struct, remove all
3083         exports for the signal variables.
3084         * sysdeps/arm/dl-machine: Likewise.
3085         * sysdeps/generic/dl-origin: Likewise.
3086         * sysdeps/generic/dl-sysdep: Likewise.
3087         * sysdeps/generic/dl-cache: Likewise.
3088         * sysdeps/hppa/dl-fptr: Likewise.
3089         * sysdeps/hppa/dl-machine: Likewise.
3090         * sysdeps/cris/dl-machine: Likewise.
3091         * sysdeps/i386/dl-machine: Likewise.
3092         * sysdeps/ia64/dl-machine: Likewise.
3093         * sysdeps/m68k/dl-machine: Likewise.
3094         * sysdeps/mach/hurd/dl-sysdep: Likewise.
3095         * sysdeps/mips/mips64/dl-machine: Likewise.
3096         * sysdeps/mips/dl-machine: Likewise.
3097         * sysdeps/powerpc/elf/libc-start: Likewise.
3098         * sysdeps/powerpc/dl-machine: Likewise.
3099         * sysdeps/powerpc/dl-start: Likewise.
3100         * sysdeps/sparc/sparc32/dl-machine: Likewise.
3101         * sysdeps/sparc/sparc64/dl-machine: Likewise.
3102         * sysdeps/sh/dl-machine: Likewise.
3103         * sysdeps/s390/s390-32/dl-machine: Likewise.
3104         * sysdeps/s390/s390-64/dl-machine: Likewise.
3105         * sysdeps/unix/sysv/aix/libc-start: Likewise.
3106         * sysdeps/unix/sysv/aix/start-libc: Likewise.
3107         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
3108         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
3109         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
3110         * sysdeps/x86_64/dl-machine: Likewise.
3112 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
3114         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
3115         are too high.
3117 2002-01-31  Andreas Schwab  <schwab@suse.de>
3119         * sysdeps/posix/readv.c: Check for ssize_t overflow.
3121 2002-01-31  Andreas Schwab  <schwab@suse.de>
3123         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
3124         reference to _dl_pagesize.
3126 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
3128         * Versions.def [ld]: Add GLIBC_2.3.
3129         * elf/dl-addr.c: Move global variables for SHARED code in struct
3130         _rtld_global.  Export this struct, remove all exports for the
3131         signal variables.
3132         * elf/dl-close.c: Likewise.
3133         * elf/dl-conflict.c: Likewise.
3134         * elf/dl-debug.c: Likewise.
3135         * elf/dl-deps.c: Likewise.
3136         * elf/dl-dst.h: Likewise.
3137         * elf/dl-error.c: Likewise.
3138         * elf/dl-fini.c: Likewise.
3139         * elf/dl-init.c: Likewise.
3140         * elf/dl-iteratephdr.c: Likewise.
3141         * elf/dl-libc.c: Likewise.
3142         * elf/dl-load.c: Likewise.
3143         * elf/dl-lookup.c: Likewise.
3144         * elf/dl-minimal.c: Likewise.
3145         * elf/dl-object.c: Likewise.
3146         * elf/dl-open.c: Likewise.
3147         * elf/dl-profile.c: Likewise.
3148         * elf/dl-profstub.c: Likewise.
3149         * elf/dl-reloc.c: Likewise.
3150         * elf/dl-runtime.c: Likewise.
3151         * elf/dl-support.c: Likewise.
3152         * elf/dl-sym.c: Likewise.
3153         * elf/dl-version.c: Likewise.
3154         * elf/do-lookup.h: Likewise.
3155         * elf/do-rel.h: Likewise.
3156         * elf/dynamic-link.h: Likewise.
3157         * elf/rtld.c: Likewise.
3158         * sysdeps/generic/dl-cache.c: Likewise.
3159         * sysdeps/generic/dl-sysdep.c: Likewise.
3160         * sysdeps/generic/ldsodefs.h: Likewise.
3161         * sysdeps/generic/libc-start.c: Likewise.
3162         * sysdeps/i386/dl-machine.h: Likewise.
3163         * sysdeps/ia64/dl-fptr.c: Likewise.
3164         * sysdeps/ia64/dl-machine.h: Likewise.
3165         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
3166         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
3167         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
3168         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
3169         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
3170         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
3171         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
3172         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
3174 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
3176         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
3177         to avoid warning
3178         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
3180         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
3181         SHARED version.
3182         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
3184         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
3186 2002-01-29  Ben Collins  <bcollins@debian.org>
3188         * string/bits/string2.h (__mempcpy): Protect size arg for
3189         addition when using __builtin_memcpy.
3191 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
3193         * stdlib/Makefile (tests): Add tst-qsort.
3194         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
3196         * manual/signal.texi (Process Signal Mask): Document that
3197         pthread_sigmask, not sigprocmask, must be used in MT programs.
3198         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
3200         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
3201         found.
3202         * misc/Makefile (tests): Add tst-hsearch.
3203         * misc/tst-hsearch.c: New file.
3205 2002-01-18  Wolfram Gloger  <wg@malloc.de>
3207         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
3208         * malloc/malloc.h: Likewise.
3209         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
3210         * malloc/arena.c: New file.
3211         * malloc/hooks.c: New file.
3212         * malloc/tst-mallocstate.c: New file.
3213         * malloc/Makefile: Add new testcase tst-mallocstate.
3214         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
3216 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
3218         * stdlib/msort.c: Remove last patch.  The optimization violates the
3219         same rule which qsort.c had problems with.
3221 2002-01-27  Paul Eggert  <eggert@twinsun.com>
3223         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
3224         to a pivot element that lies outside the array to be sorted, as
3225         ISO C99 requires that the comparison function be called only with
3226         addresses of array elements [PR libc/2880].
3228 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
3230         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
3231         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
3233         * timezone/asia: Update from tzdata2002b.
3234         * timezone/australasia: Likewise.
3235         * timezone/backward: Likewise.
3236         * timezone/europe: Likewise.
3237         * timezone/leapseconds: Likewise.
3238         * timezone/iso3166.tab: Likewise.
3239         * timezone/zone.tab: Likewise.
3241 2002-01-23  Richard Henderson  <rth@redhat.com>
3243         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
3245 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
3247         * string/strxfrm.c: Allocate one more byte for rulearr and clear
3248         this element [PR libc/2855].
3250         * string/strcoll.c: Handle zero-length arguments specially
3251         [PR libc/2856].
3253 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
3255         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
3256         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
3257         short lengths and constant src.
3258         (strcpy): Don't optimize for gcc 3.0+.
3259         (__stpcpy): For gcc 3.0+, don't use
3260         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
3261         for short string literal src.
3263 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
3265         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
3266         Set for arm, too.
3268 2001-01-22  Paul Eggert  <eggert@twinsun.com>
3270         * manual/llio.texi (Linked Channels, Cleaning Streams):
3271         Make it clearer that a just-opened input stream might need cleaning.
3273 2002-01-21  H.J. Lu  <hjl@gnu.org>
3275         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3276         Don't use label at end of compound statement.
3278 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
3280         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
3281         Remove test for negative integer arg; sin_pi does it correctly.
3283 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
3285         * nscd/Makefile (distribute): Filter out xmalloc.c.
3287 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
3289         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
3290         Set offset if read end wasn't the buffer end.
3291         (_IO_file_seekoff_mmap): New function.
3292         (_IO_file_xsgetn_mmap): New function.
3293         (_IO_file_jumps_mmap): Use the two new functions.
3294         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
3295         != end buffer.
3296         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
3297         _IO_file_underflow_mmap.
3298         * libio/iofopen.c: Don't position file descriptor at end of file.
3299         * libio/tst-widetext.c: Improve error messages.
3300         * stdio-common/tst-rndseek.c: Likewise.
3302 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
3304         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
3305         end of enum for !_GNU_SOURCE.
3306         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
3307         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
3308         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
3309         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
3310         values unless _GNU_SOURCE.
3312         * iconvdata/tcvn5712-1.c: Minor cleanups.
3314 2002-01-18  Andreas Schwab  <schwab@suse.de>
3316         * sysdeps/unix/sysv/linux/configure.in
3317         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
3319 2002-01-16  Roger Sayle  <roger@eyesopen.com>
3321         * stdlib/msort.c (msort_with_tmp): Replace implementation with
3322         more efficient "Towers of Hanoi" mergesort.
3323         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
3324         for generic, sizeof(int) and sizeof(long) variants respectively.
3326 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
3328         * manual/syslog.texi (openlog): Describe possible problems with
3329         first parameter.
3330         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
3332         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
3333         * nscd/connections.c (begin_drop_privileges): New function.
3334         (finish_drop_privileges): New function.
3335         (nscd_init): Call the new functions which also install all groups
3336         for the server user.
3337         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
3338         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
3340 2002-01-17  H.J. Lu  <hjl@gnu.org>
3342         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
3343         `const' from `got'.
3345 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3347         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
3348         instructions for pointer operations.
3349         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
3351 2002-01-17  Andreas Jaeger  <aj@suse.de>
3353         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
3354         __uint128_t build-in.
3356         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
3357         PowerPC, sync with 2.2 branch.
3359 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
3361         * posix/getconf.c: Update copyright year.
3362         * nss/getent.c: Likewise.
3363         * nscd/nscd_nischeck.c: Likewise.
3364         * iconv/iconvconfig.c: Likewise.
3365         * iconv/iconv_prog.c: Likewise.
3366         * elf/ldconfig.c: Likewise.
3367         * catgets/gencat.c: Likewise.
3368         * csu/version.c: Likewise.
3369         * elf/ldd.bash.in: Likewise.
3370         * elf/sprof.c (print_version): Likewise.
3371         * locale/programs/locale.c: Likewise.
3372         * locale/programs/localedef.c: Likewise.
3373         * nscd/nscd.c (print_version): Likewise.
3374         * debug/xtrace.sh: Likewise.
3375         * malloc/memusage.sh: Likewise.
3376         * malloc/mtrace.pl: Likewise.
3378 2002-01-16  Andreas Schwab  <schwab@suse.de>
3380         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
3381         reliably remove "-ia64" from rtld name.
3383 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
3385         * iconvdata/gb18030.c: Bug fixes and support for more characters.
3386         Patch by Yu Shao <yshao@redhat.com>.
3388 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3390         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
3391         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
3392         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
3394 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3396         * sysdeps/s390/fpu/libm-test-ulps: Update.
3398 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
3400         * elf/elf.h: Update x86 relocations.
3402 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
3404         * locale/programs/charmap.c (new_width): Check whether byte
3405         sequences for both ends of range have the same length.
3407 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
3409         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
3411 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
3413         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
3414         string literals.
3415         (__full_ieee754_sqrt): Add __attribute_used__.
3417 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
3419         * sysdeps/generic/group_member.c (__group_member): Also check
3420         groups[0] [PR libc/2781].
3422 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
3424         * Makefile (distribute): Add scripts/cpp.
3425         * elf/Makefile (distribute): Add reldep6mod[01234].c,
3426         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
3427         unwind-dw2-fde.h, and dwarf2.h.
3428         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
3429         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
3430         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
3431         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
3433 2002-01-07  Roland McGrath  <roland@frob.com>
3435         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
3436         volatile on type of ARGC so the compiler doesn't get clever.
3438 2002-01-07  Andreas Jaeger  <aj@suse.de>
3440         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
3441         * sysdeps/i386/bits/byteswap.h: Likewise.
3442         * sysdeps/ia64/bits/byteswap.h: Likewise.
3443         * sysdeps/m68k/bits/byteswap.h: Likewise.
3444         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
3445         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
3447 2002-01-02  Bruno Haible  <bruno@clisp.org>
3449         * intl/plural.y: Fix %expect count.
3451 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
3453         * elf/Makefile (routines, shared-only-routines): Add
3454         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
3455         * elf/elf.h (PT_GNU_EH_FRAME): Define.
3456         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
3457         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
3458         Optimize if .eh_frame section contains no FDEs.
3459         (__register_frame, __deregister_frame_info_bases,
3460         __deregister_frame): Likewise.
3461         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
3462         DW_CFA_restore handling.
3464 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
3466         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
3468         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
3469         for x < 0.25 and restore original range reduction method.
3470         (__ieee754_lgammal_r): Make sure signgam is set before returning.
3472 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
3474         * libio/fileops.c (_IO_file_underflow_mmap): New function.
3475         (_IO_file_close_mmap): New function.
3476         (_IO_file_jumps_mmap): New variable.
3477         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
3478         trying to convert rest of byte buffer.
3479         (_IO_wfile_underflow_mmap): New function.
3480         (_IO_wfile_jumps_mmap): New variable.
3481         * libio/iofopen.c (__fopen_maybe_mmap): New function.
3482         (__fopen_internal): New function.  Split out from _IO_new_fopen.
3483         (_IO_new_fopen): Call __fopen_internal.
3484         * libio/iofopen64.c: Just call __fopen_internal.
3485         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
3486         successfully.
3487         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
3488         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
3489         _IO_file_close_mmap.
3491         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
3492         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
3494         * stdio-common/Makefile (tests): Add tst-rndseek.
3495         * stdio-common/tst-rndseek.c: New file.
3497 2002-01-05  Roland McGrath  <roland@frob.com>
3499         * config.h.in (HAVE_MIG_RETCODE): New #undef.
3500         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
3501         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
3502         * sysdeps/mach/hurd/configure: Regenerated.
3504 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
3506         * elf/elf.h: Add more TLS definitions.
3508 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
3510         * include/features.h (__GLIBC_MINOR__): Bump to 3.
3512 2002-01-02  Roland McGrath  <roland@frob.com>
3514         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
3515         __sigisemptyset.  Don't use MASK uninitialized.
3517         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
3518         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
3519         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
3520         __sigdelset, __sigaddset, __sigorset.
3522         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
3523         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
3525         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
3526         _hurd_ports is null.
3528         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
3529         for old CMU and new OSF Mach interface flavors.
3530         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
3531         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
3533         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
3535         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
3536         Pass extra arguments to task_create for OSF variant.
3537         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
3539         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
3540         conditional on [HAVE_AUX_VECTOR].
3542         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
3543         mach_msg_timeout_t as type of final argument.
3545         * hurd/privports.c (__get_privileged_ports):
3546         Change host_priv_t to mach_port_t in argument type.
3547         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
3548         Update decls.
3550         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
3551         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
3552         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
3553         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
3554         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
3555         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
3557 2002-01-01  Roland McGrath  <roland@frob.com>
3559         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
3561 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
3563         * include/stdlib.h: Define inlines for the _l variants of the strto*
3564         functions.
3566 2002-01-01  Roland McGrath  <roland@frob.com>
3568         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
3570         * mach/Machrules (MIG): Set CPP as well as CC.
3572 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
3574         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
3575         locale to parse /proc/loadavg [PR libc/2760].
3577 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
3579         * elf/dl-conflict.c: Include sys/param.h.
3580         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
3581         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
3582         warning.
3583         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
3584         literals to avoid warnings.
3586 2001-12-31  Andreas Jaeger  <aj@suse.de>
3588         * configure.in: Don't check for gsed since we do not use it anywhere.
3590 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
3592         * io/fts.c: Update from BSD to fix memory leaks.
3594 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
3596         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
3597         * elf/chroot_canon.c: Likewise.
3598         * elf/dl-object.c: Likewise.
3599         * iconv/iconv_charmap.c: Likewise.
3600         * iconv/iconv_prog.c: Likewise.
3601         * libio/iogetdelim.c: Likewise.
3602         * locale/lc-time.c: Likewise.
3603         * stdlib/canonicalize.c: Likewise.
3604         * sunrpc/svc.c: Likewise.
3605         * sysdeps/generic/glob.c: Likewise.
3607 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3609         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
3610         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
3611         remove high order bit from the program counter.
3612         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
3614 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3616         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
3617         unnecessary code and add missing reloc types.
3618         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
3619         case for reloc type R_390_NONE.
3621 2001-12-28  Andreas Jaeger  <aj@suse.de>
3623         * io/bug-ftw3.c: Include string.h for prototypes.
3625         * crypt/md5test.c (main): Remove unused variable.
3627         * dlfcn/modstatic.c: Add prototype to avoid warning.
3629 2001-12-26  Roland McGrath  <roland@frob.com>
3631         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
3632         check only (SS->pending & MASK) for the signal to return.
3633         From Jeroen Dekkers <jeroen@dekkers.cx>.
3635 2001-12-22  Roland McGrath  <roland@frob.com>
3637         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
3638         Use preprocessor #if conditionals instead of `if' to avoid
3639         warnings about divide by zero in dead code.
3641         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
3642         _hurd_port_init, and __hurd_self_sigstate.
3644         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
3646 2001-12-21  Andreas Jaeger  <aj@suse.de>
3648         * elf/dblloadmod1.c: Add prototype to avoid warning.
3649         * elf/dblloadmod2.c: Likewise.
3650         * elf/dblloadmod3.c: Likewise.
3651         * elf/reldepmod5.c: Likewise.
3652         * elf/reldepmod6.c: Likewise.
3654         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
3655         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
3656         used on all architectures.
3658         * sunrpc/svc_tcp.c: Add noreturn attribute for
3659         svctcp_rendezvous_abort.
3660         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
3662         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
3663         to avoid warning.
3665 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
3667         * manual/llio.texi (aio_fsync): Fix a typo.
3668         Patch by Tammy Fox <tfox@redhat.com>.
3670 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
3672         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
3673         stack bias from child stack pointer before passing it to clone syscall.
3675 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
3677         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
3678         _SC_TZNAME_MAX.
3679         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
3680         Reported by Thorsten Kukuk <kukuk@suse.de>.
3682         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
3683         add some casts.
3685         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
3687 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
3689         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
3690         conforming: return EBADF if file descriptor is invalid and EINVAL
3691         if file descriptor is no valid tty.
3692         * login/tst-grantpt.c: New file.
3693         * login/Makefile (tests): Add tst-grantpt.
3695 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
3697         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
3698         different than implemented in last patch.
3699         * io/bug-ftw3.c: Adjust test for changed handling of
3700         inaccessibility of toplevel dir.
3702 2001-12-16  Roland McGrath  <roland@frob.com>
3704         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
3705         * grp/initgroups.c (internal_getgrouplist): Likewise.
3707         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
3708         `default:' to silence new GCC warning.
3709         Rewrite cast of lvalue to silence new GCC warning.
3711         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
3713         * sysdeps/mach/hurd/spawni.c: New file, by me with a
3714         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
3716 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
3718         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
3719         Patch by Stephen R. van den Berg.
3721         * crypt/md5.h: Define md5_uintptr.
3723 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
3725         * libio/tst_swprintf.c (main): Add test for string argument with
3726         zero precision.
3727         * stdio-common/Makefile (tests): Add tst-sprintf.
3728         * stdio-common/tst-sprintf.c: New file.
3730 2001-12-13  Andreas Schwab  <schwab@suse.de>
3732         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
3733         zero precision with wide character string format.
3735 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
3737         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
3738         but have a user supplied buffer, return the empty buffer, not NULL.
3740 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
3742         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
3743         Patch by Eric Sharkey <sharkey@netrics.com>.
3745         * crypt/md5test.c (main): Add test for multiple calls to
3746         __md5_process_bytes to itererate over input string.
3748 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
3750         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
3751         from __nis_findfastest.  Take timeout value from parameter.
3752         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
3753         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
3754         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
3756 2001-12-12  Andreas Jaeger  <aj@suse.de>
3758         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
3759         combreloc test so that it works in this case.
3761         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
3763 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
3765         * sysdeps/sh/Makefile: New file.
3766         * sysdeps/sh/_mcount.S: New file.
3767         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
3768         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
3770 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
3772         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
3773         limitation [PR libc/2564].
3775 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
3777         * elf/Makefile (dl-routines): Add conflict.
3778         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
3779         (ld.so): Add _begin local symbol.
3780         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
3781         Define.
3782         * elf/dl-deps.c (_dl_build_local_scope): New.
3783         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
3784         of all libraries.
3785         * elf/do-rel.h (VALIDX): Define.
3786         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
3787         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
3788         can be skipped.
3789         * elf/dl-conflict.c: New file.
3790         * elf/dl-lookup.c (_dl_debug_bindings): New.
3791         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
3792         non-NULL.
3793         (_dl_lookup_symbol_skip): Likewise.
3794         (_dl_lookup_versioned_symbol): Likewise.
3795         (_dl_lookup_versioned_symbol_skip): Likewise.
3796         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
3797         define to ElfW(Rel).
3798         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
3799         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
3800         ranges.
3801         Don't adjust address dynamic tags if l_addr is 0.
3802         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
3803         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
3804         (VALIDX, ADDRIDX): Define.
3805         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
3806         (dl_main): Print library list for LD_TRACE_PRELINKING.
3807         If prelinking information can be used, skip relocating libraries and
3808         call _dl_resolve_conflicts instead.
3809         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
3810         * elf/dl-load.c (_dl_map_object): Don't create fake libs
3811         if LD_TRACE_PRELINKING.
3812         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
3813         + DT_ADDRNUM.
3814         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
3815         (DL_DEBUG_PRELINK): Define.
3816         (_dl_resolve_conflicts): Add prototype.
3818         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
3819         .plt for prelinked libraries where prelinking info cannot be used.
3820         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
3821         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
3822         * sysdeps/arm/bits/link.h: New file.
3823         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
3824         content of .got[1].
3825         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
3826         (ELF_MACHINE_PLT_REL): Define.
3827         (elf_machine_rela, elf_machine_rela_relative): New.
3828         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
3829         of adjusting it if prelinked and prelinking cannot be used.
3830         * sysdeps/i386/bits/link.h: New file.
3831         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
3832         content of .got[1].
3833         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
3834         (ELF_MACHINE_PLT_REL): Define.
3835         (elf_machine_rela, elf_machine_rela_relative): New.
3836         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
3837         of adjusting it if prelinked and prelinking cannot be used.
3838         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
3839         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
3840         to find out map for R_PPC_JMP_SLOT relocs.
3841         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
3842         (OPCODE_BA): Define.
3843         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
3844         libraries where prelinking info cannot be used.
3845         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
3846         (elf_machine_fixup_plt): Call sparc_fixup_plt.
3847         (elf_machine_rela): Set value to 0 if relocating conflicts.
3848         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
3849         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
3850         (sparc64_fixup_plt): Fix a typo.
3851         (elf_machine_rela): Set value to 0 if relocating conflicts.
3852         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
3853         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
3854         libraries where prelinking info cannot be used.
3855         * sysdeps/sh/bits/link.h: New file.
3856         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
3857         content of .got[1].
3858         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
3859         of adjusting it if prelinked and prelinking cannot be used.
3860         * sysdeps/s390/s390-32/bits/link.h: New file.
3861         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
3862         Save original content of .got[1].
3863         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
3864         of adjusting it if prelinked and prelinking cannot be used.
3865         * sysdeps/s390/s390-64/bits/link.h: New file.
3866         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
3867         Save original content of .got[1].
3868         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
3869         of adjusting it if prelinked and prelinking cannot be used.
3870         * sysdeps/x86_64/bits/link.h: New file.
3871         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
3872         Save original content of .got[1].
3873         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
3874         of adjusting it if prelinked and prelinking cannot be used.
3876 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
3878         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
3879         where appropriate instead of numbers.  Little optimizations.
3881 2001-12-10  Roland McGrath  <roland@frob.com>
3883         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
3884         set it.
3886         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
3887         set to GLIBC_2.2.5, not GLIBC_2.2.4.
3889         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
3890         Fix conditionals so this is set by default for stdio and not for libio.
3891         * sysdeps/mach/hurd/configure: Regenerated.
3893 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
3895         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
3897 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
3899         * io/Makefile (tests): Add bug-ftw3.
3900         * io/bug-ftw3.c: New file.
3902         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
3903         matches and GLOB_NOCHECK is set.
3904         * posix/globtest.sh: Correct expected result for NOCHECK test.
3906         * po/ca.po: Update from translation team.
3908 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
3910         Implement transliteration of characters in strings of the locale
3911         definitions.
3912         * locale/programs/linereader.c: Adjust for additional parameter to
3913         lr_token.
3914         (get_string): If character <Uxxxx> is not found try to transliterate
3915         it.
3916         * locale/programs/ld-ctype.c: Adjust for additional parameter to
3917         lr_token.  Add const to charmap parameter of all functions.
3918         (find_translit, find_translit2): New functions.
3919         * locale/programs/charmap.c: Adjust for additional parameter to
3920         lr_token.
3921         * locale/programs/repertoire.c: Likewise.
3922         * locale/programs/linereader.h: Likewise.
3923         * locale/programs/ld-address.c: Likewise.  Add const to charmap
3924         parameter of all functions.
3925         * locale/programs/ld-collate.c: Likewise.
3926         * locale/programs/ld-identification.c: Likewise.
3927         * locale/programs/ld-measurement.c: Likewise.
3928         * locale/programs/ld-messages.c: Likewise.
3929         * locale/programs/ld-monetary.c: Likewise.
3930         * locale/programs/ld-name.c: Likewise.
3931         * locale/programs/ld-numeric.c: Likewise.
3932         * locale/programs/ld-paper.c: Likewise.
3933         * locale/programs/ld-paper.c: Likewise.
3934         * locale/programs/ld-telephone.c: Likewise.
3935         * locale/programs/ld-time.c: Likewise.
3936         * locale/programs/locfile.c: Likewise.
3937         * locale/programs/localedef.c: Likewise.
3938         * locale/programs/localedef.h: Likewise.
3939         * locale/programs/locfile.h: Likewise.  Add declaration for
3940         find_translit.
3941         * locale/programs/simple-hash.c: Add const to first parameter of
3942         find_entry, iterate_table, and lookup.
3943         * locale/programs/simple-hash.h: Likewise.
3944         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
3945         instead.
3946         * include/locale.h: Define __LC_LAST.
3947         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
3949 2001-12-07  Geoff Keating  <geoffk@redhat.com>
3951         * sysdeps/powerpc/Dist: Update for recent FP changes.
3952         * sysdeps/powerpc/fpu/Dist: Likewise.
3954 2001-12-07  Andreas Schwab  <schwab@suse.de>
3956         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
3958 2001-12-06  Geoff Keating  <geoffk@redhat.com>
3960         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
3961         save/restore functions here.
3962         (libm-support): Don't define these functions here.
3963         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
3964         functions here.
3965         * sysdeps/powerpc/fe_nomask.c: Move to...
3966         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
3967         * sysdeps/powerpc/fprrest.S: Move to...
3968         * sysdeps/powerpc/fpu/fprrest.S: ... here.
3969         * sysdeps/powerpc/fprsave.S: Move to...
3970         * sysdeps/powerpc/fpu/fprsave.S: ... here.
3972 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
3974         * sysdeps/unix/sysv/linux/opensock.c: New file.
3976 2001-12-06  Geoff Keating  <geoffk@redhat.com>
3978         * config.make.in (with-fp): Define from configure.
3979         * configure.in: Substitute with_fp.
3980         * configure: Regenerate.
3981         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
3982         specified, and don't change FPU environment.
3984 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
3986         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
3987         * assert/assert.c: Check result of __asprintf call and don't use
3988         string if it failed.
3989         * assert/assert-perr.c: Likewise.
3990         * inet/rcmd.c: Likewise.
3991         * locale/programs/localedef.c (main): Check result of
3992         construct_output_path and exit if it failed.
3993         (construct_output_path): Check result of asprintf and mkdir calls and
3994         fail if they failed.
3995         * posix/getopt.c: Check result of __asprintf calls and fail if
3996         they failed.
3997         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
3999 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
4001         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
4002         patch.
4003         * sysdeps/generic/strncase.c: Likewise.
4004         * string/tester.c: Add tests for strcasecmp and strncasecmp.
4006 2001-12-05  Geoff Keating  <geoffk@redhat.com>
4008         * scripts/cpp: Test the exit status from 'type', not 'awk'.
4010         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
4011         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
4012         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
4013         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
4014         * sysdeps/powerpc/fclrexcpt.c: Move to...
4015         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
4016         * sysdeps/powerpc/fpu_control.h: Move to...
4017         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
4019 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
4021         * iconvdata/ibm1129.h: Remove duplicate mappings.
4022         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
4023         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
4024         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
4026         * timezone/zic.c: Fix handling of turnaround times.
4027         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
4029 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
4031         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
4032         overflow problem.
4034 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
4036         * posix/regex.c: For use outside glibc defined bounded pointer
4037         macros here.  Patch by Jim Meyering <jim@meyering.net>.
4039         * iconvdata/Makefile (modules): Add TCVN5712-1.
4040         * iconvdata/TESTS: Add TCVN5712-1.
4041         * iconvdata/gconv-modules: Likewise.
4042         * iconvdata/tcvn5712-1.c: New file.
4043         * iconvdata/testdata/TCVN-5712: New file.
4044         * iconvdata/testdata/TCVN-5712..UTF8: New file.
4046 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
4048         * iconvdata/cp1258.c: Optimize conversion from UCS4.
4050 2001-12-02  Roland McGrath  <roland@frob.com>
4052         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
4054         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
4055         Reported by Jeff Bailey <jbailey@nisa.net>.
4057         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
4058         Reported by Jeff Bailey <jbailey@nisa.net>.
4060         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
4061         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
4062         Reported by Jeff Bailey <jbailey@nisa.net>.
4064 2001-12-01  Roland McGrath  <roland@frob.com>
4066         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
4067         missing backslash in test arguments.
4068         * sysdeps/mach/hurd/configure: Regenerated.
4070 2001-11-26  Roland McGrath  <roland@frob.com>
4072         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
4073         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
4075 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
4077         * iconvdata/Makefile (modules): Add ARMSCII-8.
4078         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
4079         * iconvdata/armscii-8.c: New file.
4081 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
4083         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
4084         don't match, fix {{a,b},c} globbing, clean up.
4085         Patch by Flavio Veloso <flaviovs@magnux.com>.
4086         * posix/globtest.sh: Add new tests.
4088 2001-11-29  Andreas Jaeger  <aj@suse.de>
4090         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
4091         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
4093         * sysdeps/generic/abort.c: Include libioP.h for
4094         _IO_flush_all_lockp prototype.
4096 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
4098         * posix/regex.h: Define __restrict_arr correctly.
4100 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
4102         * iconvdata/ibm1163.c: New file.
4103         * iconvdata/ibm1163.h: New file.
4104         * iconvdata/ibm1164.c: New file.
4105         * iconvdata/ibm1164.h: New file.
4106         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
4107         * iconvdata/Makefile: Likewise.
4108         * iconvdata/testdata/IBM1163: New file.
4109         * iconvdata/testdata/IBM1163..UTF8: New file.
4110         * iconvdata/testdata/IBM1164: New file.
4111         * iconvdata/testdata/IBM1164..UTF8: New file.
4112         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
4114         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
4115         * iconvdata/ibm1124.h: Likewise.
4116         * iconvdata/ibm1132.h: Likewise.
4117         * iconvdata/ibm1133.h: Likewise.
4118         * iconvdata/ibm1160.h: Likewise.
4119         * iconvdata/ibm1161.h: Likewise.
4120         * iconvdata/ibm1162.h: Likewise.
4121         * iconvdata/ibm856.h: Likewise.
4122         * iconvdata/ibm922.h: Likewise.
4123         * iconvdata/ibm930.h: Likewise.
4124         * iconvdata/ibm932.h: Likewise.
4125         * iconvdata/ibm933.h: Likewise.
4126         * iconvdata/ibm935.h: Likewise.
4127         * iconvdata/ibm937.h: Likewise.
4128         * iconvdata/ibm939.h: Likewise.
4129         * iconvdata/ibm943.h: Likewise.
4130         * iconvdata/ibm930.c: Pretty printing.
4131         * iconvdata/ibm937.c: Avoid access accross array boundary.
4133         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
4134         the current locale's codeset.
4135         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
4136         empty input string.
4137         * iconv/iconv_prog.c: Pass empty strings as default value for to-
4138         and from-charset.  Don't determine locale's charset here.
4140         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
4141         as the old _IO_flush_all but lock only if parameter is nonzero.
4142         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
4143         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
4144         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
4145         if libio is used [PR libc/2575].
4147 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
4149         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
4150         __signbitl): Only define for ISO C99.
4152 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
4154         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
4155         herrnop to NETDB_INTERNAL if we run out of buffer space.
4157 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
4159         * nss/nss_files/files-XXX.c (internal_getent): Correct input
4160         overflow test for platforms with signed char.
4161         Reported by Andrew Haley <aph@cambridge.redhat.com>.
4163 2001-11-28  Bruno Haible  <bruno@clisp.org>
4165         * locale/programs/simple-hash.c (lookup_2): Remove function.
4166         (insert_entry_2): Call lookup instead of lookup_2.
4168 2001-03-04  Bruno Haible  <bruno@clisp.org>
4170         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
4172 2001-10-31  Bruno Haible  <bruno@clisp.org>
4174         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
4176 2001-03-21  Bruno Haible  <bruno@clisp.org>
4178         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
4179         chokes on empty macro arguments.
4180         * intl/plural.y: Add #pragma for alloca on AIX 3.
4182 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
4184         * intl/dcigettext.c (guess_category_value): Only implement for
4185         glibc.  Otherwise rely on function _nl_locale_name which isn't
4186         present in the glibc sources.
4188 2001-09-24  Bruno Haible  <bruno@clisp.org>
4190         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
4191         transliteration when building on a glibc system but outside glibc.
4193 2001-09-22  Bruno Haible  <bruno@clisp.org>
4195         * intl/plural-eval.c: New file, extracted from dcigettext.c.
4196         * intl/dcigettext.c (plural_eval): Remove function, moved to
4197         intl/plural-eval.c.
4198         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
4199         Include plural-eval.c.
4201 2001-09-22  Bruno Haible  <bruno@clisp.org>
4203         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
4204         don't start with a digit; nplurals must be positive.
4206 2001-09-02  Bruno Haible  <bruno@clisp.org>
4208         * intl/plural-exp.h: New file, extracted from gettextP.h.
4209         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
4210         * intl/gettextP.h (struct expression, struct parse_args,
4211         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
4212         * intl/loadmsgcat.c: Include plural-exp.h.
4213         (PLURAL_PARSE): Move macro to plural-exp.h.
4214         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
4215         plural-exp.c.
4216         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
4217         EXTRACT_PLURAL_EXPRESSION.
4218         (_nl_unload_domain): Update.
4219         * intl/dcigettext.c: Include plural-exp.h.
4220         * intl/plural.y: Include plural-exp.h, not gettextP.h.
4221         (FREE_EXPRESSION): Move macro to plural-exp.h.
4222         * intl/Makefile (routines): Add plural-exp.
4223         (distribute): Add plural-exp.h.
4225 2001-07-28  Bruno Haible  <bruno@clisp.org>
4227         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
4228         isdigit, tolower argument to 'unsigned char'.
4229         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
4230         'unsigned char'.
4231         * intl/localealias.c (read_alias_file): Cast isspace argument to
4232         'unsigned char'.
4234 2001-10-20  Bruno Haible  <bruno@clisp.org>
4236         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
4237         anyway.)
4238         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
4239         with the variable 'index' in plural_lookup.
4240         * intl/l10nflist.c (strchr): Likewise.
4241         * intl/localealias.c (strchr): Likewise.
4243         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
4244         * intl/bindtextdom.c: Likewise.
4245         * intl/dcigettext.c: Likewise.
4246         * intl/dgettext.c: Likewise.
4247         * intl/dngettext.c: Likewise.
4248         * intl/explodename.c: Likewise.
4249         * intl/finddomain.c: Likewise.
4250         * intl/gettext.c: Likewise.
4251         * intl/l10nflist.c: Likewise.
4252         * intl/loadmsgcat.c: Likewise.
4253         * intl/localealias.c: Likewise.
4254         * intl/ngettext.c: Likewise.
4255         * intl/textdomain.c: Likewise.
4256         * intl/gettext.h: Assume <limits.h> exists.
4258 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
4260         * stdio-common/Makefile (tests): Add scanf11.
4261         * stdio-common/scanf11.c: New file.
4263 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
4265         * version.h (RELEASE): Define as development.
4266         (VERSION): Set to 2.2.90.
4268 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
4270         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
4271         * nis/nss_nis/nis-grp.c: Likewise.
4272         * nis/nss_nisplus/nisplus-grp.c: Likewise.
4274         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
4275         * nis/nss_nis/nis-pwd.c: Likewise.
4276         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
4278         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
4279         * nis/nss_nisplus/nisplus-parser.c: Likewise.
4280         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
4282         * nscd/grpcache.c: Use strtoul instead of atol.
4283         * nscd/pwdcache.c: Likewise.
4284         * nss/getent.c: Likewise.
4286 2001-11-27  Paul Eggert  <eggert@twinsun.com>
4288         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
4289         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
4291 2001-11-19  Bruno Haible  <bruno@clisp.org>
4293         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
4294         90%.
4295         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
4296         improves the quality of the hash function, especially for short
4297         strings.
4299 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
4301         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
4302         are found call conv_error and not input_error [PR libc/2669].
4304         * math/bits/mathcalls.h: Mark ceil and floor as const.
4305         Reported by David Mosberger.
4307 2001-11-21  Jim Meyering  <meyering@lucent.com>
4309         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
4310         Define to be __-prefixed.
4311         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
4313 2001-11-26  Andreas Jaeger  <aj@suse.de>
4315         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
4316         avoid warning.
4318 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
4320         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
4321         initialization.
4323         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
4324         unused variables.  Fix threshold for returning 1.0.
4326         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
4327         argument.
4329         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
4330         remove unused variables.
4332         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
4334         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
4335         include local math header files.
4337 2001-11-22  Andreas Jaeger  <aj@suse.de>
4339         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
4340         avoid warning.
4342 2001-11-21  Andreas Jaeger  <aj@suse.de>
4344         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
4346         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
4347         sys/debugreg.h
4349 2001-11-15  Andreas Jaeger  <aj@suse.de>
4351         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
4352         compilers that support it.
4354         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
4355         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
4356         * stdlib/stdlib.h: Likewise.
4358 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
4360         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
4361         statement with gotos.
4362         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
4364 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
4366         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
4368 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
4370         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
4372 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
4373             H.J. Lu  <hjl@gnu.org>
4375         * Versions.def (libc): Add GCC_3.0.
4376         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
4377         if gcc supports this flag.
4378         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
4379         (gcc3): Allow glibc to be compiled with gcc 3.x.
4380         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
4381         * config.make.in (static-libgcc, unwind-find-fde): Add.
4382         * Makerules (build-shlib-helper, build-module-helper): Use it.
4383         * scripts/versions.awk: Make sure GLIBC_ versions come first.
4384         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
4385         necessary.
4386         (_fini): Call __deregister_frame_info_bases if
4387         __register_frame_info_bases was used to register.
4388         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
4389         for GLIBC_2.0.
4390         (__register_frame_info_bases, __register_frame_info_table_bases,
4391         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
4392         * elf/Makefile (routines): Add unwind-dw2-fde.
4393         (shared-only-routines): Add unwind-dw2-fde.
4394         * sysdeps/alpha/gccframe.h: New file.
4395         * sysdeps/arm/gccframe.h: New file.
4396         * sysdeps/generic/framestate.c: New file.
4397         * sysdeps/generic/dwarf2.h: New file.
4398         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
4399         * sysdeps/generic/unwind-dw2-fde.c: New file.
4400         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
4401         * sysdeps/generic/unwind-dw2-fde.h: New file.
4402         * sysdeps/generic/unwind-dw2.c: New file.
4403         * sysdeps/generic/unwind-pe.h: New file.
4404         * sysdeps/generic/unwind.h: New file.
4405         * sysdeps/hppa/gccframe.h: New file.
4406         * sysdeps/i386/gccframe.h: New file.
4407         * sysdeps/m68k/gccframe.h: New file.
4408         * sysdeps/mips/gccframe.h: New file.
4409         * sysdeps/powerpc/gccframe.h: New file.
4410         * sysdeps/s390/gccframe.h: New file.
4411         * sysdeps/sh/gccframe.h: New file.
4412         * sysdeps/sparc/gccframe.h: New file.
4413         * sysdeps/vax/gccframe.h: New file.
4414         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
4415         Set on all architectures except ia64.
4416         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
4417         for i386.
4418         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
4419         __deregister_frame_info): Move to elf/Versions.
4420         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
4421         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
4422         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
4423         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
4424         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
4425         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
4426         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
4427         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
4428         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
4429         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
4430         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
4431         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
4432         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
4433         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
4434         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
4435         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
4436         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
4437         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
4439 2001-11-15  Jeff Law  <law@redhat.com>
4441         * posix/regex.c (uintptr_t): Do not provide a definition if the
4442         system provided one.
4444 2001-11-13  Roland McGrath  <roland@frob.com>
4446         * stdio-common/tmpfile.c: Moved to ...
4447         * sysdeps/generic/tmpfile.c: ... here.
4448         * sysdeps/mach/hurd/tmpfile.c: New file.
4450         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
4451         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
4452         (fopenport): Define as weak alias.
4454         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
4455         * libio/libioP.h: ... to here.
4457 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
4459         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
4460         program header twice.  Construct list with the needed information.
4462 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
4464         * po/ca.po: Update from translation team.
4466         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
4467         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
4468         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
4469         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
4471 2001-11-10  Andreas Jaeger  <aj@suse.de>
4473         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
4474         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
4475         Contributed by Stephen L Moshier <moshier@mediaone.net>.
4477 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
4479         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
4480         correctly.
4481         * elf/dl-load.c (is_dst): New function.
4482         (_dl_dst_count): Use is_dst to check for DST variable.
4483         (_dl_dst_substitute): Likewise.
4485 2001-11-09  Roland McGrath  <roland@frob.com>
4487         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
4488         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
4489         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
4490         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
4491         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
4492         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
4493         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
4494         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
4495         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
4496         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
4497         * sysdeps/mach/hurd/powerpc/Dist: New file.
4499         * hurd/privports.c (__get_privileged_ports):
4500         Only contact the proc server if necessary for this call.
4501         Suggested by Neal H Walfield <neal@cs.uml.edu>.
4502         Check error return for mach_port_mod_refs.
4504 2001-11-09  Andreas Schwab  <schwab@suse.de>
4506         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
4508 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
4510         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
4511         object is always the last in the list.
4512         (_dl_map_object_from_fd): Delete code to remove from object list
4513         when DF_1_NOOPEN is seen.  This is done in lose.
4515 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
4517         * elf/dl-object.c (_dl_new_object): Various small optimizations.
4519 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
4521         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
4522         HWCAP_CHECK macro code.
4524         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
4525         Now returns MAP_FAILED on error.
4526         * elf/rtld.c: Adjust caller.
4527         * sysdeps/generic/dl-cache.c: Likewise.
4528         * sysdeps/generic/ldsodefs.h: Adjust description.
4530         * elf/dl-version.c (match_symbol): Optimize error handling for size.
4531         (_dl_check_map_versions): Likewise.
4533 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
4535         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
4536         _dl_signal_error directly, always use lose.  Set fd to -1 after
4537         file is closed.
4538         (lose): Don't call close if fd == -1.
4540 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
4542         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
4543          Also fix typo @code {mbsinit} to @code{mbsinit}.
4545 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
4547         * elf/dl-profile.c: Replace state variable with simple flag named
4548         running.  Remove commented-out code.
4550         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
4551         (_dl_init_paths): Likewise.
4552         (_dl_map_object_from_fd): Likewise.
4553         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
4555 2001-11-06  Roland McGrath  <roland@frob.com>
4557         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
4558         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
4560         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
4561         sysdeps/powerpc/elf/sysdep.h.
4562         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
4564 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
4566         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
4567         speed.
4568         (process_envvars): Some more optimizations.
4569         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
4571         * elf/elf.h: Add dynamic tag definitions for prelinking.
4573         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
4574         Rewrite code to remove environment varables for SUID binaries.
4575         Small optimization in LD_PROFILE handling.
4576         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
4577         changes.
4578         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
4580         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
4582         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
4583         strings.  Change type of second parameter.
4584         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
4585         for last change.
4587         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
4589 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
4591         * manual/string.texi: Fix typos.
4592         * manual/examples/argp-ex2.c: Likewise.
4594 2001-11-05  Roland McGrath  <roland@frob.com>
4596         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
4597         the more-specific unix/sysv/linux/powerpc file and breaks everything.
4598         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
4599         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
4600         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
4601         here, put under [__ELF__].
4603 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
4605         * manual/charset.texi: Extensive editing work.
4606         * manual/nss.texi: Likewise.
4607         Changes by Dennis Grace <dgrace@us.ibm.com>.
4609 2001-11-04  Roland McGrath  <roland@frob.com>
4611         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
4612         parameter to dir_mkfile.
4614 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
4616         * string/bits/string2.h (__strndup): If n is smaller than len, set
4617         len to n + 1.
4618         * string/tester.c (test_strndup): New function.
4619         (main): Call it.
4621 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
4623         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
4625         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
4626         * scripts/cpp: New file.
4628         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
4629         for rtld_search_dirs content.  Minor optimizations.
4631 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
4633         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
4634         avoiding unnecessary duplication.
4636 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
4638         * elf/dl-load.c (_dl_map_object): If library was found using
4639         LD_LIBRARY_PATH, don't try RUNPATH list.
4641 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4643         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
4644         Correct second argument of register_dump call.
4645         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
4646         Likewise.
4648 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
4650         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
4651         modules.
4652         * iconvdata/TESTS: Likewise.
4653         * iconvdata/gconv-modules: Likewise.
4654         * iconvdata/ibm1132.c: New file.
4655         * iconvdata/ibm1132.h: New file.
4656         * iconvdata/ibm1133.c: New file.
4657         * iconvdata/ibm1133.h: New file.
4658         * iconvdata/ibm1162.c: New file.
4659         * iconvdata/ibm1162.h: New file.
4660         * iconvdata/testdata/IBM1132: New file.
4661         * iconvdata/testdata/IBM1132..UTF8: New file.
4662         * iconvdata/testdata/IBM1133: New file.
4663         * iconvdata/testdata/IBM1133..UTF8: New file.
4664         * iconvdata/testdata/IBM1162: New file.
4665         * iconvdata/testdata/IBM1162..UTF8: New file.
4666         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
4668         * string/string.h: Fix typo in comment.
4669         * wcsmbs/wchar.h: Likewise.
4671 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
4673         * manual/getopt.texi (getopt_long, getopt_long_only): Include
4674         const in type of longopts parameter.
4676 2001-10-29  Andreas Jaeger  <aj@suse.de>
4678         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
4680 2001-10-29  Kevin Ryde  <user42@zip.com.au>
4682         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
4683         output, clarify `#' behaviour on 0.
4684         (Floating-Point Conversions): Clarify that %g only uses %e when
4685         the exponent would be greater than 1.
4687 2001-10-28  Roland McGrath  <roland@frob.com>
4689         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
4690         * sysdeps/mach/powerpc/machine-sp.h: New file.
4691         * sysdeps/mach/powerpc/sysdep.h: New file.
4692         * sysdeps/mach/powerpc/thread_state.h: New file.
4694         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
4695         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
4696         expect to need the same thing on every platform.
4698         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
4699         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
4701         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
4702         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
4703         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
4704         Move all these assembly-related definitions to ...
4705         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
4707         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
4708         by Peter Bruin <pjbruin@dds.nl>.
4710         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
4711         packing results for a `poll' call.
4713 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
4715         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
4716         correctly.
4717         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
4718         bracket expression.
4720         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
4721         nrules value.
4722         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
4724 2001-10-24  H.J. Lu  <hjl@gnu.org>
4726         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
4727         Use __BEGIN_DECLS/__END_DECLS around prototypes.
4728         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
4730 2001-10-21  Jim Meyering  <meyering@lucent.com>
4732         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
4733         this code would end up calling gettext even in packages built
4734         with --disable-nls.
4735         * posix/getopt.c (_): Likewise.
4736         * posix/regex.c (_): Likewise.
4738 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
4740         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
4741         lookup not ip6.int.
4742         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
4743         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
4745 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
4747         * misc/sys/cdefs.h (__attribute_used__): Define.
4748         * elf/rtld.c (_dl_start): Add __attribute_used__.
4749         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
4751 2001-10-25  Andreas Schwab  <schwab@suse.de>
4753         * stdlib/a64l.c: Expect least significant digit first.
4754         * stdlib/l64a.c: Produce least significant digit first.
4755         * stdlib/Makefile (tests): Add test-a64l.
4756         * stdlib/test-a64l.c: New file.
4757         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
4759 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
4761         * po/sk.po: Update from translation team.
4763 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
4765         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
4767 2001-10-18  Andreas Schwab  <schwab@suse.de>
4769         * math/libm-test.inc (print_ulps): Print ulp values rounded to
4770         next whole number.
4771         (print_function_ulps): Likewise.
4772         (print_complex_function_ulps): Likewise.
4773         (print_max_error): Likewise.
4774         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
4776 2001-10-16  Andreas Schwab  <schwab@suse.de>
4778         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
4779         implementation.
4781         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
4782         BSD_SETJMP or BSD__SETJMP is defined, resp.
4783         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
4784         a tail call to __sigsetjmp that would require extending the
4785         caller's frame.
4786         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
4787         * sysdeps/m68k/bsd-setjmp.S: Deleted.
4788         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
4789         Reported by Jes Sorensen <jes@trained-monkey.org>.
4791 2001-10-16  Andreas Jaeger  <aj@suse.de>
4793         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
4794         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
4795         close PR libc/2589.
4797 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
4799         * po/ca.po: New file.  Contributed by the translation team.
4801 2001-10-15  Ralf Baechle  <ralf@gnu.org>
4803         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
4804         a varargs prototype.  Remove dependency from kernel header files.
4806         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
4807         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
4809 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
4811         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
4812         to generate hexadecimal identifier.
4813         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
4815 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
4817         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
4819 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
4821         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
4822         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
4823         Contributed by Stephen L Moshier <moshier@mediaone.net>.
4825         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
4826         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4827         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
4828         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
4829         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
4830         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
4832         * timezone/africa: Update from tzdata2001d.
4833         * timezone/asia: Likewise.
4834         * timezone/australasia: Likewise.
4835         * timezone/backward: Likewise.
4836         * timezone/europe: Likewise.
4837         * timezone/leapseconds: Likewise.
4838         * timezone/northamerica: Likewise.
4839         * timezone/southamerica: Likewise.
4840         * timezone/zone.tab: Likewise.
4842 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4844         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
4845         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
4847 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
4849         * elf/elf.h (PT_TLS): New definition.
4851 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
4853         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
4854         bits/errno.h
4856 2001-10-07  Roland McGrath  <roland@frob.com>
4858         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
4860 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
4862         * elf/elf.h: Add more ELFOSABI_* constants.
4864 2001-10-04  Ben Collins  <bcollins@debian.org>
4866         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
4867         decleration of __need_wchar_t.
4869 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
4871         * string/bits/string2.h (__strsep_g): Add prototype.
4872         (__strsep): Use it.
4873         * string/Versions (__strsep): Remove.
4874         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
4876 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
4878         * manua/llio.texi: Clarify file references added by mmap.
4879         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
4881 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
4883         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
4884         Add sc_loadrs and sc_rbs_bas to match current kernel.
4886 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
4888         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
4890         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
4892 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
4894         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
4895         object has been bumped because of relocation dependency, avoid
4896         duplicates in l_scope.
4897         (show_scope): Fix typos.
4898         * elf/Makefile: Add rules to build and run reldep6.
4899         * elf/reldep6.c: New file.
4900         * elf/reldep6mod0.c: New file.
4901         * elf/reldep6mod1.c: New file.
4902         * elf/reldep6mod2.c: New file.
4903         * elf/reldep6mod3.c: New file.
4904         * elf/reldep6mod4.c: New file.
4906 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
4908         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
4909         sparc64_fixup_plt.
4910         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
4911         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
4912         for non-lazy binding. Fix .plt[32768+] handling.
4913         (elf_machine_plt_value): Don't add addend.
4914         (elf_machine_rela): Call sparc64_fixup_plt instead of
4915         elf_machine_fixup_plt.
4916         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
4917         dynamic linker at 0xfffff800XXXXXXXX.
4919         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
4921 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
4923         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
4925 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
4927         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
4928         declare __cmsg_data field if its size would be bigger than 0.
4929         (CMSG_DATA): Adjust accordingly.
4930         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
4931         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
4932         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
4933         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
4934         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4935         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
4936         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4938 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
4940         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
4941         * iconvdata/testdata/IBM1160: New file.
4942         * iconvdata/testdata/IBM1160..UTF8: New file.
4943         * iconvdata/testdata/IBM1161: New file.
4944         * iconvdata/testdata/IBM1161..UTF8: New file.
4945         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
4947 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
4949         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
4950         UL_SETFSIZE computations better.
4952         * rt/Makefile: Remove use of filter for librt again.
4954         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
4955         UL_SETFSIZE computations better.
4957         * string/Versions: Export __strsep for GLIBC_2.2.5.
4958         * string/bits/string2.h: Define all __STRING_INLINE functions if
4959         _FORCE_INLINES is defined.
4960         Use int instead of char of parameter types.
4961         (__strsep): Don't use __strsep_g.  Don't define it.
4962         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
4963         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
4964         __strcpy_small.
4965         (__stpcpy_a_small): Renamed from __stpcpy_small.
4966         (__strcspn_c1): Don't define if _FORCE_INLINES.
4967         (__strspn_c1): Likewise.
4969 2001-09-22  Ben Collins  <bcollins@debian.org>
4971         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
4972         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
4973         * sysdeps/ia64/bits/sigaction.h: Likewise.
4974         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
4976 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
4978         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
4980 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
4982         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
4984 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
4986         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
4988 2001-09-20  H.J. Lu  <hjl@gnu.org>
4990         * include/dlfcn.h (__RTLD_SPROF): New definiton.
4991         * elf/dl-open.c (dl_open_worker): Return immediately after loading
4992         for __RTLD_SPROF.
4993         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
4994         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
4996 2001-09-20  H.J. Lu  <hjl@gnu.org>
4998         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
4999         don't add 1.
5001 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
5003         * nss/getent.c: Accept -s parameter to overwrite rules in
5004         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
5006         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
5007         with as many ".0" as necessary to form a complete address
5008         inet_network understands.
5010         * nss/getent.c: Various cleanups.  Use simpler and fewer function
5011         calls.
5013 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5015         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
5016         _JMPBUF_UNWINDS.
5017         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
5019 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
5021         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
5022         IBM1161.
5023         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
5024         * iconvdata/ibm1160.c: New file.
5025         * iconvdata/ibm1160.h: New file.
5026         * iconvdata/ibm1161.c: New file.
5027         * iconvdata/ibm1161.h: New file.
5028         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
5030 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
5032         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
5033         difference between base address and first PT_LOAD's virtual address,
5034         not the base address.
5036 2001-09-11  Tom Rix  <trix@redhat.com>
5038         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
5039         ifdef for __getopt_clean_environment.
5040         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
5042 2001-09-22  Andreas Jaeger  <aj@suse.de>
5044         * elf/reldep4.c (main): Add proper prototype to fix warning.
5046         * elf/reldep5.c (main): Remove unused variable.
5048         * math/math_private.h: Add prototypes.
5050 2001-09-21  Andreas Jaeger  <aj@suse.de>
5052         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
5053         * sysdeps/x86_64/Dist: New file.
5054         * sysdeps/x86_64/soft-fp/Dist: New file.
5056         * sysdeps/gnu/Dist: Remove eval.c.
5058 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
5060         * malloc/memusage.c (realloc): Don't count already allocated
5061         memory in the sums.
5062         (me): Always use dlsym() to find the real implementations.
5064         * malloc/memusage.sh: Make -n option actually do something.
5066 2001-09-20  Andreas Jaeger  <aj@suse.de>
5068         * elf/elf.h (R_390_NUM): Correct value.
5070         * Versions.def: Add missing versions 2.2.3 for libthread_db and
5071         libpthread.
5073         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
5074         for x86-64, install x86-64 into */lib64.
5076         * shlib-versions: Add x86-64.
5078         * elf/elf.h: Add x86-64 relocations.
5080 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
5082         * po/fr.po: Update from translation team.
5084 2001-09-19  Andreas Jaeger  <aj@suse.de>
5086         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
5087         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
5088         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
5089         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
5090         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
5091         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
5092         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
5093         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
5094         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
5095         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
5096         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
5097         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
5098         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
5099         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
5100         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
5101         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
5102         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
5103         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
5104         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
5105         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
5106         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
5107         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
5108         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
5109         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
5110         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
5111         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
5112         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
5113         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
5114         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
5115         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
5116         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
5117         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
5118         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
5119         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
5120         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
5121         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
5122         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
5123         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
5124         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
5125         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
5126         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
5127         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
5128         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
5129         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
5130         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
5131         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
5132         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
5133         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
5134         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
5135         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
5136         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
5137         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
5138         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
5139         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
5140         * sysdeps/unix/x86_64/sysdep.S: New file.
5141         * sysdeps/unix/x86_64/sysdep.h: New file.
5142         * sysdeps/x86_64/Implies: New file.
5143         * sysdeps/x86_64/Makefile: New file.
5144         * sysdeps/x86_64/Versions: New file.
5145         * sysdeps/x86_64/__longjmp.S: New file.
5146         * sysdeps/x86_64/abort-instr.h: New file.
5147         * sysdeps/x86_64/atomicity.h: New file.
5148         * sysdeps/x86_64/bits/endian.h: New file.
5149         * sysdeps/x86_64/bits/setjmp.h: New file.
5150         * sysdeps/x86_64/bits/string.h: New file.
5151         * sysdeps/x86_64/bp-asm.h: New file.
5152         * sysdeps/x86_64/bsd-_setjmp.S: New file.
5153         * sysdeps/x86_64/bsd-setjmp.S: New file.
5154         * sysdeps/x86_64/dl-machine.h: New file.
5155         * sysdeps/x86_64/elf/initfini.c: New file.
5156         * sysdeps/x86_64/elf/start.S: New file.
5157         * sysdeps/x86_64/ffs.c: New file.
5158         * sysdeps/x86_64/ffsll.c: New file.
5159         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
5160         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
5161         * sysdeps/x86_64/fpu/e_acosl.c: New file.
5162         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
5163         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
5164         * sysdeps/x86_64/fpu/e_expl.c: New file.
5165         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
5166         * sysdeps/x86_64/fpu/e_log10l.S: New file.
5167         * sysdeps/x86_64/fpu/e_log2l.S: New file.
5168         * sysdeps/x86_64/fpu/e_logl.S: New file.
5169         * sysdeps/x86_64/fpu/e_powl.S: New file.
5170         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
5171         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
5172         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
5173         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
5174         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
5175         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
5176         * sysdeps/x86_64/fpu/fegetenv.c: New file.
5177         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
5178         * sysdeps/x86_64/fpu/fegetround.c: New file.
5179         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
5180         * sysdeps/x86_64/fpu/fesetenv.c: New file.
5181         * sysdeps/x86_64/fpu/fesetround.c: New file.
5182         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
5183         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
5184         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
5185         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
5186         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
5187         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
5188         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
5189         * sysdeps/x86_64/fpu/s_atanl.c: New file.
5190         * sysdeps/x86_64/fpu/s_cosl.S: New file.
5191         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
5192         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
5193         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
5194         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
5195         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
5196         * sysdeps/x86_64/fpu/s_logbl.c: New file.
5197         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
5198         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
5199         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
5200         * sysdeps/x86_64/fpu/s_rintl.c: New file.
5201         * sysdeps/x86_64/fpu/s_significandl.c: New file.
5202         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
5203         * sysdeps/x86_64/fpu/s_sinl.S: New file.
5204         * sysdeps/x86_64/fpu/s_tanl.S: New file.
5205         * sysdeps/x86_64/gmp-mparam.h: New file.
5206         * sysdeps/x86_64/hp-timing.c: New file.
5207         * sysdeps/x86_64/hp-timing.h: New file.
5208         * sysdeps/x86_64/htonl.S: New file.
5209         * sysdeps/x86_64/memusage.h: New file.
5210         * sysdeps/x86_64/setjmp.S: New file.
5211         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
5212         * sysdeps/x86_64/stackinfo.h: New file.
5213         * sysdeps/x86_64/sysdep.h: New file.
5214         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
5216         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
5217         L Moshier.
5219 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
5221         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
5222         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
5224 2001-09-18  Andreas Schwab  <schwab@suse.de>
5226         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
5227         list, now that l_scope is a pointer.
5229         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
5230         scope list.
5232 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
5234         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
5235         (elf_machine_rela_relative): Add a missing declaration.
5237 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
5239         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
5240         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
5241         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
5242         ldd-rewrite scripts.
5244 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
5246         * elf/ldd.bash.in: Update copyright message.
5248 2001-09-17  H.J. Lu  <hjl@gnu.org>
5250         * hurd/hurdmalloc.c (bcopy): Removed.
5251         (realloc): Replace bcopy with memcpy.
5252         * hurd/path-lookup.c (file_name_path_scan): Likewise.
5253         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
5254         * sunrpc/rpcinfo.c (pmapdump): Likewise.
5256         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
5257         (gethostbyaddr): Likewise.
5258         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
5260 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
5262         * sysdeps/gnu/eval.c: Removed.
5264 2001-09-18  Andreas Jaeger  <aj@suse.de>
5266         * sysdeps/i386/fpu/s_logbl.S: Move to ...
5267         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
5269         * sysdeps/i386/fpu/s_rintl.S: Move to ...
5270         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
5272         * sysdeps/i386/fpu/s_significandl.S: Move to ...
5273         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
5275 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
5277         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
5278         nrules value.
5280 2001-09-14  H.J. Lu  <hjl@gnu.org>
5282         * sysdeps/mips/fpu/libm-test-ulps: Updated.
5284 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
5286         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
5287         Patch by Florian La Roche <laroche@redhat.com>.
5289         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
5291         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
5292         ETHER_CRC_LEN.
5294 2001-09-14  Andreas Schwab  <schwab@suse.de>
5296         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
5297         Sumner <bls@sgi.com>.
5298         * posix/execlp.c: Likewise.
5300 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
5302         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
5303         is already found earlier in the search scope.
5305 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
5307         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
5308         filter.
5310 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
5312         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
5314 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
5316         * config.h.in: Enforce optimization to be used.
5317         * Makeconfig (preprocess-versions): Define ASSEMBLER.
5318         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
5319         * posix/Makefile (annexc-CFLAGS): Define to -O.
5320         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
5322 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
5324         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
5325         Patch by Stephan Kulow.
5327 2001-09-08  Ben Collins  <bcollins@debian.org>
5329         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
5330         usage of RESOLVE() (r_type, not reloc->r_type).
5332 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
5334         * elf/dl-object.c: Avoid allocating extra memory block for name.
5335         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
5336         allocated separately.
5337         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
5339 2001-09-08  H.J. Lu  <hjl@gnu.org>
5341         * po/zh_TW.po: Fix a typo.
5343 2001-09-07  Tom Rix  <trix@redhat.com>
5345         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
5347 2001-08-26  Tom Rix  <trix@redhat.com>
5349         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
5350         command line options.
5351         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
5352         * sysdeps/unix/sysv/aix/start.c: Removed.
5353         * sysdeps/unix/sysv/aix/start-libc.c: New file.
5354         * sysdeps/unix/sysv/aix/init-first.c: New file.
5355         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
5357 2001-09-08  Ben Collins  <bcollins@debian.org>
5359         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
5360         * sysdeps/generic/dl-machine.h: Likewise.
5361         * sysdeps/hppa/dl-fptr.c: Likewise.
5362         * sysdeps/ia64/dl-fptr.c: Likewise.
5363         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
5364         * sysdeps/mips/dl-machine.h: Likewise.
5365         * sysdeps/mips/mips64/dl-machine.h: Likewise.
5366         * sysdeps/powerpc/dl-machine.c: Likewise.
5368 2001-09-07  Ben Collins  <bcollins@debian.org>
5370         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
5372         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
5374 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
5376         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
5377         dependencies if necessary.
5379         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
5380         loaded directly) determine length if l_initfini list by iterating
5381         over its elements.  Minor optimizations.
5382         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
5383         for dependency objects.
5384         If object was already loaded check whether any of the dependencies
5385         is already on the relocation dependency list.  If yes, remove the
5386         latter.  Minor optimizations.
5387         * elf/dl-lookup.c (add_dependency): Add check for self reference of
5388         maps here.  Search l_initfini list only if the object was loaded
5389         directly and not only as a dependency.
5390         (_dl_lookup_symbol): Add relocation dependency also if object
5391         is not in global scope.  Remove test for self-reference here.
5392         (_dl_lookup_versioned_symbol): Likewise.
5393         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
5394         element of first name record.
5395         * elf/loadtest.c: Add some more test to recognize early if an object
5396         wasn't unloaded.
5397         * elf/Makefile: Add rules to build and run reldep5.
5398         * elf/reldep5.c: New file.
5399         * elf/reldepmod5.c: New file.
5400         * elf/reldepmod6.c: New file.
5402         * elf/reldep2.c: Fix typo.
5404 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
5406         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
5407         elements.  Change l_scope to be a pointer only.
5408         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
5409         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
5410         here add searchlist of newly open file to the dependency's scope.
5411         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
5412         only searchlist from its scope.  Free own scope array if necessary.
5413         * elf/Makefile (tests): Add dblload and dblunload now.
5415 2001-09-06  Andreas Jaeger  <aj@suse.de>
5417         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
5418         Stephen L Moshier.
5420 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
5422         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
5423         they both fail.
5424         * elf/dblload.c: New file.
5425         * elf/dblloadmod1.c: New file.
5426         * elf/dblloadmod2.c: New file.
5427         * elf/dblloadmod3.c: New file.
5428         * elf/dblunload.c: New file.
5430 2001-09-04  Richard Henderson  <rth@redhat.com>
5432         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
5433         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
5435 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
5437         Correct very misleading message for error in failed runtime relocation.
5438         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
5439         place of the error.
5440         (_dl_signal_cerror): Likewise.
5441         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
5442         * elf/dl-close.c: Likewise.
5443         * elf/dl-deps.c: Likewise.
5444         * elf/dl-load.c: Likewise.
5445         * elf/dl-lookup.c: Likewise.
5446         * elf/dl-open.c: Likewise.
5447         * elf/dl-reloc.c: Likewise.
5448         * elf/dl-sym.c: Likewise.
5449         * elf/dl-version.c: Likewise.
5450         * sysdeps/generic/dl-sysdep.c: Likewise.
5452 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
5454         * iconv/strtab.c (strtabinit): Initialize null Strent.
5455         (newstring): Move len == 0 handling...
5456         (strtabadd): ...here.
5457         If len == 1, return null Strent.
5458         When inserting a suffix of an existing string, check if
5459         it is not equal to some suffix already recorded.
5460         Copy left and right members over if adding longer string.
5462 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
5464         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
5466         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
5467         (__syscall_gethostname): Add prototype.
5469 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
5471         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
5473 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
5475         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
5477 2001-08-27  Roland McGrath  <roland@frob.com>
5479         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
5480         short, copy that much into NAME anyway before returning error.
5482 2001-09-01  Richard Henderson  <rth@redhat.com>
5484         * sysdeps/alpha/elf/Dist: Remove file.
5485         * sysdeps/alpha/elf/Makefile: Remove file.
5486         * sysdeps/alpha/elf/crtbegin.S: Remove file.
5487         * sysdeps/alpha/elf/crtend.S: Remove file.
5488         * sysdeps/alpha/elf/initfini.c: New file.
5490 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
5492         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
5493         * iconv/tst-iconv3.c: Likewise.
5495 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
5497         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
5499 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
5501         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
5502         export it.
5503         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
5504         * iconv/iconv_prog.c (insert_cache): New function.
5505         (print_known_names): If cache is used call insert_cache to use the
5506         information from the cache [PR libc/2509].
5508 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
5510         * time/strptime.c (strptime_internal): Recognize 'l' format and
5511         handle it like 'I' for symmetry with strftime.
5513 2001-08-31  Richard Henderson  <rth@redhat.com>
5515         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
5516         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
5517         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
5518         (print_statistics): Make scalar unsigned long long.
5519         * sysdeps/alpha/hp-timing.h: New file.
5521 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
5523         * stdio-common/perror.c (perror): Save errno early, pass it
5524         down to perror_internal.
5525         (perror_internal): Add errnum argument.
5527 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
5529         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
5530         Don't add old memory content for R_ALPHA_REFQUAD.
5532 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
5534         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
5535         memory correctly.
5537         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
5538         instead of open, __close instead of close, __getpagesize instead
5539         of getpagesize.
5541         * string/argz-stringify.c (__argz_stringify): Use __strnlen
5542         instead of strnlen.
5543         * include/string.h (strndupa): Redefine here to use __strnlen
5544         instead of strnlen.
5545         * string/strndup.c (__strndup): Use __strnlen not strnlen.
5547         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
5548         connected).
5550 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
5552         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
5553         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
5554         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
5555         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
5556         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
5557         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
5558         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
5560 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
5562         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
5564 2001-08-30  Andreas Jaeger  <aj@suse.de>
5566         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
5567         contributed Stephen L Moshier.
5569 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
5571         * sunrpc/etc.rpc (sgi_fam): Add.
5573 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
5575         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
5577 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
5579         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
5580         first is from a previous call.
5581         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
5583 2001-08-29  Andreas Schwab  <schwab@suse.de>
5585         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
5587 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5589         * config.make.in (INSTALL_SCRIPT): Define.
5590         * Makeconfig (INSTALL_SCRIPT): Define.
5591         * Makerules (do-install-script): New macro to install scripts using
5592         INSTALL_SCRIPT.
5593         (install-bin-script): New rule to install scripts with
5594         do-install-script.
5595         (install-bin-script-nosubdir): New rule.
5596         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
5597         (distinfo-vars): Add $(install-bin-script).
5598         * Rules (others): Likewise.
5599         * Makefile (glibcbug): Install with install-bin-script.
5600         * debug/Makefile (xtrace): Likewise.
5601         (catchsegv): Likewise.
5602         * elf/Makefile (ldd): Likewise.
5603         * malloc/Makefile (mtrace): Likewise.
5604         * timezone/Makefile (tzselect): Likewise.
5606 2001-08-29  H.J. Lu  <hjl@gnu.org>
5608         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
5609         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
5610         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
5612 2001-08-29  Andreas Schwab  <schwab@suse.de>
5614         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
5616 2001-08-28  H.J. Lu  <hjl@gnu.org>
5618         * Makeconfig (combreloc-LDFLAGS): New variable.
5619         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
5620         * config.make.in (have-z-combreloc): New variable.
5621         * configure.in: Substitute libc_cv_z_combreloc.
5623 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
5625         * po/sv.po: Update from translation team.
5626         * po/fr.po: Likewise.
5627         * po/da.po: Likewise.
5629 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5631         * Makerules: Fix a typo: MD% -> MD5.
5633 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
5635         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
5636         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
5638 2001-08-28  Andreas Jaeger  <aj@suse.de>
5640         * manual/libc-texinfo.sh: Add entry about free manuals.
5642         * manual/contrib.texi (Contributors): Fix cross reference.
5644         * manual/libc.texinfo (Copying): Include freemanuals.
5646         * manual/Makefile (appendices): Add freemanuals.
5648         * manual/freemanuals.texi: New file.
5649         Patch by Brian Youmans <3diff@gnu.org>.
5651         * manual/libm-err-tab.pl: Pretty print more platforms, print a
5652         smaller table.
5654         * manual/math.texi (Errors in Math Functions): Fix grammar, start
5655         table on separate page.
5656         Patch by Brian Youmans <3diff@gnu.org>.
5658 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
5660         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
5661         the connection went down after we first used it try to connect
5662         again and resend the message before printing to the console.
5663         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
5665 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
5667         * string/tst-strlen.c (main): Test strnlen (, -1) too.
5668         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
5669         bit set.
5671 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
5673         * iconv/strtab.c (searchstring): Use correct length for comparison.
5674         (strtabadd): Account total size correct if new string has old string as
5675         substring.
5677 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
5679         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
5681 2001-08-27  Andreas Jaeger  <aj@suse.de>
5683         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
5685         * math/libm-test.inc (j0_test): Add extra tests.
5686         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
5687         not x, in Hankel approximation.
5688         Patches by Stephen L Moshier.
5690 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
5692         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
5693         link_map.
5695         * configure.in: Fix test for .rela.dyn section.
5697         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
5699 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
5701         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
5702         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
5703         Pass type_class to _dl_lookup_*.
5704         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
5705         Pass around just type_class instead of noexec, noplt pair.
5706         (_dl_lookup_versioned_symbol): Likewise.
5707         (_dl_lookup_symbol_skip): Pass around just type_class instead of
5708         noexec, noplt pair.
5709         (_dl_lookup_versioned_symbol_skip): Likewise.
5710         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
5711         * elf/do-lookup.h (do_lookup): Likewise.
5712         * include/link.h (struct link_map): Replace noexec and noplt fields
5713         in l_lookup_cache with type_class field.
5714         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
5715         ELF_RTYPE_CLASS_COPY): Define.
5716         Adjust prototypes for _dl_lookup_symbol and
5717         _dl_lookup_versioned_symbol.
5718         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
5719         elf_machine_lookup_noexec_p): Remove.
5720         (elf_machine_type_class): Define.
5721         * sysdeps/arm/dl-machine.h: Likewise.
5722         * sysdeps/hppa/dl-machine.h: Likewise.
5723         * sysdeps/cris/dl-machine.h: Likewise.
5724         * sysdeps/i386/dl-machine.h: Likewise.
5725         * sysdeps/ia64/dl-machine.h: Likewise.
5726         * sysdeps/m68k/dl-machine.h: Likewise.
5727         * sysdeps/mips/mips64/dl-machine.h: Likewise.
5728         * sysdeps/mips/dl-machine.h: Likewise.
5729         * sysdeps/powerpc/dl-machine.h: Likewise.
5730         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
5731         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
5732         * sysdeps/sh/dl-machine.h: Likewise.
5733         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
5734         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5736 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
5738         * manual/message.texi (Advanced gettext functions): Change
5739         description of plural forms for Slovak.
5740         Reported by Marcel Telka <marcel@telka.sk>.
5742         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
5743         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
5745 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
5747         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
5748         typo.  Patch by Florian La Roche <laroche@redhat.com>.
5750 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
5752         * include/link.h (struct link_map): Add l_lookup_cache element.
5753         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
5754         (RESOLVE_MAP): Likewise.
5755         (_dl_relocate_object): Remove cache initialization.
5756         * elf/dl-lookup.c: Rip out cache handling code.
5757         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
5758         declarations.
5760         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
5761         remove some __builtin_expect.
5762         (_dl_lookup_versioned_symbol): Likewise.
5764         * config.h.in: Add HAVE_Z_COMBRELOC.
5765         * configure.in: Add test for -z combreloc.
5767         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
5768         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
5769         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
5770         case to almost no code.
5772 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
5774         * po/tr.po: Update from translation team.
5776 2001-08-24  Andreas Jaeger  <aj@suse.de>
5778         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
5779         make clean works.
5781 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
5783         * elf/rtld.c (print_statistics): Printf % after percent values.
5784         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
5786         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
5787         don't have to compute the hash value and initialize current_value.
5788         Move reference_name variable to where it is needed.
5789         (_dl_lookup_versioned_symbol): Likewise.
5791 2001-08-24  Roland McGrath  <roland@frob.com>
5793         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
5794         Just test that strerror returns non-null for a few errno codes.
5796 2001-08-23  Roland McGrath  <roland@frob.com>
5798         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
5799         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
5801         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
5803         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
5804         __mach_reply_port.
5806 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
5808         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
5809         returns NULL.
5811         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
5812         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
5813         doesn't do it.
5814         * elf/rtld.c: Include <sys/param.h>.
5815         * elf/dl-reloc.c: Likewise.
5817 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5819         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
5820         empty to prevent junk from being generated.
5821         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
5823 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
5825         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
5826         records.  Rename endrel to relative, initialize it to r, and use it
5827         in elf_machine_rel_relative calls.  Point r after relative relocs.
5829 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
5831         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
5832         of R_386_NONE.
5834 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
5836         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
5837         necessary.  Undefine newly defined macros at the end.
5838         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
5839         Rename from elf_machine_rel_relative.
5840         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
5841         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
5842         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
5843         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
5844         Likewise.
5845         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
5846         Likewise.
5847         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
5848         Fix argument types.
5849         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
5850         Fix argument types.
5851         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
5852         Likewise.  Fix argument types.
5853         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
5854         Likewise.  Fix argument types.
5855         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
5856         Fix argument types.
5857         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
5858         ElfW(Rel) in argument.
5859         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
5860         function.
5862 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
5864         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
5866 2001-08-24  Andreas Jaeger  <aj@suse.de>
5868         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
5869         Stephen L Moshier <moshier@mediaone.net>.
5871 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
5873         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
5874         first if RELCOUNT is set.
5876         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
5877         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
5878         elf_machine_rel_relative.
5879         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
5880         Minor optimizations.
5881         * sysdeps/arm/dl-machine.h: Likewise.
5882         * sysdeps/cris/dl-machine.h: Likewise.
5883         * sysdeps/hppa/dl-machine.h: Likewise.
5884         * sysdeps/i386/dl-machine.h: Likewise.
5885         * sysdeps/ia64/dl-machine.h: Likewise.
5886         * sysdeps/m68k/dl-machine.h: Likewise.
5887         * sysdeps/mips/dl-machine.h: Likewise.
5888         * sysdeps/powerpc/dl-machine.h: Likewise.
5889         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
5890         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5891         * sysdeps/sh/dl-machine.h: Likewise.
5892         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
5893         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
5895 2001-08-23  Roland McGrath  <roland@frob.com>
5897         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
5899         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
5900         sysdeps/mach version.  Implement counting ("recursive") mutexes
5901         on top of cthreads mutexes.
5902         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
5904         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
5905         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
5906         (__libc_cleanup_region_start, __libc_cleanup_region_end,
5907         __libc_clean_end): Define these to call the cleanup function after
5908         normal exit when they're supposed to.
5910         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
5911         Take new first arg DOIT, a boolean saying whether to really install
5912         any cleanup handler.
5913         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
5914         (__libc_cleanup_end): Likewise.
5915         * sysdeps/generic/bits/libc-lock.h: Same changes.
5916         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
5917         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
5918         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
5919         Likewise.
5920         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
5921         * sysdeps/generic/bits/stdio-lock.h
5922         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
5924 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
5926         * elf/ldconfig.c (search_dir): Remove stale symlinks.
5928 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
5930         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
5931         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
5932         lookups in cache.
5933         (_dl_lookup_versioned_symbol): Likewise.
5934         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
5935         relocation lookup.
5936         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
5937         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
5938         (lookup_cache, lookup_cache_versioned): Add declarations.
5940 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
5942         * stdlib/tst-random.c (main): Swap parameters in fail call.
5943         Patch by Pete Bevin <pete@petebevin.com>.
5945 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
5947         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
5949 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
5951         * malloc/obstack.c: Indent preprocessor directives.
5952         Patch by Jim Meyering <meyering@ascend.com>.
5954         * po/ja.po: Update from translation team.
5956 2001-08-23  Roland McGrath  <roland@frob.com>
5958         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
5960         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
5961         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
5963 2001-08-22  Roland McGrath  <roland@frob.com>
5965         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
5966         __libc_lock_define_recursive.
5967         * elf/dl-open.c: Don't declare it here any more.
5968         * elf/dl-close.c: Likewise.
5969         * elf/dl-lookup.c: Likewise.
5970         * elf/dl-iteratephdr.c: Likewise.
5971         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
5972         __libc_lock_unlock_recursive.
5973         * elf/dl-close.c (_dl_close): Likewise
5974         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
5975         * elf/dl-open.c (_dl_open): Likewise
5977         * sysdeps/generic/bits/libc-lock.h
5978         (__libc_lock_define_recursive): New macro.
5979         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
5980         (_IO_lock_lock): Use __libc_lock_lock_recursive.
5981         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
5983         * conform/conformtest.pl (checknamespace): Sort the output list.
5985         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
5986         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
5987         definitions conditional on [__USE_XOPEN].
5989         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
5990         these unconditionally, not only use [__USE_BSD], so as to match
5991         the sysdeps/unix/sysv/linux files.
5993 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
5995         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
5996         avoid warnings.
5998         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
5999         DL_LOOKUP_ADDRESS.
6001 2001-08-22  Roland McGrath  <roland@frob.com>
6003         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
6004         conditionalization of sa_handler/sa_sigaction member types to
6005         match the sysdeps/unix/sysv/linux file.
6007 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
6009         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
6010         symbol sizes a bit better.
6012         * sysdeps/ia64/strncpy.S: Complete rewrite.
6013         Contributed by Jakub Jelinek <jakub@redhat.com>.
6015         * string/stratcliff.c (main): Add strncpy test.
6017 2001-08-22  Roland McGrath  <roland@frob.com>
6019         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
6020         and don't declare unsetenv or _environ directly.
6021         (unsetenv): Return int, not void.  Use __environ instead of _environ.
6023 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
6025         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
6026         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
6027         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
6028         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
6029         test for cmsg struct size.
6031 2001-04-23  Paul Eggert  <eggert@twinsun.com>
6033         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
6034         Rename __argc to ___argc in prototypes to avoid compatibility
6035         problems with systems that reserve the identifier "__argc".
6036         Similarly for __argv.
6038 2001-08-21  Roland McGrath  <roland@frob.com>
6040         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
6042         * mach/Makefile (tests): Removed.
6043         * mach/hello.c: File removed.
6045 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
6047         * po/sv.po: Update from translation team.
6049         * stdio-common/vfscanf.c: Fix handling of %l[].
6050         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
6052         * libio/Makefile (tests): Add tst-sscanf.
6053         * libio/tst-sscanf.c: New file.
6055         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
6056         * malloc/mtrace.c (tr_where): dli_sname always points to a
6057         non-empty string if != NULL.
6058         Reported by Tim Janik <timj@gtk.org>.
6060 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
6062         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
6063         buf.  Free resources on failure.
6064         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
6065         (makefd_xprt): Likewise.
6066         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
6067         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
6068         * sunrpc/auth_unix.c (authunix_create): Likewise.
6070 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
6072         * string/strnlen.c: Remove.
6073         * sysdeps/generic/strnlen.c: New file.
6074         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
6076 2001-08-21  Roland McGrath  <roland@frob.com>
6078         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
6079         as a macro, not an extern inline function.
6081         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
6082         * Versions.def (libc): Add GLIBC_2.2.5 set.
6083         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
6084         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
6086 2001-08-20  Roland McGrath  <roland@frob.com>
6088         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
6089         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
6091 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
6093         * string/bits/string2.h: Remove strnlen optimization here.
6094         * sysdeps/i386/i486/bits/string.h: Add it here.
6096 2001-08-21  Wolfram Gloger  <wg@malloc.de>
6098         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
6100 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
6102         * po/gl.po: Update from translation team.
6104 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
6106         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
6107         * misc/err.c (convert_and_print): Likewise.
6109         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
6110         function calls.
6112 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6114         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
6115         change of the gregset_t type.
6116         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
6118 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
6120         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
6122 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
6124         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
6126         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
6128 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
6130         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
6131         before calling the cthreads initialization code.
6133 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
6135         * argp/argp-help.c: Fix two problems introduced in last change.
6137         * include/dirent.h: Include <dirstream.h> first.
6139 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
6141         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
6143         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
6144         * sunrpc/xdr_rec.c: Likewise.
6145         * sunrpc/xdr_mem.c: Likewise.
6146         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
6147         * sunrpc/rpc_cmsg.c: Likewise.
6148         * sunrpc/getrpcport.c (getrpcport): Likewise.
6149         * sunrpc/clnt_simp.c (callrpc): Likewise.
6150         * sunrpc/clnt_gen.c (clnt_create): Likewise.
6151         * string/envz.c: Likewise.
6153         * po/ko.po: Update from translation team.
6155         * argp/argp-help.c: Handle wide oriented stderr stream.
6157 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
6159         * sysdeps/generic/strtol.c: Little optimizations.  Add some
6160         __builtin_expect.
6162         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
6164         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
6165         * wcsmbs/wcwidth.c (wcwdith): Likewise.
6166         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
6168         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
6170         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
6172         * time/time.h (struct timespec): Use __time_t for tv_sec element.
6174         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
6175         wchar_t for function declarations and defintions.
6177         * misc/sys/select.h: Define __need_time_t before including <time.h>.
6178         Define suseconds_t if it hasn't happened yet.
6180         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
6182         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
6184         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
6185         <stddef.h>.
6187         * conform/data/stddef.h-data: Remove wint_t.
6189         * conform/conformtest.pl: Change namespace test to take #undef
6190         lines into account.
6192         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
6194         * conform/data/sys/socket.h-data: Add sockatmark.
6196 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
6198         * io/fts.c: Update from recent BSD source.
6200 2001-08-17  Roland McGrath  <roland@frob.com>
6202         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
6203         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
6204         Likewise.
6206 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
6208         * locale/duplocale.c (__duplocale): Also initialize the special
6209         __ctype_* elements.
6211         * conform/data/netdb.h-data: Adjust gai_strerror return type.
6213 2001-08-17  Andreas Jaeger  <aj@suse.de>
6215         * misc/getpass.c: Include wchar.h for prototypes.
6216         * malloc/obstack.c: Likewise.
6218 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
6220         * sunrpc/svc_simple.c (universal): Use __write instead of write.
6222         * wcsmbs/wcscoll.c: Also define __wcscoll.
6223         * include/wchar.h: Declare __wcscoll.
6225         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
6226         * libio/vwprintf.c: Likewise.
6227         * libio/wprintf.c: Likewise.
6229         * iconv/gconv_cache.c: Use __munmap instead of munmap.
6231 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
6233         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
6234         instead of mbrtowc.
6235         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
6236         wcslen, and __wcscoll instead of wcscoll.
6238         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
6240         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
6241         __getuid instead of getuid.
6243         * stdio-common/perror.c (perror): Use __close instead of close.
6244         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
6245         * libio/freopen.c (freopen): Likewise.
6246         * libio/freopen64.c (freopen64): Likewise.
6248         * libio/tst-ungetwc2.c (main): Define str const.
6250         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
6251         * libio/fwprintf.c: Also define __fwprintf.
6252         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
6253         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
6254         * assert/assert-perr.c: Likewise.
6255         * assert/assert.c: Likewise.
6256         * gmon/gmon.c: Likewise.
6257         * inet/rcmd.c: Likewise.
6258         * malloc/obstack.c: Likewise.
6259         * misc/err.c: Likewise.
6260         * misc/error.c: Likewise.
6261         * misc/getpass.c: Likewise.
6262         * posix/getopt.c: Likewise.
6263         * resolv/res_hconf.c: Likewise.
6264         * stdio-common/perror.c: Likewise.
6265         * stdio-common/psignal.c: Likewise.
6266         * stdlib/fmtmsg.c: Likewise.
6267         * sunrpc/auth_unix.c: Likewise.
6268         * sunrpc/clnt_perr.c: Likewise.
6269         * sunrpc/clnt_tcp.c: Likewise.
6270         * sunrpc/clnt_udp.c: Likewise.
6271         * sunrpc/clnt_unix.c: Likewise.
6272         * sunrpc/svc_simple.c: Likewise.
6273         * sunrpc/svc_tcp.c: Likewise.
6274         * sunrpc/svc_udp.c: Likewise.
6275         * sunrpc/svc_unix.c: Likewise.
6276         * sunrpc/xdr.c: Likewise.
6277         * sunrpc/xdr_array.c: Likewise.
6278         * sunrpc/xdr_rec.c: Likewise.
6279         * sunrpc/xdr_ref.c: Likewise.
6280         * sysdeps/generic/wordexp.c: Likewise.
6282         * po/it.po: Update from translation team.
6284         * misc/err.c: Handle wide oriented stderr stream.
6286 2001-08-14  Tom Rix  <trix@redhat.com>
6288         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
6289         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
6291 2001-08-13  Tom Rix  <trix@redhat.com>
6293         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
6294         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
6295         and __intptr_t.
6297 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6299         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
6300         Store the access registers to the ucontext structure.
6301         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
6302         Likewise.
6304         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
6305         Load the access registers from the ucontext structure.
6306         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
6307         Likewise.
6309         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
6310         offsets to the new ucontext layout.
6311         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
6313         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
6314         of the ucontext structure.
6315         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
6317 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
6319         * misc/error.c (error): Handle wide oriented stderr stream correctly.
6320         (error_at_line): Likewise.
6322         * stdio-common/perror.c (perror): Implement according to standard.
6323         The stream orientation must not be changed if the stream was not
6324         oriented before the call.
6325         * stdio-common/Makefile (tests): Add tst-perror.
6326         * stdio-common/tst-perror.c: New file.
6329 See ChangeLog.12 for earlier changes.