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