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