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