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