d6980b0979e13863432c2fe00564036f78670e4f
[kopensolaris-gnu/glibc.git] / ChangeLog
1 2002-07-23  Andreas Jaeger  <aj@suse.de>
2
3         * sysdeps/x86_64/fpu/s_copysign.S: Use optimized version.
4         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
5
6 2002-07-22  Ulrich Drepper  <drepper@redhat.com>
7
8         * libio/tst-eof.c: Rewrite to let test-skeleton.c deal with
9         creation and removal of the temp file.
10
11         * libio/bug-rewind.c: Use test skeleton.  Use create_temp_file for
12         file creation.
13         * test-skeleton.c (create_temp_file): New function.
14
15 2002-07-22  Andreas Jaeger  <aj@suse.de>
16
17         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Use
18         local label.
19
20 2002-07-21  Roland McGrath  <roland@frob.com>
21
22         * wcsmbs/Makefile (strtox-CFLAGS): New variable,
23         put -I../include before -I../stdlib so we get the right errno.h et al.
24         (CFLAGS-wcstod.c): Use that variable instead of -I../stdlib.
25         (CFLAGS-wcstof.c): Likewise.
26         (CFLAGS-wcstold.c): Likewise.
27         (CFLAGS-wcstod_l.c): Likewise.
28         (CFLAGS-wcstof_l.c): Likewise.
29         (CFLAGS-wcstold_l.c): Likewise.
30
31 2002-07-19  Roland McGrath  <roland@frob.com>
32
33         * sysdeps/mach/hurd/errnos.awk: Remove __set_errno defn from output.
34
35 2002-07-20  Ulrich Drepper  <drepper@redhat.com>
36
37         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
38         __ASSUME_AT_XID is defined.
39         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
40         for 2.4.1 and up.
41         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
42         of AT_UID, AT_EUID, AT_GID, and AT_EGID.
43
44         * wcsmbs/Makefile (CFLAGS-wcstod.c): Add -I../stdlib.
45         (CFLAGS-wcstof.c): Likewise.
46         (CFLAGS-wcstold.c): Likewise.
47         (CFLAGS-wcstod_l.c): Likewise.
48         (CFLAGS-wcstof_l.c): Likewise.
49         (CFLAGS-wcstold_l.c): Likewise.
50
51 2002-07-18  Jakub Jelinek  <jakub@redhat.com>
52
53         * resource/sys/resource.h (__rlimit_resource_t, __rusage_who_t,
54         __priority_which_t): Always typedef to int for C++.
55
56 2002-07-19  Ulrich Drepper  <drepper@redhat.com>
57
58         * configure.in: Add test for __thread support in compiler.
59         * config.h.in: Add HAVE___THREAD.
60         * Makefile (headers): Remove errno.h, sys/errno.h, and bits/errno.h.
61         * include/sys/errno.h: Moved to...
62         * stdlib/sys/errno.h: ...here.  New file.
63         * stdlib/errno.h: New file.  Moved from...
64         * include/errno.h: ...here.  Changed into an internal header defining
65         libc-local things like __set_errno.
66         * stdlib/Makefile (headers): Add errno.h, sys/errno.h, and
67         bits/errno.h.
68         * elf/dl-minimal.c: Include <tls.h>.  Define errno as thread-local
69         variable if USE_TLS && HAVE___THREAD.  Don't define __errno_location
70         either.
71         * elf/rtld.c (_dl_start): Add code to initialize TLS for ld.so
72         from...
73         (_dl_start_final): ...here.  Add code to initialize tls elements from
74         bootstrap_map.
75         * sysdeps/generic/errno-loc.c: Define errno as thread-local variable
76         if USE_TLS && HAVE___THREAD.
77         * sysdeps/generic/bits/errno.h: Remove __set_errno definition.
78         * sysdeps/mach/hurd/bits/errno.h: Likewise.
79         * sysdeps/standalone/arm/bits/errno.h: Likewise.
80         * sysdeps/standalone/bits/errno.h: Likewise.
81         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Likewise.
82         * sysdeps/unix/sysv/aix/bits/errno.h: Likewise.
83         * sysdeps/unix/sysv/hpux/bits/errno.h: Likewise.
84         * sysdeps/unix/sysv/linux/bits/errno.h: Likewise.
85         * sysdeps/unix/sysv/linux/hppa/bits/errno.h: Likewise.
86         * sysdeps/unix/sysv/linux/mips/bits/errno.h: Likewise.
87         * sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h: Likewise.
88         * sysdeps/i386/dl-machine.c (elf_machine_rel) [RTLD_BOOTSTRAP]: Don't
89         use GL(dl_rtld_map), use map parameter.
90         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
91         * sysdeps/unix/sysv/linux/i386/sysdep.S: Define errno in .tbss if
92         USE_TLS && HAVE___THREAD.
93         * sysdeps/unix/sysv/linux/i386/sysdep.h: Unify SETUP_PIC_REG
94         definitions.  If USE_TLS && HAVE___THREAD store errooor value using
95         TLS code sequence.
96         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
97
98         * sysdeps/unix/sysv/linux/getcwd.c: No real need to restore errno.
99         * sysdeps/unix/sysv/linux/grantpt.c: Likewise.
100         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
101         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
102         * sysdeps/unix/sysv/linux/readv.c: Likewise.
103         * sysdeps/unix/sysv/linux/writev.c: Likewise.
104
105 2002-07-17  Ulrich Drepper  <drepper@redhat.com>
106
107         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Fix MS_SYNC and
108         MS_INVALIDATE values.
109
110 2002-07-17  Andreas Schwab  <schwab@suse.de>
111             Ulrich Drepper  <drepper@redhat.com>
112
113         * sysdeps/unix/sysv/linux/pread.c: Sign extend offset.
114         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
115         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
116         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
117
118 2002-07-01  H.J. Lu  <hjl@gnu.org>
119
120         * elf/circleload1.c (load_dso): Call "circlemod1" and check
121         return value.
122
123         * elf/circlemod1.c (circlemod1): Return int.
124         * elf/circlemod2.c (circlemod2): Likewise.
125         * elf/circlemod2a.c (circlemod2): Likewise.
126         * elf/circlemod3.c (circlemod3): Likewise.
127         (circlemod3a): A new function.
128
129 2002-07-16  Ulrich Drepper  <drepper@redhat.com>
130
131         * catgets/tst-catgets.c (main): Don't expect results for
132         untranslated messages.
133
134         * glibcbug.in: Fix little typo.  Remove STDIO.
135
136         * config.h.in: Fail if __FAST_MATH__ is defined.
137         * math/Makefile (CPPFLAGS-test-ifloat.c): Also define TEST_FAST_MATH.
138         (CPPFLAGS-test-idouble.c): Likewise.
139         (CPPFLAGS-test-ildouble.c): Likewise.
140
141 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
142
143         * intl/tst-gettext.sh: Pass -f option to msgfmt.
144         * intl/tst-gettext.c: Correctly handle untranslated messages in
145         positive tests.
146
147         * po/de.po: Update from translation team.
148
149 2002-07-02  H.J. Lu  <hjl@gnu.org>
150
151         * sysdeps/mips/atomicity.h: Don't include <sgidefs.h>.  Always
152         use ll/sc.
153         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Likewise.
154
155         * sysdeps/unix/sysv/linux/configure.in: Set arch_minimum_kernel
156         to 2.4.0 for mips.
157
158 2002-07-15  Ulrich Drepper  <drepper@redhat.com>
159
160         * elf/dl-load.c (_dl_map_object_from_fd): If loaded object uses
161         TLS fail if USE_TLS is not defined.
162
163         * libio/wfileops.c (_IO_wfile_seekoff): Reposition wide pointers
164         and adjust state for seek position.  [PR libc/4070]
165         * libio/Makefile (tests): Add bug-rewind.
166         * libio/bug-rewind.c: New file.
167
168 2002-07-12  Philip Blundell  <philb@gnu.org>
169
170         * sysdeps/generic/backtrace.c (FIRST_FRAME_POINTER): New macro.
171         (__backtrace): Use it.
172         * sysdeps/arm/frame.h (FIRST_FRAME_POINTER): Define.  [PR libc/2632]
173
174 2002-07-12  Philip Blundell  <philb@gnu.org>
175
176         * sysdeps/arm/dl-machine.h (elf_machine_rel): Don't handle
177         R_ARM_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
178         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
179         (elf_machine_rela): Remove unused variable.
180
181         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=elf]
182         (sysdep-rtld-routines, sysdep_routines, sysdep-dl-routines): Don't
183         define.
184
185 2002-07-12  Ulrich Drepper  <drepper@redhat.com>
186
187         * iconvdata/gconv-modules: Add aliases for ISO-8859-11.
188
189 2002-07-14  Andreas Jaeger  <aj@suse.de>
190
191         * sysdeps/x86_64/bits/link.h: Add biarch support.
192
193 2002-07-13  Andreas Jaeger  <aj@suse.de>
194
195         * sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
196         Use correct indices.
197         Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
198
199 2002-07-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
200
201         * sysdeps/s390/bits/byteswap.h: Unified 31/64 bit byteswap.h.
202         * sysdeps/s390/s390-32/bits/byteswap.h: Remove.
203         * sysdeps/s390/s390-64/bits/byteswap.h: Remove.
204         * sysdeps/s390/bits/link.h: Unified 31/64 bit link.h.
205         * sysdeps/s390/s390-32/bits/link.h: Remove.
206         * sysdeps/s390/s390-64/bits/link.h: Remove.
207         * sysdeps/s390/bits/setjmp.h: Unified 31/64 bit setjmp.h.
208         * sysdeps/s390/s390-32/bits/setjmp.h: Remove.
209         * sysdeps/s390/s390-64/bits/setjmp.h: Remove.
210         * sysdeps/s390/bits/wordsize.h: New file.
211         * sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Unified 31/64 bit
212         elfclass.h.
213         * sysdeps/unix/sysv/linux/s390/s390-64/bits/elfclass.h: Remove.
214         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Unified 31/64 bit fcntl.h.
215         * sysdeps/unix/sysv/linux/s390/s390-32/bits/fcntl.h: Remove.
216         * sysdeps/unix/sysv/linux/s390/s390-64/bits/fcntl.h: Remove.
217         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Unified 31/64 bit ipc.h.
218         * sysdeps/unix/sysv/linux/s390/s390-64/bits/ipc.h: Remove.
219         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Unified 31/64 bit mman.h.
220         * sysdeps/unix/sysv/linux/s390/s390-32/bits/mman.h: Remove.
221         * sysdeps/unix/sysv/linux/s390/s390-64/bits/mman.h: Remove.
222         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Unified 31/64 bit msq.h.
223         * ysdeps/unix/sysv/linux/s390/s390-64/bits/msq.h: Remove.
224         * sysdeps/unix/sysv/linux/s390/bits/resource.h: Unified 31/64 bit
225         resource.h.
226         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h: Remove.
227         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h: Remove.
228         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Unified 31/64 bit sem.h.
229         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sem.h: Remove.
230         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Unified 31/64 bit shm.h.
231         * sysdeps/unix/sysv/linux/s390/s390-64/bits/shm.h: Remove.
232         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Unified 31/64 bit
233         sigaction.h.
234         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigaction.h: Remove.
235         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Unified 31/64 bit
236         siginfo.h.
237         * sysdeps/unix/sysv/linux/s390/s390-64/bits/siginfo.h: Remove.
238         * sysdeps/unix/sysv/linux/s390/s390-64/bits/sigstack.h: Remove.
239         * sysdeps/unix/sysv/linux/s390/bits/socket.h: Unified 31/64 bit
240         socket.h.
241         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Remove.
242         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Unified 31/64 bit stat.h.
243         * sysdeps/unix/sysv/linux/s390/s390-32/bits/stat.h: Remove.
244         * sysdeps/unix/sysv/linux/s390/s390-64/bits/stat.h: Remove.
245         * sysdeps/unix/sysv/linux/s390/bits/types.h: Unified 31/64 bit types.h.
246         * sysdeps/unix/sysv/linux/s390/s390-64/bits/types.h: Remove.
247         * sysdeps/unix/sysv/linux/s390/net/route.h: New file.
248         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Unified 31/64 bit
249         procfs.h.
250         * sysdeps/unix/sysv/linux/s390/s390-32/sys/procfs.h: Remove.
251         * sysdeps/unix/sysv/linux/s390/s390-64/sys/procfs.h: Remove.
252         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Unified 31/64 bit
253         ucontext.h.
254         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Remove.
255         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Remove.
256
257 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
258
259         * Versions.def (libc): Add GLIBC_2.3.
260         * stdlib/Versions [libc] (GLIBC_2.3): Add realpath.
261         * stdlib/canonicalize.c: Add compatibility version for realpath
262         and make new code available in GLIBC_2.3.
263
264 2002-07-06  Bruno Haible  <bruno@clisp.org>
265
266         * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
267
268 2002-07-11  Ulrich Drepper  <drepper@redhat.com>
269
270         * resolv/res_hconf.c (_res_hconf_init): Move code into new
271         function do_init.  Use __libc_once.
272         (do_init): New function.
273
274         * iconvdata/iso8859-11.h: Removed.
275         * iconvdata/Makefile (gen-8bit-gap-modules): Add iso8859-11.
276         (distribute): Remove iso8859-11.h.
277         * iconvdata/tst-tables.sh: Add ISO-8859-11.
278
279         * stdio-common/vfscanf.c (inchar): Restore errno from previous
280         underflow operation if c == (W)EOF.
281
282 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
283
284         * stdio-common/printf_fp.c (__printf_fp.c): If _FPIO_CONST_SHIFT is
285         non-zero, adjust exponent.
286         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl, erfl, __erfcl, erfcl):
287         Remove NO_LONG_DOUBLE aliases.
288         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l, expm1l): Likewise.
289         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl, log1pl): Likewise.
290         (__log1pl): Raise divide by zero and invalid exceptions when needed.
291         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Special case
292         1**y and -1**+-Inf.
293         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c (__mpn_extract_long_double):
294         Fix BITS_PER_MP_LIMB 32 extraction.
295         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Don't raise
296         exceptions for qNaNs.
297         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
298         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgamma_r):
299         Raise exceptions when needed.  Don't recurse unnecessarily.
300         Special case 1.0L and 2.0L arguments to avoid -0.0L as result.
301         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Don't raise
302         exceptions for qNaNs.
303         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Make qs 64-bit
304         to fix *quo return value sign.
305         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gamma_r): Special
306         case -Inf argument.
307         * soft-fp/op-4.h (_FP_FRAC_CLZ_4): Fix a pasto.
308
309 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
310
311         * libio/tst-eof.c (do_test): Remove unused ch and tm variables.
312         * iconvdata/iso-2022-jp-3.c (EMIT_SHIFT_TO_INIT): Kill warnings if
313         -DNDEBUG.
314
315 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
316
317         * malloc/hooks.c (realloc_check): If mremap succeeds actually use
318         the result.
319
320         * sysdeps/i386/i486/bits/string.h: Add early clobber for "a"
321         output parameter.  Reported by Denis Zaitsev <zzz@cd-club.ru>.
322
323         * Versions.def (libthread_db): Add GLIBC_2.3.
324
325 2002-07-09  Jakub Jelinek  <jakub@redhat.com>
326
327         * libio/freopen.c (freopen): Reset jump tables, use mmap stdio for the
328         new stream if possible.
329         * libio/freopen64.c (freopen64): Likewise.
330         * libio/Makefile (tests): Add tst-freopen.
331         * libio/tst-freopen.c: New file.
332
333 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
334
335         * libio/stdio.h (obstack_printf): Add format attribute.
336         (obstack_vprintf): Likewise.
337
338 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
339
340         * posix/regex_internal.h (re_token_t): Shrink the structure to 8
341         resp. 16 bytes on 32-bit resp. 64-bit platforms.
342         (re_charset_t, re_string_t): Reorder structure members for 64-bit
343         architectures.
344
345 2002-07-04  Jakub Jelinek  <jakub@redhat.com>
346
347         * posix/regcomp.c (re_compile_internal): Move clearing of dfa...
348         (init_dfa): ...here.
349
350 2002-07-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
351
352         * posix/regcomp.c (parse_sub_exp): Add nodes OP_OPEN_SUBEXP and
353         OP_CLOSE_SUBEXP at both ends of sub expressions instead of SUBEXP
354         nodes in parse trees.
355         (calc_first): Fix the Definition of `firsts' of OP_OPEN_SUBEXP
356         and OP_CLOSE_SUBEXP, and remove the definition of SUBEXP.
357         (calc_epsdest): Treat OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP as the
358         nodes which can epsilon transit.
359         * posix/regex_internal.h: Add OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP
360         to IS_EPSILON_NODE macro.
361         * posix/regexec.c (update_regs): New function to update registers
362         by refering OP_OPEN_SUBEXP and OP_CLOSE_SUBEXP nodes.
363         (proceed_next_node): Use the entities of the nodes to determine
364         whether the node can transit to.
365         (set_regs): Use update_regs function to update registers.
366
367 2002-07-03  Jakub Jelinek  <jakub@redhat.com>
368
369         * posix/bug-regex4.c (main): Remove duplicate setlocale.
370         * posix/bug-regex6.c: New file.
371         * posix/Makefile (tests): Add bug-regex6.
372         (bug-regex6-ENV): Set LOCPATH.
373
374 2002-07-10  Ulrich Drepper  <drepper@redhat.com>
375
376         * Versions.def [libpthread]: Add GLIBC_2.2.6.
377         * posix/Versions [libc] (GLIBC_2.2.6): Add __nanosleep.
378
379 2002-07-06  Bruno Haible  <bruno@clisp.org>
380
381         * sysdeps/unix/sysv/sysv4/bits/sigset.h (__NSSBITS): Correct value.
382
383 2002-07-06  Bruno Haible  <bruno@clisp.org>
384
385         * include/sys/socket.h (__libc_sendto, __libc_recvfrom): New
386         declarations.
387
388         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps for AMD K7.
389
390         * rt/Makefile (tests): Don't add tst-aio* in a single-threaded build.
391
392         * sysdeps/unix/bsd/sun/sunos4/bits/utsname.h: Test for _SYS_UTSNAME_H,
393         not _UTSNAME_H.
394         * sysdeps/unix/bsd/ultrix4/bits/utsname.h: Likewise.
395
396         * sysdeps/generic/bits/stropts.h: Protect against direct inclusion.
397         * sysdeps/generic/bits/ustat.h: Likewise.
398
399         * sysdeps/unix/sysv/linux/bits/statvfs.h (ST_NODIRATIME): Set to 2048.
400
401 2002-07-08  Andreas Jaeger  <aj@suse.de>
402
403         * sysdeps/x86_64/elf/initfini.c (__asm__): Call call_gmon_start.
404
405 2002-07-08  Andreas Jaeger  <aj@suse.de>
406
407         * sysdeps/x86_64/fpu/s_fdiml.S: Fix wrong register name.
408
409 2002-07-06  Andreas Jaeger  <aj@suse.de>
410
411         * sysdeps/x86_64/fpu/bits/mathinline.h: New.
412         * sysdeps/x86_64/fpu/s_copysign.S: New.
413         * sysdeps/x86_64/fpu/s_copysignf.S: New.
414         * sysdeps/x86_64/fpu/s_copysignl.S: New.
415         * sysdeps/x86_64/fpu/s_finitel.S: New.
416         * sysdeps/x86_64/fpu/s_fmax.S: New.
417         * sysdeps/x86_64/fpu/s_fmaxf.S: New.
418         * sysdeps/x86_64/fpu/s_fmaxl.S: New.
419         * sysdeps/x86_64/fpu/s_fmin.S: New.
420         * sysdeps/x86_64/fpu/s_fminf.S: New.
421         * sysdeps/x86_64/fpu/s_fminl.S: New.
422
423 2002-06-05  Brian Youmans <3diff@gnu.org>
424
425         * sysdeps/ia64/fpu/e_acos.S: Added text of Intel license.
426         * sysdeps/ia64/fpu/e_acosf.S: Likewise.
427         * sysdeps/ia64/fpu/e_acosl.S: Likewise.
428         * sysdeps/ia64/fpu/e_asin.S: Likewise.
429         * sysdeps/ia64/fpu/e_asinf.S: Likewise.
430         * sysdeps/ia64/fpu/e_asinl.S: Likewise.
431         * sysdeps/ia64/fpu/e_atan2.S: Likewise.
432         * sysdeps/ia64/fpu/e_atan2f.S: Likewise.
433         * sysdeps/ia64/fpu/e_cosh.S: Likewise.
434         * sysdeps/ia64/fpu/e_coshf.S: Likewise.
435         * sysdeps/ia64/fpu/e_coshl.S: Likewise.
436         * sysdeps/ia64/fpu/e_exp.S: Likewise.
437         * sysdeps/ia64/fpu/e_expf.S: Likewise.
438         * sysdeps/ia64/fpu/e_fmod.S: Likewise.
439         * sysdeps/ia64/fpu/e_fmodf.S: Likewise.
440         * sysdeps/ia64/fpu/e_fmodl.S: Likewise.
441         * sysdeps/ia64/fpu/e_hypot.S: Likewise.
442         * sysdeps/ia64/fpu/e_hypotf.S: Likewise.
443         * sysdeps/ia64/fpu/e_hypotl.S: Likewise.
444         * sysdeps/ia64/fpu/e_log.S: Likewise.
445         * sysdeps/ia64/fpu/e_logf.S: Likewise.
446         * sysdeps/ia64/fpu/e_pow.S: Likewise.
447         * sysdeps/ia64/fpu/e_powf.S: Likewise.
448         * sysdeps/ia64/fpu/e_powl.S: Likewise.
449         * sysdeps/ia64/fpu/e_remainder.S: Likewise.
450         * sysdeps/ia64/fpu/e_remainderf.S: Likewise.
451         * sysdeps/ia64/fpu/e_remainderl.S: Likewise.
452         * sysdeps/ia64/fpu/e_scalb.S: Likewise.
453         * sysdeps/ia64/fpu/e_scalbf.S: Likewise.
454         * sysdeps/ia64/fpu/e_scalbl.S: Likewise.
455         * sysdeps/ia64/fpu/e_sinh.S: Likewise.
456         * sysdeps/ia64/fpu/e_sinhf.S: Likewise.
457         * sysdeps/ia64/fpu/e_sinhl.S: Likewise.
458         * sysdeps/ia64/fpu/e_sqrt.S: Likewise.
459         * sysdeps/ia64/fpu/e_sqrtf.S: Likewise.
460         * sysdeps/ia64/fpu/e_sqrtl.S: Likewise.
461         * sysdeps/ia64/fpu/libm_atan2_req.S: Likewise.
462         * sysdeps/ia64/fpu/libm_error.c: Likewise.
463         * sysdeps/ia64/fpu/libm_frexp4.S: Likewise.
464         * sysdeps/ia64/fpu/libm_frexp4f.S: Likewise.
465         * sysdeps/ia64/fpu/s_frexpl.c: Likewise.
466         * sysdeps/ia64/fpu/s_ilogb.S: Likewise.
467         * sysdeps/ia64/fpu/s_ilogbf.S: Likewise.
468         * sysdeps/ia64/fpu/s_ilogbl.S: Likewise.
469         * sysdeps/ia64/fpu/s_ldexp.S: Likewise.
470         * sysdeps/ia64/fpu/s_ldexpf.S: Likewise.
471         * sysdeps/ia64/fpu/s_ldexpl.S: Likewise.
472         * sysdeps/ia64/fpu/s_log1p.S: Likewise.
473         * sysdeps/ia64/fpu/s_log1pf.S: Likewise.
474         * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
475         * sysdeps/ia64/fpu/s_logb.S: Likewise.
476         * sysdeps/ia64/fpu/s_logbf.S: Likewise.
477         * sysdeps/ia64/fpu/s_logbl.S: Likewise.
478         * sysdeps/ia64/fpu/s_modf.S: Likewise.
479         * sysdeps/ia64/fpu/s_modff.S: Likewise.
480         * sysdeps/ia64/fpu/s_modfl.S: Likewise.
481         * sysdeps/ia64/fpu/s_nearbyint.S: Likewise.
482         * sysdeps/ia64/fpu/s_nearbyintf.S: Likewise.
483         * sysdeps/ia64/fpu/s_nearbyintl.S: Likewise.
484         * sysdeps/ia64/fpu/s_rint.S: Likewise.
485         * sysdeps/ia64/fpu/s_rintf.S: Likewise.
486         * sysdeps/ia64/fpu/s_rintl.S: Likewise.
487         * sysdeps/ia64/fpu/s_round.S: Likewise.
488         * sysdeps/ia64/fpu/s_roundf.S: Likewise.
489         * sysdeps/ia64/fpu/s_roundl.S: Likewise.
490         * sysdeps/ia64/fpu/s_scalbn.S: Likewise.
491         * sysdeps/ia64/fpu/s_scalbnf.S: Likewise.
492         * sysdeps/ia64/fpu/s_scalbnl.S: Likewise.
493         * sysdeps/ia64/fpu/s_significand.S: Likewise.
494         * sysdeps/ia64/fpu/s_significandf.S: Likewise.
495         * sysdeps/ia64/fpu/s_significandl.S: Likewise.
496         * sysdeps/ia64/fpu/s_tan.S: Likewise.
497         * sysdeps/ia64/fpu/s_tanf.S: Likewise.
498         * sysdeps/ia64/fpu/s_tanl.S: Likewise.
499         * sysdeps/ia64/fpu/s_trunc.S: Likewise.
500         * sysdeps/ia64/fpu/s_truncf.S: Likewise.
501         * sysdeps/ia64/fpu/s_truncl.S: Likewise.
502         * sysdeps/ieee754/dbl-64/doasin.c: Changed copyright notice to
503         reflect IBM donation of math library to FSF
504         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
505         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
506         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
507         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
508         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
509         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
510         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
511         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
512         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
513         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
514         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
515         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
516         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
517         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
518         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
519         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
520         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
521         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
522         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
523         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
524         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
525         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
526         * sysdeps/gnu/netinet/udp.h: Added BSD copying permission notice
527         * sysdeps/vax/__longjmp.c: Likewise.
528         * sysdeps/vax/setjmp.c: Likewise.
529         * libio/filedoalloc.c: Fixed BSD copying permission notice to
530         remove advertising clause
531         * sysdeps/vax/htonl.s: Likewise.
532         * sysdeps/vax/htons.s: Likewise.
533         * libio/wfiledoalloc.c: Likewise.
534         * stdlib/random.c: Likewise.
535         * stdlib/random_r.c: Likewise.
536         * sysdeps/mach/sys/reboot.h: Likewise.
537         * inet/getnameinfo.c: Deleted advertising clause from Inner Net License
538         * sysdeps/posix/getaddrinfo.c: Likewise.
539         * sunrpc/des_impl.c: Updated license permission notice to Lesser
540         GPL and corrected pointer to point to the correct license.
541
542 2002-07-04  Andreas Jaeger  <aj@suse.de>
543
544         * scripts/config.guess: New upstream version.
545         * scripts/config.sub: Likewise.
546
547 2002-07-02  Andreas Schwab  <schwab@suse.de>
548
549         * resolv/nss_dns/dns-network.c (getanswer_r): Reduce linebuflen
550         in parallel to bumping up the buffer pointer.
551
552 2002-07-01  Jakub Jelinek  <jakub@redhat.com>
553
554         * math/libm-test.inc (acos_test): Add missing L suffix for
555         expected result.
556         (cpow_test): Likewise.
557         * sysdeps/i386/fpu/libm-test-ulps: Adjust errors for cpow, remove
558         error for acos (0.0625).
559
560 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
561
562         * locale/iso-639.def: Add entry for Ganda.
563         * locale/programs/ld-address.c (DEFINE_LANGUAGE_CODE3): New
564         definition.
565         (address_finish): Handle entries with two letter ISO 639 code.
566
567         * iconvdata/Makefile: Recreate gconv-modules.cache file in target
568         directory if it existed before.
569         * iconv/iconvconfig.c: Implement --prefix option.
570
571         * math/libm-test.inc (cexp_test): Add missing L suffix for
572         expected result.  Reported by Stephen L Moshier <steve@moshier.net>.
573         * sysdeps/i386/fpu/libm-test-ulps: Adjust error for cexp (0.75 +
574         1.25 i).
575
576 2002-05-29  H.J. Lu  <hjl@gnu.org>
577
578         * elf/dl-error.c (_dl_signal_cerror): Report error if ld.so debug
579         is turned on.
580
581 2002-05-28  H.J. Lu  <hjl@gnu.org>
582
583         * elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
584         are not dlopened on the dependency list of a dlopened object.
585
586 2002-06-30  Ulrich Drepper  <drepper@redhat.com>
587
588         * elf/dl-lookup.c (add_dependency): It is not necessary to add
589         dependencies if they are created between objects which are created
590         while processing RTLD_NOW for objects loaded as part of the same
591         dlopen call.
592
593 2002-06-14  H.J. Lu  <hjl@gnu.org>
594
595         * elf/Makefile (tests): Add circleload1.
596         (modules-names): Add circlemod1, circlemod2, circlemod3,
597         circlemod1a, circlemod2a and circlemod3a.
598         ($(objpfx)circleload1): New target.
599         ($(objpfx)circleload1.out): Likewise.
600         ($(objpfx)circlemod1.so): Likewise.
601         ($(objpfx)circlemod2.so): Likewise.
602         ($(objpfx)circlemod1a.so): Likewise.
603         ($(objpfx)circlemod2a.so): Likewise.
604         * elf/circleload1.c: New file.
605         * elf/circlemod1.c: New file.
606         * elf/circlemod1a.c: New file.
607         * elf/circlemod2.c: New file.
608         * elf/circlemod2a.c: New file.
609         * elf/circlemod3.c: New file.
610         * elf/circlemod3a.c: New file.
611
612 2002-06-18  Amos Waterland  <apw@us.ibm.com>
613
614         * sysdeps/pthread/aio_cancel.c (aio_cancel): Add check for invalid
615         file descriptor.
616         * sysdeps/pthread/aio_fsync.c (aio_fsync): Add check for invalid fd;
617         add check for fd not open for writing.
618
619         * sysdeps/pthread/aio_suspend.c (aio_suspend): Add check for
620         completed element(s) and do not suspend thread if so.  Patch
621         heavily modified by drepper.
622
623         * rt/tst-aio7.c: New file.  Regression test for problems which the
624         above three changes fix.
625         * rt/Makefile (tests): Add tst-aio7.
626
627 2002-06-29  Ulrich Drepper  <drepper@redhat.com>
628
629         * rt/tst-aio6.c: Fix comment.
630
631         * catgets/gencat.c (read_input_file): Handle more than one slash
632         at end of line correctly [PR libc/3926].
633         Based on a patch by Steven Kim <steven.kim@peregrine.com>.
634
635         * catgets/sample.SJIS: Add test case for above bug.
636         * catgets/test-gencat.c: Adjust test code.
637         * catgets/test-gencat.sh: Adjust expected results.
638
639         * elf/do-rel.h (elf_dynamic_do_rel): Avoid overflow in computation
640         to skip relative relocations.
641         Patch by Geoff Keating <geoffk@redhat.com>.
642
643 2002-05-26  Bruno Haible  <bruno@clisp.org>
644
645         * iconv/loop.c (STANDARD_FROM_LOOP_ERR_HANDLER): New macro.
646         (STANDARD_TO_LOOP_ERR_HANDLER): Renamed from STANDARD_ERR_HANDLER.
647         All callers changed.
648         * iconv/gconv_simple.c (ascii_internal_loop): For error handling use
649         STANDARD_FROM_LOOP_ERR_HANDLER.
650         (utf8_internal_loop): Likewise.
651         (ucs2_internal_loop): Likewise.
652         (internal_ucs2_loop): Perform error handling like in
653         STANDARD_FROM_LOOP_ERR_HANDLER.
654         * iconvdata/unicode.c (BODY for TO_LOOP): Perform error handling like
655         in STANDARD_FROM_LOOP_ERR_HANDLER.
656         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
657         handling.
658         * iconvdata/utf-16.c (BODY for TO_LOOP): Perform error handling like
659         in STANDARD_FROM_LOOP_ERR_HANDLER.
660         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
661         handling.
662         * iconvdata/utf-32.c (BODY for TO_LOOP): Perform error handling like
663         in STANDARD_FROM_LOOP_ERR_HANDLER.
664         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
665         handling.
666         * iconvdata/big5.c (BODY for FROM_LOOP): For error handling use
667         STANDARD_FROM_LOOP_ERR_HANDLER.
668         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
669         * iconvdata/8bit-gap.c (BODY for FROM_LOOP): Likewise.
670         * iconvdata/8bit-generic.c (BODY for FROM_LOOP): Likewise.
671         * iconvdata/ansi_x3.110.c (BODY for FROM_LOOP): Likewise.
672         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Likewise.
673         * iconvdata/cp1255.c (BODY for FROM_LOOP): Likewise.
674         * iconvdata/cp1258.c (BODY for FROM_LOOP): Likewise.
675         * iconvdata/euc-cn.c (BODY for FROM_LOOP): Likewise.
676         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Likewise.
677         * iconvdata/euc-jp.c (BODY for FROM_LOOP): Likewise.
678         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Likewise.
679         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Likewise.
680         * iconvdata/big5hkscs.c (BODY for FROM_LOOP): Likewise.
681         * iconvdata/gb18030.c (BODY for FROM_LOOP): Likewise.
682         * iconvdata/gbk.c (BODY for FROM_LOOP): Likewise.
683         * iconvdata/iso-2022-cn-ext.c (BODY for FROM_LOOP): Likewise.
684         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Likewise.
685         * iconvdata/iso-2022-jp-3.c (BODY for FROM_LOOP): Likewise.
686         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
687         * iconvdata/iso646.c (BODY for FROM_LOOP): Likewise.
688         * iconvdata/iso_6937-2.c (BODY for FROM_LOOP): Likewise.
689         * iconvdata/iso_6937.c (BODY for FROM_LOOP): Likewise.
690         * iconvdata/johab.c (BODY for FROM_LOOP): Likewise.
691         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
692         * iconvdata/sjis.c (BODY for FROM_LOOP): Likewise.
693         * iconvdata/t.61.c (BODY for FROM_LOOP): Likewise.
694         * iconvdata/uhc.c (BODY for FROM_LOOP): Likewise.
695         * iconvdata/utf-7.c (BODY for FROM_LOOP): Likewise.
696         * iconvdata/gbbig5.c (BODY for FROM_LOOP): Likewise.  When ignoring
697         an error, still set result = __GCONV_ILLEGAL_INPUT.
698         (BODY for TO_LOOP): Likewise.
699         * iconvdata/ibm930.c (BODY for FROM_LOOP): For error handling use
700         STANDARD_FROM_LOOP_ERR_HANDLER.
701         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
702         * iconvdata/ibm932.c: Include <dlfcn.h> and <stdint.h>.
703         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
704         handling.
705         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
706         * iconvdata/ibm933.c (BODY for FROM_LOOP): For error handling use
707         STANDARD_FROM_LOOP_ERR_HANDLER.
708         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
709         * iconvdata/ibm935.c (BODY for FROM_LOOP): For error handling use
710         STANDARD_FROM_LOOP_ERR_HANDLER.
711         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
712         * iconvdata/ibm937.c (BODY for FROM_LOOP): For error handling use
713         STANDARD_FROM_LOOP_ERR_HANDLER.
714         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
715         * iconvdata/ibm939.c (BODY for FROM_LOOP): For error handling use
716         STANDARD_FROM_LOOP_ERR_HANDLER.
717         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
718         * iconvdata/ibm943.c: Include <dlfcn.h> and <stdint.h>.
719         (BODY for FROM_LOOP): Use STANDARD_FROM_LOOP_ERR_HANDLER for error
720         handling.
721         (BODY for TO_LOOP): Here use STANDARD_TO_LOOP_ERR_HANDLER.
722         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Update.
723         * iconvdata/iso8859-1.c (BODY for TO_LOOP): Update.
724         * iconvdata/tcvn5712-1.c (BODY for TO_LOOP): Update.
725
726 2002-06-28  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
727
728         * sysdeps/sh/dl-machine.h (elf_machine_load_address): Use local
729         labels in assembler instructions.
730
731 2002-06-25  Ulrich Drepper  <drepper@redhat.com>
732
733         * libio/fileops.c (_IO_file_xsgetn_mmap): Always set EOF flag if
734         not enough content is available.
735         * libio/tst-eof.c: New file.
736         * libio/Makefile (tests): Add tst-eof.
737
738         * libio/fileops.c (_IO_file_underflow_mmap): Read a single byte to
739         update atime.
740         * libio/tst-atime.c: New file.
741         * libio/Makefile (tests): Add tst-atime.
742
743         * argp/argp-fmtstream.c (__argp_fmtstream_update): Avoid crash in
744         handling of overly long words.
745
746 2002-06-25  Andreas Jaeger  <aj@suse.de>
747
748         * sysdeps/x86-64/dl-machine.h (elf_machine_load_address): Rewrite
749         to not use 32-bit pc relative relocations.
750         (elf_machine_dynamic): Likewise.
751
752 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
753
754         * sysdeps/unix/sysv/linux/getdents.c [__ASSUME_GETDENTS64_SYSCALL]
755         (__GETDENTS): Check for failed getdents64 syscall.
756         * dirent/Makefile (tests): Add bug-readdir1.
757         * dirent/bug-readdir1.c: New file.
758
759 2002-06-17  Jakub Jelinek  <jakub@redhat.com>
760
761         * elf/dl-lookup.c (_dl_debug_bindings): Use type_class 4 for TLS
762         lookups.
763         * elf/rtld.c (dl_main): Move TLS setup code before LD_TRACE_PRELINKING
764         code.  Print TLS modid and offset for modules containing PT_TLS
765         segments.
766
767 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
768
769         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
770         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
771         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
772         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
773
774 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
775
776         * nss/getXXbyYY_r.c (NEW, NEW1): Define.
777         (NEW (REENTRANT_NAME)): Strong alias to INTERNAL (REENTRANT_NAME).
778         (REENTRANT_NAME@@GLIBC_2.1.2): Use NEW (REENTRANT_NAME).
779         * nss/getXXent_r.c (NEW, NEW1): Define.
780         (NEW (REENTRANT_GETNAME)): Strong alias to
781         INTERNAL (REENTRANT_GETNAME).
782         (REENTRANT_GETNAME@@GLIBC_2.1.2): Use NEW (REENTRANT_GETNAME).
783
784 2002-06-21  Ulrich Drepper  <drepper@redhat.com>
785
786         * libio/fileops.c (_IO_file_setbuf_mmap): New function.
787         (_IO_file_jumps_mmap): Use it.
788         * libio/iosetvbuf.c: Don't call _IO_WSETBUF.
789         * libio/libioP.h: Remove _IO_wdefault_setbuf and
790         _IO_wdefault_setbuf_internal prorotypes.  Add _IO_file_setbuf_mmap
791         prototype.
792         * libio/wfileops.c (_IO_wfile_setbuf): Removed.
793         (_IO_wfile_jumps_mmap): Don't use it anymore.
794         * libio/wgenops.c (_IO_wdefault_setbuf): Removed.
795         * libio/memstream.c (_IO_wmem_jumps): Use _IO_default_setbuf not
796         _IO_wdefault_setbuf.
797         * libio/vswprintf.c (_IO_wstrn_jumps): Likewise.
798         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
799         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
800
801 2002-06-05  Jakub Jelinek  <jakub@redhat.com>
802
803         * libio/Makefile (tests): Add tst-mmap-setvbuf.
804         * libio/tst-mmap-setvbuf.c: New test.
805
806 2002-06-21  Andreas Jaeger  <aj@suse.de>
807
808         * sysdeps/i386/fpu/libm-test-ulps: Add some ulps from my P3.
809
810 2002-06-18  Jakub Jelinek  <jakub@redhat.com>
811
812         * include/unistd.h (__fork_internal): Remove.
813         (__fork): Don't define to __fork_internal.
814         * sysdeps/mach/hurd/fork.c (__fork): Remove INTDEF.
815         * sysdeps/unix/sysv/aix/fork.c (__fork): Likewise.
816         * sysdeps/unix/sysv/linux/ia64/fork.S (__fork_internal): Remove alias.
817         * sysdeps/unix/sysv/linux/sparc/fork.S (__fork_internal): Likewise.
818         * sysdeps/unix/sysv/linux/syscalls.list (__fork_internal): Likewise.
819
820 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
821
822         * po/hr.po: New file.
823
824 2002-06-11  Wolfram Gloger  <wg@malloc.de>
825
826         * malloc/malloc.c: Fix error path when new_heap() returns NULL.
827         Reported by Michael Meissner <meissner@redhat.com>.
828
829 2002-06-20  Ulrich Drepper  <drepper@redhat.com>
830
831         * sysdeps/unix/sysv/linux/ia64/getcontext.S: Fix typo.
832         Patch by Hans Boehm <hans_boehm@hp.com>.
833
834 2002-06-20  Andreas Jaeger  <aj@suse.de>
835
836         * math/libm-test.inc: Use exact values as input parameters,
837         compute output parameters with 36 digits for 128-bit long doubles.
838         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
839         * sysdeps/x86-64/fpu/libm-test-ulps: Regenerated.
840         * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
841
842 2002-06-13  Stephen L Moshier  <steve@moshier.net>
843
844         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Fix cases in which
845         argument or result is subnormal.
846
847 2002-06-19  Ulrich Drepper  <drepper@redhat.com>
848
849         * sysdeps/i386/fpu/s_remquo.S: Fix three mistakes in computing the
850         quotient.
851         * sysdeps/i386/fpu/s_remquof.S: Likewise.
852         * sysdeps/i386/fpu/s_remquol.S: Likewise.
853
854         * sysdeps/hppa/dl-machine.h: Don't use multi-line string literals.
855
856 2002-06-17  David Mosberger  <davidm@hpl.hp.com>
857
858         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h (uc_sigmask): Fix
859         typo: corresponding sigcontext field is called sc_mask, not sc_sigmask.
860         Reported by Peter A. Buhr.
861
862 2002-06-15  Roland McGrath  <roland@frob.com>
863
864         * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
865         warning.
866
867         * sysdeps/mach/hurd/getcwd.c
868         (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
869
870         * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
871         * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
872
873         * sysdeps/alpha/divrem.h: Use local label instead of global one for
874         jump to local subroutine.
875
876 2002-06-14  Roland McGrath  <roland@frob.com>
877
878         * sysdeps/mach/hurd/i386/Makeconfig: File moved to ...
879         * sysdeps/mach/hurd/Makeconfig: ... here.
880
881 2002-06-13  Andreas Schwab  <schwab@suse.de>
882
883         * sysdeps/m68k/fpu/s_finite.c: Remove INTDEF.
884         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
885         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
886
887 2002-06-13  Roland McGrath  <roland@frob.com>
888
889         * hurd/hurdstartup.h (_hurd_startup): int -> intptr_t in MAIN arg type.
890         * hurd/hurdstartup.c (_hurd_startup): Likewise.
891         Use intptr_t instead of int for argc in stack layout.
892         * sysdeps/mach/hurd/alpha/init-first.c (init): Fix argument type.
893         (_dl_init_first): Likewise.
894         (_hurd_stack_setup): Likewise.
895         (init1): Add a cast.
896         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start: go): Fix arg type.
897
898         * sysdeps/mach/hurd/if_index.c (if_nameindex): Use size_t for AMOUNT
899         argument to pfinet_siocgifconf RPC.
900
901 2002-06-13  Andreas Schwab  <schwab@suse.de>
902
903         * sysdeps/m68k/fpu/s_isinf.c (INTDEFX): Define to get correct
904         expansion order.
905
906 2002-06-12  Roland McGrath  <roland@frob.com>
907
908         * sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
909         if already defined.
910         [USE_IN_LIBIO]: Conditionalize versioned_symbol use on
911         [GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
912
913 2002-06-11  Roland McGrath  <roland@frob.com>
914
915         * sysdeps/mach/hurd/xstat64.c: Conditionalize entire contents of the
916         file on [!RTLD_STAT64].
917         * sysdeps/mach/hurd/fxstat64.c: Likewise.
918
919         * sysdeps/mach/hurd/tmpfile.c (tmpfile64): Define as alias of tmpfile.
920         (__fdopen): Use INTUSE.
921         * sysdeps/mach/hurd/tmpfile64.c: New file, empty placeholder.
922
923         * stdio-common/tmpfile64.c: File removed.
924         * sysdeps/generic/tmpfile64.c: New file.
925         * sysdeps/generic/tmpfile.c (GEN_THIS): New macro, define to __GT_FILE
926         if not already defined.
927         (tmpfile): Use it in place of __GT_FILE.
928
929         * include/unistd.h: Declare __chown_internal.
930
931         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Do real work here.
932         * sysdeps/mach/hurd/sendfile.c (sendfile): Call that.
933
934 2002-06-09  Roland McGrath  <roland@frob.com>
935
936         Update to new Hurd RPC interfaces supporting 64-bit file sizes.
937         * sysdeps/mach/hurd/configure.in: Check for <hurd/version.h> with
938         value of HURD_INTERFACE_VERSION >= 20020609.
939         * sysdeps/mach/hurd/configure: Regenerated.
940         * shlib-versions (.*-.*-gnu-gnu.*): Set libhurduser=0.3.
941         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Rewritten to
942         convert a struct stat64 into a struct stat and return 0 or -1
943         with errno set to EOVERFLOW.
944         * sysdeps/mach/hurd/statfsconv.c (statfs64_conv): Likewise
945         for struct statfs64 to struct statfs.
946         * sysdeps/mach/hurd/xstat.c (__xstat): Use converter and call ...
947         * sysdeps/mach/hurd/xstat64.c (__xstat64): ... this, real work here.
948         * sysdeps/mach/hurd/fxstat.c (__fxstat): Likewise.
949         * sysdeps/mach/hurd/fxstat64.c (__fxstat64): Likewise.
950         * sysdeps/mach/hurd/lxstat.c (__lxstat): Likewise.
951         * sysdeps/mach/hurd/lxstat64.c (__lxstat64): Likewise.
952         * sysdeps/mach/hurd/statfs.c (__statfs): Likewise.
953         * sysdeps/mach/hurd/statfs64.c (__statfs64): Likewise.
954         * sysdeps/mach/hurd/fstatfs.c (__fstatfs): Likewise.
955         * sysdeps/mach/hurd/fstatfs64.c (__fstatfs64): Likewise.
956         * sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Do real work here.
957         * sysdeps/mach/hurd/pwrite.c (__libc_pwrite): Call that.
958         * sysdeps/mach/hurd/pread64.c (__libc_pread64): Do real work here.
959         * sysdeps/mach/hurd/pread.c (__libc_pread): Call that.
960         * sysdeps/mach/hurd/lseek64.c (__libc_lseek64): Do real work here.
961         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Call that.
962         * sysdeps/mach/hurd/readdir64.c (__readdir64): Do real work here.
963         * sysdeps/mach/hurd/readdir.c (__readdir): Call that.
964         * sysdeps/mach/hurd/readdir64_r.c (__readdir64_r): Do real work here.
965         * sysdeps/mach/hurd/readdir_r.c (__readdir64_r): Call that.
966         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry):
967         Use struct stat64 for io_stat argument.
968         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
969         * hurd/fopenport.c (seekio): Remove EOVERFLOW check, pass POS directly
970         to io_seek.
971         * hurd/fd-read.c (_hurd_fd_read): Use loff_t for OFFSET argument.
972         * hurd/fd-write.c (_hurd_fd_write): Likewise.
973         * hurd/hurd/fd.h: Update decls.
974         * sysdeps/mach/hurd/getcwd.c
975         (_hurd_canonicalize_directory_name_internal): Use ino64_t
976         and struct dirent64.
977         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Use struct stat64.
978         (__xstat): Renamed to __xstat64, use struct stat64 for argument.
979         (__fxstat): Renamed to __fxstat64, use struct stat64 for argument.
980         (__lseek): Renamed to __libc_lseek64, use off64_t for argument.
981
982 2002-06-08  Roland McGrath  <roland@frob.com>
983
984         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Use size_t
985         instead of unsigned long int for __allocation and __size members.
986
987 2002-06-09  Jakub Jelinek  <jakub@redhat.com>
988
989         * sysdeps/unix/sysv/linux/i386/dl-brk.c: Move...
990         * sysdeps/unix/sysv/linux/dl-brk.c: ...here.
991         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: Move...
992         * sysdeps/unix/sysv/linux/dl-sbrk.c: ...here.
993
994 2002-06-07  Roland McGrath  <roland@frob.com>
995
996         * sysdeps/mach/hurd/bits/environments.h: File removed.
997
998 2002-06-07  Jakub Jelinek  <jakub@redhat.com>
999
1000         * sysdeps/unix/sysv/linux/alpha/sendfile64.c: New file.
1001         * sysdeps/unix/sysv/linux/ia64/sendfile64.c: New file.
1002         * sysdeps/unix/sysv/linux/sparc/sparc64/sendfile64.c: New file.
1003         * sysdeps/unix/sysv/linux/x86_64/sendfile64.c: New file.
1004         * sysdeps/unix/sysv/linux/syscalls.list (sendfile): Remove EXTRA.
1005         (sendfile64): Likewise.
1006         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sendfile): Likewise.
1007         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sendfile): Likewise.
1008         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (sendfile):
1009         Likewise.
1010         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Likewise.
1011
1012         * include/sys/stat.h (__fxstat64, __lxstat64): Only define if not
1013         already defined.
1014
1015 2002-06-04  Bruno Haible  <bruno@clisp.org>
1016
1017         * sysdeps/cris/stackinfo.h: New file.
1018
1019         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Cast reloc_addr
1020         to an integer type before performing bit operations on it.
1021
1022 2002-06-05  Roland McGrath  <roland@frob.com>
1023
1024         * sysdeps/generic/sendfile.c: Include <errno.h>.
1025         * sysdeps/generic/sendfile64.c: Likewise.
1026
1027         * io/Makefile (routines): Add sendfile and sendfile64.
1028         (headers): Add sys/sendfile.h to the list.
1029         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
1030         * sysdeps/unix/sysv/linux/sys/sendfile.h: Moved to ...
1031         * io/sys/sendfile.h: ... here.
1032         * sysdeps/generic/sendfile.c: New file.
1033         * sysdeps/generic/sendfile64.c: New file.
1034
1035         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
1036         Move sendfile, sendfile64 to ...
1037         * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
1038         * sysdeps/mach/hurd/sendfile.c: New file.
1039         * sysdeps/mach/hurd/sendfile64.c: New file.
1040
1041         * sysdeps/mach/nanosleep.c: New file.
1042
1043 2002-06-04  Roland McGrath  <roland@frob.com>
1044
1045         * sysdeps/alpha/elf/configure.in: New file.  Check for TLS support.
1046         * sysdeps/alpha/elf/configure: New file (generated).
1047
1048 2002-06-02  Roland McGrath  <roland@frob.com>
1049
1050         * include/link.h: Include <tls.h> to make sure USE_TLS is defined.
1051
1052 2002-06-01  Roland McGrath  <roland@frob.com>
1053
1054         * sysdeps/mach/hurd/alpha/init-first.c: New file, modified from
1055         i386/init-first.c by Andrew M. Miklic <miklic@attglobal.net>.
1056
1057 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
1058
1059         * resolv/resolv.h (struct __res_state): Remove unused nstimes.
1060         Add nsmap.
1061         * resolv/res_init.c (__res_vinit): Initialize nsmap array.
1062         Remove nstimes setting.
1063         (res_nclose): Check all MAXNS nameservers with non-NULL nsaddrs.
1064         * resolv/res_send.c (res_nsend): Don't close unconditionally if
1065         there is mix of IPv6 and IPv4 nameservers.
1066         Use nsmap array to find free slots and preserve nameserver ordering.
1067         Fix RES_ROTATE.
1068
1069 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
1070
1071         * sysdeps/unix/sysv/linux/sys/sendfile.h: It is now possible to
1072         use this header with LFS.
1073
1074         * po/sk.po: Update from translation team.
1075
1076 2002-05-28  Andreas Schwab  <schwab@suse.de>
1077
1078         * sysdeps/generic/readelflib.c (process_elf_file): Give correct
1079         message when finding object of wrong class.
1080
1081 2002-05-28  Jakub Jelinek  <jakub@redhat.com>
1082
1083         * sysdeps/wordsize-32/divdi3.c (__moddi3): Fix pasto.
1084         Patch by <radu@netsoft.ro>.
1085
1086 2002-05-30  Ulrich Drepper  <drepper@redhat.com>
1087
1088         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc] (sysdep_routines):
1089         Add readahead.
1090         * sysdeps/unix/sysv/linux/readahead.c: New file.
1091         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile64 syscall.
1092         * sysdeps/unix/sysv/linux/Versions: Export readahead and sendfile64.
1093         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add readahead syscall.
1094         Add sendfile64 alias to sendfile syscall.
1095         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1096         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1097         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1098         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_readahead
1099         syscall.
1100
1101         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use __i686.get_pc_thunk.XX
1102         special section for PIC register loading.
1103         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h: Likewise.
1104
1105         * config.h.in: Define HAVE_HIDDEN.
1106         * configure.in: Also define HAVE_HIDDEN if HAVE_PROTECTED is defined.
1107
1108         * elf/elf.h: Correct Alpha TLS relocations according to last spec.
1109
1110 2002-05-28  Roland McGrath  <roland@frob.com>
1111
1112         * sysdeps/mach/alpha/setfpucw.c: New file.
1113
1114 2002-05-26  Roland McGrath  <roland@frob.com>
1115
1116         * sysdeps/mach/hurd/ioctl.c (__ioctl): Don't use sizeof in _IOTS.
1117         Use integer_t instead of int for IOC_VOID case.
1118
1119 2002-05-27  Alexandre Oliva  <aoliva@redhat.com>
1120
1121         * configure.in (DO_STATIC_NSS): Define if --disable-shared.
1122
1123 2002-05-26  Bruno Haible  <bruno@clisp.org>
1124
1125         * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the
1126         end of the ISO-8859-7 from idx table.
1127
1128 2002-05-27  Ulrich Drepper  <drepper@redhat.com>
1129
1130         * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649].
1131
1132 2002-05-24  David S. Miller  <davem@redhat.com>
1133
1134         * string/bits/string2.h (memset): Do not try to optimize when
1135         not _STRING_ARCH_unaligned if GCC will do the right thing.
1136
1137 2002-05-21  Isamu Hasegawa  <isamu@yamato.ibm.com>
1138
1139         * posix/regex.c: Define `inline' as a macro into nothing for the
1140         compilers which lack the keyword.
1141         * posix/regex.h: (RE_SYNTAX_GNU_AWK): Remove RE_CONTEXT_INVALID_OPS
1142         for the compatibility of gawk.
1143         * posix/regcomp.c: Add fake implementation of isblank() for the
1144         environments which lack the function.
1145         Don't use free_charset() in case of non-i18n envs.
1146         (build_range_exp): Don't use i18n related code in case of non-i18n
1147         envs.
1148         (build_collating_symbol): Likewise.
1149         (build_equiv_class): Likewise.
1150         (build_charclass): Likewise.
1151         (re_compile_fastmap_iter): Likewise.
1152         (parse_bracket_exp): Likewise.
1153         (build_word_op): Likewise.
1154         (regfree): Don't use free_charset() in case of non-i18n envs.
1155         * posix/regex_internal.h: Remove COMPLEX_BRACKET from
1156         re_token_type_t in case of non-i18n envs.
1157         Don't define re_charset_t in case of non-i18n envs.
1158         Change the type of wcs of re_string_t from wchar_t to wint_t,
1159         since we store also WEOF.
1160         * posix/regex_internal.c: (re_string_realloc_buffers): Change
1161         the type of wcs of re_string_t from wchar_t to wint_t.
1162         (re_string_reconstruct): Likewise.
1163         (create_ci_newstate): Don't use i18n related code in case of
1164         non-i18n envs.
1165         (create_cd_newstate): Likewise.
1166
1167 2002-05-24  Ulrich Drepper  <drepper@redhat.com>
1168
1169         * iconv/loop.c: Fix typo.
1170
1171 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1172
1173         * inet/ether_line.c (ether_line): Fix a typo causing only
1174         lower 4 bits of each ethernet address byte being assigned.
1175         Don't modify what line points to.
1176         * inet/tst-ether_aton.c (main): Add ether_line tests.
1177
1178 2002-05-23  Marcus Brinkmann  <marcus@gnu.org>
1179
1180         * manual/filesys.texi: Don't make readlink example leak memory
1181         when readlink fails.
1182
1183 2002-05-20  Ulrich Drepper  <drepper@redhat.com>
1184
1185         * iconv/loop.c: Fix condition for defining unaligned loop.  Add
1186         some more security checks.
1187
1188 2002-05-17  David S. Miller  <davem@redhat.com>
1189
1190         * sysdeps/unix/sysv/linux/sparc/fork.S: Define _internal aliases.
1191
1192 2002-05-16  David S. Miller  <davem@redhat.com>
1193
1194         * sysdeps/sparc/sparc32/dl-machine.h (LOAD_PIC_REG): Define.
1195         (elf_machine_dynamic): Use it to force PIC register to be loaded.
1196         (elf_machine_load_address): Likewise.
1197         * sysdeps/sparc/sparc64/dl-machine.h: Mirror sparc32 changes.
1198
1199         * sysdeps/sparc/sparc64/strncmp.S: When second argument pointer
1200         is unaligned, do not forget to fully initialize %g1 magic value.
1201
1202         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Fix 64-bit elf
1203         register definitions and provide 32-bit variants of structures
1204         during 64-bit builds.
1205
1206         * soft-fp/op-1.h (_FP_FRAC_CLEAR_OVERP_1): Define.
1207         * soft-fp/op-2.h (_FP_FRAC_CLEAR_OVERP_2): Define.
1208         * soft-fp/op-4.h (_FP_FRAC_CLEAR_OVERP_4): Define.
1209         * soft-fp/op-common.h (_FP_PACK_CANONICAL): After rounding, if
1210         _FP_FRAC_OVERP_X is set, use _FP_FRAC_CLEAR_OVERP_X to clear it.
1211         (_FP_FROM_INT): Perform right shifts on unsigned integer type.
1212         Do not clear implicit one bit here, it must be done post-rounding.
1213         Only pad to the left using left shift if value uses less than the
1214         available fractional bits.
1215
1216 2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1217
1218         * sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
1219         instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
1220         (shared-only-routines): Likewise.
1221         * sysdeps/powerpc/libgcc-compat.c: New file.
1222         * sysdeps/wordsize-32/cmpdi2.c: Removed.
1223         * sysdeps/wordsize-32/fixdfdi.c: Removed.
1224         * sysdeps/wordsize-32/fixsfdi.c: Removed.
1225         * sysdeps/wordsize-32/shdi3.c: Removed.
1226
1227 2002-05-16  Bruno Haible  <bruno@clisp.org>
1228
1229         * MakeTAGS (libc.pot): Don't sort the output.
1230         * po/header.pot: Update to match xgettext 0.11 output.
1231
1232 2002-05-16  Bruno Haible  <bruno@clisp.org>
1233
1234         * MakeTAGS (subdirs): Remove duplicates.
1235
1236 2002-05-19  Ulrich Drepper  <drepper@redhat.com>
1237
1238         * sysdeps/unix/sysv/linux/errlist.c: Remove extra weak alias
1239         definiton of _old_sys_nerr.  Define _old_sys_errlist as strong
1240         alias.
1241
1242 2002-05-19  Andreas Jaeger  <aj@suse.de>
1243
1244         * sysdeps/unix/sysv/linux/configure.in: Warn against an
1245         installation in /usr/local.
1246
1247 2002-05-16  Bruno Haible  <bruno@clisp.org>
1248
1249         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: Don't use multiline
1250         string as argument of #error.
1251
1252 2002-05-15  Ulrich Drepper  <drepper@redhat.com>
1253
1254         * stdlib/canonicalize.c (canonicalize): Rename to __realpath and
1255         don't define static.  Remove old __realpath function.  TC1 of
1256         POSIX 2001 will allow the second parameter to be NULL.
1257         * stdlib/test-canon.c: Comment out test for NULL as second
1258         parameter of realpath.
1259
1260         * time/offtime.c (__offtime): Set errno if overflow is detected.
1261
1262         * elf/Makefile (rtld-routines): Remove dl-brk and dl-sbrk.
1263         * sysdeps/unix/sysv/linux/Makefile (sysdep-rtld-routines): Add
1264         dl-brk and dl-sbrk.
1265
1266         * sysdeps/sparc/fpu/bits/mathinline.h (fdim): Add __THROW.
1267         (fdimf): Likewise.
1268
1269 2002-05-15  Roland McGrath  <roland@frob.com>
1270
1271         * hurd/report-wait.c (_S_msg_report_wait): Use mach_msg_id_t for arg.
1272
1273 2002-05-12  Bruno Haible  <bruno@clisp.org>
1274
1275         * iconvdata/testdata/EUC-JISX0213: New file.
1276         * iconvdata/testdata/EUC-JISX0213..UTF8: New file.
1277         * iconvdata/testdata/SHIFT_JISX0213: New file.
1278         * iconvdata/testdata/SHIFT_JISX0213..UTF8: New file.
1279         * iconvdata/testdata/ISO-2022-JP-3: New file.
1280         * iconvdata/testdata/ISO-2022-JP-3..UTF8: New file.
1281         * iconvdata/TESTS: Add EUC-JISX0213, SHIFT_JISX0213, ISO-2022-JP-3.
1282         * iconvdata/run-iconv-test.sh: Skip the charmap test if the charmap
1283         contains comments indicating precomposed characters.
1284
1285 2002-04-21  Bruno Haible  <bruno@clisp.org>
1286
1287         * iconvdata/iso-2022-jp-3.c: New file.
1288         * iconvdata/gconv-modules (ISO-2022-JP-3): New module.
1289         * iconvdata/Makefile (modules): Add ISO-2022-JP-3.
1290         (LDFLAGS-ISO-2022-JP-3.so): New variable.
1291         (ISO-2022-JP-3.so): Depend on libJIS.so and libJISX0213.so.
1292         (distribute): Add iso-2022-jp-3.c.
1293
1294 2002-05-12  Bruno Haible  <bruno@clisp.org>
1295
1296         * iconvdata/tst-table-to.c (main): Restore handling of
1297         transliterations, broken by last patch.
1298
1299 2002-05-12  Bruno Haible  <bruno@clisp.org>
1300
1301         * iconvdata/TESTS: Add IBM922, IBM1124, IBM1129.
1302
1303 2002-05-12  Bruno Haible  <bruno@clisp.org>
1304
1305         * iconvdata/euc-jisx0213.c (BODY for FROM_LOOP): Don't advance inptr
1306         when there is not enough room in the output buffer.
1307         * iconvdata/shift_jisx0213.c (BODY for FROM_LOOP): Likewise.
1308
1309 2002-04-20  Bruno Haible  <bruno@clisp.org>
1310
1311         * iconv/skeleton.c ({FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}): New
1312         macros.
1313         (RESET_INPUT_BUFFER): Use them instead of {MIN,MAX}_NEEDED_{FROM,TO}.
1314         Also make this macro work if FROM_DIRECTION evaluates to 0.
1315         (gconv_init): Use the new macros instead of {MIN,MAX}_NEEDED_{FROM,TO}.
1316         (FUNCTION_NAME): Likewise, in the handling of unaligned accesses and
1317         of consume_incomplete.
1318         * iconvdata/cp1255.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
1319         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to
1320         4, not 8.
1321         * iconvdata/cp1258.c: Likewise.
1322         * iconvdata/ibm930.c: Define {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO}
1323         instead of {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 3,
1324         not 2.
1325         * iconvdata/ibm933.c: Likewise.
1326         * iconvdata/ibm935.c: Likewise.
1327         * iconvdata/ibm937.c: Likewise.
1328         * iconvdata/ibm939.c: Likewise.
1329         * iconvdata/iso-2022-cn.c: Define
1330         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
1331         {MIN,MAX}_NEEDED_{FROM,TO}. Set TO_LOOP_MAX_NEEDED_TO to 6, not 4.
1332         * iconvdata/iso-2022-cn-ext.c: Likewise.
1333         * iconvdata/iso-2022-jp.c: Define
1334         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
1335         {MIN,MAX}_NEEDED_{FROM,TO}.
1336         * iconvdata/tcvn5712-1.c: Define
1337         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
1338         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_FROM to 1, not 2.
1339         * iconvdata/euc-jisx0213.c: Define
1340         {FROM,TO}_LOOP_{MIN,MAX}_NEEDED_{FROM,TO} instead of
1341         {MIN,MAX}_NEEDED_{FROM,TO}. Set FROM_LOOP_MAX_NEEDED_TO to 8, not 4.
1342         * iconvdata/shift_jisx0213.c: Likewise.
1343
1344 2002-05-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1345
1346         * sysdeps/powerpc/Makefile (sysdeps_routines): Add divdi3, cmpdi2,
1347         shdi3, fixdfdi, fixsfdi in csu dir.
1348         (shared-only-routines): Likewise.
1349         * sysdeps/wordsize-32/cmpdi2.c: New file.
1350         * sysdeps/wordsize-32/shdi3.c: New file.
1351         * sysdeps/wordsize-32/fixdfdi.c: New file.
1352         * sysdeps/wordsize-32/fixsfdi.c: New file.
1353         * sysdeps/powerpc/Versions (__divdi3, __moddi3, __udivdi3, __umoddi3,
1354         __ashldi3, __ashrdi3, __lshrdi3, __cmpdi2, __ucmpdi2, __fixdfdi,
1355         __fixsfdi, __fixunsdfdi, __fixunssfdi): Export at GLIBC_2.0.
1356
1357         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
1358         Only use va_arg if the argument will be used [PR libc/3259].
1359
1360 2002-05-06  Michael A. Schmidt  <mmaass@us.ibm.com>
1361
1362         * catgets/catgets.c (catopen): Free buffer if internal catalog
1363         open fails.
1364
1365 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
1366
1367         * debug/xtrace.sh: Make more robust.  For realtime tracking use
1368         non-buffering methods.
1369         * debug/pcprofiledump.c: Implement -u option.
1370         Patch by Roger Luethi <rl@hellgate.ch>.
1371
1372 2002-05-11  Jakub Jelinek  <jakub@redhat.com>
1373
1374         * include/netinet/in.h (bindresvport_internal): Add prototype.
1375         * include/rpc/auth.h  (authunix_create_internal,
1376         authunix_create_default_internal, authnone_create_internal,
1377         authdes_pk_create_internal): Add prototypes.
1378         * include/rpc/clnt.h (clnt_create_internal, clnttcp_create_internal,
1379         clntudp_create_internal, clntudp_bufcreate_internal,
1380         clntunix_create_internal): Add prototypes.
1381         * include/rpc/svc.h (svc_sendreply_internal, svcerr_decode_internal,
1382         svc_getreq_internal, svc_getreq_common_internal,
1383         svc_getreqset_internal, svc_getreq_poll_internal,
1384         svc_register_internal, svc_unregister_internal,
1385         svcudp_create_internal, svcudp_bufcreate_internal): Add prototypes.
1386         * include/rpc/svc_auth.h (_authenticate_internal): Add prototype.
1387         * include/sys/socket.h (__sendto, __recvfrom, __sendmsg, __recvmsg,
1388         __setsockopt, __getsockname, __bind, __listen): Add prototypes.
1389         * inet/rexec.c (rexec_af): Use __listen and __getsockname.
1390         * inet/rcmd.c (rcmd_af): Use __listen.
1391         (rresvport_af): Use __bind.
1392         * sunrpc/clnt_udp.c: Use INTUSE calls to bindresvport,
1393         authunix_create, authunix_create_default, authnone_create,
1394         authdes_pk_create, clnt_create, clnttcp_create, clntudp_create,
1395         clntudp_bufcreate, clntunix_create svc_sendreply, svcerr_decode,
1396         svc_getreq, svc_getreq_common, svc_getreqset, svc_getreq_poll,
1397         svc_register, svc_unregister, svcudp_create, svcudp_bufcreate,
1398         _authenticate, add INTDEF after such function definitions.
1399         Use __listen, __bind, __sendto, __recvfrom, __sendmsg, __recvmsg,
1400         __setsockopt, __getsockname instead of non-__ variants.
1401         * sunrpc/pmap_rmt.c: Likewise.
1402         * sunrpc/rtime.c: Likewise.
1403         * sunrpc/svc_udp.c: Likewise.
1404         * sunrpc/clnt_unix.c: Likewise.
1405         * sunrpc/svc_unix.c: Likewise.
1406         * sunrpc/bindrsvprt.c: Likewise.
1407         * sunrpc/svc_tcp.c: Likewise.
1408         * sunrpc/auth_none.c: Likewise.
1409         * sunrpc/clnt_raw.c: Likewise.
1410         * sunrpc/clnt_tcp.c: Likewise.
1411         * sunrpc/auth_unix.c: Likewise.
1412         * sunrpc/key_call.c: Likewise.
1413         * sunrpc/clnt_gen.c: Likewise.
1414         * sunrpc/pm_getmaps.c: Likewise.
1415         * sunrpc/clnt_simp.c: Likewise.
1416         * sunrpc/pmap_clnt.c: Likewise.
1417         * sunrpc/svc_run.c: Likewise.
1418         * sunrpc/svc.c: Likewise.
1419         * sunrpc/svc_simple.c: Likewise.
1420         * sunrpc/pm_getport.c: Likewise.
1421         * sunrpc/auth_des.c: Likewise.
1422         * sunrpc/svc_auth.c: Likewise.
1423         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases,
1424         __register_frame_info_table_bases, __deregister_frame_info_bases):
1425         Add INTDEF.
1426         (__register_frame_info_bases_internal,
1427         __register_frame_info_table_bases_internal,
1428         __deregister_frame_info_bases_internal): Add prototypes.
1429         (__register_frame_info, __register_frame): Use INTUSE in call to
1430         __register_frame_info_bases.
1431         (__register_frame_info_table): Similarly.
1432         (__deregister_frame_info, __deregister_frame): Similarly.
1433         * sysdeps/generic/sendto.c (__sendto): Renamed from sendto, add
1434         sendto as weak alias.
1435         * sysdeps/mach/hurd/sendto.c: Likewise.
1436         * sysdeps/generic/recvfrom.c (__recvfrom): Renamed from recvfrom, add
1437         recvfrom as weak alias.
1438         * sysdeps/mach/hurd/recvfrom.c: Likewise.
1439         * sysdeps/unix/sysv/aix/recvfrom.c: Likewise.
1440         * sysdeps/generic/recvmsg.c (__recvmsg): Renamed from recvmsg, add
1441         recvmsg as weak alias.
1442         * sysdeps/unix/sysv/aix/recvmsg.c: Likewise.
1443         * sysdeps/generic/sendmsg.c (__sendmsg): Renamed from sendmsg, add
1444         sendmsg as weak alias.
1445         * sysdeps/unix/sysv/aix/sendmsg.c: Likewise.
1446         * sysdeps/generic/setsockopt.c (__setsockopt): Renamed from
1447         setsockopt, add setsockopt as weak alias.
1448         * sysdeps/mach/hurd/setsockopt.c: Likewise.
1449         * sysdeps/generic/bind.c (__bind): Renamed from bind, add bind as
1450         weak alias.
1451         * sysdeps/mach/hurd/bind.c: Likewise.
1452         * sysdeps/generic/listen.c (__listen): Renamed from listen, add listen
1453         as weak alias.
1454         * sysdeps/mach/hurd/listen.c: Likewise.
1455         * sysdeps/generic/getsockname.c (__getsockname): Renamed from
1456         getsockname, add getsockname as weak alias.
1457         * sysdeps/mach/hurd/getsockname.c: Likewise.
1458         * sysdeps/unix/sysv/aix/getsockname.c: Likewise.
1459         * sysdeps/mach/hurd/recvmsg.c (__recvmsg): Add weak alias.
1460         * sysdeps/mach/hurd/sendmsg.c (__sendmsg): Add weak alias.
1461         * sysdeps/unix/inet/syscalls.list (__bind, __listen, __recvmsg,
1462         __recvfrom, __sendmsg, __sendto, __setsockopt): Add aliases.
1463         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__recvmsg, __sendmsg):
1464         Add aliases.
1465         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1466         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1467         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1468         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1469         * sysdeps/unix/sysv/linux/recvfrom.S (__recvfrom): Add weak alias.
1470         * sysdeps/unix/sysv/linux/recvmsg.S (__recvmsg): Likewise.
1471         * sysdeps/unix/sysv/linux/sendmsg.S (__sendmsg): Likewise.
1472         * sysdeps/unix/sysv/linux/sendto.S (__sendto): Likewise.
1473         * sysdeps/unix/sysv/linux/setsockopt.S (__setsockopt): Likewise.
1474         * sysdeps/unix/sysv/linux/bind.S (__bind): Likewise.
1475         * sysdeps/unix/sysv/linux/listen.S (__listen): Likewise.
1476         * sysdeps/unix/sysv/linux/getsockname.S (__getsockname): Likewise.
1477
1478 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
1479
1480         * locale/programs/localedef.h (show_archive_content): Add verbose
1481         argument.
1482         * locale/programs/localedef.c (main): Adjust caller.
1483         * locale/programs/locarchive.c (struct nameent, struct dataent): New.
1484         (nameentcmp, dataentcmp): New functions.
1485         (xstrcmp): Remove.
1486         (show_archive_content): Print verbose listing with --list-archive -v.
1487
1488 2002-05-14  Ulrich Drepper  <drepper@redhat.com>
1489
1490         * locale/programs/locarchive.c (open_archive): Take extra argument
1491         readonly.  If true open file with O_RDONLY and don't create the
1492         archive if it doesn't exist.
1493         Adapt all callers.
1494         (close_archive): Don't do anything if fd element is -1.
1495         * locale/programs/localedef.h (open_archive): Adjust prototype.
1496         * locale/programs/locfile.c (write_all_categories): Adjust open_archive
1497         call.
1498
1499         * malloc/malloc.c (__posix_memalign): Correct check for size of
1500         alignment value [PR libc/3444].
1501
1502         * include/stdio.h: Remove references to old stdio implementation.
1503
1504         * libio/Makefile (bug-ungetwc2-ENV): Define.
1505
1506 2002-05-13  Roland McGrath  <roland@frob.com>
1507
1508         * iconv/gconv_charset.h (upstr): Add inline keyword, quiets warning.
1509
1510         * hurd/hurdinit.c (_hurd_init): Use internal name _hurd_new_proc_init.
1511
1512 2002-05-13  Marcus Brinkmann  <marcus@gnu.org>
1513
1514         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
1515         Allocate three, not two, more than LEN when appending '/.'.
1516         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.  Don't check
1517         if NAME ends with '/.' if it is shorter than 2 chars.
1518
1519 2002-05-12  Roland McGrath  <roland@frob.com>
1520
1521         * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated
1522         files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
1523
1524         * hurd/hurdexec.c (_hurd_exec): Reauthenticate ports/dtable used in
1525         file_exec to effect svuid=euid, svgid=egid if that is not a no-op.
1526
1527 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
1528
1529         * sysdeps/ia64/Makefile: Remove extra endif.
1530         * sysdeps/ia64/ia64libgcc.S (__divsf3): Fix typo in symbol version.
1531
1532 2002-05-10  Andreas Schwab  <schwab@suse.de>
1533
1534         * sysdeps/powerpc/fpu/w_sqrt.c: Add sqrtl alias.
1535
1536 2002-05-09  Andreas Jaeger  <aj@suse.de>
1537
1538         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: New.
1539         * sysdeps/unix/sysv/linux/x86_64/Dist: Add it.
1540         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add it.
1541
1542         * sysdeps/unix/sysv/linux/ia64/glob.c: Move to ...
1543         * sysdeps/wordsize-64/glob.c: ...here.
1544         * sysdeps/unix/sysv/linux/x86_64/glob.c: Remove.
1545         * sysdeps/unix/sysv/linux/s390/s390-64/glob.c: Remove.
1546         * sysdeps/unix/sysv/linux/sparc/sparc64/glob.c: Remove.
1547
1548 2002-05-08  Roland McGrath  <roland@frob.com>
1549
1550         * hurd/hurdfchdir.c (_hurd_change_directory_port_from_fd): Use
1551         O_NOTRANS flag in "." lookup.
1552
1553 2002-05-05  Ulrich Drepper  <drepper@redhat.com>
1554
1555         * malloc/mtrace.c: Comment out use of _mtrace_file and _mtrace_len.
1556
1557 2002-05-04  Ulrich Drepper  <drepper@redhat.com>
1558
1559         * locale/duplocale.c (__duplocale): Update special members only
1560         when allocation succeeded.
1561
1562 2002-05-03  Roland McGrath  <roland@frob.com>
1563
1564         * shlib-versions (.*-.*-gnu-gnu.*): Remove USE_IN_LIBIO conditionals;
1565         we can only build libc.so.0.3(GLIBC_2.2.6) now.
1566
1567 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
1568
1569         * sysdeps/ia64/Makefile: Add ia64libgcc in csu subdir.
1570         * sysdeps/ia64/Versions (__divtf3, __divdf3, __divsf3, __divdi3,
1571         __moddi3, __udivdi3, __umoddi3, __multi3): Export at GLIBC_2.0.
1572         * sysdeps/ia64/ia64libgcc.S: New file.
1573
1574 2002-05-02  Ulrich Drepper  <drepper@redhat.com>
1575
1576         * sysdeps/generic/dl-tls.c (oom): Implement using _dl_fatal_printf.
1577
1578         * malloc/memusage.c: Distinguish anonymous mmap.
1579
1580 2002-05-01  Roland McGrath  <roland@frob.com>
1581
1582         * sysdeps/mach/hurd/close.c: #undef __close before function defn,
1583         and use INTDEF on it.
1584         * sysdeps/mach/hurd/fcntl.c: Use INTDEF2.
1585
1586         * sysdeps/mach/hurd/dl-sysdep.c (errno): New variable.
1587
1588         * sysdeps/mach/hurd/alpha/static-start.S: New file (unfinished).
1589
1590 2002-05-01  Ulrich Drepper  <drepper@redhat.com>
1591
1592         * malloc/memusage.c: Add support for tracking mmap & friends.
1593         * malloc/memusage.sh: Implement -m/--mmap option.
1594
1595 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
1596
1597         * locale/programs/locarchive.c (create_archive): Add archivefname
1598         argument, create fname from it.
1599         (enlarge_archive): Honour output_prefix.
1600         (open_archive): Likewise.
1601
1602 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
1603
1604         * locale/programs/locarchive.c (add_locales_to_archive): Don't nest
1605         too many stpcpy macros.
1606
1607 2002-04-26  Bruno Haible  <bruno@clisp.org>
1608
1609         * locale/programs/ld-collate.c (collate_read): Cast first argument
1610         for "%.*s" to int.
1611
1612 2002-04-26  Bruno Haible  <bruno@clisp.org>
1613
1614         * include/libintl.h (__ngettext, __dngettext, __dcngettext,
1615         __dcngettext_internal): New declarations.
1616         (__gettext, __dgettext, __dcgettext, __dcgettext_internal): Add
1617         attribute declarations.
1618
1619 2002-04-30  Roland McGrath  <roland@frob.com>
1620
1621         Removed old GNU stdio implementation; GNU libio is now the only option.
1622         * configure.in: Removed --enable-libio option and @stdio@ subst var.
1623         Define USE_IN_LIBIO unconditionally.
1624         * configure: Regenerated.
1625         * Makeconfig (stdio): Set to libio by default.
1626         * config.make.in (stdio): Variable removed.
1627         * sysdeps/unix/sysv/linux/configure.in: Don't set $stdio.
1628         * sysdeps/unix/sysv/linux/configure: Regenerated.
1629         * sysdeps/mach/hurd/configure.in: Don't test $stdio.
1630         * sysdeps/mach/hurd/configure: Regenerated.
1631         * stdio/.cvsignore: File removed.
1632         * stdio/Makefile: File removed.
1633         * stdio/Versions: File removed.
1634         * stdio/__fbufsize.c: File removed.
1635         * stdio/__flbf.c: File removed.
1636         * stdio/__fpending.c: File removed.
1637         * stdio/__fpurge.c: File removed.
1638         * stdio/__freadable.c: File removed.
1639         * stdio/__freading.c: File removed.
1640         * stdio/__fsetlocking.c: File removed.
1641         * stdio/__fwritable.c: File removed.
1642         * stdio/__fwriting.c: File removed.
1643         * stdio/clearerr.c: File removed.
1644         * stdio/fclose.c: File removed.
1645         * stdio/fcloseall.c: File removed.
1646         * stdio/feof.c: File removed.
1647         * stdio/ferror.c: File removed.
1648         * stdio/fflush.c: File removed.
1649         * stdio/fgetc.c: File removed.
1650         * stdio/fgetpos.c: File removed.
1651         * stdio/fgets.c: File removed.
1652         * stdio/fileno.c: File removed.
1653         * stdio/fmemopen.c: File removed.
1654         * stdio/fopen.c: File removed.
1655         * stdio/fopncook.c: File removed.
1656         * stdio/fputc.c: File removed.
1657         * stdio/fputs.c: File removed.
1658         * stdio/fread.c: File removed.
1659         * stdio/freopen.c: File removed.
1660         * stdio/fseek.c: File removed.
1661         * stdio/fsetpos.c: File removed.
1662         * stdio/ftell.c: File removed.
1663         * stdio/fwrite.c: File removed.
1664         * stdio/getc.c: File removed.
1665         * stdio/getchar.c: File removed.
1666         * stdio/getdelim.c: File removed.
1667         * stdio/gets.c: File removed.
1668         * stdio/glue.c: File removed.
1669         * stdio/internals.c: File removed.
1670         * stdio/linewrap.c: File removed.
1671         * stdio/linewrap.h: File removed.
1672         * stdio/memstream.c: File removed.
1673         * stdio/newstream.c: File removed.
1674         * stdio/obstream.c: File removed.
1675         * stdio/putc.c: File removed.
1676         * stdio/putchar.c: File removed.
1677         * stdio/puts.c: File removed.
1678         * stdio/rewind.c: File removed.
1679         * stdio/setbuf.c: File removed.
1680         * stdio/setbuffer.c: File removed.
1681         * stdio/setlinebuf.c: File removed.
1682         * stdio/setvbuf.c: File removed.
1683         * stdio/stdio.h: File removed.
1684         * stdio/ungetc.c: File removed.
1685         * stdio/vasprintf.c: File removed.
1686         * stdio/vscanf.c: File removed.
1687         * stdio/vsnprintf.c: File removed.
1688         * stdio/vsprintf.c: File removed.
1689         * stdio/vsscanf.c: File removed.
1690         * sysdeps/generic/defs.c: File removed.
1691         * sysdeps/generic/fdopen.c: File removed.
1692         * sysdeps/generic/pipestream.c: File removed.
1693         * sysdeps/generic/stdio_init.c: File removed.
1694         * sysdeps/generic/sysd-stdio.c: File removed.
1695         * sysdeps/generic/vdprintf.c: File removed.
1696         * sysdeps/mach/hurd/defs.c: File removed.
1697         * sysdeps/mach/hurd/fdopen.c: File removed.
1698         * sysdeps/mach/hurd/pipestream.c: File removed.
1699         * sysdeps/mach/hurd/stdio_init.c: File removed.
1700         * sysdeps/mach/hurd/sysd-stdio.c: File removed.
1701         * sysdeps/mach/hurd/vdprintf.c: File removed.
1702         * sysdeps/posix/defs.c: File removed.
1703         * sysdeps/posix/fdopen.c: File removed.
1704         * sysdeps/posix/pipestream.c: File removed.
1705         * sysdeps/posix/stdio_init.c: File removed.
1706         * sysdeps/posix/vdprintf.c: File removed.
1707         * sysdeps/unix/pipestream.c: File removed.
1708         * sysdeps/unix/sysv/sysd-stdio.c: File removed.
1709         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: File removed.
1710         * sysdeps/unix/sysv/sysv4/pipestream.c: File removed.
1711
1712 2002-04-29  Roland McGrath  <roland@frob.com>
1713
1714         * include/libc-symbols.h (link_warning): Use `unused' attribute.
1715
1716 2002-04-28  Ulrich Drepper  <drepper@redhat.com>
1717
1718         * sysdeps/generic/tls.h: Describe what must be defined.
1719
1720         * sysdeps/generic/glob.c (glob): Don't pass GLOB_NOMAGIC flag to
1721         glob_in_dir [PR libc/3385].
1722         * posix/globtest.sh: Add test case.
1723
1724         * intl/loadmsgcat.c [!_LIBC] (_nl_init_domain_conv): Don't add
1725         //TRANSLIT twice.
1726
1727 2002-04-27  Ulrich Drepper  <drepper@redhat.com>
1728
1729         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Fix a few issues with the
1730         _internal symbol handling.
1731         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
1732
1733 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
1734
1735         * sysdeps/ia64/fpu/s_finite.S: Define _internal aliases.
1736         * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
1737
1738 2002-04-26  Isamu Hasegawa  <isamu@yamato.ibm.com>
1739
1740         * posix/regcomp.c (re_compile_fastmap_iter): Fix fastmap in case of
1741         not _LIBC and RE_ENABLE_I18N.
1742         (build_range_exp): Implement for not _LIBC.
1743         (build_collating_symbol): Likewise.
1744         (parse_bracket_exp): Unify redundant error handlings.
1745         Don't erase mbcset for non matching list in multibyte envs.
1746         (build_word_op): Add '_' to matching list for \w operator.
1747         * posix/regex_internal.c (re_string_construct): Invoke
1748         build_upper_buffer in case of not RE_ENABLE_I18N.
1749         (re_string_reconstruct): Don't touch cur_state in case of not
1750         RE_ENABLE_I18N.
1751         * posix/regex_internal.h (attribute_hidden): New macro in case of
1752         not _LIBC.
1753         (re_charset_t): Define range_starts/ends in case of not _LIBC.
1754         * posix/regexec.c (sift_states_iter_mb): Hide in case of not
1755         RE_ENABLE_I18N.
1756         (transit_state_mb): Likewise.
1757         (check_node_accept_bytes): Implement the code evaluating range
1758         expression in case of not _LIBC.
1759         (find_collation_sequence_value): Hide in case of not _LIBC.
1760
1761 2002-04-26  Jakub Jelinek  <jakub@redhat.com>
1762
1763         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Copied from
1764         i386/semctl.c.
1765         (__old_semctl, __new_semctl): Only use va_arg if the argument will
1766         be used.
1767
1768 2002-04-26  Ulrich Drepper  <drepper@redhat.com>
1769
1770         * sysdeps/ia64/fpu/s_isinf.S: Fix definition of _internal names.
1771
1772         * sysdeps/ia64/strncpy.S: Fix recovery code.
1773         Patch by David Mosberger <davidm@hpl.hp.com>.
1774
1775 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
1776
1777         * sysdeps/unix/sysv/linux/ia64/Versions [libc]: Add getunwind for
1778         GLIBC_2.2.6.
1779
1780 2002-04-14  Bruno Haible  <bruno@clisp.org>
1781
1782         * posix/regex.c (re_max_failures): Add back symbol for binary
1783         compatibility.
1784
1785 2002-04-22  Isamu Hasegawa  <isamu@yamato.ibm.com>
1786
1787         * posix/regcomp.c (re_compile_internal): Adapt it to new interface
1788         of buffer building functions.
1789         * posix/regex_internal.c (re_string_allocate): New function.
1790         (re_string_realloc_buffers): New function.
1791         (re_string_skip_chars): New function.
1792         (re_string_reconstruct): New function.
1793         (re_string_construct): Adapt it to new interface of buffer building
1794         functions.
1795         (re_string_construct_common): Likewise.
1796         (build_wcs_buffer): Likewise.
1797         (build_wcs_upper_buffer): Likewise.
1798         (build_upper_buffer): Likewise.
1799         (re_string_translate_buffer): Likewise.
1800         (re_string_context_at): Adapt it to variable length buffers.
1801         * posix/regex_internal.h (re_string_t): Add new fields to handle
1802         variable length buffers.
1803         (re_match_context_t): Likewise.
1804         * posix/regexec.c (re_search_internal): Adapt it to new interface
1805         of re_string_t and re_match_context_t.
1806         (acquire_init_state_context): Likewise.
1807         (check_matching): Likewise.
1808         (check_halt_state_context): Likewise.
1809         (proceed_next_node): Likewise.
1810         (set_regs): Likewise.
1811         (sift_states_backward): Likewise.
1812         (clean_state_log_if_need): Likewise.
1813         (sift_states_iter_mb): Likewise.
1814         (sift_states_iter_bkref): Likewise.
1815         (add_epsilon_backreference): Likewise.
1816         (transit_state): Likewise.
1817         (transit_state_sb): Likewise.
1818         (transit_state_mb): Likewise.
1819         (transit_state_bkref): Likewise.
1820         (transit_state_bkref_loop): Likewise.
1821         (check_node_accept): Likewise.
1822         (match_ctx_init): Likewise.
1823         (extend_buffers): New function.
1824
1825 2002-04-21  Bruno Haible  <bruno@clisp.org>
1826
1827         * iconvdata/tst-table.sh: For the second check, use the truncated
1828         GB18030 charmap table, like for the first check.
1829
1830 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
1831
1832         * elf/dl-load.c (open_verify): Correct __lseek parameters.
1833         Patch by Simon Hildrew <simon@hildrew.net> [PR libc/3354].
1834
1835 2002-04-23  H.J. Lu  <hjl@gnu.org>
1836
1837         * include/math.h (isfinite): Fix a typo.
1838
1839 2002-04-24  Ulrich Drepper  <drepper@redhat.com>
1840
1841         * libio/bug-ungetwc2.c (test_locale): Use the de_DE.UTF-8 locale
1842         which is created by the test suite.
1843
1844 2002-04-20  Bruno Haible  <bruno@clisp.org>
1845
1846         * iconvdata/iso-2002-kr.c (MAX_NEEDED_FROM): Set to 4.
1847         (BODY for FROM_LOOP): Fix comparisons between inptr and inend.
1848
1849 2002-04-20  Bruno Haible  <bruno@clisp.org>
1850
1851         * iconvdata/johab.c (BODY for FROM_LOOP): Change type of i, m, f,
1852         to avoid gcc warning.
1853
1854 2002-04-20  Bruno Haible  <bruno@clisp.org>
1855
1856         * iconvdata/iso-2022-jp.c (EMIT_SHIFT_TO_INIT): Fix modification mask
1857         of data->__statep->__count.
1858
1859 2002-04-20  Bruno Haible  <bruno@clisp.org>
1860
1861         * iconvdata/euc-jisx0213.c (BODY for TO_LOOP): Really ignore Unicode
1862         tag characters.
1863         * iconvdata/shift_jisx0213.c (BODY for TO_LOOP): Likewise.
1864
1865 2002-04-24  Roland McGrath  <roland@frob.com>
1866
1867         * sysdeps/mach/alpha/syscall.S: Don't use .frame, ENTRY will have it;
1868         use END macro instead of our own .end directive.
1869         Use `callsys' insn mnemonic instead of `call_pal'.
1870
1871         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
1872
1873         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New
1874         macro; we need this for Hurd.
1875
1876         Log entry was missing for 2002/03/24 commit of rev 1.8,
1877         goes with 2002-03-17 changes.
1878         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = misc]
1879         (sysdep_routines): Append ioperm here.
1880         (sysdep_headers): Append sys/io.h here.
1881
1882 2002-04-23  Roland McGrath  <roland@frob.com>
1883
1884         * sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
1885         * sysdeps/mach/hurd/sendto.c: Likewise.
1886         * hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
1887         * sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
1888         * sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.
1889
1890 2002-04-22  Roland McGrath  <roland@frob.com>
1891
1892         * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Translate MIG_BAD_ID
1893         failure from i386_io_perm_* RPCs to ENOSYS.
1894
1895 2002-04-22  Andreas Jaeger  <aj@suse.de>
1896
1897         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h: New file.
1898
1899         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h: New file.
1900
1901         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Use %rdi as temp
1902         register instead of destroying %rbx.
1903
1904 2002-04-21  Ulrich Drepper  <drepper@redhat.com>
1905
1906         * string/string.h: Declare strerror_r also for XPG6.
1907
1908 2002-04-19  Roland McGrath  <roland@frob.com>
1909
1910         * sysdeps/mach/hurd/tmpfile.c: Create a file descriptor and use fdopen.
1911
1912 2002-04-20  Ulrich Drepper  <drepper@redhat.com>
1913
1914         * Makefile: Add handling of xtests and xcheck targets.
1915         * MakeTAGS: Likewise.
1916         * Makeconfig: Likewise.
1917         * Makerules: Likewise.
1918         * Rules: Likewise.
1919         * manual/Makefile: Likewise.
1920         * sunrpc/Makefile (xtests): Add thrsvc if thread library available.
1921         * sunrpc/thrsvc.c: New file.  By Zack Weinberg.
1922
1923 2002-04-11  Zack Weinberg  <zack@codesourcery.com>
1924
1925         * include/rpc/rpc.h (struct rpc_thread_variables): Remove
1926         authnone_private_s.
1927         * sunrpc/auth_none.c: Include bits/libc-lock.h.
1928         Delete #ifdef _RPC_THREAD_SAFE_ block.
1929         (authnone_private): Make a struct, not a pointer to struct.
1930         (authnone_private_guard): New once-control variable.
1931         (authnone_create_once): New function, split out of
1932         authnone_create.  No need to allocate memory.
1933         (authnone_create): Just call authnone_create_once via
1934         __libc_once, then return &authnone_private->no_client.
1935         (authnone_marshal): Access private data via CLIENT argument,
1936         not authnone_private pointer.
1937         Fix typo (MAX_MARSHEL_SIZE -> MAX_MARSHAL_SIZE).
1938         * sunrpc/rpc_thread.c (__rpc_thread_destroy): No need to free
1939         authnone_private_s.
1940
1941 2002-04-12  H.J. Lu  <hjl@gnu.org>
1942
1943         * sunrpc/clnt_raw.c (clntraw_create): Properly set xdrs and client.
1944
1945 2002-04-18  Bruno Haible  <bruno@clisp.org>
1946
1947         * iconvdata/euc-jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
1948         FROM_DIRECTION): Make the FROM direction stateless.
1949         * iconvdata/shift_jisx0213.c (EMIT_SHIFT_TO_INIT, BODY for
1950         FROM_DIRECTION): Likewise.
1951
1952 2002-04-15  Bruno Haible  <bruno@clisp.org>
1953
1954         * iconvdata/JISX0213.TXT: New file.
1955         * iconvdata/jisx0213.h: New file.
1956         * iconvdata/jisx0213.c: New file.
1957         * iconvdata/euc-jisx0213.c: New file.
1958         * iconvdata/shift_jisx0213.c: New file.
1959         * iconvdata/gconv-modules (EUC-JISX0213, SHIFT_JISX0213): New modules.
1960         * iconvdata/EUC-JISX0213.precomposed: New file.
1961         * iconvdata/SHIFT_JISX0213.precomposed: New file.
1962         * iconvdata/SHIFT_JISX0213.irreversible: New file.
1963         * iconvdata/tst-table-to.c (main): Make it work for encodings for
1964         which the "to" direction is stateful.
1965         * iconvdata/tst-tables.sh: Add EUC-JISX0213, SHIFT_JISX0213.
1966         * iconvdata/Makefile (modules): Add libJISX0213, EUC-JISX0213,
1967         SHIFT_JISX0213.
1968         (libJISX0213-routines): New variable.
1969         (LDFLAGS-EUC-JISX0213.so, LDFLAGS-SHIFT_JISX0213.so): New variables.
1970         (EUC-JISX0213.so, SHIFT_JISX0213.so): Depend on libJISX0213.so.
1971         (LDFLAGS-libJISX0213.so): New variable.
1972         (distribute): Add JISX0213.TXT, EUC-JISX0213.precomposed,
1973         SHIFT_JISX0213.precomposed, SHIFT_JISX0213.irreversible,
1974         jisx0213.c, jisx0213.h, euc-jisx0213.c, shift_jisx0213.c.
1975
1976 2002-04-15  Bruno Haible  <bruno@clisp.org>
1977
1978         * iconvdata/big5hkscs.c (big5hkscs_to_ucs): Change element type to
1979         uint32_t.  Update to Unicode 3.2.
1980         (from_ucs4, from_ucs4_idx): Update to Unicode 3.2.
1981         (BODY for TO_LOOP): Handle the ASCII range specially.
1982         * iconvdata/BIG5HKSCS.irreversible: Add one more entry.
1983         * iconvdata/testdata/BIG5HKSCS: Remove a character.
1984         * iconvdata/testdata/BIG5HKSCS..UTF-8: Regenerated.
1985
1986 2002-04-15  Bruno Haible  <bruno@clisp.org>
1987
1988         * iconvdata/gb18030.c (__twobyte_to_ucs, __fourbyte_to_ucs,
1989         __ucs_to_gb18030_tab1, __ucs_to_gb18030_tab2): Update to Unicode 3.2.
1990
1991 2002-04-15  Bruno Haible  <bruno@clisp.org>
1992
1993         * iconvdata/cns11643.h (__cns11643_from_ucs4p2c_tab): New declaration.
1994         (ucs4_to_cns11643): Update.
1995         * iconvdata/cns11643.c: Update to Unicode 3.2.
1996         (__cns11643l2*_to_ucs4_tab, __cns11643_from_ucs4p0_tab,
1997         __cns11643_from_ucs4p2_tab): Regenerated.
1998         (__cns11643_from_ucs4p2c_tab): New array.
1999         * iconvdata/cvs11643l1.c: Update comments.
2000         * iconvdata/EUC-TW.irreversible: Remove two entries.
2001
2002 2002-04-15  Bruno Haible  <bruno@clisp.org>
2003
2004         * locale/C-translit.h.in: Update to Unicode 3.2.
2005         Add <U2047>, <U205F>..<U2063>, <U2145>..<U2149>, <U2A74>..<U2A76>,
2006         <U30A0>, <U3251>..<U325F>, <U32B1>..<U32BF>, <UFE00>..<UFE0F>.
2007
2008 2002-04-15  Bruno Haible  <bruno@clisp.org>
2009
2010         * iconvdata/sjis.c (halfkana_to_ucs4): Remove array.
2011         (BODY for FROM_LOOP): Optimize the JISX0201:GR to Unicode conversion.
2012
2013 2002-04-15  Bruno Haible  <bruno@clisp.org>
2014
2015         * iconvdata/euc-jp.c (BODY for FROM_LOOP): When encountering an
2016         invalid input (e.g. a byte > 0x80 followed by a byte < 0x80), skip
2017         always one byte, not 0 bytes in some cases and 2 bytes in others.
2018
2019         * iconvdata/tst-table-from.c (main): Correct the usage message.
2020
2021 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
2022
2023         * posix/regcomp.c (parse_expression): Fix incorrect error code.
2024         (parse_dup_op): Fix error handling like "a{}".
2025         (parse_bracket_exp): Add error handling.
2026         (fetch_number): Add error handling for "a{<very_large_number>}".
2027
2028 2002-04-19  Isamu Hasegawa  <isamu@yamato.ibm.com>
2029
2030         * posix/regcomp.c (parse_bracket_symbol): Add error handling
2031         in case that the symbol name is too long.
2032         (build_charclass): Handle [:lower:]/[:uppper:] correctly
2033         in case of REG_ICASE.
2034
2035 2002-04-19  Andreas Jaeger  <aj@suse.de>
2036
2037         * math/libm-test.inc: Fix comment, suggested by Hartvig Ekner
2038         <hartvige@mips.com>.
2039
2040 2002-04-15  H.J. Lu  <hjl@gnu.org>
2041
2042         * include/math.h (__finitel_internal): Declare only if
2043         __NO_LONG_DOUBLE_MATH is not defined.
2044         (__isinfl_internal): Likewise.
2045         (__isnanl_internal): Likewise.
2046
2047         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __connect_internal.
2048         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2049         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2050         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2051         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
2052         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2053         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2054
2055         * sysdeps/unix/sysv/linux/syscalls.list: Add __chown_internal and
2056         __fcntl_internal.
2057
2058         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat64_internal): Added.
2059         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat64_internal): Added.
2060
2061 2002-04-15  Bruno Haible  <bruno@clisp.org>
2062
2063         * iconvdata/armscii-8.c (BODY for FROM_LOOP): Fix array access.
2064         (BODY for TO_LOOP): Likewise.
2065         * iconvdata/tcvn5712-1.c (from_ucs4): Map U+0309 to 0xB1.
2066         * iconvdata/tst-table.sh: Add support for encodings which contain
2067         precomposed Unicode characters, known to the iconv converter in both
2068         directions but not listed in the charmap.
2069         * iconvdata/IBM856.irreversible: New file.
2070         * iconvdata/IBM922.irreversible: New file.
2071         * iconvdata/IBM1132.irreversible: New file.
2072         * iconvdata/IBM1133.irreversible: New file.
2073         * iconvdata/IBM1160.irreversible: New file.
2074         * iconvdata/IBM1161.irreversible: New file.
2075         * iconvdata/IBM1163.irreversible: New file.
2076         * iconvdata/IBM1164.irreversible: New file.
2077         * iconvdata/ARMSCII-8.irreversible: New file.
2078         * iconvdata/TCVN5712-1.precomposed: New file.
2079         * iconvdata/tst-tables.sh: Add IBM856, IBM922, IBM1124, IBM1129,
2080         IBM1160, IBM1161, IBM1132, IBM1133, IBM1162, IBM1163, IBM1164,
2081         ARMSCII-8, TCVN5712-1.
2082         * iconvdata/Makefile (distribute): Add IBM856.irreversible,
2083         IBM922.irreversible, IBM1132.irreversible, IBM1133.irreversible,
2084         IBM1160.irreversible, IBM1161.irreversible, IBM1163.irreversible,
2085         IBM1164.irreversible, ARMSCII-8.irreversible, TCVN5712-1.precomposed.
2086
2087 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
2088
2089         * time/tst-mktime.c: Include <stdlib.h>.  Use %d, not %ld format
2090         for EVENING69.  Include offsets in TZ environment variable.
2091
2092 2002-04-18  Ulrich Drepper  <drepper@redhat.com>
2093
2094         * iconv/skeleton.c (RESET_INPUT_BUFFER): Replace ifs with #ifs to
2095         avoid compiler warnings.
2096
2097         * locale/programs/localedef.c (main): Always call
2098         construct_output_path.
2099
2100         * iconv/Makefile (CFLAGS-simple-hash.c): Define to find hashval.h.
2101
2102         * locale/programs/locfile.c (to_archive): New variable.  To collect
2103         data which has to be added to the locale archive.
2104         (write_all_categories): Take new third parameter with locale name.
2105         Unless no_archive flag set add new locale data to the archive
2106         (write_locale_data): Unless no-archive flag set store generated data
2107         in to_archive data structure instead of generation output file.
2108         Add new parameter with locale category index.
2109         * locale/programs/locfile.h: Add new parameters in declaractions of
2110         write_all_categories and write_locale_data.
2111         * locale/programs/localedef.c: Recognize --no-archive, --list-archive,
2112         --add-to-archive, and --delete-from-archive options.  Pass extra
2113         parameter to write_all_categories.
2114         * locale/programs/localedef.h: Add prototypes for functions in
2115         locarchive.c.
2116         * locale/locarchive.h: New file.
2117         * locale/programs/locarchive.c: New file.
2118         * locale/Makefile (distribute): Add programs/locarchive.c and
2119         locarchive.h.
2120         (localedef-modules): Add md5 and locarchive.
2121         Add vpath to crypt subdir for md5.c.
2122
2123         * locale/programs/ld-address.c: Pass locale category ID as new second
2124         parameter to write_locale_data.
2125         * locale/programs/ld-collate.c: Likewise.
2126         * locale/programs/ld-ctype.c: Likewise.
2127         * locale/programs/ld-identification.c: Likewise.
2128         * locale/programs/ld-measurement.c: Likewise.
2129         * locale/programs/ld-messages.c: Likewise.
2130         * locale/programs/ld-monetary.c: Likewise.
2131         * locale/programs/ld-name.c: Likewise.
2132         * locale/programs/ld-numeric.c: Likewise.
2133         * locale/programs/ld-paper.c: Likewise.
2134         * locale/programs/ld-telephone.c: Likewise.
2135         * locale/programs/ld-time.c: Likewise.
2136
2137         * locale/simple-hash.c: Move compute_hashval function from here...
2138         * locale/hashval.h: ...to here.  New file.
2139         * locale/simple-hash.h: Add prototype for compute_hashval.
2140
2141         * include/libintl.h: Minor cleanups.
2142
2143 2002-04-16  Ulrich Drepper  <drepper@redhat.com>
2144
2145         * posix/regcomp.c (gettext): Use INTUSE for _libc_intl_domainname.
2146
2147 2002-04-15  Ulrich Drepper  <drepper@redhat.com>
2148
2149         * include/sys/stat.h: Fix typo.  Patch by HJ Lu.
2150
2151 2002-04-14  Bruno Haible  <bruno@clisp.org>
2152
2153         * locale/programs/charmap.c (charmap_read): Don't access result if
2154         result == NULL.
2155
2156 2002-02-17  Andreas Schwab  <schwab@suse.de>
2157
2158         * elf/reldep7.c: New file.
2159         * elf/reldep7mod1.c: New file.
2160         * elf/reldep7mod2.c: New file.
2161         * elf/Makefile: Add rules to build and run reldep7.
2162
2163 2002-04-14  Jakub Jelinek  <jakub@redhat.com>
2164
2165         * elf/dl-lookup.c (_dl_lookup_symbol): Move add_dependency call to
2166         the end of the function.  Pass original flags to recursive call if
2167         add_dependency failed.
2168         (_dl_lookup_versioned_symbol): Likewise.
2169
2170 2002-04-13  Jakub Jelinek  <jakub@redhat.com>
2171
2172         * time/mktime.c (__mktime_internal): If year is 69, don't bail out
2173         early, but check whether it overflowed afterwards.
2174         * time/tst-mktime.c (main): Add new tests.
2175
2176 2002-04-14  Ulrich Drepper  <drepper@redhat.com>
2177
2178         * debug/xtrace.sh: Fix program name in help message.
2179         Patch by Roger Luethi <rl@hellgate.ch>.
2180
2181         * include/sys/stat.h: Add prototypes for __lxstat_internal and
2182         __lxstat64_internal.  Add macros __lxstat and __lxstat64 if not
2183         NOT_IN_libc.
2184         * sysdeps/generic/lxstat.c: Use INTDEF for __lxstat.
2185         * sysdeps/mach/hurd/lxstat.c: Likewise.
2186         * sysdeps/unix/common/lxstat.c: Likewise.
2187         * sysdeps/unix/sysv/aix/lxstat.c: Likewise.
2188         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
2189         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
2190         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
2191         * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise.
2192         * sysdeps/generic/lxstat64.c: Use INTDEF for __lxstat64.
2193         * sysdeps/mach/hurd/lxstat64.c: Likewise.
2194         * sysdeps/unix/sysv/aix/lxstat64.c: Likewise.
2195         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
2196
2197         * include/wchar.h: Declare __mbrtowc_internal and __mbrlen_internal
2198         prototypes.  Add __mbrlen and __mbrtowc macros.
2199         * wcsmbs/mbrlen.c: Use INTDEF for __mbrlen.
2200         * wcsmbs/mbrtowc.c: Use INTDEF for __mbrtowc.
2201
2202         * include/unistd.h: Add prototype for __write_internal and add
2203         __libc_write macro is SHARED.
2204         * sysdeps/generic/write.c: Use INTDEF for __write.
2205         * sysdeps/mach/hurd/write.c: Likewise.
2206         * sysdeps/unix/sysv/aix/write.c: Likewise.
2207         * sysdeps/unix/syscalls.list: Add __libc_write alias.
2208
2209         * assert/assert.c: Replace STR_N_SIZE with something usable in
2210         macro arguments.
2211         * assert/assert-perr.c: Likewise.
2212
2213         * include/sys/socket.h: Declare __libc_sa_len_internal and define
2214         SA_LEN macro to use it if not NOT_IN_libc.
2215         * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len.
2216
2217         * include/fcntl.h: Declare __open_internal and define __open and
2218         __libc_open macros if not NOT_IN_libc.
2219         * sysdeps/generic/open.c: Use INTDEF for __open.
2220         * sysdeps/mach/hurd/open.c: Likewise.
2221         * sysdeps/unix/sysv/aix/open.c: Likewise.
2222         * sysdeps/unix/syscalls.list: Add __open_internal alias.
2223
2224         * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor
2225         has correct number.
2226
2227         * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc.
2228         * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well.
2229         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
2230         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
2231
2232         * include/wctype.h: Declare __iswalpha_l_internal,
2233         __iswdigit_l_internal, __iswspace_l_internal,
2234         __iswxdigit_l_internal, and __iswctype_internal.  Define
2235         __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and
2236         __iswxdigit_l macros if not NOT_IN_libc.
2237         * wctype/iswctype.c: Use INTDEF for __iswctype.
2238         * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
2239
2240         * include/math.h: Declare __isinf_internal, __isinfl_internal,
2241         __isnan_internal, and __isnanl_internal.
2242         * stdio-common/printf_fp.c: Use INTUSE for calls to __isinf, __isinfl,
2243         __isnan, and __isnanl.
2244         * stdio-common/printf_size.c: Likewise.
2245         * sysdeps/generic/printf_fphex.c: Likewise.
2246         * sysdeps/i386/fpu/s_isinfl.c: Also define _internal alias.
2247         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
2248         * sysdeps/ia64/fpu/s_isinf.S: Likewise.
2249         * sysdeps/ia64/fpu/s_isnan.S: Likewise.
2250         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
2251         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
2252         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
2253         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
2254         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
2255         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
2256         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
2257         * sysdeps/m68k/s_isinfl.c: Likewise.
2258         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
2259         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
2260
2261         * include/sys/time.h: Declare __gettimeofday_internal and define
2262         __gettimeofday macro if not NOT_IN_libc.
2263         * sysdeps/generic/gettimeofday.c: Use INTEDEF for __gettimeofday.
2264         * sysdeps/mach/gettimeofday.c: Likewise.
2265         * sysdeps/posix/gettimeofday.c: Likewise.
2266         * sysdeps/unix/sysv/aix/gettimeofday.c: Likewise.
2267         * sysdeps/unix/common/syscalls.list: Define __gettimeofday alias.
2268         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
2269         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Likewise.
2270
2271         * include/sys/stat.h: Declare __fxstat_internal and __fxstat64_internal
2272         and define __fxstate and __fxstat64 macros if not NOT_IN_libc.
2273         Remove __lstat and __fstat inline functions.
2274         * sysdeps/generic/fxstat.c: Use INTDEF for __fxstat.
2275         * sysdeps/mach/hurd/fxstat.c: Likewise.
2276         * sysdeps/unix/fxstat.c: Likewise.
2277         * sysdeps/unix/sysv/aix/fxstat.c: Likewise.
2278         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
2279         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
2280         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
2281         * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise.
2282         * sysdeps/generic/fxstat64.c: Use INTDEF for __fxstat64.
2283         * sysdeps/mach/hurd/fxstat64.c: Likewise.
2284         * sysdeps/unix/sysv/aix/fxstat64.c: Likewise.
2285         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
2286
2287         * include/unistd.h: Declare __getpid_internal and define
2288         __getpid macro if not NOT_IN_libc.
2289         * sysdeps/mach/hurd/getpid.c: Use INTDEF for __getpid.
2290         * sysdeps/generic/getpid.c: Likewise.
2291         * sysdeps/unix/syscalls.list: Add __getpid_internal alias.
2292         * posix/bsd-getpgrp.c: Use INTUSE for __getpgid call.
2293
2294         * include/unistd.h: Declare __getpgid_internal and define
2295         __getpgid macro if not NOT_IN_libc.
2296         * sysdeps/generic/getpgid.c: Use INTDEF for __getpgid.
2297         * sysdeps/mach/hurd/getpgid.c: Likewise.
2298         * sysdeps/unix/sysv/aix/getpgid.c: Likewise.
2299         * sysdeps/unix/sysv/sysv4/__getpgid.c: Likewise.
2300         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
2301         * sysdeps/unix/sysv/linux/syscalls.list: Add _getpgid_internal alias.
2302
2303         * include/unistd.h: Declare __getpagesize_internal and define
2304         __getpagesize macro if not NOT_IN_libc.
2305         * sysdeps/unix/sysv/linux/shmat.c: Include <unistd.h> for
2306         __getpagesize.
2307         * sysdeps/generic/getpagesize.c: Use INTDEF for __getpagesize.
2308         * sysdeps/mach/getpagesize.c: Likewise.
2309         * sysdeps/posix/getpagesize.c: Likewise.
2310         * sysdeps/unix/getpagesize.c: Likewise.
2311         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
2312         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
2313         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Likewise.
2314         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Likewise.
2315
2316 2002-04-13  Andreas Jaeger  <aj@suse.de>
2317
2318         * sysdeps/i386/i486/bits/string.h (__strcspn_cg): Use only memory
2319         as clobber to reduce register pressure.
2320         (__strpbrk_cg): Likewise.
2321         (__mempcpy_by4): Likewise.
2322         (__strstr_cg): Likewise.
2323         Add prototype for __memrchr.
2324
2325 2002-04-13  Andreas Schwab  <schwab@suse.de>
2326
2327         * sysdeps/m68k/fpu/s_finite.c: Add internal alias.
2328         * sysdeps/m68k/fpu/s_finitef.c: Likewise.
2329         * sysdeps/m68k/fpu/s_finitel.c: Likewise.
2330
2331 2002-04-13  Ulrich Drepper  <drepper@redhat.com>
2332
2333         * elf/do-lookup.h [!VERSIONED]: Add new parameter flags.  Use it to
2334         check whether the caller prefers getting the most recent version of
2335         a symbol of the earliest version.
2336         * elf/dl-lookup.c: Adjust all callers of do_lookup.  Change
2337         _dl_do_lookup to also take the new parameter and pass it on.
2338         Change 'explicit' parameter of _dl_lookup_symbol and
2339         _dl_lookup_versioned_symbol to flags.  Adjust tests.
2340         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
2341         * elf/dl-libc.c: Adjust all callers of _dl_lookup_symbol and
2342         _dl_lookup_versioned_symbol.
2343         * elf/dl-reloc.c: Likewise.
2344         * elf/dl-runtime.c: Likewise.
2345         * elf/dl-sym.c: Likewise.
2346         * sysdeps/mips/dl-machine.h: Likewise.
2347
2348 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
2349
2350         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (LOC): Don't paste
2351         in a token.
2352         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (LOC): Likewise.
2353
2354 2002-04-10  Andreas Jaeger  <aj@suse.de>
2355
2356         * sysdeps/unix/sysv/linux/x86_64/glob.c: New file.
2357
2358         * include/argz.h: Remove extra char from last patch.
2359
2360 2002-04-09  Ulrich Drepper  <drepper@redhat.com>
2361
2362         * sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
2363         * sysdeps/unix/sysv/aix/chown.c: Likewise.
2364         * sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
2365         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
2366         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
2367         * sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
2368         __chown_internal.
2369         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
2370
2371         * intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
2372         * intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
2373         * intl/ngettext.c: Likewise.
2374
2375         * include/sys/socket.h: Declare __connect_internal and define
2376         __connect macro if not NOT_IN_libc.
2377         * sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
2378         * sysdeps/unix/sysv/aix/connect.c: Likewise.
2379         * sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
2380
2381         * include/unistd.h: Declare __close_internal and define __close macro
2382         if not NOT_IN_libc.
2383         * libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
2384         WJUMP3): Add extra parenthesis to avoid expanding element names with
2385         macors like __close.
2386         * sysdeps/unix/syscalls.list: Add __close_internal alias.
2387
2388         * include/unistd.h: Declare __dup2_internal and define __dup2 macro
2389         if not NOT_IN_libc.
2390         * sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
2391         * sysdeps/posix/dup2.c: Use INTDEF for __dup2.
2392         * sysdeps/unix/syscalls.list: Add __dup2_internal alias.
2393
2394         * include/unistd.h: Declare __fork_internal and define __fork macro
2395         if not NOT_IN_libc.
2396         * sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
2397         * sysdeps/unix/sysv/aix/fork.c: Likewise.
2398         * sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
2399
2400         * include/stdio_ext.h: Declare __fsetlocking_internal and define
2401         __fsetlocking macro to use it if not NOT_IN_libc.
2402         * libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
2403
2404         * libio/__fbufsize.c: Correct copyright.
2405         * libio/__flbf.c: Likewise.
2406         * libio/__fpending.c: Likewise.
2407         * libio/__fpurge.c: Likewise.
2408         * libio/__freadable.c: Likewise.
2409         * libio/__freading.c: Likewise.
2410         * libio/__fsetlocking.c: Likewise.
2411         * libio/__fwritable.c: Likewise.
2412         * libio/__fwriting.c: Likewise.
2413
2414         * include/stdio.h: Declare __asprintf_internal and define __asprintf
2415         macro to use it if not NOT_IN_libc.
2416         * stdio-common/asprintf.c: Use INTDEF for __asprintf.
2417
2418         * include/mntent.h: Declare __setmntent_internal,
2419         __getmntent_r_internal, __endmntent_internal.  Define __setmntent,
2420         __getmntent_r, and __endmntent macros to use these functions if not
2421         NOT_IN_libc.
2422         * misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
2423         __endmntent.
2424
2425         * include/math.h: Declare __finite_internal, __finitef_internal, and
2426         __finitel_internal.  Redefine isfinite macro if in libc or libm using
2427         these functions.
2428         * sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
2429         * sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
2430         * sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
2431         * sysdeps/i386/fpu/s_finite.S: Define _internal alias.
2432         * sysdeps/i386/fpu/s_finitef.S: Likewise.
2433         * sysdeps/i386/fpu/s_finitel.S: Likewise.
2434         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
2435         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
2436         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
2437         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
2438
2439         * include/fcntl.h: Declare __fcntl_internal.  Define __fcntl macro
2440         to use this function if not NOT_IN_libc.
2441         * libio/iofdopen.c (_IO_fcntl): Use INTUSE.
2442         * sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
2443         * sysdeps/mach/hurd/fcntl.c: Likewise.
2444         * sysdeps/unix/sysv/aix/fcntl.c: Likewise.
2445         * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
2446
2447         * include/argz.h: Declare __argz_count_internal and
2448         __argz_stringify_internal.
2449         * intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
2450         __argz_stringify.
2451         * string/argz-count.c: Use INTDEF for __argz_count.
2452         * string/argz-stringify.c: Use INTDEF for __argz_stringify.
2453
2454         * include/stdlib.h: Declare __cxa_atexit_internal and define
2455         __cxa_atexit macro if not NOT_IN_libc.
2456         * stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
2457         * dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
2458
2459         * assert/assert.c: Use INTDEF for __assert_fail.
2460         * assert/__assert.c: Use INTUSE for call to __assert_fail.
2461         * include/assert.h: Declare __assert_fail_internal.
2462
2463         * extra-lib.mk: Mark assignment to lib with override.
2464
2465 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
2466
2467         * Makerules: Use cppflags-iterator.mk to add defines for all test
2468         source files.
2469
2470 2002-04-08  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2471
2472         * elf/elf.h: Define R_SH_TLS_xxx macros.
2473         * elf/rtld.c: Remove an extra parenthesis.
2474         * elf/tls-macros.h: Define SH version TLS_LE, TLS_IE, TLS_LD and
2475         TLS_GD macros.
2476         * sysdeps/generic/dl-tls.c: Add a missing semi-colon.
2477         * sysdeps/sh/dl-lookupcfg.h: New file.
2478         * sysdeps/sh/dl-tls.h: New file.
2479         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Set
2480         ELF_RTYPE_CLASS_PLT also for the three TLS relocations.
2481         (elf_machine_rela): Handle R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32 and
2482         R_SH_TLS_TPOFF32 relocations.
2483
2484 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
2485
2486         * cppflags-iterator.mk (cpp-srcs-left): Define NOT_IN_libc instead
2487         of NOT_IN_LIBC.
2488         * include/libintl.h: Test for NOT_IN_libc not NOT_IN_LIBC.
2489         * include/stdlib.h: Likewise.
2490
2491 2002-04-08  Jakub Jelinek  <jakub@redhat.com>
2492
2493         * elf/Makefile (CFLAGS-.os): Define NOT_IN_libc and IS_IN_rtld
2494         instead of _RTLD_LOCAL.
2495         * elf/dl-dst.h: Use IS_IN_rtld instead of _RTLD_LOCAL.
2496         * include/unistd.h: Likewise.
2497         * sysdeps/generic/ldsodefs.h: Likewise.
2498
2499         * stdio-common/_itoa.h (_itoa_word): Only use internal digit arrays
2500         if in libc or ld.so.
2501
2502 2002-04-08  Andreas Jaeger  <aj@suse.de>
2503
2504         * elf/cache.c (print_entry): Support x86-64.
2505
2506 2002-04-08  Ulrich Drepper  <drepper@redhat.com>
2507
2508         * include/stdlib.h: For libc itself replace MB_CUR_MAX definition
2509         with one accessing the locale data structures directly.
2510         * stdio-common/printf-prs.c: Include localeinfo.h for new
2511         MB_CUR_MAX definition.
2512
2513         * Makeconfig (CPPFLAGS): Also add CPPFLAGS-<basename> where <basename>
2514         is the name of the source file without extension.
2515         * Makefile (distribute): Add cppflags-iterator.mk.
2516         * cppflags-iterator.mk: New file.
2517         * extra-lib.mk: For the sources of the library run
2518         cppflags-iterator.mk.
2519
2520         * include/libintl.h: Declare __dcgettext_internal and
2521         _libc_intl_domainname_internal.  Define __dcgettext using these
2522         two symbols if used in libc itself.
2523         * argp/argp-help.c: Define dgettext using __dcgettext_internal and
2524         _libc_intl_domainname_internal.
2525         * argp/argp-parse.c: Likewise.
2526         * intl/dcgettext.c (__dcgettext): Use INTDEF to define alias.
2527         * intl/dgettext.c: Call __dcgettext_internal instead of __dcgettext.
2528         * intl/gettext.c: Likewise.
2529         * locale/SYS_libc.c (_libc_intl_domainname): Use INTDEF to define
2530         alias.
2531         * posix/regcomp.c (gettext): Use __dcgettext_internal instead of
2532         __dcgettext.
2533         * posix/regex_internal.c (gettext): Likewise.
2534
2535 2002-04-08  Andreas Jaeger  <aj@suse.de>
2536
2537         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Fix rewrite rule.
2538
2539         * sysdeps/x86_64/fpu/s_llrint.S: New.
2540         * sysdeps/x86_64/fpu/s_llrintf.S: New.
2541         * sysdeps/x86_64/fpu/s_llrintl.S: New.
2542         * sysdeps/x86_64/fpu/s_lrint.S: New.
2543         * sysdeps/x86_64/fpu/s_lrintf.S: New
2544         * sysdeps/x86_64/fpu/s_lrintl.S: New.
2545
2546 2002-04-08  Roland McGrath  <roland@frob.com>
2547
2548         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
2549         widening __hurd_fail value.
2550
2551 2002-04-07  Roland McGrath  <roland@frob.com>
2552
2553         * sysdeps/mach/hurd/alpha/trampoline.c: Don't include
2554         <mach/machine/alpha_instruction.h>.
2555         (_hurd_setup_sighandler): Take proper arguments for current decls.
2556         Update code to use _hurdsig_catch_fault.
2557         Use `callsys' instruction instead of `call_pal'.
2558         * sysdeps/mach/hurd/alpha/intr-msg.h: New file.
2559
2560         * sysdeps/mach/alpha/sysdep.h: Include <mach/alpha/asm.h>.
2561         (ALIGN, at, AT, fp): New macros.
2562
2563 2002-04-06  Roland McGrath  <roland@frob.com>
2564
2565         * mach/setup-thread.c (__mach_setup_thread): int -> natural_t
2566
2567         * sysdeps/mach/hurd/dl-sysdep.c: Use ElfW(TYPE) in place of Elf32_TYPE.
2568         (__mmap): Use MAP_FAILED instead of widening __hurd_fail value.
2569
2570         * sysdeps/mach/hurd/bind.c: Use prototype definition.
2571         * sysdeps/mach/hurd/connect.c: Likewise.
2572         * sysdeps/mach/hurd/getsockopt.c: Likewise.
2573         * sysdeps/mach/hurd/setsockopt.c: Likewise.
2574
2575         * sysdeps/mach/hurd/alpha/sigreturn.c: Pass missing argument to
2576         __msg_sig_post RPC.
2577
2578         * hurd/catch-exc.c: Use integer_t instead of int.
2579         * hurd/hurdfault.c: Likewise.
2580
2581         * sysdeps/mach/hurd/alpha/exc2signal.c
2582         (_hurd_exception2signal): Rewritten.
2583         * sysdeps/mach/hurd/alpha/longjmp-ts.c
2584         (_hurd_longjmp_thread_state): Rewritten.
2585
2586 2002-04-07  Ulrich Drepper  <drepper@redhat.com>
2587
2588         * nss/getXXbyYY_r.c: If NSS_attribute_hidden is defined use it with the
2589         DB_LOOKUP_FCT prototype.
2590         * nss/getXXent_r.c: Likewise.
2591         * inet/getaliasent_r.c: Define NSS_attribute_hidden.
2592         * inet/getaliasname_r.c: Likewise.
2593         * inet/getnetbyad_r.c: Likewise.
2594         * inet/getnetbynm_r.c: Likewise.
2595         * inet/getnetent_r.c: Likewise.
2596         * inet/getproto_r.c: Likewise.
2597         * inet/getprtent_r.c: Likewise.
2598         * inet/getprtname_r.c: Likewise.
2599         * inet/getrpcbyname_r.c: Likewise.
2600         * inet/getrpcbynumber_r.c: Likewise.
2601         * inet/getrpcent_r.c: Likewise.
2602         * inet/getservent_r.c: Likewise.
2603         * inet/getsrvbynm_r.c: Likewise.
2604         * inet/getsrvbypt_r.c: Likewise.
2605         * shadow/getspent_r.c: Likewise.
2606         * shadow/getspnam_r.c: Likewise.
2607
2608         * malloc/thread-m.h: Define __libc_tsd_MALLOC_data as static.
2609
2610         * sysdeps/i386/elf/bsd-setjmp.S: Use GOTOFF for __sigjmp_save access.
2611         Use i686-friendly PIC code.
2612         * sysdeps/i386/elf/setjmp.S: Likewise.
2613
2614         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use i686-friendly PIC code.
2615
2616         * sysdeps/mach/hurd/Versions: Add _dl_init_first to libc and ld export
2617         list.
2618         * elf/Versions: Remove it here.
2619
2620 2002-04-06  Ulrich Drepper  <drepper@redhat.com>
2621
2622         * iconvdata/tcvn5712-1.c (MAX_NEEDED_INPUT): Define for from
2623         direction.  Reported by H . J . Lu <hjl@lucon.org>.
2624
2625 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
2626
2627         * intl/tst-gettext.sh: Set GCONV_PATH and LOCPATH to values for the
2628         test just before the test runs.
2629         * intl/tst-translit.sh: Likewise.
2630         * intl/tst-codeset.sh: Likewise.
2631
2632         * timezone/zic.c: Update from tzcode2002c.
2633         * timezone/asia: Update from tzdata2002c.
2634         * timezone/backward: Likewise.
2635         * timezone/europe: Likewise.
2636         * timezone/northamerica: Likewise.
2637         * timezone/northamerica: Likewise.
2638         * timezone/northamerica: Likewise.
2639         * timezone/southamerica: Likewise.
2640         * timezone/zone.tab: Likewise.
2641
2642 2002-03-23  Jakub Jelinek  <jakub@redhat.com>
2643
2644         * sysdeps/generic/brk.c (__curbrk): Declare.
2645         * sysdeps/generic/dl-brk.c: Add attribute_hidden to __curbrk.
2646         * sysdeps/generic/dl-sbrk.c: Likewise.
2647         * sysdeps/unix/arm/dl-brk.S: New file.
2648         * sysdeps/unix/bsd/hp/m68k/dl-brk.S: New file.
2649         * sysdeps/unix/bsd/osf/alpha/dl-brk.S: New file.
2650         * sysdeps/unix/bsd/sun/m68k/dl-brk.S: New file.
2651         * sysdeps/unix/bsd/vax/dl-brk.S: New file.
2652         * sysdeps/unix/i386/dl-brk.S: New file.
2653         * sysdeps/unix/mips/dl-brk.S: New file.
2654         * sysdeps/unix/sparc/dl-brk.S: New file.
2655         * sysdeps/unix/sysv/linux/alpha/dl-brk.S: New file.
2656         * sysdeps/unix/sysv/linux/ia64/dl-brk.S: New file.
2657         * sysdeps/unix/sysv/linux/powerpc/dl-brk.S: New file.
2658         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-brk.S: New file.
2659
2660 2002-04-03  Andreas Schwab  <schwab@suse.de>
2661
2662         * Makefile (headers): Add gnu/lib-names.h here instead of
2663         install-others.
2664         ($(inst_includedir)/gnu/lib-names.h): Remove explicit
2665         installation rule.
2666         (install-headers): Add dependency on install-headers-nosubdir.
2667         * stdio-common/Makefile (headers): Add bits/stdio_lim.h here
2668         instead of install-others.
2669         ($(inst_includedir)/bits/stdio_lim.h): Remove explicit
2670         installation rule.
2671
2672 2002-04-05  Ulrich Drepper  <drepper@redhat.com>
2673
2674         * manual/users.tex (Enable/Disable Setuid): Fix typo in example.
2675         Reported by Sam Roberts <sroberts@uniserve.com>.
2676
2677 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
2678
2679         * elf/do-rel.h (elf_dynamic_do_rel): Skip relative relocs if
2680         l_addr == 0 and ELF_MACHINE_REL_RELATIVE.
2681         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
2682         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_REL_RELATIVE): Define.
2683
2684 2002-04-03  David Mosberger  <davidm@hpl.hp.com>
2685
2686         * sysdeps/ia64/dl-machine.h (TRAMPOLINE_TEMPLATE): Add unwind info.
2687         (RTLD_START): Ditto.
2688         (__ia64_init_bootstrap_fdesc_table): Insert stop bit to avoid RAW
2689         dependency violation.
2690
2691 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
2692
2693         * time/mktime.c (__mktime_internal): Move check for year < 70 below
2694         all variable declarations.
2695
2696 2002-04-04  Andreas Schwab  <schwab@suse.de>
2697
2698         * sysdeps/unix/sysv/linux/ia64/pipe.S: Don't overwrite r8 on error.
2699
2700 2002-04-04  Andreas Jaeger  <aj@suse.de>
2701
2702         * sysdeps/x86_64/fpu/e_sqrt.c: New file.
2703         * sysdeps/x86_64/fpu/e_sqrtf.c: New file.
2704
2705         * sysdeps/x86_64/fpu/s_fabs.c: New file.
2706         * sysdeps/x86_64/fpu/s_fabsf.c: New file.
2707         * sysdeps/x86_64/fpu/s_fabsl.c: New file.
2708
2709         * sysdeps/unix/sysv/linux/x86_64/time.S: New file.
2710
2711         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: New file.
2712
2713         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Removed.
2714         * sysdeps/unix/sysv/linux/x86_64/time.c: Removed.
2715
2716         * configure.in: Handle all mips entries the same.
2717
2718         * sysdeps/mips/dec/bits/endian.h: Removed since arch is not supported.
2719         * sysdeps/mips/mips3/*: Likewise.
2720         * sysdeps/mips/p40/bits/endian.h: Likewise.
2721
2722 2002-04-04  Ulrich Drepper  <drepper@redhat.com>
2723
2724         * misc/dirname.c (dirname): Ignore trailing slashes at end of
2725         non-null result [PR libc/2600].
2726
2727         * misc/tst-dirname.c: Add more tests.
2728
2729 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
2730
2731         * locale/programs/charmap.c (charmap_read): If the charmap doesn't
2732         define a code_set_name provide one based on the filename.
2733
2734         * malloc/hooks.c: Define weak_variable correctly for _LIBC.
2735
2736 2001-12-28  Andreas Jaeger  <aj@suse.de>
2737
2738         * time/mktime.c (__mktime_internal): Check for year < 70
2739         [PR libc/2738].
2740
2741 2002-04-03  Andreas Jaeger  <aj@suse.de>
2742
2743         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Fix arguments for
2744         shmat.
2745         Reported by Andi Kleen <ak@suse.de>.
2746
2747 2002-04-03  Ulrich Drepper  <drepper@redhat.com>
2748
2749         * sysdeps/generic/w_lgamma.c: Initialized local_signgam.
2750         * sysdeps/generic/w_lgammaf.c: Likewise.
2751         * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854].
2752
2753         * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902].
2754         Adjust for new output format of the backtrace functions.
2755
2756         * misc/syslog.c (vsyslog): Only use cleanup handler if
2757         _LIBC_REENTRANT is defined [PR libc/2924].
2758
2759         * libio/Makefile (tests): Add bug-ungetwc2.
2760         * libio/bug-ungetwc2.c: New file.
2761
2762         * manual/install.texi: Typographical and grammatical cleanup.
2763         Patch by Dennis Grace <dgrace@us.ibm.com>.
2764
2765         * sunrpc/rpc_svcout.c (write_real_program): Write "result, "
2766         parameter if mtflag.  Patch by <jeongyun@innovay.com>.
2767
2768         * sunrpc/rpc_svcout.c (printif): Remove third parameter.  It was
2769         always "&".  Adjust callers.
2770         Add "_" prefix to several generated definitions.
2771         Patch by paul@serice.net [PR libc/3158].
2772
2773 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
2774
2775         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Completely specify
2776         size of _dl_arm_cap_flags.
2777         Patch by enrico.scholz@informatik.tu-chemnitz.de [PR libc/3155].
2778
2779         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
2780         Define as 8.
2781
2782 2002-03-22  H.J. Lu  <hjl@gnu.org>
2783
2784         * scripts/firstversions.awk: Check the first version.
2785
2786 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
2787
2788         * elf/dl-deps.c (_dl_map_object_deps): The sorting of the
2789         dependencies must be stable to work correctly.
2790         Reported by martin.lubich@datacon.at.
2791
2792         * libio/bug-ungetwc1.c: New file.
2793         * libio/Makefile (tests): Add bug-ungetwc1.
2794
2795         * libio/fileops.c (_IO_new_file_close_it): Only call _IO_do_flush
2796         if stream was last used for writing.
2797
2798         * elf/do-lookup.h (do_lookup): 2 is the first user-defined version
2799         number [PR libc/3111].
2800
2801         * libio/iofclose.c (_IO_new_fclose): Move freeing of backup buffer
2802         to ...
2803         * libio/fileops.c (_IO_new_file_close_it): ...here [PR libc/3190].
2804
2805 2002-04-02  Jakub Jelinek  <jakub@redhat.com>
2806
2807         * inet/ether_ntoh.c (__nss_ethers_lookup): Add internal_function.
2808         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
2809         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Likewise.
2810         * sunrpc/netname.c (__nss_publickey_lookup): Likewise.
2811         * sunrpc/publickey.c (__nss_publickey_lookup): Likewise.
2812
2813 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
2814
2815         * elf/dynamic-link.h (elf_get_dynamic_info): Don't abort on unknown
2816         dynamic tags.
2817
2818 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
2819
2820         * sysdeps/i386/fpu/s_fabs.S: New file.
2821         * sysdeps/i386/fpu/s_fabsf.S: New file.
2822         * sysdeps/i386/fpu/s_fabsl.S: New file.
2823         * sysdeps/sparc/sparc64/fpu/s_fabs.c: New file.
2824         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: New file.
2825         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: New file.
2826
2827 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
2828
2829         * rt/tst-shm.c (do_test): Add one more test for size of shared
2830         memory object.
2831
2832 2002-03-29  Wolfram Gloger  <wg@malloc.de>
2833
2834         * malloc/malloc.c: Add short description and prototypes for
2835         malloc_get_state, malloc_set_state and posix_memalign, for
2836         consistency and to avoid warnings with -Wstrict-prototypes.
2837         Reported by Andreas Jaeger <aj@suse.de>.
2838
2839 2002-04-02  Ulrich Drepper  <drepper@redhat.com>
2840
2841         * po/gl.po: Update from translation team.
2842
2843 2002-03-31  Roland McGrath  <roland@frob.com>
2844
2845         * hurd/hurdselect.c (_hurd_select): Fix
2846         MACH_MSG_TYPE_INTEGER_T -> integer_t in sizeof.
2847         Use a union rather than casts to compare mach_msg_type_t as int.
2848
2849 2002-03-25  Roland McGrath  <roland@frob.com>
2850
2851         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Don't
2852         check off the end of NAME when it's shorter than 2 chars.
2853         Reported by Ognyan Kulev <ogi@fmi.uni-sofia.bg>.
2854
2855 2002-03-17  Roland McGrath  <roland@frob.com>
2856
2857         * sysdeps/mach/hurd/i386/sys/io.h: New file.
2858         * sysdeps/mach/hurd/i386/ioperm.c: New file.
2859         * sysdeps/mach/hurd/i386/Dist: Add them.
2860         * sysdeps/mach/hurd/i386/Versions
2861         (libc: GLIBC_2.2.6): New set, add ioperm.
2862         * sysdeps/mach/configure.in: New check to set HAVE_I386_IO_PERM_MODIFY.
2863         (mach_interface_list): Check for mach_i386.defs.
2864         * config.h.in (HAVE_I386_IO_PERM_MODIFY): #undef it.
2865         * sysdeps/mach/configure: Regenerated.
2866
2867 2002-03-22  Ulrich Drepper  <drepper@redhat.com>
2868
2869         * po/fr.po: Update from translation team.
2870
2871 2002-03-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2872
2873         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Remove
2874         getpriority from syscalls list.
2875
2876 2002-03-28  Andreas Jaeger  <aj@suse.de>
2877
2878         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: New file.
2879         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: New file.
2880         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: New file.
2881         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: New file.
2882
2883 2002-03-27  Andreas Jaeger  <aj@suse.de>
2884
2885         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2886         sigcontext): Follow further kernel change.
2887
2888         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Follow further
2889         kernel change.
2890
2891         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (GET_STACK):
2892         Change for struct sigcontext change.
2893
2894         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
2895         Follow changes in struct sigcontext.
2896
2897         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Remove ptrace
2898         sysycall, use wrapper instead.
2899
2900 2002-03-26  Andreas Jaeger  <aj@suse.de>
2901
2902         * sysdeps/i386/i486/bits/string.h (__memcpy_by4): Describe memory
2903         read and write accesses as detailed as possible.
2904         (__memcpy_by2): Likewise.
2905         (__memcpy_g): Likewise.
2906         (memmove): Likewise.
2907         (memcmp): Likewise.
2908         (__memset_ccn_by4): Likewise.
2909         (__memset_ccn_by2): Likewise.
2910         (__memset_gcn_by4): Likewise.
2911         (__memset_gcn_by2): Likewise.
2912         (memchr): Likewise.
2913         (__memrchr): Likewise.
2914         (rawmemchr): Likewise.
2915         (__strlen_g): Likewise.
2916         (__strcpy_g): Likewise.
2917         (__mempcpy_by4): Likewise.
2918         (__mempcpy_by2): Likewise.
2919         (__mempcpy_byn): Likewise.
2920         (__stpcpy_g): Likewise.
2921         (__strncpy_by4): Likewise.
2922         (__strncpy_by2): Likewise.
2923         (__strncpy_byn): Likewise.
2924         (__strncpy_gg): Likewise.
2925         (__strcat_c): Likewise.
2926         (__strcat_g): Likewise.
2927         (__strncat_g): Likewise.
2928         (__strcmp_gg): Likewise.
2929         (__strncmp_g): Likewise.
2930         (__strchr_c): Likewise.
2931         (__strchr_g): Likewise.
2932         (__strchrnul_c): Likewise.
2933         (__strchrnul_g): Likewise.
2934         (__strrchr_c): Likewise.
2935         (__strrchr_g): Likewise.
2936         (__strrchr_c): Likewise.
2937         (__strrchr_g): Likewise.
2938         (__strcspn_c1): Likewise.
2939         (__strcspn_cg): Likewise.
2940         (__strcspn_g): Likewise.
2941         (__strcspn_g): Likewise.
2942         (__strspn_c1): Likewise.
2943         (__strspn_cg): Likewise.
2944         (__strspn_g): Likewise.
2945         (__strspn_g): Likewise.
2946         (__strpbrk_cg): Likewise.
2947         (__strpbrk_g): Likewise.
2948         (__strstr_cg): Likewise.
2949         (__strstr_g): Likewise.
2950
2951         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Fix typo.  Reported by
2952         Michal Ludvig <mludvig@suse.cz>.
2953
2954         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Add 32-bit
2955         compatibilty, adjust for kernel changes.
2956
2957         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
2958         sigcontext): Adjust for kernel changes.
2959
2960 2002-03-25  Andreas Jaeger  <aj@suse.de>
2961
2962         * iconv/gconv_simple.c (ucs4le_internal_loop_single): Handle
2963         little endian.
2964         Reported by Artur Zaprzala <zybi@talex.com.pl>.
2965
2966 2002-03-24  Andreas Jaeger  <aj@suse.de>
2967
2968         * manual/memory.texi (Aligned Memory Blocks): Fix typo.
2969
2970         * stdio-common/tst-fdopen.c (main): Remove unused variable.
2971
2972         * iconv/tst-iconv3.c (main): Use correct printf strings.
2973
2974 2002-03-18  Roland McGrath  <roland@frob.com>
2975
2976         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsgcred): New type.
2977         (CMGROUP_MAX): New macro.
2978
2979 2002-03-23  Roland McGrath  <roland@frob.com>
2980
2981         * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm
2982         * sysdeps/posix/shm_unlink.c: Likewise.
2983
2984 2002-03-22  Roland McGrath  <roland@frob.com>
2985
2986         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Make 2.2.6 default.
2987         * sysdeps/mach/hurd/configure.in: Default oldest ABI is 2.2.6
2988         under --enable-libio.
2989         * sysdeps/mach/hurd/configure: Regenerated.
2990
2991 2002-03-23  Roland McGrath  <roland@frob.com>
2992
2993         * sysdeps/mach/hurd/i386/Makefile
2994         (sysdep_routines, shared-only-routines): Don't add framestate,
2995         reverting 2001-10-02 change.
2996         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
2997         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
2998         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
2999         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
3000         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
3001         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
3002         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
3003         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
3004         * sysdeps/generic/Makefile (sysdep_routines, shared-only-routines):
3005         Do it here instead, only if [$(unwind-find-fde) = yes].
3006
3007 2002-03-23  Andreas Jaeger  <aj@suse.de>
3008
3009         * signal/signal.h: Fix typo. Patch by Steve Kemp
3010         <skx@tardis.ed.ac.uk>.
3011
3012 2002-03-22  Andreas Jaeger  <aj@suse.de>
3013
3014         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add getresgid and
3015         getresuid.
3016
3017         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
3018         _fpstate): Rename fwd to ftw, use _fpxreg and _xmmreg.
3019         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
3020         user_fpregs_struct): Rename fwd.
3021
3022         * sysdeps/unix/sysv/linux/x86_64/register-dump.h (register_dump):
3023         Follow sigcontext changes.
3024
3025 2002-03-22  Andreas Jaeger  <aj@suse.de>
3026
3027         * sysdeps/mips/bits/nan.h: New file.  Copy from generic one with
3028         changes for NaNs on MIPS.
3029         Patch by Hartvig Ekner <hartvige@mips.com>.
3030
3031 2002-03-21  Ulrich Drepper  <drepper@redhat.com>
3032
3033         * nscd/grpcache.c (addgrbyname): Improve buffer allocate with alloca.
3034         Use realloc if too large.
3035         (addgrbyid): Likewise.
3036         * nscd/hstcache.c (addhstbyname): Likewise.
3037         (addhstbyaddr): Likewise.
3038         (addhstbynamev6): Likewise.
3039         (addhstbyaddrv6): Likewise.
3040         * nscd/pwdcache.c (addpwbyname): Likewise.
3041         (addpwbyuid): Likewise.
3042
3043 2002-03-21  Andreas Jaeger  <aj@suse.de>
3044
3045         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (struct
3046         _fpstate): Add separate struct for x86-64.
3047
3048         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
3049         user_fpregs_struct): Change member names to follow kernel.
3050
3051 2002-03-20  Ulrich Drepper  <drepper@redhat.com>
3052
3053         * nis/ypclnt.c (yp_all): Remove the hack introduced on 1998-09-29.
3054         Correctly close the UDP connection right away [PR libc/3120].
3055
3056 2002-03-20  Andreas Jaeger  <aj@suse.de>
3057
3058         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (struct
3059         user_fpregs_struct): Fix for changed kernel struct.
3060         (struct user_regs_struct): Likewise.
3061         (struct user): Likewise.
3062         Add 32-bit x86 compatibility.
3063
3064         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add more registers.
3065
3066 2002-03-19  Andreas Jaeger  <aj@suse.de>
3067
3068         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Cleanup x86 types.
3069
3070 2002-03-18  Andreas Jaeger  <aj@suse.de>
3071
3072         * iconvdata/Makefile: Only run tests when shared libs are
3073         available.
3074
3075 2002-03-17  Andreas Jaeger  <aj@suse.de>
3076
3077         * sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
3078
3079         * sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.
3080
3081         * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
3082         bits.
3083
3084         * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
3085         (CAUSE_SHIFT): New.
3086         Patch by Hartvig Ekner <hartvige@mips.com>.
3087
3088         * sysdeps/generic/unwind-dw2-fde-glibc.c: Add prototypes.
3089         * sysdeps/generic/unwind-pe.h: Likewise.
3090
3091         * libio/iofdopen.c (_IO_new_fdopen): Pass parameter of correct
3092         type to _IO_setb.
3093
3094         * libio/stdio.c (AL2): Define variant when visibility attribute is
3095         not supported.
3096
3097         * include/libc-symbols.h (_INTVARDEF): Define variant when
3098         visibility attribute is not supported.
3099
3100 2002-03-16  Ulrich Drepper  <drepper@redhat.com>
3101
3102         * po/fr.po: Update from translation team.
3103
3104 2002-02-25  Bruno Haible  <bruno@clisp.org>
3105
3106         * MakeTAGS (extract): Use --sort-by-file instead of --sort-output.
3107
3108 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
3109
3110         * libio/iofdopen.c (_IO_new_fdopen): Call _IO_setb to deallocate
3111         buffers if _IO_file_attach failed.
3112
3113         * libio/fileops.c (_IO_file_open): Close file descriptor if
3114         _IO_SEEKOFF call failed.
3115
3116 2002-03-15  H.J. Lu  <hjl@gnu.org>
3117             Ulrich Drepper  <drepper@redhat.com>
3118
3119         * configure.in: Check for availability of
3120         init_array/fini_array/preinit_array handling in binutils.
3121         * config.h.in (HAVE_INITFINI_ARRAY): New macro.
3122         * config.make.in (have-initfini-array): New variable.
3123
3124 2002-03-15  Ulrich Drepper  <drepper@redhat.com>
3125
3126         * stdio-common/tst-printf.c (main): Comment out one test which
3127         checked the compiler's ability to fold floating-point constants
3128         but not really printf.
3129         (rfg3): Make s const.
3130         * stdio-common/tst-printf.sh: Adjust for removed test.
3131
3132         * sysdeps/i386/i386-mcount.S: Just call __mcount_internal, it is an
3133         internal function.  Adjust for internal_function calling convention.
3134         * sysdeps/i386/machine-gmon.h: Declare and define __mcount_internal
3135         as internal_function.
3136
3137         * sysdeps/generic/framestate.c: Declare fallback_frame_state_for as
3138         hidden.
3139
3140         * nss/XXX-lookup.c (DB_LOOKUP_FCT): Add internal_function to
3141         declaration and definition.
3142         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Add internal_function to
3143         declaration.
3144         * nss/getXXent_r.c: Likewise.
3145         * nss/nsswitch.h (db_lookup_function): Add internal_function to
3146         definition.
3147
3148         * include/time.h: Declare __localtime_r as hidden.
3149
3150         * include/aliases.h: Declare __getaliasent_r as hidden.
3151         * include/grp.h: Declare __getgrent_r as hidden.
3152         * include/netdb.h: Declare __gethostent_r, __getnetent_r,
3153         __getservent_r, and __getprotoent_r as hidden.
3154         * include/pwd.h: Declare __getpwent_r as hidden.
3155         * include/shadow.h: Declare __getspent_r as hidden.
3156         * include/rpc/netdb.h: Declare __getrpcent_r as hidden.
3157
3158         * iconv/gconv_int.h: Declare __gconv_read_conf, __gconv_alias_compare,
3159         and __gconv_transliterate as hidden.
3160         Add internal_function to __gconv_get_path declaration.
3161         * iconv/gconv_conf.c: Add internal_function to __gconv_get_path
3162         definition.  Add attribute_hidden to __gconv_read_conf definition.
3163
3164 2002-03-14  Ulrich Drepper  <drepper@redhat.com>
3165
3166         * elf/rtld.c: Declare _environ as hidden.
3167         * sysdeps/generic/dl-environ.c: Likewise.
3168         * sysdeps/generic/dl-sysdep.c: Likewise.
3169
3170         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_state_internal and
3171         _dl_mcount_internal as hidden.
3172
3173         * elf/Makefile (rtld-routines): Add dl-sbrk and dl-brk.
3174         * sysdeps/generic/dl-brk.c: New file.
3175         * sysdeps/generic/dl-sbrk.c: New file.
3176         * sysdeps/unix/sysv/linux/i386/dl-brk.c: New file.
3177         * sysdeps/unix/sysv/linux/i386/dl-sbrk.c: New file.
3178
3179         * elf/dl-minimal.c (malloc): Declare _end as hidden.
3180         (__errno_location): New function.  Declare errno as hidden.
3181         * elf/rtld.c (_dl_argc): Define as hidden.
3182         (_dl_skip_args): Define as hidden.
3183         (_begin, _end): Declare as hidden.
3184         * sysdeps/generic/dl-sysdep.c (_end): Declare as hidden.
3185         * sysdeps/generic/entry.h (_start): Declare as hidden.
3186         * sysdeps/generic/ldsodefs.h (_dl_argc): Declare as hidden.
3187         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Declare
3188         _dl_runtime_resolve and _dl_runtime_profile as hidden.
3189         (RTLD_START): Use GOTOFF to access _dl_skip_args and _dl_fini.
3190
3191 2002-03-14  Roland McGrath  <roland@frob.com>
3192
3193         * Makerules ($(common-objpfx)Versions.v.i): Depend on abi-versions.h.
3194
3195         * Makeconfig (%.v.i, %.v): New implicit rules.
3196         (preprocess-versions): Variable removed.
3197         ($(common-objpfx)shlib-versions.v.i): New target giving just the
3198         shlib-versions input files as dependencies.
3199         ($(common-objpfx)soversions.i): Depend on that instead of the input
3200         files.  Use it as input instead of using a pipeline.
3201         (postclean-generated): Append soversions.i, shlib-versions.v, and
3202         shlib-versions.v.i here.
3203         * Makerules ($(common-objpfx)Versions.def.v.i): New target giving just
3204         the Versions.def input files as dependencies.
3205         ($(common-objpfx)Versions.v.i): Likewise for Versions files.
3206         ($(common-objpfx)Versions.all): Depend on that instead of the input
3207         files.  Use it as input instead of using a pipeline.
3208         ($(common-objpfx)sysd-versions): Likewise with Versions.v.i.
3209         (postclean-generated): Append those .v and .v.i files here.
3210
3211 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
3212
3213         * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo.
3214         * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE):
3215         Remove.
3216
3217 2002-03-14  Jakub Jelinek  <jakub@redhat.com>
3218
3219         * sysdeps/generic/mp_clz_tab.c: New file.
3220         * sysdeps/i386/mp_clz_tab.c: New file.
3221         * sysdeps/hppa/mp_clz_tab.c: New file.
3222         * sysdeps/powerpc/mp_clz_tab.c: New file.
3223         * stdlib/Makefile (aux): Revert last patch.
3224         * math/Makefile (gmp-objs): Likewise.
3225
3226 2002-03-13  Paul Eggert  <eggert@twinsun.com>
3227
3228         * time/strftime.c: Comment fixes for references to obsolescent
3229         standards, In most cases the simplest fix is to remove the
3230         confusing comments.  Cross-referencing all the standards properly
3231         is a bit of a pain, and it should be enough to put that info in
3232         the documentation as I did in my recent time.texi patch.
3233
3234 2002-03-13  Paul Eggert  <eggert@twinsun.com>
3235
3236         * manual/time.texi (Formatting Calendar Time):
3237         ISO C99 also specifies the E and O modifiers.
3238         %P is a GNU extension, and is not in ISO C99.
3239         Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale.
3240         %T is also in ISO C99.
3241         The RFC 822 example is not valid in arbitrary locales.
3242         Reword the POSIX.2 wording slightly, to make it a bit clearer
3243         that POSIX.2 formats are also supported by later POSIX versions.
3244         If a format was introduced in ISO C99 it is also required by
3245         POSIX.1-2001.
3246
3247 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
3248
3249         * sysdeps/gnu/errlist.awk: Define _sys_errlist_internal and
3250         _sys_nerr_internal with INTVARDEF2.
3251         * include/libc-symbols.h (INTVARDEF2): New macro.
3252         * include/stdio.h (_sys_errlist_internal): Declare as hidden.
3253         (_sys_nerr_internal): Library.
3254
3255         * sysdeps/posix/signal.c (_sigintr): Define as hidden.
3256         * sysdeps/posix/sigintr.c (_sigintr): Declare as hidden.
3257
3258         * stdio-common/tst-printf.sh: Adjust for last change in tst-printf.c.
3259
3260 2002-03-13  Wolfram Gloger  <wg@malloc.de>
3261
3262         * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed.
3263
3264 2002-03-02  Andreas Schwab  <schwab@suse.de>
3265
3266         * stdio-common/vfprintf.c (process_arg): Fix decimal format with
3267         'h' flag and positional arg.
3268         * stdio-common/tst-printf.c (rfg3): New function to test
3269         positional arguments.
3270         (main): Fix some warnings.
3271
3272 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
3273
3274         * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED.
3275         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
3276
3277 2002-03-13  Ulrich Drepper  <drepper@redhat.com>
3278
3279         * grp/initgroups.c (__nss_group_data): Declare as hidden.
3280
3281         * include/locale.h (_nl_C_locobj): Declare as hidden.
3282
3283         * time/asctime.c (_nl_C_LC_TIME): Declare as hidden.
3284         * time/strptime.c (_nl_C_LC_TIME): Likewise.
3285
3286         * include/netinet/in.h (in6addr_any_internal): Mark as hidden.
3287
3288         * include/sys/gmon.h: Declare _gmonparam as hidden.
3289
3290         * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden.
3291         (__ctype32_wctrans): Likewise.
3292         (__ctype32_width): Likewise.
3293
3294         * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
3295         use of __ttyname.
3296
3297         * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
3298         Define as hidden.
3299         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
3300         hidden.  Change all users of these variables.
3301
3302         * posix/regex_internal.h (__re_error_msgid): Renamed from
3303         re_error_msgid.  Declare as hidden.
3304         (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
3305         hidden.
3306
3307         * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
3308         (__printf_function_table): Likewise.
3309         * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
3310         hidden.
3311         (__printf_function_table): Likewise.
3312
3313         * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
3314         __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
3315
3316         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
3317         * nss/nsswitch.c: Declare _nss_*_database as hidden.
3318
3319         * stdlib/wctomb.c (__no_r_state): Declare as hidden.
3320         * stdlib/mbtowc.c (__no_r_state): Define as hidden.
3321
3322 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
3323
3324         * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
3325         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
3326         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
3327         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
3328         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
3329         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
3330         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
3331         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
3332         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower, and
3333         _nl_C_LC_CTYPE_width: Declare as hidden.
3334         * include/locale.h: Declare _nl_locale_file_list.
3335         * locale/C-address.c: Define _nl_C_LC_ADDRESS as hidden.
3336         * locale/C-collate.c: Define _nl_C_LC_COLLATE as hidden.
3337         * locale/C-identification.c: Define _nl_C_LC_IDENTIFICATION as hidden.
3338         * locale/C-measurement.c: Define _nl_C_LC_MEASUREMENT as hidden.
3339         * locale/C-messages.c: Define _nl_C_LC_MESSAGES as hidden.
3340         * locale/C-monetary.c: Define _nl_C_LC_MONETARY as hidden.
3341         * locale/C-name.c: Define _nl_C_LC_NAME as hidden.
3342         * locale/C-numeric.c: Define _nl_C_LC_NUMERIC as hidden.
3343         * locale/C-paper.c: Define _nl_C_LC_PAPER as hidden.
3344         * locale/C-telephone.c: Define _nl_C_LC_TELEPHONE as hidden.
3345         * locale/C-time.c: Define _nl_C_LC_TIME as hidden.
3346         * locale/C-ctype.c: Define _nl_C_LC_CTYPE_class,
3347         _nl_C_LC_CTYPE_class32, _nl_C_LC_CTYPE_toupper, _nl_C_LC_CTYPE_tolower,
3348         _nl_C_LC_CTYPE_class_upper, _nl_C_LC_CTYPE_class_lower,
3349         _nl_C_LC_CTYPE_class_alpha, _nl_C_LC_CTYPE_class_digit,
3350         _nl_C_LC_CTYPE_class_xdigit, _nl_C_LC_CTYPE_class_space,
3351         _nl_C_LC_CTYPE_class_print, _nl_C_LC_CTYPE_class_graph,
3352         _nl_C_LC_CTYPE_class_blank, _nl_C_LC_CTYPE_class_cntrl,
3353         _nl_C_LC_CTYPE_class_punct, _nl_C_LC_CTYPE_class_alnum,
3354         _nl_C_LC_CTYPE_map_toupper, _nl_C_LC_CTYPE_map_tolower,
3355         _nl_C_LC_CTYPE_width, and as hidden.
3356         * locale/findlocale.c: Declare _nl_C as hidden.
3357         * locale/newlocale.c: Likewise.
3358         * locale/setlocale.c: Define _nl_C as hidden.  Remove declaration of
3359         _nl_locale_file_list.
3360         * locale/xlocale.c: Declare _nl_C_LC_CTYPE_class,
3361         _nl_C_LC_CTYPE_toupper, and _nl_C_LC_CTYPE_tolower as hidden.
3362         Define _nl_C_locobj as hidden.
3363
3364         * malloc/mtrace.c (_mtrace_file): Define as hidden.
3365         (_mtrace_line): Likewise.
3366
3367         * include/time.h: Declare __mon_yday as hidden.
3368         * time/strptime.c [_LIBC] (__mon_yday): Remove declaration.
3369
3370         * libio/libioP.h: Declare __libio_codecvt as hidden.
3371         * libio/fileops.c: Declare __libio_translit as hidden.
3372         * libio/iofwide.c: Define __libio_translit as hidden.
3373
3374         * login/getutent_r.c: Define __libc_utmp_lock as hidden.
3375         * login/getutid_r.c: Declare __libc_utmp_lock as hidden.
3376         * login/getutline_r.c: Likewise.
3377         * login/utmpname.c: Likewise.
3378
3379         * login/utmp-private.h: Declare __libc_utmp_file_functions,
3380         __libc_utmp_unknown_functions, __libc_utmp_jump_table, and
3381         __libc_utmp_file_name as hidden.
3382
3383         * locale/setlocale.c (__libc_setlocale_lock): Define as hidden.
3384         * locale/duplocale.c (__libc_setlocale_lock): Declare as hidden.
3385         * locale/freelocale.c: Likewise.
3386         * locale/lc-time.c: Likewise.
3387
3388         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1): Define as hidden.
3389         (__libc_ptyname2): Likewise.
3390         * sysdeps/unix/sysv/linux/ptsname.c (__libc_ptyname1): Declare as
3391         hidden.
3392         (__libc_ptyname2): Likewise.
3393
3394         * sysdeps/generic/sbrk.c: Declare __libc_multiple_libcs as hidden.
3395         * sysdeps/arm/init-first.c (__libc_multiple_libcs): Define as hidden.
3396         * sysdeps/generic/init-first.c: Likewise.
3397         * sysdeps/i386/init-first.c: Likewise.
3398         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
3399         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
3400         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
3401         * sysdeps/sh/init-first.c: Likewise.
3402         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
3403         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
3404
3405         * stdio-common/itowa-digits.c (_itowa_lower_digits): Define as hidden.
3406         (_itowa_upper_digits): Likewise.
3407
3408         * libio/stdio.c (_IO_stdin, _IO_stdout, _IO_stderr): Define as hidden.
3409         * libio/libio.h [_LIBC] (_IO_stdin, _IO_stdout, _IO_stderr): Declare
3410         as hidden.
3411
3412         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps,
3413         _IO_wfile_jumps_mmap, _IO_proc_jumps, _IO_old_proc_jumps,
3414         _IO_str_jumps, _IO_wstr_jumps, _IO_file_jumps_internal,
3415         _IO_wfile_jumps_internal, and _IO_list_all_internal as hidden.
3416
3417         * gmon/gmon.c (__bb_head): Define as hidden.
3418         * gmon/bb_exit_func.c (__bb_head): Declare as hidden.
3419
3420         * argp/argp-parse.c (_argp_hang): Define as static.
3421
3422         * include/libc-symbols.h (_INTVARDEF): Adjust for visibility
3423         handling in latest compilers.
3424
3425         * inet/in6_addr.c (in6addr_any): Use INTVARDEF not INTDEF to
3426         define alias.
3427         * libio/fileops.c (_IO_file_jumps): Likewise.
3428         * libio/stdfiles.c (_IO_list_all): Likewise.
3429         * libio/wfileops.c (_IO_wfile_jumps): Likewise.
3430
3431         * malloc/malloc.h: Move __libc_malloc_initialized declaration to
3432         include/malloc.h.
3433         * include/malloc.h: Add __libc_malloc_initialized declaration
3434         here.  Mark variable hidden.
3435         * malloc/malloc.c: Include <malloc.h> not "malloc.h".
3436
3437         * elf/dl-open.c (__libc_argc): Declare as hidden.
3438         (__libc_argv): Likewise.
3439         * sysdeps/generic/wordexp.c (__libc_argc): Declare as hidden.
3440         (__libc_argv): Likewise.
3441         * sysdeps/mach/hurd/i386/init-first.c: Define __libc_argc and
3442         __libc_argv as hidden.
3443         * sysdeps/mach/hurd/mips/init-first.c: Likewise.
3444         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
3445         * sysdeps/unix/sysv/aix/init-first.c: Likewise.
3446         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
3447
3448         * include/stdlib.h (__libc_drand48_data): Declare as hidden.
3449         * stdlib/drand48.c: Remove declaration of __libc_drand48_data here.
3450         * stdlib/erand48.c: Likewise.
3451         * stdlib/jrand48.c: Likewise.
3452         * stdlib/lcong48.c: Likewise.
3453         * stdlib/lrand48.c: Likewise.
3454         * stdlib/mrand48.c: Likewise.
3455         * stdlib/nrand48.c: Likewise.
3456         * stdlib/seed48.c: Likewise.
3457         * stdlib/srand48.c: Likewise.
3458
3459         * stdio-common/_itoa.c (_itoa_base_table): Declare as hidden.
3460         (_itoa_lower_digits_internal): New declaration.
3461         (_itoa_upper_digits_internal): New declaration.
3462         (_itoa): Use INTUSE to acces _itoa_upper_digits and _itoa_lower_digits.
3463         * stdio-common.h (_itoa_lower_digits_internal): New declaration.
3464         (_itoa_upper_digits_internal): New declaration.
3465         (_itoa_word): Use INTUSE to acces _itoa_upper_digits and
3466         _itoa_lower_digits.
3467         * stdio-common/itoa-digits.c: Use INTVARDEF with _itoa_lower_digits.
3468         * stdio-common/itoa-udigits.c: Use INTVARDEF with _itoa_upper_digits.
3469
3470         * elf/dl-minimal.c (_itoa): Declare _itoa_lower_digits as hidden.
3471         * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
3472
3473         * stdio-common/_itowa.c (_itoa_base_table): Declare as hidden.
3474         (_itowa_lower_digits): Likewise.
3475         (_itowa_upper_digits): Likewise.
3476         * stdio-common/_itowa.h (_itowa_lower_digits): Likewise.
3477         (_itowa_upper_digits): Likewise.
3478
3479         * intl/plural-exp.h (attribute_hidden): Define as empty macro if
3480         not already defined.
3481         (GERMANIC_PLURAL): Declare as hidden.
3482
3483         * posix/getopt.c (__getopt_initialized): Declare as hidden.
3484         (attribute_hidden): Define as empty macro if not already defined.
3485
3486         * iconv/gconv_int.h (__gconv_path_elem): Declare hidden.
3487         (__gconv_max_path_elem_len): Likewise.
3488         (__gconv_path_envvar): Likewise.
3489
3490         * math/Makefile (gmp-objs): Remove mp_clz_tab.
3491         * stdlib/Makefile (aux): Remove mp_clz_tab.
3492         * stdlib/mp_clz_tab.c: Removed.  Not needed anywhere.
3493
3494         * stdlib/exit.h (__exit_funcs): Declare as hidden.
3495
3496         * posix/bug-regex5.c (main): Use nl_langinfo instead of _NL_CURRENT.
3497
3498         * locale/localeinfo.h: Add attribute_hidden to _nl_current_LC_XXX,
3499         _nl_category_names, _nl_category_name_sizes, _nl_current,
3500         _nl_C_name, _nl_POSIX_name, _nl_C_codeset, and _nl_C_LC_XXX.
3501
3502         * intl/dcigettext.c (_nl_default_default_domain): Define as hidden.
3503         (_nl_current_default_domain): Likewise
3504         (_nl_state_lock): Likewise.
3505         * intl/textdomain.c (_nl_default_default_domain): Declare as hidden.
3506         (_nl_current_default_domain): Likewise
3507         (_nl_state_lock): Likewise.
3508         * intl/bindtextdom.c (_nl_state_lock): Likewise.
3509
3510         * stdlib/fpioconst.h (__tens): Add attribute_hidden.
3511         (_fpioconst_pow10): Likewise.
3512
3513         * include/time.h (_tmbuf): Add attribute_hidden.
3514
3515         * time/tzset.c (tzstring_list): Define as static.
3516
3517         * include/time.h: Add attribute_hidden to __tzname_cur_max and
3518         __use_tzfile declaration.
3519
3520         * wcsmbs/wcsmbsload.h: Add attribute_hidden to __wcsmbs_gconv_fcts
3521         and __wcsmbs_last_locale declaration.
3522
3523 2002-02-25  Paul Eggert  <eggert@twinsun.com>
3524
3525         * timezone/Makefile (tzbases): Move systemv from here...
3526         (tzlinks): to here, since the entries in systemv were all changed
3527         from Zone to Link lines in tz-2001a.  Bug reported (and patch
3528         tested) by Peter Breitenlohner.
3529
3530 2002-03-07  Jakub Jelinek  <jakub@redhat.com>
3531
3532         * time/tst-posixtz.c (tests): Add new tests.
3533         (main): Test whether tzset() sets daylight properly.
3534
3535 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
3536
3537         * time/tzset.c (tz_compute): Move __daylight, __tzname and
3538         __tzname_cur_max setting...
3539         (tzset_internal): ...here.
3540
3541 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
3542
3543         * time/tzset.c (compute_change): Don't return any value.
3544         (tz_compute): Likewise.  Don't handle southern hemisphere here.
3545         (__tz_convert): But here.
3546
3547 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
3548
3549         * manual/examples/mkfsock.c: Include <string.h> as well.
3550         Patch by Alain De Carolis <alaind@wseurope.com>.
3551
3552 2002-03-06  Isamu Hasegawa  <isamu@yamato.ibm.com>
3553
3554         * posix/regexec.c (re_match): Fix incorrect register sizes.
3555         (re_search): Likewise.
3556
3557 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
3558
3559         * posix/regcomp.c (regfree): Remove a disused condition.
3560         * posix/regex_internal.c (re_acquire_state): Likewise.
3561         (re_acquire_state_context): Likewise.
3562         (register_state): Remove a redundant malloc invocation.
3563         * posix/regex_internal.h: (re_state_table_entry): Simplify
3564         the structure.
3565
3566 2002-03-05  Isamu Hasegawa  <isamu@yamato.ibm.com>
3567
3568         * posix/regcomp.c (regcomp): Add __builtin_expect to error
3569         handling conditions.
3570         (regerror): Likewise.
3571         (regfree): Likewise.
3572         (re_compile_internal): Likewise.
3573         (init_dfa): Likewise.
3574         (init_word_char): Likewise.
3575         (create_initial_state): Likewise.
3576         (analyze): Likewise.
3577         (analyze_tree): Likewise.
3578         (duplicate_node): Likewise.
3579         (calc_eclosure): Likewise.
3580         (calc_eclosure_iter): Likewise.
3581         (parse): Likewise.
3582         (parse_reg_exp): Likewise.
3583         (parse_branch): Likewise.
3584         (parse_expression): Likewise.
3585         (parse_subexp): Likewise.
3586         (parse_dup_op): Likewise.
3587         (parse_bracket_exp): Likewise.
3588         (build_equiv_class): Likewise.
3589         (build_charclass): Likewise.
3590         (build_word_op): Likewise.
3591         (fetch_number): Likewise.
3592         (create_tree): Likewise.
3593         (duplicate_tree): Likewise.
3594         * posix/regex.c (BE): New macro.
3595         * posix/regexec.c (re_match): Add __builtin_expect to error
3596         handling conditions.
3597         (re_match_2): Likewise.
3598         (re_search): Likewise.
3599         (re_search_internal): Likewise.
3600         (check_matching): Likewise.
3601         (proceed_next_node): Likewise.
3602         (set_regs): Likewise.
3603         (sift_states_backward): Likewise.
3604         (add_epsilon_backreference): Likewise.
3605         (transit_state): Likewise.
3606         (transit_state_sb): Likewise.
3607         (transit_state_mb): Likewise.
3608         (transit_state_bkref): Likewise.
3609         (transit_state_bkref_loop): Likewise.
3610         (build_trtable): Likewise.
3611         (group_nodes_into_DFAstates): Likewise.
3612         (match_ctx_init): Likewise.
3613         (match_ctx_add_entry): Likewise.
3614         * posix/regex_internal.c (re_string_construct): Add __builtin_expect
3615         to error handling conditions.
3616         (re_string_construct_toupper): Likewise.
3617         (build_wcs_buffer): Likewise.
3618         (build_wcs_upper_buffer): Likewise.
3619         (build_upper_buffer): Likewise.
3620         (re_string_translate_buffer): Likewise.
3621         (re_node_set_alloc): Likewise.
3622         (re_node_set_init_1): Likewise.
3623         (re_node_set_init_2): Likewise.
3624         (re_node_set_init_copy): Likewise.
3625         (re_node_set_intersect): Likewise.
3626         (re_node_set_init_union): Likewise.
3627         (re_node_set_merge): Likewise.
3628         (re_node_set_insert): Likewise.
3629         (re_dfa_add_node): Likewise.
3630         (re_acquire_state): Likewise.
3631         (re_acquire_state_context): Likewise.
3632         (create_new_state_common): Likewise.
3633         (register_state): Likewise.
3634         (create_ci_new_state): Likewise.
3635         (create_cd_new_state): Likewise.
3636         (re_string_context_at): Remove redundant condition.
3637
3638 2002-01-16  Roger Sayle  <roger@eyesopen.com>
3639
3640         * sysdeps/i386/i686/strcmp.S: Avoid unconditional jump to a ret.
3641
3642         * sysdeps/i386/i586/strlen.S: Fix typo in comment.
3643
3644 2002-03-11  Jakub Jelinek  <jakub@redhat.com>
3645
3646         * sysdeps/i386/elf/configure.in: Fix comment.
3647
3648         * sysdeps/sparc/sparc64/configure.in: New.
3649         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix
3650         if .dynamic comes before .got.
3651         * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add.
3652
3653         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF,
3654         HP_TIMING_ACCUM): Fix typos.
3655
3656 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
3657
3658         * string/strfry.c: Add some more randomness to the seed.
3659         Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
3660
3661         * po/es.po: Update from translation team.
3662         * po/fr.po: Likewise.
3663
3664         * stdio-common/tfformat.c (sprint_doubles): A test for %F format.
3665
3666         * stdio-common/printf_fp.c (__printf_fp): Correct check for %F format
3667         when determining type of format.
3668         Patch by James Antill <james@anqd.org> [PR libc/2787].
3669
3670 2002-03-04  Jakub Jelinek  <jakub@redhat.com>
3671
3672         * sysdeps/unix/bsd/ftime.c (ftime): Don't return 1000 in millitm.
3673
3674 2002-03-11  Roland McGrath  <roland@frob.com>
3675
3676         * hurd/hurd/threadvar.h: Include <features.h> for __THROW macro.
3677
3678         * Versions.def (libc): Add GLIBC_2.2.6.
3679         * hurd/Versions (libc: GLIBC_2.2.6): Add __errno_location.
3680         * sysdeps/mach/hurd/errnos.awk: In generated macro, use
3681         __errno_location instead of __hurd_errno_location, and don't inline it.
3682         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
3683         * hurd/errno.c: New file.
3684         * hurd/Makefile (routines): Add errno.
3685
3686 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
3687
3688         * stdio-common/vfprintf.c (vfprintf): Avoid crashing for
3689         ridiculously large widths and precisions [PR libc/3026].
3690
3691 2002-03-11  Andreas Jaeger  <aj@suse.de>
3692
3693         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: Fix for bi-arch
3694         support.
3695         Patch by Susanne Oberhauser <froh@SuSE.de>.
3696
3697 2002-03-11  Ulrich Drepper  <drepper@redhat.com>
3698
3699         * inet/rexec.c (ahostbuf): Define as static.
3700
3701         * wctype/wcfuncs.c (__ctype32_wctype): Declare as hidden.
3702         (__ctype32_wctrans): Likewise.
3703         * wcsmbs/wcwidth.h (__ctype32_width): Declare as hidden.
3704         * ctype/ctype-info.c (__ctype32_wctype): Add attribute_hidden.
3705         (__ctype32_wctrans): Likewise.
3706         (__ctype32_width): Likewise.
3707
3708         * gmon/Makefile (elide-routines.os): Add bb_init_func and bb_exit_func.
3709         They were never exported anyway.
3710
3711         * gmon/gmon.c (_gmonparam): Add attribute_hidden.
3712         * gmon/sys/gmon.h: Remove declaration of _gmonparam.  It wasn't
3713         exported.
3714         * include/sys/gmon.h: Declare _gmonparam.
3715
3716         * sysdeps/unix/sysv/linux/i386/getdents64.c: Don't define compatibility
3717         symbols for getdents64.  They were never exported.
3718
3719 2002-03-09  Roland McGrath  <roland@frob.com>
3720
3721         * hurd/hurdsig.c (write_corefile): Fix swapped arguments to __dir_link.
3722         Reported by Jon Arney <jarney1@cox.net>.
3723
3724 2002-02-23  Roland McGrath  <roland@frob.com>
3725
3726         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Add __THROW to
3727         declaration.
3728         (__hurd_errno_location): Function removed.
3729
3730 2002-03-06  Andreas Jaeger  <aj@suse.de>
3731
3732         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Add compatibility for
3733         32-bit.
3734
3735 2002-03-04  Andreas Jaeger  <aj@suse.de>
3736
3737         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: New.
3738
3739         * sysdeps/unix/sysv/linux/kernel-features.h: Add defines for
3740         x86-64.
3741
3742         * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: New.
3743
3744         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: New.
3745
3746         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: New.
3747
3748         * sysdeps/x86_64/bits/setjmp.h: New.
3749
3750         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: New.
3751
3752         * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: New.
3753
3754         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Add compatibilty
3755         for x86.
3756         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Likewise.
3757         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: Likewise.
3758
3759 2002-02-28  Bo Thorsen  <bo@suse.de>
3760
3761         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Merge with i386
3762         version.
3763
3764 2002-03-03  Andreas Jaeger  <aj@suse.de>
3765
3766         * sysdeps/x86_64/bits/wordsize.h: New file.
3767
3768         * elf/nodlopenmod2.c: Provide prototype to avoid warning.
3769         * elf/tst-tlsmod1.c: Likewise.
3770
3771         * posix/regcomp.c: Get regex.h from include dir for internal
3772         prototypes.
3773
3774         * sysdeps/unix/sysv/linux/init-first.c: Move __init_misc prototype
3775         to libc-internal.h and include it.
3776         * include/libc-internal.h: Add __init_misc.
3777
3778         * misc/init-misc.c: Include libc-internal.h for prototypes.
3779
3780         * sysdeps/wordsize-32/divdi3.c: Add prototypes to avoid warnings.
3781
3782         * misc/error.c [_LIBC]: Include libioP.h for prototype of
3783         _IO_putc_internal.
3784
3785 2002-03-03  Ulrich Drepper  <drepper@redhat.com>
3786
3787         * posix/regcomp.c: Compatibility changes to allow using the code
3788         outside glibc.
3789
3790 2002-02-28  Hartvig Ekner <hartvige@mips.com>
3791
3792         * sysdeps/mips/elf/start.S: Added initialization of GP (to _gp) if
3793         compiled non-PIC.
3794
3795 2002-03-02  Ulrich Drepper  <drepper@redhat.com>
3796
3797         * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): Fix creation
3798         of .str elements in the returned data structure.
3799
3800         * elf/elf.h: Add Alpha TLS bits.
3801
3802 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
3803
3804         * sysdeps/unix/sysv/linux/nice.c: New file.
3805
3806 2002-03-01  Ulrich Drepper  <drepper@redhat.com>
3807
3808         * elf/Makefile (dl-routines): Add dl-origin.
3809         (elide-routines.os): Add dl-origin.
3810         * elf/Versions [ld] (GLIBC_PRIVATE): Add _dl_get_origin.
3811         * elf/dl-debug.c (_dl_debug_initialize): Add missing INTUSE around
3812         _dl_debug_state.
3813         * include/libc-symbols.c: Define attribute_hidden depending on
3814         HAVE_VISIBILITY_ATTRIBUTE.  Add definition of INTVARDEF.
3815
3816         * elf/dl-deps.c: Use INTUSE with __libc_enable_secure.
3817         * elf/dl-load.c: Likewise.
3818         * elf/rtld.c: Likewise.
3819         * include/unistd.h: Declare __libc_enable_secure_internal.
3820         * sysdeps/generic/dl-sysdep.c: Use INTVARDEF with __libc_enable_secure.
3821         Use INTUSE with __libc_enable_secure.
3822         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
3823
3824         * elf/dl-deps.c: Use INTUSE with _dl_out_of_memory.
3825         * elf/dl-error.c: Likewise,
3826         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory_internal.
3827
3828         * elf/dl-dst.h [_RTLD_GLOBAL]: Define _dl_get_origin to use INTUSE.
3829         * sysdeps/generic/dl-origin.c: Undefine _dl_get_origin macro before
3830         function definition.  Use INTDEF with _dl_get_origin.
3831         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
3832
3833         * elf/dl-init.c: Use INTUSE with _dl_starting_up.
3834         * elf/rtld.c: Likewise.  Use INTVARDEF for _dl_starting_up.
3835
3836         * elf/dl-profile.c: Use INTDEF for _dl_mcount.
3837         * elf/dl-runtime.c: Use INTUSE with _dl_mcount.
3838         * sysdeps/generic/ldsodefs.h: Declare _dl_mcount_internal.
3839
3840         * elf/dl-conflict.c: Use rtld_progrname instead of _dl_argv[0].
3841         * elf/dl-deps.c: Likewise.
3842         * elf/dl-error.c: Likewise.
3843         * elf/dl-fini.c: Likewise.
3844         * elf/dl-init.c: Likewise.
3845         * elf/dl-load.c: Likewise.
3846         * elf/dl-lookup.c: Likewise.
3847         * elf/dl-reloc.c: Likewise.
3848         * elf/dl-version.c: Likewise.
3849         * elf/do-lookup.h: Likewise.
3850         * sysdeps/arm/dl-machine.h: Likewise.
3851         * sysdeps/cris/dl-machine.h: Likewise.
3852         * sysdeps/hppa/dl-machine.h: Likewise.
3853         * sysdeps/i386/dl-machine.h: Likewise.
3854         * sysdeps/m68k/dl-machine.h: Likewise.
3855         * sysdeps/powerpc/dl-machine.h: Likewise.
3856         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3857         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3858         * sysdeps/sh/dl-machine.h: Likewise.
3859         * sysdeps/sparc/sparc-32/dl-machine.h: Likewise.
3860         * sysdeps/sparc/sparc-64/dl-machine.h: Likewise.
3861         * sysdeps/x86_64/dl-machine.h: Likewise.
3862         * elf/rtld.c: Use INTDEF for _dl_argv.  Use rtld_progrname instead of
3863         _dl_argv[0].  Use INTUSE with _dl_argv.
3864         * sysdeps/generic/dl-sysdep.c: Use INTUSE with _dl_argv.
3865         * sysdeps/generic/ldsodefs.h: Define rtld_progname macro.
3866
3867 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
3868
3869         * elf/rtld.c (_rtld_global): Remove .protected.
3870         (_rtld_local): Strong alias to _rtld_global.
3871         * elf/Makefile (CFLAGS-.os): Add -D_RTLD_LOCAL if compiling rtld
3872         only .os object.
3873         * sysdeps/generic/ldsodefs.h (GL): If SHARED and _RTLD_LOCAL, use
3874         _rtld_local instead of _rtld_global.
3875         (_rtld_local): Add hidden extern, possibly in .sdata section.
3876         * configure.in: Add tests for visibility attribute and .sdata.
3877         * config.h.in: Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION.
3878         * sysdeps/alpha/dl-machine.h: Use _rtld_local instead of _rtld_global.
3879         * sysdeps/arm/dl-machine.h: Likewise.
3880         * sysdeps/generic/ldsodefs.h: Likewise.
3881         * sysdeps/hppa/dl-machine.h: Likewise.
3882         * sysdeps/cris/dl-machine.h: Likewise.
3883         * sysdeps/i386/dl-machine.h: Likewise.
3884         * sysdeps/ia64/dl-machine.h: Likewise.
3885         * sysdeps/m68k/dl-machine.h: Likewise.
3886         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3887         * sysdeps/mips/dl-machine.h: Likewise.
3888         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3889         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3890         * sysdeps/sh/dl-machine.h: Likewise.
3891         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3892         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3893         * sysdeps/x86_64/dl-machine.h: Likewise.
3894
3895 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
3896
3897         * login/login.c (login): Always initialize ut_line field
3898         [PR libc/2991].
3899
3900 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
3901
3902         * sysdeps/i386/Makefile (sysdep_routines): Add
3903         divdi3 in csu dir.
3904         (shared-only-routines): Likewise.
3905         * sysdeps/m68k/Makefile (sysdep_routines): Likewise.
3906         (shared-only-routines): Likewise.
3907         * sysdeps/s390/s390-32/Makefile (sysdep_routines): Likewise.
3908         (shared-only-routines): Likewise.
3909         * sysdeps/wordsize-32/divdi3.c: New file.
3910
3911 2002-02-28  Ulrich Drepper  <drepper@redhat.com>
3912
3913         * locale/iso-4217.def: Remove obsolete currencies for countries
3914         with Euro.
3915
3916 2002-02-28  Isamu Hasegawa  <isamu@yamato.ibm.com>
3917
3918         * posix/regcomp.c (regcomp): Remove a redundant condition.
3919         (init_word_char): Add a check on malloc failure.
3920         (create_initial_state): Likewise.
3921         (duplicate_node): Likewise.
3922         (calc_eclosure): Likewise.
3923         (calc_eclosure_iter): Likewise.
3924         (parse_expression): Likewise.
3925         (parse_bracket_exp): Remove unnecessary malloc invocations.
3926         (build_equiv_class): Likewise.
3927         (build_charclass): Likewise.
3928         * posix/regex_internal.c (re_node_set_intersect): Add a check
3929         on malloc failure.
3930         (re_node_set_add_intersect): Likewise.
3931         (re_node_set_merge): Likewise.
3932         (re_acquire_state): Likewise.
3933         (re_acquire_state_context): Likewise.
3934         (create_newstate_common): Likewise.
3935         (register_state): Likewise.
3936         (create_ci_newstate): Likewise.
3937         (create_cd_newstate): Likewise.
3938         * posix/regex_internal.h: Fix prototypes of re_acquire_state
3939         and re_acquire_state_context.
3940         * posix/regexec.c (regexec): Suit it to the error handling of
3941         re_search_internal.
3942         (re_match): Likewise.
3943         (re_search): Likewise.
3944         (re_search_internal): Add a check on malloc failure.
3945         (acquire_init_state_context): Likewise.
3946         (check_matching): Likewise.
3947         (proceed_next_node): Likewise.
3948         (set_regs): Likewise.
3949         (sift_states_backward): Likewise.
3950         (sift_states_iter_bkref): Likewise.
3951         (add_epsilon_backreference): Likewise.
3952         (transit_state): Likewise.
3953         (transit_state_sb): Likewise.
3954         (transit_state_mb): Likewise.
3955         (transit_state_bkref_loop): Likewise.
3956         (build_trtable): Likewise.
3957         (group_nodes_into_DFAstates): Likewise.
3958         (match_ctx_init): Likewise.
3959         (match_ctx_add_entry): Likewise.
3960
3961 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
3962
3963         * elf/dl-load.c (_dl_map_object_from_fd): Always add SONAME to
3964         l_libname if profiling is enabled [PR libc/2916].
3965
3966         * sysdeps/ia64/dl-tls.h: New file.
3967
3968 2002-02-27  Jakub Jelinek  <jakub@redhat.com>
3969
3970         * sysdeps/alpha/dl-machine.h (elf_machine_load_address, RTLD_START):
3971         Work around an Alpha gas bug.
3972
3973 2002-02-27  Ulrich Drepper  <drepper@redhat.com>
3974
3975         * catgets/open_catalog.c (__open_catalog): Fix typo in code which
3976         uses read to load the catalog.
3977         Patch by Andy Isaacson <adi@unlimitedscale.com> [PR libc/3011].
3978
3979 2002-02-26  Ulrich Drepper  <drepper@redhat.com>
3980
3981         * posix/Makefile (distribute): Add regcomp.c, regexec.c,
3982         regex_internal.c, and regex_internal.h.
3983         (CFLAGS-regex.c): Replace -DMBS_SUPPORT with -DRE_ENABLE_I18N.
3984         * posix/regex.c: Complete rewrite.
3985         * posix/regexec.c: New file.
3986         * posix/regcomp.c: New file.
3987         * posix/regex_internal.c: New file.
3988         * posix/regex_internal.h: New file.
3989         * posix/regex.h (RE_ICASE): New macro.
3990         Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
3991
3992         * stdio-common/vfscanf.c (_IO_vfwscanf): Always use ungetc, never
3993         ungetwc.  It's a macro.
3994         * libio/tst-swscanf.c (do_test): Adjust for now fixed wscanf
3995         implementation.
3996         Reported by Jason Merrill <jason@redhat.com>.
3997
3998 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
3999
4000         * libio/iofopen.c (__fopen_maybe_mmap): Set the initial
4001         position to fp->_offset if it is set.
4002         * stdio-common/Makefile (tests): Add tst-fdopen.
4003         * stdio-common/tst-fdopen.c: New test.
4004
4005 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
4006
4007         * libio/fileops.c (_IO_file_xsgetn_mmap): Handle reading from backup.
4008         * stdio-common/tst-ungetc.c (main): Add another test.
4009
4010 2002-02-25  Ulrich Drepper  <drepper@redhat.com>
4011
4012         * assert/assert-perr.c: Use INTUSE to reference functions and variables
4013         inside libc itself.  Use INTDEF and INTDEF2 to define appropriate
4014         aliases.  Add prototypes for the new aliases.
4015         * assert/assert.c: Likewise.
4016         * include/libc-symbols.h: Likewise.
4017         * include/stdio.h: Likewise.
4018         * include/netinet/in.h: Likewise.
4019         * include/rpc/auth.h: Likewise.
4020         * include/rpc/auth_unix.h: Likewise.
4021         * include/rpc/key_prot.h: Likewise.
4022         * include/rpc/pmap_prot.h: Likewise.
4023         * include/rpc/pmap_rmt.h: Likewise.
4024         * include/rpc/rpc_msg.h: Likewise.
4025         * include/rpc/xdr.h: Likewise.
4026         * inet/gethstbyad_r.c: Likewise.
4027         * inet/gethstbynm2_r.c: Likewise.
4028         * inet/gethstbynm_r.c: Likewise.
4029         * inet/gethstent_r.c: Likewise.
4030         * inet/in6_addr.c: Likewise.
4031         * libio/__fpurge.c: Likewise.
4032         * libio/filedoalloc.c: Likewise.
4033         * libio/fileops.c: Likewise.
4034         * libio/ftello.c: Likewise.
4035         * libio/ftello64.c: Likewise.
4036         * libio/genops.c: Likewise.
4037         * libio/iofclose.c: Likewise.
4038         * libio/iofdopen.c: Likewise.
4039         * libio/iofflush.c: Likewise.
4040         * libio/iofflush_u.c: Likewise.
4041         * libio/iofgetpos.c: Likewise.
4042         * libio/iofgetpos64.c: Likewise.
4043         * libio/iofgets.c: Likewise.
4044         * libio/iofgets_u.c: Likewise.
4045         * libio/iofopen.c: Likewise.
4046         * libio/iofopncook.c: Likewise.
4047         * libio/iofputs.c: Likewise.
4048         * libio/iofread.c: Likewise.
4049         * libio/iofread_u.c: Likewise.
4050         * libio/iofsetpos.c: Likewise.
4051         * libio/iofsetpos64.c: Likewise.
4052         * libio/ioftell.c: Likewise.
4053         * libio/iofwrite.c: Likewise.
4054         * libio/iogetline.c: Likewise.
4055         * libio/iogets.c: Likewise.
4056         * libio/iogetwline.c: Likewise.
4057         * libio/iolibio.h: Likewise.
4058         * libio/iopadn.c: Likewise.
4059         * libio/iopopen.c: Likewise.
4060         * libio/ioseekoff.c: Likewise.
4061         * libio/ioseekpos.c: Likewise.
4062         * libio/iosetbuffer.c: Likewise.
4063         * libio/iosetvbuf.c: Likewise.
4064         * libio/ioungetc.c: Likewise.
4065         * libio/ioungetwc.c: Likewise.
4066         * libio/iovdprintf.c: Likewise.
4067         * libio/iovsprintf.c: Likewise.
4068         * libio/iovsscanf.c: Likewise.
4069         * libio/libioP.h: Likewise.
4070         * libio/memstream.c: Likewise.
4071         * libio/obprintf.c: Likewise.
4072         * libio/oldfileops.c: Likewise.
4073         * libio/oldiofclose.c: Likewise.
4074         * libio/oldiofdopen.c: Likewise.
4075         * libio/oldiofgetpos.c: Likewise.
4076         * libio/oldiofgetpos64.c: Likewise.
4077         * libio/oldiofopen.c: Likewise.
4078         * libio/oldiofsetpos.c: Likewise.
4079         * libio/oldiofsetpos64.c: Likewise.
4080         * libio/oldiopopen.c: Likewise.
4081         * libio/oldstdfiles.c: Likewise.
4082         * libio/putc.c: Likewise.
4083         * libio/setbuf.c: Likewise.
4084         * libio/setlinebuf.c: Likewise.
4085         * libio/stdfiles.c: Likewise.
4086         * libio/stdio.c: Likewise.
4087         * libio/strops.c: Likewise.
4088         * libio/vasprintf.c: Likewise.
4089         * libio/vscanf.c: Likewise.
4090         * libio/vsnprintf.c: Likewise.
4091         * libio/vswprintf.c: Likewise.
4092         * libio/wfiledoalloc.c: Likewise.
4093         * libio/wfileops.c: Likewise.
4094         * libio/wgenops.c: Likewise.
4095         * libio/wstrops.c: Likewise.
4096         * malloc/mtrace.c: Likewise.
4097         * misc/error.c: Likewise.
4098         * misc/syslog.c: Likewise.
4099         * nss/getXXbyYY_r.c: Likewise.
4100         * nss/getXXent_r.c: Likewise.
4101         * nss/hosts-lookup.c: Likewise.
4102         * stdio-common/getw.c
4103         * stdio-common/printf-prs.c: Likewise.
4104         * stdio-common/printf_fp.c: Likewise.
4105         * stdio-common/printf_size.c: Likewise.
4106         * stdio-common/putw.c: Likewise.
4107         * stdio-common/scanf.c: Likewise.
4108         * stdio-common/sprintf.c: Likewise.
4109         * stdio-common/tmpfile64.c: Likewise.
4110         * stdio-common/vfprintf.c: Likewise.
4111         * stdio-common/vfscanf.c: Likewise.
4112         * stdlib/strfmon.c: Likewise.
4113         * sunrpc/auth_des.c: Likewise.
4114         * sunrpc/auth_none.c: Likewise.
4115         * sunrpc/auth_unix.c: Likewise.
4116         * sunrpc/authdes_prot.c: Likewise.
4117         * sunrpc/authuxprot.c: Likewise.
4118         * sunrpc/clnt_perr.c: Likewise.
4119         * sunrpc/clnt_raw.c: Likewise.
4120         * sunrpc/clnt_tcp.c: Likewise.
4121         * sunrpc/clnt_udp.c: Likewise.
4122         * sunrpc/clnt_unix.c: Likewise.
4123         * sunrpc/key_call.c: Likewise.
4124         * sunrpc/key_prot.c: Likewise.
4125         * sunrpc/openchild.c: Likewise.
4126         * sunrpc/pm_getmaps.c: Likewise.
4127         * sunrpc/pm_getport.c: Likewise.
4128         * sunrpc/pmap_clnt.c: Likewise.
4129         * sunrpc/pmap_prot.c: Likewise.
4130         * sunrpc/pmap_prot2.c: Likewise.
4131         * sunrpc/pmap_rmt.c: Likewise.
4132         * sunrpc/rpc_cmsg.c: Likewise.
4133         * sunrpc/rpc_prot.c: Likewise.
4134         * sunrpc/svc_authux.c: Likewise.
4135         * sunrpc/svc_raw.c: Likewise.
4136         * sunrpc/svc_simple.c: Likewise.
4137         * sunrpc/svc_tcp.c: Likewise.
4138         * sunrpc/svc_udp.c: Likewise.
4139         * sunrpc/svc_unix.c: Likewise.
4140         * sunrpc/xdr.c: Likewise.
4141         * sunrpc/xdr_array.c: Likewise.
4142         * sunrpc/xdr_mem.c: Likewise.
4143         * sunrpc/x