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