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