Update.
[glibc.git] / ChangeLog
blob92181ae5a4915ce91dfdf7528b70c0f4003101d5
1 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
3         * include/sys/stat.h: Add prototypes for __lxstat_internal and
4         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
5         NOT_IN_libc.
6         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
7         * sysdeps/mach/hurd/lxstat.c: Likewise.
8         * sysdeps/unix/common/lxstat.c: Likewise.
9         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
10         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
11         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
12         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
13         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
14         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
15         * sysdeps/mach/hurd/lxstat64.c: Likewise.
16         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
17         * sysdeps/unix/sysv/linuxx/lxstat64.c: Likewise.
19         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
20         prototypes.  Add __mbrlen and __mbrtowc macros.
21         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
22         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
24         * include/unistd.h: Add prototype for __write_internal and add
25         __libc_write macro is SHARED.
26         * sysdeps/generic/write.c: Use INTDEF for __write.
27         * sysdeps/mach/hurd/write.c: Likewise.
28         * sysdeps/unix/sysv/aix/write.c: Likewise.
29         * sysdeps/unix/syscalls.list: Add __libc_write alias.
31         * assert/assert.c: Replace STR_N_SIZE with something usable in
32         macro arguments.
33         * assert/assert-perr.c: Likewise.
35         * include/sys/socket.h: Declare __libc_sa_len_internal and define
36         SA_LEN macro to use it if not NOT_IN_libc.
37         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
39         * include/fcntl.h: Declare __open_internal and define __open and
40         __libc_open macros if not NOT_IN_libc.
41         * sysdeps/generic/open.c: Use INTDEF for __open.
42         * sysdeps/mach/hurd/open.c: Likewise.
43         * sysdeps/unix/sysv/aix/open.c: Likewise.
44         * sysdeps/unix/syscalls.list: Add __open_internal alias.
46         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
47         has correct number.
49         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
50         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
51         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
52         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
54         * include/wctype.h: Declare __iswalpha_l_internal,
55         __iswdigit_l_internal, __iswspace_l_internal,
56         __iswxdigit_l_internal, and __iswctype_internal.  Define
57         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
58         __iswxdigit_l macros if not NOT_IN_libc.
59         * wctype/iswctype.c: Use INTDEF for __iswctype.
60         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
62         * include/math.h: Declare __isinf_internal, __isinfl_internal,
63         __isnan_internal, and __isnanl_internal.
64         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
65         __isnan, and __isnanl.
66         * stdio-common/printf_size.c: Likewise.
67         * sysdeps/generic/printf_fphex.c: Likewise.
68         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
69         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
70         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
71         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
72         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
73         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
74         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
75         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
76         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
77         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
78         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
79         * sysdeps/m68k/s_isinfl.c: Likewise.
80         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
81         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
83         * include/sys/time.h: Declare __gettimeofday_internal and define
84         __gettimeofday macro if not NOT_IN_libc.
85         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
86         * sysdeps/mach/gettimeofday.c: Likewise.
87         * sysdeps/posix/gettimeofday.c: Likewise.
88         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
89         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
90         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
91         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
93         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
94         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
95         Remove __lstat and __fstat inline functions.
96         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
97         * sysdeps/mach/hurd/fxstat.c: Likewise.
98         * sysdeps/unix/fxstat.c: Likewise.
99         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
100         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
101         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
102         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
103         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
104         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
105         * sysdeps/mach/hurd/fxstat64.c: Likewise.
106         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
107         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
109         * include/unistd.h: Declare __getpid_internal and define
110         __getpid macro if not NOT_IN_libc.
111         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
112         * sysdeps/generic/getpid.c: Likewise.
113         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
114         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
116         * include/unistd.h: Declare __getpgid_internal and define
117         __getpgid macro if not NOT_IN_libc.
118         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
119         * sysdeps/mach/hurd/getpgid.c: Likewise.
120         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
121         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
122         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
123         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
125         * include/unistd.h: Declare __getpagesize_internal and define
126         __getpagesize macro if not NOT_IN_libc.
127         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
128         __getpagesize.
129         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
130         * sysdeps/mach/getpagesize.c: Likewise.
131         * sysdeps/posix/getpagesize.c: Likewise.
132         * sysdeps/unix/getpagesize.c: Likewise.
133         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
134         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
135         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
136         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
138 2002-04-13  Andreas Jaeger  <aj@suse.de>
140         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
141         as clobber to reduce register pressure.
142         (__strpbrk_cg): Likewise.
143         (__mempcpy_by4): Likewise.
144         (__strstr_cg): Likewise.
145         Add prototype for __memrchr.
147 2002-04-13  Andreas Schwab  <schwab@suse.de>
149         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
150         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
151         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
153 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
155         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
156         check whether the caller prefers getting the most recent version of
157         a symbol of the earliest version.
158         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
159         _dl_do_lookup to also take the new parameter and pass it on.
160         Change 'explicit' parameter of _dl_lookup_symbol and
161         _dl_lookup_versioned_symbol to flags.  Adjust tests.
162         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
163         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
164         _dl_lookup_versioned_symbol.
165         * elf/dl-reloc.c: Likewise.
166         * elf/dl-runtime.c: Likewise.
167         * elf/dl-sym.c: Likewise.
168         * sysdeps/mips/dl-machine.h: Likewise.
170 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
172         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
173         in a token.
174         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
176 2002-04-10  Andreas Jaeger  <aj@suse.de>
178         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
180         * include/argz.h: Remove extra char from last patch.
182 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
184         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
185         * sysdeps/unix/sysv/aix/chown.c: Likewise.
186         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
187         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
188         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
189         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
190         __chown_internal.
191         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
193         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
194         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
195         * intl/ngettext.c: Likewise.
197         * include/sys/socket.h: Declare __connect_internal and define
198         __connect macro if not NOT_IN_libc.
199         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
200         * sysdeps/unix/sysv/aix/connect.c: Likewise.
201         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
203         * include/unistd.h: Declare __close_internal and define __close macro
204         if not NOT_IN_libc.
205         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
206         WJUMP3): Add extra parenthesis to avoid expanding element names with
207         macors like __close.
208         * sysdeps/unix/syscalls.list: Add __close_internal alias.
210         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
211         if not NOT_IN_libc.
212         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
213         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
214         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
216         * include/unistd.h: Declare __fork_internal and define __fork macro
217         if not NOT_IN_libc.
218         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
219         * sysdeps/unix/sysv/aix/fork.c: Likewise.
220         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
222         * include/stdio_ext.h: Declare __fsetlocking_internal and define
223         __fsetlocking macro to use it if not NOT_IN_libc.
224         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
226         * libio/__fbufsize.c: Correct copyright.
227         * libio/__flbf.c: Likewise.
228         * libio/__fpending.c: Likewise.
229         * libio/__fpurge.c: Likewise.
230         * libio/__freadable.c: Likewise.
231         * libio/__freading.c: Likewise.
232         * libio/__fsetlocking.c: Likewise.
233         * libio/__fwritable.c: Likewise.
234         * libio/__fwriting.c: Likewise.
236         * include/stdio.h: Declare __asprintf_internal and define __asprintf
237         macro to use it if not NOT_IN_libc.
238         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
240         * include/mntent.h: Declare __setmntent_internal,
241         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
242         __getmntent_r, and __endmntent macros to use these functions if not
243         NOT_IN_libc.
244         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
245         __endmntent.
247         * include/math.h: Declare __finite_internal, __finitef_internal, and
248         __finitel_internal.  Redefine isfinite macro if in libc or libm using
249         these functions.
250         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
251         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
252         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
253         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
254         * sysdeps/i386/fpu/s_finitef.S: Likewise.
255         * sysdeps/i386/fpu/s_finitel.S: Likewise.
256         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
257         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
258         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
259         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
261         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
262         to use this function if not NOT_IN_libc.
263         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
264         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
265         * sysdeps/mach/hurd/fcntl.c: Likewise.
266         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
267         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
269         * include/argz.h: Declare __argz_count_internal and
270         __argz_stringify_internal.
271         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
272         __argz_stringify.
273         * string/argz-count.c: Use INTDEF for __argz_count.
274         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
276         * include/stdlib.h: Declare __cxa_atexit_internal and define
277         __cxa_atexit macro if not NOT_IN_libc.
278         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
279         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
281         * assert/assert.c: Use INTDEF for __assert_fail.
282         * assert/__assert.c: Use INTUSE for call to __assert_fail.
283         * include/assert.h: Declare __assert_fail_internal.
285         * extra-lib.mk: Mark assignment to lib with override.
287 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
289         * Makerules: Use cppflags-iterator.mk to add defines for all test
290         source files.
292 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
294         * elf/elf.h: Define R_SH_TLS_xxx macros.
295         * elf/rtld.c: Remove an extra parenthesis.
296         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
297         TLS_GD macros.
298         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
299         * sysdeps/sh/dl-lookupcfg.h: New file.
300         * sysdeps/sh/dl-tls.h: New file.
301         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
302         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
303         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
304         R_SH_TLS_TPOFF32 relocations.
306 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
308         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
309         of NOT_IN_LIBC.
310         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
311         * include/stdlib.h: Likewise.
313 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
315         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
316         instead of _RTLD_LOCAL.
317         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
318         * include/unistd.h: Likewise.
319         * sysdeps/generic/ldsodefs.h: Likewise.
321         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
322         if in libc or ld.so.
324 2002-04-08  Andreas Jaeger  <aj@suse.de>
326         * elf/cache.c (print_entry): Support x86-64.
328 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
330         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
331         with one accessing the locale data structures directly.
332         * stdio-common/printf-prs.c: Include localeinfo.h for new
333         MB_CUR_MAX definition.
335         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
336         is the name of the source file without extension.
337         * Makefile (distribute): Add cppflags-iterator.mk.
338         * cppflags-iterator.mk: New file.
339         * extra-lib.mk: For the sources of the library run
340         cppflags-iterator.mk.
342         * include/libintl.h: Declare __dcgettext_internal and
343         _libc_intl_domainname_internal.  Define __dcgettext using these
344         two symbols if used in libc itself.
345         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
346         _libc_intl_domainname_internal.
347         * argp/argp-parse.c: Likewise.
348         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
349         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
350         * intl/gettext.c: Likewise.
351         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
352         alias.
353         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
354         __dcgettext.
355         * posix/regex_internal.c (gettext): Likewise.
357 2002-04-08  Andreas Jaeger  <aj@suse.de>
359         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
361         * sysdeps/x86_64/fpu/s_llrint.S: New.
362         * sysdeps/x86_64/fpu/s_llrintf.S: New.
363         * sysdeps/x86_64/fpu/s_llrintl.S: New.
364         * sysdeps/x86_64/fpu/s_lrint.S: New.
365         * sysdeps/x86_64/fpu/s_lrintf.S: New
366         * sysdeps/x86_64/fpu/s_lrintl.S: New.
368 2002-04-08  Roland McGrath  <roland@frob.com>
370         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
371         widening __hurd_fail value.
373 2002-04-07  Roland McGrath  <roland@frob.com>
375         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
376         <mach/machine/alpha_instruction.h>.
377         (_hurd_setup_sighandler): Take proper arguments for current decls.
378         Update code to use _hurdsig_catch_fault.
379         Use `callsys' instruction instead of `call_pal'.
380         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
382         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
383         (ALIGN, at, AT, fp): New macros.
385 2002-04-06  Roland McGrath  <roland@frob.com>
387         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
389         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
390         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
392         * sysdeps/mach/hurd/bind.c: Use prototype definition.
393         * sysdeps/mach/hurd/connect.c: Likewise.
394         * sysdeps/mach/hurd/getsockopt.c: Likewise.
395         * sysdeps/mach/hurd/setsockopt.c: Likewise.
397         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
398         __msg_sig_post RPC.
400         * hurd/catch-exc.c: Use integer_t instead of int.
401         * hurd/hurdfault.c: Likewise.
403         * sysdeps/mach/hurd/alpha/exc2signal.c
404         (_hurd_exception2signal): Rewritten.
405         * sysdeps/mach/hurd/alpha/longjmp-ts.c
406         (_hurd_longjmp_thread_state): Rewritten.
408 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
410         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
411         DB_LOOKUP_FCT prototype.
412         * nss/getXXent_r.c: Likewise.
413         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
414         * inet/getaliasname_r.c: Likewise.
415         * inet/getnetbyad_r.c: Likewise.
416         * inet/getnetbynm_r.c: Likewise.
417         * inet/getnetent_r.c: Likewise.
418         * inet/getproto_r.c: Likewise.
419         * inet/getprtent_r.c: Likewise.
420         * inet/getprtname_r.c: Likewise.
421         * inet/getrpcbyname_r.c: Likewise.
422         * inet/getrpcbynumber_r.c: Likewise.
423         * inet/getrpcent_r.c: Likewise.
424         * inet/getservent_r.c: Likewise.
425         * inet/getsrvbynm_r.c: Likewise.
426         * inet/getsrvbypt_r.c: Likewise.
427         * shadow/getspent_r.c: Likewise.
428         * shadow/getspnam_r.c: Likewise.
430         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
432         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
433         Use i686-friendly PIC code.
434         * sysdeps/i386/elf/setjmp.S: Likewise.
436         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
438         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
439         list.
440         * elf/Versions: Remove it here.
442 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
444         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
445         direction.  Reported by H . J . Lu <hjl@lucon.org>.
447 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
449         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
450         test just before the test runs.
451         * intl/tst-translit.sh: Likewise.
452         * intl/tst-codeset.sh: Likewise.
454         * timezone/zic.c: Update from tzcode2002c.
455         * timezone/asia: Update from tzdata2002c.
456         * timezone/backward: Likewise.
457         * timezone/europe: Likewise.
458         * timezone/northamerica: Likewise.
459         * timezone/northamerica: Likewise.
460         * timezone/northamerica: Likewise.
461         * timezone/southamerica: Likewise.
462         * timezone/zone.tab: Likewise.
464 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
466         * sysdeps/generic/brk.c (__curbrk): Declare.
467         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
468         * sysdeps/generic/dl-sbrk.c: Likewise.
469         * sysdeps/unix/arm/dl-brk.S: New file.
470         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
471         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
472         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
473         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
474         * sysdeps/unix/i386/dl-brk.S: New file.
475         * sysdeps/unix/mips/dl-brk.S: New file.
476         * sysdeps/unix/sparc/dl-brk.S: New file.
477         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
478         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
479         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
480         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
482 2002-04-03  Andreas Schwab  <schwab@suse.de>
484         * Makefile (headers): Add gnu/lib-names.h here instead of
485         install-others.
486         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
487         installation rule.
488         (install-headers): Add dependency on install-headers-nosubdir.
489         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
490         instead of install-others.
491         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
492         installation rule.
494 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
496         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
497         Reported by Sam Roberts <sroberts@uniserve.com>.
499 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
501         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
502         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
503         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
504         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
506 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
508         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
509         (RTLD_START): Ditto.
510         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
511         dependency violation.
513 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
515         * time/mktime.c (__mktime_internal): Move check for year < 70 below
516         all variable declarations.
518 2002-04-04  Andreas Schwab  <schwab@suse.de>
520         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
522 2002-04-04  Andreas Jaeger  <aj@suse.de>
524         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
525         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
527         * sysdeps/x86_64/fpu/s_fabs.c: New file.
528         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
529         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
531         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
533         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
535         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
536         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
538         * configure.in: Handle all mips entries the same.
540         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
541         * sysdeps/mips/mips3/*: Likewise.
542         * sysdeps/mips/p40/bits/endian.h: Likewise.
544 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
546         * misc/dirname.c (dirname): Ignore trailing slashes at end of
547         non-null result [PR libc/2600].
549         * misc/tst-dirname.c: Add more tests.
551 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
553         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
554         define a code_set_name provide one based on the filename.
556         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
558 2001-12-28  Andreas Jaeger  <aj@suse.de>
560         * time/mktime.c (__mktime_internal): Check for year < 70
561         [PR libc/2738].
563 2002-04-03  Andreas Jaeger  <aj@suse.de>
565         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
566         shmat.
567         Reported by Andi Kleen <ak@suse.de>.
569 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
571         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
572         * sysdeps/generic/w_lgammaf.c: Likewise.
573         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
575         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
576         Adjust for new output format of the backtrace functions.
578         * misc/syslog.c (vsyslog): Only use cleanup handler if
579         _LIBC_REENTRANT is defined [PR libc/2924].
581         * libio/Makefile (tests): Add bug-ungetwc2.
582         * libio/bug-ungetwc2.c: New file.
584         * manual/install.texi: Typographical and grammatical cleanup.
585         Patch by Dennis Grace <dgrace@us.ibm.com>.
587         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
588         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
590         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
591         always "&".  Adjust callers.
592         Add "_" prefix to several generated definitions.
593         Patch by paul@serice.net [PR libc/3158].
595 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
597         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
598         size of _dl_arm_cap_flags.
599         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
601         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
602         Define as 8.
604 2002-03-22  H.J. Lu  <hjl@gnu.org>
606         * scripts/firstversions.awk: Check the first version.
608 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
610         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
611         dependencies must be stable to work correctly.
612         Reported by martin.lubich@datacon.at.
614         * libio/bug-ungetwc1.c: New file.
615         * libio/Makefile (tests): Add bug-ungetwc1.
617         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
618         if stream was last used for writing.
620         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
621         number [PR libc/3111].
623         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
624         to ...
625         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
627 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
629         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
630         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
631         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
632         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
633         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
635 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
637         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
638         dynamic tags.
640 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
642         * sysdeps/i386/fpu/s_fabs.S: New file.
643         * sysdeps/i386/fpu/s_fabsf.S: New file.
644         * sysdeps/i386/fpu/s_fabsl.S: New file.
645         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
646         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
647         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
649 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
651         * rt/tst-shm.c (do_test): Add one more test for size of shared
652         memory object.
654 2002-03-29  Wolfram Gloger  <wg@malloc.de>
656         * malloc/malloc.c: Add short description and prototypes for
657         malloc_get_state, malloc_set_state and posix_memalign, for
658         consistency and to avoid warnings with -Wstrict-prototypes.
659         Reported by Andreas Jaeger <aj@suse.de>.
661 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
663         * po/gl.po: Update from translation team.
665 2002-03-31  Roland McGrath  <roland@frob.com>
667         * hurd/hurdselect.c (_hurd_select): Fix
668         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
669         Use a union rather than casts to compare mach_msg_type_t as int.
671 2002-03-25  Roland McGrath  <roland@frob.com>
673         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
674         check off the end of NAME when it's shorter than 2 chars.
675         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
677 2002-03-17  Roland McGrath  <roland@frob.com>
679         * sysdeps/mach/hurd/i386/sys/io.h: New file.
680         * sysdeps/mach/hurd/i386/ioperm.c: New file.
681         * sysdeps/mach/hurd/i386/Dist: Add them.
682         * sysdeps/mach/hurd/i386/Versions
683         (libc: GLIBC_2.2.6): New set, add ioperm.
684         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
685         (mach_interface_list): Check for mach_i386.defs.
686         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
687         * sysdeps/mach/configure: Regenerated.
689 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
691         * po/fr.po: Update from translation team.
693 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
695         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
696         getpriority from syscalls list.
698 2002-03-28  Andreas Jaeger  <aj@suse.de>
700         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
701         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
702         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
703         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
705 2002-03-27  Andreas Jaeger  <aj@suse.de>
707         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
708         sigcontext): Follow further kernel change.
710         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
711         kernel change.
713         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
714         Change for struct sigcontext change.
716         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
717         Follow changes in struct sigcontext.
719         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
720         sysycall, use wrapper instead.
722 2002-03-26  Andreas Jaeger  <aj@suse.de>
724         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
725         read and write accesses as detailed as possible.
726         (__memcpy_by2): Likewise.
727         (__memcpy_g): Likewise.
728         (memmove): Likewise.
729         (memcmp): Likewise.
730         (__memset_ccn_by4): Likewise.
731         (__memset_ccn_by2): Likewise.
732         (__memset_gcn_by4): Likewise.
733         (__memset_gcn_by2): Likewise.
734         (memchr): Likewise.
735         (__memrchr): Likewise.
736         (rawmemchr): Likewise.
737         (__strlen_g): Likewise.
738         (__strcpy_g): Likewise.
739         (__mempcpy_by4): Likewise.
740         (__mempcpy_by2): Likewise.
741         (__mempcpy_byn): Likewise.
742         (__stpcpy_g): Likewise.
743         (__strncpy_by4): Likewise.
744         (__strncpy_by2): Likewise.
745         (__strncpy_byn): Likewise.
746         (__strncpy_gg): Likewise.
747         (__strcat_c): Likewise.
748         (__strcat_g): Likewise.
749         (__strncat_g): Likewise.
750         (__strcmp_gg): Likewise.
751         (__strncmp_g): Likewise.
752         (__strchr_c): Likewise.
753         (__strchr_g): Likewise.
754         (__strchrnul_c): Likewise.
755         (__strchrnul_g): Likewise.
756         (__strrchr_c): Likewise.
757         (__strrchr_g): Likewise.
758         (__strrchr_c): Likewise.
759         (__strrchr_g): Likewise.
760         (__strcspn_c1): Likewise.
761         (__strcspn_cg): Likewise.
762         (__strcspn_g): Likewise.
763         (__strcspn_g): Likewise.
764         (__strspn_c1): Likewise.
765         (__strspn_cg): Likewise.
766         (__strspn_g): Likewise.
767         (__strspn_g): Likewise.
768         (__strpbrk_cg): Likewise.
769         (__strpbrk_g): Likewise.
770         (__strstr_cg): Likewise.
771         (__strstr_g): Likewise.
773         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
774         Michal Ludvig <mludvig@suse.cz>.
776         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
777         compatibilty, adjust for kernel changes.
779         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
780         sigcontext): Adjust for kernel changes.
782 2002-03-25  Andreas Jaeger  <aj@suse.de>
784         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
785         little endian.
786         Reported by Artur Zaprzala <zybi@talex.com.pl>.
788 2002-03-24  Andreas Jaeger  <aj@suse.de>
790         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
792         * stdio-common/tst-fdopen.c (main): Remove unused variable.
794         * iconv/tst-iconv3.c (main): Use correct printf strings.
796 2002-03-18  Roland McGrath  <roland@frob.com>
798         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
799         (CMGROUP_MAX): New macro.
801 2002-03-23  Roland McGrath  <roland@frob.com>
803         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
804         * sysdeps/posix/shm_unlink.c: Likewise.
806 2002-03-22  Roland McGrath  <roland@frob.com>
808         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
809         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
810         under --enable-libio.
811         * sysdeps/mach/hurd/configure: Regenerated.
813 2002-03-23  Roland McGrath  <roland@frob.com>
815         * sysdeps/mach/hurd/i386/Makefile
816         (sysdep_routines, shared-only-routines): Don't add framestate,
817         reverting 2001-10-02 change.
818         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
819         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
820         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
821         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
822         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
823         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
824         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
825         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
826         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
827         Do it here instead, only if [$(unwind-find-fde) = yes].
829 2002-03-23  Andreas Jaeger  <aj@suse.de>
831         * signal/signal.h: Fix typo. Patch by Steve Kemp
832         <skx@tardis.ed.ac.uk>.
834 2002-03-22  Andreas Jaeger  <aj@suse.de>
836         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
837         getresuid.
839         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
840         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
841         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
842         user_fpregs_struct): Rename fwd.
844         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
845         Follow sigcontext changes.
847 2002-03-22  Andreas Jaeger  <aj@suse.de>
849         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
850         changes for NaNs on MIPS.
851         Patch by Hartvig Ekner <hartvige@mips.com>.
853 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
855         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
856         Use realloc if too large.
857         (addgrbyid): Likewise.
858         * nscd/hstcache.c (addhstbyname): Likewise.
859         (addhstbyaddr): Likewise.
860         (addhstbynamev6): Likewise.
861         (addhstbyaddrv6): Likewise.
862         * nscd/pwdcache.c (addpwbyname): Likewise.
863         (addpwbyuid): Likewise.
865 2002-03-21  Andreas Jaeger  <aj@suse.de>
867         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
868         _fpstate): Add separate struct for x86-64.
870         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
871         user_fpregs_struct): Change member names to follow kernel.
873 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
875         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
876         Correctly close the UDP connection right away [PR libc/3120].
878 2002-03-20  Andreas Jaeger  <aj@suse.de>
880         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
881         user_fpregs_struct): Fix for changed kernel struct.
882         (struct user_regs_struct): Likewise.
883         (struct user): Likewise.
884         Add 32-bit x86 compatibility.
886         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
888 2002-03-19  Andreas Jaeger  <aj@suse.de>
890         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
892 2002-03-18  Andreas Jaeger  <aj@suse.de>
894         * iconvdata/Makefile: Only run tests when shared libs are
895         available.
897 2002-03-17  Andreas Jaeger  <aj@suse.de>
899         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
901         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
903         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
904         bits.
906         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
907         (CAUSE_SHIFT): New.
908         Patch by Hartvig Ekner <hartvige@mips.com>.
910         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
911         * sysdeps/generic/unwind-pe.h: Likewise.
913         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
914         type to _IO_setb.
916         * libio/stdio.c (AL2): Define variant when visibility attribute is
917         not supported.
919         * include/libc-symbols.h (_INTVARDEF): Define variant when
920         visibility attribute is not supported.
922 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
924         * po/fr.po: Update from translation team.
926 2002-02-25  Bruno Haible  <bruno@clisp.org>
928         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
930 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
932         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
933         buffers if _IO_file_attach failed.
935         * libio/fileops.c (_IO_file_open): Close file descriptor if
936         _IO_SEEKOFF call failed.
938 2002-03-15  H.J. Lu  <hjl@gnu.org>
939             Ulrich Drepper  <drepper@redhat.com>
941         * configure.in: Check for availability of
942         init_array/fini_array/preinit_array handling in binutils.
943         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
944         * config.make.in (have-initfini-array): New variable.
946 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
948         * stdio-common/tst-printf.c (main): Comment out one test which
949         checked the compiler's ability to fold floating-point constants
950         but not really printf.
951         (rfg3): Make s const.
952         * stdio-common/tst-printf.sh: Adjust for removed test.
954         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
955         internal function.  Adjust for internal_function calling convention.
956         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
957         as internal_function.
959         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
960         hidden.
962         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
963         declaration and definition.
964         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
965         declaration.
966         * nss/getXXent_r.c: Likewise.
967         * nss/nsswitch.h (db_lookup_function): Add internal_function to
968         definition.
970         * include/time.h: Declare __localtime_r as hidden.
972         * include/aliases.h: Declare __getaliasent_r as hidden.
973         * include/grp.h: Declare __getgrent_r as hidden.
974         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
975         __getservent_r, and __getprotoent_r as hidden.
976         * include/pwd.h: Declare __getpwent_r as hidden.
977         * include/shadow.h: Declare __getspent_r as hidden.
978         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
980         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
981         and __gconv_transliterate as hidden.
982         Add internal_function to __gconv_get_path declaration.
983         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
984         definition.  Add attribute_hidden to __gconv_read_conf definition.
986 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
988         * elf/rtld.c: Declare _environ as hidden.
989         * sysdeps/generic/dl-environ.c: Likewise.
990         * sysdeps/generic/dl-sysdep.c: Likewise.
992         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
993         _dl_mcount_internal as hidden.
995         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
996         * sysdeps/generic/dl-brk.c: New file.
997         * sysdeps/generic/dl-sbrk.c: New file.
998         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
999         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
1001         * elf/dl-minimal.c (malloc): Declare _end as hidden.
1002         (__errno_location): New function.  Declare errno as hidden.
1003         * elf/rtld.c (_dl_argc): Define as hidden.
1004         (_dl_skip_args): Define as hidden.
1005         (_begin, _end): Declare as hidden.
1006         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
1007         * sysdeps/generic/entry.h (_start): Declare as hidden.
1008         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
1009         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
1010         _dl_runtime_resolve and _dl_runtime_profile as hidden.
1011         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
1013 2002-03-14  Roland McGrath  <roland@frob.com>
1015         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
1017         * Makeconfig (%.v.i, %.v): New implicit rules.
1018         (preprocess-versions): Variable removed.
1019         ($(common-objpfx)shlib-versions.v.i): New target giving just the
1020         shlib-versions input files as dependencies.
1021         ($(common-objpfx)soversions.i): Depend on that instead of the input
1022         files.  Use it as input instead of using a pipeline.
1023         (postclean-generated): Append soversions.i, shlib-versions.v, and
1024         shlib-versions.v.i here.
1025         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
1026         the Versions.def input files as dependencies.
1027         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
1028         ($(common-objpfx)Versions.all): Depend on that instead of the input
1029         files.  Use it as input instead of using a pipeline.
1030         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
1031         (postclean-generated): Append those .v and .v.i files here.
1033 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
1035         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
1036         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
1037         Remove.
1039 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
1041         * sysdeps/generic/mp_clz_tab.c: New file.
1042         * sysdeps/i386/mp_clz_tab.c: New file.
1043         * sysdeps/hppa/mp_clz_tab.c: New file.
1044         * sysdeps/powerpc/mp_clz_tab.c: New file.
1045         * stdlib/Makefile (aux): Revert last patch.
1046         * math/Makefile (gmp-objs): Likewise.
1048 2002-03-13  Paul Eggert  <eggert@twinsun.com>
1050         * time/strftime.c: Comment fixes for references to obsolescent
1051         standards, In most cases the simplest fix is to remove the
1052         confusing comments.  Cross-referencing all the standards properly
1053         is a bit of a pain, and it should be enough to put that info in
1054         the documentation as I did in my recent time.texi patch.
1056 2002-03-13  Paul Eggert  <eggert@twinsun.com>
1058         * manual/time.texi (Formatting Calendar Time):
1059         ISO C99 also specifies the E and O modifiers.
1060         %P is a GNU extension, and is not in ISO C99.
1061         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
1062         %T is also in ISO C99.
1063         The RFC 822 example is not valid in arbitrary locales.
1064         Reword the POSIX.2 wording slightly, to make it a bit clearer
1065         that POSIX.2 formats are also supported by later POSIX versions.
1066         If a format was introduced in ISO C99 it is also required by
1067         POSIX.1-2001.
1069 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
1071         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
1072         _sys_nerr_internal with INTVARDEF2.
1073         * include/libc-symbols.h (INTVARDEF2): New macro.
1074         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
1075         (_sys_nerr_internal): Library.
1077         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
1078         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
1080         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
1082 2002-03-13  Wolfram Gloger  <wg@malloc.de>
1084         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
1086 2002-03-02  Andreas Schwab  <schwab@suse.de>
1088         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
1089         'h' flag and positional arg.
1090         * stdio-common/tst-printf.c (rfg3): New function to test
1091         positional arguments.
1092         (main): Fix some warnings.
1094 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
1096         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
1097         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
1099 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
1101         * grp/initgroups.c (__nss_group_data): Declare as hidden.
1103         * include/locale.h (_nl_C_locobj): Declare as hidden.
1105         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
1106         * time/strptime.c (_nl_C_LC_TIME): Likewise.
1108         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
1110         * include/sys/gmon.h: Declare _gmonparam as hidden.
1112         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
1113         (__ctype32_wctrans): Likewise.
1114         (__ctype32_width): Likewise.
1116         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
1117         use of __ttyname.
1119         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
1120         Define as hidden.
1121         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
1122         hidden.  Change all users of these variables.
1124         * posix/regex_internal.h (__re_error_msgid): Renamed from
1125         re_error_msgid.  Declare as hidden.
1126         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
1127         hidden.
1129         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
1130         (__printf_function_table): Likewise.
1131         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
1132         hidden.
1133         (__printf_function_table): Likewise.
1135         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
1136         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
1138         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
1139         * nss/nsswitch.c: Declare _nss_*_database as hidden.
1141         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
1142         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
1144 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
1146         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
1147         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
1148         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
1149         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
1150         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
1151         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
1152         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
1153         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
1154         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
1155         _nl_C_LC_CTYPE_width: Declare as hidden.
1156         * include/locale.h: Declare _nl_locale_file_list.
1157         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
1158         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
1159         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
1160         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
1161         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
1162         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
1163         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
1164         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
1165         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
1166         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
1167         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
1168         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
1169         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
1170         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
1171         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
1172         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
1173         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
1174         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
1175         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
1176         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
1177         _nl_C_LC_CTYPE_width, and as hidden.
1178         * locale/findlocale.c: Declare _nl_C as hidden.
1179         * locale/newlocale.c: Likewise.
1180         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
1181         _nl_locale_file_list.
1182         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
1183         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
1184         Define _nl_C_locobj as hidden.
1186         * malloc/mtrace.c (_mtrace_file): Define as hidden.
1187         (_mtrace_line): Likewise.
1189         * include/time.h: Declare __mon_yday as hidden.
1190         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
1192         * libio/libioP.h: Declare __libio_codecvt as hidden.
1193         * libio/fileops.c: Declare __libio_translit as hidden.
1194         * libio/iofwide.c: Define __libio_translit as hidden.
1196         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
1197         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
1198         * login/getutline_r.c: Likewise.
1199         * login/utmpname.c: Likewise.
1201         * login/utmp-private.h: Declare __libc_utmp_file_functions,
1202         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
1203         __libc_utmp_file_name as hidden.
1205         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
1206         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
1207         * locale/freelocale.c: Likewise.
1208         * locale/lc-time.c: Likewise.
1210         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
1211         (__libc_ptyname2): Likewise.
1212         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
1213         hidden.
1214         (__libc_ptyname2): Likewise.
1216         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
1217         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
1218         * sysdeps/generic/init-first.c: Likewise.
1219         * sysdeps/i386/init-first.c: Likewise.
1220         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
1221         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1222         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1223         * sysdeps/sh/init-first.c: Likewise.
1224         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
1225         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
1227         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
1228         (_itowa_upper_digits): Likewise.
1230         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
1231         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
1232         as hidden.
1234         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
1235         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
1236         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
1237         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
1239         * gmon/gmon.c (__bb_head): Define as hidden.
1240         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
1242         * argp/argp-parse.c (_argp_hang): Define as static.
1244         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
1245         handling in latest compilers.
1247         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
1248         define alias.
1249         * libio/fileops.c (_IO_file_jumps): Likewise.
1250         * libio/stdfiles.c (_IO_list_all): Likewise.
1251         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
1253         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
1254         include/malloc.h.
1255         * include/malloc.h: Add __libc_malloc_initialized declaration
1256         here.  Mark variable hidden.
1257         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
1259         * elf/dl-open.c (__libc_argc): Declare as hidden.
1260         (__libc_argv): Likewise.
1261         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
1262         (__libc_argv): Likewise.
1263         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
1264         __libc_argv as hidden.
1265         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1266         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1267         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
1268         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
1270         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
1271         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
1272         * stdlib/erand48.c: Likewise.
1273         * stdlib/jrand48.c: Likewise.
1274         * stdlib/lcong48.c: Likewise.
1275         * stdlib/lrand48.c: Likewise.
1276         * stdlib/mrand48.c: Likewise.
1277         * stdlib/nrand48.c: Likewise.
1278         * stdlib/seed48.c: Likewise.
1279         * stdlib/srand48.c: Likewise.
1281         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
1282         (_itoa_lower_digits_internal): New declaration.
1283         (_itoa_upper_digits_internal): New declaration.
1284         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
1285         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
1286         (_itoa_upper_digits_internal): New declaration.
1287         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
1288         _itoa_lower_digits.
1289         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
1290         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
1292         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
1293         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
1295         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
1296         (_itowa_lower_digits): Likewise.
1297         (_itowa_upper_digits): Likewise.
1298         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
1299         (_itowa_upper_digits): Likewise.
1301         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
1302         not already defined.
1303         (GERMANIC_PLURAL): Declare as hidden.
1305         * posix/getopt.c (__getopt_initialized): Declare as hidden.
1306         (attribute_hidden): Define as empty macro if not already defined.
1308         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
1309         (__gconv_max_path_elem_len): Likewise.
1310         (__gconv_path_envvar): Likewise.
1312         * math/Makefile (gmp-objs): Remove mp_clz_tab.
1313         * stdlib/Makefile (aux): Remove mp_clz_tab.
1314         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
1316         * stdlib/exit.h (__exit_funcs): Declare as hidden.
1318         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
1320         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
1321         _nl_category_names, _nl_category_name_sizes, _nl_current,
1322         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
1324         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
1325         (_nl_current_default_domain): Likewise
1326         (_nl_state_lock): Likewise.
1327         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
1328         (_nl_current_default_domain): Likewise
1329         (_nl_state_lock): Likewise.
1330         * intl/bindtextdom.c (_nl_state_lock): Likewise.
1332         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
1333         (_fpioconst_pow10): Likewise.
1335         * include/time.h (_tmbuf): Add attribute_hidden.
1337         * time/tzset.c (tzstring_list): Define as static.
1339         * include/time.h: Add attribute_hidden to __tzname_cur_max and
1340         __use_tzfile declaration.
1342         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
1343         and __wcsmbs_last_locale declaration.
1345 2002-02-25  Paul Eggert  <eggert@twinsun.com>
1347         * timezone/Makefile (tzbases): Move systemv from here...
1348         (tzlinks): to here, since the entries in systemv were all changed
1349         from Zone to Link lines in tz-2001a.  Bug reported (and patch
1350         tested) by Peter Breitenlohner.
1352 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
1354         * time/tst-posixtz.c (tests): Add new tests.
1355         (main): Test whether tzset() sets daylight properly.
1357 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
1359         * time/tzset.c (tz_compute): Move __daylight, __tzname and
1360         __tzname_cur_max setting...
1361         (tzset_internal): ...here.
1363 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
1365         * time/tzset.c (compute_change): Don't return any value.
1366         (tz_compute): Likewise.  Don't handle southern hemisphere here.
1367         (__tz_convert): But here.
1369 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
1371         * manual/examples/mkfsock.c: Include <string.h> as well.
1372         Patch by Alain De Carolis <alaind@wseurope.com>.
1374 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
1376         * posix/regexec.c (re_match): Fix incorrect register sizes.
1377         (re_search): Likewise.
1379 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
1381         * posix/regcomp.c (regfree): Remove a disused condition.
1382         * posix/regex_internal.c (re_acquire_state): Likewise.
1383         (re_acquire_state_context): Likewise.
1384         (register_state): Remove a redundant malloc invocation.
1385         * posix/regex_internal.h: (re_state_table_entry): Simplify
1386         the structure.
1388 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
1390         * posix/regcomp.c (regcomp): Add __builtin_expect to error
1391         handling conditions.
1392         (regerror): Likewise.
1393         (regfree): Likewise.
1394         (re_compile_internal): Likewise.
1395         (init_dfa): Likewise.
1396         (init_word_char): Likewise.
1397         (create_initial_state): Likewise.
1398         (analyze): Likewise.
1399         (analyze_tree): Likewise.
1400         (duplicate_node): Likewise.
1401         (calc_eclosure): Likewise.
1402         (calc_eclosure_iter): Likewise.
1403         (parse): Likewise.
1404         (parse_reg_exp): Likewise.
1405         (parse_branch): Likewise.
1406         (parse_expression): Likewise.
1407         (parse_subexp): Likewise.
1408         (parse_dup_op): Likewise.
1409         (parse_bracket_exp): Likewise.
1410         (build_equiv_class): Likewise.
1411         (build_charclass): Likewise.
1412         (build_word_op): Likewise.
1413         (fetch_number): Likewise.
1414         (create_tree): Likewise.
1415         (duplicate_tree): Likewise.
1416         * posix/regex.c (BE): New macro.
1417         * posix/regexec.c (re_match): Add __builtin_expect to error
1418         handling conditions.
1419         (re_match_2): Likewise.
1420         (re_search): Likewise.
1421         (re_search_internal): Likewise.
1422         (check_matching): Likewise.
1423         (proceed_next_node): Likewise.
1424         (set_regs): Likewise.
1425         (sift_states_backward): Likewise.
1426         (add_epsilon_backreference): Likewise.
1427         (transit_state): Likewise.
1428         (transit_state_sb): Likewise.
1429         (transit_state_mb): Likewise.
1430         (transit_state_bkref): Likewise.
1431         (transit_state_bkref_loop): Likewise.
1432         (build_trtable): Likewise.
1433         (group_nodes_into_DFAstates): Likewise.
1434         (match_ctx_init): Likewise.
1435         (match_ctx_add_entry): Likewise.
1436         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
1437         to error handling conditions.
1438         (re_string_construct_toupper): Likewise.
1439         (build_wcs_buffer): Likewise.
1440         (build_wcs_upper_buffer): Likewise.
1441         (build_upper_buffer): Likewise.
1442         (re_string_translate_buffer): Likewise.
1443         (re_node_set_alloc): Likewise.
1444         (re_node_set_init_1): Likewise.
1445         (re_node_set_init_2): Likewise.
1446         (re_node_set_init_copy): Likewise.
1447         (re_node_set_intersect): Likewise.
1448         (re_node_set_init_union): Likewise.
1449         (re_node_set_merge): Likewise.
1450         (re_node_set_insert): Likewise.
1451         (re_dfa_add_node): Likewise.
1452         (re_acquire_state): Likewise.
1453         (re_acquire_state_context): Likewise.
1454         (create_new_state_common): Likewise.
1455         (register_state): Likewise.
1456         (create_ci_new_state): Likewise.
1457         (create_cd_new_state): Likewise.
1458         (re_string_context_at): Remove redundant condition.
1460 2002-01-16  Roger Sayle  <roger@eyesopen.com>
1462         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
1464         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
1466 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
1468         * sysdeps/i386/elf/configure.in: Fix comment.
1470         * sysdeps/sparc/sparc64/configure.in: New.
1471         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
1472         if .dynamic comes before .got.
1473         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
1475         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
1476         HP_TIMING_ACCUM): Fix typos.
1478 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
1480         * string/strfry.c: Add some more randomness to the seed.
1481         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
1483         * po/es.po: Update from translation team.
1484         * po/fr.po: Likewise.
1486         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
1488         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
1489         when determining type of format.
1490         Patch by James Antill <james@anqd.org> [PR libc/2787].
1492 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
1494         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
1496 2002-03-11  Roland McGrath  <roland@frob.com>
1498         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
1500         * Versions.def (libc): Add GLIBC_2.2.6.
1501         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
1502         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
1503         __errno_location instead of __hurd_errno_location, and don't inline it.
1504         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
1505         * hurd/errno.c: New file.
1506         * hurd/Makefile (routines): Add errno.
1508 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
1510         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
1511         ridiculously large widths and precisions [PR libc/3026].
1513 2002-03-11  Andreas Jaeger  <aj@suse.de>
1515         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
1516         support.
1517         Patch by Susanne Oberhauser <froh@SuSE.de>.
1519 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
1521         * inet/rexec.c (ahostbuf): Define as static.
1523         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
1524         (__ctype32_wctrans): Likewise.
1525         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
1526         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
1527         (__ctype32_wctrans): Likewise.
1528         (__ctype32_width): Likewise.
1530         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
1531         They were never exported anyway.
1533         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
1534         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
1535         exported.
1536         * include/sys/gmon.h: Declare _gmonparam.
1538         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
1539         symbols for getdents64.  They were never exported.
1541 2002-03-09  Roland McGrath  <roland@frob.com>
1543         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
1544         Reported by Jon Arney <jarney1@cox.net>.
1546 2002-02-23  Roland McGrath  <roland@frob.com>
1548         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
1549         declaration.
1550         (__hurd_errno_location): Function removed.
1552 2002-03-06  Andreas Jaeger  <aj@suse.de>
1554         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
1555         32-bit.
1557 2002-03-04  Andreas Jaeger  <aj@suse.de>
1559         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
1561         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
1562         x86-64.
1564         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
1566         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
1568         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
1570         * sysdeps/x86_64/bits/setjmp.h: New.
1572         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
1574         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
1576         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
1577         for x86.
1578         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
1579         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
1581 2002-02-28  Bo Thorsen  <bo@suse.de>
1583         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
1584         version.
1586 2002-03-03  Andreas Jaeger  <aj@suse.de>
1588         * sysdeps/x86_64/bits/wordsize.h: New file.
1590         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
1591         * elf/tst-tlsmod1.c: Likewise.
1593         * posix/regcomp.c: Get regex.h from include dir for internal
1594         prototypes.
1596         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
1597         to libc-internal.h and include it.
1598         * include/libc-internal.h: Add __init_misc.
1600         * misc/init-misc.c: Include libc-internal.h for prototypes.
1602         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
1604         * misc/error.c [_LIBC]: Include libioP.h for prototype of
1605         _IO_putc_internal.
1607 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
1609         * posix/regcomp.c: Compatibility changes to allow using the code
1610         outside glibc.
1612 2002-02-28  Hartvig Ekner <hartvige@mips.com>
1614         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
1615         compiled non-PIC.
1617 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
1619         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
1620         of .str elements in the returned data structure.
1622         * elf/elf.h: Add Alpha TLS bits.
1624 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
1626         * sysdeps/unix/sysv/linux/nice.c: New file.
1628 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
1630         * elf/Makefile (dl-routines): Add dl-origin.
1631         (elide-routines.os): Add dl-origin.
1632         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
1633         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
1634         _dl_debug_state.
1635         * include/libc-symbols.c: Define attribute_hidden depending on
1636         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
1638         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
1639         * elf/dl-load.c: Likewise.
1640         * elf/rtld.c: Likewise.
1641         * include/unistd.h: Declare __libc_enable_secure_internal.
1642         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
1643         Use INTUSE with __libc_enable_secure.
1644         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
1646         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
1647         * elf/dl-error.c: Likewise,
1648         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
1650         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
1651         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
1652         function definition.  Use INTDEF with _dl_get_origin.
1653         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
1655         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
1656         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
1658         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
1659         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
1660         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
1662         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
1663         * elf/dl-deps.c: Likewise.
1664         * elf/dl-error.c: Likewise.
1665         * elf/dl-fini.c: Likewise.
1666         * elf/dl-init.c: Likewise.
1667         * elf/dl-load.c: Likewise.
1668         * elf/dl-lookup.c: Likewise.
1669         * elf/dl-reloc.c: Likewise.
1670         * elf/dl-version.c: Likewise.
1671         * elf/do-lookup.h: Likewise.
1672         * sysdeps/arm/dl-machine.h: Likewise.
1673         * sysdeps/cris/dl-machine.h: Likewise.
1674         * sysdeps/hppa/dl-machine.h: Likewise.
1675         * sysdeps/i386/dl-machine.h: Likewise.
1676         * sysdeps/m68k/dl-machine.h: Likewise.
1677         * sysdeps/powerpc/dl-machine.h: Likewise.
1678         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1679         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1680         * sysdeps/sh/dl-machine.h: Likewise.
1681         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
1682         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
1683         * sysdeps/x86_64/dl-machine.h: Likewise.
1684         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
1685         _dl_argv[0].  Use INTUSE with _dl_argv.
1686         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
1687         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
1689 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
1691         * elf/rtld.c (_rtld_global): Remove .protected.
1692         (_rtld_local): Strong alias to _rtld_global.
1693         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
1694         only .os object.
1695         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
1696         _rtld_local instead of _rtld_global.
1697         (_rtld_local): Add hidden extern, possibly in .sdata section.
1698         * configure.in: Add tests for visibility attribute and .sdata.
1699         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
1700         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
1701         * sysdeps/arm/dl-machine.h: Likewise.
1702         * sysdeps/generic/ldsodefs.h: Likewise.
1703         * sysdeps/hppa/dl-machine.h: Likewise.
1704         * sysdeps/cris/dl-machine.h: Likewise.
1705         * sysdeps/i386/dl-machine.h: Likewise.
1706         * sysdeps/ia64/dl-machine.h: Likewise.
1707         * sysdeps/m68k/dl-machine.h: Likewise.
1708         * sysdeps/mips/mips64/dl-machine.h: Likewise.
1709         * sysdeps/mips/dl-machine.h: Likewise.
1710         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
1711         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
1712         * sysdeps/sh/dl-machine.h: Likewise.
1713         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
1714         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1715         * sysdeps/x86_64/dl-machine.h: Likewise.
1717 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
1719         * login/login.c (login): Always initialize ut_line field
1720         [PR libc/2991].
1722 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
1724         * sysdeps/i386/Makefile (sysdep_routines): Add
1725         divdi3 in csu dir.
1726         (shared-only-routines): Likewise.
1727         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
1728         (shared-only-routines): Likewise.
1729         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
1730         (shared-only-routines): Likewise.
1731         * sysdeps/wordsize-32/divdi3.c: New file.
1733 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
1735         * locale/iso-4217.def: Remove obsolete currencies for countries
1736         with Euro.
1738 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
1740         * posix/regcomp.c (regcomp): Remove a redundant condition.
1741         (init_word_char): Add a check on malloc failure.
1742         (create_initial_state): Likewise.
1743         (duplicate_node): Likewise.
1744         (calc_eclosure): Likewise.
1745         (calc_eclosure_iter): Likewise.
1746         (parse_expression): Likewise.
1747         (parse_bracket_exp): Remove unnecessary malloc invocations.
1748         (build_equiv_class): Likewise.
1749         (build_charclass): Likewise.
1750         * posix/regex_internal.c (re_node_set_intersect): Add a check
1751         on malloc failure.
1752         (re_node_set_add_intersect): Likewise.
1753         (re_node_set_merge): Likewise.
1754         (re_acquire_state): Likewise.
1755         (re_acquire_state_context): Likewise.
1756         (create_newstate_common): Likewise.
1757         (register_state): Likewise.
1758         (create_ci_newstate): Likewise.
1759         (create_cd_newstate): Likewise.
1760         * posix/regex_internal.h: Fix prototypes of re_acquire_state
1761         and re_acquire_state_context.
1762         * posix/regexec.c (regexec): Suit it to the error handling of
1763         re_search_internal.
1764         (re_match): Likewise.
1765         (re_search): Likewise.
1766         (re_search_internal): Add a check on malloc failure.
1767         (acquire_init_state_context): Likewise.
1768         (check_matching): Likewise.
1769         (proceed_next_node): Likewise.
1770         (set_regs): Likewise.
1771         (sift_states_backward): Likewise.
1772         (sift_states_iter_bkref): Likewise.
1773         (add_epsilon_backreference): Likewise.
1774         (transit_state): Likewise.
1775         (transit_state_sb): Likewise.
1776         (transit_state_mb): Likewise.
1777         (transit_state_bkref_loop): Likewise.
1778         (build_trtable): Likewise.
1779         (group_nodes_into_DFAstates): Likewise.
1780         (match_ctx_init): Likewise.
1781         (match_ctx_add_entry): Likewise.
1783 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
1785         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
1786         l_libname if profiling is enabled [PR libc/2916].
1788         * sysdeps/ia64/dl-tls.h: New file.
1790 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
1792         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
1793         Work around an Alpha gas bug.
1795 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
1797         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
1798         uses read to load the catalog.
1799         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
1801 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
1803         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
1804         regex_internal.c, and regex_internal.h.
1805         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
1806         * posix/regex.c: Complete rewrite.
1807         * posix/regexec.c: New file.
1808         * posix/regcomp.c: New file.
1809         * posix/regex_internal.c: New file.
1810         * posix/regex_internal.h: New file.
1811         * posix/regex.h (RE_ICASE): New macro.
1812         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
1814         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
1815         ungetwc.  It's a macro.
1816         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
1817         implementation.
1818         Reported by Jason Merrill <jason@redhat.com>.
1820 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
1822         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
1823         position to fp->_offset if it is set.
1824         * stdio-common/Makefile (tests): Add tst-fdopen.
1825         * stdio-common/tst-fdopen.c: New test.
1827 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
1829         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
1830         * stdio-common/tst-ungetc.c (main): Add another test.
1832 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
1834         * assert/assert-perr.c: Use INTUSE to reference functions and variables
1835         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
1836         aliases.  Add prototypes for the new aliases.
1837         * assert/assert.c: Likewise.
1838         * include/libc-symbols.h: Likewise.
1839         * include/stdio.h: Likewise.
1840         * include/netinet/in.h: Likewise.
1841         * include/rpc/auth.h: Likewise.
1842         * include/rpc/auth_unix.h: Likewise.
1843         * include/rpc/key_prot.h: Likewise.
1844         * include/rpc/pmap_prot.h: Likewise.
1845         * include/rpc/pmap_rmt.h: Likewise.
1846         * include/rpc/rpc_msg.h: Likewise.
1847         * include/rpc/xdr.h: Likewise.
1848         * inet/gethstbyad_r.c: Likewise.
1849         * inet/gethstbynm2_r.c: Likewise.
1850         * inet/gethstbynm_r.c: Likewise.
1851         * inet/gethstent_r.c: Likewise.
1852         * inet/in6_addr.c: Likewise.
1853         * libio/__fpurge.c: Likewise.
1854         * libio/filedoalloc.c: Likewise.
1855         * libio/fileops.c: Likewise.
1856         * libio/ftello.c: Likewise.
1857         * libio/ftello64.c: Likewise.
1858         * libio/genops.c: Likewise.
1859         * libio/iofclose.c: Likewise.
1860         * libio/iofdopen.c: Likewise.
1861         * libio/iofflush.c: Likewise.
1862         * libio/iofflush_u.c: Likewise.
1863         * libio/iofgetpos.c: Likewise.
1864         * libio/iofgetpos64.c: Likewise.
1865         * libio/iofgets.c: Likewise.
1866         * libio/iofgets_u.c: Likewise.
1867         * libio/iofopen.c: Likewise.
1868         * libio/iofopncook.c: Likewise.
1869         * libio/iofputs.c: Likewise.
1870         * libio/iofread.c: Likewise.
1871         * libio/iofread_u.c: Likewise.
1872         * libio/iofsetpos.c: Likewise.
1873         * libio/iofsetpos64.c: Likewise.
1874         * libio/ioftell.c: Likewise.
1875         * libio/iofwrite.c: Likewise.
1876         * libio/iogetline.c: Likewise.
1877         * libio/iogets.c: Likewise.
1878         * libio/iogetwline.c: Likewise.
1879         * libio/iolibio.h: Likewise.
1880         * libio/iopadn.c: Likewise.
1881         * libio/iopopen.c: Likewise.
1882         * libio/ioseekoff.c: Likewise.
1883         * libio/ioseekpos.c: Likewise.
1884         * libio/iosetbuffer.c: Likewise.
1885         * libio/iosetvbuf.c: Likewise.
1886         * libio/ioungetc.c: Likewise.
1887         * libio/ioungetwc.c: Likewise.
1888         * libio/iovdprintf.c: Likewise.
1889         * libio/iovsprintf.c: Likewise.
1890         * libio/iovsscanf.c: Likewise.
1891         * libio/libioP.h: Likewise.
1892         * libio/memstream.c: Likewise.
1893         * libio/obprintf.c: Likewise.
1894         * libio/oldfileops.c: Likewise.
1895         * libio/oldiofclose.c: Likewise.
1896         * libio/oldiofdopen.c: Likewise.
1897         * libio/oldiofgetpos.c: Likewise.
1898         * libio/oldiofgetpos64.c: Likewise.
1899         * libio/oldiofopen.c: Likewise.
1900         * libio/oldiofsetpos.c: Likewise.
1901         * libio/oldiofsetpos64.c: Likewise.
1902         * libio/oldiopopen.c: Likewise.
1903         * libio/oldstdfiles.c: Likewise.
1904         * libio/putc.c: Likewise.
1905         * libio/setbuf.c: Likewise.
1906         * libio/setlinebuf.c: Likewise.
1907         * libio/stdfiles.c: Likewise.
1908         * libio/stdio.c: Likewise.
1909         * libio/strops.c: Likewise.
1910         * libio/vasprintf.c: Likewise.
1911         * libio/vscanf.c: Likewise.
1912         * libio/vsnprintf.c: Likewise.
1913         * libio/vswprintf.c: Likewise.
1914         * libio/wfiledoalloc.c: Likewise.
1915         * libio/wfileops.c: Likewise.
1916         * libio/wgenops.c: Likewise.
1917         * libio/wstrops.c: Likewise.
1918         * malloc/mtrace.c: Likewise.
1919         * misc/error.c: Likewise.
1920         * misc/syslog.c: Likewise.
1921         * nss/getXXbyYY_r.c: Likewise.
1922         * nss/getXXent_r.c: Likewise.
1923         * nss/hosts-lookup.c: Likewise.
1924         * stdio-common/getw.c
1925         * stdio-common/printf-prs.c: Likewise.
1926         * stdio-common/printf_fp.c: Likewise.
1927         * stdio-common/printf_size.c: Likewise.
1928         * stdio-common/putw.c: Likewise.
1929         * stdio-common/scanf.c: Likewise.
1930         * stdio-common/sprintf.c: Likewise.
1931         * stdio-common/tmpfile64.c: Likewise.
1932         * stdio-common/vfprintf.c: Likewise.
1933         * stdio-common/vfscanf.c: Likewise.
1934         * stdlib/strfmon.c: Likewise.
1935         * sunrpc/auth_des.c: Likewise.
1936         * sunrpc/auth_none.c: Likewise.
1937         * sunrpc/auth_unix.c: Likewise.
1938         * sunrpc/authdes_prot.c: Likewise.
1939         * sunrpc/authuxprot.c: Likewise.
1940         * sunrpc/clnt_perr.c: Likewise.
1941         * sunrpc/clnt_raw.c: Likewise.
1942         * sunrpc/clnt_tcp.c: Likewise.
1943         * sunrpc/clnt_udp.c: Likewise.
1944         * sunrpc/clnt_unix.c: Likewise.
1945         * sunrpc/key_call.c: Likewise.
1946         * sunrpc/key_prot.c: Likewise.
1947         * sunrpc/openchild.c: Likewise.
1948         * sunrpc/pm_getmaps.c: Likewise.
1949         * sunrpc/pm_getport.c: Likewise.
1950         * sunrpc/pmap_clnt.c: Likewise.
1951         * sunrpc/pmap_prot.c: Likewise.
1952         * sunrpc/pmap_prot2.c: Likewise.
1953         * sunrpc/pmap_rmt.c: Likewise.
1954         * sunrpc/rpc_cmsg.c: Likewise.
1955         * sunrpc/rpc_prot.c: Likewise.
1956         * sunrpc/svc_authux.c: Likewise.
1957         * sunrpc/svc_raw.c: Likewise.
1958         * sunrpc/svc_simple.c: Likewise.
1959         * sunrpc/svc_tcp.c: Likewise.
1960         * sunrpc/svc_udp.c: Likewise.
1961         * sunrpc/svc_unix.c: Likewise.
1962         * sunrpc/xdr.c: Likewise.
1963         * sunrpc/xdr_array.c: Likewise.
1964         * sunrpc/xdr_mem.c: Likewise.
1965         * sunrpc/xdr_rec.c: Likewise.
1966         * sunrpc/xdr_ref.c: Likewise.
1967         * sunrpc/xdr_stdio.c: Likewise.
1968         * sysdeps/generic/_strerror.c: Likewise.
1969         * sysdeps/generic/printf_fphex.c: Likewise.
1970         * sysdeps/generic/tmpfile.c: Likewise.
1971         * sysdeps/gnu/errlist.awk: Likewise.
1972         * sysdeps/gnu/errlist.c: Likewise.
1974         * libio/Makefile (routines): Remove iosprint.
1975         * libio/iosprintf.c: Removed
1978 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
1980         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
1981         non_dynamic_init and exported now.
1982         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
1983         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
1984         !SHARED.
1985         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
1986         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
1987         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
1989 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
1991         * elf/dl-close.c (free_slotinfo): Check for end of list and return
1992         true in this case.
1994         * locale/iso-639.def: Add language codes for Walloon.
1996         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
1997         total number of relocations performed.
1999         * elf/sprof.c (load_profdata): If do_test provide information as
2000         to why loading failed.
2001         * elf/dl-profile.c (_dl_start_profile): Initialize all of
2002         hist_hdr.dimen.
2004         * csu/set-init.c: Moved to...
2005         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
2006         * csu/Makefile: Don't compile set-init.
2007         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
2008         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
2009         to __libc_init.
2010         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
2011         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
2012         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
2013         __libc_init.
2014         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
2015         __libc_subinit.
2017 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
2019         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
2020         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
2021         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
2022         (_dl_deallocate_tls): New function.
2023         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
2024         _dl_deallocate_tls.
2026 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
2028         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
2029         * stdio-common/tst-fseek.c (main): Add test for this.
2031 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
2033         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
2035 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
2037         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
2038         pointer before dereferencing.
2040 2002-02-18  Roland McGrath  <roland@frob.com>
2042         * sysdeps/mach/hurd/times.c: Fix typo in last change.
2044         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
2045         Use task_policy in place of task_priority.
2047         * sysdeps/generic/bits/mman.h
2048         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
2049         * sysdeps/mach/msync.c: New file.
2051         * sysdeps/mach/powerpc/syscall.S: New file.
2053         * mach/msg.c [MACH_MSG_OVERWRITE]
2054         (__mach_msg_trap, __mach_msg_overwrite): New functions.
2055         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
2057         * sysdeps/mach/configure.in: Check for clock.defs to put into
2058         mach_interface_list.
2059         * sysdeps/mach/configure: Regenerated.
2061         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
2062         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
2063         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
2064         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
2065         (mach-shortcuts): Add device_read_overwrite_request,
2066         device_read_overwrite, vm_read_overwrite, thread_switch.
2068         * configure.in (base_machine): Set to $machine by default.
2069         * configure: Regenerated.
2071         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
2072         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
2073         * sysdeps/mach/configure: Regenerated.
2074         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
2076         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
2078         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
2080         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
2081         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
2083 2002-02-17  Roland McGrath  <roland@frob.com>
2085         * sysdeps/mach/hurd/times.c
2086         [NO_CREATION_TIME] (startup_time): New static variable.
2087         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
2088         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
2089         creation_time from task_basic_info.
2090         (__times): Use __gettimeofday instead of __host_get_time.
2092         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
2093         Use untyped Mach IPC message format.
2095         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
2097         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
2098         _S_catch_exception_raise_state_identity,
2099         _hurdsig_fault_catch_exception_raise_state,
2100         _hurdsig_fault_catch_exception_raise_state_identity.
2102         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
2104         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
2105         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
2107         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
2108         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
2110         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
2111         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
2112         them as no-op macros.
2113         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
2114         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
2116         * sysdeps/powerpc/dl-machine.h
2117         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
2119         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
2120         Use untyped Mach IPC message format.
2122         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
2123         Handle untyped Mach IPC message formats.
2125         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
2126         Expect different argument conventions when this is defined.
2127         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
2128         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
2129         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
2130         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
2131         for OSF Mach variant.
2132         (faulted): Use mig_reply_error_t for REPLY.
2133         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
2134         in __thread_set_exception_ports call.
2135         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
2136         __mach_port_set_attributes in place of __mach_port_set_qlimit.
2138         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
2139         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
2140         on Darwin, which includes bogons.
2142         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
2143         variable LOADBASE so it's not declared when it's not used.
2145 2002-02-16  Roland McGrath  <roland@frob.com>
2147         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
2148         to use BI.creation_time.
2150         * mach/Machrules (MIG): Add -x c to CPP value passed down.
2152         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
2153         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
2154         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
2155         host_page_size instead of vm_statistics.
2157         * sysdeps/mach/Makefile (mach-before-compile): Don't include
2158         mach_interface.h here, since not all variants use that name.
2160         * sysdeps/mach/configure.in: Add some checks for Mach headers
2161         to ensure a sane installation.
2162         (mach_interface_list): Define this variable by checking for .defs
2163         files found in various variants.
2164         * configure.in (mach_interface_list): AC_SUBST this.
2165         * config.make.in (mach-interface-list): New substituted variable.
2166         * mach/Makefile (user-interfaces): Define this using the value
2167         of $(mach-interface-list) instead of mach, mach4.
2168         Updated other references to mach_interface to use it as well.
2170         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
2172         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
2173         mig_reply_error_t for OSF Mach variant.
2175         * mach/Makefile (routines): Remove bootprivport.
2176         * mach/bootprivport.c: File removed.  It has never been used.
2178         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
2179         Grok the OSF flavor of message format.
2180         (mach_msg_destroy_port): For MAKE_SEND and
2181         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
2182         no-senders notification.
2184 2002-02-06  Roland McGrath  <roland@frob.com>
2186         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
2187         to here if 2.0 compatibility enabled ...
2188         (libc: GLIBC_2.1.3): ... from here.
2190 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
2192         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
2193         generation counter.
2194         * elf/dl-close.c (_dl_close): Likewise.
2196 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
2198         * elf/Makefile: Add rules to build and run tst-tls8.
2199         * elf/tst-tls8.c: New file.
2200         * elf/tst-tlsmod4.c: New file.
2202         * stdlib/test-a64l.c (tests): Add more test cases.
2204         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
2205         Reported by Walter Harms <WHarms@bfs.de>.
2207 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
2209         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
2210         definitions for struct sigcontext.
2211         Suggested by David Mosberger-Tang.
2213 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
2215         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
2216         for removing reference of module in slotinfo list.
2217         (_dl_close): Use remove_slotinfo.
2218         * sysdeps/generic/dl-tls.c: General pretty printing.
2219         (oom): Define only if SHARED.
2220         (_dl_next_tls_modid): Correct starting point for the case we assume
2221         there is a gap.  Add missing instruction grouping (doh!).  Correct
2222         tests for reaching maximum index.
2223         * elf/Makefile: Add rules to build and run tst-tls7.
2224         * elf/tst-tls7.c: New file.
2225         * elf/tst-tlsmod3.c: New file.
2227         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
2228         USE_TLS.
2229         * elf/tst-tlsmod2.c: Likewise.
2231         * elf/dl-close.c (_dl_close): When closing an object using TLS
2232         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
2233         true.  Increment dl_tls_generation only if we closed any TLS-using
2234         object.
2235         * elf/tst-tls6.c: New file.
2236         * elf/Makefile: Add rules to build and run tst-tls6.
2238         * po/da.po: Update from translation team.
2240         * locale/categories.def: Fix typo [PR libc/2948].
2241         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
2242         [PR libc/2949].
2243         * locale/iso-4217.def: Update from official version [PR libc/2950].
2244         * glibcbug.in: Honor TMPDIR [PR libc/2951].
2245         * locale/programs/ld-collate.c (collate_finish): Bail out with a
2246         message if input is too confusion instead of using assert.
2247         (collate_read): Don't crash on unknown symbol [PR libc/2952].
2248         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
2250         * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
2251         * elf/tst-tls2.c: Likewise.
2252         * elf/tst-tls3.c: Likewise.
2254 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
2256         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
2258 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
2260         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
2261         if this is really necessary.
2263         * elf/dl-close.c (_dl_close): Implement freeing entries in the
2264         slotinfo array.
2265         (free_mem): Free memory for the slotinfo array if possible.
2267 2002-02-12  Andreas Schwab  <schwab@suse.de>
2269         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
2271 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
2273         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
2274         TLS_DTV_UNALLOCATE.
2275         (oom): New function.
2276         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
2277         (_dl_determine_tlsoffset): Likewise.
2278         (_dl_allocate_tls): Likewise.
2279         (__TLS_GET_ADDR): Define if not already defined.
2280         (_dl_tls_symaddr): New function.
2281         (allocate_and_init): New function.
2282         (__tls_get_addr): Actually implement handling of generation counter
2283         and deferred allocation.
2284         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
2285         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
2286         _dl_tls_generation.
2287         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
2288         Declare _dl_tls_symaddr.
2289         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
2290         SHARED.
2291         * include/link.h (struct link_map):  Remove l_tls_nextimage and
2292         l_tls_previmage.
2293         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
2294         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
2295         (_dl_vsym): Likewise.
2296         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
2297         layout.
2298         (dl_main): Allow PT_TLS be present for empty segment.  Remove
2299         nextimage list handling.  Instead add all modules using TLS to
2300         dl_tls_dtv_slotinfo_list.
2301         * elf/dl-open.c (dl_open_worker): After successfully loading all
2302         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
2303         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
2304         empty segment don't do anything.  Remove handling of initimage list.
2305         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
2306         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
2307         * elf/dl-minimal.c: Define __libc_memalign.
2308         * elf/dl-support.c: Remove _dl_initimage_list.  Add
2309         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
2310         _dl_tls_generation.
2311         * include/stdlib.h: Declare __libc_memalign.
2313         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
2314         * elf/tst-tls4.c: New file.
2315         * elf/tst-tls5.c: New file.
2316         * elf/tst-tlsmod2.c: New file.
2318         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
2320         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
2322         * elf/tst-tls1.c: Use test-skeleton.c.
2323         * elf/tst-tls2.c: Likewise.
2324         * elf/tst-tls3.c: Likewise.
2326         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
2328 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
2330         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
2332 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
2334         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
2336         * elf/tst-tls3.c: New file.
2337         * elf/tst-tlsmod1.c: New file.
2338         * elf/Makefile: Add rules to build and run tst-tls3.
2340         * sysdeps/i386/dl-machine.h: Include <tls.h>.
2341         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
2342         TLS relocations.
2344         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
2346         * po/fr.po: Update from translation team.
2348         * elf/tls-macros.h: Add alternative macros for use in PIC.
2350         * elf/dl-lookup.c: Include <tls.h>.
2351         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
2353         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
2354         required by passing pointer to last element of the list.
2356         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
2357         l_tls_initimage to a place where it actually is performed.
2359         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
2360         after globfree() calls.
2362         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
2363         (openaux): Pass open_mode as new last argument to _dl_map_object.
2364         (_dl_map_object_deps): Add new argument open_mode.  Initialize
2365         open_mode element of args variable with it.
2366         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
2367         _dl_map_object_deps.
2368         * elf/rtld.c (dl_main): Add zero as last parameter to
2369         _dl_map_object_deps call.
2370         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
2371         * elf/nodlopen2.c: New file.
2372         * elf/nodlopenmod2.c: New file.
2373         * elf/Makefile: Add rules to build and run nodlopen2.
2375         * elf/tst-tls1.c: Move TLS helper macros to...
2376         * elf/tls-macros.h: ...here.  New file.
2377         * elf/tst-tls2.c: New file.
2378         * elf/Makefile (tests): Add tst-tls2.
2379         (distribute): Add tls-macros.h.
2381         * po/sv.po: Update from translation team.
2383         * elf/tst-tls1.c (main): Add complete set of tests.  Split
2384         architecture specific definitions from the actual test code.
2386         * po/tr.po: Update from translation team.
2388 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
2390         * elf/Makefile (tests): Add tst-tls1.
2391         * elf/tst-tls1.c: New file.
2393         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
2394         alignment of TCB for now.
2396         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
2397         initialization image for the application itself.
2399         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
2400         loop to initialize TLS block.
2402 2002-02-08  Richard Henderson  <rth@redhat.com>
2404         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
2405         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
2407         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
2409 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
2411         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
2413 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
2415         * po/ca.po: Update from translation team.
2416         * po/sk.po: Likewise.
2418         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
2419         (dl_main): Move dtv/static TLS handling before relocation.
2420         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
2421         TLS_INIT_TP to allocate and install the dtv/static TLS block.
2422         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
2423         so far uses TLS initialize GL(dl_tls_static_size) and
2424         GL(dl_tls_static_align) to account for the TCB.
2425         (_dl_allocate_tls): New function.
2426         * sysdeps/generic/ldsodefs.h (rtld_global): Add
2427         _dl_initial_dtv_malloced.
2429         * configure.in: Test for __builtin_memset more realistically.
2431         * csu/version.c (banner): If TLS support is available say so.
2433 2002-02-04  H.J. Lu  <hjl@gnu.org>
2435         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
2436         __attribute_used__.
2437         (__dl_runtime_resolve): Likewise.
2439         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
2440         declaration.
2442 2001-11-15  H.J. Lu  <hjl@gnu.org>
2444         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
2445         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
2447         * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
2449 2002-02-07  H.J. Lu  <hjl@gnu.org>
2451         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
2452         ".set noreorder".
2453         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
2454         Likewise.
2456 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
2458         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
2460         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
2461         ___tls_get_addr_internal.
2462         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
2464         * po/ko.po: Update from translation team.
2466 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
2468         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
2469         attribute, change __pad{1,2} type to unsigned int.
2470         (struct stat64): Remove packed attribute.
2472 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
2474         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
2476 2002-02-07  Andreas Schwab  <schwab@suse.de>
2478         * configure.in: Fix check for -zcombreloc.
2480 2002-02-06  H.J. Lu  <hjl@gnu.org>
2482         * config.h.in (HAVE_BUILTIN_MEMSET): New.
2483         * configure.in: Check if __builtin_memset really works.
2484         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
2485         __GNUC_PREREQ (2, 96) before using __builtin_memset.
2487 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
2489         * io/bug-ftw3.c (main): Don't try the test if root.
2491 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2493         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
2494         constraints.
2495         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
2496         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
2497         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
2498         Likewise.
2499         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
2500         a weak alias for __clone.
2501         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
2502         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
2503         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
2504         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
2505         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
2506         a weak alias for __mmap64.
2508 2002-02-05  H.J. Lu  <hjl@gnu.org>
2510         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
2511         (atomic_add): Likewise.
2512         (compare_and_swap): Likewise.
2513         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
2515 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
2517         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
2519         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
2520         alignment of the TCB and store total size and alignment of static
2521         TLS block in _dl_tls_static_size and _dl_tls_static_align.
2522         tls_index is a typedef.
2523         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
2524         _dl_tls_static_align.
2525         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
2526         * elf/dl-support.c: Define _dl_tls_static_size and
2527         _dl_tls_static_align.
2529 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
2531         * configure.in: Add --without-tls option.
2532         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
2533         --without-tls is given.
2535         * sysdeps/generic/dl-tls.c: Include <tls.h>.
2537         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
2539 2002-02-06  Roland McGrath  <roland@frob.com>
2541         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
2542         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
2544         * scripts/versions.awk: Improve error message for missing version.
2545         Each version inherits from the last one only if they have the same
2546         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
2547         but not GLIBC_x and FOO_y.
2549         * scripts/firstversions.awk: Handle libraries that don't have each
2550         particular version named in the third column of shlib-versions.
2552         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
2554 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
2556         * Versions.def [ld]: Add GLIBC_2.3.
2557         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
2558         * elf/Makefile (dl-routines): Add dl-tls.
2559         (distribute): Add dl-tls.h.
2560         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
2561         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
2562         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
2563         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
2564         along with the other info in the link map.  Change queueing of init
2565         images for double linked list.  Use _dl_next_tls_modid to compute
2566         l_tls_modid.
2567         * elf/rtld.c (_dl_start_final): Store alignment requirement
2568         along with the other info in rtld map and executable map.
2569         (dl_main): Add ld.so to the init image list if necessary.  Compute
2570         final module ID with _dl_next_tls_modid.
2571         * include/link.h (struct link_map): Add l_tls_previmage and
2572         l_tls_align.
2573         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
2574         * sysdeps/i386/elf/Versions: New file.
2575         * sysdeps/generic/dl-tls.c: New file.
2576         * sysdeps/generic/dl-tls.h: New file.
2577         * sysdeps/i386/dl-tls.h: New file.
2579 2002-02-06  Roland McGrath  <roland@frob.com>
2581         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
2582         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
2584 2002-01-05  Roland McGrath  <roland@frob.com>
2586         * sysdeps/mach/configure.in: New file.
2587         * sysdeps/mach/configure: New generated file.
2589         * mach/Makefile (user-interfaces): Remove default_pager_helper.
2590         It has never been used by anything.
2592 2002-02-06  H.J. Lu  <hjl@gnu.org>
2594         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
2595         is included.
2597 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
2599         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
2600         attribute((packed)) to counter stupid people misusing gcc options.
2601         (struct stat64): Likewise.
2603 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
2605         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
2606         the variables which are used as booleans.
2608 2002-02-06  Andreas Jaeger  <aj@suse.de>
2610         * include/libc-symbols.h (INTUSE): Renamed from INT.
2611         * elf/dl-deps.c: Change users.
2612         * sysdeps/generic/dl-sysdep.c: Likewise.
2613         * sysdeps/generic/dl-cache.c: Likewise.
2614         * elf/dl-reloc.c: Likewise.
2615         * elf/rtld.c: Likewise.
2616         * elf/dl-version.c: Likewise.
2617         * elf/dl-load.c: Likewise.
2618         * elf/dl-dst.h: Likewise.
2619         * elf/dl-init.c: Likewise.
2620         * elf/dl-error.c: Likewise.
2621         * elf/dl-fini.c: Likewise.
2622         * elf/dl-runtime.c: Likewise.
2623         * elf/do-lookup.h: Likewise.
2625         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
2626         definition.
2627         * stdio-common/_itowa.h: Likewise.
2629 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
2631         * elf/dl-minimal.c: Define _itoa_lower_digits.
2633         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
2634         DT_FLAGS set.
2636         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
2637         loading modules with the DF_STATIC_TLS flag set.
2638         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
2639         element.
2640         * include/link.h (struct link_map): Add l_flags field.
2641         * elf/elf.h (DF_STATIC_TLS): New definition.
2643         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
2644         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
2646         * elf/rtld.c (process_dl_debug): Correct printing help message.
2647         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
2648         for %s.
2650         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
2651         definition and pass &errno in use of this variable.
2652         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
2654 2002-02-04  Andreas Schwab  <schwab@suse.de>
2656         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
2657         * locale/programs/charmap-dir.c: Wrap calls that output messages
2658         with WITH_CUR_LOCALE.  Include "localedef.h" first.
2659         * locale/programs/charmap.c: Likewise.
2660         * locale/programs/ld-address.c: Likewise.
2661         * locale/programs/ld-collate.c: Likewise.
2662         * locale/programs/ld-ctype.c: Likewise.
2663         * locale/programs/ld-identification.c: Likewise.
2664         * locale/programs/ld-measurement.c: Likewise.
2665         * locale/programs/ld-messages.c: Likewise.
2666         * locale/programs/ld-monetary.c: Likewise.
2667         * locale/programs/ld-name.c: Likewise.
2668         * locale/programs/ld-numeric.c: Likewise.
2669         * locale/programs/ld-paper.c: Likewise.
2670         * locale/programs/ld-telephone.c: Likewise.
2671         * locale/programs/ld-time.c: Likewise.
2672         * locale/programs/linereader.c: Likewise.
2673         * locale/programs/linereader.h: Likewise.
2674         * locale/programs/localedef.c: Likewise.
2675         * locale/programs/locfile.c: Likewise.
2676         * locale/programs/repertoire.c: Likewise.
2678 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
2680         * elf/rtld.c (_dl_start_final): Determine load address to locate
2681         ehdr with GL(dl_rtld_map).l_map_start.
2683         * po/ca.po: Update from translation team.
2685         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
2686         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
2687         header entry.
2688         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
2689         _dl_tls_module_cnt.
2690         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
2692 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
2694         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
2695         * include/link.h (struct link_map): Add various members for TLS
2696         information.
2697         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
2698         _rtld_tlsoffset, add _dl_initimage_list.
2699         * sysdeps/i386/dl-lookupcfg.h: New file.
2700         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
2701         TLS relocation.  When using TLS we now use RESOLVE_MAP.
2702         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
2703         is used.
2705         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
2706         unused.
2708         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
2709         thread-pointer as soon as possible.
2710         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
2711         elements in rtld_global.
2712         * sysdeps/generic/tls.h: New file.
2713         * elf/Makefile (distribute): Add tls.h.
2714         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
2715         relocations.  Not complete yet.
2717         * resolv/resolv.h: Allow user to define __need_res_state and only
2718         define __res_start structure then.
2719         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
2721         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
2722         dl_cpuclock_offset initialization to _dl_start_final.
2723         (_dl_show_auxv): Avoid unnecessary sign extension.
2724         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
2726 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
2728         * config.h.in: Add HAVE_TLS_SUPPORT.
2729         * sysdeps/i386/elf/configure.in: New file.
2731 2002-02-03  Andreas Schwab  <schwab@suse.de>
2733         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
2734         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
2736 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
2738         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
2739         alloca if the memory reqirements are too high.
2741 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
2743         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
2744         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
2745         the former is available anyway and speed isn't important here.
2746         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
2747         * elf/dl-version.c (match_symbol): Likewise.
2748         (_dl_check_map_versions): Likewise.
2749         * elf/rtld.c (process_envvars): Likewise.
2750         (print_statistics): Likewise.
2751         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
2752         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
2753         bases.  Add assert to catch uses of unimplemented features.
2754         (__strsep): Add assert to catch uses of unimplemented features.
2755         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
2756         and avoid inline optimization.
2757         * elf/rtld.c (process_envvars): Likewise.
2758         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
2759         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
2760         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
2762 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
2764         * stdio-common/_itoa.h: Minor simplifications of the code.
2765         * stdio-common/_itoa.c: Likewise.
2767         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
2768         instead of _dl_printf for debugging info output.
2770         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
2771         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
2773 2002-02-01  H.J. Lu  <hjl@gnu.org>
2775         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
2776         (atomic_add): Likewise.
2777         (compare_and_swap): Return 0 only when failed to compare. Use
2778         branch likely.
2780         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
2781         branch likely.
2783 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2785         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
2787 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
2789         * elf/dl-minimal.c (__strsep): New minimal implementation.
2791 2002-02-02  Paul Eggert  <eggert@twinsun.com>
2793         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
2794         (__mktime_internal): If no tm_isdst is requested, prefer solutions
2795         with tm_isdst > 0 when the requested time falls within a
2796         spring-forward gap [PR libc/2894].
2798 2002-02-03  Andreas Schwab  <schwab@suse.de>
2800         * stdio-common/tst-rndseek.c: Increase timeout.
2802 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
2804         Change ld.so to not use functions which are exported.  One cannot
2805         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
2806         definitions.
2807         * include/libc-symbols.h: Define INT and INTDEF.
2808         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
2809         _dl_signal_error_internal, _dl_map_object_internal,
2810         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
2811         _dl_lookup_versioned_symbol_internal,
2812         _dl_relocate_object_internal, _dl_debug_state_internal,
2813         _dl_start_profile_internal, and _dl_unload_cache_internal.
2814         * include/dlfcn.h: Declare _dl_catch_error_internal.
2815         * elf/rtld.c: Use INT for calls to any of the *_internal functions
2816         above.  Add INTDEF to function definitions.
2817         * elf/dl-debug.c: Likewise.
2818         * elf/dl-deps.c: Likewise.
2819         * elf/dl-dst.h: Likewise.
2820         * elf/dl-error.c: Likewise.
2821         * elf/dl-fini.c: Likewise.
2822         * elf/dl-init.c: Likewise.
2823         * elf/dl-load.c: Likewise.
2824         * elf/dl-lookup.c: Likewise.
2825         * elf/dl-misc.c: Likewise.
2826         * elf/dl-open.c: Likewise.
2827         * elf/dl-profile.c: Likewise.
2828         * elf/dl-reloc.c: Likewise.
2829         * elf/dl-runtime.c: Likewise.
2830         * elf/dl-version.c: Likewise.
2831         * elf/do-lookup.h: Likewise.
2832         * sysdeps/generic/dl-cache.c: Likewise.
2833         * sysdeps/generic/dl-sysdep.c: Likewise.
2834         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
2835         instead of _dl_init.
2836         * sysdeps/arm/dl-machine.h: Likewise.
2837         * sysdeps/cris/dl-machine.h: Likewise.
2838         * sysdeps/hppa/dl-machine.h: Likewise.
2839         * sysdeps/i386/dl-machine.h: Likewise.
2840         * sysdeps/ia64/dl-machine.h: Likewise.
2841         * sysdeps/m68k/dl-machine.h: Likewise.
2842         * sysdeps/mips/dl-machine.h: Likewise.
2843         * sysdeps/mips/mips64/dl-machine.h: Likewise.
2844         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
2845         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
2846         * sysdeps/sh/dl-machine.h: Likewise.
2847         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
2848         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
2849         * sysdeps/x86_64/dl-machine.h: Likewise.
2850         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
2852         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
2853         and _dl_debug_initialize.
2855         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
2856         more information.
2857         * elf/rtld.c (dl_main): Avoid strrchr.
2858         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
2859         result of readlink.  Search from the back for '/'.
2861         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
2862         strncpy if possible.
2864         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
2865         strncmp.
2866         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
2867         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
2868         strspn, and strcspn.
2869         (process_envvars): Don't use strcspn.
2871         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
2872         (_dl_dst_substitute): Likewise.
2874 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
2876         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
2877         code which is never used when relocating ld.so itself.
2879         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
2880         starting ld.so itself.  Move l_addr variable initialization closer
2881         to use.
2882         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
2884 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
2886         * Versions.def (libc): Add GLIBC_PRIVATE.
2887         (libdb, libnss_db, libdb1): Remove.
2888         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
2889         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
2890         (libpthread): Add GLIBC_PRIVATE.
2891         (libresolv): Likewise, remove GLIBC_2.1.
2892         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
2893         GLIBC_2.2.3, GLIBC_2.3.
2894         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
2895         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
2896         _dl_sym, _dl_vsym): Likewise.
2897         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
2898         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
2899         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
2900         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
2901         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
2902         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
2903         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
2904         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
2905         Likewise.
2906         (_dl_object_relocation_scope): Remove.
2907         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
2908         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
2909         __gconv_cache): Move to GLIBC_PRIVATE.
2910         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
2911         __internal_setnetgrent): Likewise.
2912         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
2913         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
2914         * locale/Versions (__collate_element_hash, __collate_element_strings,
2915         __collate_symbol_classes, __collate_symbol_hash,
2916         __collate_symbol_strings, _nl_current_LC_COLLATE,
2917         _nl_current_LC_CTYPE): Likewise.
2918         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
2919         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
2920         (libnss_nis, libnss_nisplus): Likewise.
2921         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
2922         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
2923         (libnss_files): Move all symbols to GLIBC_PRIVATE.
2924         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
2925         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
2926         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
2927         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
2928         __ns_get16, __ns_samename): Likewise.
2929         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
2930         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
2931         GLIBC_PRIVATE.
2932         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
2933         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
2934         __libc_connect): Likewise.
2935         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
2936         Likewise.
2937         * stdlib/Versions (__libc_system): Likewise.
2938         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
2939         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
2940         * sysdeps/ia64/fpu/Versions: Likewise.
2941         * sysdeps/ia64/Versions: Likewise.
2942         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
2943         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
2944         to GLIBC_PRIVATE.
2945         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
2946         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
2947         __libc_sigaction): Likewise.
2948         * termios/Versions (__libc_tcdrain): Likewise.
2950         * misc/sys/cdefs (__attribute_noinline__): Define.
2951         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
2952         __attribute_noinline__.
2954         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
2955         * elf/dl-xstat64.c: New file.
2956         * elf/dl-fxstat64.c: New file.
2957         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
2958         don't export __fxstat64 at multiple versions.
2959         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
2960         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
2962 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
2964         * locale/program/ld-collate.c (collate_finish): Assign a wide
2965         char collation sequence value to multi character collating
2966         elements, and avoid over writing by non-character elements.
2968 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
2970         * elf/Makefile (distribute): Add dl-procinfo.c.
2971         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
2972         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
2974 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
2976         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
2977         definition.
2978         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
2979         _rtld_global struct.
2980         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
2981         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
2982         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
2983         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
2984         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
2985         _dl_fpu_control_set): Remove unused externs.
2986         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
2987         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
2988         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
2989         related variables in _rtld_global struct.
2990         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
2991         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
2992         unused extern.
2994 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
2996         * sysdeps/generic/dl-procinfo.c: New file.
2998 2002-02-01  Andreas Schwab  <schwab@suse.de>
3000         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
3002 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
3004         * elf/rtld.c (_dl_start): Mark as internal_function.
3005         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
3006         in register.
3007         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
3008         General pretty printing.
3010 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
3012         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
3013         * elf/dl-reloc.c: Pretty printing.
3014         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
3015         procinfo-related variables in rtld_global struct.
3016         * elf/dl-support.c: Likewise.
3017         * elf/rtld.c: Likewise.
3018         * sysdeps/i386/i686/Makefile: Likewise.
3019         * sysdeps/i386/i686/hp-timing.c: Likewise.
3020         * sysdeps/i386/i686/hp-timing.h: Likewise.
3021         * sysdeps/ia64/Makefile: Likewise.
3022         * sysdeps/ia64/hp-timing.c: Likewise.
3023         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
3024         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
3025         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
3026         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
3027         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
3028         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
3029         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
3030         * sysdeps/x86_64/Makefile: Likewise.
3032         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
3033         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
3034         _dl_debug_fd to rtld_global.
3035         * elf/Versions: Likewise.
3036         * elf/dl-close.c: Likewise.
3037         * elf/dl-iteratephdr.c: Likewise.
3038         * elf/dl-lookup.c: Likewise.
3039         * elf/dl-misc.c: Likewise.
3040         * elf/dl-open.c: Likewise.
3041         * elf/dl-support.c: Likewise.
3042         * elf/do-lookup.h: Likewise.
3043         * elf/rtld.c: Likewise.
3044         * sysdeps/generic/dl-cache.c: Likewise.
3045         * sysdeps/generic/dl-sysdep.c: Likewise.
3046         * sysdeps/ia64/Versions: Likewise.
3047         * sysdeps/unix/clock_gettime.c: Likewise.
3048         * sysdeps/unix/clock_settime.c: Likewise.
3049         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
3050         * sysdeps/sparc/Versions: Removed.
3051         * sysdeps/i386/i686/Versions : Removed.
3052         * sysdeps/x86_64/Versions: Removed.
3053         * configure.in: Define HAVE_PROTECTED if .protected is available.
3054         * config.h.in: Add entry for HAVE_PROTECTED.
3056 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
3058         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
3059         code in struct _rtld_global.  Export this struct, remove all
3060         exports for the signal variables.
3061         * sysdeps/arm/dl-machine: Likewise.
3062         * sysdeps/generic/dl-origin: Likewise.
3063         * sysdeps/generic/dl-sysdep: Likewise.
3064         * sysdeps/generic/dl-cache: Likewise.
3065         * sysdeps/hppa/dl-fptr: Likewise.
3066         * sysdeps/hppa/dl-machine: Likewise.
3067         * sysdeps/cris/dl-machine: Likewise.
3068         * sysdeps/i386/dl-machine: Likewise.
3069         * sysdeps/ia64/dl-machine: Likewise.
3070         * sysdeps/m68k/dl-machine: Likewise.
3071         * sysdeps/mach/hurd/dl-sysdep: Likewise.
3072         * sysdeps/mips/mips64/dl-machine: Likewise.
3073         * sysdeps/mips/dl-machine: Likewise.
3074         * sysdeps/powerpc/elf/libc-start: Likewise.
3075         * sysdeps/powerpc/dl-machine: Likewise.
3076         * sysdeps/powerpc/dl-start: Likewise.
3077         * sysdeps/sparc/sparc32/dl-machine: Likewise.
3078         * sysdeps/sparc/sparc64/dl-machine: Likewise.
3079         * sysdeps/sh/dl-machine: Likewise.
3080         * sysdeps/s390/s390-32/dl-machine: Likewise.
3081         * sysdeps/s390/s390-64/dl-machine: Likewise.
3082         * sysdeps/unix/sysv/aix/libc-start: Likewise.
3083         * sysdeps/unix/sysv/aix/start-libc: Likewise.
3084         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
3085         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
3086         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
3087         * sysdeps/x86_64/dl-machine: Likewise.
3089 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
3091         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
3092         are too high.
3094 2002-01-31  Andreas Schwab  <schwab@suse.de>
3096         * sysdeps/posix/readv.c: Check for ssize_t overflow.
3098 2002-01-31  Andreas Schwab  <schwab@suse.de>
3100         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
3101         reference to _dl_pagesize.
3103 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
3105         * Versions.def [ld]: Add GLIBC_2.3.
3106         * elf/dl-addr.c: Move global variables for SHARED code in struct
3107         _rtld_global.  Export this struct, remove all exports for the
3108         signal variables.
3109         * elf/dl-close.c: Likewise.
3110         * elf/dl-conflict.c: Likewise.
3111         * elf/dl-debug.c: Likewise.
3112         * elf/dl-deps.c: Likewise.
3113         * elf/dl-dst.h: Likewise.
3114         * elf/dl-error.c: Likewise.
3115         * elf/dl-fini.c: Likewise.
3116         * elf/dl-init.c: Likewise.
3117         * elf/dl-iteratephdr.c: Likewise.
3118         * elf/dl-libc.c: Likewise.
3119         * elf/dl-load.c: Likewise.
3120         * elf/dl-lookup.c: Likewise.
3121         * elf/dl-minimal.c: Likewise.
3122         * elf/dl-object.c: Likewise.
3123         * elf/dl-open.c: Likewise.
3124         * elf/dl-profile.c: Likewise.
3125         * elf/dl-profstub.c: Likewise.
3126         * elf/dl-reloc.c: Likewise.
3127         * elf/dl-runtime.c: Likewise.
3128         * elf/dl-support.c: Likewise.
3129         * elf/dl-sym.c: Likewise.
3130         * elf/dl-version.c: Likewise.
3131         * elf/do-lookup.h: Likewise.
3132         * elf/do-rel.h: Likewise.
3133         * elf/dynamic-link.h: Likewise.
3134         * elf/rtld.c: Likewise.
3135         * sysdeps/generic/dl-cache.c: Likewise.
3136         * sysdeps/generic/dl-sysdep.c: Likewise.
3137         * sysdeps/generic/ldsodefs.h: Likewise.
3138         * sysdeps/generic/libc-start.c: Likewise.
3139         * sysdeps/i386/dl-machine.h: Likewise.
3140         * sysdeps/ia64/dl-fptr.c: Likewise.
3141         * sysdeps/ia64/dl-machine.h: Likewise.
3142         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
3143         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
3144         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
3145         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
3146         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
3147         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
3148         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
3149         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
3151 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
3153         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
3154         to avoid warning
3155         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
3157         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
3158         SHARED version.
3159         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
3161         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
3163 2002-01-29  Ben Collins  <bcollins@debian.org>
3165         * string/bits/string2.h (__mempcpy): Protect size arg for
3166         addition when using __builtin_memcpy.
3168 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
3170         * stdlib/Makefile (tests): Add tst-qsort.
3171         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
3173         * manual/signal.texi (Process Signal Mask): Document that
3174         pthread_sigmask, not sigprocmask, must be used in MT programs.
3175         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
3177         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
3178         found.
3179         * misc/Makefile (tests): Add tst-hsearch.
3180         * misc/tst-hsearch.c: New file.
3182 2002-01-18  Wolfram Gloger  <wg@malloc.de>
3184         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
3185         * malloc/malloc.h: Likewise.
3186         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
3187         * malloc/arena.c: New file.
3188         * malloc/hooks.c: New file.
3189         * malloc/tst-mallocstate.c: New file.
3190         * malloc/Makefile: Add new testcase tst-mallocstate.
3191         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
3193 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
3195         * stdlib/msort.c: Remove last patch.  The optimization violates the
3196         same rule which qsort.c had problems with.
3198 2002-01-27  Paul Eggert  <eggert@twinsun.com>
3200         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
3201         to a pivot element that lies outside the array to be sorted, as
3202         ISO C99 requires that the comparison function be called only with
3203         addresses of array elements [PR libc/2880].
3205 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
3207         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
3208         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
3210         * timezone/asia: Update from tzdata2002b.
3211         * timezone/australasia: Likewise.
3212         * timezone/backward: Likewise.
3213         * timezone/europe: Likewise.
3214         * timezone/leapseconds: Likewise.
3215         * timezone/iso3166.tab: Likewise.
3216         * timezone/zone.tab: Likewise.
3218 2002-01-23  Richard Henderson  <rth@redhat.com>
3220         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
3222 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
3224         * string/strxfrm.c: Allocate one more byte for rulearr and clear
3225         this element [PR libc/2855].
3227         * string/strcoll.c: Handle zero-length arguments specially
3228         [PR libc/2856].
3230 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
3232         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
3233         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
3234         short lengths and constant src.
3235         (strcpy): Don't optimize for gcc 3.0+.
3236         (__stpcpy): For gcc 3.0+, don't use
3237         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
3238         for short string literal src.
3240 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
3242         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
3243         Set for arm, too.
3245 2001-01-22  Paul Eggert  <eggert@twinsun.com>
3247         * manual/llio.texi (Linked Channels, Cleaning Streams):
3248         Make it clearer that a just-opened input stream might need cleaning.
3250 2002-01-21  H.J. Lu  <hjl@gnu.org>
3252         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
3253         Don't use label at end of compound statement.
3255 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
3257         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
3258         Remove test for negative integer arg; sin_pi does it correctly.
3260 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
3262         * nscd/Makefile (distribute): Filter out xmalloc.c.
3264 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
3266         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
3267         Set offset if read end wasn't the buffer end.
3268         (_IO_file_seekoff_mmap): New function.
3269         (_IO_file_xsgetn_mmap): New function.
3270         (_IO_file_jumps_mmap): Use the two new functions.
3271         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
3272         != end buffer.
3273         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
3274         _IO_file_underflow_mmap.
3275         * libio/iofopen.c: Don't position file descriptor at end of file.
3276         * libio/tst-widetext.c: Improve error messages.
3277         * stdio-common/tst-rndseek.c: Likewise.
3279 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
3281         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
3282         end of enum for !_GNU_SOURCE.
3283         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
3284         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
3285         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
3286         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
3287         values unless _GNU_SOURCE.
3289         * iconvdata/tcvn5712-1.c: Minor cleanups.
3291 2002-01-18  Andreas Schwab  <schwab@suse.de>
3293         * sysdeps/unix/sysv/linux/configure.in
3294         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
3296 2002-01-16  Roger Sayle  <roger@eyesopen.com>
3298         * stdlib/msort.c (msort_with_tmp): Replace implementation with
3299         more efficient "Towers of Hanoi" mergesort.
3300         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
3301         for generic, sizeof(int) and sizeof(long) variants respectively.
3303 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
3305         * manual/syslog.texi (openlog): Describe possible problems with
3306         first parameter.
3307         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
3309         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
3310         * nscd/connections.c (begin_drop_privileges): New function.
3311         (finish_drop_privileges): New function.
3312         (nscd_init): Call the new functions which also install all groups
3313         for the server user.
3314         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
3315         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
3317 2002-01-17  H.J. Lu  <hjl@gnu.org>
3319         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
3320         `const' from `got'.
3322 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3324         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
3325         instructions for pointer operations.
3326         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
3328 2002-01-17  Andreas Jaeger  <aj@suse.de>
3330         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
3331         __uint128_t build-in.
3333         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
3334         PowerPC, sync with 2.2 branch.
3336 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
3338         * posix/getconf.c: Update copyright year.
3339         * nss/getent.c: Likewise.
3340         * nscd/nscd_nischeck.c: Likewise.
3341         * iconv/iconvconfig.c: Likewise.
3342         * iconv/iconv_prog.c: Likewise.
3343         * elf/ldconfig.c: Likewise.
3344         * catgets/gencat.c: Likewise.
3345         * csu/version.c: Likewise.
3346         * elf/ldd.bash.in: Likewise.
3347         * elf/sprof.c (print_version): Likewise.
3348         * locale/programs/locale.c: Likewise.
3349         * locale/programs/localedef.c: Likewise.
3350         * nscd/nscd.c (print_version): Likewise.
3351         * debug/xtrace.sh: Likewise.
3352         * malloc/memusage.sh: Likewise.
3353         * malloc/mtrace.pl: Likewise.
3355 2002-01-16  Andreas Schwab  <schwab@suse.de>
3357         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
3358         reliably remove "-ia64" from rtld name.
3360 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
3362         * iconvdata/gb18030.c: Bug fixes and support for more characters.
3363         Patch by Yu Shao <yshao@redhat.com>.
3365 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3367         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
3368         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
3369         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
3371 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3373         * sysdeps/s390/fpu/libm-test-ulps: Update.
3375 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
3377         * elf/elf.h: Update x86 relocations.
3379 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
3381         * locale/programs/charmap.c (new_width): Check whether byte
3382         sequences for both ends of range have the same length.
3384 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
3386         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
3388 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
3390         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
3391         string literals.
3392         (__full_ieee754_sqrt): Add __attribute_used__.
3394 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
3396         * sysdeps/generic/group_member.c (__group_member): Also check
3397         groups[0] [PR libc/2781].
3399 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
3401         * Makefile (distribute): Add scripts/cpp.
3402         * elf/Makefile (distribute): Add reldep6mod[01234].c,
3403         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
3404         unwind-dw2-fde.h, and dwarf2.h.
3405         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
3406         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
3407         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
3408         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
3410 2002-01-07  Roland McGrath  <roland@frob.com>
3412         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
3413         volatile on type of ARGC so the compiler doesn't get clever.
3415 2002-01-07  Andreas Jaeger  <aj@suse.de>
3417         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
3418         * sysdeps/i386/bits/byteswap.h: Likewise.
3419         * sysdeps/ia64/bits/byteswap.h: Likewise.
3420         * sysdeps/m68k/bits/byteswap.h: Likewise.
3421         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
3422         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
3424 2002-01-02  Bruno Haible  <bruno@clisp.org>
3426         * intl/plural.y: Fix %expect count.
3428 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
3430         * elf/Makefile (routines, shared-only-routines): Add
3431         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
3432         * elf/elf.h (PT_GNU_EH_FRAME): Define.
3433         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
3434         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
3435         Optimize if .eh_frame section contains no FDEs.
3436         (__register_frame, __deregister_frame_info_bases,
3437         __deregister_frame): Likewise.
3438         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
3439         DW_CFA_restore handling.
3441 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
3443         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
3445         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
3446         for x < 0.25 and restore original range reduction method.
3447         (__ieee754_lgammal_r): Make sure signgam is set before returning.
3449 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
3451         * libio/fileops.c (_IO_file_underflow_mmap): New function.
3452         (_IO_file_close_mmap): New function.
3453         (_IO_file_jumps_mmap): New variable.
3454         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
3455         trying to convert rest of byte buffer.
3456         (_IO_wfile_underflow_mmap): New function.
3457         (_IO_wfile_jumps_mmap): New variable.
3458         * libio/iofopen.c (__fopen_maybe_mmap): New function.
3459         (__fopen_internal): New function.  Split out from _IO_new_fopen.
3460         (_IO_new_fopen): Call __fopen_internal.
3461         * libio/iofopen64.c: Just call __fopen_internal.
3462         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
3463         successfully.
3464         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
3465         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
3466         _IO_file_close_mmap.
3468         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
3469         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
3471         * stdio-common/Makefile (tests): Add tst-rndseek.
3472         * stdio-common/tst-rndseek.c: New file.
3474 2002-01-05  Roland McGrath  <roland@frob.com>
3476         * config.h.in (HAVE_MIG_RETCODE): New #undef.
3477         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
3478         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
3479         * sysdeps/mach/hurd/configure: Regenerated.
3481 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
3483         * elf/elf.h: Add more TLS definitions.
3485 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
3487         * include/features.h (__GLIBC_MINOR__): Bump to 3.
3489 2002-01-02  Roland McGrath  <roland@frob.com>
3491         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
3492         __sigisemptyset.  Don't use MASK uninitialized.
3494         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
3495         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
3496         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
3497         __sigdelset, __sigaddset, __sigorset.
3499         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
3500         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
3502         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
3503         _hurd_ports is null.
3505         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
3506         for old CMU and new OSF Mach interface flavors.
3507         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
3508         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
3510         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
3512         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
3513         Pass extra arguments to task_create for OSF variant.
3514         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
3516         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
3517         conditional on [HAVE_AUX_VECTOR].
3519         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
3520         mach_msg_timeout_t as type of final argument.
3522         * hurd/privports.c (__get_privileged_ports):
3523         Change host_priv_t to mach_port_t in argument type.
3524         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
3525         Update decls.
3527         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
3528         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
3529         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
3530         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
3531         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
3532         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
3534 2002-01-01  Roland McGrath  <roland@frob.com>
3536         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
3538 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
3540         * include/stdlib.h: Define inlines for the _l variants of the strto*
3541         functions.
3543 2002-01-01  Roland McGrath  <roland@frob.com>
3545         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
3547         * mach/Machrules (MIG): Set CPP as well as CC.
3549 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
3551         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
3552         locale to parse /proc/loadavg [PR libc/2760].
3554 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
3556         * elf/dl-conflict.c: Include sys/param.h.
3557         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
3558         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
3559         warning.
3560         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
3561         literals to avoid warnings.
3563 2001-12-31  Andreas Jaeger  <aj@suse.de>
3565         * configure.in: Don't check for gsed since we do not use it anywhere.
3567 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
3569         * io/fts.c: Update from BSD to fix memory leaks.
3571 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
3573         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
3574         * elf/chroot_canon.c: Likewise.
3575         * elf/dl-object.c: Likewise.
3576         * iconv/iconv_charmap.c: Likewise.
3577         * iconv/iconv_prog.c: Likewise.
3578         * libio/iogetdelim.c: Likewise.
3579         * locale/lc-time.c: Likewise.
3580         * stdlib/canonicalize.c: Likewise.
3581         * sunrpc/svc.c: Likewise.
3582         * sysdeps/generic/glob.c: Likewise.
3584 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3586         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
3587         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
3588         remove high order bit from the program counter.
3589         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
3591 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3593         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
3594         unnecessary code and add missing reloc types.
3595         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
3596         case for reloc type R_390_NONE.
3598 2001-12-28  Andreas Jaeger  <aj@suse.de>
3600         * io/bug-ftw3.c: Include string.h for prototypes.
3602         * crypt/md5test.c (main): Remove unused variable.
3604         * dlfcn/modstatic.c: Add prototype to avoid warning.
3606 2001-12-26  Roland McGrath  <roland@frob.com>
3608         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
3609         check only (SS->pending & MASK) for the signal to return.
3610         From Jeroen Dekkers <jeroen@dekkers.cx>.
3612 2001-12-22  Roland McGrath  <roland@frob.com>
3614         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
3615         Use preprocessor #if conditionals instead of `if' to avoid
3616         warnings about divide by zero in dead code.
3618         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
3619         _hurd_port_init, and __hurd_self_sigstate.
3621         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
3623 2001-12-21  Andreas Jaeger  <aj@suse.de>
3625         * elf/dblloadmod1.c: Add prototype to avoid warning.
3626         * elf/dblloadmod2.c: Likewise.
3627         * elf/dblloadmod3.c: Likewise.
3628         * elf/reldepmod5.c: Likewise.
3629         * elf/reldepmod6.c: Likewise.
3631         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
3632         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
3633         used on all architectures.
3635         * sunrpc/svc_tcp.c: Add noreturn attribute for
3636         svctcp_rendezvous_abort.
3637         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
3639         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
3640         to avoid warning.
3642 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
3644         * manual/llio.texi (aio_fsync): Fix a typo.
3645         Patch by Tammy Fox <tfox@redhat.com>.
3647 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
3649         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
3650         stack bias from child stack pointer before passing it to clone syscall.
3652 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
3654         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
3655         _SC_TZNAME_MAX.
3656         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
3657         Reported by Thorsten Kukuk <kukuk@suse.de>.
3659         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
3660         add some casts.
3662         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
3664 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
3666         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
3667         conforming: return EBADF if file descriptor is invalid and EINVAL
3668         if file descriptor is no valid tty.
3669         * login/tst-grantpt.c: New file.
3670         * login/Makefile (tests): Add tst-grantpt.
3672 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
3674         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
3675         different than implemented in last patch.
3676         * io/bug-ftw3.c: Adjust test for changed handling of
3677         inaccessibility of toplevel dir.
3679 2001-12-16  Roland McGrath  <roland@frob.com>
3681         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
3682         * grp/initgroups.c (internal_getgrouplist): Likewise.
3684         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
3685         `default:' to silence new GCC warning.
3686         Rewrite cast of lvalue to silence new GCC warning.
3688         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
3690         * sysdeps/mach/hurd/spawni.c: New file, by me with a
3691         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
3693 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
3695         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
3696         Patch by Stephen R. van den Berg.
3698         * crypt/md5.h: Define md5_uintptr.
3700 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
3702         * libio/tst_swprintf.c (main): Add test for string argument with
3703         zero precision.
3704         * stdio-common/Makefile (tests): Add tst-sprintf.
3705         * stdio-common/tst-sprintf.c: New file.
3707 2001-12-13  Andreas Schwab  <schwab@suse.de>
3709         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
3710         zero precision with wide character string format.
3712 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
3714         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
3715         but have a user supplied buffer, return the empty buffer, not NULL.
3717 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
3719         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
3720         Patch by Eric Sharkey <sharkey@netrics.com>.
3722         * crypt/md5test.c (main): Add test for multiple calls to
3723         __md5_process_bytes to itererate over input string.
3725 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
3727         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
3728         from __nis_findfastest.  Take timeout value from parameter.
3729         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
3730         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
3731         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
3733 2001-12-12  Andreas Jaeger  <aj@suse.de>
3735         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
3736         combreloc test so that it works in this case.
3738         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
3740 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
3742         * sysdeps/sh/Makefile: New file.
3743         * sysdeps/sh/_mcount.S: New file.
3744         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
3745         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
3747 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
3749         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
3750         limitation [PR libc/2564].
3752 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
3754         * elf/Makefile (dl-routines): Add conflict.
3755         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
3756         (ld.so): Add _begin local symbol.
3757         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
3758         Define.
3759         * elf/dl-deps.c (_dl_build_local_scope): New.
3760         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
3761         of all libraries.
3762         * elf/do-rel.h (VALIDX): Define.
3763         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
3764         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
3765         can be skipped.
3766         * elf/dl-conflict.c: New file.
3767         * elf/dl-lookup.c (_dl_debug_bindings): New.
3768         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
3769         non-NULL.
3770         (_dl_lookup_symbol_skip): Likewise.
3771         (_dl_lookup_versioned_symbol): Likewise.
3772         (_dl_lookup_versioned_symbol_skip): Likewise.
3773         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
3774         define to ElfW(Rel).
3775         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
3776         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
3777         ranges.
3778         Don't adjust address dynamic tags if l_addr is 0.
3779         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
3780         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
3781         (VALIDX, ADDRIDX): Define.
3782         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
3783         (dl_main): Print library list for LD_TRACE_PRELINKING.
3784         If prelinking information can be used, skip relocating libraries and
3785         call _dl_resolve_conflicts instead.
3786         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
3787         * elf/dl-load.c (_dl_map_object): Don't create fake libs
3788         if LD_TRACE_PRELINKING.
3789         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
3790         + DT_ADDRNUM.
3791         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
3792         (DL_DEBUG_PRELINK): Define.
3793         (_dl_resolve_conflicts): Add prototype.
3795         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
3796         .plt for prelinked libraries where prelinking info cannot be used.
3797         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
3798         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
3799         * sysdeps/arm/bits/link.h: New file.
3800         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
3801         content of .got[1].
3802         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
3803         (ELF_MACHINE_PLT_REL): Define.
3804         (elf_machine_rela, elf_machine_rela_relative): New.
3805         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
3806         of adjusting it if prelinked and prelinking cannot be used.
3807         * sysdeps/i386/bits/link.h: New file.
3808         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
3809         content of .got[1].
3810         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
3811         (ELF_MACHINE_PLT_REL): Define.
3812         (elf_machine_rela, elf_machine_rela_relative): New.
3813         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
3814         of adjusting it if prelinked and prelinking cannot be used.
3815         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
3816         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
3817         to find out map for R_PPC_JMP_SLOT relocs.
3818         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
3819         (OPCODE_BA): Define.
3820         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
3821         libraries where prelinking info cannot be used.
3822         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
3823         (elf_machine_fixup_plt): Call sparc_fixup_plt.
3824         (elf_machine_rela): Set value to 0 if relocating conflicts.
3825         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
3826         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
3827         (sparc64_fixup_plt): Fix a typo.
3828         (elf_machine_rela): Set value to 0 if relocating conflicts.
3829         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
3830         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
3831         libraries where prelinking info cannot be used.
3832         * sysdeps/sh/bits/link.h: New file.
3833         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
3834         content of .got[1].
3835         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
3836         of adjusting it if prelinked and prelinking cannot be used.
3837         * sysdeps/s390/s390-32/bits/link.h: New file.
3838         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
3839         Save original content of .got[1].
3840         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
3841         of adjusting it if prelinked and prelinking cannot be used.
3842         * sysdeps/s390/s390-64/bits/link.h: New file.
3843         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
3844         Save original content of .got[1].
3845         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
3846         of adjusting it if prelinked and prelinking cannot be used.
3847         * sysdeps/x86_64/bits/link.h: New file.
3848         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
3849         Save original content of .got[1].
3850         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
3851         of adjusting it if prelinked and prelinking cannot be used.
3853 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
3855         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
3856         where appropriate instead of numbers.  Little optimizations.
3858 2001-12-10  Roland McGrath  <roland@frob.com>
3860         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
3861         set it.
3863         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
3864         set to GLIBC_2.2.5, not GLIBC_2.2.4.
3866         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
3867         Fix conditionals so this is set by default for stdio and not for libio.
3868         * sysdeps/mach/hurd/configure: Regenerated.
3870 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
3872         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
3874 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
3876         * io/Makefile (tests): Add bug-ftw3.
3877         * io/bug-ftw3.c: New file.
3879         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
3880         matches and GLOB_NOCHECK is set.
3881         * posix/globtest.sh: Correct expected result for NOCHECK test.
3883         * po/ca.po: Update from translation team.
3885 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
3887         Implement transliteration of characters in strings of the locale
3888         definitions.
3889         * locale/programs/linereader.c: Adjust for additional parameter to
3890         lr_token.
3891         (get_string): If character <Uxxxx> is not found try to transliterate
3892         it.
3893         * locale/programs/ld-ctype.c: Adjust for additional parameter to
3894         lr_token.  Add const to charmap parameter of all functions.
3895         (find_translit, find_translit2): New functions.
3896         * locale/programs/charmap.c: Adjust for additional parameter to
3897         lr_token.
3898         * locale/programs/repertoire.c: Likewise.
3899         * locale/programs/linereader.h: Likewise.
3900         * locale/programs/ld-address.c: Likewise.  Add const to charmap
3901         parameter of all functions.
3902         * locale/programs/ld-collate.c: Likewise.
3903         * locale/programs/ld-identification.c: Likewise.
3904         * locale/programs/ld-measurement.c: Likewise.
3905         * locale/programs/ld-messages.c: Likewise.
3906         * locale/programs/ld-monetary.c: Likewise.
3907         * locale/programs/ld-name.c: Likewise.
3908         * locale/programs/ld-numeric.c: Likewise.
3909         * locale/programs/ld-paper.c: Likewise.
3910         * locale/programs/ld-paper.c: Likewise.
3911         * locale/programs/ld-telephone.c: Likewise.
3912         * locale/programs/ld-time.c: Likewise.
3913         * locale/programs/locfile.c: Likewise.
3914         * locale/programs/localedef.c: Likewise.
3915         * locale/programs/localedef.h: Likewise.
3916         * locale/programs/locfile.h: Likewise.  Add declaration for
3917         find_translit.
3918         * locale/programs/simple-hash.c: Add const to first parameter of
3919         find_entry, iterate_table, and lookup.
3920         * locale/programs/simple-hash.h: Likewise.
3921         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
3922         instead.
3923         * include/locale.h: Define __LC_LAST.
3924         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
3926 2001-12-07  Geoff Keating  <geoffk@redhat.com>
3928         * sysdeps/powerpc/Dist: Update for recent FP changes.
3929         * sysdeps/powerpc/fpu/Dist: Likewise.
3931 2001-12-07  Andreas Schwab  <schwab@suse.de>
3933         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
3935 2001-12-06  Geoff Keating  <geoffk@redhat.com>
3937         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
3938         save/restore functions here.
3939         (libm-support): Don't define these functions here.
3940         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
3941         functions here.
3942         * sysdeps/powerpc/fe_nomask.c: Move to...
3943         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
3944         * sysdeps/powerpc/fprrest.S: Move to...
3945         * sysdeps/powerpc/fpu/fprrest.S: ... here.
3946         * sysdeps/powerpc/fprsave.S: Move to...
3947         * sysdeps/powerpc/fpu/fprsave.S: ... here.
3949 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
3951         * sysdeps/unix/sysv/linux/opensock.c: New file.
3953 2001-12-06  Geoff Keating  <geoffk@redhat.com>
3955         * config.make.in (with-fp): Define from configure.
3956         * configure.in: Substitute with_fp.
3957         * configure: Regenerate.
3958         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
3959         specified, and don't change FPU environment.
3961 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
3963         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
3964         * assert/assert.c: Check result of __asprintf call and don't use
3965         string if it failed.
3966         * assert/assert-perr.c: Likewise.
3967         * inet/rcmd.c: Likewise.
3968         * locale/programs/localedef.c (main): Check result of
3969         construct_output_path and exit if it failed.
3970         (construct_output_path): Check result of asprintf and mkdir calls and
3971         fail if they failed.
3972         * posix/getopt.c: Check result of __asprintf calls and fail if
3973         they failed.
3974         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
3976 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
3978         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
3979         patch.
3980         * sysdeps/generic/strncase.c: Likewise.
3981         * string/tester.c: Add tests for strcasecmp and strncasecmp.
3983 2001-12-05  Geoff Keating  <geoffk@redhat.com>
3985         * scripts/cpp: Test the exit status from 'type', not 'awk'.
3987         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
3988         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
3989         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
3990         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
3991         * sysdeps/powerpc/fclrexcpt.c: Move to...
3992         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
3993         * sysdeps/powerpc/fpu_control.h: Move to...
3994         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
3996 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
3998         * iconvdata/ibm1129.h: Remove duplicate mappings.
3999         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
4000         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
4001         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
4003         * timezone/zic.c: Fix handling of turnaround times.
4004         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
4006 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
4008         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
4009         overflow problem.
4011 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
4013         * posix/regex.c: For use outside glibc defined bounded pointer
4014         macros here.  Patch by Jim Meyering <jim@meyering.net>.
4016         * iconvdata/Makefile (modules): Add TCVN5712-1.
4017         * iconvdata/TESTS: Add TCVN5712-1.
4018         * iconvdata/gconv-modules: Likewise.
4019         * iconvdata/tcvn5712-1.c: New file.
4020         * iconvdata/testdata/TCVN-5712: New file.
4021         * iconvdata/testdata/TCVN-5712..UTF8: New file.
4023 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
4025         * iconvdata/cp1258.c: Optimize conversion from UCS4.
4027 2001-12-02  Roland McGrath  <roland@frob.com>
4029         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
4031         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
4032         Reported by Jeff Bailey <jbailey@nisa.net>.
4034         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
4035         Reported by Jeff Bailey <jbailey@nisa.net>.
4037         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
4038         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
4039         Reported by Jeff Bailey <jbailey@nisa.net>.
4041 2001-12-01  Roland McGrath  <roland@frob.com>
4043         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
4044         missing backslash in test arguments.
4045         * sysdeps/mach/hurd/configure: Regenerated.
4047 2001-11-26  Roland McGrath  <roland@frob.com>
4049         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
4050         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
4052 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
4054         * iconvdata/Makefile (modules): Add ARMSCII-8.
4055         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
4056         * iconvdata/armscii-8.c: New file.
4058 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
4060         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
4061         don't match, fix {{a,b},c} globbing, clean up.
4062         Patch by Flavio Veloso <flaviovs@magnux.com>.
4063         * posix/globtest.sh: Add new tests.
4065 2001-11-29  Andreas Jaeger  <aj@suse.de>
4067         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
4068         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
4070         * sysdeps/generic/abort.c: Include libioP.h for
4071         _IO_flush_all_lockp prototype.
4073 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
4075         * posix/regex.h: Define __restrict_arr correctly.
4077 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
4079         * iconvdata/ibm1163.c: New file.
4080         * iconvdata/ibm1163.h: New file.
4081         * iconvdata/ibm1164.c: New file.
4082         * iconvdata/ibm1164.h: New file.
4083         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
4084         * iconvdata/Makefile: Likewise.
4085         * iconvdata/testdata/IBM1163: New file.
4086         * iconvdata/testdata/IBM1163..UTF8: New file.
4087         * iconvdata/testdata/IBM1164: New file.
4088         * iconvdata/testdata/IBM1164..UTF8: New file.
4089         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
4091         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
4092         * iconvdata/ibm1124.h: Likewise.
4093         * iconvdata/ibm1132.h: Likewise.
4094         * iconvdata/ibm1133.h: Likewise.
4095         * iconvdata/ibm1160.h: Likewise.
4096         * iconvdata/ibm1161.h: Likewise.
4097         * iconvdata/ibm1162.h: Likewise.
4098         * iconvdata/ibm856.h: Likewise.
4099         * iconvdata/ibm922.h: Likewise.
4100         * iconvdata/ibm930.h: Likewise.
4101         * iconvdata/ibm932.h: Likewise.
4102         * iconvdata/ibm933.h: Likewise.
4103         * iconvdata/ibm935.h: Likewise.
4104         * iconvdata/ibm937.h: Likewise.
4105         * iconvdata/ibm939.h: Likewise.
4106         * iconvdata/ibm943.h: Likewise.
4107         * iconvdata/ibm930.c: Pretty printing.
4108         * iconvdata/ibm937.c: Avoid access accross array boundary.
4110         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
4111         the current locale's codeset.
4112         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
4113         empty input string.
4114         * iconv/iconv_prog.c: Pass empty strings as default value for to-
4115         and from-charset.  Don't determine locale's charset here.
4117         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
4118         as the old _IO_flush_all but lock only if parameter is nonzero.
4119         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
4120         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
4121         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
4122         if libio is used [PR libc/2575].
4124 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
4126         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
4127         __signbitl): Only define for ISO C99.
4129 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
4131         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
4132         herrnop to NETDB_INTERNAL if we run out of buffer space.
4134 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
4136         * nss/nss_files/files-XXX.c (internal_getent): Correct input
4137         overflow test for platforms with signed char.
4138         Reported by Andrew Haley <aph@cambridge.redhat.com>.
4140 2001-11-28  Bruno Haible  <bruno@clisp.org>
4142         * locale/programs/simple-hash.c (lookup_2): Remove function.
4143         (insert_entry_2): Call lookup instead of lookup_2.
4145 2001-03-04  Bruno Haible  <bruno@clisp.org>
4147         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
4149 2001-10-31  Bruno Haible  <bruno@clisp.org>
4151         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
4153 2001-03-21  Bruno Haible  <bruno@clisp.org>
4155         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
4156         chokes on empty macro arguments.
4157         * intl/plural.y: Add #pragma for alloca on AIX 3.
4159 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
4161         * intl/dcigettext.c (guess_category_value): Only implement for
4162         glibc.  Otherwise rely on function _nl_locale_name which isn't
4163         present in the glibc sources.
4165 2001-09-24  Bruno Haible  <bruno@clisp.org>
4167         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
4168         transliteration when building on a glibc system but outside glibc.
4170 2001-09-22  Bruno Haible  <bruno@clisp.org>
4172         * intl/plural-eval.c: New file, extracted from dcigettext.c.
4173         * intl/dcigettext.c (plural_eval): Remove function, moved to
4174         intl/plural-eval.c.
4175         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
4176         Include plural-eval.c.
4178 2001-09-22  Bruno Haible  <bruno@clisp.org>
4180         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
4181         don't start with a digit; nplurals must be positive.
4183 2001-09-02  Bruno Haible  <bruno@clisp.org>
4185         * intl/plural-exp.h: New file, extracted from gettextP.h.
4186         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
4187         * intl/gettextP.h (struct expression, struct parse_args,
4188         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
4189         * intl/loadmsgcat.c: Include plural-exp.h.
4190         (PLURAL_PARSE): Move macro to plural-exp.h.
4191         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
4192         plural-exp.c.
4193         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
4194         EXTRACT_PLURAL_EXPRESSION.
4195         (_nl_unload_domain): Update.
4196         * intl/dcigettext.c: Include plural-exp.h.
4197         * intl/plural.y: Include plural-exp.h, not gettextP.h.
4198         (FREE_EXPRESSION): Move macro to plural-exp.h.
4199         * intl/Makefile (routines): Add plural-exp.
4200         (distribute): Add plural-exp.h.
4202 2001-07-28  Bruno Haible  <bruno@clisp.org>
4204         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
4205         isdigit, tolower argument to 'unsigned char'.
4206         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
4207         'unsigned char'.
4208         * intl/localealias.c (read_alias_file): Cast isspace argument to
4209         'unsigned char'.
4211 2001-10-20  Bruno Haible  <bruno@clisp.org>
4213         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
4214         anyway.)
4215         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
4216         with the variable 'index' in plural_lookup.
4217         * intl/l10nflist.c (strchr): Likewise.
4218         * intl/localealias.c (strchr): Likewise.
4220         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
4221         * intl/bindtextdom.c: Likewise.
4222         * intl/dcigettext.c: Likewise.
4223         * intl/dgettext.c: Likewise.
4224         * intl/dngettext.c: Likewise.
4225         * intl/explodename.c: Likewise.
4226         * intl/finddomain.c: Likewise.
4227         * intl/gettext.c: Likewise.
4228         * intl/l10nflist.c: Likewise.
4229         * intl/loadmsgcat.c: Likewise.
4230         * intl/localealias.c: Likewise.
4231         * intl/ngettext.c: Likewise.
4232         * intl/textdomain.c: Likewise.
4233         * intl/gettext.h: Assume <limits.h> exists.
4235 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
4237         * stdio-common/Makefile (tests): Add scanf11.
4238         * stdio-common/scanf11.c: New file.
4240 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
4242         * version.h (RELEASE): Define as development.
4243         (VERSION): Set to 2.2.90.
4245 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
4247         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
4248         * nis/nss_nis/nis-grp.c: Likewise.
4249         * nis/nss_nisplus/nisplus-grp.c: Likewise.
4251         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
4252         * nis/nss_nis/nis-pwd.c: Likewise.
4253         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
4255         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
4256         * nis/nss_nisplus/nisplus-parser.c: Likewise.
4257         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
4259         * nscd/grpcache.c: Use strtoul instead of atol.
4260         * nscd/pwdcache.c: Likewise.
4261         * nss/getent.c: Likewise.
4263 2001-11-27  Paul Eggert  <eggert@twinsun.com>
4265         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
4266         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
4268 2001-11-19  Bruno Haible  <bruno@clisp.org>
4270         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
4271         90%.
4272         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
4273         improves the quality of the hash function, especially for short
4274         strings.
4276 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
4278         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
4279         are found call conv_error and not input_error [PR libc/2669].
4281         * math/bits/mathcalls.h: Mark ceil and floor as const.
4282         Reported by David Mosberger.
4284 2001-11-21  Jim Meyering  <meyering@lucent.com>
4286         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
4287         Define to be __-prefixed.
4288         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
4290 2001-11-26  Andreas Jaeger  <aj@suse.de>
4292         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
4293         avoid warning.
4295 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
4297         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
4298         initialization.
4300         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
4301         unused variables.  Fix threshold for returning 1.0.
4303         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
4304         argument.
4306         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
4307         remove unused variables.
4309         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
4311         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
4312         include local math header files.
4314 2001-11-22  Andreas Jaeger  <aj@suse.de>
4316         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
4317         avoid warning.
4319 2001-11-21  Andreas Jaeger  <aj@suse.de>
4321         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
4323         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
4324         sys/debugreg.h
4326 2001-11-15  Andreas Jaeger  <aj@suse.de>
4328         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
4329         compilers that support it.
4331         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
4332         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
4333         * stdlib/stdlib.h: Likewise.
4335 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
4337         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
4338         statement with gotos.
4339         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
4341 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
4343         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
4345 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
4347         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
4349 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
4350             H.J. Lu  <hjl@gnu.org>
4352         * Versions.def (libc): Add GCC_3.0.
4353         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
4354         if gcc supports this flag.
4355         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
4356         (gcc3): Allow glibc to be compiled with gcc 3.x.
4357         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
4358         * config.make.in (static-libgcc, unwind-find-fde): Add.
4359         * Makerules (build-shlib-helper, build-module-helper): Use it.
4360         * scripts/versions.awk: Make sure GLIBC_ versions come first.
4361         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
4362         necessary.
4363         (_fini): Call __deregister_frame_info_bases if
4364         __register_frame_info_bases was used to register.
4365         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
4366         for GLIBC_2.0.
4367         (__register_frame_info_bases, __register_frame_info_table_bases,
4368         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
4369         * elf/Makefile (routines): Add unwind-dw2-fde.
4370         (shared-only-routines): Add unwind-dw2-fde.
4371         * sysdeps/alpha/gccframe.h: New file.
4372         * sysdeps/arm/gccframe.h: New file.
4373         * sysdeps/generic/framestate.c: New file.
4374         * sysdeps/generic/dwarf2.h: New file.
4375         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
4376         * sysdeps/generic/unwind-dw2-fde.c: New file.
4377         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
4378         * sysdeps/generic/unwind-dw2-fde.h: New file.
4379         * sysdeps/generic/unwind-dw2.c: New file.
4380         * sysdeps/generic/unwind-pe.h: New file.
4381         * sysdeps/generic/unwind.h: New file.
4382         * sysdeps/hppa/gccframe.h: New file.
4383         * sysdeps/i386/gccframe.h: New file.
4384         * sysdeps/m68k/gccframe.h: New file.
4385         * sysdeps/mips/gccframe.h: New file.
4386         * sysdeps/powerpc/gccframe.h: New file.
4387         * sysdeps/s390/gccframe.h: New file.
4388         * sysdeps/sh/gccframe.h: New file.
4389         * sysdeps/sparc/gccframe.h: New file.
4390         * sysdeps/vax/gccframe.h: New file.
4391         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
4392         Set on all architectures except ia64.
4393         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
4394         for i386.
4395         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
4396         __deregister_frame_info): Move to elf/Versions.
4397         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
4398         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
4399         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
4400         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
4401         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
4402         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
4403         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
4404         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
4405         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
4406         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
4407         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
4408         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
4409         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
4410         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
4411         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
4412         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
4413         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
4414         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
4416 2001-11-15  Jeff Law  <law@redhat.com>
4418         * posix/regex.c (uintptr_t): Do not provide a definition if the
4419         system provided one.
4421 2001-11-13  Roland McGrath  <roland@frob.com>
4423         * stdio-common/tmpfile.c: Moved to ...
4424         * sysdeps/generic/tmpfile.c: ... here.
4425         * sysdeps/mach/hurd/tmpfile.c: New file.
4427         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
4428         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
4429         (fopenport): Define as weak alias.
4431         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
4432         * libio/libioP.h: ... to here.
4434 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
4436         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
4437         program header twice.  Construct list with the needed information.
4439 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
4441         * po/ca.po: Update from translation team.
4443         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
4444         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
4445         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
4446         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
4448 2001-11-10  Andreas Jaeger  <aj@suse.de>
4450         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
4451         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
4452         Contributed by Stephen L Moshier <moshier@mediaone.net>.
4454 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
4456         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
4457         correctly.
4458         * elf/dl-load.c (is_dst): New function.
4459         (_dl_dst_count): Use is_dst to check for DST variable.
4460         (_dl_dst_substitute): Likewise.
4462 2001-11-09  Roland McGrath  <roland@frob.com>
4464         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
4465         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
4466         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
4467         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
4468         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
4469         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
4470         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
4471         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
4472         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
4473         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
4474         * sysdeps/mach/hurd/powerpc/Dist: New file.
4476         * hurd/privports.c (__get_privileged_ports):
4477         Only contact the proc server if necessary for this call.
4478         Suggested by Neal H Walfield <neal@cs.uml.edu>.
4479         Check error return for mach_port_mod_refs.
4481 2001-11-09  Andreas Schwab  <schwab@suse.de>
4483         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
4485 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
4487         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
4488         object is always the last in the list.
4489         (_dl_map_object_from_fd): Delete code to remove from object list
4490         when DF_1_NOOPEN is seen.  This is done in lose.
4492 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
4494         * elf/dl-object.c (_dl_new_object): Various small optimizations.
4496 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
4498         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
4499         HWCAP_CHECK macro code.
4501         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
4502         Now returns MAP_FAILED on error.
4503         * elf/rtld.c: Adjust caller.
4504         * sysdeps/generic/dl-cache.c: Likewise.
4505         * sysdeps/generic/ldsodefs.h: Adjust description.
4507         * elf/dl-version.c (match_symbol): Optimize error handling for size.
4508         (_dl_check_map_versions): Likewise.
4510 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
4512         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
4513         _dl_signal_error directly, always use lose.  Set fd to -1 after
4514         file is closed.
4515         (lose): Don't call close if fd == -1.
4517 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
4519         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
4520          Also fix typo @code {mbsinit} to @code{mbsinit}.
4522 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
4524         * elf/dl-profile.c: Replace state variable with simple flag named
4525         running.  Remove commented-out code.
4527         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
4528         (_dl_init_paths): Likewise.
4529         (_dl_map_object_from_fd): Likewise.
4530         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
4532 2001-11-06  Roland McGrath  <roland@frob.com>
4534         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
4535         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
4537         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
4538         sysdeps/powerpc/elf/sysdep.h.
4539         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
4541 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
4543         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
4544         speed.
4545         (process_envvars): Some more optimizations.
4546         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
4548         * elf/elf.h: Add dynamic tag definitions for prelinking.
4550         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
4551         Rewrite code to remove environment varables for SUID binaries.
4552         Small optimization in LD_PROFILE handling.
4553         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
4554         changes.
4555         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
4557         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
4559         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
4560         strings.  Change type of second parameter.
4561         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
4562         for last change.
4564         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
4566 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
4568         * manual/string.texi: Fix typos.
4569         * manual/examples/argp-ex2.c: Likewise.
4571 2001-11-05  Roland McGrath  <roland@frob.com>
4573         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
4574         the more-specific unix/sysv/linux/powerpc file and breaks everything.
4575         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
4576         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
4577         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
4578         here, put under [__ELF__].
4580 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
4582         * manual/charset.texi: Extensive editing work.
4583         * manual/nss.texi: Likewise.
4584         Changes by Dennis Grace <dgrace@us.ibm.com>.
4586 2001-11-04  Roland McGrath  <roland@frob.com>
4588         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
4589         parameter to dir_mkfile.
4591 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
4593         * string/bits/string2.h (__strndup): If n is smaller than len, set
4594         len to n + 1.
4595         * string/tester.c (test_strndup): New function.
4596         (main): Call it.
4598 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
4600         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
4602         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
4603         * scripts/cpp: New file.
4605         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
4606         for rtld_search_dirs content.  Minor optimizations.
4608 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
4610         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
4611         avoiding unnecessary duplication.
4613 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
4615         * elf/dl-load.c (_dl_map_object): If library was found using
4616         LD_LIBRARY_PATH, don't try RUNPATH list.
4618 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4620         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
4621         Correct second argument of register_dump call.
4622         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
4623         Likewise.
4625 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
4627         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
4628         modules.
4629         * iconvdata/TESTS: Likewise.
4630         * iconvdata/gconv-modules: Likewise.
4631         * iconvdata/ibm1132.c: New file.
4632         * iconvdata/ibm1132.h: New file.
4633         * iconvdata/ibm1133.c: New file.
4634         * iconvdata/ibm1133.h: New file.
4635         * iconvdata/ibm1162.c: New file.
4636         * iconvdata/ibm1162.h: New file.
4637         * iconvdata/testdata/IBM1132: New file.
4638         * iconvdata/testdata/IBM1132..UTF8: New file.
4639         * iconvdata/testdata/IBM1133: New file.
4640         * iconvdata/testdata/IBM1133..UTF8: New file.
4641         * iconvdata/testdata/IBM1162: New file.
4642         * iconvdata/testdata/IBM1162..UTF8: New file.
4643         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
4645         * string/string.h: Fix typo in comment.
4646         * wcsmbs/wchar.h: Likewise.
4648 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
4650         * manual/getopt.texi (getopt_long, getopt_long_only): Include
4651         const in type of longopts parameter.
4653 2001-10-29  Andreas Jaeger  <aj@suse.de>
4655         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
4657 2001-10-29  Kevin Ryde  <user42@zip.com.au>
4659         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
4660         output, clarify `#' behaviour on 0.
4661         (Floating-Point Conversions): Clarify that %g only uses %e when
4662         the exponent would be greater than 1.
4664 2001-10-28  Roland McGrath  <roland@frob.com>
4666         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
4667         * sysdeps/mach/powerpc/machine-sp.h: New file.
4668         * sysdeps/mach/powerpc/sysdep.h: New file.
4669         * sysdeps/mach/powerpc/thread_state.h: New file.
4671         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
4672         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
4673         expect to need the same thing on every platform.
4675         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
4676         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
4678         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
4679         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
4680         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
4681         Move all these assembly-related definitions to ...
4682         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
4684         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
4685         by Peter Bruin <pjbruin@dds.nl>.
4687         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
4688         packing results for a `poll' call.
4690 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
4692         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
4693         correctly.
4694         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
4695         bracket expression.
4697         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
4698         nrules value.
4699         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
4701 2001-10-24  H.J. Lu  <hjl@gnu.org>
4703         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
4704         Use __BEGIN_DECLS/__END_DECLS around prototypes.
4705         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
4707 2001-10-21  Jim Meyering  <meyering@lucent.com>
4709         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
4710         this code would end up calling gettext even in packages built
4711         with --disable-nls.
4712         * posix/getopt.c (_): Likewise.
4713         * posix/regex.c (_): Likewise.
4715 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
4717         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
4718         lookup not ip6.int.
4719         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
4720         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
4722 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
4724         * misc/sys/cdefs.h (__attribute_used__): Define.
4725         * elf/rtld.c (_dl_start): Add __attribute_used__.
4726         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
4728 2001-10-25  Andreas Schwab  <schwab@suse.de>
4730         * stdlib/a64l.c: Expect least significant digit first.
4731         * stdlib/l64a.c: Produce least significant digit first.
4732         * stdlib/Makefile (tests): Add test-a64l.
4733         * stdlib/test-a64l.c: New file.
4734         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
4736 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
4738         * po/sk.po: Update from translation team.
4740 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
4742         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
4744 2001-10-18  Andreas Schwab  <schwab@suse.de>
4746         * math/libm-test.inc (print_ulps): Print ulp values rounded to
4747         next whole number.
4748         (print_function_ulps): Likewise.
4749         (print_complex_function_ulps): Likewise.
4750         (print_max_error): Likewise.
4751         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
4753 2001-10-16  Andreas Schwab  <schwab@suse.de>
4755         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
4756         implementation.
4758         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
4759         BSD_SETJMP or BSD__SETJMP is defined, resp.
4760         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
4761         a tail call to __sigsetjmp that would require extending the
4762         caller's frame.
4763         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
4764         * sysdeps/m68k/bsd-setjmp.S: Deleted.
4765         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
4766         Reported by Jes Sorensen <jes@trained-monkey.org>.
4768 2001-10-16  Andreas Jaeger  <aj@suse.de>
4770         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
4771         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
4772         close PR libc/2589.
4774 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
4776         * po/ca.po: New file.  Contributed by the translation team.
4778 2001-10-15  Ralf Baechle  <ralf@gnu.org>
4780         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
4781         a varargs prototype.  Remove dependency from kernel header files.
4783         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
4784         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
4786 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
4788         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
4789         to generate hexadecimal identifier.
4790         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
4792 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
4794         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
4796 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
4798         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
4799         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
4800         Contributed by Stephen L Moshier <moshier@mediaone.net>.
4802         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
4803         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4804         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
4805         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
4806         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
4807         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
4809         * timezone/africa: Update from tzdata2001d.
4810         * timezone/asia: Likewise.
4811         * timezone/australasia: Likewise.
4812         * timezone/backward: Likewise.
4813         * timezone/europe: Likewise.
4814         * timezone/leapseconds: Likewise.
4815         * timezone/northamerica: Likewise.
4816         * timezone/southamerica: Likewise.
4817         * timezone/zone.tab: Likewise.
4819 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4821         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
4822         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
4824 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
4826         * elf/elf.h (PT_TLS): New definition.
4828 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
4830         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
4831         bits/errno.h
4833 2001-10-07  Roland McGrath  <roland@frob.com>
4835         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
4837 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
4839         * elf/elf.h: Add more ELFOSABI_* constants.
4841 2001-10-04  Ben Collins  <bcollins@debian.org>
4843         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
4844         decleration of __need_wchar_t.
4846 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
4848         * string/bits/string2.h (__strsep_g): Add prototype.
4849         (__strsep): Use it.
4850         * string/Versions (__strsep): Remove.
4851         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
4853 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
4855         * manua/llio.texi: Clarify file references added by mmap.
4856         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
4858 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
4860         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
4861         Add sc_loadrs and sc_rbs_bas to match current kernel.
4863 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
4865         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
4867         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
4869 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
4871         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
4872         object has been bumped because of relocation dependency, avoid
4873         duplicates in l_scope.
4874         (show_scope): Fix typos.
4875         * elf/Makefile: Add rules to build and run reldep6.
4876         * elf/reldep6.c: New file.
4877         * elf/reldep6mod0.c: New file.
4878         * elf/reldep6mod1.c: New file.
4879         * elf/reldep6mod2.c: New file.
4880         * elf/reldep6mod3.c: New file.
4881         * elf/reldep6mod4.c: New file.
4883 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
4885         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
4886         sparc64_fixup_plt.
4887         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
4888         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
4889         for non-lazy binding. Fix .plt[32768+] handling.
4890         (elf_machine_plt_value): Don't add addend.
4891         (elf_machine_rela): Call sparc64_fixup_plt instead of
4892         elf_machine_fixup_plt.
4893         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
4894         dynamic linker at 0xfffff800XXXXXXXX.
4896         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
4898 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
4900         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
4902 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
4904         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
4905         declare __cmsg_data field if its size would be bigger than 0.
4906         (CMSG_DATA): Adjust accordingly.
4907         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
4908         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
4909         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
4910         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
4911         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4912         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
4913         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
4915 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
4917         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
4918         * iconvdata/testdata/IBM1160: New file.
4919         * iconvdata/testdata/IBM1160..UTF8: New file.
4920         * iconvdata/testdata/IBM1161: New file.
4921         * iconvdata/testdata/IBM1161..UTF8: New file.
4922         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
4924 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
4926         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
4927         UL_SETFSIZE computations better.
4929         * rt/Makefile: Remove use of filter for librt again.
4931         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
4932         UL_SETFSIZE computations better.
4934         * string/Versions: Export __strsep for GLIBC_2.2.5.
4935         * string/bits/string2.h: Define all __STRING_INLINE functions if
4936         _FORCE_INLINES is defined.
4937         Use int instead of char of parameter types.
4938         (__strsep): Don't use __strsep_g.  Don't define it.
4939         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
4940         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
4941         __strcpy_small.
4942         (__stpcpy_a_small): Renamed from __stpcpy_small.
4943         (__strcspn_c1): Don't define if _FORCE_INLINES.
4944         (__strspn_c1): Likewise.
4946 2001-09-22  Ben Collins  <bcollins@debian.org>
4948         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
4949         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
4950         * sysdeps/ia64/bits/sigaction.h: Likewise.
4951         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
4953 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
4955         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
4957 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
4959         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
4961 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
4963         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
4965 2001-09-20  H.J. Lu  <hjl@gnu.org>
4967         * include/dlfcn.h (__RTLD_SPROF): New definiton.
4968         * elf/dl-open.c (dl_open_worker): Return immediately after loading
4969         for __RTLD_SPROF.
4970         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
4971         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
4973 2001-09-20  H.J. Lu  <hjl@gnu.org>
4975         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
4976         don't add 1.
4978 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
4980         * nss/getent.c: Accept -s parameter to overwrite rules in
4981         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
4983         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
4984         with as many ".0" as necessary to form a complete address
4985         inet_network understands.
4987         * nss/getent.c: Various cleanups.  Use simpler and fewer function
4988         calls.
4990 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4992         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
4993         _JMPBUF_UNWINDS.
4994         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
4996 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
4998         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
4999         IBM1161.
5000         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
5001         * iconvdata/ibm1160.c: New file.
5002         * iconvdata/ibm1160.h: New file.
5003         * iconvdata/ibm1161.c: New file.
5004         * iconvdata/ibm1161.h: New file.
5005         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
5007 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
5009         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
5010         difference between base address and first PT_LOAD's virtual address,
5011         not the base address.
5013 2001-09-11  Tom Rix  <trix@redhat.com>
5015         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
5016         ifdef for __getopt_clean_environment.
5017         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
5019 2001-09-22  Andreas Jaeger  <aj@suse.de>
5021         * elf/reldep4.c (main): Add proper prototype to fix warning.
5023         * elf/reldep5.c (main): Remove unused variable.
5025         * math/math_private.h: Add prototypes.
5027 2001-09-21  Andreas Jaeger  <aj@suse.de>
5029         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
5030         * sysdeps/x86_64/Dist: New file.
5031         * sysdeps/x86_64/soft-fp/Dist: New file.
5033         * sysdeps/gnu/Dist: Remove eval.c.
5035 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
5037         * malloc/memusage.c (realloc): Don't count already allocated
5038         memory in the sums.
5039         (me): Always use dlsym() to find the real implementations.
5041         * malloc/memusage.sh: Make -n option actually do something.
5043 2001-09-20  Andreas Jaeger  <aj@suse.de>
5045         * elf/elf.h (R_390_NUM): Correct value.
5047         * Versions.def: Add missing versions 2.2.3 for libthread_db and
5048         libpthread.
5050         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
5051         for x86-64, install x86-64 into */lib64.
5053         * shlib-versions: Add x86-64.
5055         * elf/elf.h: Add x86-64 relocations.
5057 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
5059         * po/fr.po: Update from translation team.
5061 2001-09-19  Andreas Jaeger  <aj@suse.de>
5063         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
5064         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
5065         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
5066         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
5067         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
5068         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
5069         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
5070         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
5071         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
5072         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
5073         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
5074         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
5075         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
5076         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
5077         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
5078         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
5079         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
5080         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
5081         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
5082         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
5083         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
5084         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
5085         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
5086         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
5087         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
5088         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
5089         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
5090         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
5091         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
5092         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
5093         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
5094         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
5095         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
5096         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
5097         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
5098         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
5099         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
5100         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
5101         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
5102         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
5103         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
5104         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
5105         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
5106         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
5107         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
5108         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
5109         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
5110         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
5111         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
5112         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
5113         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
5114         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
5115         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
5116         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
5117         * sysdeps/unix/x86_64/sysdep.S: New file.
5118         * sysdeps/unix/x86_64/sysdep.h: New file.
5119         * sysdeps/x86_64/Implies: New file.
5120         * sysdeps/x86_64/Makefile: New file.
5121         * sysdeps/x86_64/Versions: New file.
5122         * sysdeps/x86_64/__longjmp.S: New file.
5123         * sysdeps/x86_64/abort-instr.h: New file.
5124         * sysdeps/x86_64/atomicity.h: New file.
5125         * sysdeps/x86_64/bits/endian.h: New file.
5126         * sysdeps/x86_64/bits/setjmp.h: New file.
5127         * sysdeps/x86_64/bits/string.h: New file.
5128         * sysdeps/x86_64/bp-asm.h: New file.
5129         * sysdeps/x86_64/bsd-_setjmp.S: New file.
5130         * sysdeps/x86_64/bsd-setjmp.S: New file.
5131         * sysdeps/x86_64/dl-machine.h: New file.
5132         * sysdeps/x86_64/elf/initfini.c: New file.
5133         * sysdeps/x86_64/elf/start.S: New file.
5134         * sysdeps/x86_64/ffs.c: New file.
5135         * sysdeps/x86_64/ffsll.c: New file.
5136         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
5137         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
5138         * sysdeps/x86_64/fpu/e_acosl.c: New file.
5139         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
5140         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
5141         * sysdeps/x86_64/fpu/e_expl.c: New file.
5142         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
5143         * sysdeps/x86_64/fpu/e_log10l.S: New file.
5144         * sysdeps/x86_64/fpu/e_log2l.S: New file.
5145         * sysdeps/x86_64/fpu/e_logl.S: New file.
5146         * sysdeps/x86_64/fpu/e_powl.S: New file.
5147         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
5148         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
5149         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
5150         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
5151         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
5152         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
5153         * sysdeps/x86_64/fpu/fegetenv.c: New file.
5154         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
5155         * sysdeps/x86_64/fpu/fegetround.c: New file.
5156         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
5157         * sysdeps/x86_64/fpu/fesetenv.c: New file.
5158         * sysdeps/x86_64/fpu/fesetround.c: New file.
5159         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
5160         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
5161         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
5162         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
5163         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
5164         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
5165         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
5166         * sysdeps/x86_64/fpu/s_atanl.c: New file.
5167         * sysdeps/x86_64/fpu/s_cosl.S: New file.
5168         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
5169         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
5170         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
5171         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
5172         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
5173         * sysdeps/x86_64/fpu/s_logbl.c: New file.
5174         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
5175         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
5176         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
5177         * sysdeps/x86_64/fpu/s_rintl.c: New file.
5178         * sysdeps/x86_64/fpu/s_significandl.c: New file.
5179         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
5180         * sysdeps/x86_64/fpu/s_sinl.S: New file.
5181         * sysdeps/x86_64/fpu/s_tanl.S: New file.
5182         * sysdeps/x86_64/gmp-mparam.h: New file.
5183         * sysdeps/x86_64/hp-timing.c: New file.
5184         * sysdeps/x86_64/hp-timing.h: New file.
5185         * sysdeps/x86_64/htonl.S: New file.
5186         * sysdeps/x86_64/memusage.h: New file.
5187         * sysdeps/x86_64/setjmp.S: New file.
5188         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
5189         * sysdeps/x86_64/stackinfo.h: New file.
5190         * sysdeps/x86_64/sysdep.h: New file.
5191         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
5193         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
5194         L Moshier.
5196 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
5198         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
5199         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
5201 2001-09-18  Andreas Schwab  <schwab@suse.de>
5203         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
5204         list, now that l_scope is a pointer.
5206         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
5207         scope list.
5209 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
5211         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
5212         (elf_machine_rela_relative): Add a missing declaration.
5214 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
5216         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
5217         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
5218         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
5219         ldd-rewrite scripts.
5221 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
5223         * elf/ldd.bash.in: Update copyright message.
5225 2001-09-17  H.J. Lu  <hjl@gnu.org>
5227         * hurd/hurdmalloc.c (bcopy): Removed.
5228         (realloc): Replace bcopy with memcpy.
5229         * hurd/path-lookup.c (file_name_path_scan): Likewise.
5230         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
5231         * sunrpc/rpcinfo.c (pmapdump): Likewise.
5233         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
5234         (gethostbyaddr): Likewise.
5235         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
5237 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
5239         * sysdeps/gnu/eval.c: Removed.
5241 2001-09-18  Andreas Jaeger  <aj@suse.de>
5243         * sysdeps/i386/fpu/s_logbl.S: Move to ...
5244         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
5246         * sysdeps/i386/fpu/s_rintl.S: Move to ...
5247         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
5249         * sysdeps/i386/fpu/s_significandl.S: Move to ...
5250         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
5252 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
5254         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
5255         nrules value.
5257 2001-09-14  H.J. Lu  <hjl@gnu.org>
5259         * sysdeps/mips/fpu/libm-test-ulps: Updated.
5261 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
5263         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
5264         Patch by Florian La Roche <laroche@redhat.com>.
5266         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
5268         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
5269         ETHER_CRC_LEN.
5271 2001-09-14  Andreas Schwab  <schwab@suse.de>
5273         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
5274         Sumner <bls@sgi.com>.
5275         * posix/execlp.c: Likewise.
5277 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
5279         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
5280         is already found earlier in the search scope.
5282 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
5284         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
5285         filter.
5287 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
5289         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
5291 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
5293         * config.h.in: Enforce optimization to be used.
5294         * Makeconfig (preprocess-versions): Define ASSEMBLER.
5295         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
5296         * posix/Makefile (annexc-CFLAGS): Define to -O.
5297         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
5299 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
5301         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
5302         Patch by Stephan Kulow.
5304 2001-09-08  Ben Collins  <bcollins@debian.org>
5306         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
5307         usage of RESOLVE() (r_type, not reloc->r_type).
5309 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
5311         * elf/dl-object.c: Avoid allocating extra memory block for name.
5312         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
5313         allocated separately.
5314         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
5316 2001-09-08  H.J. Lu  <hjl@gnu.org>
5318         * po/zh_TW.po: Fix a typo.
5320 2001-09-07  Tom Rix  <trix@redhat.com>
5322         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
5324 2001-08-26  Tom Rix  <trix@redhat.com>
5326         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
5327         command line options.
5328         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
5329         * sysdeps/unix/sysv/aix/start.c: Removed.
5330         * sysdeps/unix/sysv/aix/start-libc.c: New file.
5331         * sysdeps/unix/sysv/aix/init-first.c: New file.
5332         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
5334 2001-09-08  Ben Collins  <bcollins@debian.org>
5336         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
5337         * sysdeps/generic/dl-machine.h: Likewise.
5338         * sysdeps/hppa/dl-fptr.c: Likewise.
5339         * sysdeps/ia64/dl-fptr.c: Likewise.
5340         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
5341         * sysdeps/mips/dl-machine.h: Likewise.
5342         * sysdeps/mips/mips64/dl-machine.h: Likewise.
5343         * sysdeps/powerpc/dl-machine.c: Likewise.
5345 2001-09-07  Ben Collins  <bcollins@debian.org>
5347         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
5349         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
5351 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
5353         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
5354         dependencies if necessary.
5356         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
5357         loaded directly) determine length if l_initfini list by iterating
5358         over its elements.  Minor optimizations.
5359         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
5360         for dependency objects.
5361         If object was already loaded check whether any of the dependencies
5362         is already on the relocation dependency list.  If yes, remove the
5363         latter.  Minor optimizations.
5364         * elf/dl-lookup.c (add_dependency): Add check for self reference of
5365         maps here.  Search l_initfini list only if the object was loaded
5366         directly and not only as a dependency.
5367         (_dl_lookup_symbol): Add relocation dependency also if object
5368         is not in global scope.  Remove test for self-reference here.
5369         (_dl_lookup_versioned_symbol): Likewise.
5370         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
5371         element of first name record.
5372         * elf/loadtest.c: Add some more test to recognize early if an object
5373         wasn't unloaded.
5374         * elf/Makefile: Add rules to build and run reldep5.
5375         * elf/reldep5.c: New file.
5376         * elf/reldepmod5.c: New file.
5377         * elf/reldepmod6.c: New file.
5379         * elf/reldep2.c: Fix typo.
5381 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
5383         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
5384         elements.  Change l_scope to be a pointer only.
5385         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
5386         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
5387         here add searchlist of newly open file to the dependency's scope.
5388         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
5389         only searchlist from its scope.  Free own scope array if necessary.
5390         * elf/Makefile (tests): Add dblload and dblunload now.
5392 2001-09-06  Andreas Jaeger  <aj@suse.de>
5394         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
5395         Stephen L Moshier.
5397 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
5399         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
5400         they both fail.
5401         * elf/dblload.c: New file.
5402         * elf/dblloadmod1.c: New file.
5403         * elf/dblloadmod2.c: New file.
5404         * elf/dblloadmod3.c: New file.
5405         * elf/dblunload.c: New file.
5407 2001-09-04  Richard Henderson  <rth@redhat.com>
5409         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
5410         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
5412 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
5414         Correct very misleading message for error in failed runtime relocation.
5415         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
5416         place of the error.
5417         (_dl_signal_cerror): Likewise.
5418         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
5419         * elf/dl-close.c: Likewise.
5420         * elf/dl-deps.c: Likewise.
5421         * elf/dl-load.c: Likewise.
5422         * elf/dl-lookup.c: Likewise.
5423         * elf/dl-open.c: Likewise.
5424         * elf/dl-reloc.c: Likewise.
5425         * elf/dl-sym.c: Likewise.
5426         * elf/dl-version.c: Likewise.
5427         * sysdeps/generic/dl-sysdep.c: Likewise.
5429 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
5431         * iconv/strtab.c (strtabinit): Initialize null Strent.
5432         (newstring): Move len == 0 handling...
5433         (strtabadd): ...here.
5434         If len == 1, return null Strent.
5435         When inserting a suffix of an existing string, check if
5436         it is not equal to some suffix already recorded.
5437         Copy left and right members over if adding longer string.
5439 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
5441         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
5443         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
5444         (__syscall_gethostname): Add prototype.
5446 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
5448         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
5450 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
5452         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
5454 2001-08-27  Roland McGrath  <roland@frob.com>
5456         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
5457         short, copy that much into NAME anyway before returning error.
5459 2001-09-01  Richard Henderson  <rth@redhat.com>
5461         * sysdeps/alpha/elf/Dist: Remove file.
5462         * sysdeps/alpha/elf/Makefile: Remove file.
5463         * sysdeps/alpha/elf/crtbegin.S: Remove file.
5464         * sysdeps/alpha/elf/crtend.S: Remove file.
5465         * sysdeps/alpha/elf/initfini.c: New file.
5467 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
5469         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
5470         * iconv/tst-iconv3.c: Likewise.
5472 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
5474         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
5476 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
5478         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
5479         export it.
5480         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
5481         * iconv/iconv_prog.c (insert_cache): New function.
5482         (print_known_names): If cache is used call insert_cache to use the
5483         information from the cache [PR libc/2509].
5485 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
5487         * time/strptime.c (strptime_internal): Recognize 'l' format and
5488         handle it like 'I' for symmetry with strftime.
5490 2001-08-31  Richard Henderson  <rth@redhat.com>
5492         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
5493         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
5494         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
5495         (print_statistics): Make scalar unsigned long long.
5496         * sysdeps/alpha/hp-timing.h: New file.
5498 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
5500         * stdio-common/perror.c (perror): Save errno early, pass it
5501         down to perror_internal.
5502         (perror_internal): Add errnum argument.
5504 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
5506         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
5507         Don't add old memory content for R_ALPHA_REFQUAD.
5509 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
5511         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
5512         memory correctly.
5514         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
5515         instead of open, __close instead of close, __getpagesize instead
5516         of getpagesize.
5518         * string/argz-stringify.c (__argz_stringify): Use __strnlen
5519         instead of strnlen.
5520         * include/string.h (strndupa): Redefine here to use __strnlen
5521         instead of strnlen.
5522         * string/strndup.c (__strndup): Use __strnlen not strnlen.
5524         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
5525         connected).
5527 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
5529         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
5530         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
5531         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
5532         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
5533         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
5534         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
5535         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
5537 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
5539         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
5541 2001-08-30  Andreas Jaeger  <aj@suse.de>
5543         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
5544         contributed Stephen L Moshier.
5546 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
5548         * sunrpc/etc.rpc (sgi_fam): Add.
5550 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
5552         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
5554 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
5556         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
5557         first is from a previous call.
5558         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
5560 2001-08-29  Andreas Schwab  <schwab@suse.de>
5562         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
5564 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5566         * config.make.in (INSTALL_SCRIPT): Define.
5567         * Makeconfig (INSTALL_SCRIPT): Define.
5568         * Makerules (do-install-script): New macro to install scripts using
5569         INSTALL_SCRIPT.
5570         (install-bin-script): New rule to install scripts with
5571         do-install-script.
5572         (install-bin-script-nosubdir): New rule.
5573         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
5574         (distinfo-vars): Add $(install-bin-script).
5575         * Rules (others): Likewise.
5576         * Makefile (glibcbug): Install with install-bin-script.
5577         * debug/Makefile (xtrace): Likewise.
5578         (catchsegv): Likewise.
5579         * elf/Makefile (ldd): Likewise.
5580         * malloc/Makefile (mtrace): Likewise.
5581         * timezone/Makefile (tzselect): Likewise.
5583 2001-08-29  H.J. Lu  <hjl@gnu.org>
5585         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
5586         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
5587         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
5589 2001-08-29  Andreas Schwab  <schwab@suse.de>
5591         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
5593 2001-08-28  H.J. Lu  <hjl@gnu.org>
5595         * Makeconfig (combreloc-LDFLAGS): New variable.
5596         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
5597         * config.make.in (have-z-combreloc): New variable.
5598         * configure.in: Substitute libc_cv_z_combreloc.
5600 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
5602         * po/sv.po: Update from translation team.
5603         * po/fr.po: Likewise.
5604         * po/da.po: Likewise.
5606 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5608         * Makerules: Fix a typo: MD% -> MD5.
5610 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
5612         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
5613         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
5615 2001-08-28  Andreas Jaeger  <aj@suse.de>
5617         * manual/libc-texinfo.sh: Add entry about free manuals.
5619         * manual/contrib.texi (Contributors): Fix cross reference.
5621         * manual/libc.texinfo (Copying): Include freemanuals.
5623         * manual/Makefile (appendices): Add freemanuals.
5625         * manual/freemanuals.texi: New file.
5626         Patch by Brian Youmans <3diff@gnu.org>.
5628         * manual/libm-err-tab.pl: Pretty print more platforms, print a
5629         smaller table.
5631         * manual/math.texi (Errors in Math Functions): Fix grammar, start
5632         table on separate page.
5633         Patch by Brian Youmans <3diff@gnu.org>.
5635 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
5637         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
5638         the connection went down after we first used it try to connect
5639         again and resend the message before printing to the console.
5640         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
5642 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
5644         * string/tst-strlen.c (main): Test strnlen (, -1) too.
5645         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
5646         bit set.
5648 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
5650         * iconv/strtab.c (searchstring): Use correct length for comparison.
5651         (strtabadd): Account total size correct if new string has old string as
5652         substring.
5654 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
5656         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
5658 2001-08-27  Andreas Jaeger  <aj@suse.de>
5660         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
5662         * math/libm-test.inc (j0_test): Add extra tests.
5663         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
5664         not x, in Hankel approximation.
5665         Patches by Stephen L Moshier.
5667 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
5669         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
5670         link_map.
5672         * configure.in: Fix test for .rela.dyn section.
5674         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
5676 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
5678         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
5679         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
5680         Pass type_class to _dl_lookup_*.
5681         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
5682         Pass around just type_class instead of noexec, noplt pair.
5683         (_dl_lookup_versioned_symbol): Likewise.
5684         (_dl_lookup_symbol_skip): Pass around just type_class instead of
5685         noexec, noplt pair.
5686         (_dl_lookup_versioned_symbol_skip): Likewise.
5687         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
5688         * elf/do-lookup.h (do_lookup): Likewise.
5689         * include/link.h (struct link_map): Replace noexec and noplt fields
5690         in l_lookup_cache with type_class field.
5691         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
5692         ELF_RTYPE_CLASS_COPY): Define.
5693         Adjust prototypes for _dl_lookup_symbol and
5694         _dl_lookup_versioned_symbol.
5695         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
5696         elf_machine_lookup_noexec_p): Remove.
5697         (elf_machine_type_class): Define.
5698         * sysdeps/arm/dl-machine.h: Likewise.
5699         * sysdeps/hppa/dl-machine.h: Likewise.
5700         * sysdeps/cris/dl-machine.h: Likewise.
5701         * sysdeps/i386/dl-machine.h: Likewise.
5702         * sysdeps/ia64/dl-machine.h: Likewise.
5703         * sysdeps/m68k/dl-machine.h: Likewise.
5704         * sysdeps/mips/mips64/dl-machine.h: Likewise.
5705         * sysdeps/mips/dl-machine.h: Likewise.
5706         * sysdeps/powerpc/dl-machine.h: Likewise.
5707         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
5708         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
5709         * sysdeps/sh/dl-machine.h: Likewise.
5710         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
5711         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5713 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
5715         * manual/message.texi (Advanced gettext functions): Change
5716         description of plural forms for Slovak.
5717         Reported by Marcel Telka <marcel@telka.sk>.
5719         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
5720         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
5722 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
5724         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
5725         typo.  Patch by Florian La Roche <laroche@redhat.com>.
5727 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
5729         * include/link.h (struct link_map): Add l_lookup_cache element.
5730         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
5731         (RESOLVE_MAP): Likewise.
5732         (_dl_relocate_object): Remove cache initialization.
5733         * elf/dl-lookup.c: Rip out cache handling code.
5734         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
5735         declarations.
5737         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
5738         remove some __builtin_expect.
5739         (_dl_lookup_versioned_symbol): Likewise.
5741         * config.h.in: Add HAVE_Z_COMBRELOC.
5742         * configure.in: Add test for -z combreloc.
5744         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
5745         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
5746         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
5747         case to almost no code.
5749 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
5751         * po/tr.po: Update from translation team.
5753 2001-08-24  Andreas Jaeger  <aj@suse.de>
5755         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
5756         make clean works.
5758 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
5760         * elf/rtld.c (print_statistics): Printf % after percent values.
5761         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
5763         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
5764         don't have to compute the hash value and initialize current_value.
5765         Move reference_name variable to where it is needed.
5766         (_dl_lookup_versioned_symbol): Likewise.
5768 2001-08-24  Roland McGrath  <roland@frob.com>
5770         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
5771         Just test that strerror returns non-null for a few errno codes.
5773 2001-08-23  Roland McGrath  <roland@frob.com>
5775         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
5776         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
5778         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
5780         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
5781         __mach_reply_port.
5783 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
5785         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
5786         returns NULL.
5788         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
5789         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
5790         doesn't do it.
5791         * elf/rtld.c: Include <sys/param.h>.
5792         * elf/dl-reloc.c: Likewise.
5794 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5796         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
5797         empty to prevent junk from being generated.
5798         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
5800 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
5802         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
5803         records.  Rename endrel to relative, initialize it to r, and use it
5804         in elf_machine_rel_relative calls.  Point r after relative relocs.
5806 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
5808         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
5809         of R_386_NONE.
5811 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
5813         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
5814         necessary.  Undefine newly defined macros at the end.
5815         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
5816         Rename from elf_machine_rel_relative.
5817         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
5818         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
5819         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
5820         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
5821         Likewise.
5822         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
5823         Likewise.
5824         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
5825         Fix argument types.
5826         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
5827         Fix argument types.
5828         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
5829         Likewise.  Fix argument types.
5830         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
5831         Likewise.  Fix argument types.
5832         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
5833         Fix argument types.
5834         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
5835         ElfW(Rel) in argument.
5836         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
5837         function.
5839 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
5841         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
5843 2001-08-24  Andreas Jaeger  <aj@suse.de>
5845         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
5846         Stephen L Moshier <moshier@mediaone.net>.
5848 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
5850         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
5851         first if RELCOUNT is set.
5853         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
5854         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
5855         elf_machine_rel_relative.
5856         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
5857         Minor optimizations.
5858         * sysdeps/arm/dl-machine.h: Likewise.
5859         * sysdeps/cris/dl-machine.h: Likewise.
5860         * sysdeps/hppa/dl-machine.h: Likewise.
5861         * sysdeps/i386/dl-machine.h: Likewise.
5862         * sysdeps/ia64/dl-machine.h: Likewise.
5863         * sysdeps/m68k/dl-machine.h: Likewise.
5864         * sysdeps/mips/dl-machine.h: Likewise.
5865         * sysdeps/powerpc/dl-machine.h: Likewise.
5866         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
5867         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
5868         * sysdeps/sh/dl-machine.h: Likewise.
5869         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
5870         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
5872 2001-08-23  Roland McGrath  <roland@frob.com>
5874         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
5876         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
5877         sysdeps/mach version.  Implement counting ("recursive") mutexes
5878         on top of cthreads mutexes.
5879         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
5881         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
5882         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
5883         (__libc_cleanup_region_start, __libc_cleanup_region_end,
5884         __libc_clean_end): Define these to call the cleanup function after
5885         normal exit when they're supposed to.
5887         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
5888         Take new first arg DOIT, a boolean saying whether to really install
5889         any cleanup handler.
5890         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
5891         (__libc_cleanup_end): Likewise.
5892         * sysdeps/generic/bits/libc-lock.h: Same changes.
5893         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
5894         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
5895         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
5896         Likewise.
5897         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
5898         * sysdeps/generic/bits/stdio-lock.h
5899         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
5901 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
5903         * elf/ldconfig.c (search_dir): Remove stale symlinks.
5905 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
5907         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
5908         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
5909         lookups in cache.
5910         (_dl_lookup_versioned_symbol): Likewise.
5911         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
5912         relocation lookup.
5913         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
5914         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
5915         (lookup_cache, lookup_cache_versioned): Add declarations.
5917 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
5919         * stdlib/tst-random.c (main): Swap parameters in fail call.
5920         Patch by Pete Bevin <pete@petebevin.com>.
5922 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
5924         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
5926 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
5928         * malloc/obstack.c: Indent preprocessor directives.
5929         Patch by Jim Meyering <meyering@ascend.com>.
5931         * po/ja.po: Update from translation team.
5933 2001-08-23  Roland McGrath  <roland@frob.com>
5935         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
5937         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
5938         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
5940 2001-08-22  Roland McGrath  <roland@frob.com>
5942         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
5943         __libc_lock_define_recursive.
5944         * elf/dl-open.c: Don't declare it here any more.
5945         * elf/dl-close.c: Likewise.
5946         * elf/dl-lookup.c: Likewise.
5947         * elf/dl-iteratephdr.c: Likewise.
5948         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
5949         __libc_lock_unlock_recursive.
5950         * elf/dl-close.c (_dl_close): Likewise
5951         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
5952         * elf/dl-open.c (_dl_open): Likewise
5954         * sysdeps/generic/bits/libc-lock.h
5955         (__libc_lock_define_recursive): New macro.
5956         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
5957         (_IO_lock_lock): Use __libc_lock_lock_recursive.
5958         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
5960         * conform/conformtest.pl (checknamespace): Sort the output list.
5962         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
5963         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
5964         definitions conditional on [__USE_XOPEN].
5966         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
5967         these unconditionally, not only use [__USE_BSD], so as to match
5968         the sysdeps/unix/sysv/linux files.
5970 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
5972         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
5973         avoid warnings.
5975         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
5976         DL_LOOKUP_ADDRESS.
5978 2001-08-22  Roland McGrath  <roland@frob.com>
5980         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
5981         conditionalization of sa_handler/sa_sigaction member types to
5982         match the sysdeps/unix/sysv/linux file.
5984 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
5986         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
5987         symbol sizes a bit better.
5989         * sysdeps/ia64/strncpy.S: Complete rewrite.
5990         Contributed by Jakub Jelinek <jakub@redhat.com>.
5992         * string/stratcliff.c (main): Add strncpy test.
5994 2001-08-22  Roland McGrath  <roland@frob.com>
5996         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
5997         and don't declare unsetenv or _environ directly.
5998         (unsetenv): Return int, not void.  Use __environ instead of _environ.
6000 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
6002         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
6003         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
6004         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
6005         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
6006         test for cmsg struct size.
6008 2001-04-23  Paul Eggert  <eggert@twinsun.com>
6010         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
6011         Rename __argc to ___argc in prototypes to avoid compatibility
6012         problems with systems that reserve the identifier "__argc".
6013         Similarly for __argv.
6015 2001-08-21  Roland McGrath  <roland@frob.com>
6017         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
6019         * mach/Makefile (tests): Removed.
6020         * mach/hello.c: File removed.
6022 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
6024         * po/sv.po: Update from translation team.
6026         * stdio-common/vfscanf.c: Fix handling of %l[].
6027         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
6029         * libio/Makefile (tests): Add tst-sscanf.
6030         * libio/tst-sscanf.c: New file.
6032         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
6033         * malloc/mtrace.c (tr_where): dli_sname always points to a
6034         non-empty string if != NULL.
6035         Reported by Tim Janik <timj@gtk.org>.
6037 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
6039         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
6040         buf.  Free resources on failure.
6041         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
6042         (makefd_xprt): Likewise.
6043         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
6044         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
6045         * sunrpc/auth_unix.c (authunix_create): Likewise.
6047 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
6049         * string/strnlen.c: Remove.
6050         * sysdeps/generic/strnlen.c: New file.
6051         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
6053 2001-08-21  Roland McGrath  <roland@frob.com>
6055         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
6056         as a macro, not an extern inline function.
6058         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
6059         * Versions.def (libc): Add GLIBC_2.2.5 set.
6060         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
6061         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
6063 2001-08-20  Roland McGrath  <roland@frob.com>
6065         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
6066         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
6068 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
6070         * string/bits/string2.h: Remove strnlen optimization here.
6071         * sysdeps/i386/i486/bits/string.h: Add it here.
6073 2001-08-21  Wolfram Gloger  <wg@malloc.de>
6075         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
6077 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
6079         * po/gl.po: Update from translation team.
6081 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
6083         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
6084         * misc/err.c (convert_and_print): Likewise.
6086         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
6087         function calls.
6089 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6091         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
6092         change of the gregset_t type.
6093         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
6095 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
6097         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
6099 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
6101         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
6103         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
6105 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
6107         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
6108         before calling the cthreads initialization code.
6110 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
6112         * argp/argp-help.c: Fix two problems introduced in last change.
6114         * include/dirent.h: Include <dirstream.h> first.
6116 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
6118         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
6120         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
6121         * sunrpc/xdr_rec.c: Likewise.
6122         * sunrpc/xdr_mem.c: Likewise.
6123         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
6124         * sunrpc/rpc_cmsg.c: Likewise.
6125         * sunrpc/getrpcport.c (getrpcport): Likewise.
6126         * sunrpc/clnt_simp.c (callrpc): Likewise.
6127         * sunrpc/clnt_gen.c (clnt_create): Likewise.
6128         * string/envz.c: Likewise.
6130         * po/ko.po: Update from translation team.
6132         * argp/argp-help.c: Handle wide oriented stderr stream.
6134 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
6136         * sysdeps/generic/strtol.c: Little optimizations.  Add some
6137         __builtin_expect.
6139         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
6141         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
6142         * wcsmbs/wcwidth.c (wcwdith): Likewise.
6143         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
6145         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
6147         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
6149         * time/time.h (struct timespec): Use __time_t for tv_sec element.
6151         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
6152         wchar_t for function declarations and defintions.
6154         * misc/sys/select.h: Define __need_time_t before including <time.h>.
6155         Define suseconds_t if it hasn't happened yet.
6157         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
6159         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
6161         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
6162         <stddef.h>.
6164         * conform/data/stddef.h-data: Remove wint_t.
6166         * conform/conformtest.pl: Change namespace test to take #undef
6167         lines into account.
6169         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
6171         * conform/data/sys/socket.h-data: Add sockatmark.
6173 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
6175         * io/fts.c: Update from recent BSD source.
6177 2001-08-17  Roland McGrath  <roland@frob.com>
6179         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
6180         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
6181         Likewise.
6183 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
6185         * locale/duplocale.c (__duplocale): Also initialize the special
6186         __ctype_* elements.
6188         * conform/data/netdb.h-data: Adjust gai_strerror return type.
6190 2001-08-17  Andreas Jaeger  <aj@suse.de>
6192         * misc/getpass.c: Include wchar.h for prototypes.
6193         * malloc/obstack.c: Likewise.
6195 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
6197         * sunrpc/svc_simple.c (universal): Use __write instead of write.
6199         * wcsmbs/wcscoll.c: Also define __wcscoll.
6200         * include/wchar.h: Declare __wcscoll.
6202         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
6203         * libio/vwprintf.c: Likewise.
6204         * libio/wprintf.c: Likewise.
6206         * iconv/gconv_cache.c: Use __munmap instead of munmap.
6208 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
6210         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
6211         instead of mbrtowc.
6212         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
6213         wcslen, and __wcscoll instead of wcscoll.
6215         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
6217         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
6218         __getuid instead of getuid.
6220         * stdio-common/perror.c (perror): Use __close instead of close.
6221         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
6222         * libio/freopen.c (freopen): Likewise.
6223         * libio/freopen64.c (freopen64): Likewise.
6225         * libio/tst-ungetwc2.c (main): Define str const.
6227         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
6228         * libio/fwprintf.c: Also define __fwprintf.
6229         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
6230         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
6231         * assert/assert-perr.c: Likewise.
6232         * assert/assert.c: Likewise.
6233         * gmon/gmon.c: Likewise.
6234         * inet/rcmd.c: Likewise.
6235         * malloc/obstack.c: Likewise.
6236         * misc/err.c: Likewise.
6237         * misc/error.c: Likewise.
6238         * misc/getpass.c: Likewise.
6239         * posix/getopt.c: Likewise.
6240         * resolv/res_hconf.c: Likewise.
6241         * stdio-common/perror.c: Likewise.
6242         * stdio-common/psignal.c: Likewise.
6243         * stdlib/fmtmsg.c: Likewise.
6244         * sunrpc/auth_unix.c: Likewise.
6245         * sunrpc/clnt_perr.c: Likewise.
6246         * sunrpc/clnt_tcp.c: Likewise.
6247         * sunrpc/clnt_udp.c: Likewise.
6248         * sunrpc/clnt_unix.c: Likewise.
6249         * sunrpc/svc_simple.c: Likewise.
6250         * sunrpc/svc_tcp.c: Likewise.
6251         * sunrpc/svc_udp.c: Likewise.
6252         * sunrpc/svc_unix.c: Likewise.
6253         * sunrpc/xdr.c: Likewise.
6254         * sunrpc/xdr_array.c: Likewise.
6255         * sunrpc/xdr_rec.c: Likewise.
6256         * sunrpc/xdr_ref.c: Likewise.
6257         * sysdeps/generic/wordexp.c: Likewise.
6259         * po/it.po: Update from translation team.
6261         * misc/err.c: Handle wide oriented stderr stream.
6263 2001-08-14  Tom Rix  <trix@redhat.com>
6265         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
6266         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
6268 2001-08-13  Tom Rix  <trix@redhat.com>
6270         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
6271         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
6272         and __intptr_t.
6274 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6276         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
6277         Store the access registers to the ucontext structure.
6278         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
6279         Likewise.
6281         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
6282         Load the access registers from the ucontext structure.
6283         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
6284         Likewise.
6286         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
6287         offsets to the new ucontext layout.
6288         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
6290         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
6291         of the ucontext structure.
6292         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
6294 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
6296         * misc/error.c (error): Handle wide oriented stderr stream correctly.
6297         (error_at_line): Likewise.
6299         * stdio-common/perror.c (perror): Implement according to standard.
6300         The stream orientation must not be changed if the stream was not
6301         oriented before the call.
6302         * stdio-common/Makefile (tests): Add tst-perror.
6303         * stdio-common/tst-perror.c: New file.
6306 See ChangeLog.12 for earlier changes.