Update.
[platform/upstream/linaro-glibc.git] / ChangeLog
1 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
2
3         * configure.in: Add test for __thread support in compiler.
4         * config.h.in: Add HAVE___THREAD.
5         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
6         * include/sys/errno.h: Moved to...
7         * stdlib/sys/errno.h: ...here.  New file.
8         * stdlib/errno.h: New file.  Moved from...
9         * include/errno.h: ...here.  Changed into an internal header defining
10         libc-local things like __set_errno.
11         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
12         bits/errno.h.
13         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
14         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
15         either.
16         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
17         from...
18         (_dl_start_final): ...here.  Add code to initialize tls elements from
19         bootstrap_map.
20         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
21         if USE_TLS && HAVE___THREAD.
22         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
23         * sysdeps/mach/hurd/bits/errno.h: Likewise.
24         * sysdeps/standalone/arm/bits/errno.h: Likewise.
25         * sysdeps/standalone/bits/errno.h: Likewise.
26         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
27         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
28         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
29         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
30         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
31         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
32         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
33         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
34         use GL(dl_rtld_map), use map parameter.
35         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
36         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
37         USE_TLS && HAVE___THREAD.
38         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
39         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
40         TLS code sequence.
41         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
42
43         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
44         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
45         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
46         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
47         * sysdeps/unix/sysv/linux/readv.c: Likewise.
48         * sysdeps/unix/sysv/linux/writev.c: Likewise.
49
50 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
51
52         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
53         MS_INVALIDATE values.
54
55 2002-07-17  Andreas Schwab  <schwab@suse.de>
56             Ulrich Drepper  <drepper@redhat.com>
57
58         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
59         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
60         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
61         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
62
63 2002-07-01  H.J. Lu  <hjl@gnu.org>
64
65         * elf/circleload1.c (load_dso): Call "circlemod1" and check
66         return value.
67
68         * elf/circlemod1.c (circlemod1): Return int.
69         * elf/circlemod2.c (circlemod2): Likewise.
70         * elf/circlemod2a.c (circlemod2): Likewise.
71         * elf/circlemod3.c (circlemod3): Likewise.
72         (circlemod3a): A new function.
73
74 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
75
76         * catgets/tst-catgets.c (main): Don't expect results for
77         untranslated messages.
78
79         * glibcbug.in: Fix little typo.  Remove STDIO.
80
81         * config.h.in: Fail if __FAST_MATH__ is defined.
82         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
83         (CPPFLAGS-test-idouble.c): Likewise.
84         (CPPFLAGS-test-ildouble.c): Likewise.
85
86 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
87
88         * intl/tst-gettext.sh: Pass -f option to msgfmt.
89         * intl/tst-gettext.c: Correctly handle untranslated messages in
90         positive tests.
91
92         * po/de.po: Update from translation team.
93
94 2002-07-02  H.J. Lu  <hjl@gnu.org>
95
96         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
97         use ll/sc.
98         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
99
100         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
101         to 2.4.0 for mips.
102
103 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
104
105         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
106         TLS fail if USE_TLS is not defined.
107
108         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
109         and adjust state for seek position.  [PR libc/4070]
110         * libio/Makefile (tests): Add bug-rewind.
111         * libio/bug-rewind.c: New file.
112
113 2002-07-12  Philip Blundell  <philb@gnu.org>
114
115         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
116         (__backtrace): Use it.
117         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
118
119 2002-07-12  Philip Blundell  <philb@gnu.org>
120
121         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
122         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
123         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
124         (elf_machine_rela): Remove unused variable.
125
126         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
127         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
128         define.
129
130 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
131
132         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
133
134 2002-07-14  Andreas Jaeger  <aj@suse.de>
135
136         * sysdeps/x86_64/bits/link.h: Add biarch support.
137
138 2002-07-13  Andreas Jaeger  <aj@suse.de>
139
140         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
141         Use correct indices.
142         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
143
144 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
145
146         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
147         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
148         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
149         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
150         * sysdeps/s390/s390-32/bits/link.h: Remove.
151         * sysdeps/s390/s390-64/bits/link.h: Remove.
152         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
153         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
154         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
155         * sysdeps/s390/bits/wordsize.h: New file.
156         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
157         elfclass.h.
158         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
159         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
160         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
161         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
162         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
163         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
164         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
165         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
166         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
167         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
168         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
169         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
170         resource.h.
171         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
172         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
173         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
174         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
175         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
176         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
177         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
178         sigaction.h.
179         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
180         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
181         siginfo.h.
182         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
183         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
184         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
185         socket.h.
186         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
187         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
188         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
189         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
190         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
191         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
192         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
193         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
194         procfs.h.
195         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
196         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
197         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
198         ucontext.h.
199         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
200         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
201
202 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
203
204         * Versions.def (libc): Add GLIBC_2.3.
205         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
206         * stdlib/canonicalize.c: Add compatibility version for realpath
207         and make new code available in GLIBC_2.3.
208
209 2002-07-06  Bruno Haible  <bruno@clisp.org>
210
211         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
212
213 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
214
215         * resolv/res_hconf.c (_res_hconf_init): Move code into new
216         function do_init.  Use __libc_once.
217         (do_init): New function.
218
219         * iconvdata/iso8859-11.h: Removed.
220         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
221         (distribute): Remove iso8859-11.h.
222         * iconvdata/tst-tables.sh: Add ISO-8859-11.
223
224         * stdio-common/vfscanf.c (inchar): Restore errno from previous
225         underflow operation if c == (W)EOF.
226
227 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
228
229         * stdio-common/printf_fp.c (__printf_fp.c): If _FPIO_CONST_SHIFT is
230         non-zero, adjust exponent.
231         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
232         Remove NO_LONG_DOUBLE aliases.
233         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
234         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
235         (__log1pl): Raise divide by zero and invalid exceptions when needed.
236         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
237         1**y and -1**+-Inf.
238         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
239         Fix BITS_PER_MP_LIMB 32 extraction.
240         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
241         exceptions for qNaNs.
242         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
243         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
244         Raise exceptions when needed.  Don't recurse unnecessarily.
245         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
246         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
247         exceptions for qNaNs.
248         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
249         to fix *quo return value sign.
250         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
251         case -Inf argument.
252         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
253
254 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
255
256         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
257         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
258         -DNDEBUG.
259
260 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
261
262         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
263         the result.
264
265         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
266         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
267
268         * Versions.def (libthread_db): Add GLIBC_2.3.
269
270 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
271
272         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
273         new stream if possible.
274         * libio/freopen64.c (freopen64): Likewise.
275         * libio/Makefile (tests): Add tst-freopen.
276         * libio/tst-freopen.c: New file.
277
278 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
279
280         * libio/stdio.h (obstack_printf): Add format attribute.
281         (obstack_vprintf): Likewise.
282
283 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
284
285         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
286         resp. 16 bytes on 32-bit resp. 64-bit platforms.
287         (re_charset_t, re_string_t): Reorder structure members for 64-bit
288         architectures.
289
290 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
291
292         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
293         (init_dfa): ...here.
294
295 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
296
297         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
298         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
299         nodes in parse trees.
300         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
301         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
302         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
303         nodes which can epsilon transit.
304         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
305         to IS_EPSILON_NODE macro.
306         * posix/regexec.c (update_regs): New function to update registers
307         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
308         (proceed_next_node): Use the entities of the nodes to determine
309         whether the node can transit to.
310         (set_regs): Use update_regs function to update registers.
311
312 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
313
314         * posix/bug-regex4.c (main): Remove duplicate setlocale.
315         * posix/bug-regex6.c: New file.
316         * posix/Makefile (tests): Add bug-regex6.
317         (bug-regex6-ENV): Set LOCPATH.
318
319 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
320
321         * Versions.def [libpthread]: Add GLIBC_2.2.6.
322         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
323
324 2002-07-06  Bruno Haible  <bruno@clisp.org>
325
326         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
327
328 2002-07-06  Bruno Haible  <bruno@clisp.org>
329
330         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
331         declarations.
332
333         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
334
335         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
336
337         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
338         not _UTSNAME_H.
339         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
340
341         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
342         * sysdeps/generic/bits/ustat.h: Likewise.
343
344         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
345
346 2002-07-08  Andreas Jaeger  <aj@suse.de>
347
348         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
349
350 2002-07-08  Andreas Jaeger  <aj@suse.de>
351
352         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
353
354 2002-07-06  Andreas Jaeger  <aj@suse.de>
355
356         * sysdeps/x86_64/fpu/bits/mathinline.h: New.
357         * sysdeps/x86_64/fpu/s_copysign.S: New.
358         * sysdeps/x86_64/fpu/s_copysignf.S: New.
359         * sysdeps/x86_64/fpu/s_copysignl.S: New.
360         * sysdeps/x86_64/fpu/s_finitel.S: New.
361         * sysdeps/x86_64/fpu/s_fmax.S: New.
362         * sysdeps/x86_64/fpu/s_fmaxf.S: New.
363         * sysdeps/x86_64/fpu/s_fmaxl.S: New.
364         * sysdeps/x86_64/fpu/s_fmin.S: New.
365         * sysdeps/x86_64/fpu/s_fminf.S: New.
366         * sysdeps/x86_64/fpu/s_fminl.S: New.
367
368 2002-06-05  Brian Youmans <3diff@gnu.org>
369
370         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
371         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
372         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
373         * sysdeps/ia64/fpu/e_asin.S: Likewise.
374         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
375         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
376         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
377         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
378         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
379         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
380         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
381         * sysdeps/ia64/fpu/e_exp.S: Likewise.
382         * sysdeps/ia64/fpu/e_expf.S: Likewise.
383         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
384         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
385         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
386         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
387         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
388         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
389         * sysdeps/ia64/fpu/e_log.S: Likewise.
390         * sysdeps/ia64/fpu/e_logf.S: Likewise.
391         * sysdeps/ia64/fpu/e_pow.S: Likewise.
392         * sysdeps/ia64/fpu/e_powf.S: Likewise.
393         * sysdeps/ia64/fpu/e_powl.S: Likewise.
394         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
395         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
396         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
397         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
398         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
399         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
400         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
401         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
402         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
403         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
404         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
405         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
406         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
407         * sysdeps/ia64/fpu/libm_error.c: Likewise.
408         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
409         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
410         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
411         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
412         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
413         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
414         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
415         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
416         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
417         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
418         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
419         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
420         * sysdeps/ia64/fpu/s_logb.S: Likewise.
421         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
422         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
423         * sysdeps/ia64/fpu/s_modf.S: Likewise.
424         * sysdeps/ia64/fpu/s_modff.S: Likewise.
425         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
426         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
427         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
428         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
429         * sysdeps/ia64/fpu/s_rint.S: Likewise.
430         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
431         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
432         * sysdeps/ia64/fpu/s_round.S: Likewise.
433         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
434         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
435         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
436         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
437         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
438         * sysdeps/ia64/fpu/s_significand.S: Likewise.
439         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
440         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
441         * sysdeps/ia64/fpu/s_tan.S: Likewise.
442         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
443         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
444         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
445         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
446         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
447         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
448         reflect IBM donation of math library to FSF
449         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
450         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
451         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
452         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
453         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
454         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
455         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
456         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
457         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
458         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
459         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
460         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
461         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
462         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
463         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
464         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
465         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
466         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
467         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
468         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
469         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
470         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
471         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
472         * sysdeps/vax/__longjmp.c: Likewise.
473         * sysdeps/vax/setjmp.c: Likewise.
474         * libio/filedoalloc.c: Fixed BSD copying permission notice to
475         remove advertising clause
476         * sysdeps/vax/htonl.s: Likewise.
477         * sysdeps/vax/htons.s: Likewise.
478         * libio/wfiledoalloc.c: Likewise.
479         * stdlib/random.c: Likewise.
480         * stdlib/random_r.c: Likewise.
481         * sysdeps/mach/sys/reboot.h: Likewise.
482         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
483         * sysdeps/posix/getaddrinfo.c: Likewise.
484         * sunrpc/des_impl.c: Updated license permission notice to Lesser
485         GPL and corrected pointer to point to the correct license.
486
487 2002-07-04  Andreas Jaeger  <aj@suse.de>
488
489         * scripts/config.guess: New upstream version.
490         * scripts/config.sub: Likewise.
491
492 2002-07-02  Andreas Schwab  <schwab@suse.de>
493
494         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
495         in parallel to bumping up the buffer pointer.
496
497 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
498
499         * math/libm-test.inc (acos_test): Add missing L suffix for
500         expected result.
501         (cpow_test): Likewise.
502         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
503         error for acos (0.0625).
504
505 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
506
507         * locale/iso-639.def: Add entry for Ganda.
508         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
509         definition.
510         (address_finish): Handle entries with two letter ISO 639 code.
511
512         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
513         directory if it existed before.
514         * iconv/iconvconfig.c: Implement --prefix option.
515
516         * math/libm-test.inc (cexp_test): Add missing L suffix for
517         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
518         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
519         1.25 i).
520
521 2002-05-29  H.J. Lu  <hjl@gnu.org>
522
523         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
524         is turned on.
525
526 2002-05-28  H.J. Lu  <hjl@gnu.org>
527
528         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
529         are not dlopened on the dependency list of a dlopened object.
530
531 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
532
533         * elf/dl-lookup.c (add_dependency): It is not necessary to add
534         dependencies if they are created between objects which are created
535         while processing RTLD_NOW for objects loaded as part of the same
536         dlopen call.
537
538 2002-06-14  H.J. Lu  <hjl@gnu.org>
539
540         * elf/Makefile (tests): Add circleload1.
541         (modules-names): Add circlemod1, circlemod2, circlemod3,
542         circlemod1a, circlemod2a and circlemod3a.
543         ($(objpfx)circleload1): New target.
544         ($(objpfx)circleload1.out): Likewise.
545         ($(objpfx)circlemod1.so): Likewise.
546         ($(objpfx)circlemod2.so): Likewise.
547         ($(objpfx)circlemod1a.so): Likewise.
548         ($(objpfx)circlemod2a.so): Likewise.
549         * elf/circleload1.c: New file.
550         * elf/circlemod1.c: New file.
551         * elf/circlemod1a.c: New file.
552         * elf/circlemod2.c: New file.
553         * elf/circlemod2a.c: New file.
554         * elf/circlemod3.c: New file.
555         * elf/circlemod3a.c: New file.
556
557 2002-06-18  Amos Waterland  <apw@us.ibm.com>
558
559         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
560         file descriptor.
561         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
562         add check for fd not open for writing.
563
564         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
565         completed element(s) and do not suspend thread if so.  Patch
566         heavily modified by drepper.
567
568         * rt/tst-aio7.c: New file.  Regression test for problems which the
569         above three changes fix.
570         * rt/Makefile (tests): Add tst-aio7.
571
572 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
573
574         * rt/tst-aio6.c: Fix comment.
575
576         * catgets/gencat.c (read_input_file): Handle more than one slash
577         at end of line correctly [PR libc/3926].
578         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
579
580         * catgets/sample.SJIS: Add test case for above bug.
581         * catgets/test-gencat.c: Adjust test code.
582         * catgets/test-gencat.sh: Adjust expected results.
583
584         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
585         to skip relative relocations.
586         Patch by Geoff Keating <geoffk@redhat.com>.
587
588 2002-05-26  Bruno Haible  <bruno@clisp.org>
589
590         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
591         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
592         All callers changed.
593         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
594         STANDARD_FROM_LOOP_ERR_HANDLER.
595         (utf8_internal_loop): Likewise.
596         (ucs2_internal_loop): Likewise.
597         (internal_ucs2_loop): Perform error handling like in
598         STANDARD_FROM_LOOP_ERR_HANDLER.
599         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
600         in STANDARD_FROM_LOOP_ERR_HANDLER.
601         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
602         handling.
603         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
604         in STANDARD_FROM_LOOP_ERR_HANDLER.
605         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
606         handling.
607         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
608         in STANDARD_FROM_LOOP_ERR_HANDLER.
609         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
610         handling.
611         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
612         STANDARD_FROM_LOOP_ERR_HANDLER.
613         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
614         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
615         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
616         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
617         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
618         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
619         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
620         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
621         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
622         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
623         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
624         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
625         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
626         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
627         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
628         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
629         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
630         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
631         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
632         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
633         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
634         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
635         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
636         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
637         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
638         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
639         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
640         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
641         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
642         an error, still set result = __GCONV_ILLEGAL_INPUT.
643         (BODY for TO_LOOP): Likewise.
644         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
645         STANDARD_FROM_LOOP_ERR_HANDLER.
646         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
647         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
648         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
649         handling.
650         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
651         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
652         STANDARD_FROM_LOOP_ERR_HANDLER.
653         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
654         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
655         STANDARD_FROM_LOOP_ERR_HANDLER.
656         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
657         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
658         STANDARD_FROM_LOOP_ERR_HANDLER.
659         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
660         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
661         STANDARD_FROM_LOOP_ERR_HANDLER.
662         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
663         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
664         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
665         handling.
666         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
667         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
668         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
669         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
670
671 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
672
673         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
674         labels in assembler instructions.
675
676 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
677
678         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
679         not enough content is available.
680         * libio/tst-eof.c: New file.
681         * libio/Makefile (tests): Add tst-eof.
682
683         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
684         update atime.
685         * libio/tst-atime.c: New file.
686         * libio/Makefile (tests): Add tst-atime.
687
688         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
689         handling of overly long words.
690
691 2002-06-25  Andreas Jaeger  <aj@suse.de>
692
693         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
694         to not use 32-bit pc relative relocations.
695         (elf_machine_dynamic): Likewise.
696
697 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
698
699         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
700         (__GETDENTS): Check for failed getdents64 syscall.
701         * dirent/Makefile (tests): Add bug-readdir1.
702         * dirent/bug-readdir1.c: New file.
703
704 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
705
706         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
707         lookups.
708         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
709         code.  Print TLS modid and offset for modules containing PT_TLS
710         segments.
711
712 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
713
714         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
715         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
716         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
717         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
718
719 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
720
721         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
722         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
723         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
724         * nss/getXXent_r.c (NEW, NEW1): Define.
725         (NEW (REENTRANT_GETNAME)): Strong alias to
726         INTERNAL (REENTRANT_GETNAME).
727         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
728
729 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
730
731         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
732         (_IO_file_jumps_mmap): Use it.
733         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
734         * libio/libioP.h: Remove _IO_wdefault_setbuf and
735         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
736         prototype.
737         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
738         (_IO_wfile_jumps_mmap): Don't use it anymore.
739         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
740         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
741         _IO_wdefault_setbuf.
742         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
743         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
744         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
745
746 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
747
748         * libio/Makefile (tests): Add tst-mmap-setvbuf.
749         * libio/tst-mmap-setvbuf.c: New test.
750
751 2002-06-21  Andreas Jaeger  <aj@suse.de>
752
753         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
754
755 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
756
757         * include/unistd.h (__fork_internal): Remove.
758         (__fork): Don't define to __fork_internal.
759         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
760         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
761         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
762         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
763         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
764
765 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
766
767         * po/hr.po: New file.
768
769 2002-06-11  Wolfram Gloger  <wg@malloc.de>
770
771         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
772         Reported by Michael Meissner <meissner@redhat.com>.
773
774 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
775
776         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
777         Patch by Hans Boehm <hans_boehm@hp.com>.
778
779 2002-06-20  Andreas Jaeger  <aj@suse.de>
780
781         * math/libm-test.inc: Use exact values as input parameters,
782         compute output parameters with 36 digits for 128-bit long doubles.
783         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
784         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
785         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
786
787 2002-06-13  Stephen L Moshier  <steve@moshier.net>
788
789         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
790         argument or result is subnormal.
791
792 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
793
794         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
795         quotient.
796         * sysdeps/i386/fpu/s_remquof.S: Likewise.
797         * sysdeps/i386/fpu/s_remquol.S: Likewise.
798
799         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
800
801 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
802
803         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
804         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
805         Reported by Peter A. Buhr.
806
807 2002-06-15  Roland McGrath  <roland@frob.com>
808
809         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
810         warning.
811
812         * sysdeps/mach/hurd/getcwd.c
813         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
814
815         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
816         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
817
818         * sysdeps/alpha/divrem.h: Use local label instead of global one for
819         jump to local subroutine.
820
821 2002-06-14  Roland McGrath  <roland@frob.com>
822
823         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
824         * sysdeps/mach/hurd/Makeconfig: ... here.
825
826 2002-06-13  Andreas Schwab  <schwab@suse.de>
827
828         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
829         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
830         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
831
832 2002-06-13  Roland McGrath  <roland@frob.com>
833
834         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
835         * hurd/hurdstartup.c (_hurd_startup): Likewise.
836         Use intptr_t instead of int for argc in stack layout.
837         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
838         (_dl_init_first): Likewise.
839         (_hurd_stack_setup): Likewise.
840         (init1): Add a cast.
841         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
842
843         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
844         argument to pfinet_siocgifconf RPC.
845
846 2002-06-13  Andreas Schwab  <schwab@suse.de>
847
848         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
849         expansion order.
850
851 2002-06-12  Roland McGrath  <roland@frob.com>
852
853         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
854         if already defined.
855         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
856         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
857
858 2002-06-11  Roland McGrath  <roland@frob.com>
859
860         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
861         file on [!RTLD_STAT64].
862         * sysdeps/mach/hurd/fxstat64.c: Likewise.
863
864         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
865         (__fdopen): Use INTUSE.
866         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
867
868         * stdio-common/tmpfile64.c: File removed.
869         * sysdeps/generic/tmpfile64.c: New file.
870         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
871         if not already defined.
872         (tmpfile): Use it in place of __GT_FILE.
873
874         * include/unistd.h: Declare __chown_internal.
875
876         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
877         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
878
879 2002-06-09  Roland McGrath  <roland@frob.com>
880
881         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
882         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
883         value of HURD_INTERFACE_VERSION >= 20020609.
884         * sysdeps/mach/hurd/configure: Regenerated.
885         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
886         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
887         convert a struct stat64 into a struct stat and return 0 or -1
888         with errno set to EOVERFLOW.
889         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
890         for struct statfs64 to struct statfs.
891         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
892         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
893         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
894         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
895         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
896         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
897         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
898         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
899         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
900         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
901         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
902         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
903         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
904         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
905         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
906         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
907         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
908         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
909         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
910         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
911         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
912         Use struct stat64 for io_stat argument.
913         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
914         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
915         to io_seek.
916         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
917         * hurd/fd-write.c (_hurd_fd_write): Likewise.
918         * hurd/hurd/fd.h: Update decls.
919         * sysdeps/mach/hurd/getcwd.c
920         (_hurd_canonicalize_directory_name_internal): Use ino64_t
921         and struct dirent64.
922         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
923         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
924         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
925         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
926
927 2002-06-08  Roland McGrath  <roland@frob.com>
928
929         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
930         instead of unsigned long int for __allocation and __size members.
931
932 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
933
934         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
935         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
936         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
937         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
938
939 2002-06-07  Roland McGrath  <roland@frob.com>
940
941         * sysdeps/mach/hurd/bits/environments.h: File removed.
942
943 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
944
945         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
946         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
947         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
948         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
949         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
950         (sendfile64): Likewise.
951         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
952         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
953         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
954         Likewise.
955         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
956
957         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
958         already defined.
959
960 2002-06-04  Bruno Haible  <bruno@clisp.org>
961
962         * sysdeps/cris/stackinfo.h: New file.
963
964         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
965         to an integer type before performing bit operations on it.
966
967 2002-06-05  Roland McGrath  <roland@frob.com>
968
969         * sysdeps/generic/sendfile.c: Include <errno.h>.
970         * sysdeps/generic/sendfile64.c: Likewise.
971
972         * io/Makefile (routines): Add sendfile and sendfile64.
973         (headers): Add sys/sendfile.h to the list.
974         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
975         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
976         * io/sys/sendfile.h: ... here.
977         * sysdeps/generic/sendfile.c: New file.
978         * sysdeps/generic/sendfile64.c: New file.
979
980         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
981         Move sendfile, sendfile64 to ...
982         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
983         * sysdeps/mach/hurd/sendfile.c: New file.
984         * sysdeps/mach/hurd/sendfile64.c: New file.
985
986         * sysdeps/mach/nanosleep.c: New file.
987
988 2002-06-04  Roland McGrath  <roland@frob.com>
989
990         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
991         * sysdeps/alpha/elf/configure: New file (generated).
992
993 2002-06-02  Roland McGrath  <roland@frob.com>
994
995         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
996
997 2002-06-01  Roland McGrath  <roland@frob.com>
998
999         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
1000         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
1001
1002 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
1003
1004         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
1005         Add nsmap.
1006         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
1007         Remove nstimes setting.
1008         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
1009         * resolv/res_send.c (res_nsend): Don't close unconditionally if
1010         there is mix of IPv6 and IPv4 nameservers.
1011         Use nsmap array to find free slots and preserve nameserver ordering.
1012         Fix RES_ROTATE.
1013
1014 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
1015
1016         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
1017         use this header with LFS.
1018
1019         * po/sk.po: Update from translation team.
1020
1021 2002-05-28  Andreas Schwab  <schwab@suse.de>
1022
1023         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
1024         message when finding object of wrong class.
1025
1026 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
1027
1028         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
1029         Patch by <radu@netsoft.ro>.
1030
1031 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
1032
1033         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
1034         Add readahead.
1035         * sysdeps/unix/sysv/linux/readahead.c: New file.
1036         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
1037         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
1038         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
1039         Add sendfile64 alias to sendfile syscall.
1040         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1041         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1042         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1043         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
1044         syscall.
1045
1046         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
1047         special section for PIC register loading.
1048         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
1049
1050         * config.h.in: Define HAVE_HIDDEN.
1051         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
1052
1053         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
1054
1055 2002-05-28  Roland McGrath  <roland@frob.com>
1056
1057         * sysdeps/mach/alpha/setfpucw.c: New file.
1058
1059 2002-05-26  Roland McGrath  <roland@frob.com>
1060
1061         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
1062         Use integer_t instead of int for IOC_VOID case.
1063
1064 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
1065
1066         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
1067
1068 2002-05-26  Bruno Haible  <bruno@clisp.org>
1069
1070         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
1071         end of the ISO-8859-7 from idx table.
1072
1073 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
1074
1075         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
1076
1077 2002-05-24  David S. Miller  <davem@redhat.com>
1078
1079         * string/bits/string2.h (memset): Do not try to optimize when
1080         not _STRING_ARCH_unaligned if GCC will do the right thing.
1081
1082 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
1083
1084         * posix/regex.c: Define `inline' as a macro into nothing for the
1085         compilers which lack the keyword.
1086         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
1087         for the compatibility of gawk.
1088         * posix/regcomp.c: Add fake implementation of isblank() for the
1089         environments which lack the function.
1090         Don't use free_charset() in case of non-i18n envs.
1091         (build_range_exp): Don't use i18n related code in case of non-i18n
1092         envs.
1093         (build_collating_symbol): Likewise.
1094         (build_equiv_class): Likewise.
1095         (build_charclass): Likewise.
1096         (re_compile_fastmap_iter): Likewise.
1097         (parse_bracket_exp): Likewise.
1098         (build_word_op): Likewise.
1099         (regfree): Don't use free_charset() in case of non-i18n envs.
1100         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
1101         re_token_type_t in case of non-i18n envs.
1102         Don't define re_charset_t in case of non-i18n envs.
1103         Change the type of wcs of re_string_t from wchar_t to wint_t,
1104         since we store also WEOF.
1105         * posix/regex_internal.c: (re_string_realloc_buffers): Change
1106         the type of wcs of re_string_t from wchar_t to wint_t.
1107         (re_string_reconstruct): Likewise.
1108         (create_ci_newstate): Don't use i18n related code in case of
1109         non-i18n envs.
1110         (create_cd_newstate): Likewise.
1111
1112 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
1113
1114         * iconv/loop.c: Fix typo.
1115
1116 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1117
1118         * inet/ether_line.c (ether_line): Fix a typo causing only
1119         lower 4 bits of each ethernet address byte being assigned.
1120         Don't modify what line points to.
1121         * inet/tst-ether_aton.c (main): Add ether_line tests.
1122
1123 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
1124
1125         * manual/filesys.texi: Don't make readlink example leak memory
1126         when readlink fails.
1127
1128 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
1129
1130         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
1131         some more security checks.
1132
1133 2002-05-17  David S. Miller  <davem@redhat.com>
1134
1135         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
1136
1137 2002-05-16  David S. Miller  <davem@redhat.com>
1138
1139         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
1140         (elf_machine_dynamic): Use it to force PIC register to be loaded.
1141         (elf_machine_load_address): Likewise.
1142         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
1143
1144         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
1145         is unaligned, do not forget to fully initialize %g1 magic value.
1146
1147         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
1148         register definitions and provide 32-bit variants of structures
1149         during 64-bit builds.
1150
1151         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
1152         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
1153         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
1154         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
1155         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
1156         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
1157         Do not clear implicit one bit here, it must be done post-rounding.
1158         Only pad to the left using left shift if value uses less than the
1159         available fractional bits.
1160
1161 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1162
1163         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
1164         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
1165         (shared-only-routines): Likewise.
1166         * sysdeps/powerpc/libgcc-compat.c: New file.
1167         * sysdeps/wordsize-32/cmpdi2.c: Removed.
1168         * sysdeps/wordsize-32/fixdfdi.c: Removed.
1169         * sysdeps/wordsize-32/fixsfdi.c: Removed.
1170         * sysdeps/wordsize-32/shdi3.c: Removed.
1171
1172 2002-05-16  Bruno Haible  <bruno@clisp.org>
1173
1174         * MakeTAGS (libc.pot): Don't sort the output.
1175         * po/header.pot: Update to match xgettext 0.11 output.
1176
1177 2002-05-16  Bruno Haible  <bruno@clisp.org>
1178
1179         * MakeTAGS (subdirs): Remove duplicates.
1180
1181 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
1182
1183         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
1184         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
1185         alias.
1186
1187 2002-05-19  Andreas Jaeger  <aj@suse.de>
1188
1189         * sysdeps/unix/sysv/linux/configure.in: Warn against an
1190         installation in /usr/local.
1191
1192 2002-05-16  Bruno Haible  <bruno@clisp.org>
1193
1194         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
1195         string as argument of #error.
1196
1197 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
1198
1199         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
1200         don't define static.  Remove old __realpath function.  TC1 of
1201         POSIX 2001 will allow the second parameter to be NULL.
1202         * stdlib/test-canon.c: Comment out test for NULL as second
1203         parameter of realpath.
1204
1205         * time/offtime.c (__offtime): Set errno if overflow is detected.
1206
1207         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
1208         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
1209         dl-brk and dl-sbrk.
1210
1211         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
1212         (fdimf): Likewise.
1213
1214 2002-05-15  Roland McGrath  <roland@frob.com>
1215
1216         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
1217
1218 2002-05-12  Bruno Haible  <bruno@clisp.org>
1219
1220         * iconvdata/testdata/EUC-JISX0213: New file.
1221         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
1222         * iconvdata/testdata/SHIFT_JISX0213: New file.
1223         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
1224         * iconvdata/testdata/ISO-2022-JP-3: New file.
1225         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
1226         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
1227         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
1228         contains comments indicating precomposed characters.
1229
1230 2002-04-21  Bruno Haible  <bruno@clisp.org>
1231
1232         * iconvdata/iso-2022-jp-3.c: New file.
1233         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
1234         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
1235         (LDFLAGS-ISO-2022-JP-3.so): New variable.
1236         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
1237         (distribute): Add iso-2022-jp-3.c.
1238
1239 2002-05-12  Bruno Haible  <bruno@clisp.org>
1240
1241         * iconvdata/tst-table-to.c (main): Restore handling of
1242         transliterations, broken by last patch.
1243
1244 2002-05-12  Bruno Haible  <bruno@clisp.org>
1245
1246         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
1247
1248 2002-05-12  Bruno Haible  <bruno@clisp.org>
1249
1250         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
1251         when there is not enough room in the output buffer.
1252         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
1253
1254 2002-04-20  Bruno Haible  <bruno@clisp.org>
1255
1256         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
1257         macros.
1258         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
1259         Also make this macro work if FROM_DIRECTION evaluates to 0.
1260         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
1261         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
1262         of consume_incomplete.
1263         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
1264         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
1265         4, not 8.
1266         * iconvdata/cp1258.c: Likewise.
1267         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
1268         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
1269         not 2.
1270         * iconvdata/ibm933.c: Likewise.
1271         * iconvdata/ibm935.c: Likewise.
1272         * iconvdata/ibm937.c: Likewise.
1273         * iconvdata/ibm939.c: Likewise.
1274         * iconvdata/iso-2022-cn.c: Define
1275         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
1276         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
1277         * iconvdata/iso-2022-cn-ext.c: Likewise.
1278         * iconvdata/iso-2022-jp.c: Define
1279         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
1280         {MIN,MAX}_NEEDED_{FROM,TO}.
1281         * iconvdata/tcvn5712-1.c: Define
1282         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
1283         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
1284         * iconvdata/euc-jisx0213.c: Define
1285         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
1286         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
1287         * iconvdata/shift_jisx0213.c: Likewise.
1288
1289 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1290
1291         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
1292         shdi3, fixdfdi, fixsfdi in csu dir.
1293         (shared-only-routines): Likewise.
1294         * sysdeps/wordsize-32/cmpdi2.c: New file.
1295         * sysdeps/wordsize-32/shdi3.c: New file.
1296         * sysdeps/wordsize-32/fixdfdi.c: New file.
1297         * sysdeps/wordsize-32/fixsfdi.c: New file.
1298         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
1299         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
1300         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
1301
1302         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
1303         Only use va_arg if the argument will be used [PR libc/3259].
1304
1305 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
1306
1307         * catgets/catgets.c (catopen): Free buffer if internal catalog
1308         open fails.
1309
1310 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
1311
1312         * debug/xtrace.sh: Make more robust.  For realtime tracking use
1313         non-buffering methods.
1314         * debug/pcprofiledump.c: Implement -u option.
1315         Patch by Roger Luethi <rl@hellgate.ch>.
1316
1317 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
1318
1319         * include/netinet/in.h (bindresvport_internal): Add prototype.
1320         * include/rpc/auth.h  (authunix_create_internal,
1321         authunix_create_default_internal, authnone_create_internal,
1322         authdes_pk_create_internal): Add prototypes.
1323         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
1324         clntudp_create_internal, clntudp_bufcreate_internal,
1325         clntunix_create_internal): Add prototypes.
1326         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
1327         svc_getreq_internal, svc_getreq_common_internal,
1328         svc_getreqset_internal, svc_getreq_poll_internal,
1329         svc_register_internal, svc_unregister_internal,
1330         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
1331         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
1332         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
1333         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
1334         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
1335         * inet/rcmd.c (rcmd_af): Use __listen.
1336         (rresvport_af): Use __bind.
1337         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
1338         authunix_create, authunix_create_default, authnone_create,
1339         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
1340         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
1341         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
1342         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
1343         _authenticate, add INTDEF after such function definitions.
1344         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
1345         __setsockopt, __getsockname instead of non-__ variants.
1346         * sunrpc/pmap_rmt.c: Likewise.
1347         * sunrpc/rtime.c: Likewise.
1348         * sunrpc/svc_udp.c: Likewise.
1349         * sunrpc/clnt_unix.c: Likewise.
1350         * sunrpc/svc_unix.c: Likewise.
1351         * sunrpc/bindrsvprt.c: Likewise.
1352         * sunrpc/svc_tcp.c: Likewise.
1353         * sunrpc/auth_none.c: Likewise.
1354         * sunrpc/clnt_raw.c: Likewise.
1355         * sunrpc/clnt_tcp.c: Likewise.
1356         * sunrpc/auth_unix.c: Likewise.
1357         * sunrpc/key_call.c: Likewise.
1358         * sunrpc/clnt_gen.c: Likewise.
1359         * sunrpc/pm_getmaps.c: Likewise.
1360         * sunrpc/clnt_simp.c: Likewise.
1361         * sunrpc/pmap_clnt.c: Likewise.
1362         * sunrpc/svc_run.c: Likewise.
1363         * sunrpc/svc.c: Likewise.
1364         * sunrpc/svc_simple.c: Likewise.
1365         * sunrpc/pm_getport.c: Likewise.
1366         * sunrpc/auth_des.c: Likewise.
1367         * sunrpc/svc_auth.c: Likewise.
1368         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
1369         __register_frame_info_table_bases, __deregister_frame_info_bases):
1370         Add INTDEF.
1371         (__register_frame_info_bases_internal,
1372         __register_frame_info_table_bases_internal,
1373         __deregister_frame_info_bases_internal): Add prototypes.
1374         (__register_frame_info, __register_frame): Use INTUSE in call to
1375         __register_frame_info_bases.
1376         (__register_frame_info_table): Similarly.
1377         (__deregister_frame_info, __deregister_frame): Similarly.
1378         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
1379         sendto as weak alias.
1380         * sysdeps/mach/hurd/sendto.c: Likewise.
1381         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
1382         recvfrom as weak alias.
1383         * sysdeps/mach/hurd/recvfrom.c: Likewise.
1384         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
1385         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
1386         recvmsg as weak alias.
1387         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
1388         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
1389         sendmsg as weak alias.
1390         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
1391         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
1392         setsockopt, add setsockopt as weak alias.
1393         * sysdeps/mach/hurd/setsockopt.c: Likewise.
1394         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
1395         weak alias.
1396         * sysdeps/mach/hurd/bind.c: Likewise.
1397         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
1398         as weak alias.
1399         * sysdeps/mach/hurd/listen.c: Likewise.
1400         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
1401         getsockname, add getsockname as weak alias.
1402         * sysdeps/mach/hurd/getsockname.c: Likewise.
1403         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
1404         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
1405         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
1406         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
1407         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
1408         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
1409         Add aliases.
1410         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1411         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1412         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1413         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1414         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
1415         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
1416         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
1417         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
1418         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
1419         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
1420         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
1421         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
1422
1423 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
1424
1425         * locale/programs/localedef.h (show_archive_content): Add verbose
1426         argument.
1427         * locale/programs/localedef.c (main): Adjust caller.
1428         * locale/programs/locarchive.c (struct nameent, struct dataent): New.
1429         (nameentcmp, dataentcmp): New functions.
1430         (xstrcmp): Remove.
1431         (show_archive_content): Print verbose listing with --list-archive -v.
1432
1433 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
1434
1435         * locale/programs/locarchive.c (open_archive): Take extra argument
1436         readonly.  If true open file with O_RDONLY and don't create the
1437         archive if it doesn't exist.
1438         Adapt all callers.
1439         (close_archive): Don't do anything if fd element is -1.
1440         * locale/programs/localedef.h (open_archive): Adjust prototype.
1441         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
1442         call.
1443
1444         * malloc/malloc.c (__posix_memalign): Correct check for size of
1445         alignment value [PR libc/3444].
1446
1447         * include/stdio.h: Remove references to old stdio implementation.
1448
1449         * libio/Makefile (bug-ungetwc2-ENV): Define.
1450
1451 2002-05-13  Roland McGrath  <roland@frob.com>
1452
1453         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
1454
1455         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
1456
1457 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
1458
1459         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
1460         Allocate three, not two, more than LEN when appending '/.'.
1461         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
1462         if NAME ends with '/.' if it is shorter than 2 chars.
1463
1464 2002-05-12  Roland McGrath  <roland@frob.com>
1465
1466         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
1467         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
1468
1469         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
1470         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
1471
1472 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
1473
1474         * sysdeps/ia64/Makefile: Remove extra endif.
1475         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
1476
1477 2002-05-10  Andreas Schwab  <schwab@suse.de>
1478
1479         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
1480
1481 2002-05-09  Andreas Jaeger  <aj@suse.de>
1482
1483         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New.
1484         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
1485         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
1486
1487         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
1488         * sysdeps/wordsize-64/glob.c: ...here.
1489         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
1490         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
1491         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
1492
1493 2002-05-08  Roland McGrath  <roland@frob.com>
1494
1495         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
1496         O_NOTRANS flag in "." lookup.
1497
1498 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
1499
1500         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
1501
1502 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
1503
1504         * locale/duplocale.c (__duplocale): Update special members only
1505         when allocation succeeded.
1506
1507 2002-05-03  Roland McGrath  <roland@frob.com>
1508
1509         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
1510         we can only build libc.so.0.3(GLIBC_2.2.6) now.
1511
1512 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
1513
1514         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
1515         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
1516         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
1517         * sysdeps/ia64/ia64libgcc.S: New file.
1518
1519 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
1520
1521         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
1522
1523         * malloc/memusage.c: Distinguish anonymous mmap.
1524
1525 2002-05-01  Roland McGrath  <roland@frob.com>
1526
1527         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
1528         and use INTDEF on it.
1529         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
1530
1531         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
1532
1533         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
1534
1535 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
1536
1537         * malloc/memusage.c: Add support for tracking mmap & friends.
1538         * malloc/memusage.sh: Implement -m/--mmap option.
1539
1540 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
1541
1542         * locale/programs/locarchive.c (create_archive): Add archivefname
1543         argument, create fname from it.
1544         (enlarge_archive): Honour output_prefix.
1545         (open_archive): Likewise.
1546
1547 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
1548
1549         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
1550         too many stpcpy macros.
1551
1552 2002-04-26  Bruno Haible  <bruno@clisp.org>
1553
1554         * locale/programs/ld-collate.c (collate_read): Cast first argument
1555         for "%.*s" to int.
1556
1557 2002-04-26  Bruno Haible  <bruno@clisp.org>
1558
1559         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
1560         __dcngettext_internal): New declarations.
1561         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
1562         attribute declarations.
1563
1564 2002-04-30  Roland McGrath  <roland@frob.com>
1565
1566         Removed old GNU stdio implementation; GNU libio is now the only option.
1567         * configure.in: Removed --enable-libio option and @stdio@ subst var.
1568         Define USE_IN_LIBIO unconditionally.
1569         * configure: Regenerated.
1570         * Makeconfig (stdio): Set to libio by default.
1571         * config.make.in (stdio): Variable removed.
1572         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
1573         * sysdeps/unix/sysv/linux/configure: Regenerated.
1574         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
1575         * sysdeps/mach/hurd/configure: Regenerated.
1576         * stdio/.cvsignore: File removed.
1577         * stdio/Makefile: File removed.
1578         * stdio/Versions: File removed.
1579         * stdio/__fbufsize.c: File removed.
1580         * stdio/__flbf.c: File removed.
1581         * stdio/__fpending.c: File removed.
1582         * stdio/__fpurge.c: File removed.
1583         * stdio/__freadable.c: File removed.
1584         * stdio/__freading.c: File removed.
1585         * stdio/__fsetlocking.c: File removed.
1586         * stdio/__fwritable.c: File removed.
1587         * stdio/__fwriting.c: File removed.
1588         * stdio/clearerr.c: File removed.
1589         * stdio/fclose.c: File removed.
1590         * stdio/fcloseall.c: File removed.
1591         * stdio/feof.c: File removed.
1592         * stdio/ferror.c: File removed.
1593         * stdio/fflush.c: File removed.
1594         * stdio/fgetc.c: File removed.
1595         * stdio/fgetpos.c: File removed.
1596         * stdio/fgets.c: File removed.
1597         * stdio/fileno.c: File removed.
1598         * stdio/fmemopen.c: File removed.
1599         * stdio/fopen.c: File removed.
1600         * stdio/fopncook.c: File removed.
1601         * stdio/fputc.c: File removed.
1602         * stdio/fputs.c: File removed.
1603         * stdio/fread.c: File removed.
1604         * stdio/freopen.c: File removed.
1605         * stdio/fseek.c: File removed.
1606         * stdio/fsetpos.c: File removed.
1607         * stdio/ftell.c: File removed.
1608         * stdio/fwrite.c: File removed.
1609         * stdio/getc.c: File removed.
1610         * stdio/getchar.c: File removed.
1611         * stdio/getdelim.c: File removed.
1612         * stdio/gets.c: File removed.
1613         * stdio/glue.c: File removed.
1614         * stdio/internals.c: File removed.
1615         * stdio/linewrap.c: File removed.
1616         * stdio/linewrap.h: File removed.
1617         * stdio/memstream.c: File removed.
1618         * stdio/newstream.c: File removed.
1619         * stdio/obstream.c: File removed.
1620         * stdio/putc.c: File removed.
1621         * stdio/putchar.c: File removed.
1622         * stdio/puts.c: File removed.
1623         * stdio/rewind.c: File removed.
1624         * stdio/setbuf.c: File removed.
1625         * stdio/setbuffer.c: File removed.
1626         * stdio/setlinebuf.c: File removed.
1627         * stdio/setvbuf.c: File removed.
1628         * stdio/stdio.h: File removed.
1629         * stdio/ungetc.c: File removed.
1630         * stdio/vasprintf.c: File removed.
1631         * stdio/vscanf.c: File removed.
1632         * stdio/vsnprintf.c: File removed.
1633         * stdio/vsprintf.c: File removed.
1634         * stdio/vsscanf.c: File removed.
1635         * sysdeps/generic/defs.c: File removed.
1636         * sysdeps/generic/fdopen.c: File removed.
1637         * sysdeps/generic/pipestream.c: File removed.
1638         * sysdeps/generic/stdio_init.c: File removed.
1639         * sysdeps/generic/sysd-stdio.c: File removed.
1640         * sysdeps/generic/vdprintf.c: File removed.
1641         * sysdeps/mach/hurd/defs.c: File removed.
1642         * sysdeps/mach/hurd/fdopen.c: File removed.
1643         * sysdeps/mach/hurd/pipestream.c: File removed.
1644         * sysdeps/mach/hurd/stdio_init.c: File removed.
1645         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
1646         * sysdeps/mach/hurd/vdprintf.c: File removed.
1647         * sysdeps/posix/defs.c: File removed.
1648         * sysdeps/posix/fdopen.c: File removed.
1649         * sysdeps/posix/pipestream.c: File removed.
1650         * sysdeps/posix/stdio_init.c: File removed.
1651         * sysdeps/posix/vdprintf.c: File removed.
1652         * sysdeps/unix/pipestream.c: File removed.
1653         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
1654         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
1655         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
1656
1657 2002-04-29  Roland McGrath  <roland@frob.com>
1658
1659         * include/libc-symbols.h (link_warning): Use `unused' attribute.
1660
1661 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
1662
1663         * sysdeps/generic/tls.h: Describe what must be defined.
1664
1665         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
1666         glob_in_dir [PR libc/3385].
1667         * posix/globtest.sh: Add test case.
1668
1669         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
1670         //TRANSLIT twice.
1671
1672 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
1673
1674         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
1675         _internal symbol handling.
1676         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
1677
1678 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
1679
1680         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
1681         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
1682
1683 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
1684
1685         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
1686         not _LIBC and RE_ENABLE_I18N.
1687         (build_range_exp): Implement for not _LIBC.
1688         (build_collating_symbol): Likewise.
1689         (parse_bracket_exp): Unify redundant error handlings.
1690         Don't erase mbcset for non matching list in multibyte envs.
1691         (build_word_op): Add '_' to matching list for \w operator.
1692         * posix/regex_internal.c (re_string_construct): Invoke
1693         build_upper_buffer in case of not RE_ENABLE_I18N.
1694         (re_string_reconstruct): Don't touch cur_state in case of not
1695         RE_ENABLE_I18N.
1696         * posix/regex_internal.h (attribute_hidden): New macro in case of
1697         not _LIBC.
1698         (re_charset_t): Define range_starts/ends in case of not _LIBC.
1699         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
1700         RE_ENABLE_I18N.
1701         (transit_state_mb): Likewise.
1702         (check_node_accept_bytes): Implement the code evaluating range
1703         expression in case of not _LIBC.
1704         (find_collation_sequence_value): Hide in case of not _LIBC.
1705
1706 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
1707
1708         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
1709         i386/semctl.c.
1710         (__old_semctl, __new_semctl): Only use va_arg if the argument will
1711         be used.
1712
1713 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
1714
1715         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
1716
1717         * sysdeps/ia64/strncpy.S: Fix recovery code.
1718         Patch by David Mosberger <davidm@hpl.hp.com>.
1719
1720 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
1721
1722         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
1723         GLIBC_2.2.6.
1724
1725 2002-04-14  Bruno Haible  <bruno@clisp.org>
1726
1727         * posix/regex.c (re_max_failures): Add back symbol for binary
1728         compatibility.
1729
1730 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
1731
1732         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
1733         of buffer building functions.
1734         * posix/regex_internal.c (re_string_allocate): New function.
1735         (re_string_realloc_buffers): New function.
1736         (re_string_skip_chars): New function.
1737         (re_string_reconstruct): New function.
1738         (re_string_construct): Adapt it to new interface of buffer building
1739         functions.
1740         (re_string_construct_common): Likewise.
1741         (build_wcs_buffer): Likewise.
1742         (build_wcs_upper_buffer): Likewise.
1743         (build_upper_buffer): Likewise.
1744         (re_string_translate_buffer): Likewise.
1745         (re_string_context_at): Adapt it to variable length buffers.
1746         * posix/regex_internal.h (re_string_t): Add new fields to handle
1747         variable length buffers.
1748         (re_match_context_t): Likewise.
1749         * posix/regexec.c (re_search_internal): Adapt it to new interface
1750         of re_string_t and re_match_context_t.
1751         (acquire_init_state_context): Likewise.
1752         (check_matching): Likewise.
1753         (check_halt_state_context): Likewise.
1754         (proceed_next_node): Likewise.
1755         (set_regs): Likewise.
1756         (sift_states_backward): Likewise.
1757         (clean_state_log_if_need): Likewise.
1758         (sift_states_iter_mb): Likewise.
1759         (sift_states_iter_bkref): Likewise.
1760         (add_epsilon_backreference): Likewise.
1761         (transit_state): Likewise.
1762         (transit_state_sb): Likewise.
1763         (transit_state_mb): Likewise.
1764         (transit_state_bkref): Likewise.
1765         (transit_state_bkref_loop): Likewise.
1766         (check_node_accept): Likewise.
1767         (match_ctx_init): Likewise.
1768         (extend_buffers): New function.
1769
1770 2002-04-21  Bruno Haible  <bruno@clisp.org>
1771
1772         * iconvdata/tst-table.sh: For the second check, use the truncated
1773         GB18030 charmap table, like for the first check.
1774
1775 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
1776
1777         * elf/dl-load.c (open_verify): Correct __lseek parameters.
1778         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
1779
1780 2002-04-23  H.J. Lu  <hjl@gnu.org>
1781
1782         * include/math.h (isfinite): Fix a typo.
1783
1784 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
1785
1786         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
1787         which is created by the test suite.
1788
1789 2002-04-20  Bruno Haible  <bruno@clisp.org>
1790
1791         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
1792         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
1793
1794 2002-04-20  Bruno Haible  <bruno@clisp.org>
1795
1796         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
1797         to avoid gcc warning.
1798
1799 2002-04-20  Bruno Haible  <bruno@clisp.org>
1800
1801         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
1802         of data->__statep->__count.
1803
1804 2002-04-20  Bruno Haible  <bruno@clisp.org>
1805
1806         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
1807         tag characters.
1808         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
1809
1810 2002-04-24  Roland McGrath  <roland@frob.com>
1811
1812         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
1813         use END macro instead of our own .end directive.
1814         Use `callsys' insn mnemonic instead of `call_pal'.
1815
1816         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
1817
1818         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
1819         macro; we need this for Hurd.
1820
1821         Log entry was missing for 2002/03/24 commit of rev 1.8,
1822         goes with 2002-03-17 changes.
1823         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
1824         (sysdep_routines): Append ioperm here.
1825         (sysdep_headers): Append sys/io.h here.
1826
1827 2002-04-23  Roland McGrath  <roland@frob.com>
1828
1829         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
1830         * sysdeps/mach/hurd/sendto.c: Likewise.
1831         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
1832         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
1833         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
1834
1835 2002-04-22  Roland McGrath  <roland@frob.com>
1836
1837         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
1838         failure from i386_io_perm_* RPCs to ENOSYS.
1839
1840 2002-04-22  Andreas Jaeger  <aj@suse.de>
1841
1842         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
1843
1844         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
1845
1846         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
1847         register instead of destroying %rbx.
1848
1849 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
1850
1851         * string/string.h: Declare strerror_r also for XPG6.
1852
1853 2002-04-19  Roland McGrath  <roland@frob.com>
1854
1855         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
1856
1857 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
1858
1859         * Makefile: Add handling of xtests and xcheck targets.
1860         * MakeTAGS: Likewise.
1861         * Makeconfig: Likewise.
1862         * Makerules: Likewise.
1863         * Rules: Likewise.
1864         * manual/Makefile: Likewise.
1865         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
1866         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
1867
1868 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
1869
1870         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
1871         authnone_private_s.
1872         * sunrpc/auth_none.c: Include bits/libc-lock.h.
1873         Delete #ifdef _RPC_THREAD_SAFE_ block.
1874         (authnone_private): Make a struct, not a pointer to struct.
1875         (authnone_private_guard): New once-control variable.
1876         (authnone_create_once): New function, split out of
1877         authnone_create.  No need to allocate memory.
1878         (authnone_create): Just call authnone_create_once via
1879         __libc_once, then return &authnone_private->no_client.
1880         (authnone_marshal): Access private data via CLIENT argument,
1881         not authnone_private pointer.
1882         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
1883         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
1884         authnone_private_s.
1885
1886 2002-04-12  H.J. Lu  <hjl@gnu.org>
1887
1888         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
1889
1890 2002-04-18  Bruno Haible  <bruno@clisp.org>
1891
1892         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
1893         FROM_DIRECTION): Make the FROM direction stateless.
1894         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
1895         FROM_DIRECTION): Likewise.
1896
1897 2002-04-15  Bruno Haible  <bruno@clisp.org>
1898
1899         * iconvdata/JISX0213.TXT: New file.
1900         * iconvdata/jisx0213.h: New file.
1901         * iconvdata/jisx0213.c: New file.
1902         * iconvdata/euc-jisx0213.c: New file.
1903         * iconvdata/shift_jisx0213.c: New file.
1904         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
1905         * iconvdata/EUC-JISX0213.precomposed: New file.
1906         * iconvdata/SHIFT_JISX0213.precomposed: New file.
1907         * iconvdata/SHIFT_JISX0213.irreversible: New file.
1908         * iconvdata/tst-table-to.c (main): Make it work for encodings for
1909         which the "to" direction is stateful.
1910         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
1911         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
1912         SHIFT_JISX0213.
1913         (libJISX0213-routines): New variable.
1914         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
1915         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
1916         (LDFLAGS-libJISX0213.so): New variable.
1917         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
1918         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
1919         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
1920
1921 2002-04-15  Bruno Haible  <bruno@clisp.org>
1922
1923         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
1924         uint32_t.  Update to Unicode 3.2.
1925         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
1926         (BODY for TO_LOOP): Handle the ASCII range specially.
1927         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
1928         * iconvdata/testdata/BIG5HKSCS: Remove a character.
1929         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
1930
1931 2002-04-15  Bruno Haible  <bruno@clisp.org>
1932
1933         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
1934         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
1935
1936 2002-04-15  Bruno Haible  <bruno@clisp.org>
1937
1938         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
1939         (ucs4_to_cns11643): Update.
1940         * iconvdata/cns11643.c: Update to Unicode 3.2.
1941         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
1942         __cns11643_from_ucs4p2_tab): Regenerated.
1943         (__cns11643_from_ucs4p2c_tab): New array.
1944         * iconvdata/cvs11643l1.c: Update comments.
1945         * iconvdata/EUC-TW.irreversible: Remove two entries.
1946
1947 2002-04-15  Bruno Haible  <bruno@clisp.org>
1948
1949         * locale/C-translit.h.in: Update to Unicode 3.2.
1950         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
1951         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
1952
1953 2002-04-15  Bruno Haible  <bruno@clisp.org>
1954
1955         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
1956         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
1957
1958 2002-04-15  Bruno Haible  <bruno@clisp.org>
1959
1960         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
1961         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
1962         always one byte, not 0 bytes in some cases and 2 bytes in others.
1963
1964         * iconvdata/tst-table-from.c (main): Correct the usage message.
1965
1966 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
1967
1968         * posix/regcomp.c (parse_expression): Fix incorrect error code.
1969         (parse_dup_op): Fix error handling like "a{}".
1970         (parse_bracket_exp): Add error handling.
1971         (fetch_number): Add error handling for "a{<very_large_number>}".
1972
1973 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
1974
1975         * posix/regcomp.c (parse_bracket_symbol): Add error handling
1976         in case that the symbol name is too long.
1977         (build_charclass): Handle [:lower:]/[:uppper:] correctly
1978         in case of REG_ICASE.
1979
1980 2002-04-19  Andreas Jaeger  <aj@suse.de>
1981
1982         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
1983         <hartvige@mips.com>.
1984
1985 2002-04-15  H.J. Lu  <hjl@gnu.org>
1986
1987         * include/math.h (__finitel_internal): Declare only if
1988         __NO_LONG_DOUBLE_MATH is not defined.
1989         (__isinfl_internal): Likewise.
1990         (__isnanl_internal): Likewise.
1991
1992         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
1993         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1994         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1995         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1996         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1997         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1998         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1999
2000         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
2001         __fcntl_internal.
2002
2003         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
2004         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
2005
2006 2002-04-15  Bruno Haible  <bruno@clisp.org>
2007
2008         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
2009         (BODY for TO_LOOP): Likewise.
2010         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
2011         * iconvdata/tst-table.sh: Add support for encodings which contain
2012         precomposed Unicode characters, known to the iconv converter in both
2013         directions but not listed in the charmap.
2014         * iconvdata/IBM856.irreversible: New file.
2015         * iconvdata/IBM922.irreversible: New file.
2016         * iconvdata/IBM1132.irreversible: New file.
2017         * iconvdata/IBM1133.irreversible: New file.
2018         * iconvdata/IBM1160.irreversible: New file.
2019         * iconvdata/IBM1161.irreversible: New file.
2020         * iconvdata/IBM1163.irreversible: New file.
2021         * iconvdata/IBM1164.irreversible: New file.
2022         * iconvdata/ARMSCII-8.irreversible: New file.
2023         * iconvdata/TCVN5712-1.precomposed: New file.
2024         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
2025         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
2026         ARMSCII-8, TCVN5712-1.
2027         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
2028         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
2029         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
2030         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
2031
2032 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
2033
2034         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
2035         for EVENING69.  Include offsets in TZ environment variable.
2036
2037 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
2038
2039         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
2040         avoid compiler warnings.
2041
2042         * locale/programs/localedef.c (main): Always call
2043         construct_output_path.
2044
2045         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
2046
2047         * locale/programs/locfile.c (to_archive): New variable.  To collect
2048         data which has to be added to the locale archive.
2049         (write_all_categories): Take new third parameter with locale name.
2050         Unless no_archive flag set add new locale data to the archive
2051         (write_locale_data): Unless no-archive flag set store generated data
2052         in to_archive data structure instead of generation output file.
2053         Add new parameter with locale category index.
2054         * locale/programs/locfile.h: Add new parameters in declaractions of
2055         write_all_categories and write_locale_data.
2056         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
2057         --add-to-archive, and --delete-from-archive options.  Pass extra
2058         parameter to write_all_categories.
2059         * locale/programs/localedef.h: Add prototypes for functions in
2060         locarchive.c.
2061         * locale/locarchive.h: New file.
2062         * locale/programs/locarchive.c: New file.
2063         * locale/Makefile (distribute): Add programs/locarchive.c and
2064         locarchive.h.
2065         (localedef-modules): Add md5 and locarchive.
2066         Add vpath to crypt subdir for md5.c.
2067
2068         * locale/programs/ld-address.c: Pass locale category ID as new second
2069         parameter to write_locale_data.
2070         * locale/programs/ld-collate.c: Likewise.
2071         * locale/programs/ld-ctype.c: Likewise.
2072         * locale/programs/ld-identification.c: Likewise.
2073         * locale/programs/ld-measurement.c: Likewise.
2074         * locale/programs/ld-messages.c: Likewise.
2075         * locale/programs/ld-monetary.c: Likewise.
2076         * locale/programs/ld-name.c: Likewise.
2077         * locale/programs/ld-numeric.c: Likewise.
2078         * locale/programs/ld-paper.c: Likewise.
2079         * locale/programs/ld-telephone.c: Likewise.
2080         * locale/programs/ld-time.c: Likewise.
2081
2082         * locale/simple-hash.c: Move compute_hashval function from here...
2083         * locale/hashval.h: ...to here.  New file.
2084         * locale/simple-hash.h: Add prototype for compute_hashval.
2085
2086         * include/libintl.h: Minor cleanups.
2087
2088 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
2089
2090         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
2091
2092 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
2093
2094         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
2095
2096 2002-04-14  Bruno Haible  <bruno@clisp.org>
2097
2098         * locale/programs/charmap.c (charmap_read): Don't access result if
2099         result == NULL.
2100
2101 2002-02-17  Andreas Schwab  <schwab@suse.de>
2102
2103         * elf/reldep7.c: New file.
2104         * elf/reldep7mod1.c: New file.
2105         * elf/reldep7mod2.c: New file.
2106         * elf/Makefile: Add rules to build and run reldep7.
2107
2108 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
2109
2110         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
2111         the end of the function.  Pass original flags to recursive call if
2112         add_dependency failed.
2113         (_dl_lookup_versioned_symbol): Likewise.
2114
2115 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
2116
2117         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
2118         early, but check whether it overflowed afterwards.
2119         * time/tst-mktime.c (main): Add new tests.
2120
2121 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
2122
2123         * debug/xtrace.sh: Fix program name in help message.
2124         Patch by Roger Luethi <rl@hellgate.ch>.
2125
2126         * include/sys/stat.h: Add prototypes for __lxstat_internal and
2127         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
2128         NOT_IN_libc.
2129         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
2130         * sysdeps/mach/hurd/lxstat.c: Likewise.
2131         * sysdeps/unix/common/lxstat.c: Likewise.
2132         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
2133         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
2134         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
2135         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
2136         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
2137         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
2138         * sysdeps/mach/hurd/lxstat64.c: Likewise.
2139         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
2140         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
2141
2142         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
2143         prototypes.  Add __mbrlen and __mbrtowc macros.
2144         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
2145         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
2146
2147         * include/unistd.h: Add prototype for __write_internal and add
2148         __libc_write macro is SHARED.
2149         * sysdeps/generic/write.c: Use INTDEF for __write.
2150         * sysdeps/mach/hurd/write.c: Likewise.
2151         * sysdeps/unix/sysv/aix/write.c: Likewise.
2152         * sysdeps/unix/syscalls.list: Add __libc_write alias.
2153
2154         * assert/assert.c: Replace STR_N_SIZE with something usable in
2155         macro arguments.
2156         * assert/assert-perr.c: Likewise.
2157
2158         * include/sys/socket.h: Declare __libc_sa_len_internal and define
2159         SA_LEN macro to use it if not NOT_IN_libc.
2160         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
2161
2162         * include/fcntl.h: Declare __open_internal and define __open and
2163         __libc_open macros if not NOT_IN_libc.
2164         * sysdeps/generic/open.c: Use INTDEF for __open.
2165         * sysdeps/mach/hurd/open.c: Likewise.
2166         * sysdeps/unix/sysv/aix/open.c: Likewise.
2167         * sysdeps/unix/syscalls.list: Add __open_internal alias.
2168
2169         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
2170         has correct number.
2171
2172         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
2173         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
2174         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
2175         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
2176
2177         * include/wctype.h: Declare __iswalpha_l_internal,
2178         __iswdigit_l_internal, __iswspace_l_internal,
2179         __iswxdigit_l_internal, and __iswctype_internal.  Define
2180         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
2181         __iswxdigit_l macros if not NOT_IN_libc.
2182         * wctype/iswctype.c: Use INTDEF for __iswctype.
2183         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
2184
2185         * include/math.h: Declare __isinf_internal, __isinfl_internal,
2186         __isnan_internal, and __isnanl_internal.
2187         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
2188         __isnan, and __isnanl.
2189         * stdio-common/printf_size.c: Likewise.
2190         * sysdeps/generic/printf_fphex.c: Likewise.
2191         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
2192         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
2193         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
2194         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
2195         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
2196         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
2197         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
2198         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
2199         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
2200         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
2201         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
2202         * sysdeps/m68k/s_isinfl.c: Likewise.
2203         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
2204         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
2205
2206         * include/sys/time.h: Declare __gettimeofday_internal and define
2207         __gettimeofday macro if not NOT_IN_libc.
2208         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
2209         * sysdeps/mach/gettimeofday.c: Likewise.
2210         * sysdeps/posix/gettimeofday.c: Likewise.
2211         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
2212         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
2213         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
2214         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
2215
2216         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
2217         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
2218         Remove __lstat and __fstat inline functions.
2219         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
2220         * sysdeps/mach/hurd/fxstat.c: Likewise.
2221         * sysdeps/unix/fxstat.c: Likewise.
2222         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
2223         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
2224         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
2225         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
2226         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
2227         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
2228         * sysdeps/mach/hurd/fxstat64.c: Likewise.
2229         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
2230         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
2231
2232         * include/unistd.h: Declare __getpid_internal and define
2233         __getpid macro if not NOT_IN_libc.
2234         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
2235         * sysdeps/generic/getpid.c: Likewise.
2236         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
2237         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
2238
2239         * include/unistd.h: Declare __getpgid_internal and define
2240         __getpgid macro if not NOT_IN_libc.
2241         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
2242         * sysdeps/mach/hurd/getpgid.c: Likewise.
2243         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
2244         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
2245         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
2246         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
2247
2248         * include/unistd.h: Declare __getpagesize_internal and define
2249         __getpagesize macro if not NOT_IN_libc.
2250         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
2251         __getpagesize.
2252         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
2253         * sysdeps/mach/getpagesize.c: Likewise.
2254         * sysdeps/posix/getpagesize.c: Likewise.
2255         * sysdeps/unix/getpagesize.c: Likewise.
2256         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
2257         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
2258         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
2259         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
2260
2261 2002-04-13  Andreas Jaeger  <aj@suse.de>
2262
2263         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
2264         as clobber to reduce register pressure.
2265         (__strpbrk_cg): Likewise.
2266         (__mempcpy_by4): Likewise.
2267         (__strstr_cg): Likewise.
2268         Add prototype for __memrchr.
2269
2270 2002-04-13  Andreas Schwab  <schwab@suse.de>
2271
2272         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
2273         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
2274         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
2275
2276 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
2277
2278         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
2279         check whether the caller prefers getting the most recent version of
2280         a symbol of the earliest version.
2281         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
2282         _dl_do_lookup to also take the new parameter and pass it on.
2283         Change 'explicit' parameter of _dl_lookup_symbol and
2284         _dl_lookup_versioned_symbol to flags.  Adjust tests.
2285         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
2286         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
2287         _dl_lookup_versioned_symbol.
2288         * elf/dl-reloc.c: Likewise.
2289         * elf/dl-runtime.c: Likewise.
2290         * elf/dl-sym.c: Likewise.
2291         * sysdeps/mips/dl-machine.h: Likewise.
2292
2293 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
2294
2295         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
2296         in a token.
2297         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
2298
2299 2002-04-10  Andreas Jaeger  <aj@suse.de>
2300
2301         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
2302
2303         * include/argz.h: Remove extra char from last patch.
2304
2305 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
2306
2307         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
2308         * sysdeps/unix/sysv/aix/chown.c: Likewise.
2309         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
2310         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
2311         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
2312         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
2313         __chown_internal.
2314         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
2315
2316         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
2317         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
2318         * intl/ngettext.c: Likewise.
2319
2320         * include/sys/socket.h: Declare __connect_internal and define
2321         __connect macro if not NOT_IN_libc.
2322         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
2323         * sysdeps/unix/sysv/aix/connect.c: Likewise.
2324         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
2325
2326         * include/unistd.h: Declare __close_internal and define __close macro
2327         if not NOT_IN_libc.
2328         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
2329         WJUMP3): Add extra parenthesis to avoid expanding element names with
2330         macors like __close.
2331         * sysdeps/unix/syscalls.list: Add __close_internal alias.
2332
2333         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
2334         if not NOT_IN_libc.
2335         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
2336         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
2337         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
2338
2339         * include/unistd.h: Declare __fork_internal and define __fork macro
2340         if not NOT_IN_libc.
2341         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
2342         * sysdeps/unix/sysv/aix/fork.c: Likewise.
2343         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
2344
2345         * include/stdio_ext.h: Declare __fsetlocking_internal and define
2346         __fsetlocking macro to use it if not NOT_IN_libc.
2347         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
2348
2349         * libio/__fbufsize.c: Correct copyright.
2350         * libio/__flbf.c: Likewise.
2351         * libio/__fpending.c: Likewise.
2352         * libio/__fpurge.c: Likewise.
2353         * libio/__freadable.c: Likewise.
2354         * libio/__freading.c: Likewise.
2355         * libio/__fsetlocking.c: Likewise.
2356         * libio/__fwritable.c: Likewise.
2357         * libio/__fwriting.c: Likewise.
2358
2359         * include/stdio.h: Declare __asprintf_internal and define __asprintf
2360         macro to use it if not NOT_IN_libc.
2361         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
2362
2363         * include/mntent.h: Declare __setmntent_internal,
2364         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
2365         __getmntent_r, and __endmntent macros to use these functions if not
2366         NOT_IN_libc.
2367         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
2368         __endmntent.
2369
2370         * include/math.h: Declare __finite_internal, __finitef_internal, and
2371         __finitel_internal.  Redefine isfinite macro if in libc or libm using
2372         these functions.
2373         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
2374         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
2375         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
2376         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
2377         * sysdeps/i386/fpu/s_finitef.S: Likewise.
2378         * sysdeps/i386/fpu/s_finitel.S: Likewise.
2379         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
2380         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
2381         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
2382         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
2383
2384         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
2385         to use this function if not NOT_IN_libc.
2386         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
2387         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
2388         * sysdeps/mach/hurd/fcntl.c: Likewise.
2389         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
2390         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
2391
2392         * include/argz.h: Declare __argz_count_internal and
2393         __argz_stringify_internal.
2394         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
2395         __argz_stringify.
2396         * string/argz-count.c: Use INTDEF for __argz_count.
2397         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
2398
2399         * include/stdlib.h: Declare __cxa_atexit_internal and define
2400         __cxa_atexit macro if not NOT_IN_libc.
2401         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
2402         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
2403
2404         * assert/assert.c: Use INTDEF for __assert_fail.
2405         * assert/__assert.c: Use INTUSE for call to __assert_fail.
2406         * include/assert.h: Declare __assert_fail_internal.
2407
2408         * extra-lib.mk: Mark assignment to lib with override.
2409
2410 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
2411
2412         * Makerules: Use cppflags-iterator.mk to add defines for all test
2413         source files.
2414
2415 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2416
2417         * elf/elf.h: Define R_SH_TLS_xxx macros.
2418         * elf/rtld.c: Remove an extra parenthesis.
2419         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
2420         TLS_GD macros.
2421         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
2422         * sysdeps/sh/dl-lookupcfg.h: New file.
2423         * sysdeps/sh/dl-tls.h: New file.
2424         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
2425         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
2426         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
2427         R_SH_TLS_TPOFF32 relocations.
2428
2429 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
2430
2431         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
2432         of NOT_IN_LIBC.
2433         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
2434         * include/stdlib.h: Likewise.
2435
2436 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
2437
2438         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
2439         instead of _RTLD_LOCAL.
2440         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
2441         * include/unistd.h: Likewise.
2442         * sysdeps/generic/ldsodefs.h: Likewise.
2443
2444         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
2445         if in libc or ld.so.
2446
2447 2002-04-08  Andreas Jaeger  <aj@suse.de>
2448
2449         * elf/cache.c (print_entry): Support x86-64.
2450
2451 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
2452
2453         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
2454         with one accessing the locale data structures directly.
2455         * stdio-common/printf-prs.c: Include localeinfo.h for new
2456         MB_CUR_MAX definition.
2457
2458         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
2459         is the name of the source file without extension.
2460         * Makefile (distribute): Add cppflags-iterator.mk.
2461         * cppflags-iterator.mk: New file.
2462         * extra-lib.mk: For the sources of the library run
2463         cppflags-iterator.mk.
2464
2465         * include/libintl.h: Declare __dcgettext_internal and
2466         _libc_intl_domainname_internal.  Define __dcgettext using these
2467         two symbols if used in libc itself.
2468         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
2469         _libc_intl_domainname_internal.
2470         * argp/argp-parse.c: Likewise.
2471         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
2472         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
2473         * intl/gettext.c: Likewise.
2474         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
2475         alias.
2476         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
2477         __dcgettext.
2478         * posix/regex_internal.c (gettext): Likewise.
2479
2480 2002-04-08  Andreas Jaeger  <aj@suse.de>
2481
2482         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
2483
2484         * sysdeps/x86_64/fpu/s_llrint.S: New.
2485         * sysdeps/x86_64/fpu/s_llrintf.S: New.
2486         * sysdeps/x86_64/fpu/s_llrintl.S: New.
2487         * sysdeps/x86_64/fpu/s_lrint.S: New.
2488         * sysdeps/x86_64/fpu/s_lrintf.S: New
2489         * sysdeps/x86_64/fpu/s_lrintl.S: New.
2490
2491 2002-04-08  Roland McGrath  <roland@frob.com>
2492
2493         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
2494         widening __hurd_fail value.
2495
2496 2002-04-07  Roland McGrath  <roland@frob.com>
2497
2498         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
2499         <mach/machine/alpha_instruction.h>.
2500         (_hurd_setup_sighandler): Take proper arguments for current decls.
2501         Update code to use _hurdsig_catch_fault.
2502         Use `callsys' instruction instead of `call_pal'.
2503         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
2504
2505         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
2506         (ALIGN, at, AT, fp): New macros.
2507
2508 2002-04-06  Roland McGrath  <roland@frob.com>
2509
2510         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
2511
2512         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
2513         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
2514
2515         * sysdeps/mach/hurd/bind.c: Use prototype definition.
2516         * sysdeps/mach/hurd/connect.c: Likewise.
2517         * sysdeps/mach/hurd/getsockopt.c: Likewise.
2518         * sysdeps/mach/hurd/setsockopt.c: Likewise.
2519
2520         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
2521         __msg_sig_post RPC.
2522
2523         * hurd/catch-exc.c: Use integer_t instead of int.
2524         * hurd/hurdfault.c: Likewise.
2525
2526         * sysdeps/mach/hurd/alpha/exc2signal.c
2527         (_hurd_exception2signal): Rewritten.
2528         * sysdeps/mach/hurd/alpha/longjmp-ts.c
2529         (_hurd_longjmp_thread_state): Rewritten.
2530
2531 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
2532
2533         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
2534         DB_LOOKUP_FCT prototype.
2535         * nss/getXXent_r.c: Likewise.
2536         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
2537         * inet/getaliasname_r.c: Likewise.
2538         * inet/getnetbyad_r.c: Likewise.
2539         * inet/getnetbynm_r.c: Likewise.
2540         * inet/getnetent_r.c: Likewise.
2541         * inet/getproto_r.c: Likewise.
2542         * inet/getprtent_r.c: Likewise.
2543         * inet/getprtname_r.c: Likewise.
2544         * inet/getrpcbyname_r.c: Likewise.
2545         * inet/getrpcbynumber_r.c: Likewise.
2546         * inet/getrpcent_r.c: Likewise.
2547         * inet/getservent_r.c: Likewise.
2548         * inet/getsrvbynm_r.c: Likewise.
2549         * inet/getsrvbypt_r.c: Likewise.
2550         * shadow/getspent_r.c: Likewise.
2551         * shadow/getspnam_r.c: Likewise.
2552
2553         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
2554
2555         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
2556         Use i686-friendly PIC code.
2557         * sysdeps/i386/elf/setjmp.S: Likewise.
2558
2559         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
2560
2561         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
2562         list.
2563         * elf/Versions: Remove it here.
2564
2565 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
2566
2567         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
2568         direction.  Reported by H . J . Lu <hjl@lucon.org>.
2569
2570 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
2571
2572         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
2573         test just before the test runs.
2574         * intl/tst-translit.sh: Likewise.
2575         * intl/tst-codeset.sh: Likewise.
2576
2577         * timezone/zic.c: Update from tzcode2002c.
2578         * timezone/asia: Update from tzdata2002c.
2579         * timezone/backward: Likewise.
2580         * timezone/europe: Likewise.
2581         * timezone/northamerica: Likewise.
2582         * timezone/northamerica: Likewise.
2583         * timezone/northamerica: Likewise.
2584         * timezone/southamerica: Likewise.
2585         * timezone/zone.tab: Likewise.
2586
2587 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
2588
2589         * sysdeps/generic/brk.c (__curbrk): Declare.
2590         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
2591         * sysdeps/generic/dl-sbrk.c: Likewise.
2592         * sysdeps/unix/arm/dl-brk.S: New file.
2593         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
2594         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
2595         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
2596         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
2597         * sysdeps/unix/i386/dl-brk.S: New file.
2598         * sysdeps/unix/mips/dl-brk.S: New file.
2599         * sysdeps/unix/sparc/dl-brk.S: New file.
2600         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
2601         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
2602         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
2603         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
2604
2605 2002-04-03  Andreas Schwab  <schwab@suse.de>
2606
2607         * Makefile (headers): Add gnu/lib-names.h here instead of
2608         install-others.
2609         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
2610         installation rule.
2611         (install-headers): Add dependency on install-headers-nosubdir.
2612         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
2613         instead of install-others.
2614         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
2615         installation rule.
2616
2617 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
2618
2619         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
2620         Reported by Sam Roberts <sroberts@uniserve.com>.
2621
2622 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
2623
2624         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
2625         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
2626         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
2627         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
2628
2629 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
2630
2631         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
2632         (RTLD_START): Ditto.
2633         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
2634         dependency violation.
2635
2636 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
2637
2638         * time/mktime.c (__mktime_internal): Move check for year < 70 below
2639         all variable declarations.
2640
2641 2002-04-04  Andreas Schwab  <schwab@suse.de>
2642
2643         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
2644
2645 2002-04-04  Andreas Jaeger  <aj@suse.de>
2646
2647         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
2648         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
2649
2650         * sysdeps/x86_64/fpu/s_fabs.c: New file.
2651         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
2652         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
2653
2654         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
2655
2656         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
2657
2658         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
2659         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
2660
2661         * configure.in: Handle all mips entries the same.
2662
2663         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
2664         * sysdeps/mips/mips3/*: Likewise.
2665         * sysdeps/mips/p40/bits/endian.h: Likewise.
2666
2667 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
2668
2669         * misc/dirname.c (dirname): Ignore trailing slashes at end of
2670         non-null result [PR libc/2600].
2671
2672         * misc/tst-dirname.c: Add more tests.
2673
2674 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
2675
2676         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
2677         define a code_set_name provide one based on the filename.
2678
2679         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
2680
2681 2001-12-28  Andreas Jaeger  <aj@suse.de>
2682
2683         * time/mktime.c (__mktime_internal): Check for year < 70
2684         [PR libc/2738].
2685
2686 2002-04-03  Andreas Jaeger  <aj@suse.de>
2687
2688         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
2689         shmat.
2690         Reported by Andi Kleen <ak@suse.de>.
2691
2692 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
2693
2694         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
2695         * sysdeps/generic/w_lgammaf.c: Likewise.
2696         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
2697
2698         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
2699         Adjust for new output format of the backtrace functions.
2700
2701         * misc/syslog.c (vsyslog): Only use cleanup handler if
2702         _LIBC_REENTRANT is defined [PR libc/2924].
2703
2704         * libio/Makefile (tests): Add bug-ungetwc2.
2705         * libio/bug-ungetwc2.c: New file.
2706
2707         * manual/install.texi: Typographical and grammatical cleanup.
2708         Patch by Dennis Grace <dgrace@us.ibm.com>.
2709
2710         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
2711         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
2712
2713         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
2714         always "&".  Adjust callers.
2715         Add "_" prefix to several generated definitions.
2716         Patch by paul@serice.net [PR libc/3158].
2717
2718 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
2719
2720         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
2721         size of _dl_arm_cap_flags.
2722         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
2723
2724         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
2725         Define as 8.
2726
2727 2002-03-22  H.J. Lu  <hjl@gnu.org>
2728
2729         * scripts/firstversions.awk: Check the first version.
2730
2731 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
2732
2733         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
2734         dependencies must be stable to work correctly.
2735         Reported by martin.lubich@datacon.at.
2736
2737         * libio/bug-ungetwc1.c: New file.
2738         * libio/Makefile (tests): Add bug-ungetwc1.
2739
2740         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
2741         if stream was last used for writing.
2742
2743         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
2744         number [PR libc/3111].
2745
2746         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
2747         to ...
2748         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
2749
2750 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
2751
2752         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
2753         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
2754         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
2755         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
2756         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
2757
2758 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
2759
2760         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
2761         dynamic tags.
2762
2763 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
2764
2765         * sysdeps/i386/fpu/s_fabs.S: New file.
2766         * sysdeps/i386/fpu/s_fabsf.S: New file.
2767         * sysdeps/i386/fpu/s_fabsl.S: New file.
2768         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
2769         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
2770         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
2771
2772 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
2773
2774         * rt/tst-shm.c (do_test): Add one more test for size of shared
2775         memory object.
2776
2777 2002-03-29  Wolfram Gloger  <wg@malloc.de>
2778
2779         * malloc/malloc.c: Add short description and prototypes for
2780         malloc_get_state, malloc_set_state and posix_memalign, for
2781         consistency and to avoid warnings with -Wstrict-prototypes.
2782         Reported by Andreas Jaeger <aj@suse.de>.
2783
2784 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
2785
2786         * po/gl.po: Update from translation team.
2787
2788 2002-03-31  Roland McGrath  <roland@frob.com>
2789
2790         * hurd/hurdselect.c (_hurd_select): Fix
2791         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
2792         Use a union rather than casts to compare mach_msg_type_t as int.
2793
2794 2002-03-25  Roland McGrath  <roland@frob.com>
2795
2796         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
2797         check off the end of NAME when it's shorter than 2 chars.
2798         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
2799
2800 2002-03-17  Roland McGrath  <roland@frob.com>
2801
2802         * sysdeps/mach/hurd/i386/sys/io.h: New file.
2803         * sysdeps/mach/hurd/i386/ioperm.c: New file.
2804         * sysdeps/mach/hurd/i386/Dist: Add them.
2805         * sysdeps/mach/hurd/i386/Versions
2806         (libc: GLIBC_2.2.6): New set, add ioperm.
2807         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
2808         (mach_interface_list): Check for mach_i386.defs.
2809         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
2810         * sysdeps/mach/configure: Regenerated.
2811
2812 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
2813
2814         * po/fr.po: Update from translation team.
2815
2816 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2817
2818         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
2819         getpriority from syscalls list.
2820
2821 2002-03-28  Andreas Jaeger  <aj@suse.de>
2822
2823         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
2824         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
2825         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
2826         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
2827
2828 2002-03-27  Andreas Jaeger  <aj@suse.de>
2829
2830         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2831         sigcontext): Follow further kernel change.
2832
2833         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
2834         kernel change.
2835
2836         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
2837         Change for struct sigcontext change.
2838
2839         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2840         Follow changes in struct sigcontext.
2841
2842         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
2843         sysycall, use wrapper instead.
2844
2845 2002-03-26  Andreas Jaeger  <aj@suse.de>
2846
2847         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
2848         read and write accesses as detailed as possible.
2849         (__memcpy_by2): Likewise.
2850         (__memcpy_g): Likewise.
2851         (memmove): Likewise.
2852         (memcmp): Likewise.
2853         (__memset_ccn_by4): Likewise.
2854         (__memset_ccn_by2): Likewise.
2855         (__memset_gcn_by4): Likewise.
2856         (__memset_gcn_by2): Likewise.
2857         (memchr): Likewise.
2858         (__memrchr): Likewise.
2859         (rawmemchr): Likewise.
2860         (__strlen_g): Likewise.
2861         (__strcpy_g): Likewise.
2862         (__mempcpy_by4): Likewise.
2863         (__mempcpy_by2): Likewise.
2864         (__mempcpy_byn): Likewise.
2865         (__stpcpy_g): Likewise.
2866         (__strncpy_by4): Likewise.
2867         (__strncpy_by2): Likewise.
2868         (__strncpy_byn): Likewise.
2869         (__strncpy_gg): Likewise.
2870         (__strcat_c): Likewise.
2871         (__strcat_g): Likewise.
2872         (__strncat_g): Likewise.
2873         (__strcmp_gg): Likewise.
2874         (__strncmp_g): Likewise.
2875         (__strchr_c): Likewise.
2876         (__strchr_g): Likewise.
2877         (__strchrnul_c): Likewise.
2878         (__strchrnul_g): Likewise.
2879         (__strrchr_c): Likewise.
2880         (__strrchr_g): Likewise.
2881         (__strrchr_c): Likewise.
2882         (__strrchr_g): Likewise.
2883         (__strcspn_c1): Likewise.
2884         (__strcspn_cg): Likewise.
2885         (__strcspn_g): Likewise.
2886         (__strcspn_g): Likewise.
2887         (__strspn_c1): Likewise.
2888         (__strspn_cg): Likewise.
2889         (__strspn_g): Likewise.
2890         (__strspn_g): Likewise.
2891         (__strpbrk_cg): Likewise.
2892         (__strpbrk_g): Likewise.
2893         (__strstr_cg): Likewise.
2894         (__strstr_g): Likewise.
2895
2896         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
2897         Michal Ludvig <mludvig@suse.cz>.
2898
2899         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
2900         compatibilty, adjust for kernel changes.
2901
2902         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2903         sigcontext): Adjust for kernel changes.
2904
2905 2002-03-25  Andreas Jaeger  <aj@suse.de>
2906
2907         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
2908         little endian.
2909         Reported by Artur Zaprzala <zybi@talex.com.pl>.
2910
2911 2002-03-24  Andreas Jaeger  <aj@suse.de>
2912
2913         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
2914
2915         * stdio-common/tst-fdopen.c (main): Remove unused variable.
2916
2917         * iconv/tst-iconv3.c (main): Use correct printf strings.
2918
2919 2002-03-18  Roland McGrath  <roland@frob.com>
2920
2921         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
2922         (CMGROUP_MAX): New macro.
2923
2924 2002-03-23  Roland McGrath  <roland@frob.com>
2925
2926         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
2927         * sysdeps/posix/shm_unlink.c: Likewise.
2928
2929 2002-03-22  Roland McGrath  <roland@frob.com>
2930
2931         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
2932         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
2933         under --enable-libio.
2934         * sysdeps/mach/hurd/configure: Regenerated.
2935
2936 2002-03-23  Roland McGrath  <roland@frob.com>
2937
2938         * sysdeps/mach/hurd/i386/Makefile
2939         (sysdep_routines, shared-only-routines): Don't add framestate,
2940         reverting 2001-10-02 change.
2941         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
2942         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
2943         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
2944         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
2945         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
2946         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
2947         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
2948         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
2949         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
2950         Do it here instead, only if [$(unwind-find-fde) = yes].
2951
2952 2002-03-23  Andreas Jaeger  <aj@suse.de>
2953
2954         * signal/signal.h: Fix typo. Patch by Steve Kemp
2955         <skx@tardis.ed.ac.uk>.
2956
2957 2002-03-22  Andreas Jaeger  <aj@suse.de>
2958
2959         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
2960         getresuid.
2961
2962         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2963         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
2964         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
2965         user_fpregs_struct): Rename fwd.
2966
2967         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2968         Follow sigcontext changes.
2969
2970 2002-03-22  Andreas Jaeger  <aj@suse.de>
2971
2972         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
2973         changes for NaNs on MIPS.
2974         Patch by Hartvig Ekner <hartvige@mips.com>.
2975
2976 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
2977
2978         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
2979         Use realloc if too large.
2980         (addgrbyid): Likewise.
2981         * nscd/hstcache.c (addhstbyname): Likewise.
2982         (addhstbyaddr): Likewise.
2983         (addhstbynamev6): Likewise.
2984         (addhstbyaddrv6): Likewise.
2985         * nscd/pwdcache.c (addpwbyname): Likewise.
2986         (addpwbyuid): Likewise.
2987
2988 2002-03-21  Andreas Jaeger  <aj@suse.de>
2989
2990         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2991         _fpstate): Add separate struct for x86-64.
2992
2993         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
2994         user_fpregs_struct): Change member names to follow kernel.
2995
2996 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
2997
2998         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
2999         Correctly close the UDP connection right away [PR libc/3120].
3000
3001 2002-03-20  Andreas Jaeger  <aj@suse.de>
3002
3003         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
3004         user_fpregs_struct): Fix for changed kernel struct.
3005         (struct user_regs_struct): Likewise.
3006         (struct user): Likewise.
3007         Add 32-bit x86 compatibility.
3008
3009         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
3010
3011 2002-03-19  Andreas Jaeger  <aj@suse.de>
3012
3013         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
3014
3015 2002-03-18  Andreas Jaeger  <aj@suse.de>
3016
3017         * iconvdata/Makefile: Only run tests when shared libs are
3018         available.
3019
3020 2002-03-17  Andreas Jaeger  <aj@suse.de>
3021
3022         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
3023
3024         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
3025
3026         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
3027         bits.
3028
3029         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
3030         (CAUSE_SHIFT): New.
3031         Patch by Hartvig Ekner <hartvige@mips.com>.
3032
3033         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
3034         * sysdeps/generic/unwind-pe.h: Likewise.
3035
3036         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
3037         type to _IO_setb.
3038
3039         * libio/stdio.c (AL2): Define variant when visibility attribute is
3040         not supported.
3041
3042         * include/libc-symbols.h (_INTVARDEF): Define variant when
3043         visibility attribute is not supported.
3044
3045 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
3046
3047         * po/fr.po: Update from translation team.
3048
3049 2002-02-25  Bruno Haible  <bruno@clisp.org>
3050
3051         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
3052
3053 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
3054
3055         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
3056         buffers if _IO_file_attach failed.
3057
3058         * libio/fileops.c (_IO_file_open): Close file descriptor if
3059         _IO_SEEKOFF call failed.
3060
3061 2002-03-15  H.J. Lu  <hjl@gnu.org>
3062             Ulrich Drepper  <drepper@redhat.com>
3063
3064         * configure.in: Check for availability of
3065         init_array/fini_array/preinit_array handling in binutils.
3066         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
3067         * config.make.in (have-initfini-array): New variable.
3068
3069 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
3070
3071         * stdio-common/tst-printf.c (main): Comment out one test which
3072         checked the compiler's ability to fold floating-point constants
3073         but not really printf.
3074         (rfg3): Make s const.
3075         * stdio-common/tst-printf.sh: Adjust for removed test.
3076
3077         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
3078         internal function.  Adjust for internal_function calling convention.
3079         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
3080         as internal_function.
3081
3082         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
3083         hidden.
3084
3085         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
3086         declaration and definition.
3087         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
3088         declaration.
3089         * nss/getXXent_r.c: Likewise.
3090         * nss/nsswitch.h (db_lookup_function): Add internal_function to
3091         definition.
3092
3093         * include/time.h: Declare __localtime_r as hidden.
3094
3095         * include/aliases.h: Declare __getaliasent_r as hidden.
3096         * include/grp.h: Declare __getgrent_r as hidden.
3097         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
3098         __getservent_r, and __getprotoent_r as hidden.
3099         * include/pwd.h: Declare __getpwent_r as hidden.
3100         * include/shadow.h: Declare __getspent_r as hidden.
3101         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
3102
3103         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
3104         and __gconv_transliterate as hidden.
3105         Add internal_function to __gconv_get_path declaration.
3106         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
3107         definition.  Add attribute_hidden to __gconv_read_conf definition.
3108
3109 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
3110
3111         * elf/rtld.c: Declare _environ as hidden.
3112         * sysdeps/generic/dl-environ.c: Likewise.
3113         * sysdeps/generic/dl-sysdep.c: Likewise.
3114
3115         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
3116         _dl_mcount_internal as hidden.
3117
3118         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
3119         * sysdeps/generic/dl-brk.c: New file.
3120         * sysdeps/generic/dl-sbrk.c: New file.
3121         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
3122         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
3123
3124         * elf/dl-minimal.c (malloc): Declare _end as hidden.
3125         (__errno_location): New function.  Declare errno as hidden.
3126         * elf/rtld.c (_dl_argc): Define as hidden.
3127         (_dl_skip_args): Define as hidden.
3128         (_begin, _end): Declare as hidden.
3129         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
3130         * sysdeps/generic/entry.h (_start): Declare as hidden.
3131         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
3132         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
3133         _dl_runtime_resolve and _dl_runtime_profile as hidden.
3134         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
3135
3136 2002-03-14  Roland McGrath  <roland@frob.com>
3137
3138         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
3139
3140         * Makeconfig (%.v.i, %.v): New implicit rules.
3141         (preprocess-versions): Variable removed.
3142         ($(common-objpfx)shlib-versions.v.i): New target giving just the
3143         shlib-versions input files as dependencies.
3144         ($(common-objpfx)soversions.i): Depend on that instead of the input
3145         files.  Use it as input instead of using a pipeline.
3146         (postclean-generated): Append soversions.i, shlib-versions.v, and
3147         shlib-versions.v.i here.
3148         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
3149         the Versions.def input files as dependencies.
3150         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
3151         ($(common-objpfx)Versions.all): Depend on that instead of the input
3152         files.  Use it as input instead of using a pipeline.
3153         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
3154         (postclean-generated): Append those .v and .v.i files here.
3155
3156 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
3157
3158         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
3159         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
3160         Remove.
3161
3162 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
3163
3164         * sysdeps/generic/mp_clz_tab.c: New file.
3165         * sysdeps/i386/mp_clz_tab.c: New file.
3166         * sysdeps/hppa/mp_clz_tab.c: New file.
3167         * sysdeps/powerpc/mp_clz_tab.c: New file.
3168         * stdlib/Makefile (aux): Revert last patch.
3169         * math/Makefile (gmp-objs): Likewise.
3170
3171 2002-03-13  Paul Eggert  <eggert@twinsun.com>
3172
3173         * time/strftime.c: Comment fixes for references to obsolescent
3174         standards, In most cases the simplest fix is to remove the
3175         confusing comments.  Cross-referencing all the standards properly
3176         is a bit of a pain, and it should be enough to put that info in
3177         the documentation as I did in my recent time.texi patch.
3178
3179 2002-03-13  Paul Eggert  <eggert@twinsun.com>
3180
3181         * manual/time.texi (Formatting Calendar Time):
3182         ISO C99 also specifies the E and O modifiers.
3183         %P is a GNU extension, and is not in ISO C99.
3184         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
3185         %T is also in ISO C99.
3186         The RFC 822 example is not valid in arbitrary locales.
3187         Reword the POSIX.2 wording slightly, to make it a bit clearer
3188         that POSIX.2 formats are also supported by later POSIX versions.
3189         If a format was introduced in ISO C99 it is also required by
3190         POSIX.1-2001.
3191
3192 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
3193
3194         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
3195         _sys_nerr_internal with INTVARDEF2.
3196         * include/libc-symbols.h (INTVARDEF2): New macro.
3197         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
3198         (_sys_nerr_internal): Library.
3199
3200         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
3201         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
3202
3203         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
3204
3205 2002-03-13  Wolfram Gloger  <wg@malloc.de>
3206
3207         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
3208
3209 2002-03-02  Andreas Schwab  <schwab@suse.de>
3210
3211         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
3212         'h' flag and positional arg.
3213         * stdio-common/tst-printf.c (rfg3): New function to test
3214         positional arguments.
3215         (main): Fix some warnings.
3216
3217 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3218
3219         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
3220         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
3221
3222 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
3223
3224         * grp/initgroups.c (__nss_group_data): Declare as hidden.
3225
3226         * include/locale.h (_nl_C_locobj): Declare as hidden.
3227
3228         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
3229         * time/strptime.c (_nl_C_LC_TIME): Likewise.
3230
3231         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
3232
3233         * include/sys/gmon.h: Declare _gmonparam as hidden.
3234
3235         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
3236         (__ctype32_wctrans): Likewise.
3237         (__ctype32_width): Likewise.
3238
3239         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
3240         use of __ttyname.
3241
3242         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
3243         Define as hidden.
3244         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
3245         hidden.  Change all users of these variables.
3246
3247         * posix/regex_internal.h (__re_error_msgid): Renamed from
3248         re_error_msgid.  Declare as hidden.
3249         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
3250         hidden.
3251
3252         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
3253         (__printf_function_table): Likewise.
3254         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
3255         hidden.
3256         (__printf_function_table): Likewise.
3257
3258         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
3259         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
3260
3261         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
3262         * nss/nsswitch.c: Declare _nss_*_database as hidden.
3263
3264         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
3265         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
3266
3267 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
3268
3269         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
3270         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
3271         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
3272         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
3273         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
3274         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
3275         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
3276         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
3277         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
3278         _nl_C_LC_CTYPE_width: Declare as hidden.
3279         * include/locale.h: Declare _nl_locale_file_list.
3280         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
3281         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
3282         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
3283         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
3284         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
3285         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
3286         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
3287         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
3288         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
3289         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
3290         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
3291         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
3292         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
3293         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
3294         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
3295         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
3296         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
3297         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
3298         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
3299         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
3300         _nl_C_LC_CTYPE_width, and as hidden.
3301         * locale/findlocale.c: Declare _nl_C as hidden.
3302         * locale/newlocale.c: Likewise.
3303         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
3304         _nl_locale_file_list.
3305         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
3306         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
3307         Define _nl_C_locobj as hidden.
3308
3309         * malloc/mtrace.c (_mtrace_file): Define as hidden.
3310         (_mtrace_line): Likewise.
3311
3312         * include/time.h: Declare __mon_yday as hidden.
3313         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
3314
3315         * libio/libioP.h: Declare __libio_codecvt as hidden.
3316         * libio/fileops.c: Declare __libio_translit as hidden.
3317         * libio/iofwide.c: Define __libio_translit as hidden.
3318
3319         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
3320         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
3321         * login/getutline_r.c: Likewise.
3322         * login/utmpname.c: Likewise.
3323
3324         * login/utmp-private.h: Declare __libc_utmp_file_functions,
3325         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
3326         __libc_utmp_file_name as hidden.
3327
3328         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
3329         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
3330         * locale/freelocale.c: Likewise.
3331         * locale/lc-time.c: Likewise.
3332
3333         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
3334         (__libc_ptyname2): Likewise.
3335         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
3336         hidden.
3337         (__libc_ptyname2): Likewise.
3338
3339         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
3340         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
3341         * sysdeps/generic/init-first.c: Likewise.
3342         * sysdeps/i386/init-first.c: Likewise.
3343         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
3344         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
3345         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
3346         * sysdeps/sh/init-first.c: Likewise.
3347         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
3348         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
3349
3350         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
3351         (_itowa_upper_digits): Likewise.
3352
3353         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
3354         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
3355         as hidden.
3356
3357         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
3358         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
3359         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
3360         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
3361
3362         * gmon/gmon.c (__bb_head): Define as hidden.
3363         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
3364
3365         * argp/argp-parse.c (_argp_hang): Define as static.
3366
3367         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
3368         handling in latest compilers.
3369
3370         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
3371         define alias.
3372         * libio/fileops.c (_IO_file_jumps): Likewise.
3373         * libio/stdfiles.c (_IO_list_all): Likewise.
3374         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
3375
3376         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
3377         include/malloc.h.
3378         * include/malloc.h: Add __libc_malloc_initialized declaration
3379         here.  Mark variable hidden.
3380         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
3381
3382         * elf/dl-open.c (__libc_argc): Declare as hidden.
3383         (__libc_argv): Likewise.
3384         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
3385         (__libc_argv): Likewise.
3386         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
3387         __libc_argv as hidden.
3388         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
3389         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
3390         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
3391         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
3392
3393         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
3394         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
3395         * stdlib/erand48.c: Likewise.
3396         * stdlib/jrand48.c: Likewise.
3397         * stdlib/lcong48.c: Likewise.
3398         * stdlib/lrand48.c: Likewise.
3399         * stdlib/mrand48.c: Likewise.
3400         * stdlib/nrand48.c: Likewise.
3401         * stdlib/seed48.c: Likewise.
3402         * stdlib/srand48.c: Likewise.
3403
3404         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
3405         (_itoa_lower_digits_internal): New declaration.
3406         (_itoa_upper_digits_internal): New declaration.
3407         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
3408         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
3409         (_itoa_upper_digits_internal): New declaration.
3410         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
3411         _itoa_lower_digits.
3412         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
3413         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
3414
3415         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
3416         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
3417
3418         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
3419         (_itowa_lower_digits): Likewise.
3420         (_itowa_upper_digits): Likewise.
3421         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
3422         (_itowa_upper_digits): Likewise.
3423
3424         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
3425         not already defined.
3426         (GERMANIC_PLURAL): Declare as hidden.
3427
3428         * posix/getopt.c (__getopt_initialized): Declare as hidden.
3429         (attribute_hidden): Define as empty macro if not already defined.
3430
3431         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
3432         (__gconv_max_path_elem_len): Likewise.
3433         (__gconv_path_envvar): Likewise.
3434
3435         * math/Makefile (gmp-objs): Remove mp_clz_tab.
3436         * stdlib/Makefile (aux): Remove mp_clz_tab.
3437         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
3438
3439         * stdlib/exit.h (__exit_funcs): Declare as hidden.
3440
3441         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
3442
3443         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
3444         _nl_category_names, _nl_category_name_sizes, _nl_current,
3445         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
3446
3447         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
3448         (_nl_current_default_domain): Likewise
3449         (_nl_state_lock): Likewise.
3450         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
3451         (_nl_current_default_domain): Likewise
3452         (_nl_state_lock): Likewise.
3453         * intl/bindtextdom.c (_nl_state_lock): Likewise.
3454
3455         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
3456         (_fpioconst_pow10): Likewise.
3457
3458         * include/time.h (_tmbuf): Add attribute_hidden.
3459
3460         * time/tzset.c (tzstring_list): Define as static.
3461
3462         * include/time.h: Add attribute_hidden to __tzname_cur_max and
3463         __use_tzfile declaration.
3464
3465         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
3466         and __wcsmbs_last_locale declaration.
3467
3468 2002-02-25  Paul Eggert  <eggert@twinsun.com>
3469
3470         * timezone/Makefile (tzbases): Move systemv from here...
3471         (tzlinks): to here, since the entries in systemv were all changed
3472         from Zone to Link lines in tz-2001a.  Bug reported (and patch
3473         tested) by Peter Breitenlohner.
3474
3475 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
3476
3477         * time/tst-posixtz.c (tests): Add new tests.
3478         (main): Test whether tzset() sets daylight properly.
3479
3480 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
3481
3482         * time/tzset.c (tz_compute): Move __daylight, __tzname and
3483         __tzname_cur_max setting...
3484         (tzset_internal): ...here.
3485
3486 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
3487
3488         * time/tzset.c (compute_change): Don't return any value.
3489         (tz_compute): Likewise.  Don't handle southern hemisphere here.
3490         (__tz_convert): But here.
3491
3492 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
3493
3494         * manual/examples/mkfsock.c: Include <string.h> as well.
3495         Patch by Alain De Carolis <alaind@wseurope.com>.
3496
3497 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
3498
3499         * posix/regexec.c (re_match): Fix incorrect register sizes.
3500         (re_search): Likewise.
3501
3502 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
3503
3504         * posix/regcomp.c (regfree): Remove a disused condition.
3505         * posix/regex_internal.c (re_acquire_state): Likewise.
3506         (re_acquire_state_context): Likewise.
3507         (register_state): Remove a redundant malloc invocation.
3508         * posix/regex_internal.h: (re_state_table_entry): Simplify
3509         the structure.
3510
3511 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
3512
3513         * posix/regcomp.c (regcomp): Add __builtin_expect to error
3514         handling conditions.
3515         (regerror): Likewise.
3516         (regfree): Likewise.
3517         (re_compile_internal): Likewise.
3518         (init_dfa): Likewise.
3519         (init_word_char): Likewise.
3520         (create_initial_state): Likewise.
3521         (analyze): Likewise.
3522         (analyze_tree): Likewise.
3523         (duplicate_node): Likewise.
3524         (calc_eclosure): Likewise.
3525         (calc_eclosure_iter): Likewise.
3526         (parse): Likewise.
3527         (parse_reg_exp): Likewise.
3528         (parse_branch): Likewise.
3529         (parse_expression): Likewise.
3530         (parse_subexp): Likewise.
3531         (parse_dup_op): Likewise.
3532         (parse_bracket_exp): Likewise.
3533         (build_equiv_class): Likewise.
3534         (build_charclass): Likewise.
3535         (build_word_op): Likewise.
3536         (fetch_number): Likewise.
3537         (create_tree): Likewise.
3538         (duplicate_tree): Likewise.
3539         * posix/regex.c (BE): New macro.
3540         * posix/regexec.c (re_match): Add __builtin_expect to error
3541         handling conditions.
3542         (re_match_2): Likewise.
3543         (re_search): Likewise.
3544         (re_search_internal): Likewise.
3545         (check_matching): Likewise.
3546         (proceed_next_node): Likewise.
3547         (set_regs): Likewise.
3548         (sift_states_backward): Likewise.
3549         (add_epsilon_backreference): Likewise.
3550         (transit_state): Likewise.
3551         (transit_state_sb): Likewise.
3552         (transit_state_mb): Likewise.
3553         (transit_state_bkref): Likewise.
3554         (transit_state_bkref_loop): Likewise.
3555         (build_trtable): Likewise.
3556         (group_nodes_into_DFAstates): Likewise.
3557         (match_ctx_init): Likewise.
3558         (match_ctx_add_entry): Likewise.
3559         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
3560         to error handling conditions.
3561         (re_string_construct_toupper): Likewise.
3562         (build_wcs_buffer): Likewise.
3563         (build_wcs_upper_buffer): Likewise.
3564         (build_upper_buffer): Likewise.
3565         (re_string_translate_buffer): Likewise.
3566         (re_node_set_alloc): Likewise.
3567         (re_node_set_init_1): Likewise.
3568         (re_node_set_init_2): Likewise.
3569         (re_node_set_init_copy): Likewise.
3570         (re_node_set_intersect): Likewise.
3571         (re_node_set_init_union): Likewise.
3572         (re_node_set_merge): Likewise.
3573         (re_node_set_insert): Likewise.
3574         (re_dfa_add_node): Likewise.
3575         (re_acquire_state): Likewise.
3576         (re_acquire_state_context): Likewise.
3577         (create_new_state_common): Likewise.
3578         (register_state): Likewise.
3579         (create_ci_new_state): Likewise.
3580         (create_cd_new_state): Likewise.
3581         (re_string_context_at): Remove redundant condition.
3582
3583 2002-01-16  Roger Sayle  <roger@eyesopen.com>
3584
3585         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
3586
3587         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
3588
3589 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
3590
3591         * sysdeps/i386/elf/configure.in: Fix comment.
3592
3593         * sysdeps/sparc/sparc64/configure.in: New.
3594         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
3595         if .dynamic comes before .got.
3596         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
3597
3598         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
3599         HP_TIMING_ACCUM): Fix typos.
3600
3601 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
3602
3603         * string/strfry.c: Add some more randomness to the seed.
3604         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
3605
3606         * po/es.po: Update from translation team.
3607         * po/fr.po: Likewise.
3608
3609         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
3610
3611         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
3612         when determining type of format.
3613         Patch by James Antill <james@anqd.org> [PR libc/2787].
3614
3615 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
3616
3617         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
3618
3619 2002-03-11  Roland McGrath  <roland@frob.com>
3620
3621         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
3622
3623         * Versions.def (libc): Add GLIBC_2.2.6.
3624         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
3625         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
3626         __errno_location instead of __hurd_errno_location, and don't inline it.
3627         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
3628         * hurd/errno.c: New file.
3629         * hurd/Makefile (routines): Add errno.
3630
3631 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
3632
3633         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
3634         ridiculously large widths and precisions [PR libc/3026].
3635
3636 2002-03-11  Andreas Jaeger  <aj@suse.de>
3637
3638         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
3639         support.
3640         Patch by Susanne Oberhauser <froh@SuSE.de>.
3641
3642 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
3643
3644         * inet/rexec.c (ahostbuf): Define as static.
3645
3646         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
3647         (__ctype32_wctrans): Likewise.
3648         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
3649         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
3650         (__ctype32_wctrans): Likewise.
3651         (__ctype32_width): Likewise.
3652
3653         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
3654         They were never exported anyway.
3655
3656         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
3657         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
3658         exported.
3659         * include/sys/gmon.h: Declare _gmonparam.
3660
3661         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
3662         symbols for getdents64.  They were never exported.
3663
3664 2002-03-09  Roland McGrath  <roland@frob.com>
3665
3666         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
3667         Reported by Jon Arney <jarney1@cox.net>.
3668
3669 2002-02-23  Roland McGrath  <roland@frob.com>
3670
3671         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
3672         declaration.
3673         (__hurd_errno_location): Function removed.
3674
3675 2002-03-06  Andreas Jaeger  <aj@suse.de>
3676
3677         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
3678         32-bit.
3679
3680 2002-03-04  Andreas Jaeger  <aj@suse.de>
3681
3682         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
3683
3684         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
3685         x86-64.
3686
3687         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
3688
3689         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
3690
3691         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
3692
3693         * sysdeps/x86_64/bits/setjmp.h: New.
3694
3695         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
3696
3697         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
3698
3699         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
3700         for x86.
3701         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
3702         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
3703
3704 2002-02-28  Bo Thorsen  <bo@suse.de>
3705
3706         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
3707         version.
3708
3709 2002-03-03  Andreas Jaeger  <aj@suse.de>
3710
3711         * sysdeps/x86_64/bits/wordsize.h: New file.
3712
3713         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
3714         * elf/tst-tlsmod1.c: Likewise.
3715
3716         * posix/regcomp.c: Get regex.h from include dir for internal
3717         prototypes.
3718
3719         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
3720         to libc-internal.h and include it.
3721         * include/libc-internal.h: Add __init_misc.
3722
3723         * misc/init-misc.c: Include libc-internal.h for prototypes.
3724
3725         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
3726
3727         * misc/error.c [_LIBC]: Include libioP.h for prototype of
3728         _IO_putc_internal.
3729
3730 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
3731
3732         * posix/regcomp.c: Compatibility changes to allow using the code
3733         outside glibc.
3734
3735 2002-02-28  Hartvig Ekner <hartvige@mips.com>
3736
3737         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
3738         compiled non-PIC.
3739
3740 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
3741
3742         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
3743         of .str elements in the returned data structure.
3744
3745         * elf/elf.h: Add Alpha TLS bits.
3746
3747 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
3748
3749         * sysdeps/unix/sysv/linux/nice.c: New file.
3750
3751 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
3752
3753         * elf/Makefile (dl-routines): Add dl-origin.
3754         (elide-routines.os): Add dl-origin.
3755         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
3756         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
3757         _dl_debug_state.
3758         * include/libc-symbols.c: Define attribute_hidden depending on
3759         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
3760
3761         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
3762         * elf/dl-load.c: Likewise.
3763         * elf/rtld.c: Likewise.
3764         * include/unistd.h: Declare __libc_enable_secure_internal.
3765         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
3766         Use INTUSE with __libc_enable_secure.
3767         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
3768
3769         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
3770         * elf/dl-error.c: Likewise,
3771         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
3772
3773         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
3774         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
3775         function definition.  Use INTDEF with _dl_get_origin.
3776         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
3777
3778         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
3779         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
3780
3781         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
3782         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
3783         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
3784
3785         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
3786         * elf/dl-deps.c: Likewise.
3787         * elf/dl-error.c: Likewise.
3788         * elf/dl-fini.c: Likewise.
3789         * elf/dl-init.c: Likewise.
3790         * elf/dl-load.c: Likewise.
3791         * elf/dl-lookup.c: Likewise.
3792         * elf/dl-reloc.c: Likewise.
3793         * elf/dl-version.c: Likewise.
3794         * elf/do-lookup.h: Likewise.
3795         * sysdeps/arm/dl-machine.h: Likewise.
3796         * sysdeps/cris/dl-machine.h: Likewise.
3797         * sysdeps/hppa/dl-machine.h: Likewise.
3798         * sysdeps/i386/dl-machine.h: Likewise.
3799         * sysdeps/m68k/dl-machine.h: Likewise.
3800         * sysdeps/powerpc/dl-machine.h: Likewise.
3801         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3802         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3803         * sysdeps/sh/dl-machine.h: Likewise.
3804         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
3805         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
3806         * sysdeps/x86_64/dl-machine.h: Likewise.
3807         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
3808         _dl_argv[0].  Use INTUSE with _dl_argv.
3809         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
3810         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
3811
3812 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
3813
3814         * elf/rtld.c (_rtld_global): Remove .protected.
3815         (_rtld_local): Strong alias to _rtld_global.
3816         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
3817         only .os object.
3818         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
3819         _rtld_local instead of _rtld_global.
3820         (_rtld_local): Add hidden extern, possibly in .sdata section.
3821         * configure.in: Add tests for visibility attribute and .sdata.
3822         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
3823         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
3824         * sysdeps/arm/dl-machine.h: Likewise.
3825         * sysdeps/generic/ldsodefs.h: Likewise.
3826         * sysdeps/hppa/dl-machine.h: Likewise.
3827         * sysdeps/cris/dl-machine.h: Likewise.
3828         * sysdeps/i386/dl-machine.h: Likewise.
3829         * sysdeps/ia64/dl-machine.h: Likewise.
3830         * sysdeps/m68k/dl-machine.h: Likewise.
3831         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3832         * sysdeps/mips/dl-machine.h: Likewise.
3833         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3834         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3835         * sysdeps/sh/dl-machine.h: Likewise.
3836         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3837         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3838         * sysdeps/x86_64/dl-machine.h: Likewise.
3839
3840 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
3841
3842         * login/login.c (login): Always initialize ut_line field
3843         [PR libc/2991].
3844
3845 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
3846
3847         * sysdeps/i386/Makefile (sysdep_routines): Add
3848         divdi3 in csu dir.
3849         (shared-only-routines): Likewise.
3850         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
3851         (shared-only-routines): Likewise.
3852         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
3853         (shared-only-routines): Likewise.
3854         * sysdeps/wordsize-32/divdi3.c: New file.
3855
3856 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
3857
3858         * locale/iso-4217.def: Remove obsolete currencies for countries
3859         with Euro.
3860
3861 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
3862
3863         * posix/regcomp.c (regcomp): Remove a redundant condition.
3864         (init_word_char): Add a check on malloc failure.
3865         (create_initial_state): Likewise.
3866         (duplicate_node): Likewise.
3867         (calc_eclosure): Likewise.
3868         (calc_eclosure_iter): Likewise.
3869         (parse_expression): Likewise.
3870         (parse_bracket_exp): Remove unnecessary malloc invocations.
3871         (build_equiv_class): Likewise.
3872         (build_charclass): Likewise.
3873         * posix/regex_internal.c (re_node_set_intersect): Add a check
3874         on malloc failure.
3875         (re_node_set_add_intersect): Likewise.
3876         (re_node_set_merge): Likewise.
3877         (re_acquire_state): Likewise.
3878         (re_acquire_state_context): Likewise.
3879         (create_newstate_common): Likewise.
3880         (register_state): Likewise.
3881         (create_ci_newstate): Likewise.
3882         (create_cd_newstate): Likewise.
3883         * posix/regex_internal.h: Fix prototypes of re_acquire_state
3884         and re_acquire_state_context.
3885         * posix/regexec.c (regexec): Suit it to the error handling of
3886         re_search_internal.
3887         (re_match): Likewise.
3888         (re_search): Likewise.
3889         (re_search_internal): Add a check on malloc failure.
3890         (acquire_init_state_context): Likewise.
3891         (check_matching): Likewise.
3892         (proceed_next_node): Likewise.
3893         (set_regs): Likewise.
3894         (sift_states_backward): Likewise.
3895         (sift_states_iter_bkref): Likewise.
3896         (add_epsilon_backreference): Likewise.
3897         (transit_state): Likewise.
3898         (transit_state_sb): Likewise.
3899         (transit_state_mb): Likewise.
3900         (transit_state_bkref_loop): Likewise.
3901         (build_trtable): Likewise.
3902         (group_nodes_into_DFAstates): Likewise.
3903         (match_ctx_init): Likewise.
3904         (match_ctx_add_entry): Likewise.
3905
3906 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
3907
3908         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
3909         l_libname if profiling is enabled [PR libc/2916].
3910
3911         * sysdeps/ia64/dl-tls.h: New file.
3912
3913 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
3914
3915         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
3916         Work around an Alpha gas bug.
3917
3918 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
3919
3920         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
3921         uses read to load the catalog.
3922         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
3923
3924 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
3925
3926         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
3927         regex_internal.c, and regex_internal.h.
3928         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
3929         * posix/regex.c: Complete rewrite.
3930         * posix/regexec.c: New file.
3931         * posix/regcomp.c: New file.
3932         * posix/regex_internal.c: New file.
3933         * posix/regex_internal.h: New file.
3934         * posix/regex.h (RE_ICASE): New macro.
3935         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
3936
3937         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
3938         ungetwc.  It's a macro.
3939         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
3940         implementation.
3941         Reported by Jason Merrill <jason@redhat.com>.
3942
3943 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
3944
3945         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
3946         position to fp->_offset if it is set.
3947         * stdio-common/Makefile (tests): Add tst-fdopen.
3948         * stdio-common/tst-fdopen.c: New test.
3949
3950 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
3951
3952         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
3953         * stdio-common/tst-ungetc.c (main): Add another test.
3954
3955 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
3956
3957         * assert/assert-perr.c: Use INTUSE to reference functions and variables
3958         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
3959         aliases.  Add prototypes for the new aliases.
3960         * assert/assert.c: Likewise.
3961         * include/libc-symbols.h: Likewise.
3962         * include/stdio.h: Likewise.
3963         * include/netinet/in.h: Likewise.
3964         * include/rpc/auth.h: Likewise.
3965         * include/rpc/auth_unix.h: Likewise.
3966         * include/rpc/key_prot.h: Likewise.
3967         * include/rpc/pmap_prot.h: Likewise.
3968         * include/rpc/pmap_rmt.h: Likewise.
3969         * include/rpc/rpc_msg.h: Likewise.
3970         * include/rpc/xdr.h: Likewise.
3971         * inet/gethstbyad_r.c: Likewise.
3972         * inet/gethstbynm2_r.c: Likewise.
3973         * inet/gethstbynm_r.c: Likewise.
3974         * inet/gethstent_r.c: Likewise.
3975         * inet/in6_addr.c: Likewise.
3976         * libio/__fpurge.c: Likewise.
3977         * libio/filedoalloc.c: Likewise.
3978         * libio/fileops.c: Likewise.
3979         * libio/ftello.c: Likewise.
3980         * libio/ftello64.c: Likewise.
3981         * libio/genops.c: Likewise.
3982         * libio/iofclose.c: Likewise.
3983         * libio/iofdopen.c: Likewise.
3984         * libio/iofflush.c: Likewise.
3985         * libio/iofflush_u.c: Likewise.
3986         * libio/iofgetpos.c: Likewise.
3987         * libio/iofgetpos64.c: Likewise.
3988         * libio/iofgets.c: Likewise.
3989         * libio/iofgets_u.c: Likewise.
3990         * libio/iofopen.c: Likewise.
3991         * libio/iofopncook.c: Likewise.
3992         * libio/iofputs.c: Likewise.
3993         * libio/iofread.c: Likewise.
3994         * libio/iofread_u.c: Likewise.
3995         * libio/iofsetpos.c: Likewise.
3996         * libio/iofsetpos64.c: Likewise.
3997         * libio/ioftell.c: Likewise.
3998         * libio/iofwrite.c: Likewise.
3999         * libio/iogetline.c: Likewise.
4000         * libio/iogets.c: Likewise.
4001         * libio/iogetwline.c: Likewise.
4002         * libio/iolibio.h: Likewise.
4003         * libio/iopadn.c: Likewise.
4004         * libio/iopopen.c: Likewise.
4005         * libio/ioseekoff.c: Likewise.
4006         * libio/ioseekpos.c: Likewise.
4007         * libio/iosetbuffer.c: Likewise.
4008         * libio/iosetvbuf.c: Likewise.
4009         * libio/ioungetc.c: Likewise.
4010         * libio/ioungetwc.c: Likewise.
4011         * libio/iovdprintf.c: Likewise.
4012         * libio/iovsprintf.c: Likewise.
4013         * libio/iovsscanf.c: Likewise.
4014         * libio/libioP.h: Likewise.
4015         * libio/memstream.c: Likewise.
4016         * libio/obprintf.c: Likewise.
4017         * libio/oldfileops.c: Likewise.
4018         * libio/oldiofclose.c: Likewise.
4019         * libio/oldiofdopen.c: Likewise.
4020         * libio/oldiofgetpos.c: Likewise.
4021         * libio/oldiofgetpos64.c: Likewise.
4022         * libio/oldiofopen.c: Likewise.
4023         * libio/oldiofsetpos.c: Likewise.
4024         * libio/oldiofsetpos64.c: Likewise.
4025         * libio/oldiopopen.c: Likewise.
4026         * libio/oldstdfiles.c: Likewise.
4027         * libio/putc.c: Likewise.
4028         * libio/setbuf.c: Likewise.
4029         * libio/setlinebuf.c: Likewise.
4030         * libio/stdfiles.c: Likewise.
4031         * libio/stdio.c: Likewise.
4032         * libio/strops.c: Likewise.
4033         * libio/vasprintf.c: Likewise.
4034         * libio/vscanf.c: Likewise.
4035         * libio/vsnprintf.c: Likewise.
4036         * libio/vswprintf.c: Likewise.
4037         * libio/wfiledoalloc.c: Likewise.
4038         * libio/wfileops.c: Likewise.
4039         * libio/wgenops.c: Likewise.
4040         * libio/wstrops.c: Likewise.
4041         * malloc/mtrace.c: Likewise.
4042         * misc/error.c: Likewise.
4043         * misc/syslog.c: Likewise.
4044         * nss/getXXbyYY_r.c: Likewise.
4045         * nss/getXXent_r.c: Likewise.
4046         * nss/hosts-lookup.c: Likewise.
4047         * stdio-common/getw.c
4048         * stdio-common/printf-prs.c: Likewise.
4049         * stdio-common/printf_fp.c: Likewise.
4050         * stdio-common/printf_size.c: Likewise.
4051         * stdio-common/putw.c: Likewise.
4052         * stdio-common/scanf.c: Likewise.
4053         * stdio-common/sprintf.c: Likewise.
4054         * stdio-common/tmpfile64.c: Likewise.
4055         * stdio-common/vfprintf.c: Likewise.
4056         * stdio-common/vfscanf.c: Likewise.
4057         * stdlib/strfmon.c: Likewise.
4058         * sunrpc/auth_des.c: Likewise.
4059         * sunrpc/auth_none.c: Likewise.
4060         * sunrpc/auth_unix.c: Likewise.
4061         * sunrpc/authdes_prot.c: Likewise.
4062         * sunrpc/authuxprot.c: Likewise.
4063         * sunrpc/clnt_perr.c: Likewise.
4064         * sunrpc/clnt_raw.c: Likewise.
4065         * sunrpc/clnt_tcp.c: Likewise.
4066         * sunrpc/clnt_udp.c: Likewise.
4067         * sunrpc/clnt_unix.c: Likewise.
4068         * sunrpc/key_call.c: Likewise.
4069         * sunrpc/key_prot.c: Likewise.
4070         * sunrpc/openchild.c: Likewise.
4071         * sunrpc/pm_getmaps.c: Likewise.
4072         * sunrpc/pm_getport.c: Likewise.
4073         * sunrpc/pmap_clnt.c: Likewise.
4074         * sunrpc/pmap_prot.c: Likewise.
4075         * sunrpc/pmap_prot2.c: Likewise.
4076         * sunrpc/pmap_rmt.c: Likewise.
4077         * sunrpc/rpc_cmsg.c: Likewise.
4078         * sunrpc/rpc_prot.c: Likewise.
4079         * sunrpc/svc_authux.c: Likewise.
4080         * sunrpc/svc_raw.c: Likewise.
4081         * sunrpc/svc_simple.c: Likewise.
4082         * sunrpc/svc_tcp.c: Likewise.
4083         * sunrpc/svc_udp.c: Likewise.
4084         * sunrpc/svc_unix.c: Likewise.
4085         * sunrpc/xdr.c: Likewise.
4086         * sunrpc/xdr_array.c: Likewise.
4087         * sunrpc/xdr_mem.c: Likewise.
4088         * sunrpc/xdr_rec.c: Likewise.
4089         * sunrpc/xdr_ref.c: Likewise.
4090         * sunrpc/xdr_stdio.c: Likewise.
4091         * sysdeps/generic/_strerror.c: Likewise.
4092         * sysdeps/generic/printf_fphex.c: Likewise.
4093         * sysdeps/generic/tmpfile.c: Likewise.
4094         * sysdeps/gnu/errlist.awk: Likewise.
4095         * sysdeps/gnu/errlist.c: Likewise.
4096
4097         * libio/Makefile (routines): Remove iosprint.
4098         * libio/iosprintf.c: Removed
4099
4100
4101 2002-02-24  Ulrich Drepper  <drepper@redhat.com>
4102
4103         * elf/dl-support.c (_dl_non_dynamic_init): Renamed from
4104         non_dynamic_init and exported now.
4105         * sysdeps/unix/sysv/linux/ldsodefs.h: Declare _dl_non_dynamic_init.
4106         * sysdeps/unix/sysv/linux/init-first.c: Call _dl_non_dynamic_init for
4107         !SHARED.
4108         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
4109         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
4110         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
4111
4112 2002-02-23  Ulrich Drepper  <drepper@redhat.com>
4113
4114         * elf/dl-close.c (free_slotinfo): Check for end of list and return
4115         true in this case.
4116
4117         * locale/iso-639.def: Add language codes for Walloon.
4118
4119         * elf/dl-fini.c (_dl_fini): Print some final statistics on the
4120         total number of relocations performed.
4121
4122         * elf/sprof.c (load_profdata): If do_test provide information as
4123         to why loading failed.
4124         * elf/dl-profile.c (_dl_start_profile): Initialize all of
4125         hist_hdr.dimen.
4126
4127         * csu/set-init.c: Moved to...
4128         * sysdeps/mach/hurd/set-init.c: ...here.  New file.
4129         * csu/Makefile: Don't compile set-init.
4130         * sysdeps/mach/hurd/Makefile: Compile set-init for subdir csu.
4131         * sysdeps/mach/hurd/i386/init-first.c: Call __init_misc in addition
4132         to __libc_init.
4133         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
4134         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
4135         * sysdeps/unix/sysv/linux/init-first.c: Call __init_misc instead of
4136         __libc_init.
4137         * misc/init-misc.c: Always export __init_misc.  Don't define hooks for
4138         __libc_subinit.
4139
4140 2002-02-22  Ulrich Drepper  <drepper@redhat.com>
4141
4142         * elf/Versions: Add _dl_allocate_tls and _dl_deallocate_tls.
4143         * elf/rtld.c (dl_main): Use _dl_allocate_tls with INTUSE.
4144         * sysdeps/generic/dl-tls.c: Add INTDEF for _dl_allocate_tls.
4145         (_dl_deallocate_tls): New function.
4146         * sysdeps/generic/ldsodefs.h: Declare _dl_allocate_tls_internal and
4147         _dl_deallocate_tls.
4148
4149 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
4150
4151         * libio/fileops.c (_IO_file_seekoff_mmap): Fix fseek SEEK_END.
4152         * stdio-common/tst-fseek.c (main): Add test for this.
4153
4154 2002-02-19  Ulrich Drepper  <drepper@redhat.com.>
4155
4156         * stdlib/Versions: Move __on_exit to GLIBC_PRIVATE.
4157
4158 2002-02-19  Jakub Jelinek  <jakub@redhat.com>
4159
4160         * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
4161         pointer before dereferencing.
4162
4163 2002-02-18  Roland McGrath  <roland@frob.com>
4164
4165         * sysdeps/mach/hurd/times.c: Fix typo in last change.
4166
4167         * sysdeps/mach/hurd/setpriority.c [POLICY_TIMESHARE_BASE_COUNT]:
4168         Use task_policy in place of task_priority.
4169
4170         * sysdeps/generic/bits/mman.h
4171         (MS_ASYNC, MS_SYNC, MS_INVALIDATE): New macros.
4172         * sysdeps/mach/msync.c: New file.
4173
4174         * sysdeps/mach/powerpc/syscall.S: New file.
4175
4176         * mach/msg.c [MACH_MSG_OVERWRITE]
4177         (__mach_msg_trap, __mach_msg_overwrite): New functions.
4178         * mach/Versions (libc: GLIBC_2.0): Add mach_msg_overwrite and __ name.
4179
4180         * sysdeps/mach/configure.in: Check for clock.defs to put into
4181         mach_interface_list.
4182         * sysdeps/mach/configure: Regenerated.
4183
4184         * mach/Makefile (mach-machine): New variable, set from $(base-machine).
4185         ($(objpfx)mach-syscalls.mk): Use it in place of $(base-machine).
4186         ($(mach-syscalls:%=$(objpfx)%.S) static pattern rule):
4187         Use <mach/machine/syscall_sw.h> instead of <sysdep.h>.
4188         (mach-shortcuts): Add device_read_overwrite_request,
4189         device_read_overwrite, vm_read_overwrite, thread_switch.
4190
4191         * configure.in (base_machine): Set to $machine by default.
4192         * configure: Regenerated.
4193
4194         * sysdeps/mach/configure.in: Check for <mach/machine/ndr_def.h>
4195         or <machine/ndr_def.h> and add -DNDR_DEF_HEADER=... to DEFINES.
4196         * sysdeps/mach/configure: Regenerated.
4197         * mach/mach_init.c [NDR_DEF_HEADER]: #include it.
4198
4199         * hurd/hurdfault.c (_hurdsig_fault_init): Add a cast.
4200
4201         * hurd/hurd/signal.h: Include <setjmp.h> for `jmp_buf' decl.
4202
4203         * mach/msgserver.c (__mach_msg_server_timeout) [! MACH_RCV_LARGE]:
4204         Double MAX_SIZE and don't retry on MACH_RCV_TOO_LARGE.
4205
4206 2002-02-17  Roland McGrath  <roland@frob.com>
4207
4208         * sysdeps/mach/hurd/times.c
4209         [NO_CREATION_TIME] (startup_time): New static variable.
4210         [NO_CREATION_TIME] (times_init): New static function in __libc_subinit.
4211         (__times) [NO_CREATION_TIME]: Use startup_time in lieu of task
4212         creation_time from task_basic_info.
4213         (__times): Use __gettimeofday instead of __host_get_time.
4214
4215         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg) [! MACH_MSG_TYPE_BIT]:
4216         Use untyped Mach IPC message format.
4217
4218         * hurd/catch-exc.c: Include <assert.h>, missing from last change.
4219
4220         * hurd/Versions (libc: GLIBC_2.0): Add _S_catch_exception_raise_state,
4221         _S_catch_exception_raise_state_identity,
4222         _hurdsig_fault_catch_exception_raise_state,
4223         _hurdsig_fault_catch_exception_raise_state_identity.
4224
4225         * mach/shortcut.awk: Don't apply the /^}$/ rule when $proto == "".
4226
4227         * sysdeps/mach/getsysstats.c (__get_avphys_pages) [HOST_VM_INFO]: Use
4228         __host_info with HOST_VM_INFO flavor instead of __vm_statistics.
4229
4230         * sysdeps/mach/hurd/getpriority.c [TASK_SCHED_TIMESHARE_INFO]: Find
4231         `base_priority' in PIP->timeshare_base_info instead of PIP->taskinfo.
4232
4233         * sysdeps/mach/hurd/dl-sysdep.c [FMH]: Define for i386 only.
4234         (fmh, unfmh): Define these functions only #if FMH.  Otherwise define
4235         them as no-op macros.
4236         [FMH] (ELF_MACHINE_USER_ADDRESS_MASK): Redefine it to zero.
4237         (__mmap): Uncomment uses of ELF_MACHINE_USER_ADDRESS_MASK.
4238
4239         * sysdeps/powerpc/dl-machine.h
4240         (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
4241
4242         * hurd/hurdselect.c (_hurd_select) [MACH_MSG_TRAILER_MINIMUM_SIZE]:
4243         Use untyped Mach IPC message format.
4244
4245         * sysdeps/mach/hurd/ioctl.c (__ioctl) [! MACH_MSG_TYPE_BIT]:
4246         Handle untyped Mach IPC message formats.
4247
4248         * hurd/catch-exc.c (_S_catch_exception_raise) [EXC_MASK_ALL]:
4249         Expect different argument conventions when this is defined.
4250         [EXC_MASK_ALL] (_S_catch_exception_raise_state): New stub function.
4251         [EXC_MASK_ALL] (_S_catch_exception_raise_state_identity): Likewise.
4252         * hurd/hurdfault.c: Likewise for _hurdsig_fault_catch_exception_*.
4253         [NDR_CHAR_ASCII] (mig_reply_header_t): #define as mig_reply_error_t
4254         for OSF Mach variant.
4255         (faulted): Use mig_reply_error_t for REPLY.
4256         (_hurdsig_fault_init) [EXC_MASK_ALL]: Use EXCEPTION_STATE_IDENTITY
4257         in __thread_set_exception_ports call.
4258         (_hurdsig_fault_init) [MACH_PORT_RECEIVE_STATUS]: Use
4259         __mach_port_set_attributes in place of __mach_port_set_qlimit.
4260
4261         * sysdeps/mach/powerpc/sysdep.h (_MACH_MACHINE_ASM_H): Define this
4262         before include <sysdeps/mach/sysdep.h>, to inhibit <mach/machine/asm.h>
4263         on Darwin, which includes bogons.
4264
4265         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Move local
4266         variable LOADBASE so it's not declared when it's not used.
4267
4268 2002-02-16  Roland McGrath  <roland@frob.com>
4269
4270         * sysdeps/mach/hurd/times.c (__times) [NO_CREATION_TIME]: Don't try
4271         to use BI.creation_time.
4272
4273         * mach/Machrules (MIG): Add -x c to CPP value passed down.
4274
4275         * config.h.in: Add #undef HAVE_HOST_PAGE_SIZE.
4276         * sysdeps/mach/configure.in: Check for host_page_size RPC to define it.
4277         * mach/mach_init.c (__mach_init) [HAVE_HOST_PAGE_SIZE]: Use
4278         host_page_size instead of vm_statistics.
4279
4280         * sysdeps/mach/Makefile (mach-before-compile): Don't include
4281         mach_interface.h here, since not all variants use that name.
4282
4283         * sysdeps/mach/configure.in: Add some checks for Mach headers
4284         to ensure a sane installation.
4285         (mach_interface_list): Define this variable by checking for .defs
4286         files found in various variants.
4287         * configure.in (mach_interface_list): AC_SUBST this.
4288         * config.make.in (mach-interface-list): New substituted variable.
4289         * mach/Makefile (user-interfaces): Define this using the value
4290         of $(mach-interface-list) instead of mach, mach4.
4291         Updated other references to mach_interface to use it as well.
4292
4293         * sysdeps/mach/powerpc/machine-lock.h: Avoid multi-line strings.
4294
4295         * mach/msgserver.c [NDR_CHAR_ASCII] (mig_reply_header_t): #define as
4296         mig_reply_error_t for OSF Mach variant.
4297
4298         * mach/Makefile (routines): Remove bootprivport.
4299         * mach/bootprivport.c: File removed.  It has never been used.
4300
4301         * mach/msg-destroy.c (__mach_msg_destroy) [MACH_MSG_PORT_DESCRIPTOR]:
4302         Grok the OSF flavor of message format.
4303         (mach_msg_destroy_port): For MAKE_SEND and
4304         MAKE_SEND_ONCE rights, create an destroy a right to ensure proper
4305         no-senders notification.
4306
4307 2002-02-06  Roland McGrath  <roland@frob.com>
4308
4309         * hurd/Versions (libc: GLIBC_2.0): Move cthread_fork, cthread_detach
4310         to here if 2.0 compatibility enabled ...
4311         (libc: GLIBC_2.1.3): ... from here.
4312
4313 2002-02-15  Ulrich Drepper  <drepper@redhat.com>
4314
4315         * elf/dl-open.c (dl_open_worker): Catch wrap-around of TLS
4316         generation counter.
4317         * elf/dl-close.c (_dl_close): Likewise.
4318
4319 2002-02-14  Ulrich Drepper  <drepper@redhat.com>
4320
4321         * elf/Makefile: Add rules to build and run tst-tls8.
4322         * elf/tst-tls8.c: New file.
4323         * elf/tst-tlsmod4.c: New file.
4324
4325         * stdlib/test-a64l.c (tests): Add more test cases.
4326
4327         * sunrpc/rtime.c (rtime): Change type of thetime to uint32_t.
4328         Reported by Walter Harms <WHarms@bfs.de>.
4329
4330 2002-02-11  Jes Sorensen  <jes@trained-monkey.org>
4331
4332         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Add sc_flag bit
4333         definitions for struct sigcontext.
4334         Suggested by David Mosberger-Tang.
4335
4336 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
4337
4338         * elf/dl-close.c (remove_slotinfo): New function.  Handles everything
4339         for removing reference of module in slotinfo list.
4340         (_dl_close): Use remove_slotinfo.
4341         * sysdeps/generic/dl-tls.c: General pretty printing.
4342         (oom): Define only if SHARED.
4343         (_dl_next_tls_modid): Correct starting point for the case we assume
4344         there is a gap.  Add missing instruction grouping (doh!).  Correct
4345         tests for reaching maximum index.
4346         * elf/Makefile: Add rules to build and run tst-tls7.
4347         * elf/tst-tls7.c: New file.
4348         * elf/tst-tlsmod3.c: New file.
4349
4350         * elf/tst-tlsmod1.c: Move #include "tls-macros.h" instead #ifdef
4351         USE_TLS.
4352         * elf/tst-tlsmod2.c: Likewise.
4353
4354         * elf/dl-close.c (_dl_close): When closing an object using TLS
4355         either decrement dl_tls_max_dtv_idx or set dl_tls_dtv_gaps to
4356         true.  Increment dl_tls_generation only if we closed any TLS-using
4357         object.
4358         * elf/tst-tls6.c: New file.
4359         * elf/Makefile: Add rules to build and run tst-tls6.
4360
4361         * po/da.po: Update from translation team.
4362
4363         * locale/categories.def: Fix typo [PR libc/2948].
4364         * po/Makefile (BROKEN_LINGUAS): Works with current gettext
4365         [PR libc/2949].
4366         * locale/iso-4217.def: Update from official version [PR libc/2950].
4367         * glibcbug.in: Honor TMPDIR [PR libc/2951].
4368         * locale/programs/ld-collate.c (collate_finish): Bail out with a
4369         message if input is too confusion instead of using assert.
4370         (collate_read): Don't crash on unknown symbol [PR libc/2952].
4371         Patches by Alastair McKinstry <alastair@pdd.3com.com>.
4372
4373         * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
4374         * elf/tst-tls2.c: Likewise.
4375         * elf/tst-tls3.c: Likewise.
4376
4377 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
4378
4379         * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
4380
4381 2002-02-13  Ulrich Drepper  <drepper@redhat.com>
4382
4383         * elf/dl-open.c (dl_open_worker): Only bump the generation counter
4384         if this is really necessary.
4385
4386         * elf/dl-close.c (_dl_close): Implement freeing entries in the
4387         slotinfo array.
4388         (free_mem): Free memory for the slotinfo array if possible.
4389
4390 2002-02-12  Andreas Schwab  <schwab@suse.de>
4391
4392         * csu/gmon-start.c (__gmon_start__): Remove '&' from ENTRY_POINT.
4393
4394 2002-02-12  Ulrich Drepper  <drepper@redhat.com>
4395
4396         * sysdeps/generic/dl-tls.c (TLS_DTV_UNALLOCATED): Renamed from
4397         TLS_DTV_UNALLOCATE.
4398         (oom): New function.
4399         (_dl_next_tls_modid): Rewrite to handle dl_tls_dtv_slotinfo_list.
4400         (_dl_determine_tlsoffset): Likewise.
4401         (_dl_allocate_tls): Likewise.
4402         (__TLS_GET_ADDR): Define if not already defined.
4403         (_dl_tls_symaddr): New function.
4404         (allocate_and_init): New function.
4405         (__tls_get_addr): Actually implement handling of generation counter
4406         and deferred allocation.
4407         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove _dl_initimage_list,
4408         add _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
4409         _dl_tls_generation.
4410         Define TLS_SLOTINFO_SURPLUS and DTV_SURPLUS.
4411         Declare _dl_tls_symaddr.
4412         * sysdeps/i386/dl-tls.h: Disable __tls_get_addr handling unless
4413         SHARED.
4414         * include/link.h (struct link_map):  Remove l_tls_nextimage and
4415         l_tls_previmage.
4416         * elf/dl-sym.c (_dl_sym): After successful lookup call _dl_tls_symaddr
4417         instead of DL_SYMBOL_ADDRESS for STT_TLS symbols.
4418         (_dl_vsym): Likewise.
4419         * elf/rtld.c (_dl_start_final): Adjust initdtv initialization for new
4420         layout.
4421         (dl_main): Allow PT_TLS be present for empty segment.  Remove
4422         nextimage list handling.  Instead add all modules using TLS to
4423         dl_tls_dtv_slotinfo_list.
4424         * elf/dl-open.c (dl_open_worker): After successfully loading all
4425         objects add those with TLS to the dl_tls_dtv_slotinfo_list list.
4426         * elf/dl-load.c (_dl_map_object_from_fd): If PT_TLS entry is for an
4427         empty segment don't do anything.  Remove handling of initimage list.
4428         * elf/Versions [ld] (GLIBC_2.0): Add __libc_memalign.
4429         (GLIBC_PRIVATE): Add _dl_tls_symaddr.
4430         * elf/dl-minimal.c: Define __libc_memalign.
4431         * elf/dl-support.c: Remove _dl_initimage_list.  Add
4432         _dl_tls_dtv_slotinfo_list, _dl_tls_static_nelem, and
4433         _dl_tls_generation.
4434         * include/stdlib.h: Declare __libc_memalign.
4435
4436         * elf/Makefile: Add rules to build and run tst-tls4 and tst-tls5.
4437         * elf/tst-tls4.c: New file.
4438         * elf/tst-tls5.c: New file.
4439         * elf/tst-tlsmod2.c: New file.
4440
4441         * elf/tls-macros.h: asms using ___tls_get_addr destroy %ecx and %edx.
4442
4443         * elf/tst-tlsmod1.c: Don't define variables unles USE_TLS.
4444
4445         * elf/tst-tls1.c: Use test-skeleton.c.
4446         * elf/tst-tls2.c: Likewise.
4447         * elf/tst-tls3.c: Likewise.
4448
4449         * elf/dl-conflict.c (RESOLVE_MAP): Return NULL not 0.
4450
4451 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
4452
4453         * sysdeps/mips/machine-gmon.h: Update MCOUNT for current GCC behavior.
4454
4455 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
4456
4457         * elf/elf.h: Define R_386_TLS_GD and R_386_TLS_LDM.
4458
4459         * elf/tst-tls3.c: New file.
4460         * elf/tst-tlsmod1.c: New file.
4461         * elf/Makefile: Add rules to build and run tst-tls3.
4462
4463         * sysdeps/i386/dl-machine.h: Include <tls.h>.
4464         (elf_machine_type_class): Set ELF_RTYPE_CLASS_PLT also for the three
4465         TLS relocations.
4466
4467         * elf/do-lookup.h (FCT): st_value can be zero for STT_TLS symbols.
4468
4469         * po/fr.po: Update from translation team.
4470
4471         * elf/tls-macros.h: Add alternative macros for use in PIC.
4472
4473         * elf/dl-lookup.c: Include <tls.h>.
4474         * elf/do-lookup.h (FCT): Don't discard STT_TLS symbols.
4475
4476         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): More changes
4477         required by passing pointer to last element of the list.
4478
4479         * elf/dl-load.c (_dl_map_object_from_fd): Move adjustment of
4480         l_tls_initimage to a place where it actually is performed.
4481
4482         * sysdeps/generic/glob.c (glob): Explicitly set gl_pathc to zero
4483         after globfree() calls.
4484
4485         * elf/dl-deps.c (struct openaux_args): Add open_mode element.
4486         (openaux): Pass open_mode as new last argument to _dl_map_object.
4487         (_dl_map_object_deps): Add new argument open_mode.  Initialize
4488         open_mode element of args variable with it.
4489         * elf/dl-open.c (dl_open_worker): Pass __RTLD_DLOPEN flag is set to
4490         _dl_map_object_deps.
4491         * elf/rtld.c (dl_main): Add zero as last parameter to
4492         _dl_map_object_deps call.
4493         * sysdeps/generic/ldsodefs.h: Adjust prototype of _dl_map_object_deps.
4494         * elf/nodlopen2.c: New file.
4495         * elf/nodlopenmod2.c: New file.
4496         * elf/Makefile: Add rules to build and run nodlopen2.
4497
4498         * elf/tst-tls1.c: Move TLS helper macros to...
4499         * elf/tls-macros.h: ...here.  New file.
4500         * elf/tst-tls2.c: New file.
4501         * elf/Makefile (tests): Add tst-tls2.
4502         (distribute): Add tls-macros.h.
4503
4504         * po/sv.po: Update from translation team.
4505
4506         * elf/tst-tls1.c (main): Add complete set of tests.  Split
4507         architecture specific definitions from the actual test code.
4508
4509         * po/tr.po: Update from translation team.
4510
4511 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
4512
4513         * elf/Makefile (tests): Add tst-tls1.
4514         * elf/tst-tls1.c: New file.
4515
4516         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
4517         alignment of TCB for now.
4518
4519         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
4520         initialization image for the application itself.
4521
4522         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
4523         loop to initialize TLS block.
4524
4525 2002-02-08  Richard Henderson  <rth@redhat.com>
4526
4527         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
4528         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
4529
4530         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
4531
4532 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
4533
4534         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
4535
4536 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
4537
4538         * po/ca.po: Update from translation team.
4539         * po/sk.po: Likewise.
4540
4541         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
4542         (dl_main): Move dtv/static TLS handling before relocation.
4543         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
4544         TLS_INIT_TP to allocate and install the dtv/static TLS block.
4545         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
4546         so far uses TLS initialize GL(dl_tls_static_size) and
4547         GL(dl_tls_static_align) to account for the TCB.
4548         (_dl_allocate_tls): New function.
4549         * sysdeps/generic/ldsodefs.h (rtld_global): Add
4550         _dl_initial_dtv_malloced.
4551
4552         * configure.in: Test for __builtin_memset more realistically.
4553
4554         * csu/version.c (banner): If TLS support is available say so.
4555
4556 2002-02-04  H.J. Lu  <hjl@gnu.org>
4557
4558         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
4559         __attribute_used__.
4560         (__dl_runtime_resolve): Likewise.
4561
4562         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
4563         declaration.
4564
4565 2001-11-15  H.J. Lu  <hjl@gnu.org>
4566
4567         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
4568         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
4569
4570         * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
4571
4572 2002-02-07  H.J. Lu  <hjl@gnu.org>
4573
4574         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
4575         ".set noreorder".
4576         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
4577         Likewise.
4578
4579 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
4580
4581         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
4582
4583         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
4584         ___tls_get_addr_internal.
4585         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
4586
4587         * po/ko.po: Update from translation team.
4588
4589 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
4590
4591         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
4592         attribute, change __pad{1,2} type to unsigned int.
4593         (struct stat64): Remove packed attribute.
4594
4595 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
4596
4597         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
4598
4599 2002-02-07  Andreas Schwab  <schwab@suse.de>
4600
4601         * configure.in: Fix check for -zcombreloc.
4602
4603 2002-02-06  H.J. Lu  <hjl@gnu.org>
4604
4605         * config.h.in (HAVE_BUILTIN_MEMSET): New.
4606         * configure.in: Check if __builtin_memset really works.
4607         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
4608         __GNUC_PREREQ (2, 96) before using __builtin_memset.
4609
4610 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
4611
4612         * io/bug-ftw3.c (main): Don't try the test if root.
4613
4614 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
4615
4616         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
4617         constraints.
4618         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
4619         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
4620         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
4621         Likewise.
4622         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
4623         a weak alias for __clone.
4624         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
4625         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
4626         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
4627         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
4628         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
4629         a weak alias for __mmap64.
4630
4631 2002-02-05  H.J. Lu  <hjl@gnu.org>
4632
4633         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
4634         (atomic_add): Likewise.
4635         (compare_and_swap): Likewise.
4636         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
4637
4638 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
4639
4640         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
4641
4642         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
4643         alignment of the TCB and store total size and alignment of static
4644         TLS block in _dl_tls_static_size and _dl_tls_static_align.
4645         tls_index is a typedef.
4646         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
4647         _dl_tls_static_align.
4648         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
4649         * elf/dl-support.c: Define _dl_tls_static_size and
4650         _dl_tls_static_align.
4651
4652 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
4653
4654         * configure.in: Add --without-tls option.
4655         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
4656         --without-tls is given.
4657
4658         * sysdeps/generic/dl-tls.c: Include <tls.h>.
4659
4660         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
4661
4662 2002-02-06  Roland McGrath  <roland@frob.com>
4663
4664         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
4665         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
4666
4667         * scripts/versions.awk: Improve error message for missing version.
4668         Each version inherits from the last one only if they have the same
4669         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
4670         but not GLIBC_x and FOO_y.
4671
4672         * scripts/firstversions.awk: Handle libraries that don't have each
4673         particular version named in the third column of shlib-versions.
4674
4675         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
4676
4677 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
4678
4679         * Versions.def [ld]: Add GLIBC_2.3.
4680         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
4681         * elf/Makefile (dl-routines): Add dl-tls.
4682         (distribute): Add dl-tls.h.
4683         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
4684         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
4685         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
4686         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
4687         along with the other info in the link map.  Change queueing of init
4688         images for double linked list.  Use _dl_next_tls_modid to compute
4689         l_tls_modid.
4690         * elf/rtld.c (_dl_start_final): Store alignment requirement
4691         along with the other info in rtld map and executable map.
4692         (dl_main): Add ld.so to the init image list if necessary.  Compute
4693         final module ID with _dl_next_tls_modid.
4694         * include/link.h (struct link_map): Add l_tls_previmage and
4695         l_tls_align.
4696         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
4697         * sysdeps/i386/elf/Versions: New file.
4698         * sysdeps/generic/dl-tls.c: New file.
4699         * sysdeps/generic/dl-tls.h: New file.
4700         * sysdeps/i386/dl-tls.h: New file.
4701
4702 2002-02-06  Roland McGrath  <roland@frob.com>
4703
4704         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
4705         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
4706
4707 2002-01-05  Roland McGrath  <roland@frob.com>
4708
4709         * sysdeps/mach/configure.in: New file.
4710         * sysdeps/mach/configure: New generated file.
4711
4712         * mach/Makefile (user-interfaces): Remove default_pager_helper.
4713         It has never been used by anything.
4714
4715 2002-02-06  H.J. Lu  <hjl@gnu.org>
4716
4717         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
4718         is included.
4719
4720 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
4721
4722         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
4723         attribute((packed)) to counter stupid people misusing gcc options.
4724         (struct stat64): Likewise.
4725
4726 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
4727
4728         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
4729         the variables which are used as booleans.
4730
4731 2002-02-06  Andreas Jaeger  <aj@suse.de>
4732
4733         * include/libc-symbols.h (INTUSE): Renamed from INT.
4734         * elf/dl-deps.c: Change users.
4735         * sysdeps/generic/dl-sysdep.c: Likewise.
4736         * sysdeps/generic/dl-cache.c: Likewise.
4737         * elf/dl-reloc.c: Likewise.
4738         * elf/rtld.c: Likewise.
4739         * elf/dl-version.c: Likewise.
4740         * elf/dl-load.c: Likewise.
4741         * elf/dl-dst.h: Likewise.
4742         * elf/dl-init.c: Likewise.
4743         * elf/dl-error.c: Likewise.
4744         * elf/dl-fini.c: Likewise.
4745         * elf/dl-runtime.c: Likewise.
4746         * elf/do-lookup.h: Likewise.
4747
4748         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
4749         definition.
4750         * stdio-common/_itowa.h: Likewise.
4751
4752 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
4753
4754         * elf/dl-minimal.c: Define _itoa_lower_digits.
4755
4756         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
4757         DT_FLAGS set.
4758
4759         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
4760         loading modules with the DF_STATIC_TLS flag set.
4761         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
4762         element.
4763         * include/link.h (struct link_map): Add l_flags field.
4764         * elf/elf.h (DF_STATIC_TLS): New definition.
4765
4766         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
4767         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
4768
4769         * elf/rtld.c (process_dl_debug): Correct printing help message.
4770         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
4771         for %s.
4772
4773         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
4774         definition and pass &errno in use of this variable.
4775         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
4776
4777 2002-02-04  Andreas Schwab  <schwab@suse.de>
4778
4779         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
4780         * locale/programs/charmap-dir.c: Wrap calls that output messages
4781         with WITH_CUR_LOCALE.  Include "localedef.h" first.
4782         * locale/programs/charmap.c: Likewise.
4783         * locale/programs/ld-address.c: Likewise.
4784         * locale/programs/ld-collate.c: Likewise.
4785         * locale/programs/ld-ctype.c: Likewise.
4786         * locale/programs/ld-identification.c: Likewise.
4787         * locale/programs/ld-measurement.c: Likewise.
4788         * locale/programs/ld-messages.c: Likewise.
4789         * locale/programs/ld-monetary.c: Likewise.
4790         * locale/programs/ld-name.c: Likewise.
4791         * locale/programs/ld-numeric.c: Likewise.
4792         * locale/programs/ld-paper.c: Likewise.
4793         * locale/programs/ld-telephone.c: Likewise.
4794         * locale/programs/ld-time.c: Likewise.
4795         * locale/programs/linereader.c: Likewise.
4796         * locale/programs/linereader.h: Likewise.
4797         * locale/programs/localedef.c: Likewise.
4798         * locale/programs/locfile.c: Likewise.
4799         * locale/programs/repertoire.c: Likewise.
4800
4801 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
4802
4803         * elf/rtld.c (_dl_start_final): Determine load address to locate
4804         ehdr with GL(dl_rtld_map).l_map_start.
4805
4806         * po/ca.po: Update from translation team.
4807
4808         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
4809         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
4810         header entry.
4811         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
4812         _dl_tls_module_cnt.
4813         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
4814
4815 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
4816
4817         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
4818         * include/link.h (struct link_map): Add various members for TLS
4819         information.
4820         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
4821         _rtld_tlsoffset, add _dl_initimage_list.
4822         * sysdeps/i386/dl-lookupcfg.h: New file.
4823         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
4824         TLS relocation.  When using TLS we now use RESOLVE_MAP.
4825         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
4826         is used.
4827
4828         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
4829         unused.
4830
4831         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
4832         thread-pointer as soon as possible.
4833         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
4834         elements in rtld_global.
4835         * sysdeps/generic/tls.h: New file.
4836         * elf/Makefile (distribute): Add tls.h.
4837         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
4838         relocations.  Not complete yet.
4839
4840         * resolv/resolv.h: Allow user to define __need_res_state and only
4841         define __res_start structure then.
4842         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
4843
4844         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
4845         dl_cpuclock_offset initialization to _dl_start_final.
4846         (_dl_show_auxv): Avoid unnecessary sign extension.
4847         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
4848
4849 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
4850
4851         * config.h.in: Add HAVE_TLS_SUPPORT.
4852         * sysdeps/i386/elf/configure.in: New file.
4853
4854 2002-02-03  Andreas Schwab  <schwab@suse.de>
4855
4856         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
4857         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
4858
4859 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
4860
4861         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
4862         alloca if the memory reqirements are too high.
4863
4864 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
4865
4866         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
4867         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
4868         the former is available anyway and speed isn't important here.
4869         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
4870         * elf/dl-version.c (match_symbol): Likewise.
4871         (_dl_check_map_versions): Likewise.
4872         * elf/rtld.c (process_envvars): Likewise.
4873         (print_statistics): Likewise.
4874         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
4875         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
4876         bases.  Add assert to catch uses of unimplemented features.
4877         (__strsep): Add assert to catch uses of unimplemented features.
4878         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
4879         and avoid inline optimization.
4880         * elf/rtld.c (process_envvars): Likewise.
4881         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
4882         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
4883         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
4884
4885 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
4886
4887         * stdio-common/_itoa.h: Minor simplifications of the code.
4888         * stdio-common/_itoa.c: Likewise.
4889
4890         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
4891         instead of _dl_printf for debugging info output.
4892
4893         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
4894         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
4895
4896 2002-02-01  H.J. Lu  <hjl@gnu.org>
4897
4898         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
4899         (atomic_add): Likewise.
4900         (compare_and_swap): Return 0 only when failed to compare. Use
4901         branch likely.
4902
4903         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
4904         branch likely.
4905
4906 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
4907
4908         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
4909
4910 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
4911
4912         * elf/dl-minimal.c (__strsep): New minimal implementation.
4913
4914 2002-02-02  Paul Eggert  <eggert@twinsun.com>
4915
4916         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
4917         (__mktime_internal): If no tm_isdst is requested, prefer solutions
4918         with tm_isdst > 0 when the requested time falls within a
4919         spring-forward gap [PR libc/2894].
4920
4921 2002-02-03  Andreas Schwab  <schwab@suse.de>
4922
4923         * stdio-common/tst-rndseek.c: Increase timeout.
4924
4925 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
4926
4927         Change ld.so to not use functions which are exported.  One cannot
4928         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
4929         definitions.
4930         * include/libc-symbols.h: Define INT and INTDEF.
4931         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
4932         _dl_signal_error_internal, _dl_map_object_internal,
4933         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
4934         _dl_lookup_versioned_symbol_internal,
4935         _dl_relocate_object_internal, _dl_debug_state_internal,
4936         _dl_start_profile_internal, and _dl_unload_cache_internal.
4937         * include/dlfcn.h: Declare _dl_catch_error_internal.
4938         * elf/rtld.c: Use INT for calls to any of the *_internal functions
4939         above.  Add INTDEF to function definitions.
4940         * elf/dl-debug.c: Likewise.
4941         * elf/dl-deps.c: Likewise.
4942         * elf/dl-dst.h: Likewise.
4943         * elf/dl-error.c: Likewise.
4944         * elf/dl-fini.c: Likewise.
4945         * elf/dl-init.c: Likewise.
4946         * elf/dl-load.c: Likewise.
4947         * elf/dl-lookup.c: Likewise.
4948         * elf/dl-misc.c: Likewise.
4949         * elf/dl-open.c: Likewise.
4950         * elf/dl-profile.c: Likewise.
4951         * elf/dl-reloc.c: Likewise.
4952         * elf/dl-runtime.c: Likewise.
4953         * elf/dl-version.c: Likewise.
4954         * elf/do-lookup.h: Likewise.
4955         * sysdeps/generic/dl-cache.c: Likewise.
4956         * sysdeps/generic/dl-sysdep.c: Likewise.
4957         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
4958         instead of _dl_init.
4959         * sysdeps/arm/dl-machine.h: Likewise.
4960         * sysdeps/cris/dl-machine.h: Likewise.
4961         * sysdeps/hppa/dl-machine.h: Likewise.
4962         * sysdeps/i386/dl-machine.h: Likewise.
4963         * sysdeps/ia64/dl-machine.h: Likewise.
4964         * sysdeps/m68k/dl-machine.h: Likewise.
4965         * sysdeps/mips/dl-machine.h: Likewise.
4966         * sysdeps/mips/mips64/dl-machine.h: Likewise.
4967         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
4968         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
4969         * sysdeps/sh/dl-machine.h: Likewise.
4970         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
4971         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
4972         * sysdeps/x86_64/dl-machine.h: Likewise.
4973         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
4974
4975         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
4976         and _dl_debug_initialize.
4977
4978         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
4979         more information.
4980         * elf/rtld.c (dl_main): Avoid strrchr.
4981         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
4982         result of readlink.  Search from the back for '/'.
4983
4984         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
4985         strncpy if possible.
4986
4987         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
4988         strncmp.
4989         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
4990         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
4991         strspn, and strcspn.
4992         (process_envvars): Don't use strcspn.
4993
4994         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
4995         (_dl_dst_substitute): Likewise.
4996
4997 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
4998
4999         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
5000         code which is never used when relocating ld.so itself.
5001
5002         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
5003         starting ld.so itself.  Move l_addr variable initialization closer
5004         to use.
5005         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
5006
5007 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
5008
5009         * Versions.def (libc): Add GLIBC_PRIVATE.
5010         (libdb, libnss_db, libdb1): Remove.
5011         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
5012         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
5013         (libpthread): Add GLIBC_PRIVATE.
5014         (libresolv): Likewise, remove GLIBC_2.1.
5015         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
5016         GLIBC_2.2.3, GLIBC_2.3.
5017         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
5018         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
5019         _dl_sym, _dl_vsym): Likewise.
5020         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
5021         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
5022         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
5023         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
5024         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
5025         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
5026         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
5027         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
5028         Likewise.
5029         (_dl_object_relocation_scope): Remove.
5030         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
5031         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
5032         __gconv_cache): Move to GLIBC_PRIVATE.
5033         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
5034         __internal_setnetgrent): Likewise.
5035         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
5036         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
5037         * locale/Versions (__collate_element_hash, __collate_element_strings,
5038         __collate_symbol_classes, __collate_symbol_hash,
5039         __collate_symbol_strings, _nl_current_LC_COLLATE,
5040         _nl_current_LC_CTYPE): Likewise.
5041         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
5042         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
5043         (libnss_nis, libnss_nisplus): Likewise.
5044         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
5045         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
5046         (libnss_files): Move all symbols to GLIBC_PRIVATE.
5047         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
5048         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
5049         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
5050         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
5051         __ns_get16, __ns_samename): Likewise.
5052         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
5053         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
5054         GLIBC_PRIVATE.
5055         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
5056         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
5057         __libc_connect): Likewise.
5058         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
5059         Likewise.
5060         * stdlib/Versions (__libc_system): Likewise.
5061         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
5062         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
5063         * sysdeps/ia64/fpu/Versions: Likewise.
5064         * sysdeps/ia64/Versions: Likewise.
5065         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
5066         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
5067         to GLIBC_PRIVATE.
5068         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
5069         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
5070         __libc_sigaction): Likewise.
5071         * termios/Versions (__libc_tcdrain): Likewise.
5072
5073         * misc/sys/cdefs (__attribute_noinline__): Define.
5074         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
5075         __attribute_noinline__.
5076
5077         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
5078         * elf/dl-xstat64.c: New file.
5079         * elf/dl-fxstat64.c: New file.
5080         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
5081         don't export __fxstat64 at multiple versions.
5082         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
5083         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
5084
5085 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
5086
5087         * locale/program/ld-collate.c (collate_finish): Assign a wide
5088         char collation sequence value to multi character collating
5089         elements, and avoid over writing by non-character elements.
5090
5091 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
5092
5093         * elf/Makefile (distribute): Add dl-procinfo.c.
5094         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
5095         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
5096
5097 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
5098
5099         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
5100         definition.
5101         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
5102         _rtld_global struct.
5103         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
5104         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
5105         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
5106         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
5107         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
5108         _dl_fpu_control_set): Remove unused externs.
5109         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
5110         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
5111         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
5112         related variables in _rtld_global struct.
5113         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
5114         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
5115         unused extern.
5116
5117 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
5118
5119         * sysdeps/generic/dl-procinfo.c: New file.
5120
5121 2002-02-01  Andreas Schwab  <schwab@suse.de>
5122
5123         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
5124
5125 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
5126
5127         * elf/rtld.c (_dl_start): Mark as internal_function.
5128         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
5129         in register.
5130         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
5131         General pretty printing.
5132
5133 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
5134
5135         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
5136         * elf/dl-reloc.c: Pretty printing.
5137         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
5138         procinfo-related variables in rtld_global struct.
5139         * elf/dl-support.c: Likewise.
5140         * elf/rtld.c: Likewise.
5141         * sysdeps/i386/i686/Makefile: Likewise.
5142         * sysdeps/i386/i686/hp-timing.c: Likewise.
5143         * sysdeps/i386/i686/hp-timing.h: Likewise.
5144         * sysdeps/ia64/Makefile: Likewise.
5145         * sysdeps/ia64/hp-timing.c: Likewise.
5146         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
5147         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
5148         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
5149         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
5150         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
5151         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
5152         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
5153         * sysdeps/x86_64/Makefile: Likewise.
5154
5155         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
5156         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
5157         _dl_debug_fd to rtld_global.
5158         * elf/Versions: Likewise.
5159         * elf/dl-close.c: Likewise.
5160         * elf/dl-iteratephdr.c: Likewise.
5161         * elf/dl-lookup.c: Likewise.
5162         * elf/dl-misc.c: Likewise.
5163         * elf/dl-open.c: Likewise.
5164         * elf/dl-support.c: Likewise.
5165         * elf/do-lookup.h: Likewise.
5166         * elf/rtld.c: Likewise.
5167         * sysdeps/generic/dl-cache.c: Likewise.
5168         * sysdeps/generic/dl-sysdep.c: Likewise.
5169         * sysdeps/ia64/Versions: Likewise.
5170         * sysdeps/unix/clock_gettime.c: Likewise.
5171         * sysdeps/unix/clock_settime.c: Likewise.
5172         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
5173         * sysdeps/sparc/Versions: Removed.
5174         * sysdeps/i386/i686/Versions : Removed.
5175         * sysdeps/x86_64/Versions: Removed.
5176         * configure.in: Define HAVE_PROTECTED if .protected is available.
5177         * config.h.in: Add entry for HAVE_PROTECTED.
5178
5179 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
5180
5181         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
5182         code in struct _rtld_global.  Export this struct, remove all
5183         exports for the signal variables.
5184         * sysdeps/arm/dl-machine: Likewise.
5185         * sysdeps/generic/dl-origin: Likewise.
5186         * sysdeps/generic/dl-sysdep: Likewise.
5187         * sysdeps/generic/dl-cache: Likewise.
5188         * sysdeps/hppa/dl-fptr: Likewise.
5189         * sysdeps/hppa/dl-machine: Likewise.
5190         * sysdeps/cris/dl-machine: Likewise.
5191         * sysdeps/i386/dl-machine: Likewise.
5192         * sysdeps/ia64/dl-machine: Likewise.
5193         * sysdeps/m68k/dl-machine: Likewise.
5194         * sysdeps/mach/hurd/dl-sysdep: Likewise.
5195         * sysdeps/mips/mips64/dl-machine: Likewise.
5196         * sysdeps/mips/dl-machine: Likewise.
5197         * sysdeps/powerpc/elf/libc-start: Likewise.
5198         * sysdeps/powerpc/dl-machine: Likewise.
5199         * sysdeps/powerpc/dl-start: Likewise.
5200         * sysdeps/sparc/sparc32/dl-machine: Likewise.
5201         * sysdeps/sparc/sparc64/dl-machine: Likewise.
5202         * sysdeps/sh/dl-machine: Likewise.
5203         * sysdeps/s390/s390-32/dl-machine: Likewise.
5204         * sysdeps/s390/s390-64/dl-machine: Likewise.
5205         * sysdeps/unix/sysv/aix/libc-start: Likewise.
5206         * sysdeps/unix/sysv/aix/start-libc: Likewise.
5207         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
5208         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
5209         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
5210         * sysdeps/x86_64/dl-machine: Likewise.
5211
5212 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
5213
5214         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
5215         are too high.
5216
5217 2002-01-31  Andreas Schwab  <schwab@suse.de>
5218
5219         * sysdeps/posix/readv.c: Check for ssize_t overflow.
5220
5221 2002-01-31  Andreas Schwab  <schwab@suse.de>
5222
5223         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
5224         reference to _dl_pagesize.
5225
5226 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
5227
5228         * Versions.def [ld]: Add GLIBC_2.3.
5229         * elf/dl-addr.c: Move global variables for SHARED code in struct
5230         _rtld_global.  Export this struct, remove all exports for the
5231         signal variables.
5232         * elf/dl-close.c: Likewise.
5233         * elf/dl-conflict.c: Likewise.
5234         * elf/dl-debug.c: Likewise.
5235         * elf/dl-deps.c: Likewise.
5236         * elf/dl-dst.h: Likewise.
5237         * elf/dl-error.c: Likewise.
5238         * elf/dl-fini.c: Likewise.
5239         * elf/dl-init.c: Likewise.
5240         * elf/dl-iteratephdr.c: Likewise.
5241         * elf/dl-libc.c: Likewise.
5242         * elf/dl-load.c: Likewise.
5243         * elf/dl-lookup.c: Likewise.
5244         * elf/dl-minimal.c: Likewise.
5245         * elf/dl-object.c: Likewise.
5246         * elf/dl-open.c: Likewise.
5247         * elf/dl-profile.c: Likewise.
5248         * elf/dl-profstub.c: Likewise.
5249         * elf/dl-reloc.c: Likewise.
5250         * elf/dl-runtime.c: Likewise.
5251         * elf/dl-support.c: Likewise.
5252         * elf/dl-sym.c: Likewise.
5253         * elf/dl-version.c: Likewise.
5254         * elf/do-lookup.h: Likewise.
5255         * elf/do-rel.h: Likewise.
5256         * elf/dynamic-link.h: Likewise.
5257         * elf/rtld.c: Likewise.
5258         * sysdeps/generic/dl-cache.c: Likewise.
5259         * sysdeps/generic/dl-sysdep.c: Likewise.
5260         * sysdeps/generic/ldsodefs.h: Likewise.
5261         * sysdeps/generic/libc-start.c: Likewise.
5262         * sysdeps/i386/dl-machine.h: Likewise.
5263         * sysdeps/ia64/dl-fptr.c: Likewise.
5264         * sysdeps/ia64/dl-machine.h: Likewise.
5265         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
5266         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
5267         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
5268         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
5269         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
5270         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
5271         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
5272         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
5273
5274 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
5275
5276         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
5277         to avoid warning
5278         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
5279
5280         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
5281         SHARED version.
5282         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
5283
5284         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
5285
5286 2002-01-29  Ben Collins  <bcollins@debian.org>
5287
5288         * string/bits/string2.h (__mempcpy): Protect size arg for
5289         addition when using __builtin_memcpy.
5290
5291 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
5292
5293         * stdlib/Makefile (tests): Add tst-qsort.
5294         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
5295
5296         * manual/signal.texi (Process Signal Mask): Document that
5297         pthread_sigmask, not sigprocmask, must be used in MT programs.
5298         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
5299
5300         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
5301         found.
5302         * misc/Makefile (tests): Add tst-hsearch.
5303         * misc/tst-hsearch.c: New file.
5304
5305 2002-01-18  Wolfram Gloger  <wg@malloc.de>
5306
5307         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
5308         * malloc/malloc.h: Likewise.
5309         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
5310         * malloc/arena.c: New file.
5311         * malloc/hooks.c: New file.
5312         * malloc/tst-mallocstate.c: New file.
5313         * malloc/Makefile: Add new testcase tst-mallocstate.
5314         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
5315
5316 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
5317
5318         * stdlib/msort.c: Remove last patch.  The optimization violates the
5319         same rule which qsort.c had problems with.
5320
5321 2002-01-27  Paul Eggert  <eggert@twinsun.com>
5322
5323         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
5324         to a pivot element that lies outside the array to be sorted, as
5325         ISO C99 requires that the comparison function be called only with
5326         addresses of array elements [PR libc/2880].
5327
5328 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
5329
5330         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
5331         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
5332
5333         * timezone/asia: Update from tzdata2002b.
5334         * timezone/australasia: Likewise.
5335         * timezone/backward: Likewise.
5336         * timezone/europe: Likewise.
5337         * timezone/leapseconds: Likewise.
5338         * timezone/iso3166.tab: Likewise.
5339         * timezone/zone.tab: Likewise.
5340
5341 2002-01-23  Richard Henderson  <rth@redhat.com>
5342
5343         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
5344
5345 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
5346
5347         * string/strxfrm.c: Allocate one more byte for rulearr and clear
5348         this element [PR libc/2855].
5349
5350         * string/strcoll.c: Handle zero-length arguments specially
5351         [PR libc/2856].
5352
5353 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
5354
5355         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
5356         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
5357         short lengths and constant src.
5358         (strcpy): Don't optimize for gcc 3.0+.
5359         (__stpcpy): For gcc 3.0+, don't use
5360         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
5361         for short string literal src.
5362
5363 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
5364
5365         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
5366         Set for arm, too.
5367
5368 2001-01-22  Paul Eggert  <eggert@twinsun.com>
5369
5370         * manual/llio.texi (Linked Channels, Cleaning Streams):
5371         Make it clearer that a just-opened input stream might need cleaning.
5372
5373 2002-01-21  H.J. Lu  <hjl@gnu.org>
5374
5375         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
5376         Don't use label at end of compound statement.
5377
5378 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
5379
5380         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
5381         Remove test for negative integer arg; sin_pi does it correctly.
5382
5383 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
5384
5385         * nscd/Makefile (distribute): Filter out xmalloc.c.
5386
5387 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
5388
5389         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
5390         Set offset if read end wasn't the buffer end.
5391         (_IO_file_seekoff_mmap): New function.
5392         (_IO_file_xsgetn_mmap): New function.
5393         (_IO_file_jumps_mmap): Use the two new functions.
5394         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
5395         != end buffer.
5396         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
5397         _IO_file_underflow_mmap.
5398         * libio/iofopen.c: Don't position file descriptor at end of file.
5399         * libio/tst-widetext.c: Improve error messages.
5400         * stdio-common/tst-rndseek.c: Likewise.
5401
5402 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
5403
5404         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
5405         end of enum for !_GNU_SOURCE.
5406         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
5407         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
5408         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
5409         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
5410         values unless _GNU_SOURCE.
5411
5412         * iconvdata/tcvn5712-1.c: Minor cleanups.
5413
5414 2002-01-18  Andreas Schwab  <schwab@suse.de>
5415
5416         * sysdeps/unix/sysv/linux/configure.in
5417         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
5418
5419 2002-01-16  Roger Sayle  <roger@eyesopen.com>
5420
5421         * stdlib/msort.c (msort_with_tmp): Replace implementation with
5422         more efficient "Towers of Hanoi" mergesort.
5423         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
5424         for generic, sizeof(int) and sizeof(long) variants respectively.
5425
5426 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
5427
5428         * manual/syslog.texi (openlog): Describe possible problems with
5429         first parameter.
5430         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
5431
5432         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
5433         * nscd/connections.c (begin_drop_privileges): New function.
5434         (finish_drop_privileges): New function.
5435         (nscd_init): Call the new functions which also install all groups
5436         for the server user.
5437         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
5438         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
5439
5440 2002-01-17  H.J. Lu  <hjl@gnu.org>
5441
5442         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
5443         `const' from `got'.
5444
5445 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5446
5447         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
5448         instructions for pointer operations.
5449         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
5450
5451 2002-01-17  Andreas Jaeger  <aj@suse.de>
5452
5453         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
5454         __uint128_t build-in.
5455
5456         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
5457         PowerPC, sync with 2.2 branch.
5458
5459 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
5460
5461         * posix/getconf.c: Update copyright year.
5462         * nss/getent.c: Likewise.
5463         * nscd/nscd_nischeck.c: Likewise.
5464         * iconv/iconvconfig.c: Likewise.
5465         * iconv/iconv_prog.c: Likewise.
5466         * elf/ldconfig.c: Likewise.
5467         * catgets/gencat.c: Likewise.
5468         * csu/version.c: Likewise.
5469         * elf/ldd.bash.in: Likewise.
5470         * elf/sprof.c (print_version): Likewise.
5471         * locale/programs/locale.c: Likewise.
5472         * locale/programs/localedef.c: Likewise.
5473         * nscd/nscd.c (print_version): Likewise.
5474         * debug/xtrace.sh: Likewise.
5475         * malloc/memusage.sh: Likewise.
5476         * malloc/mtrace.pl: Likewise.
5477
5478 2002-01-16  Andreas Schwab  <schwab@suse.de>
5479
5480         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
5481         reliably remove "-ia64" from rtld name.
5482
5483 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
5484
5485         * iconvdata/gb18030.c: Bug fixes and support for more characters.
5486         Patch by Yu Shao <yshao@redhat.com>.
5487
5488 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5489
5490         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
5491         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
5492         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
5493
5494 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5495
5496         * sysdeps/s390/fpu/libm-test-ulps: Update.
5497
5498 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
5499
5500         * elf/elf.h: Update x86 relocations.
5501
5502 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
5503
5504         * locale/programs/charmap.c (new_width): Check whether byte
5505         sequences for both ends of range have the same length.
5506
5507 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
5508
5509         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
5510
5511 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
5512
5513         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
5514         string literals.
5515         (__full_ieee754_sqrt): Add __attribute_used__.
5516
5517 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
5518
5519         * sysdeps/generic/group_member.c (__group_member): Also check
5520         groups[0] [PR libc/2781].
5521
5522 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
5523
5524         * Makefile (distribute): Add scripts/cpp.
5525         * elf/Makefile (distribute): Add reldep6mod[01234].c,
5526         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
5527         unwind-dw2-fde.h, and dwarf2.h.
5528         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
5529         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
5530         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
5531         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
5532
5533 2002-01-07  Roland McGrath  <roland@frob.com>
5534
5535         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
5536         volatile on type of ARGC so the compiler doesn't get clever.
5537
5538 2002-01-07  Andreas Jaeger  <aj@suse.de>
5539
5540         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
5541         * sysdeps/i386/bits/byteswap.h: Likewise.
5542         * sysdeps/ia64/bits/byteswap.h: Likewise.
5543         * sysdeps/m68k/bits/byteswap.h: Likewise.
5544         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
5545         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757].
5546
5547 2002-01-02  Bruno Haible  <bruno@clisp.org>
5548
5549         * intl/plural.y: Fix %expect count.
5550
5551 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
5552
5553         * elf/Makefile (routines, shared-only-routines): Add
5554         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
5555         * elf/elf.h (PT_GNU_EH_FRAME): Define.
5556         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
5557         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
5558         Optimize if .eh_frame section contains no FDEs.
5559         (__register_frame, __deregister_frame_info_bases,
5560         __deregister_frame): Likewise.
5561         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
5562         DW_CFA_restore handling.
5563
5564 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
5565
5566         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
5567
5568         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
5569         for x < 0.25 and restore original range reduction method.
5570         (__ieee754_lgammal_r): Make sure signgam is set before returning.
5571
5572 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
5573
5574         * libio/fileops.c (_IO_file_underflow_mmap): New function.
5575         (_IO_file_close_mmap): New function.
5576         (_IO_file_jumps_mmap): New variable.
5577         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
5578         trying to convert rest of byte buffer.
5579         (_IO_wfile_underflow_mmap): New function.
5580         (_IO_wfile_jumps_mmap): New variable.
5581         * libio/iofopen.c (__fopen_maybe_mmap): New function.
5582         (__fopen_internal): New function.  Split out from _IO_new_fopen.
5583         (_IO_new_fopen): Call __fopen_internal.
5584         * libio/iofopen64.c: Just call __fopen_internal.
5585         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
5586         successfully.
5587         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
5588         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
5589         _IO_file_close_mmap.
5590
5591         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
5592         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
5593
5594         * stdio-common/Makefile (tests): Add tst-rndseek.
5595         * stdio-common/tst-rndseek.c: New file.
5596
5597 2002-01-05  Roland McGrath  <roland@frob.com>
5598
5599         * config.h.in (HAVE_MIG_RETCODE): New #undef.
5600         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
5601         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
5602         * sysdeps/mach/hurd/configure: Regenerated.
5603
5604 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
5605
5606         * elf/elf.h: Add more TLS definitions.
5607
5608 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
5609
5610         * include/features.h (__GLIBC_MINOR__): Bump to 3.
5611
5612 2002-01-02  Roland McGrath  <roland@frob.com>
5613
5614         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
5615         __sigisemptyset.  Don't use MASK uninitialized.
5616
5617         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
5618         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
5619         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
5620         __sigdelset, __sigaddset, __sigorset.
5621
5622         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
5623         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
5624
5625         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
5626         _hurd_ports is null.
5627
5628         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
5629         for old CMU and new OSF Mach interface flavors.
5630         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
5631         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
5632
5633         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
5634
5635         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
5636         Pass extra arguments to task_create for OSF variant.
5637         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
5638
5639         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
5640         conditional on [HAVE_AUX_VECTOR].
5641
5642         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
5643         mach_msg_timeout_t as type of final argument.
5644
5645         * hurd/privports.c (__get_privileged_ports):
5646         Change host_priv_t to mach_port_t in argument type.
5647         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
5648         Update decls.
5649
5650         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
5651         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
5652         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
5653         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
5654         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
5655         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
5656
5657 2002-01-01  Roland McGrath  <roland@frob.com>
5658
5659         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
5660
5661 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
5662
5663         * include/stdlib.h: Define inlines for the _l variants of the strto*
5664         functions.
5665
5666 2002-01-01  Roland McGrath  <roland@frob.com>
5667
5668         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
5669
5670         * mach/Machrules (MIG): Set CPP as well as CC.
5671
5672 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
5673
5674         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
5675         locale to parse /proc/loadavg [PR libc/2760].
5676
5677 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
5678
5679         * elf/dl-conflict.c: Include sys/param.h.
5680         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
5681         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
5682         warning.
5683         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
5684         literals to avoid warnings.
5685
5686 2001-12-31  Andreas Jaeger  <aj@suse.de>
5687
5688         * configure.in: Don't check for gsed since we do not use it anywhere.
5689
5690 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
5691
5692         * io/fts.c: Update from BSD to fix memory leaks.
5693
5694 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
5695
5696         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
5697         * elf/chroot_canon.c: Likewise.
5698         * elf/dl-object.c: Likewise.
5699         * iconv/iconv_charmap.c: Likewise.
5700         * iconv/iconv_prog.c: Likewise.
5701         * libio/iogetdelim.c: Likewise.
5702         * locale/lc-time.c: Likewise.
5703         * stdlib/canonicalize.c: Likewise.
5704         * sunrpc/svc.c: Likewise.
5705         * sysdeps/generic/glob.c: Likewise.
5706
5707 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5708
5709         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
5710         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
5711         remove high order bit from the program counter.
5712         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
5713
5714 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
5715
5716         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
5717         unnecessary code and add missing reloc types.
5718         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
5719         case for reloc type R_390_NONE.
5720
5721 2001-12-28  Andreas Jaeger  <aj@suse.de>
5722
5723         * io/bug-ftw3.c: Include string.h for prototypes.
5724
5725         * crypt/md5test.c (main): Remove unused variable.
5726
5727         * dlfcn/modstatic.c: Add prototype to avoid warning.
5728
5729 2001-12-26  Roland McGrath  <roland@frob.com>
5730
5731         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
5732         check only (SS->pending & MASK) for the signal to return.
5733         From Jeroen Dekkers <jeroen@dekkers.cx>.
5734
5735 2001-12-22  Roland McGrath  <roland@frob.com>
5736
5737         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
5738         Use preprocessor #if conditionals instead of `if' to avoid
5739         warnings about divide by zero in dead code.
5740
5741         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
5742         _hurd_port_init, and __hurd_self_sigstate.
5743
5744         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
5745
5746 2001-12-21  Andreas Jaeger  <aj@suse.de>
5747
5748         * elf/dblloadmod1.c: Add prototype to avoid warning.
5749         * elf/dblloadmod2.c: Likewise.
5750         * elf/dblloadmod3.c: Likewise.
5751         * elf/reldepmod5.c: Likewise.
5752         * elf/reldepmod6.c: Likewise.
5753
5754         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
5755         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
5756         used on all architectures.
5757
5758         * sunrpc/svc_tcp.c: Add noreturn attribute for
5759         svctcp_rendezvous_abort.
5760         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
5761
5762         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
5763         to avoid warning.
5764
5765 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
5766
5767         * manual/llio.texi (aio_fsync): Fix a typo.
5768         Patch by Tammy Fox <tfox@redhat.com>.
5769
5770 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
5771
5772         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
5773         stack bias from child stack pointer before passing it to clone syscall.
5774
5775 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
5776
5777         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
5778         _SC_TZNAME_MAX.
5779         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
5780         Reported by Thorsten Kukuk <kukuk@suse.de>.
5781
5782         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
5783         add some casts.
5784
5785         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
5786
5787 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
5788
5789         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
5790         conforming: return EBADF if file descriptor is invalid and EINVAL
5791         if file descriptor is no valid tty.
5792         * login/tst-grantpt.c: New file.
5793         * login/Makefile (tests): Add tst-grantpt.
5794
5795 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
5796
5797         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
5798         different than implemented in last patch.
5799         * io/bug-ftw3.c: Adjust test for changed handling of
5800         inaccessibility of toplevel dir.
5801
5802 2001-12-16  Roland McGrath  <roland@frob.com>
5803
5804         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
5805         * grp/initgroups.c (internal_getgrouplist): Likewise.
5806
5807         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
5808         `default:' to silence new GCC warning.
5809         Rewrite cast of lvalue to silence new GCC warning.
5810
5811         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
5812
5813         * sysdeps/mach/hurd/spawni.c: New file, by me with a
5814         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
5815
5816 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
5817
5818         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
5819         Patch by Stephen R. van den Berg.
5820
5821         * crypt/md5.h: Define md5_uintptr.
5822
5823 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
5824
5825         * libio/tst_swprintf.c (main): Add test for string argument with
5826         zero precision.
5827         * stdio-common/Makefile (tests): Add tst-sprintf.
5828         * stdio-common/tst-sprintf.c: New file.
5829
5830 2001-12-13  Andreas Schwab  <schwab@suse.de>
5831
5832         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
5833         zero precision with wide character string format.
5834
5835 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
5836
5837         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
5838         but have a user supplied buffer, return the empty buffer, not NULL.
5839
5840 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
5841
5842         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
5843         Patch by Eric Sharkey <sharkey@netrics.com>.
5844
5845         * crypt/md5test.c (main): Add test for multiple calls to
5846         __md5_process_bytes to itererate over input string.
5847
5848 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
5849
5850         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
5851         from __nis_findfastest.  Take timeout value from parameter.
5852         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
5853         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
5854         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
5855
5856 2001-12-12  Andreas Jaeger  <aj@suse.de>
5857
5858         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
5859         combreloc test so that it works in this case.
5860
5861         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
5862
5863 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
5864
5865         * sysdeps/sh/Makefile: New file.
5866         * sysdeps/sh/_mcount.S: New file.
5867         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
5868         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
5869
5870 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
5871
5872         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
5873         limitation [PR libc/2564].
5874
5875 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
5876
5877         * elf/Makefile (dl-routines): Add conflict.
5878         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
5879         (ld.so): Add _begin local symbol.
5880         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
5881         Define.
5882         * elf/dl-deps.c (_dl_build_local_scope): New.
5883         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
5884         of all libraries.
5885         * elf/do-rel.h (VALIDX): Define.
5886         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
5887         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
5888         can be skipped.
5889         * elf/dl-conflict.c: New file.
5890         * elf/dl-lookup.c (_dl_debug_bindings): New.
5891         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
5892         non-NULL.
5893         (_dl_lookup_symbol_skip): Likewise.
5894         (_dl_lookup_versioned_symbol): Likewise.
5895         (_dl_lookup_versioned_symbol_skip): Likewise.
5896         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
5897         define to ElfW(Rel).
5898         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
5899         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
5900         ranges.
5901         Don't adjust address dynamic tags if l_addr is 0.
5902         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
5903         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
5904         (VALIDX, ADDRIDX): Define.
5905         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
5906         (dl_main): Print library list for LD_TRACE_PRELINKING.
5907         If prelinking information can be used, skip relocating libraries and
5908         call _dl_resolve_conflicts instead.
5909         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
5910         * elf/dl-load.c (_dl_map_object): Don't create fake libs
5911         if LD_TRACE_PRELINKING.
5912         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
5913         + DT_ADDRNUM.
5914         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
5915         (DL_DEBUG_PRELINK): Define.
5916         (_dl_resolve_conflicts): Add prototype.
5917
5918         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
5919         .plt for prelinked libraries where prelinking info cannot be used.
5920         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
5921         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
5922         * sysdeps/arm/bits/link.h: New file.
5923         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
5924         content of .got[1].
5925         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
5926         (ELF_MACHINE_PLT_REL): Define.
5927         (elf_machine_rela, elf_machine_rela_relative): New.
5928         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
5929         of adjusting it if prelinked and prelinking cannot be used.
5930         * sysdeps/i386/bits/link.h: New file.
5931         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
5932         content of .got[1].
5933         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
5934         (ELF_MACHINE_PLT_REL): Define.
5935         (elf_machine_rela, elf_machine_rela_relative): New.
5936         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
5937         of adjusting it if prelinked and prelinking cannot be used.
5938         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
5939         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
5940         to find out map for R_PPC_JMP_SLOT relocs.
5941         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
5942         (OPCODE_BA): Define.
5943         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
5944         libraries where prelinking info cannot be used.
5945         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
5946         (elf_machine_fixup_plt): Call sparc_fixup_plt.
5947         (elf_machine_rela): Set value to 0 if relocating conflicts.
5948         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
5949         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
5950         (sparc64_fixup_plt): Fix a typo.
5951         (elf_machine_rela): Set value to 0 if relocating conflicts.
5952         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
5953         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
5954         libraries where prelinking info cannot be used.
5955         * sysdeps/sh/bits/link.h: New file.
5956         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
5957         content of .got[1].
5958         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
5959         of adjusting it if prelinked and prelinking cannot be used.
5960         * sysdeps/s390/s390-32/bits/link.h: New file.
5961         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
5962         Save original content of .got[1].
5963         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
5964         of adjusting it if prelinked and prelinking cannot be used.
5965         * sysdeps/s390/s390-64/bits/link.h: New file.
5966         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
5967         Save original content of .got[1].
5968         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
5969         of adjusting it if prelinked and prelinking cannot be used.
5970         * sysdeps/x86_64/bits/link.h: New file.
5971         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
5972         Save original content of .got[1].
5973         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
5974         of adjusting it if prelinked and prelinking cannot be used.
5975
5976 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
5977
5978         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
5979         where appropriate instead of numbers.  Little optimizations.
5980
5981 2001-12-10  Roland McGrath  <roland@frob.com>
5982
5983         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
5984         set it.
5985
5986         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
5987         set to GLIBC_2.2.5, not GLIBC_2.2.4.
5988
5989         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
5990         Fix conditionals so this is set by default for stdio and not for libio.
5991         * sysdeps/mach/hurd/configure: Regenerated.
5992
5993 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
5994
5995         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
5996
5997 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
5998
5999         * io/Makefile (tests): Add bug-ftw3.
6000         * io/bug-ftw3.c: New file.
6001
6002         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
6003         matches and GLOB_NOCHECK is set.
6004         * posix/globtest.sh: Correct expected result for NOCHECK test.
6005
6006         * po/ca.po: Update from translation team.
6007
6008 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
6009
6010         Implement transliteration of characters in strings of the locale
6011         definitions.
6012         * locale/programs/linereader.c: Adjust for additional parameter to
6013         lr_token.
6014         (get_string): If character <Uxxxx> is not found try to transliterate
6015         it.
6016         * locale/programs/ld-ctype.c: Adjust for additional parameter to
6017         lr_token.  Add const to charmap parameter of all functions.
6018         (find_translit, find_translit2): New functions.
6019         * locale/programs/charmap.c: Adjust for additional parameter to
6020         lr_token.
6021         * locale/programs/repertoire.c: Likewise.
6022         * locale/programs/linereader.h: Likewise.
6023         * locale/programs/ld-address.c: Likewise.  Add const to charmap
6024         parameter of all functions.
6025         * locale/programs/ld-collate.c: Likewise.
6026         * locale/programs/ld-identification.c: Likewise.
6027         * locale/programs/ld-measurement.c: Likewise.
6028         * locale/programs/ld-messages.c: Likewise.
6029         * locale/programs/ld-monetary.c: Likewise.
6030         * locale/programs/ld-name.c: Likewise.
6031         * locale/programs/ld-numeric.c: Likewise.
6032         * locale/programs/ld-paper.c: Likewise.
6033         * locale/programs/ld-paper.c: Likewise.
6034         * locale/programs/ld-telephone.c: Likewise.
6035         * locale/programs/ld-time.c: Likewise.
6036         * locale/programs/locfile.c: Likewise.
6037         * locale/programs/localedef.c: Likewise.
6038         * locale/programs/localedef.h: Likewise.
6039         * locale/programs/locfile.h: Likewise.  Add declaration for
6040         find_translit.
6041         * locale/programs/simple-hash.c: Add const to first parameter of
6042         find_entry, iterate_table, and lookup.
6043         * locale/programs/simple-hash.h: Likewise.
6044         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
6045         instead.
6046         * include/locale.h: Define __LC_LAST.
6047         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
6048
6049 2001-12-07  Geoff Keating  <geoffk@redhat.com>
6050
6051         * sysdeps/powerpc/Dist: Update for recent FP changes.
6052         * sysdeps/powerpc/fpu/Dist: Likewise.
6053
6054 2001-12-07  Andreas Schwab  <schwab@suse.de>
6055
6056         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
6057
6058 2001-12-06  Geoff Keating  <geoffk@redhat.com>
6059
6060         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
6061         save/restore functions here.
6062         (libm-support): Don't define these functions here.
6063         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
6064         functions here.
6065         * sysdeps/powerpc/fe_nomask.c: Move to...
6066         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
6067         * sysdeps/powerpc/fprrest.S: Move to...
6068         * sysdeps/powerpc/fpu/fprrest.S: ... here.
6069         * sysdeps/powerpc/fprsave.S: Move to...
6070         * sysdeps/powerpc/fpu/fprsave.S: ... here.
6071
6072 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
6073
6074         * sysdeps/unix/sysv/linux/opensock.c: New file.
6075
6076 2001-12-06  Geoff Keating  <geoffk@redhat.com>
6077
6078         * config.make.in (with-fp): Define from configure.
6079         * configure.in: Substitute with_fp.
6080         * configure: Regenerate.
6081         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
6082         specified, and don't change FPU environment.
6083
6084 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
6085
6086         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
6087         * assert/assert.c: Check result of __asprintf call and don't use
6088         string if it failed.
6089         * assert/assert-perr.c: Likewise.
6090         * inet/rcmd.c: Likewise.
6091         * locale/programs/localedef.c (main): Check result of
6092         construct_output_path and exit if it failed.
6093         (construct_output_path): Check result of asprintf and mkdir calls and
6094         fail if they failed.
6095         * posix/getopt.c: Check result of __asprintf calls and fail if
6096         they failed.
6097         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
6098
6099 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
6100
6101         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
6102         patch.
6103         * sysdeps/generic/strncase.c: Likewise.
6104         * string/tester.c: Add tests for strcasecmp and strncasecmp.
6105
6106 2001-12-05  Geoff Keating  <geoffk@redhat.com>
6107
6108         * scripts/cpp: Test the exit status from 'type', not 'awk'.
6109
6110         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
6111         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
6112         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
6113         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
6114         * sysdeps/powerpc/fclrexcpt.c: Move to...
6115         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
6116         * sysdeps/powerpc/fpu_control.h: Move to...
6117         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
6118
6119 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
6120
6121         * iconvdata/ibm1129.h: Remove duplicate mappings.
6122         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
6123         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
6124         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
6125
6126         * timezone/zic.c: Fix handling of turnaround times.
6127         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
6128
6129 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
6130
6131         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
6132         overflow problem.
6133
6134 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
6135
6136         * posix/regex.c: For use outside glibc defined bounded pointer
6137         macros here.  Patch by Jim Meyering <jim@meyering.net>.
6138
6139         * iconvdata/Makefile (modules): Add TCVN5712-1.
6140         * iconvdata/TESTS: Add TCVN5712-1.
6141         * iconvdata/gconv-modules: Likewise.
6142         * iconvdata/tcvn5712-1.c: New file.
6143         * iconvdata/testdata/TCVN-5712: New file.
6144         * iconvdata/testdata/TCVN-5712..UTF8: New file.
6145
6146 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
6147
6148         * iconvdata/cp1258.c: Optimize conversion from UCS4.
6149
6150 2001-12-02  Roland McGrath  <roland@frob.com>
6151
6152         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
6153
6154         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
6155         Reported by Jeff Bailey <jbailey@nisa.net>.
6156
6157         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
6158         Reported by Jeff Bailey <jbailey@nisa.net>.
6159
6160         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
6161         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
6162         Reported by Jeff Bailey <jbailey@nisa.net>.
6163
6164 2001-12-01  Roland McGrath  <roland@frob.com>
6165
6166         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
6167         missing backslash in test arguments.
6168         * sysdeps/mach/hurd/configure: Regenerated.
6169
6170 2001-11-26  Roland McGrath  <roland@frob.com>
6171
6172         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
6173         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
6174
6175 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
6176
6177         * iconvdata/Makefile (modules): Add ARMSCII-8.
6178         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
6179         * iconvdata/armscii-8.c: New file.
6180
6181 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
6182
6183         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
6184         don't match, fix {{a,b},c} globbing, clean up.
6185         Patch by Flavio Veloso <flaviovs@magnux.com>.
6186         * posix/globtest.sh: Add new tests.
6187
6188 2001-11-29  Andreas Jaeger  <aj@suse.de>
6189
6190         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
6191         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
6192
6193         * sysdeps/generic/abort.c: Include libioP.h for
6194         _IO_flush_all_lockp prototype.
6195
6196 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
6197
6198         * posix/regex.h: Define __restrict_arr correctly.
6199
6200 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
6201
6202         * iconvdata/ibm1163.c: New file.
6203         * iconvdata/ibm1163.h: New file.
6204         * iconvdata/ibm1164.c: New file.
6205         * iconvdata/ibm1164.h: New file.
6206         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
6207         * iconvdata/Makefile: Likewise.
6208         * iconvdata/testdata/IBM1163: New file.
6209         * iconvdata/testdata/IBM1163..UTF8: New file.
6210         * iconvdata/testdata/IBM1164: New file.
6211         * iconvdata/testdata/IBM1164..UTF8: New file.
6212         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
6213
6214         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
6215         * iconvdata/ibm1124.h: Likewise.
6216         * iconvdata/ibm1132.h: Likewise.
6217         * iconvdata/ibm1133.h: Likewise.
6218         * iconvdata/ibm1160.h: Likewise.
6219         * iconvdata/ibm1161.h: Likewise.
6220         * iconvdata/ibm1162.h: Likewise.
6221         * iconvdata/ibm856.h: Likewise.
6222         * iconvdata/ibm922.h: Likewise.
6223         * iconvdata/ibm930.h: Likewise.
6224         * iconvdata/ibm932.h: Likewise.
6225         * iconvdata/ibm933.h: Likewise.
6226         * iconvdata/ibm935.h: Likewise.
6227         * iconvdata/ibm937.h: Likewise.
6228         * iconvdata/ibm939.h: Likewise.
6229         * iconvdata/ibm943.h: Likewise.
6230         * iconvdata/ibm930.c: Pretty printing.
6231         * iconvdata/ibm937.c: Avoid access accross array boundary.
6232
6233         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
6234         the current locale's codeset.
6235         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
6236         empty input string.
6237         * iconv/iconv_prog.c: Pass empty strings as default value for to-
6238         and from-charset.  Don't determine locale's charset here.
6239
6240         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
6241         as the old _IO_flush_all but lock only if parameter is nonzero.
6242         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
6243         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
6244         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
6245         if libio is used [PR libc/2575].
6246
6247 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
6248
6249         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
6250         __signbitl): Only define for ISO C99.
6251
6252 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
6253
6254         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
6255         herrnop to NETDB_INTERNAL if we run out of buffer space.
6256
6257 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
6258
6259         * nss/nss_files/files-XXX.c (internal_getent): Correct input
6260         overflow test for platforms with signed char.
6261         Reported by Andrew Haley <aph@cambridge.redhat.com>.
6262
6263 2001-11-28  Bruno Haible  <bruno@clisp.org>
6264
6265         * locale/programs/simple-hash.c (lookup_2): Remove function.
6266         (insert_entry_2): Call lookup instead of lookup_2.
6267
6268 2001-03-04  Bruno Haible  <bruno@clisp.org>
6269
6270         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
6271
6272 2001-10-31  Bruno Haible  <bruno@clisp.org>
6273
6274         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
6275
6276 2001-03-21  Bruno Haible  <bruno@clisp.org>
6277
6278         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
6279         chokes on empty macro arguments.
6280         * intl/plural.y: Add #pragma for alloca on AIX 3.
6281
6282 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
6283
6284         * intl/dcigettext.c (guess_category_value): Only implement for
6285         glibc.  Otherwise rely on function _nl_locale_name which isn't
6286         present in the glibc sources.
6287
6288 2001-09-24  Bruno Haible  <bruno@clisp.org>
6289
6290         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
6291         transliteration when building on a glibc system but outside glibc.
6292
6293 2001-09-22  Bruno Haible  <bruno@clisp.org>
6294
6295         * intl/plural-eval.c: New file, extracted from dcigettext.c.
6296         * intl/dcigettext.c (plural_eval): Remove function, moved to
6297         intl/plural-eval.c.
6298         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
6299         Include plural-eval.c.
6300
6301 2001-09-22  Bruno Haible  <bruno@clisp.org>
6302
6303         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
6304         don't start with a digit; nplurals must be positive.
6305
6306 2001-09-02  Bruno Haible  <bruno@clisp.org>
6307
6308         * intl/plural-exp.h: New file, extracted from gettextP.h.
6309         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
6310         * intl/gettextP.h (struct expression, struct parse_args,
6311         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
6312         * intl/loadmsgcat.c: Include plural-exp.h.
6313         (PLURAL_PARSE): Move macro to plural-exp.h.
6314         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
6315         plural-exp.c.
6316         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
6317         EXTRACT_PLURAL_EXPRESSION.
6318         (_nl_unload_domain): Update.
6319         * intl/dcigettext.c: Include plural-exp.h.
6320         * intl/plural.y: Include plural-exp.h, not gettextP.h.
6321         (FREE_EXPRESSION): Move macro to plural-exp.h.
6322         * intl/Makefile (routines): Add plural-exp.
6323         (distribute): Add plural-exp.h.
6324
6325 2001-07-28  Bruno Haible  <bruno@clisp.org>
6326
6327         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
6328         isdigit, tolower argument to 'unsigned char'.
6329         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
6330         'unsigned char'.
6331         * intl/localealias.c (read_alias_file): Cast isspace argument to
6332         'unsigned char'.
6333
6334 2001-10-20  Bruno Haible  <bruno@clisp.org>
6335
6336         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
6337         anyway.)
6338         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
6339         with the variable 'index' in plural_lookup.
6340         * intl/l10nflist.c (strchr): Likewise.
6341         * intl/localealias.c (strchr): Likewise.
6342
6343         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
6344         * intl/bindtextdom.c: Likewise.
6345         * intl/dcigettext.c: Likewise.
6346         * intl/dgettext.c: Likewise.
6347         * intl/dngettext.c: Likewise.
6348         * intl/explodename.c: Likewise.
6349         * intl/finddomain.c: Likewise.
6350         * intl/gettext.c: Likewise.
6351         * intl/l10nflist.c: Likewise.
6352         * intl/loadmsgcat.c: Likewise.
6353         * intl/localealias.c: Likewise.
6354         * intl/ngettext.c: Likewise.
6355         * intl/textdomain.c: Likewise.
6356         * intl/gettext.h: Assume <limits.h> exists.
6357
6358 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
6359
6360         * stdio-common/Makefile (tests): Add scanf11.
6361         * stdio-common/scanf11.c: New file.
6362
6363 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
6364
6365         * version.h (RELEASE): Define as development.
6366         (VERSION): Set to 2.2.90.
6367
6368 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
6369
6370         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
6371         * nis/nss_nis/nis-grp.c: Likewise.
6372         * nis/nss_nisplus/nisplus-grp.c: Likewise.
6373
6374         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
6375         * nis/nss_nis/nis-pwd.c: Likewise.
6376         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
6377
6378         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
6379         * nis/nss_nisplus/nisplus-parser.c: Likewise.
6380         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
6381
6382         * nscd/grpcache.c: Use strtoul instead of atol.
6383         * nscd/pwdcache.c: Likewise.
6384         * nss/getent.c: Likewise.
6385
6386 2001-11-27  Paul Eggert  <eggert@twinsun.com>
6387
6388         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
6389         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
6390
6391 2001-11-19  Bruno Haible  <bruno@clisp.org>
6392
6393         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
6394         90%.
6395         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
6396         improves the quality of the hash function, especially for short
6397         strings.
6398
6399 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
6400
6401         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
6402         are found call conv_error and not input_error [PR libc/2669].
6403
6404         * math/bits/mathcalls.h: Mark ceil and floor as const.
6405         Reported by David Mosberger.
6406
6407 2001-11-21  Jim Meyering  <meyering@lucent.com>
6408
6409         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
6410         Define to be __-prefixed.
6411         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
6412
6413 2001-11-26  Andreas Jaeger  <aj@suse.de>
6414
6415         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
6416         avoid warning.
6417
6418 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
6419
6420         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
6421         initialization.
6422
6423         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
6424         unused variables.  Fix threshold for returning 1.0.
6425
6426         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
6427         argument.
6428
6429         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
6430         remove unused variables.
6431
6432         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
6433
6434         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
6435         include local math header files.
6436
6437 2001-11-22  Andreas Jaeger  <aj@suse.de>
6438
6439         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
6440         avoid warning.
6441
6442 2001-11-21  Andreas Jaeger  <aj@suse.de>
6443
6444         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
6445
6446         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
6447         sys/debugreg.h
6448
6449 2001-11-15  Andreas Jaeger  <aj@suse.de>
6450
6451         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
6452         compilers that support it.
6453
6454         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
6455         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
6456         * stdlib/stdlib.h: Likewise.
6457
6458 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
6459
6460         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
6461         statement with gotos.
6462         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
6463
6464 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
6465
6466         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
6467
6468 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
6469
6470         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
6471
6472 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
6473             H.J. Lu  <hjl@gnu.org>
6474
6475         * Versions.def (libc): Add GCC_3.0.
6476         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
6477         if gcc supports this flag.
6478         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
6479         (gcc3): Allow glibc to be compiled with gcc 3.x.
6480         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
6481         * config.make.in (static-libgcc, unwind-find-fde): Add.
6482         * Makerules (build-shlib-helper, build-module-helper): Use it.
6483         * scripts/versions.awk: Make sure GLIBC_ versions come first.
6484         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
6485         necessary.
6486         (_fini): Call __deregister_frame_info_bases if
6487         __register_frame_info_bases was used to register.
6488         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
6489         for GLIBC_2.0.
6490         (__register_frame_info_bases, __register_frame_info_table_bases,
6491         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
6492         * elf/Makefile (routines): Add unwind-dw2-fde.
6493         (shared-only-routines): Add unwind-dw2-fde.
6494         * sysdeps/alpha/gccframe.h: New file.
6495         * sysdeps/arm/gccframe.h: New file.
6496         * sysdeps/generic/framestate.c: New file.
6497         * sysdeps/generic/dwarf2.h: New file.
6498         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
6499         * sysdeps/generic/unwind-dw2-fde.c: New file.
6500         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
6501         * sysdeps/generic/unwind-dw2-fde.h: New file.
6502         * sysdeps/generic/unwind-dw2.c: New file.
6503         * sysdeps/generic/unwind-pe.h: New file.
6504         * sysdeps/generic/unwind.h: New file.
6505         * sysdeps/hppa/gccframe.h: New file.
6506         * sysdeps/i386/gccframe.h: New file.
6507         * sysdeps/m68k/gccframe.h: New file.
6508         * sysdeps/mips/gccframe.h: New file.
6509         * sysdeps/powerpc/gccframe.h: New file.
6510         * sysdeps/s390/gccframe.h: New file.
6511         * sysdeps/sh/gccframe.h: New file.
6512         * sysdeps/sparc/gccframe.h: New file.
6513         * sysdeps/vax/gccframe.h: New file.
6514         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
6515         Set on all architectures except ia64.
6516         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
6517         for i386.
6518         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
6519         __deregister_frame_info): Move to elf/Versions.
6520         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
6521         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
6522         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
6523         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
6524         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
6525         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
6526         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
6527         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
6528         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
6529         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
6530         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
6531         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
6532         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
6533         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
6534         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
6535         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
6536         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
6537         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
6538
6539 2001-11-15  Jeff Law  <law@redhat.com>
6540
6541         * posix/regex.c (uintptr_t): Do not provide a definition if the
6542         system provided one.
6543
6544 2001-11-13  Roland McGrath  <roland@frob.com>
6545
6546         * stdio-common/tmpfile.c: Moved to ...
6547         * sysdeps/generic/tmpfile.c: ... here.
6548         * sysdeps/mach/hurd/tmpfile.c: New file.
6549
6550         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
6551         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
6552         (fopenport): Define as weak alias.
6553
6554         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
6555         * libio/libioP.h: ... to here.
6556
6557 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
6558
6559         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
6560         program header twice.  Construct list with the needed information.
6561
6562 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
6563
6564         * po/ca.po: Update from translation team.
6565
6566         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
6567         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
6568         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
6569         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
6570
6571 2001-11-10  Andreas Jaeger  <aj@suse.de>
6572
6573         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
6574         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
6575         Contributed by Stephen L Moshier <moshier@mediaone.net>.
6576
6577 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
6578
6579         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
6580         correctly.
6581         * elf/dl-load.c (is_dst): New function.
6582         (_dl_dst_count): Use is_dst to check for DST variable.
6583         (_dl_dst_substitute): Likewise.
6584
6585 2001-11-09  Roland McGrath  <roland@frob.com>
6586
6587         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
6588         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
6589         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
6590         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
6591         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
6592         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
6593         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
6594         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
6595         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
6596         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
6597         * sysdeps/mach/hurd/powerpc/Dist: New file.
6598
6599         * hurd/privports.c (__get_privileged_ports):
6600         Only contact the proc server if necessary for this call.
6601         Suggested by Neal H Walfield <neal@cs.uml.edu>.
6602         Check error return for mach_port_mod_refs.
6603
6604 2001-11-09  Andreas Schwab  <schwab@suse.de>
6605
6606         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
6607
6608 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
6609
6610         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
6611         object is always the last in the list.
6612         (_dl_map_object_from_fd): Delete code to remove from object list
6613         when DF_1_NOOPEN is seen.  This is done in lose.
6614
6615 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
6616
6617         * elf/dl-object.c (_dl_new_object): Various small optimizations.
6618
6619 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
6620
6621         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
6622         HWCAP_CHECK macro code.
6623
6624         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
6625         Now returns MAP_FAILED on error.
6626         * elf/rtld.c: Adjust caller.
6627         * sysdeps/generic/dl-cache.c: Likewise.
6628         * sysdeps/generic/ldsodefs.h: Adjust description.
6629
6630         * elf/dl-version.c (match_symbol): Optimize error handling for size.
6631         (_dl_check_map_versions): Likewise.
6632
6633 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
6634
6635         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
6636         _dl_signal_error directly, always use lose.  Set fd to -1 after
6637         file is closed.
6638         (lose): Don't call close if fd == -1.
6639
6640 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
6641
6642         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
6643          Also fix typo @code {mbsinit} to @code{mbsinit}.
6644
6645 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
6646
6647         * elf/dl-profile.c: Replace state variable with simple flag named
6648         running.  Remove commented-out code.
6649
6650         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
6651         (_dl_init_paths): Likewise.
6652         (_dl_map_object_from_fd): Likewise.
6653         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
6654
6655 2001-11-06  Roland McGrath  <roland@frob.com>
6656
6657         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
6658         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
6659
6660         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
6661         sysdeps/powerpc/elf/sysdep.h.
6662         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
6663
6664 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
6665
6666         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
6667         speed.
6668         (process_envvars): Some more optimizations.
6669         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
6670
6671         * elf/elf.h: Add dynamic tag definitions for prelinking.
6672
6673         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
6674         Rewrite code to remove environment varables for SUID binaries.
6675         Small optimization in LD_PROFILE handling.
6676         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
6677         changes.
6678         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
6679
6680         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
6681
6682         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
6683         strings.  Change type of second parameter.
6684         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
6685         for last change.
6686
6687         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
6688
6689 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
6690
6691         * manual/string.texi: Fix typos.
6692         * manual/examples/argp-ex2.c: Likewise.
6693
6694 2001-11-05  Roland McGrath  <roland@frob.com>
6695
6696         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
6697         the more-specific unix/sysv/linux/powerpc file and breaks everything.
6698         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
6699         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
6700         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
6701         here, put under [__ELF__].
6702
6703 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
6704
6705         * manual/charset.texi: Extensive editing work.
6706         * manual/nss.texi: Likewise.
6707         Changes by Dennis Grace <dgrace@us.ibm.com>.
6708
6709 2001-11-04  Roland McGrath  <roland@frob.com>
6710
6711         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
6712         parameter to dir_mkfile.
6713
6714 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
6715
6716         * string/bits/string2.h (__strndup): If n is smaller than len, set
6717         len to n + 1.
6718         * string/tester.c (test_strndup): New function.
6719         (main): Call it.
6720
6721 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
6722
6723         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
6724
6725         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
6726         * scripts/cpp: New file.
6727
6728         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
6729         for rtld_search_dirs content.  Minor optimizations.
6730
6731 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
6732
6733         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
6734         avoiding unnecessary duplication.
6735
6736 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
6737
6738         * elf/dl-load.c (_dl_map_object): If library was found using
6739         LD_LIBRARY_PATH, don't try RUNPATH list.
6740
6741 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6742
6743         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
6744         Correct second argument of register_dump call.
6745         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
6746         Likewise.
6747
6748 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
6749
6750         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
6751         modules.
6752         * iconvdata/TESTS: Likewise.
6753         * iconvdata/gconv-modules: Likewise.
6754         * iconvdata/ibm1132.c: New file.
6755         * iconvdata/ibm1132.h: New file.
6756         * iconvdata/ibm1133.c: New file.
6757         * iconvdata/ibm1133.h: New file.
6758         * iconvdata/ibm1162.c: New file.
6759         * iconvdata/ibm1162.h: New file.
6760         * iconvdata/testdata/IBM1132: New file.
6761         * iconvdata/testdata/IBM1132..UTF8: New file.
6762         * iconvdata/testdata/IBM1133: New file.
6763         * iconvdata/testdata/IBM1133..UTF8: New file.
6764         * iconvdata/testdata/IBM1162: New file.
6765         * iconvdata/testdata/IBM1162..UTF8: New file.
6766         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
6767
6768         * string/string.h: Fix typo in comment.
6769         * wcsmbs/wchar.h: Likewise.
6770
6771 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
6772
6773         * manual/getopt.texi (getopt_long, getopt_long_only): Include
6774         const in type of longopts parameter.
6775
6776 2001-10-29  Andreas Jaeger  <aj@suse.de>
6777
6778         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
6779
6780 2001-10-29  Kevin Ryde  <user42@zip.com.au>
6781
6782         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
6783         output, clarify `#' behaviour on 0.
6784         (Floating-Point Conversions): Clarify that %g only uses %e when
6785         the exponent would be greater than 1.
6786
6787 2001-10-28  Roland McGrath  <roland@frob.com>
6788
6789         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
6790         * sysdeps/mach/powerpc/machine-sp.h: New file.
6791         * sysdeps/mach/powerpc/sysdep.h: New file.
6792         * sysdeps/mach/powerpc/thread_state.h: New file.
6793
6794         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
6795         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
6796         expect to need the same thing on every platform.
6797
6798         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
6799         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
6800
6801         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
6802         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
6803         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
6804         Move all these assembly-related definitions to ...
6805         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
6806
6807         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
6808         by Peter Bruin <pjbruin@dds.nl>.
6809
6810         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
6811         packing results for a `poll' call.
6812
6813 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
6814
6815         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
6816         correctly.
6817         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
6818         bracket expression.
6819
6820         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
6821         nrules value.
6822         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
6823
6824 2001-10-24  H.J. Lu  <hjl@gnu.org>
6825
6826         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
6827         Use __BEGIN_DECLS/__END_DECLS around prototypes.
6828         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
6829
6830 2001-10-21  Jim Meyering  <meyering@lucent.com>
6831
6832         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
6833         this code would end up calling gettext even in packages built
6834         with --disable-nls.
6835         * posix/getopt.c (_): Likewise.
6836         * posix/regex.c (_): Likewise.
6837
6838 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
6839
6840         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
6841         lookup not ip6.int.
6842         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
6843         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
6844
6845 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
6846
6847         * misc/sys/cdefs.h (__attribute_used__): Define.
6848         * elf/rtld.c (_dl_start): Add __attribute_used__.
6849         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
6850
6851 2001-10-25  Andreas Schwab  <schwab@suse.de>
6852
6853         * stdlib/a64l.c: Expect least significant digit first.
6854         * stdlib/l64a.c: Produce least significant digit first.
6855         * stdlib/Makefile (tests): Add test-a64l.
6856         * stdlib/test-a64l.c: New file.
6857         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
6858
6859 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
6860
6861         * po/sk.po: Update from translation team.
6862
6863 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
6864
6865         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
6866
6867 2001-10-18  Andreas Schwab  <schwab@suse.de>
6868
6869         * math/libm-test.inc (print_ulps): Print ulp values rounded to
6870         next whole number.
6871         (print_function_ulps): Likewise.
6872         (print_complex_function_ulps): Likewise.
6873         (print_max_error): Likewise.
6874         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
6875
6876 2001-10-16  Andreas Schwab  <schwab@suse.de>
6877
6878         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
6879         implementation.
6880
6881         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
6882         BSD_SETJMP or BSD__SETJMP is defined, resp.
6883         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
6884         a tail call to __sigsetjmp that would require extending the
6885         caller's frame.
6886         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
6887         * sysdeps/m68k/bsd-setjmp.S: Deleted.
6888         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
6889         Reported by Jes Sorensen <jes@trained-monkey.org>.
6890
6891 2001-10-16  Andreas Jaeger  <aj@suse.de>
6892
6893         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
6894         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
6895         close PR libc/2589.
6896
6897 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
6898
6899         * po/ca.po: New file.  Contributed by the translation team.
6900
6901 2001-10-15  Ralf Baechle  <ralf@gnu.org>
6902
6903         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
6904         a varargs prototype.  Remove dependency from kernel header files.
6905
6906         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
6907         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
6908
6909 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
6910
6911         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
6912         to generate hexadecimal identifier.
6913         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
6914
6915 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
6916
6917         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
6918
6919 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
6920
6921         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
6922         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
6923         Contributed by Stephen L Moshier <moshier@mediaone.net>.
6924
6925         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
6926         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6927         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
6928         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
6929         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
6930         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
6931
6932         * timezone/africa: Update from tzdata2001d.
6933         * timezone/asia: Likewise.
6934         * timezone/australasia: Likewise.
6935         * timezone/backward: Likewise.
6936         * timezone/europe: Likewise.
6937         * timezone/leapseconds: Likewise.
6938         * timezone/northamerica: Likewise.
6939         * timezone/southamerica: Likewise.
6940         * timezone/zone.tab: Likewise.
6941
6942 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
6943
6944         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
6945         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
6946
6947 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
6948
6949         * elf/elf.h (PT_TLS): New definition.
6950
6951 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
6952
6953         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
6954         bits/errno.h
6955
6956 2001-10-07  Roland McGrath  <roland@frob.com>
6957
6958         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
6959
6960 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
6961
6962         * elf/elf.h: Add more ELFOSABI_* constants.
6963
6964 2001-10-04  Ben Collins  <bcollins@debian.org>
6965
6966         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
6967         decleration of __need_wchar_t.
6968
6969 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
6970
6971         * string/bits/string2.h (__strsep_g): Add prototype.
6972         (__strsep): Use it.
6973         * string/Versions (__strsep): Remove.
6974         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
6975
6976 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
6977
6978         * manua/llio.texi: Clarify file references added by mmap.
6979         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
6980
6981 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
6982
6983         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
6984         Add sc_loadrs and sc_rbs_bas to match current kernel.
6985
6986 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
6987
6988         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
6989
6990         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
6991
6992 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
6993
6994         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
6995         object has been bumped because of relocation dependency, avoid
6996         duplicates in l_scope.
6997         (show_scope): Fix typos.
6998         * elf/Makefile: Add rules to build and run reldep6.
6999         * elf/reldep6.c: New file.
7000         * elf/reldep6mod0.c: New file.
7001         * elf/reldep6mod1.c: New file.
7002         * elf/reldep6mod2.c: New file.
7003         * elf/reldep6mod3.c: New file.
7004         * elf/reldep6mod4.c: New file.
7005
7006 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
7007
7008         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
7009         sparc64_fixup_plt.
7010         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
7011         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
7012         for non-lazy binding. Fix .plt[32768+] handling.
7013         (elf_machine_plt_value): Don't add addend.
7014         (elf_machine_rela): Call sparc64_fixup_plt instead of
7015         elf_machine_fixup_plt.
7016         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
7017         dynamic linker at 0xfffff800XXXXXXXX.
7018
7019         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
7020
7021 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
7022
7023         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
7024
7025 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
7026
7027         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
7028         declare __cmsg_data field if its size would be bigger than 0.
7029         (CMSG_DATA): Adjust accordingly.
7030         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
7031         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
7032         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
7033         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
7034         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
7035         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
7036         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
7037
7038 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
7039
7040         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
7041         * iconvdata/testdata/IBM1160: New file.
7042         * iconvdata/testdata/IBM1160..UTF8: New file.
7043         * iconvdata/testdata/IBM1161: New file.
7044         * iconvdata/testdata/IBM1161..UTF8: New file.
7045         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
7046
7047 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
7048
7049         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
7050         UL_SETFSIZE computations better.
7051
7052         * rt/Makefile: Remove use of filter for librt again.
7053
7054         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
7055         UL_SETFSIZE computations better.
7056
7057         * string/Versions: Export __strsep for GLIBC_2.2.5.
7058         * string/bits/string2.h: Define all __STRING_INLINE functions if
7059         _FORCE_INLINES is defined.
7060         Use int instead of char of parameter types.
7061         (__strsep): Don't use __strsep_g.  Don't define it.
7062         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
7063         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
7064         __strcpy_small.
7065         (__stpcpy_a_small): Renamed from __stpcpy_small.
7066         (__strcspn_c1): Don't define if _FORCE_INLINES.
7067         (__strspn_c1): Likewise.
7068
7069 2001-09-22  Ben Collins  <bcollins@debian.org>
7070
7071         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
7072         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
7073         * sysdeps/ia64/bits/sigaction.h: Likewise.
7074         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
7075
7076 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
7077
7078         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
7079
7080 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
7081
7082         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
7083
7084 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
7085
7086         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
7087
7088 2001-09-20  H.J. Lu  <hjl@gnu.org>
7089
7090         * include/dlfcn.h (__RTLD_SPROF): New definiton.
7091         * elf/dl-open.c (dl_open_worker): Return immediately after loading
7092         for __RTLD_SPROF.
7093         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
7094         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
7095
7096 2001-09-20  H.J. Lu  <hjl@gnu.org>
7097
7098         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
7099         don't add 1.
7100
7101 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
7102
7103         * nss/getent.c: Accept -s parameter to overwrite rules in
7104         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
7105
7106         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
7107         with as many ".0" as necessary to form a complete address
7108         inet_network understands.
7109
7110         * nss/getent.c: Various cleanups.  Use simpler and fewer function
7111         calls.
7112
7113 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
7114
7115         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
7116         _JMPBUF_UNWINDS.
7117         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
7118
7119 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
7120
7121         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
7122         IBM1161.
7123         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
7124         * iconvdata/ibm1160.c: New file.
7125         * iconvdata/ibm1160.h: New file.
7126         * iconvdata/ibm1161.c: New file.
7127         * iconvdata/ibm1161.h: New file.
7128         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
7129
7130 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
7131
7132         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
7133         difference between base address and first PT_LOAD's virtual address,
7134         not the base address.
7135
7136 2001-09-11  Tom Rix  <trix@redhat.com>
7137
7138         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
7139         ifdef for __getopt_clean_environment.
7140         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
7141
7142 2001-09-22  Andreas Jaeger  <aj@suse.de>
7143
7144         * elf/reldep4.c (main): Add proper prototype to fix warning.
7145
7146         * elf/reldep5.c (main): Remove unused variable.
7147
7148         * math/math_private.h: Add prototypes.
7149
7150 2001-09-21  Andreas Jaeger  <aj@suse.de>
7151
7152         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
7153         * sysdeps/x86_64/Dist: New file.
7154         * sysdeps/x86_64/soft-fp/Dist: New file.
7155
7156         * sysdeps/gnu/Dist: Remove eval.c.
7157
7158 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
7159
7160         * malloc/memusage.c (realloc): Don't count already allocated
7161         memory in the sums.
7162         (me): Always use dlsym() to find the real implementations.
7163
7164         * malloc/memusage.sh: Make -n option actually do something.
7165
7166 2001-09-20  Andreas Jaeger  <aj@suse.de>
7167
7168         * elf/elf.h (R_390_NUM): Correct value.
7169
7170         * Versions.def: Add missing versions 2.2.3 for libthread_db and
7171         libpthread.
7172
7173         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
7174         for x86-64, install x86-64 into */lib64.
7175
7176         * shlib-versions: Add x86-64.
7177
7178         * elf/elf.h: Add x86-64 relocations.
7179
7180 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
7181
7182         * po/fr.po: Update from translation team.
7183
7184 2001-09-19  Andreas Jaeger  <aj@suse.de>
7185
7186         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
7187         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
7188         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
7189         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
7190         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
7191         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
7192         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
7193         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
7194         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
7195         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
7196         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
7197         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
7198         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
7199         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
7200         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
7201         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
7202         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
7203         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
7204         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
7205         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
7206         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
7207         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
7208         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
7209         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
7210         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
7211         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
7212         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
7213         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
7214         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
7215         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
7216         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
7217         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
7218         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
7219         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
7220         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
7221         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
7222         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
7223         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
7224         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
7225         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
7226         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
7227         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
7228         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
7229         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
7230         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
7231         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
7232         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
7233         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
7234         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
7235         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
7236         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
7237         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
7238         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
7239         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
7240         * sysdeps/unix/x86_64/sysdep.S: New file.
7241         * sysdeps/unix/x86_64/sysdep.h: New file.
7242         * sysdeps/x86_64/Implies: New file.
7243         * sysdeps/x86_64/Makefile: New file.
7244         * sysdeps/x86_64/Versions: New file.
7245         * sysdeps/x86_64/__longjmp.S: New file.
7246         * sysdeps/x86_64/abort-instr.h: New file.
7247         * sysdeps/x86_64/atomicity.h: New file.
7248         * sysdeps/x86_64/bits/endian.h: New file.
7249         * sysdeps/x86_64/bits/setjmp.h: New file.
7250         * sysdeps/x86_64/bits/string.h: New file.
7251         * sysdeps/x86_64/bp-asm.h: New file.
7252         * sysdeps/x86_64/bsd-_setjmp.S: New file.
7253         * sysdeps/x86_64/bsd-setjmp.S: New file.
7254         * sysdeps/x86_64/dl-machine.h: New file.
7255         * sysdeps/x86_64/elf/initfini.c: New file.
7256         * sysdeps/x86_64/elf/start.S: New file.
7257         * sysdeps/x86_64/ffs.c: New file.
7258         * sysdeps/x86_64/ffsll.c: New file.
7259         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
7260         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
7261         * sysdeps/x86_64/fpu/e_acosl.c: New file.
7262         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
7263         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
7264         * sysdeps/x86_64/fpu/e_expl.c: New file.
7265         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
7266         * sysdeps/x86_64/fpu/e_log10l.S: New file.
7267         * sysdeps/x86_64/fpu/e_log2l.S: New file.
7268         * sysdeps/x86_64/fpu/e_logl.S: New file.
7269         * sysdeps/x86_64/fpu/e_powl.S: New file.
7270         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
7271         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
7272         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
7273         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
7274         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
7275         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
7276         * sysdeps/x86_64/fpu/fegetenv.c: New file.
7277         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
7278         * sysdeps/x86_64/fpu/fegetround.c: New file.
7279         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
7280         * sysdeps/x86_64/fpu/fesetenv.c: New file.
7281         * sysdeps/x86_64/fpu/fesetround.c: New file.
7282         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
7283         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
7284         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
7285         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
7286         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
7287         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
7288         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
7289         * sysdeps/x86_64/fpu/s_atanl.c: New file.
7290         * sysdeps/x86_64/fpu/s_cosl.S: New file.
7291         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
7292         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
7293         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
7294         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
7295         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
7296         * sysdeps/x86_64/fpu/s_logbl.c: New file.
7297         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
7298         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
7299         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
7300         * sysdeps/x86_64/fpu/s_rintl.c: New file.
7301         * sysdeps/x86_64/fpu/s_significandl.c: New file.
7302         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
7303         * sysdeps/x86_64/fpu/s_sinl.S: New file.
7304         * sysdeps/x86_64/fpu/s_tanl.S: New file.
7305         * sysdeps/x86_64/gmp-mparam.h: New file.
7306         * sysdeps/x86_64/hp-timing.c: New file.
7307         * sysdeps/x86_64/hp-timing.h: New file.
7308         * sysdeps/x86_64/htonl.S: New file.
7309         * sysdeps/x86_64/memusage.h: New file.
7310         * sysdeps/x86_64/setjmp.S: New file.
7311         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
7312         * sysdeps/x86_64/stackinfo.h: New file.
7313         * sysdeps/x86_64/sysdep.h: New file.
7314         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
7315
7316         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
7317         L Moshier.
7318
7319 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
7320
7321         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
7322         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
7323
7324 2001-09-18  Andreas Schwab  <schwab@suse.de>
7325
7326         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
7327         list, now that l_scope is a pointer.
7328
7329         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
7330         scope list.
7331
7332 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
7333
7334         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
7335         (elf_machine_rela_relative): Add a missing declaration.
7336
7337 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
7338
7339         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
7340         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
7341         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
7342         ldd-rewrite scripts.
7343
7344 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
7345
7346         * elf/ldd.bash.in: Update copyright message.
7347
7348 2001-09-17  H.J. Lu  <hjl@gnu.org>
7349
7350         * hurd/hurdmalloc.c (bcopy): Removed.
7351         (realloc): Replace bcopy with memcpy.
7352         * hurd/path-lookup.c (file_name_path_scan): Likewise.
7353         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
7354         * sunrpc/rpcinfo.c (pmapdump): Likewise.
7355
7356         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
7357         (gethostbyaddr): Likewise.
7358         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
7359
7360 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
7361
7362         * sysdeps/gnu/eval.c: Removed.
7363
7364 2001-09-18  Andreas Jaeger  <aj@suse.de>
7365
7366         * sysdeps/i386/fpu/s_logbl.S: Move to ...
7367         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
7368
7369         * sysdeps/i386/fpu/s_rintl.S: Move to ...
7370         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
7371
7372         * sysdeps/i386/fpu/s_significandl.S: Move to ...
7373         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
7374
7375 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
7376
7377         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
7378         nrules value.
7379
7380 2001-09-14  H.J. Lu  <hjl@gnu.org>
7381
7382         * sysdeps/mips/fpu/libm-test-ulps: Updated.
7383
7384 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
7385
7386         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
7387         Patch by Florian La Roche <laroche@redhat.com>.
7388
7389         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
7390
7391         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
7392         ETHER_CRC_LEN.
7393
7394 2001-09-14  Andreas Schwab  <schwab@suse.de>
7395
7396         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
7397         Sumner <bls@sgi.com>.
7398         * posix/execlp.c: Likewise.
7399
7400 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
7401
7402         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
7403         is already found earlier in the search scope.
7404
7405 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
7406
7407         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
7408         filter.
7409
7410 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
7411
7412         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
7413
7414 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
7415
7416         * config.h.in: Enforce optimization to be used.
7417         * Makeconfig (preprocess-versions): Define ASSEMBLER.
7418         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
7419         * posix/Makefile (annexc-CFLAGS): Define to -O.
7420         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
7421
7422 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
7423
7424         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
7425         Patch by Stephan Kulow.
7426
7427 2001-09-08  Ben Collins  <bcollins@debian.org>
7428
7429         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
7430         usage of RESOLVE() (r_type, not reloc->r_type).
7431
7432 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
7433
7434         * elf/dl-object.c: Avoid allocating extra memory block for name.
7435         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
7436         allocated separately.
7437         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
7438
7439 2001-09-08  H.J. Lu  <hjl@gnu.org>
7440
7441         * po/zh_TW.po: Fix a typo.
7442
7443 2001-09-07  Tom Rix  <trix@redhat.com>
7444
7445         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
7446
7447 2001-08-26  Tom Rix  <trix@redhat.com>
7448
7449         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
7450         command line options.
7451         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
7452         * sysdeps/unix/sysv/aix/start.c: Removed.
7453         * sysdeps/unix/sysv/aix/start-libc.c: New file.
7454         * sysdeps/unix/sysv/aix/init-first.c: New file.
7455         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
7456
7457 2001-09-08  Ben Collins  <bcollins@debian.org>
7458
7459         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
7460         * sysdeps/generic/dl-machine.h: Likewise.
7461         * sysdeps/hppa/dl-fptr.c: Likewise.
7462         * sysdeps/ia64/dl-fptr.c: Likewise.
7463         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
7464         * sysdeps/mips/dl-machine.h: Likewise.
7465         * sysdeps/mips/mips64/dl-machine.h: Likewise.
7466         * sysdeps/powerpc/dl-machine.c: Likewise.
7467
7468 2001-09-07  Ben Collins  <bcollins@debian.org>
7469
7470         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
7471
7472         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
7473
7474 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
7475
7476         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
7477         dependencies if necessary.
7478
7479         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
7480         loaded directly) determine length if l_initfini list by iterating
7481         over its elements.  Minor optimizations.
7482         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
7483         for dependency objects.
7484         If object was already loaded check whether any of the dependencies
7485         is already on the relocation dependency list.  If yes, remove the
7486         latter.  Minor optimizations.
7487         * elf/dl-lookup.c (add_dependency): Add check for self reference of
7488         maps here.  Search l_initfini list only if the object was loaded
7489         directly and not only as a dependency.
7490         (_dl_lookup_symbol): Add relocation dependency also if object
7491         is not in global scope.  Remove test for self-reference here.
7492         (_dl_lookup_versioned_symbol): Likewise.
7493         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
7494         element of first name record.
7495         * elf/loadtest.c: Add some more test to recognize early if an object
7496         wasn't unloaded.
7497         * elf/Makefile: Add rules to build and run reldep5.
7498         * elf/reldep5.c: New file.
7499         * elf/reldepmod5.c: New file.
7500         * elf/reldepmod6.c: New file.
7501
7502         * elf/reldep2.c: Fix typo.
7503
7504 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
7505
7506         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
7507         elements.  Change l_scope to be a pointer only.
7508         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
7509         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
7510         here add searchlist of newly open file to the dependency's scope.
7511         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
7512         only searchlist from its scope.  Free own scope array if necessary.
7513         * elf/Makefile (tests): Add dblload and dblunload now.
7514
7515 2001-09-06  Andreas Jaeger  <aj@suse.de>
7516
7517         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
7518         Stephen L Moshier.
7519
7520 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
7521
7522         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
7523         they both fail.
7524         * elf/dblload.c: New file.
7525         * elf/dblloadmod1.c: New file.
7526         * elf/dblloadmod2.c: New file.
7527         * elf/dblloadmod3.c: New file.
7528         * elf/dblunload.c: New file.
7529
7530 2001-09-04  Richard Henderson  <rth@redhat.com>
7531
7532         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
7533         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
7534
7535 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
7536
7537         Correct very misleading message for error in failed runtime relocation.
7538         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
7539         place of the error.
7540         (_dl_signal_cerror): Likewise.
7541         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
7542         * elf/dl-close.c: Likewise.
7543         * elf/dl-deps.c: Likewise.
7544         * elf/dl-load.c: Likewise.
7545         * elf/dl-lookup.c: Likewise.
7546         * elf/dl-open.c: Likewise.
7547         * elf/dl-reloc.c: Likewise.
7548         * elf/dl-sym.c: Likewise.
7549         * elf/dl-version.c: Likewise.
7550         * sysdeps/generic/dl-sysdep.c: Likewise.
7551
7552 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
7553
7554         * iconv/strtab.c (strtabinit): Initialize null Strent.
7555         (newstring): Move len == 0 handling...
7556         (strtabadd): ...here.
7557         If len == 1, return null Strent.
7558         When inserting a suffix of an existing string, check if
7559         it is not equal to some suffix already recorded.
7560         Copy left and right members over if adding longer string.
7561
7562 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
7563
7564         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
7565
7566         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
7567         (__syscall_gethostname): Add prototype.
7568
7569 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
7570
7571         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
7572
7573 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
7574
7575         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
7576
7577 2001-08-27  Roland McGrath  <roland@frob.com>
7578
7579         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
7580         short, copy that much into NAME anyway before returning error.
7581
7582 2001-09-01  Richard Henderson  <rth@redhat.com>
7583
7584         * sysdeps/alpha/elf/Dist: Remove file.
7585         * sysdeps/alpha/elf/Makefile: Remove file.
7586         * sysdeps/alpha/elf/crtbegin.S: Remove file.
7587         * sysdeps/alpha/elf/crtend.S: Remove file.
7588         * sysdeps/alpha/elf/initfini.c: New file.
7589
7590 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
7591
7592         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
7593         * iconv/tst-iconv3.c: Likewise.
7594
7595 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
7596
7597         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
7598
7599 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
7600
7601         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
7602         export it.
7603         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
7604         * iconv/iconv_prog.c (insert_cache): New function.
7605         (print_known_names): If cache is used call insert_cache to use the
7606         information from the cache [PR libc/2509].
7607
7608 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
7609
7610         * time/strptime.c (strptime_internal): Recognize 'l' format and
7611         handle it like 'I' for symmetry with strftime.
7612
7613 2001-08-31  Richard Henderson  <rth@redhat.com>
7614
7615         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
7616         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
7617         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
7618         (print_statistics): Make scalar unsigned long long.
7619         * sysdeps/alpha/hp-timing.h: New file.
7620
7621 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
7622
7623         * stdio-common/perror.c (perror): Save errno early, pass it
7624         down to perror_internal.
7625         (perror_internal): Add errnum argument.
7626
7627 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
7628
7629         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
7630         Don't add old memory content for R_ALPHA_REFQUAD.
7631
7632 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
7633
7634         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
7635         memory correctly.
7636
7637         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
7638         instead of open, __close instead of close, __getpagesize instead
7639         of getpagesize.
7640
7641         * string/argz-stringify.c (__argz_stringify): Use __strnlen
7642         instead of strnlen.
7643         * include/string.h (strndupa): Redefine here to use __strnlen
7644         instead of strnlen.
7645         * string/strndup.c (__strndup): Use __strnlen not strnlen.
7646
7647         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
7648         connected).
7649
7650 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
7651
7652         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
7653         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
7654         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
7655         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
7656         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
7657         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
7658         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
7659
7660 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
7661
7662         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
7663
7664 2001-08-30  Andreas Jaeger  <aj@suse.de>
7665
7666         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
7667         contributed Stephen L Moshier.
7668
7669 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
7670
7671         * sunrpc/etc.rpc (sgi_fam): Add.
7672
7673 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
7674
7675         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
7676
7677 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
7678
7679         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
7680         first is from a previous call.
7681         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
7682
7683 2001-08-29  Andreas Schwab  <schwab@suse.de>
7684
7685         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
7686
7687 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
7688
7689         * config.make.in (INSTALL_SCRIPT): Define.
7690         * Makeconfig (INSTALL_SCRIPT): Define.
7691         * Makerules (do-install-script): New macro to install scripts using
7692         INSTALL_SCRIPT.
7693         (install-bin-script): New rule to install scripts with
7694         do-install-script.
7695         (install-bin-script-nosubdir): New rule.
7696         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
7697         (distinfo-vars): Add $(install-bin-script).
7698         * Rules (others): Likewise.
7699         * Makefile (glibcbug): Install with install-bin-script.
7700         * debug/Makefile (xtrace): Likewise.
7701         (catchsegv): Likewise.
7702         * elf/Makefile (ldd): Likewise.
7703         * malloc/Makefile (mtrace): Likewise.
7704         * timezone/Makefile (tzselect): Likewise.
7705
7706 2001-08-29  H.J. Lu  <hjl@gnu.org>
7707
7708         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
7709         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
7710         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
7711
7712 2001-08-29  Andreas Schwab  <schwab@suse.de>
7713
7714         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
7715
7716 2001-08-28  H.J. Lu  <hjl@gnu.org>
7717
7718         * Makeconfig (combreloc-LDFLAGS): New variable.
7719         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
7720         * config.make.in (have-z-combreloc): New variable.
7721         * configure.in: Substitute libc_cv_z_combreloc.
7722
7723 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
7724
7725         * po/sv.po: Update from translation team.
7726         * po/fr.po: Likewise.
7727         * po/da.po: Likewise.
7728
7729 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
7730
7731         * Makerules: Fix a typo: MD% -> MD5.
7732
7733 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
7734
7735         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
7736         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
7737
7738 2001-08-28  Andreas Jaeger  <aj@suse.de>
7739
7740         * manual/libc-texinfo.sh: Add entry about free manuals.
7741
7742         * manual/contrib.texi (Contributors): Fix cross reference.
7743
7744         * manual/libc.texinfo (Copying): Include freemanuals.
7745
7746         * manual/Makefile (appendices): Add freemanuals.
7747
7748         * manual/freemanuals.texi: New file.
7749         Patch by Brian Youmans <3diff@gnu.org>.
7750
7751         * manual/libm-err-tab.pl: Pretty print more platforms, print a
7752         smaller table.
7753
7754         * manual/math.texi (Errors in Math Functions): Fix grammar, start
7755         table on separate page.
7756         Patch by Brian Youmans <3diff@gnu.org>.
7757
7758 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
7759
7760         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
7761         the connection went down after we first used it try to connect
7762         again and resend the message before printing to the console.
7763         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
7764
7765 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
7766
7767         * string/tst-strlen.c (main): Test strnlen (, -1) too.
7768         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
7769         bit set.
7770
7771 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
7772
7773         * iconv/strtab.c (searchstring): Use correct length for comparison.
7774         (strtabadd): Account total size correct if new string has old string as
7775         substring.
7776
7777 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
7778
7779         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
7780
7781 2001-08-27  Andreas Jaeger  <aj@suse.de>
7782
7783         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
7784
7785         * math/libm-test.inc (j0_test): Add extra tests.
7786         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
7787         not x, in Hankel approximation.
7788         Patches by Stephen L Moshier.
7789
7790 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
7791
7792         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
7793         link_map.
7794
7795         * configure.in: Fix test for .rela.dyn section.
7796
7797         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
7798
7799 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
7800
7801         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
7802         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
7803         Pass type_class to _dl_lookup_*.
7804         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
7805         Pass around just type_class instead of noexec, noplt pair.
7806         (_dl_lookup_versioned_symbol): Likewise.
7807         (_dl_lookup_symbol_skip): Pass around just type_class instead of
7808         noexec, noplt pair.
7809         (_dl_lookup_versioned_symbol_skip): Likewise.
7810         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
7811         * elf/do-lookup.h (do_lookup): Likewise.
7812         * include/link.h (struct link_map): Replace noexec and noplt fields
7813         in l_lookup_cache with type_class field.
7814         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
7815         ELF_RTYPE_CLASS_COPY): Define.
7816         Adjust prototypes for _dl_lookup_symbol and
7817         _dl_lookup_versioned_symbol.
7818         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
7819         elf_machine_lookup_noexec_p): Remove.
7820         (elf_machine_type_class): Define.
7821         * sysdeps/arm/dl-machine.h: Likewise.
7822         * sysdeps/hppa/dl-machine.h: Likewise.
7823         * sysdeps/cris/dl-machine.h: Likewise.
7824         * sysdeps/i386/dl-machine.h: Likewise.
7825         * sysdeps/ia64/dl-machine.h: Likewise.
7826         * sysdeps/m68k/dl-machine.h: Likewise.
7827         * sysdeps/mips/mips64/dl-machine.h: Likewise.
7828         * sysdeps/mips/dl-machine.h: Likewise.
7829         * sysdeps/powerpc/dl-machine.h: Likewise.
7830         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7831         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7832         * sysdeps/sh/dl-machine.h: Likewise.
7833         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7834         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7835
7836 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
7837
7838         * manual/message.texi (Advanced gettext functions): Change
7839         description of plural forms for Slovak.
7840         Reported by Marcel Telka <marcel@telka.sk>.
7841
7842         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
7843         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
7844
7845 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
7846
7847         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
7848         typo.  Patch by Florian La Roche <laroche@redhat.com>.
7849
7850 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
7851
7852         * include/link.h (struct link_map): Add l_lookup_cache element.
7853         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
7854         (RESOLVE_MAP): Likewise.
7855         (_dl_relocate_object): Remove cache initialization.
7856         * elf/dl-lookup.c: Rip out cache handling code.
7857         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
7858         declarations.
7859
7860         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
7861         remove some __builtin_expect.
7862         (_dl_lookup_versioned_symbol): Likewise.
7863
7864         * config.h.in: Add HAVE_Z_COMBRELOC.
7865         * configure.in: Add test for -z combreloc.
7866
7867         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
7868         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
7869         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
7870         case to almost no code.
7871
7872 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
7873
7874         * po/tr.po: Update from translation team.
7875
7876 2001-08-24  Andreas Jaeger  <aj@suse.de>
7877
7878         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
7879         make clean works.
7880
7881 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
7882
7883         * elf/rtld.c (print_statistics): Printf % after percent values.
7884         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
7885
7886         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
7887         don't have to compute the hash value and initialize current_value.
7888         Move reference_name variable to where it is needed.
7889         (_dl_lookup_versioned_symbol): Likewise.
7890
7891 2001-08-24  Roland McGrath  <roland@frob.com>
7892
7893         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
7894         Just test that strerror returns non-null for a few errno codes.
7895
7896 2001-08-23  Roland McGrath  <roland@frob.com>
7897
7898         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
7899         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
7900
7901         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
7902
7903         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
7904         __mach_reply_port.
7905
7906 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
7907
7908         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
7909         returns NULL.
7910
7911         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
7912         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
7913         doesn't do it.
7914         * elf/rtld.c: Include <sys/param.h>.
7915         * elf/dl-reloc.c: Likewise.
7916
7917 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
7918
7919         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
7920         empty to prevent junk from being generated.
7921         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
7922
7923 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
7924
7925         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
7926         records.  Rename endrel to relative, initialize it to r, and use it
7927         in elf_machine_rel_relative calls.  Point r after relative relocs.
7928
7929 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
7930
7931         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
7932         of R_386_NONE.
7933
7934 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
7935
7936         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
7937         necessary.  Undefine newly defined macros at the end.
7938         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
7939         Rename from elf_machine_rel_relative.
7940         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
7941         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
7942         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
7943         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
7944         Likewise.
7945         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
7946         Likewise.
7947         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
7948         Fix argument types.
7949         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
7950         Fix argument types.
7951         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
7952         Likewise.  Fix argument types.
7953         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
7954         Likewise.  Fix argument types.
7955         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
7956         Fix argument types.
7957         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
7958         ElfW(Rel) in argument.
7959         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
7960         function.
7961
7962 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
7963
7964         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
7965
7966 2001-08-24  Andreas Jaeger  <aj@suse.de>
7967
7968         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
7969         Stephen L Moshier <moshier@mediaone.net>.
7970
7971 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
7972
7973         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
7974         first if RELCOUNT is set.
7975
7976         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
7977         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
7978         elf_machine_rel_relative.
7979         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
7980         Minor optimizations.
7981         * sysdeps/arm/dl-machine.h: Likewise.
7982         * sysdeps/cris/dl-machine.h: Likewise.
7983         * sysdeps/hppa/dl-machine.h: Likewise.
7984         * sysdeps/i386/dl-machine.h: Likewise.
7985         * sysdeps/ia64/dl-machine.h: Likewise.
7986         * sysdeps/m68k/dl-machine.h: Likewise.
7987         * sysdeps/mips/dl-machine.h: Likewise.
7988         * sysdeps/powerpc/dl-machine.h: Likewise.
7989         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7990         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7991         * sysdeps/sh/dl-machine.h: Likewise.
7992         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7993         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7994
7995 2001-08-23  Roland McGrath  <roland@frob.com>
7996
7997         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
7998
7999         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
8000         sysdeps/mach version.  Implement counting ("recursive") mutexes
8001         on top of cthreads mutexes.
8002         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
8003
8004         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
8005         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
8006         (__libc_cleanup_region_start, __libc_cleanup_region_end,
8007         __libc_clean_end): Define these to call the cleanup function after
8008         normal exit when they're supposed to.
8009
8010         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
8011         Take new first arg DOIT, a boolean saying whether to really install
8012         any cleanup handler.
8013         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
8014         (__libc_cleanup_end): Likewise.
8015         * sysdeps/generic/bits/libc-lock.h: Same changes.
8016         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
8017         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
8018         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
8019         Likewise.
8020         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
8021         * sysdeps/generic/bits/stdio-lock.h
8022         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
8023
8024 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
8025
8026         * elf/ldconfig.c (search_dir): Remove stale symlinks.
8027
8028 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
8029
8030         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
8031         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
8032         lookups in cache.
8033         (_dl_lookup_versioned_symbol): Likewise.
8034         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
8035         relocation lookup.
8036         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
8037         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
8038         (lookup_cache, lookup_cache_versioned): Add declarations.
8039
8040 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
8041
8042         * stdlib/tst-random.c (main): Swap parameters in fail call.
8043         Patch by Pete Bevin <pete@petebevin.com>.
8044
8045 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
8046
8047         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
8048
8049 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
8050
8051         * malloc/obstack.c: Indent preprocessor directives.
8052         Patch by Jim Meyering <meyering@ascend.com>.
8053
8054         * po/ja.po: Update from translation team.
8055
8056 2001-08-23  Roland McGrath  <roland@frob.com>
8057
8058         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
8059
8060         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
8061         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
8062
8063 2001-08-22  Roland McGrath  <roland@frob.com>
8064
8065         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
8066         __libc_lock_define_recursive.
8067         * elf/dl-open.c: Don't declare it here any more.
8068         * elf/dl-close.c: Likewise.
8069         * elf/dl-lookup.c: Likewise.
8070         * elf/dl-iteratephdr.c: Likewise.
8071         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
8072         __libc_lock_unlock_recursive.
8073         * elf/dl-close.c (_dl_close): Likewise
8074         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
8075         * elf/dl-open.c (_dl_open): Likewise
8076
8077         * sysdeps/generic/bits/libc-lock.h
8078         (__libc_lock_define_recursive): New macro.
8079         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
8080         (_IO_lock_lock): Use __libc_lock_lock_recursive.
8081         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
8082
8083         * conform/conformtest.pl (checknamespace): Sort the output list.
8084
8085         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
8086         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
8087         definitions conditional on [__USE_XOPEN].
8088
8089         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
8090         these unconditionally, not only use [__USE_BSD], so as to match
8091         the sysdeps/unix/sysv/linux files.
8092
8093 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
8094
8095         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
8096         avoid warnings.
8097
8098         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
8099         DL_LOOKUP_ADDRESS.
8100
8101 2001-08-22  Roland McGrath  <roland@frob.com>
8102
8103         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
8104         conditionalization of sa_handler/sa_sigaction member types to
8105         match the sysdeps/unix/sysv/linux file.
8106
8107 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
8108
8109         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
8110         symbol sizes a bit better.
8111
8112         * sysdeps/ia64/strncpy.S: Complete rewrite.
8113         Contributed by Jakub Jelinek <jakub@redhat.com>.
8114
8115         * string/stratcliff.c (main): Add strncpy test.
8116
8117 2001-08-22  Roland McGrath  <roland@frob.com>
8118
8119         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
8120         and don't declare unsetenv or _environ directly.
8121         (unsetenv): Return int, not void.  Use __environ instead of _environ.
8122
8123 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
8124
8125         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
8126         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
8127         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
8128         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
8129         test for cmsg struct size.
8130
8131 2001-04-23  Paul Eggert  <eggert@twinsun.com>
8132
8133         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
8134         Rename __argc to ___argc in prototypes to avoid compatibility
8135         problems with systems that reserve the identifier "__argc".
8136         Similarly for __argv.
8137
8138 2001-08-21  Roland McGrath  <roland@frob.com>
8139
8140         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
8141
8142         * mach/Makefile (tests): Removed.
8143         * mach/hello.c: File removed.
8144
8145 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
8146
8147         * po/sv.po: Update from translation team.
8148
8149         * stdio-common/vfscanf.c: Fix handling of %l[].
8150         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
8151
8152         * libio/Makefile (tests): Add tst-sscanf.
8153         * libio/tst-sscanf.c: New file.
8154
8155         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
8156         * malloc/mtrace.c (tr_where): dli_sname always points to a
8157         non-empty string if != NULL.
8158         Reported by Tim Janik <timj@gtk.org>.
8159
8160 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
8161
8162         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
8163         buf.  Free resources on failure.
8164         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
8165         (makefd_xprt): Likewise.
8166         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
8167         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
8168         * sunrpc/auth_unix.c (authunix_create): Likewise.
8169
8170 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
8171
8172         * string/strnlen.c: Remove.
8173         * sysdeps/generic/strnlen.c: New file.
8174         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
8175
8176 2001-08-21  Roland McGrath  <roland@frob.com>
8177
8178         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
8179         as a macro, not an extern inline function.
8180
8181         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
8182         * Versions.def (libc): Add GLIBC_2.2.5 set.
8183         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
8184         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
8185
8186 2001-08-20  Roland McGrath  <roland@frob.com>
8187
8188         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
8189         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
8190
8191 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
8192
8193         * string/bits/string2.h: Remove strnlen optimization here.
8194         * sysdeps/i386/i486/bits/string.h: Add it here.
8195
8196 2001-08-21  Wolfram Gloger  <wg@malloc.de>
8197
8198         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
8199
8200 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
8201
8202         * po/gl.po: Update from translation team.
8203
8204 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
8205
8206         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
8207         * misc/err.c (convert_and_print): Likewise.
8208
8209         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
8210         function calls.
8211
8212 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8213
8214         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
8215         change of the gregset_t type.
8216         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
8217
8218 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
8219
8220         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
8221
8222 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
8223
8224         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
8225
8226         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
8227
8228 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
8229
8230         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
8231         before calling the cthreads initialization code.
8232
8233 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
8234
8235         * argp/argp-help.c: Fix two problems introduced in last change.
8236
8237         * include/dirent.h: Include <dirstream.h> first.
8238
8239 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
8240
8241         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
8242
8243         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
8244         * sunrpc/xdr_rec.c: Likewise.
8245         * sunrpc/xdr_mem.c: Likewise.
8246         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
8247         * sunrpc/rpc_cmsg.c: Likewise.
8248         * sunrpc/getrpcport.c (getrpcport): Likewise.
8249         * sunrpc/clnt_simp.c (callrpc): Likewise.
8250         * sunrpc/clnt_gen.c (clnt_create): Likewise.
8251         * string/envz.c: Likewise.
8252
8253         * po/ko.po: Update from translation team.
8254
8255         * argp/argp-help.c: Handle wide oriented stderr stream.
8256
8257 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
8258
8259         * sysdeps/generic/strtol.c: Little optimizations.  Add some
8260         __builtin_expect.
8261
8262         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
8263
8264         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
8265         * wcsmbs/wcwidth.c (wcwdith): Likewise.
8266         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
8267
8268         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
8269
8270         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
8271
8272         * time/time.h (struct timespec): Use __time_t for tv_sec element.
8273
8274         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
8275         wchar_t for function declarations and defintions.
8276
8277         * misc/sys/select.h: Define __need_time_t before including <time.h>.
8278         Define suseconds_t if it hasn't happened yet.
8279
8280         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
8281
8282         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
8283
8284         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
8285         <stddef.h>.
8286
8287         * conform/data/stddef.h-data: Remove wint_t.
8288
8289         * conform/conformtest.pl: Change namespace test to take #undef
8290         lines into account.
8291
8292         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
8293
8294         * conform/data/sys/socket.h-data: Add sockatmark.
8295
8296 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
8297
8298         * io/fts.c: Update from recent BSD source.
8299
8300 2001-08-17  Roland McGrath  <roland@frob.com>
8301
8302         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
8303         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
8304         Likewise.
8305
8306 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
8307
8308         * locale/duplocale.c (__duplocale): Also initialize the special
8309         __ctype_* elements.
8310
8311         * conform/data/netdb.h-data: Adjust gai_strerror return type.
8312
8313 2001-08-17  Andreas Jaeger  <aj@suse.de>
8314
8315         * misc/getpass.c: Include wchar.h for prototypes.
8316         * malloc/obstack.c: Likewise.
8317
8318 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
8319
8320         * sunrpc/svc_simple.c (universal): Use __write instead of write.
8321
8322         * wcsmbs/wcscoll.c: Also define __wcscoll.
8323         * include/wchar.h: Declare __wcscoll.
8324
8325         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
8326         * libio/vwprintf.c: Likewise.
8327         * libio/wprintf.c: Likewise.
8328
8329         * iconv/gconv_cache.c: Use __munmap instead of munmap.
8330
8331 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
8332
8333         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
8334         instead of mbrtowc.
8335         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
8336         wcslen, and __wcscoll instead of wcscoll.
8337
8338         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
8339
8340         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
8341         __getuid instead of getuid.
8342
8343         * stdio-common/perror.c (perror): Use __close instead of close.
8344         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
8345         * libio/freopen.c (freopen): Likewise.
8346         * libio/freopen64.c (freopen64): Likewise.
8347
8348         * libio/tst-ungetwc2.c (main): Define str const.
8349
8350         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
8351         * libio/fwprintf.c: Also define __fwprintf.
8352         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
8353         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
8354         * assert/assert-perr.c: Likewise.
8355         * assert/assert.c: Likewise.
8356         * gmon/gmon.c: Likewise.
8357         * inet/rcmd.c: Likewise.
8358         * malloc/obstack.c: Likewise.
8359         * misc/err.c: Likewise.
8360         * misc/error.c: Likewise.
8361         * misc/getpass.c: Likewise.
8362         * posix/getopt.c: Likewise.
8363         * resolv/res_hconf.c: Likewise.
8364         * stdio-common/perror.c: Likewise.
8365         * stdio-common/psignal.c: Likewise.
8366         * stdlib/fmtmsg.c: Likewise.
8367         * sunrpc/auth_unix.c: Likewise.
8368         * sunrpc/clnt_perr.c: Likewise.
8369         * sunrpc/clnt_tcp.c: Likewise.
8370         * sunrpc/clnt_udp.c: Likewise.
8371         * sunrpc/clnt_unix.c: Likewise.
8372         * sunrpc/svc_simple.c: Likewise.
8373         * sunrpc/svc_tcp.c: Likewise.
8374         * sunrpc/svc_udp.c: Likewise.
8375         * sunrpc/svc_unix.c: Likewise.
8376         * sunrpc/xdr.c: Likewise.
8377         * sunrpc/xdr_array.c: Likewise.
8378         * sunrpc/xdr_rec.c: Likewise.
8379         * sunrpc/xdr_ref.c: Likewise.
8380         * sysdeps/generic/wordexp.c: Likewise.
8381
8382         * po/it.po: Update from translation team.
8383
8384         * misc/err.c: Handle wide oriented stderr stream.
8385
8386 2001-08-14  Tom Rix  <trix@redhat.com>
8387
8388         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
8389         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
8390
8391 2001-08-13  Tom Rix  <trix@redhat.com>
8392
8393         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
8394         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
8395         and __intptr_t.
8396
8397 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
8398
8399         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
8400         Store the access registers to the ucontext structure.
8401         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
8402         Likewise.
8403
8404         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
8405         Load the access registers from the ucontext structure.
8406         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
8407         Likewise.
8408
8409         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
8410         offsets to the new ucontext layout.
8411         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
8412
8413         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
8414         of the ucontext structure.
8415         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
8416
8417 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
8418
8419         * misc/error.c (error): Handle wide oriented stderr stream correctly.
8420         (error_at_line): Likewise.
8421
8422         * stdio-common/perror.c (perror): Implement according to standard.
8423         The stream orientation must not be changed if the stream was not
8424         oriented before the call.
8425         * stdio-common/Makefile (tests): Add tst-perror.
8426         * stdio-common/tst-perror.c: New file.
8427
8428
8429 See ChangeLog.12 for earlier changes.