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