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