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