Update.
[glibc.git] / ChangeLog
blobc50260ad480848601070869a436f591d36779fbd
1 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
3         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
4         attribute((packed)) to counter stupid people misuing gcc options.
5         (struct stat64): Likewise.
7 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
9         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
10         the variables which are used as booleans.
12 2002-02-06  Andreas Jaeger  <aj@suse.de>
14         * include/libc-symbols.h (INTUSE): Renamed from INT.
15         * elf/dl-deps.c: Change users.
16         * sysdeps/generic/dl-sysdep.c: Likewise.
17         * sysdeps/generic/dl-cache.c: Likewise.
18         * elf/dl-reloc.c: Likewise.
19         * elf/rtld.c: Likewise.
20         * elf/dl-version.c: Likewise.
21         * elf/dl-load.c: Likewise.
22         * elf/dl-dst.h: Likewise.
23         * elf/dl-init.c: Likewise.
24         * elf/dl-error.c: Likewise.
25         * elf/dl-fini.c: Likewise.
26         * elf/dl-runtime.c: Likewise.
27         * elf/do-lookup.h: Likewise.
29         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
30         definition.
31         * stdio-common/_itowa.h: Likewise.
33 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
35         * elf/dl-minimal.c: Define _itoa_lower_digits.
37         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
38         DT_FLAGS set.
40         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
41         loading modules with the DF_STATIC_TLS flag set.
42         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
43         element.
44         * include/link.h (struct link_map): Add l_flags field.
45         * elf/elf.h (DF_STATIC_TLS): New definition.
47         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
48         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
50         * elf/rtld.c (process_dl_debug): Correct printing help message.
51         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
52         for %s.
54         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
55         definition and pass &errno in use of this variable.
56         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
58 2002-02-04  Andreas Schwab  <schwab@suse.de>
60         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
61         * locale/programs/charmap-dir.c: Wrap calls that output messages
62         with WITH_CUR_LOCALE.  Include "localedef.h" first.
63         * locale/programs/charmap.c: Likewise.
64         * locale/programs/ld-address.c: Likewise.
65         * locale/programs/ld-collate.c: Likewise.
66         * locale/programs/ld-ctype.c: Likewise.
67         * locale/programs/ld-identification.c: Likewise.
68         * locale/programs/ld-measurement.c: Likewise.
69         * locale/programs/ld-messages.c: Likewise.
70         * locale/programs/ld-monetary.c: Likewise.
71         * locale/programs/ld-name.c: Likewise.
72         * locale/programs/ld-numeric.c: Likewise.
73         * locale/programs/ld-paper.c: Likewise.
74         * locale/programs/ld-telephone.c: Likewise.
75         * locale/programs/ld-time.c: Likewise.
76         * locale/programs/linereader.c: Likewise.
77         * locale/programs/linereader.h: Likewise.
78         * locale/programs/localedef.c: Likewise.
79         * locale/programs/locfile.c: Likewise.
80         * locale/programs/repertoire.c: Likewise.
82 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
84         * elf/rtld.c (_dl_start_final): Determine load address to locate
85         ehdr with GL(dl_rtld_map).l_map_start.
87         * po/ca.po: Update from translation team.
89         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
90         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
91         header entry.
92         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
93         _dl_tls_module_cnt.
94         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
96 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
98         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
99         * include/link.h (struct link_map): Add various members for TLS
100         information.
101         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
102         _rtld_tlsoffset, add _dl_initimage_list.
103         * sysdeps/i386/dl-lookupcfg.h: New file.
104         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
105         TLS relocation.  When using TLS we now use RESOLVE_MAP.
106         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
107         is used.
109         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
110         unused.
112         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
113         thread-pointer as soon as possible.
114         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
115         elements in rtld_global.
116         * sysdeps/generic/tls.h: New file.
117         * elf/Makefile (distribute): Add tls.h.
118         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
119         relocations.  Not complete yet.
121         * resolv/resolv.h: Allow user to define __need_res_state and only
122         define __res_start structure then.
123         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
125         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
126         dl_cpuclock_offset initialization to _dl_start_final.
127         (_dl_show_auxv): Avoid unnecessary sign extension.
128         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
130 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
132         * config.h.in: Add HAVE_TLS_SUPPORT.
133         * sysdeps/i386/elf/configure.in: New file.
135 2002-02-03  Andreas Schwab  <schwab@suse.de>
137         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
138         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
140 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
142         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
143         alloca if the memory reqirements are too high.
145 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
147         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
148         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
149         the former is available anyway and speed isn't important here.
150         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
151         * elf/dl-version.c (match_symbol): Likewise.
152         (_dl_check_map_versions): Likewise.
153         * elf/rtld.c (process_envvars): Likewise.
154         (print_statistics): Likewise.
155         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
156         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
157         bases.  Add assert to catch uses of unimplemented features.
158         (__strsep): Add assert to catch uses of unimplemented features.
159         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
160         and avoid inline optimization.
161         * elf/rtld.c (process_envvars): Likewise.
162         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
163         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
164         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
166 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
168         * stdio-common/_itoa.h: Minor simplifications of the code.
169         * stdio-common/_itoa.c: Likewise.
171         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
172         instead of _dl_printf for debugging info output.
174         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
175         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
177 2002-02-01  H.J. Lu  <hjl@gnu.org>
179         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
180         (atomic_add): Likewise.
181         (compare_and_swap): Return 0 only when failed to compare. Use
182         branch likely.
184         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
185         branch likely.
187 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
189         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
191 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
193         * elf/dl-minimal.c (__strsep): New minimal implementation.
195 2002-02-02  Paul Eggert  <eggert@twinsun.com>
197         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
198         (__mktime_internal): If no tm_isdst is requested, prefer solutions
199         with tm_isdst > 0 when the requested time falls within a
200         spring-forward gap [PR libc/2894].
202 2002-02-03  Andreas Schwab  <schwab@suse.de>
204         * stdio-common/tst-rndseek.c: Increase timeout.
206 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
208         Change ld.so to not use functions which are exported.  One cannot
209         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
210         definitions.
211         * include/libc-symbols.h: Define INT and INTDEF.
212         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
213         _dl_signal_error_internal, _dl_map_object_internal,
214         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
215         _dl_lookup_versioned_symbol_internal,
216         _dl_relocate_object_internal, _dl_debug_state_internal,
217         _dl_start_profile_internal, and _dl_unload_cache_internal.
218         * include/dlfcn.h: Declare _dl_catch_error_internal.
219         * elf/rtld.c: Use INT for calls to any of the *_internal functions
220         above.  Add INTDEF to function definitions.
221         * elf/dl-debug.c: Likewise.
222         * elf/dl-deps.c: Likewise.
223         * elf/dl-dst.h: Likewise.
224         * elf/dl-error.c: Likewise.
225         * elf/dl-fini.c: Likewise.
226         * elf/dl-init.c: Likewise.
227         * elf/dl-load.c: Likewise.
228         * elf/dl-lookup.c: Likewise.
229         * elf/dl-misc.c: Likewise.
230         * elf/dl-open.c: Likewise.
231         * elf/dl-profile.c: Likewise.
232         * elf/dl-reloc.c: Likewise.
233         * elf/dl-runtime.c: Likewise.
234         * elf/dl-version.c: Likewise.
235         * elf/do-lookup.h: Likewise.
236         * sysdeps/generic/dl-cache.c: Likewise.
237         * sysdeps/generic/dl-sysdep.c: Likewise.
238         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
239         instead of _dl_init.
240         * sysdeps/arm/dl-machine.h: Likewise.
241         * sysdeps/cris/dl-machine.h: Likewise.
242         * sysdeps/hppa/dl-machine.h: Likewise.
243         * sysdeps/i386/dl-machine.h: Likewise.
244         * sysdeps/ia64/dl-machine.h: Likewise.
245         * sysdeps/m68k/dl-machine.h: Likewise.
246         * sysdeps/mips/dl-machine.h: Likewise.
247         * sysdeps/mips/mips64/dl-machine.h: Likewise.
248         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
249         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
250         * sysdeps/sh/dl-machine.h: Likewise.
251         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
252         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
253         * sysdeps/x86_64/dl-machine.h: Likewise.
254         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
256         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
257         and _dl_debug_initialize.
259         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
260         more information.
261         * elf/rtld.c (dl_main): Avoid strrchr.
262         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
263         result of readlink.  Search from the back for '/'.
265         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
266         strncpy if possible.
268         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
269         strncmp.
270         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
271         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
272         strspn, and strcspn.
273         (process_envvars): Don't use strcspn.
275         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
276         (_dl_dst_substitute): Likewise.
278 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
280         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
281         code which is never used when relocating ld.so itself.
283         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
284         starting ld.so itself.  Move l_addr variable initialization closer
285         to use.
286         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
288 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
290         * Versions.def (libc): Add GLIBC_PRIVATE.
291         (libdb, libnss_db, libdb1): Remove.
292         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
293         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
294         (libpthread): Add GLIBC_PRIVATE.
295         (libresolv): Likewise, remove GLIBC_2.1.
296         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
297         GLIBC_2.2.3, GLIBC_2.3.
298         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
299         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
300         _dl_sym, _dl_vsym): Likewise.
301         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
302         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
303         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
304         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
305         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
306         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
307         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
308         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
309         Likewise.
310         (_dl_object_relocation_scope): Remove.
311         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
312         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
313         __gconv_cache): Move to GLIBC_PRIVATE.
314         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
315         __internal_setnetgrent): Likewise.
316         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
317         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
318         * locale/Versions (__collate_element_hash, __collate_element_strings,
319         __collate_symbol_classes, __collate_symbol_hash,
320         __collate_symbol_strings, _nl_current_LC_COLLATE,
321         _nl_current_LC_CTYPE): Likewise.
322         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
323         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
324         (libnss_nis, libnss_nisplus): Likewise.
325         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
326         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
327         (libnss_files): Move all symbols to GLIBC_PRIVATE.
328         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
329         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
330         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
331         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
332         __ns_get16, __ns_samename): Likewise.
333         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
334         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
335         GLIBC_PRIVATE.
336         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
337         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
338         __libc_connect): Likewise.
339         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
340         Likewise.
341         * stdlib/Versions (__libc_system): Likewise.
342         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
343         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
344         * sysdeps/ia64/fpu/Versions: Likewise.
345         * sysdeps/ia64/Versions: Likewise.
346         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
347         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
348         to GLIBC_PRIVATE.
349         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
350         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
351         __libc_sigaction): Likewise.
352         * termios/Versions (__libc_tcdrain): Likewise.
354         * misc/sys/cdefs (__attribute_noinline__): Define.
355         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
356         __attribute_noinline__.
358         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
359         * elf/dl-xstat64.c: New file.
360         * elf/dl-fxstat64.c: New file.
361         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
362         don't export __fxstat64 at multiple versions.
363         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
364         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
366 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
368         * locale/program/ld-collate.c (collate_finish): Assign a wide
369         char collation sequence value to multi character collating
370         elements, and avoid over writing by non-character elements.
372 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
374         * elf/Makefile (distribute): Add dl-procinfo.c.
375         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
376         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
378 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
380         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
381         definition.
382         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
383         _rtld_global struct.
384         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
385         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
386         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
387         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
388         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
389         _dl_fpu_control_set): Remove unused externs.
390         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
391         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
392         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
393         related variables in _rtld_global struct.
394         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
395         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
396         unused extern.
398 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
400         * sysdeps/generic/dl-procinfo.c: New file.
402 2002-02-01  Andreas Schwab  <schwab@suse.de>
404         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
406 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
408         * elf/rtld.c (_dl_start): Mark as internal_function.
409         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
410         in register.
411         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
412         General pretty printing.
414 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
416         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
417         * elf/dl-reloc.c: Pretty printing.
418         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
419         procinfo-related variables in rtld_global struct.
420         * elf/dl-support.c: Likewise.
421         * elf/rtld.c: Likewise.
422         * sysdeps/i386/i686/Makefile: Likewise.
423         * sysdeps/i386/i686/hp-timing.c: Likewise.
424         * sysdeps/i386/i686/hp-timing.h: Likewise.
425         * sysdeps/ia64/Makefile: Likewise.
426         * sysdeps/ia64/hp-timing.c: Likewise.
427         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
428         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
429         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
430         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
431         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
432         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
433         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
434         * sysdeps/x86_64/Makefile: Likewise.
436         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
437         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
438         _dl_debug_fd to rtld_global.
439         * elf/Versions: Likewise.
440         * elf/dl-close.c: Likewise.
441         * elf/dl-iteratephdr.c: Likewise.
442         * elf/dl-lookup.c: Likewise.
443         * elf/dl-misc.c: Likewise.
444         * elf/dl-open.c: Likewise.
445         * elf/dl-support.c: Likewise.
446         * elf/do-lookup.h: Likewise.
447         * elf/rtld.c: Likewise.
448         * sysdeps/generic/dl-cache.c: Likewise.
449         * sysdeps/generic/dl-sysdep.c: Likewise.
450         * sysdeps/ia64/Versions: Likewise.
451         * sysdeps/unix/clock_gettime.c: Likewise.
452         * sysdeps/unix/clock_settime.c: Likewise.
453         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
454         * sysdeps/sparc/Versions: Removed.
455         * sysdeps/i386/i686/Versions : Removed.
456         * sysdeps/x86_64/Versions: Removed.
457         * configure.in: Define HAVE_PROTECTED if .protected is available.
458         * config.h.in: Add entry for HAVE_PROTECTED.
460 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
462         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
463         code in struct _rtld_global.  Export this struct, remove all
464         exports for the signal variables.
465         * sysdeps/arm/dl-machine: Likewise.
466         * sysdeps/generic/dl-origin: Likewise.
467         * sysdeps/generic/dl-sysdep: Likewise.
468         * sysdeps/generic/dl-cache: Likewise.
469         * sysdeps/hppa/dl-fptr: Likewise.
470         * sysdeps/hppa/dl-machine: Likewise.
471         * sysdeps/cris/dl-machine: Likewise.
472         * sysdeps/i386/dl-machine: Likewise.
473         * sysdeps/ia64/dl-machine: Likewise.
474         * sysdeps/m68k/dl-machine: Likewise.
475         * sysdeps/mach/hurd/dl-sysdep: Likewise.
476         * sysdeps/mips/mips64/dl-machine: Likewise.
477         * sysdeps/mips/dl-machine: Likewise.
478         * sysdeps/powerpc/elf/libc-start: Likewise.
479         * sysdeps/powerpc/dl-machine: Likewise.
480         * sysdeps/powerpc/dl-start: Likewise.
481         * sysdeps/sparc/sparc32/dl-machine: Likewise.
482         * sysdeps/sparc/sparc64/dl-machine: Likewise.
483         * sysdeps/sh/dl-machine: Likewise.
484         * sysdeps/s390/s390-32/dl-machine: Likewise.
485         * sysdeps/s390/s390-64/dl-machine: Likewise.
486         * sysdeps/unix/sysv/aix/libc-start: Likewise.
487         * sysdeps/unix/sysv/aix/start-libc: Likewise.
488         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
489         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
490         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
491         * sysdeps/x86_64/dl-machine: Likewise.
493 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
495         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
496         are too high.
498 2002-01-31  Andreas Schwab  <schwab@suse.de>
500         * sysdeps/posix/readv.c: Check for ssize_t overflow.
502 2002-01-31  Andreas Schwab  <schwab@suse.de>
504         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
505         reference to _dl_pagesize.
507 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
509         * Versions.def [ld]: Add GLIBC_2.3.
510         * elf/dl-addr.c: Move global variables for SHARED code in struct
511         _rtld_global.  Export this struct, remove all exports for the
512         signal variables.
513         * elf/dl-close.c: Likewise.
514         * elf/dl-conflict.c: Likewise.
515         * elf/dl-debug.c: Likewise.
516         * elf/dl-deps.c: Likewise.
517         * elf/dl-dst.h: Likewise.
518         * elf/dl-error.c: Likewise.
519         * elf/dl-fini.c: Likewise.
520         * elf/dl-init.c: Likewise.
521         * elf/dl-iteratephdr.c: Likewise.
522         * elf/dl-libc.c: Likewise.
523         * elf/dl-load.c: Likewise.
524         * elf/dl-lookup.c: Likewise.
525         * elf/dl-minimal.c: Likewise.
526         * elf/dl-object.c: Likewise.
527         * elf/dl-open.c: Likewise.
528         * elf/dl-profile.c: Likewise.
529         * elf/dl-profstub.c: Likewise.
530         * elf/dl-reloc.c: Likewise.
531         * elf/dl-runtime.c: Likewise.
532         * elf/dl-support.c: Likewise.
533         * elf/dl-sym.c: Likewise.
534         * elf/dl-version.c: Likewise.
535         * elf/do-lookup.h: Likewise.
536         * elf/do-rel.h: Likewise.
537         * elf/dynamic-link.h: Likewise.
538         * elf/rtld.c: Likewise.
539         * sysdeps/generic/dl-cache.c: Likewise.
540         * sysdeps/generic/dl-sysdep.c: Likewise.
541         * sysdeps/generic/ldsodefs.h: Likewise.
542         * sysdeps/generic/libc-start.c: Likewise.
543         * sysdeps/i386/dl-machine.h: Likewise.
544         * sysdeps/ia64/dl-fptr.c: Likewise.
545         * sysdeps/ia64/dl-machine.h: Likewise.
546         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
547         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
548         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
549         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
550         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
551         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
552         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
553         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
555 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
557         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
558         to avoid warning
559         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
561         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
562         SHARED version.
563         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
565         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
567 2002-01-29  Ben Collins  <bcollins@debian.org>
569         * string/bits/string2.h (__mempcpy): Protect size arg for
570         addition when using __builtin_memcpy.
572 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
574         * stdlib/Makefile (tests): Add tst-qsort.
575         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
577         * manual/signal.texi (Process Signal Mask): Document that
578         pthread_sigmask, not sigprocmask, must be used in MT programs.
579         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
581         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
582         found.
583         * misc/Makefile (tests): Add tst-hsearch.
584         * misc/tst-hsearch.c: New file.
586 2002-01-18  Wolfram Gloger  <wg@malloc.de>
588         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
589         * malloc/malloc.h: Likewise.
590         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
591         * malloc/arena.c: New file.
592         * malloc/hooks.c: New file.
593         * malloc/tst-mallocstate.c: New file.
594         * malloc/Makefile: Add new testcase tst-mallocstate.
595         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
597 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
599         * stdlib/msort.c: Remove last patch.  The optimization violates the
600         same rule which qsort.c had problems with.
602 2002-01-27  Paul Eggert  <eggert@twinsun.com>
604         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
605         to a pivot element that lies outside the array to be sorted, as
606         ISO C99 requires that the comparison function be called only with
607         addresses of array elements [PR libc/2880].
609 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
611         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
612         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
614         * timezone/asia: Update from tzdata2002b.
615         * timezone/australasia: Likewise.
616         * timezone/backward: Likewise.
617         * timezone/europe: Likewise.
618         * timezone/leapseconds: Likewise.
619         * timezone/iso3166.tab: Likewise.
620         * timezone/zone.tab: Likewise.
622 2002-01-23  Richard Henderson  <rth@redhat.com>
624         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
626 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
628         * string/strxfrm.c: Allocate one more byte for rulearr and clear
629         this element [PR libc/2855].
631         * string/strcoll.c: Handle zero-length arguments specially
632         [PR libc/2856].
634 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
636         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
637         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
638         short lengths and constant src.
639         (strcpy): Don't optimize for gcc 3.0+.
640         (__stpcpy): For gcc 3.0+, don't use
641         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
642         for short string literal src.
644 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
646         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
647         Set for arm, too.
649 2001-01-22  Paul Eggert  <eggert@twinsun.com>
651         * manual/llio.texi (Linked Channels, Cleaning Streams):
652         Make it clearer that a just-opened input stream might need cleaning.
654 2002-01-21  H.J. Lu  <hjl@gnu.org>
656         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
657         Don't use label at end of compound statement.
659 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
661         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
662         Remove test for negative integer arg; sin_pi does it correctly.
664 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
666         * nscd/Makefile (distribute): Filter out xmalloc.c.
668 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
670         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
671         Set offset if read end wasn't the buffer end.
672         (_IO_file_seekoff_mmap): New function.
673         (_IO_file_xsgetn_mmap): New function.
674         (_IO_file_jumps_mmap): Use the two new functions.
675         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
676         != end buffer.
677         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
678         _IO_file_underflow_mmap.
679         * libio/iofopen.c: Don't position file descriptor at end of file.
680         * libio/tst-widetext.c: Improve error messages.
681         * stdio-common/tst-rndseek.c: Likewise.
683 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
685         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
686         end of enum for !_GNU_SOURCE.
687         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
688         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
689         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
690         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
691         values unless _GNU_SOURCE.
693         * iconvdata/tcvn5712-1.c: Minor cleanups.
695 2002-01-18  Andreas Schwab  <schwab@suse.de>
697         * sysdeps/unix/sysv/linux/configure.in
698         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
700 2002-01-16  Roger Sayle  <roger@eyesopen.com>
702         * stdlib/msort.c (msort_with_tmp): Replace implementation with
703         more efficient "Towers of Hanoi" mergesort.
704         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
705         for generic, sizeof(int) and sizeof(long) variants respectively.
707 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
709         * manual/syslog.texi (openlog): Describe possible problems with
710         first parameter.
711         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
713         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
714         * nscd/connections.c (begin_drop_privileges): New function.
715         (finish_drop_privileges): New function.
716         (nscd_init): Call the new functions which also install all groups
717         for the server user.
718         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
719         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
721 2002-01-17  H.J. Lu  <hjl@gnu.org>
723         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
724         `const' from `got'.
726 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
728         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
729         instructions for pointer operations.
730         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
732 2002-01-17  Andreas Jaeger  <aj@suse.de>
734         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
735         __uint128_t build-in.
737         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
738         PowerPC, sync with 2.2 branch.
740 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
742         * posix/getconf.c: Update copyright year.
743         * nss/getent.c: Likewise.
744         * nscd/nscd_nischeck.c: Likewise.
745         * iconv/iconvconfig.c: Likewise.
746         * iconv/iconv_prog.c: Likewise.
747         * elf/ldconfig.c: Likewise.
748         * catgets/gencat.c: Likewise.
749         * csu/version.c: Likewise.
750         * elf/ldd.bash.in: Likewise.
751         * elf/sprof.c (print_version): Likewise.
752         * locale/programs/locale.c: Likewise.
753         * locale/programs/localedef.c: Likewise.
754         * nscd/nscd.c (print_version): Likewise.
755         * debug/xtrace.sh: Likewise.
756         * malloc/memusage.sh: Likewise.
757         * malloc/mtrace.pl: Likewise.
759 2002-01-16  Andreas Schwab  <schwab@suse.de>
761         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
762         reliably remove "-ia64" from rtld name.
764 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
766         * iconvdata/gb18030.c: Bug fixes and support for more characters.
767         Patch by Yu Shao <yshao@redhat.com>.
769 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
771         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
772         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
773         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
775 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
777         * sysdeps/s390/fpu/libm-test-ulps: Update.
779 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
781         * elf/elf.h: Update x86 relocations.
783 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
785         * locale/programs/charmap.c (new_width): Check whether byte
786         sequences for both ends of range have the same length.
788 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
790         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
792 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
794         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
795         string literals.
796         (__full_ieee754_sqrt): Add __attribute_used__.
798 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
800         * sysdeps/generic/group_member.c (__group_member): Also check
801         groups[0] [PR libc/2781].
803 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
805         * Makefile (distribute): Add scripts/cpp.
806         * elf/Makefile (distribute): Add reldep6mod[01234].c,
807         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
808         unwind-dw2-fde.h, and dwarf2.h.
809         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
810         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
811         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
812         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
814 2002-01-07  Roland McGrath  <roland@frob.com>
816         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
817         volatile on type of ARGC so the compiler doesn't get clever.
819 2002-01-07  Andreas Jaeger  <aj@suse.de>
821         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
822         * sysdeps/i386/bits/byteswap.h: Likewise.
823         * sysdeps/ia64/bits/byteswap.h: Likewise.
824         * sysdeps/m68k/bits/byteswap.h: Likewise.
825         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
826         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise.
828 2002-01-02  Bruno Haible  <bruno@clisp.org>
830         * intl/plural.y: Fix %expect count.
832 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
834         * elf/Makefile (routines, shared-only-routines): Add
835         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
836         * elf/elf.h (PT_GNU_EH_FRAME): Define.
837         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
838         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
839         Optimize if .eh_frame section contains no FDEs.
840         (__register_frame, __deregister_frame_info_bases,
841         __deregister_frame): Likewise.
842         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
843         DW_CFA_restore handling.
845 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
847         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
849         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
850         for x < 0.25 and restore original range reduction method.
851         (__ieee754_lgammal_r): Make sure signgam is set before returning.
853 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
855         * libio/fileops.c (_IO_file_underflow_mmap): New function.
856         (_IO_file_close_mmap): New function.
857         (_IO_file_jumps_mmap): New variable.
858         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
859         trying to convert rest of byte buffer.
860         (_IO_wfile_underflow_mmap): New function.
861         (_IO_wfile_jumps_mmap): New variable.
862         * libio/iofopen.c (__fopen_maybe_mmap): New function.
863         (__fopen_internal): New function.  Split out from _IO_new_fopen.
864         (_IO_new_fopen): Call __fopen_internal.
865         * libio/iofopen64.c: Just call __fopen_internal.
866         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
867         successfully.
868         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
869         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
870         _IO_file_close_mmap.
872         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
873         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
875         * stdio-common/Makefile (tests): Add tst-rndseek.
876         * stdio-common/tst-rndseek.c: New file.
878 2002-01-05  Roland McGrath  <roland@frob.com>
880         * config.h.in (HAVE_MIG_RETCODE): New #undef.
881         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
882         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
883         * sysdeps/mach/hurd/configure: Regenerated.
885 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
887         * elf/elf.h: Add more TLS definitions.
889 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
891         * include/features.h (__GLIBC_MINOR__): Bump to 3.
893 2002-01-02  Roland McGrath  <roland@frob.com>
895         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
896         __sigisemptyset.  Don't use MASK uninitialized.
898         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
899         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
900         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
901         __sigdelset, __sigaddset, __sigorset.
903         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
904         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
906         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
907         _hurd_ports is null.
909         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
910         for old CMU and new OSF Mach interface flavors.
911         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
912         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
914         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
916         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
917         Pass extra arguments to task_create for OSF variant.
918         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
920         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
921         conditional on [HAVE_AUX_VECTOR].
923         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
924         mach_msg_timeout_t as type of final argument.
926         * hurd/privports.c (__get_privileged_ports):
927         Change host_priv_t to mach_port_t in argument type.
928         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
929         Update decls.
931         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
932         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
933         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
934         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
935         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
936         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
938 2002-01-01  Roland McGrath  <roland@frob.com>
940         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
942 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
944         * include/stdlib.h: Define inlines for the _l variants of the strto*
945         functions.
947 2002-01-01  Roland McGrath  <roland@frob.com>
949         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
951         * mach/Machrules (MIG): Set CPP as well as CC.
953 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
955         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
956         locale to parse /proc/loadavg [PR libc/2760].
958 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
960         * elf/dl-conflict.c: Include sys/param.h.
961         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
962         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
963         warning.
964         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
965         literals to avoid warnings.
967 2001-12-31  Andreas Jaeger  <aj@suse.de>
969         * configure.in: Don't check for gsed since we do not use it anywhere.
971 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
973         * io/fts.c: Update from BSD to fix memory leaks.
975 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
977         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
978         * elf/chroot_canon.c: Likewise.
979         * elf/dl-object.c: Likewise.
980         * iconv/iconv_charmap.c: Likewise.
981         * iconv/iconv_prog.c: Likewise.
982         * libio/iogetdelim.c: Likewise.
983         * locale/lc-time.c: Likewise.
984         * stdlib/canonicalize.c: Likewise.
985         * sunrpc/svc.c: Likewise.
986         * sysdeps/generic/glob.c: Likewise.
988 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
990         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
991         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
992         remove high order bit from the program counter.
993         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
995 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
997         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
998         unnecessary code and add missing reloc types.
999         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
1000         case for reloc type R_390_NONE.
1002 2001-12-28  Andreas Jaeger  <aj@suse.de>
1004         * io/bug-ftw3.c: Include string.h for prototypes.
1006         * crypt/md5test.c (main): Remove unused variable.
1008         * dlfcn/modstatic.c: Add prototype to avoid warning.
1010 2001-12-26  Roland McGrath  <roland@frob.com>
1012         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
1013         check only (SS->pending & MASK) for the signal to return.
1014         From Jeroen Dekkers <jeroen@dekkers.cx>.
1016 2001-12-22  Roland McGrath  <roland@frob.com>
1018         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
1019         Use preprocessor #if conditionals instead of `if' to avoid
1020         warnings about divide by zero in dead code.
1022         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
1023         _hurd_port_init, and __hurd_self_sigstate.
1025         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
1027 2001-12-21  Andreas Jaeger  <aj@suse.de>
1029         * elf/dblloadmod1.c: Add prototype to avoid warning.
1030         * elf/dblloadmod2.c: Likewise.
1031         * elf/dblloadmod3.c: Likewise.
1032         * elf/reldepmod5.c: Likewise.
1033         * elf/reldepmod6.c: Likewise.
1035         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
1036         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
1037         used on all architectures.
1039         * sunrpc/svc_tcp.c: Add noreturn attribute for
1040         svctcp_rendezvous_abort.
1041         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
1043         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
1044         to avoid warning.
1046 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
1048         * manual/llio.texi (aio_fsync): Fix a typo.
1049         Patch by Tammy Fox <tfox@redhat.com>.
1051 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
1053         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
1054         stack bias from child stack pointer before passing it to clone syscall.
1056 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
1058         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
1059         _SC_TZNAME_MAX.
1060         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
1061         Reported by Thorsten Kukuk <kukuk@suse.de>.
1063         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
1064         add some casts.
1066         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
1068 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
1070         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
1071         conforming: return EBADF if file descriptor is invalid and EINVAL
1072         if file descriptor is no valid tty.
1073         * login/tst-grantpt.c: New file.
1074         * login/Makefile (tests): Add tst-grantpt.
1076 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
1078         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
1079         different than implemented in last patch.
1080         * io/bug-ftw3.c: Adjust test for changed handling of
1081         inaccessibility of toplevel dir.
1083 2001-12-16  Roland McGrath  <roland@frob.com>
1085         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
1086         * grp/initgroups.c (internal_getgrouplist): Likewise.
1088         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
1089         `default:' to silence new GCC warning.
1090         Rewrite cast of lvalue to silence new GCC warning.
1092         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
1094         * sysdeps/mach/hurd/spawni.c: New file, by me with a
1095         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
1097 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
1099         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
1100         Patch by Stephen R. van den Berg.
1102         * crypt/md5.h: Define md5_uintptr.
1104 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
1106         * libio/tst_swprintf.c (main): Add test for string argument with
1107         zero precision.
1108         * stdio-common/Makefile (tests): Add tst-sprintf.
1109         * stdio-common/tst-sprintf.c: New file.
1111 2001-12-13  Andreas Schwab  <schwab@suse.de>
1113         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
1114         zero precision with wide character string format.
1116 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
1118         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
1119         but have a user supplied buffer, return the empty buffer, not NULL.
1121 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
1123         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
1124         Patch by Eric Sharkey <sharkey@netrics.com>.
1126         * crypt/md5test.c (main): Add test for multiple calls to
1127         __md5_process_bytes to itererate over input string.
1129 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
1131         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
1132         from __nis_findfastest.  Take timeout value from parameter.
1133         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
1134         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
1135         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
1137 2001-12-12  Andreas Jaeger  <aj@suse.de>
1139         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
1140         combreloc test so that it works in this case.
1142         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
1144 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
1146         * sysdeps/sh/Makefile: New file.
1147         * sysdeps/sh/_mcount.S: New file.
1148         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
1149         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
1151 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
1153         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
1154         limitation [PR libc/2564].
1156 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
1158         * elf/Makefile (dl-routines): Add conflict.
1159         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
1160         (ld.so): Add _begin local symbol.
1161         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
1162         Define.
1163         * elf/dl-deps.c (_dl_build_local_scope): New.
1164         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
1165         of all libraries.
1166         * elf/do-rel.h (VALIDX): Define.
1167         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
1168         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
1169         can be skipped.
1170         * elf/dl-conflict.c: New file.
1171         * elf/dl-lookup.c (_dl_debug_bindings): New.
1172         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
1173         non-NULL.
1174         (_dl_lookup_symbol_skip): Likewise.
1175         (_dl_lookup_versioned_symbol): Likewise.
1176         (_dl_lookup_versioned_symbol_skip): Likewise.
1177         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
1178         define to ElfW(Rel).
1179         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
1180         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
1181         ranges.
1182         Don't adjust address dynamic tags if l_addr is 0.
1183         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
1184         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
1185         (VALIDX, ADDRIDX): Define.
1186         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
1187         (dl_main): Print library list for LD_TRACE_PRELINKING.
1188         If prelinking information can be used, skip relocating libraries and
1189         call _dl_resolve_conflicts instead.
1190         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
1191         * elf/dl-load.c (_dl_map_object): Don't create fake libs
1192         if LD_TRACE_PRELINKING.
1193         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
1194         + DT_ADDRNUM.
1195         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
1196         (DL_DEBUG_PRELINK): Define.
1197         (_dl_resolve_conflicts): Add prototype.
1199         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
1200         .plt for prelinked libraries where prelinking info cannot be used.
1201         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
1202         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
1203         * sysdeps/arm/bits/link.h: New file.
1204         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
1205         content of .got[1].
1206         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
1207         (ELF_MACHINE_PLT_REL): Define.
1208         (elf_machine_rela, elf_machine_rela_relative): New.
1209         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
1210         of adjusting it if prelinked and prelinking cannot be used.
1211         * sysdeps/i386/bits/link.h: New file.
1212         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
1213         content of .got[1].
1214         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
1215         (ELF_MACHINE_PLT_REL): Define.
1216         (elf_machine_rela, elf_machine_rela_relative): New.
1217         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
1218         of adjusting it if prelinked and prelinking cannot be used.
1219         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
1220         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
1221         to find out map for R_PPC_JMP_SLOT relocs.
1222         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
1223         (OPCODE_BA): Define.
1224         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
1225         libraries where prelinking info cannot be used.
1226         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
1227         (elf_machine_fixup_plt): Call sparc_fixup_plt.
1228         (elf_machine_rela): Set value to 0 if relocating conflicts.
1229         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
1230         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
1231         (sparc64_fixup_plt): Fix a typo.
1232         (elf_machine_rela): Set value to 0 if relocating conflicts.
1233         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
1234         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
1235         libraries where prelinking info cannot be used.
1236         * sysdeps/sh/bits/link.h: New file.
1237         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
1238         content of .got[1].
1239         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
1240         of adjusting it if prelinked and prelinking cannot be used.
1241         * sysdeps/s390/s390-32/bits/link.h: New file.
1242         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
1243         Save original content of .got[1].
1244         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
1245         of adjusting it if prelinked and prelinking cannot be used.
1246         * sysdeps/s390/s390-64/bits/link.h: New file.
1247         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
1248         Save original content of .got[1].
1249         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
1250         of adjusting it if prelinked and prelinking cannot be used.
1251         * sysdeps/x86_64/bits/link.h: New file.
1252         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
1253         Save original content of .got[1].
1254         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
1255         of adjusting it if prelinked and prelinking cannot be used.
1257 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
1259         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
1260         where appropriate instead of numbers.  Little optimizations.
1262 2001-12-10  Roland McGrath  <roland@frob.com>
1264         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
1265         set it.
1267         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
1268         set to GLIBC_2.2.5, not GLIBC_2.2.4.
1270         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
1271         Fix conditionals so this is set by default for stdio and not for libio.
1272         * sysdeps/mach/hurd/configure: Regenerated.
1274 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
1276         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
1278 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
1280         * io/Makefile (tests): Add bug-ftw3.
1281         * io/bug-ftw3.c: New file.
1283         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
1284         matches and GLOB_NOCHECK is set.
1285         * posix/globtest.sh: Correct expected result for NOCHECK test.
1287         * po/ca.po: Update from translation team.
1289 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
1291         Implement transliteration of characters in strings of the locale
1292         definitions.
1293         * locale/programs/linereader.c: Adjust for additional parameter to
1294         lr_token.
1295         (get_string): If character <Uxxxx> is not found try to transliterate
1296         it.
1297         * locale/programs/ld-ctype.c: Adjust for additional parameter to
1298         lr_token.  Add const to charmap parameter of all functions.
1299         (find_translit, find_translit2): New functions.
1300         * locale/programs/charmap.c: Adjust for additional parameter to
1301         lr_token.
1302         * locale/programs/repertoire.c: Likewise.
1303         * locale/programs/linereader.h: Likewise.
1304         * locale/programs/ld-address.c: Likewise.  Add const to charmap
1305         parameter of all functions.
1306         * locale/programs/ld-collate.c: Likewise.
1307         * locale/programs/ld-identification.c: Likewise.
1308         * locale/programs/ld-measurement.c: Likewise.
1309         * locale/programs/ld-messages.c: Likewise.
1310         * locale/programs/ld-monetary.c: Likewise.
1311         * locale/programs/ld-name.c: Likewise.
1312         * locale/programs/ld-numeric.c: Likewise.
1313         * locale/programs/ld-paper.c: Likewise.
1314         * locale/programs/ld-paper.c: Likewise.
1315         * locale/programs/ld-telephone.c: Likewise.
1316         * locale/programs/ld-time.c: Likewise.
1317         * locale/programs/locfile.c: Likewise.
1318         * locale/programs/localedef.c: Likewise.
1319         * locale/programs/localedef.h: Likewise.
1320         * locale/programs/locfile.h: Likewise.  Add declaration for
1321         find_translit.
1322         * locale/programs/simple-hash.c: Add const to first parameter of
1323         find_entry, iterate_table, and lookup.
1324         * locale/programs/simple-hash.h: Likewise.
1325         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
1326         instead.
1327         * include/locale.h: Define __LC_LAST.
1328         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
1330 2001-12-07  Geoff Keating  <geoffk@redhat.com>
1332         * sysdeps/powerpc/Dist: Update for recent FP changes.
1333         * sysdeps/powerpc/fpu/Dist: Likewise.
1335 2001-12-07  Andreas Schwab  <schwab@suse.de>
1337         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
1339 2001-12-06  Geoff Keating  <geoffk@redhat.com>
1341         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
1342         save/restore functions here.
1343         (libm-support): Don't define these functions here.
1344         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
1345         functions here.
1346         * sysdeps/powerpc/fe_nomask.c: Move to...
1347         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
1348         * sysdeps/powerpc/fprrest.S: Move to...
1349         * sysdeps/powerpc/fpu/fprrest.S: ... here.
1350         * sysdeps/powerpc/fprsave.S: Move to...
1351         * sysdeps/powerpc/fpu/fprsave.S: ... here.
1353 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
1355         * sysdeps/unix/sysv/linux/opensock.c: New file.
1357 2001-12-06  Geoff Keating  <geoffk@redhat.com>
1359         * config.make.in (with-fp): Define from configure.
1360         * configure.in: Substitute with_fp.
1361         * configure: Regenerate.
1362         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
1363         specified, and don't change FPU environment.
1365 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
1367         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
1368         * assert/assert.c: Check result of __asprintf call and don't use
1369         string if it failed.
1370         * assert/assert-perr.c: Likewise.
1371         * inet/rcmd.c: Likewise.
1372         * locale/programs/localedef.c (main): Check result of
1373         construct_output_path and exit if it failed.
1374         (construct_output_path): Check result of asprintf and mkdir calls and
1375         fail if they failed.
1376         * posix/getopt.c: Check result of __asprintf calls and fail if
1377         they failed.
1378         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
1380 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1382         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
1383         patch.
1384         * sysdeps/generic/strncase.c: Likewise.
1385         * string/tester.c: Add tests for strcasecmp and strncasecmp.
1387 2001-12-05  Geoff Keating  <geoffk@redhat.com>
1389         * scripts/cpp: Test the exit status from 'type', not 'awk'.
1391         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
1392         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
1393         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
1394         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
1395         * sysdeps/powerpc/fclrexcpt.c: Move to...
1396         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
1397         * sysdeps/powerpc/fpu_control.h: Move to...
1398         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
1400 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1402         * iconvdata/ibm1129.h: Remove duplicate mappings.
1403         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
1404         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
1405         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1407         * timezone/zic.c: Fix handling of turnaround times.
1408         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
1410 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
1412         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
1413         overflow problem.
1415 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1417         * posix/regex.c: For use outside glibc defined bounded pointer
1418         macros here.  Patch by Jim Meyering <jim@meyering.net>.
1420         * iconvdata/Makefile (modules): Add TCVN5712-1.
1421         * iconvdata/TESTS: Add TCVN5712-1.
1422         * iconvdata/gconv-modules: Likewise.
1423         * iconvdata/tcvn5712-1.c: New file.
1424         * iconvdata/testdata/TCVN-5712: New file.
1425         * iconvdata/testdata/TCVN-5712..UTF8: New file.
1427 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
1429         * iconvdata/cp1258.c: Optimize conversion from UCS4.
1431 2001-12-02  Roland McGrath  <roland@frob.com>
1433         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
1435         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
1436         Reported by Jeff Bailey <jbailey@nisa.net>.
1438         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
1439         Reported by Jeff Bailey <jbailey@nisa.net>.
1441         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
1442         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
1443         Reported by Jeff Bailey <jbailey@nisa.net>.
1445 2001-12-01  Roland McGrath  <roland@frob.com>
1447         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
1448         missing backslash in test arguments.
1449         * sysdeps/mach/hurd/configure: Regenerated.
1451 2001-11-26  Roland McGrath  <roland@frob.com>
1453         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
1454         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
1456 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
1458         * iconvdata/Makefile (modules): Add ARMSCII-8.
1459         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
1460         * iconvdata/armscii-8.c: New file.
1462 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
1464         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
1465         don't match, fix {{a,b},c} globbing, clean up.
1466         Patch by Flavio Veloso <flaviovs@magnux.com>.
1467         * posix/globtest.sh: Add new tests.
1469 2001-11-29  Andreas Jaeger  <aj@suse.de>
1471         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
1472         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
1474         * sysdeps/generic/abort.c: Include libioP.h for
1475         _IO_flush_all_lockp prototype.
1477 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
1479         * posix/regex.h: Define __restrict_arr correctly.
1481 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
1483         * iconvdata/ibm1163.c: New file.
1484         * iconvdata/ibm1163.h: New file.
1485         * iconvdata/ibm1164.c: New file.
1486         * iconvdata/ibm1164.h: New file.
1487         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
1488         * iconvdata/Makefile: Likewise.
1489         * iconvdata/testdata/IBM1163: New file.
1490         * iconvdata/testdata/IBM1163..UTF8: New file.
1491         * iconvdata/testdata/IBM1164: New file.
1492         * iconvdata/testdata/IBM1164..UTF8: New file.
1493         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1495         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
1496         * iconvdata/ibm1124.h: Likewise.
1497         * iconvdata/ibm1132.h: Likewise.
1498         * iconvdata/ibm1133.h: Likewise.
1499         * iconvdata/ibm1160.h: Likewise.
1500         * iconvdata/ibm1161.h: Likewise.
1501         * iconvdata/ibm1162.h: Likewise.
1502         * iconvdata/ibm856.h: Likewise.
1503         * iconvdata/ibm922.h: Likewise.
1504         * iconvdata/ibm930.h: Likewise.
1505         * iconvdata/ibm932.h: Likewise.
1506         * iconvdata/ibm933.h: Likewise.
1507         * iconvdata/ibm935.h: Likewise.
1508         * iconvdata/ibm937.h: Likewise.
1509         * iconvdata/ibm939.h: Likewise.
1510         * iconvdata/ibm943.h: Likewise.
1511         * iconvdata/ibm930.c: Pretty printing.
1512         * iconvdata/ibm937.c: Avoid access accross array boundary.
1514         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
1515         the current locale's codeset.
1516         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
1517         empty input string.
1518         * iconv/iconv_prog.c: Pass empty strings as default value for to-
1519         and from-charset.  Don't determine locale's charset here.
1521         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
1522         as the old _IO_flush_all but lock only if parameter is nonzero.
1523         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
1524         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
1525         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
1526         if libio is used [PR libc/2575].
1528 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
1530         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
1531         __signbitl): Only define for ISO C99.
1533 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
1535         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
1536         herrnop to NETDB_INTERNAL if we run out of buffer space.
1538 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
1540         * nss/nss_files/files-XXX.c (internal_getent): Correct input
1541         overflow test for platforms with signed char.
1542         Reported by Andrew Haley <aph@cambridge.redhat.com>.
1544 2001-11-28  Bruno Haible  <bruno@clisp.org>
1546         * locale/programs/simple-hash.c (lookup_2): Remove function.
1547         (insert_entry_2): Call lookup instead of lookup_2.
1549 2001-03-04  Bruno Haible  <bruno@clisp.org>
1551         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
1553 2001-10-31  Bruno Haible  <bruno@clisp.org>
1555         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
1557 2001-03-21  Bruno Haible  <bruno@clisp.org>
1559         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
1560         chokes on empty macro arguments.
1561         * intl/plural.y: Add #pragma for alloca on AIX 3.
1563 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
1565         * intl/dcigettext.c (guess_category_value): Only implement for
1566         glibc.  Otherwise rely on function _nl_locale_name which isn't
1567         present in the glibc sources.
1569 2001-09-24  Bruno Haible  <bruno@clisp.org>
1571         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
1572         transliteration when building on a glibc system but outside glibc.
1574 2001-09-22  Bruno Haible  <bruno@clisp.org>
1576         * intl/plural-eval.c: New file, extracted from dcigettext.c.
1577         * intl/dcigettext.c (plural_eval): Remove function, moved to
1578         intl/plural-eval.c.
1579         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
1580         Include plural-eval.c.
1582 2001-09-22  Bruno Haible  <bruno@clisp.org>
1584         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
1585         don't start with a digit; nplurals must be positive.
1587 2001-09-02  Bruno Haible  <bruno@clisp.org>
1589         * intl/plural-exp.h: New file, extracted from gettextP.h.
1590         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
1591         * intl/gettextP.h (struct expression, struct parse_args,
1592         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
1593         * intl/loadmsgcat.c: Include plural-exp.h.
1594         (PLURAL_PARSE): Move macro to plural-exp.h.
1595         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
1596         plural-exp.c.
1597         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
1598         EXTRACT_PLURAL_EXPRESSION.
1599         (_nl_unload_domain): Update.
1600         * intl/dcigettext.c: Include plural-exp.h.
1601         * intl/plural.y: Include plural-exp.h, not gettextP.h.
1602         (FREE_EXPRESSION): Move macro to plural-exp.h.
1603         * intl/Makefile (routines): Add plural-exp.
1604         (distribute): Add plural-exp.h.
1606 2001-07-28  Bruno Haible  <bruno@clisp.org>
1608         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
1609         isdigit, tolower argument to 'unsigned char'.
1610         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
1611         'unsigned char'.
1612         * intl/localealias.c (read_alias_file): Cast isspace argument to
1613         'unsigned char'.
1615 2001-10-20  Bruno Haible  <bruno@clisp.org>
1617         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
1618         anyway.)
1619         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
1620         with the variable 'index' in plural_lookup.
1621         * intl/l10nflist.c (strchr): Likewise.
1622         * intl/localealias.c (strchr): Likewise.
1624         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
1625         * intl/bindtextdom.c: Likewise.
1626         * intl/dcigettext.c: Likewise.
1627         * intl/dgettext.c: Likewise.
1628         * intl/dngettext.c: Likewise.
1629         * intl/explodename.c: Likewise.
1630         * intl/finddomain.c: Likewise.
1631         * intl/gettext.c: Likewise.
1632         * intl/l10nflist.c: Likewise.
1633         * intl/loadmsgcat.c: Likewise.
1634         * intl/localealias.c: Likewise.
1635         * intl/ngettext.c: Likewise.
1636         * intl/textdomain.c: Likewise.
1637         * intl/gettext.h: Assume <limits.h> exists.
1639 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
1641         * stdio-common/Makefile (tests): Add scanf11.
1642         * stdio-common/scanf11.c: New file.
1644 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
1646         * version.h (RELEASE): Define as development.
1647         (VERSION): Set to 2.2.90.
1649 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
1651         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
1652         * nis/nss_nis/nis-grp.c: Likewise.
1653         * nis/nss_nisplus/nisplus-grp.c: Likewise.
1655         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
1656         * nis/nss_nis/nis-pwd.c: Likewise.
1657         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
1659         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
1660         * nis/nss_nisplus/nisplus-parser.c: Likewise.
1661         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
1663         * nscd/grpcache.c: Use strtoul instead of atol.
1664         * nscd/pwdcache.c: Likewise.
1665         * nss/getent.c: Likewise.
1667 2001-11-27  Paul Eggert  <eggert@twinsun.com>
1669         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
1670         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
1672 2001-11-19  Bruno Haible  <bruno@clisp.org>
1674         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
1675         90%.
1676         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
1677         improves the quality of the hash function, especially for short
1678         strings.
1680 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
1682         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
1683         are found call conv_error and not input_error [PR libc/2669].
1685         * math/bits/mathcalls.h: Mark ceil and floor as const.
1686         Reported by David Mosberger.
1688 2001-11-21  Jim Meyering  <meyering@lucent.com>
1690         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
1691         Define to be __-prefixed.
1692         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
1694 2001-11-26  Andreas Jaeger  <aj@suse.de>
1696         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
1697         avoid warning.
1699 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
1701         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
1702         initialization.
1704         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
1705         unused variables.  Fix threshold for returning 1.0.
1707         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
1708         argument.
1710         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
1711         remove unused variables.
1713         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
1715         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
1716         include local math header files.
1718 2001-11-22  Andreas Jaeger  <aj@suse.de>
1720         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
1721         avoid warning.
1723 2001-11-21  Andreas Jaeger  <aj@suse.de>
1725         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
1727         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
1728         sys/debugreg.h
1730 2001-11-15  Andreas Jaeger  <aj@suse.de>
1732         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
1733         compilers that support it.
1735         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
1736         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
1737         * stdlib/stdlib.h: Likewise.
1739 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
1741         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
1742         statement with gotos.
1743         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
1745 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
1747         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
1749 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
1751         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
1753 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
1754             H.J. Lu  <hjl@gnu.org>
1756         * Versions.def (libc): Add GCC_3.0.
1757         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
1758         if gcc supports this flag.
1759         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
1760         (gcc3): Allow glibc to be compiled with gcc 3.x.
1761         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
1762         * config.make.in (static-libgcc, unwind-find-fde): Add.
1763         * Makerules (build-shlib-helper, build-module-helper): Use it.
1764         * scripts/versions.awk: Make sure GLIBC_ versions come first.
1765         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
1766         necessary.
1767         (_fini): Call __deregister_frame_info_bases if
1768         __register_frame_info_bases was used to register.
1769         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
1770         for GLIBC_2.0.
1771         (__register_frame_info_bases, __register_frame_info_table_bases,
1772         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
1773         * elf/Makefile (routines): Add unwind-dw2-fde.
1774         (shared-only-routines): Add unwind-dw2-fde.
1775         * sysdeps/alpha/gccframe.h: New file.
1776         * sysdeps/arm/gccframe.h: New file.
1777         * sysdeps/generic/framestate.c: New file.
1778         * sysdeps/generic/dwarf2.h: New file.
1779         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
1780         * sysdeps/generic/unwind-dw2-fde.c: New file.
1781         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
1782         * sysdeps/generic/unwind-dw2-fde.h: New file.
1783         * sysdeps/generic/unwind-dw2.c: New file.
1784         * sysdeps/generic/unwind-pe.h: New file.
1785         * sysdeps/generic/unwind.h: New file.
1786         * sysdeps/hppa/gccframe.h: New file.
1787         * sysdeps/i386/gccframe.h: New file.
1788         * sysdeps/m68k/gccframe.h: New file.
1789         * sysdeps/mips/gccframe.h: New file.
1790         * sysdeps/powerpc/gccframe.h: New file.
1791         * sysdeps/s390/gccframe.h: New file.
1792         * sysdeps/sh/gccframe.h: New file.
1793         * sysdeps/sparc/gccframe.h: New file.
1794         * sysdeps/vax/gccframe.h: New file.
1795         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
1796         Set on all architectures except ia64.
1797         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
1798         for i386.
1799         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
1800         __deregister_frame_info): Move to elf/Versions.
1801         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
1802         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
1803         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1804         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
1805         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
1806         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
1807         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
1808         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
1809         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
1810         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
1811         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
1812         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
1813         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
1814         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
1815         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
1816         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
1817         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
1818         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
1820 2001-11-15  Jeff Law  <law@redhat.com>
1822         * posix/regex.c (uintptr_t): Do not provide a definition if the
1823         system provided one.
1825 2001-11-13  Roland McGrath  <roland@frob.com>
1827         * stdio-common/tmpfile.c: Moved to ...
1828         * sysdeps/generic/tmpfile.c: ... here.
1829         * sysdeps/mach/hurd/tmpfile.c: New file.
1831         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
1832         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
1833         (fopenport): Define as weak alias.
1835         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
1836         * libio/libioP.h: ... to here.
1838 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
1840         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
1841         program header twice.  Construct list with the needed information.
1843 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
1845         * po/ca.po: Update from translation team.
1847         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
1848         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
1849         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
1850         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
1852 2001-11-10  Andreas Jaeger  <aj@suse.de>
1854         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
1855         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1856         Contributed by Stephen L Moshier <moshier@mediaone.net>.
1858 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
1860         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
1861         correctly.
1862         * elf/dl-load.c (is_dst): New function.
1863         (_dl_dst_count): Use is_dst to check for DST variable.
1864         (_dl_dst_substitute): Likewise.
1866 2001-11-09  Roland McGrath  <roland@frob.com>
1868         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
1869         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
1870         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
1871         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
1872         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
1873         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
1874         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
1875         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
1876         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
1877         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
1878         * sysdeps/mach/hurd/powerpc/Dist: New file.
1880         * hurd/privports.c (__get_privileged_ports):
1881         Only contact the proc server if necessary for this call.
1882         Suggested by Neal H Walfield <neal@cs.uml.edu>.
1883         Check error return for mach_port_mod_refs.
1885 2001-11-09  Andreas Schwab  <schwab@suse.de>
1887         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
1889 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
1891         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
1892         object is always the last in the list.
1893         (_dl_map_object_from_fd): Delete code to remove from object list
1894         when DF_1_NOOPEN is seen.  This is done in lose.
1896 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
1898         * elf/dl-object.c (_dl_new_object): Various small optimizations.
1900 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
1902         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
1903         HWCAP_CHECK macro code.
1905         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
1906         Now returns MAP_FAILED on error.
1907         * elf/rtld.c: Adjust caller.
1908         * sysdeps/generic/dl-cache.c: Likewise.
1909         * sysdeps/generic/ldsodefs.h: Adjust description.
1911         * elf/dl-version.c (match_symbol): Optimize error handling for size.
1912         (_dl_check_map_versions): Likewise.
1914 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
1916         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
1917         _dl_signal_error directly, always use lose.  Set fd to -1 after
1918         file is closed.
1919         (lose): Don't call close if fd == -1.
1921 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
1923         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
1924          Also fix typo @code {mbsinit} to @code{mbsinit}.
1926 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
1928         * elf/dl-profile.c: Replace state variable with simple flag named
1929         running.  Remove commented-out code.
1931         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
1932         (_dl_init_paths): Likewise.
1933         (_dl_map_object_from_fd): Likewise.
1934         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
1936 2001-11-06  Roland McGrath  <roland@frob.com>
1938         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
1939         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
1941         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
1942         sysdeps/powerpc/elf/sysdep.h.
1943         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
1945 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
1947         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
1948         speed.
1949         (process_envvars): Some more optimizations.
1950         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
1952         * elf/elf.h: Add dynamic tag definitions for prelinking.
1954         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
1955         Rewrite code to remove environment varables for SUID binaries.
1956         Small optimization in LD_PROFILE handling.
1957         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
1958         changes.
1959         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
1961         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
1963         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
1964         strings.  Change type of second parameter.
1965         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
1966         for last change.
1968         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
1970 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
1972         * manual/string.texi: Fix typos.
1973         * manual/examples/argp-ex2.c: Likewise.
1975 2001-11-05  Roland McGrath  <roland@frob.com>
1977         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
1978         the more-specific unix/sysv/linux/powerpc file and breaks everything.
1979         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
1980         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
1981         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
1982         here, put under [__ELF__].
1984 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
1986         * manual/charset.texi: Extensive editing work.
1987         * manual/nss.texi: Likewise.
1988         Changes by Dennis Grace <dgrace@us.ibm.com>.
1990 2001-11-04  Roland McGrath  <roland@frob.com>
1992         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
1993         parameter to dir_mkfile.
1995 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
1997         * string/bits/string2.h (__strndup): If n is smaller than len, set
1998         len to n + 1.
1999         * string/tester.c (test_strndup): New function.
2000         (main): Call it.
2002 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
2004         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
2006         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
2007         * scripts/cpp: New file.
2009         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
2010         for rtld_search_dirs content.  Minor optimizations.
2012 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
2014         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
2015         avoiding unnecessary duplication.
2017 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
2019         * elf/dl-load.c (_dl_map_object): If library was found using
2020         LD_LIBRARY_PATH, don't try RUNPATH list.
2022 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2024         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
2025         Correct second argument of register_dump call.
2026         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
2027         Likewise.
2029 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
2031         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
2032         modules.
2033         * iconvdata/TESTS: Likewise.
2034         * iconvdata/gconv-modules: Likewise.
2035         * iconvdata/ibm1132.c: New file.
2036         * iconvdata/ibm1132.h: New file.
2037         * iconvdata/ibm1133.c: New file.
2038         * iconvdata/ibm1133.h: New file.
2039         * iconvdata/ibm1162.c: New file.
2040         * iconvdata/ibm1162.h: New file.
2041         * iconvdata/testdata/IBM1132: New file.
2042         * iconvdata/testdata/IBM1132..UTF8: New file.
2043         * iconvdata/testdata/IBM1133: New file.
2044         * iconvdata/testdata/IBM1133..UTF8: New file.
2045         * iconvdata/testdata/IBM1162: New file.
2046         * iconvdata/testdata/IBM1162..UTF8: New file.
2047         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
2049         * string/string.h: Fix typo in comment.
2050         * wcsmbs/wchar.h: Likewise.
2052 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
2054         * manual/getopt.texi (getopt_long, getopt_long_only): Include
2055         const in type of longopts parameter.
2057 2001-10-29  Andreas Jaeger  <aj@suse.de>
2059         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
2061 2001-10-29  Kevin Ryde  <user42@zip.com.au>
2063         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
2064         output, clarify `#' behaviour on 0.
2065         (Floating-Point Conversions): Clarify that %g only uses %e when
2066         the exponent would be greater than 1.
2068 2001-10-28  Roland McGrath  <roland@frob.com>
2070         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
2071         * sysdeps/mach/powerpc/machine-sp.h: New file.
2072         * sysdeps/mach/powerpc/sysdep.h: New file.
2073         * sysdeps/mach/powerpc/thread_state.h: New file.
2075         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
2076         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
2077         expect to need the same thing on every platform.
2079         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
2080         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
2082         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
2083         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
2084         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
2085         Move all these assembly-related definitions to ...
2086         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
2088         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
2089         by Peter Bruin <pjbruin@dds.nl>.
2091         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
2092         packing results for a `poll' call.
2094 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
2096         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
2097         correctly.
2098         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
2099         bracket expression.
2101         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
2102         nrules value.
2103         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
2105 2001-10-24  H.J. Lu  <hjl@gnu.org>
2107         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
2108         Use __BEGIN_DECLS/__END_DECLS around prototypes.
2109         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
2111 2001-10-21  Jim Meyering  <meyering@lucent.com>
2113         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
2114         this code would end up calling gettext even in packages built
2115         with --disable-nls.
2116         * posix/getopt.c (_): Likewise.
2117         * posix/regex.c (_): Likewise.
2119 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
2121         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
2122         lookup not ip6.int.
2123         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
2124         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
2126 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
2128         * misc/sys/cdefs.h (__attribute_used__): Define.
2129         * elf/rtld.c (_dl_start): Add __attribute_used__.
2130         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
2132 2001-10-25  Andreas Schwab  <schwab@suse.de>
2134         * stdlib/a64l.c: Expect least significant digit first.
2135         * stdlib/l64a.c: Produce least significant digit first.
2136         * stdlib/Makefile (tests): Add test-a64l.
2137         * stdlib/test-a64l.c: New file.
2138         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
2140 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
2142         * po/sk.po: Update from translation team.
2144 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
2146         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
2148 2001-10-18  Andreas Schwab  <schwab@suse.de>
2150         * math/libm-test.inc (print_ulps): Print ulp values rounded to
2151         next whole number.
2152         (print_function_ulps): Likewise.
2153         (print_complex_function_ulps): Likewise.
2154         (print_max_error): Likewise.
2155         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
2157 2001-10-16  Andreas Schwab  <schwab@suse.de>
2159         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
2160         implementation.
2162         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
2163         BSD_SETJMP or BSD__SETJMP is defined, resp.
2164         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
2165         a tail call to __sigsetjmp that would require extending the
2166         caller's frame.
2167         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
2168         * sysdeps/m68k/bsd-setjmp.S: Deleted.
2169         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
2170         Reported by Jes Sorensen <jes@trained-monkey.org>.
2172 2001-10-16  Andreas Jaeger  <aj@suse.de>
2174         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
2175         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
2176         close PR libc/2589.
2178 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
2180         * po/ca.po: New file.  Contributed by the translation team.
2182 2001-10-15  Ralf Baechle  <ralf@gnu.org>
2184         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
2185         a varargs prototype.  Remove dependency from kernel header files.
2187         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
2188         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
2190 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
2192         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
2193         to generate hexadecimal identifier.
2194         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
2196 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
2198         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
2200 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
2202         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
2203         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
2204         Contributed by Stephen L Moshier <moshier@mediaone.net>.
2206         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
2207         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2208         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
2209         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
2210         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
2211         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
2213         * timezone/africa: Update from tzdata2001d.
2214         * timezone/asia: Likewise.
2215         * timezone/australasia: Likewise.
2216         * timezone/backward: Likewise.
2217         * timezone/europe: Likewise.
2218         * timezone/leapseconds: Likewise.
2219         * timezone/northamerica: Likewise.
2220         * timezone/southamerica: Likewise.
2221         * timezone/zone.tab: Likewise.
2223 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2225         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
2226         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
2228 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
2230         * elf/elf.h (PT_TLS): New definition.
2232 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
2234         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
2235         bits/errno.h
2237 2001-10-07  Roland McGrath  <roland@frob.com>
2239         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
2241 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
2243         * elf/elf.h: Add more ELFOSABI_* constants.
2245 2001-10-04  Ben Collins  <bcollins@debian.org>
2247         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
2248         decleration of __need_wchar_t.
2250 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
2252         * string/bits/string2.h (__strsep_g): Add prototype.
2253         (__strsep): Use it.
2254         * string/Versions (__strsep): Remove.
2255         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
2257 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
2259         * manua/llio.texi: Clarify file references added by mmap.
2260         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
2262 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
2264         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
2265         Add sc_loadrs and sc_rbs_bas to match current kernel.
2267 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
2269         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
2271         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
2273 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
2275         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
2276         object has been bumped because of relocation dependency, avoid
2277         duplicates in l_scope.
2278         (show_scope): Fix typos.
2279         * elf/Makefile: Add rules to build and run reldep6.
2280         * elf/reldep6.c: New file.
2281         * elf/reldep6mod0.c: New file.
2282         * elf/reldep6mod1.c: New file.
2283         * elf/reldep6mod2.c: New file.
2284         * elf/reldep6mod3.c: New file.
2285         * elf/reldep6mod4.c: New file.
2287 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
2289         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
2290         sparc64_fixup_plt.
2291         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
2292         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
2293         for non-lazy binding. Fix .plt[32768+] handling.
2294         (elf_machine_plt_value): Don't add addend.
2295         (elf_machine_rela): Call sparc64_fixup_plt instead of
2296         elf_machine_fixup_plt.
2297         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
2298         dynamic linker at 0xfffff800XXXXXXXX.
2300         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
2302 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
2304         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
2306 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
2308         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
2309         declare __cmsg_data field if its size would be bigger than 0.
2310         (CMSG_DATA): Adjust accordingly.
2311         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
2312         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
2313         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
2314         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
2315         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2316         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
2317         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2319 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
2321         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
2322         * iconvdata/testdata/IBM1160: New file.
2323         * iconvdata/testdata/IBM1160..UTF8: New file.
2324         * iconvdata/testdata/IBM1161: New file.
2325         * iconvdata/testdata/IBM1161..UTF8: New file.
2326         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
2328 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
2330         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
2331         UL_SETFSIZE computations better.
2333         * rt/Makefile: Remove use of filter for librt again.
2335         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
2336         UL_SETFSIZE computations better.
2338         * string/Versions: Export __strsep for GLIBC_2.2.5.
2339         * string/bits/string2.h: Define all __STRING_INLINE functions if
2340         _FORCE_INLINES is defined.
2341         Use int instead of char of parameter types.
2342         (__strsep): Don't use __strsep_g.  Don't define it.
2343         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
2344         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
2345         __strcpy_small.
2346         (__stpcpy_a_small): Renamed from __stpcpy_small.
2347         (__strcspn_c1): Don't define if _FORCE_INLINES.
2348         (__strspn_c1): Likewise.
2350 2001-09-22  Ben Collins  <bcollins@debian.org>
2352         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
2353         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
2354         * sysdeps/ia64/bits/sigaction.h: Likewise.
2355         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
2357 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
2359         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
2361 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
2363         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
2365 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
2367         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
2369 2001-09-20  H.J. Lu  <hjl@gnu.org>
2371         * include/dlfcn.h (__RTLD_SPROF): New definiton.
2372         * elf/dl-open.c (dl_open_worker): Return immediately after loading
2373         for __RTLD_SPROF.
2374         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
2375         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
2377 2001-09-20  H.J. Lu  <hjl@gnu.org>
2379         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
2380         don't add 1.
2382 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
2384         * nss/getent.c: Accept -s parameter to overwrite rules in
2385         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
2387         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
2388         with as many ".0" as necessary to form a complete address
2389         inet_network understands.
2391         * nss/getent.c: Various cleanups.  Use simpler and fewer function
2392         calls.
2394 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2396         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
2397         _JMPBUF_UNWINDS.
2398         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
2400 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
2402         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
2403         IBM1161.
2404         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
2405         * iconvdata/ibm1160.c: New file.
2406         * iconvdata/ibm1160.h: New file.
2407         * iconvdata/ibm1161.c: New file.
2408         * iconvdata/ibm1161.h: New file.
2409         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
2411 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
2413         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
2414         difference between base address and first PT_LOAD's virtual address,
2415         not the base address.
2417 2001-09-11  Tom Rix  <trix@redhat.com>
2419         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
2420         ifdef for __getopt_clean_environment.
2421         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
2423 2001-09-22  Andreas Jaeger  <aj@suse.de>
2425         * elf/reldep4.c (main): Add proper prototype to fix warning.
2427         * elf/reldep5.c (main): Remove unused variable.
2429         * math/math_private.h: Add prototypes.
2431 2001-09-21  Andreas Jaeger  <aj@suse.de>
2433         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
2434         * sysdeps/x86_64/Dist: New file.
2435         * sysdeps/x86_64/soft-fp/Dist: New file.
2437         * sysdeps/gnu/Dist: Remove eval.c.
2439 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
2441         * malloc/memusage.c (realloc): Don't count already allocated
2442         memory in the sums.
2443         (me): Always use dlsym() to find the real implementations.
2445         * malloc/memusage.sh: Make -n option actually do something.
2447 2001-09-20  Andreas Jaeger  <aj@suse.de>
2449         * elf/elf.h (R_390_NUM): Correct value.
2451         * Versions.def: Add missing versions 2.2.3 for libthread_db and
2452         libpthread.
2454         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
2455         for x86-64, install x86-64 into */lib64.
2457         * shlib-versions: Add x86-64.
2459         * elf/elf.h: Add x86-64 relocations.
2461 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
2463         * po/fr.po: Update from translation team.
2465 2001-09-19  Andreas Jaeger  <aj@suse.de>
2467         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
2468         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
2469         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
2470         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
2471         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
2472         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
2473         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
2474         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
2475         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
2476         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
2477         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
2478         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
2479         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
2480         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
2481         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
2482         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
2483         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
2484         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
2485         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
2486         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
2487         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
2488         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
2489         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
2490         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
2491         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
2492         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
2493         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
2494         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
2495         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
2496         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
2497         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
2498         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
2499         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
2500         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
2501         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
2502         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
2503         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
2504         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
2505         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
2506         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
2507         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
2508         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
2509         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
2510         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
2511         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
2512         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
2513         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
2514         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
2515         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
2516         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
2517         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
2518         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
2519         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
2520         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
2521         * sysdeps/unix/x86_64/sysdep.S: New file.
2522         * sysdeps/unix/x86_64/sysdep.h: New file.
2523         * sysdeps/x86_64/Implies: New file.
2524         * sysdeps/x86_64/Makefile: New file.
2525         * sysdeps/x86_64/Versions: New file.
2526         * sysdeps/x86_64/__longjmp.S: New file.
2527         * sysdeps/x86_64/abort-instr.h: New file.
2528         * sysdeps/x86_64/atomicity.h: New file.
2529         * sysdeps/x86_64/bits/endian.h: New file.
2530         * sysdeps/x86_64/bits/setjmp.h: New file.
2531         * sysdeps/x86_64/bits/string.h: New file.
2532         * sysdeps/x86_64/bp-asm.h: New file.
2533         * sysdeps/x86_64/bsd-_setjmp.S: New file.
2534         * sysdeps/x86_64/bsd-setjmp.S: New file.
2535         * sysdeps/x86_64/dl-machine.h: New file.
2536         * sysdeps/x86_64/elf/initfini.c: New file.
2537         * sysdeps/x86_64/elf/start.S: New file.
2538         * sysdeps/x86_64/ffs.c: New file.
2539         * sysdeps/x86_64/ffsll.c: New file.
2540         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
2541         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
2542         * sysdeps/x86_64/fpu/e_acosl.c: New file.
2543         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
2544         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
2545         * sysdeps/x86_64/fpu/e_expl.c: New file.
2546         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
2547         * sysdeps/x86_64/fpu/e_log10l.S: New file.
2548         * sysdeps/x86_64/fpu/e_log2l.S: New file.
2549         * sysdeps/x86_64/fpu/e_logl.S: New file.
2550         * sysdeps/x86_64/fpu/e_powl.S: New file.
2551         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
2552         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
2553         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
2554         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
2555         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
2556         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
2557         * sysdeps/x86_64/fpu/fegetenv.c: New file.
2558         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
2559         * sysdeps/x86_64/fpu/fegetround.c: New file.
2560         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
2561         * sysdeps/x86_64/fpu/fesetenv.c: New file.
2562         * sysdeps/x86_64/fpu/fesetround.c: New file.
2563         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
2564         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
2565         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
2566         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
2567         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
2568         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
2569         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
2570         * sysdeps/x86_64/fpu/s_atanl.c: New file.
2571         * sysdeps/x86_64/fpu/s_cosl.S: New file.
2572         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
2573         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
2574         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
2575         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
2576         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
2577         * sysdeps/x86_64/fpu/s_logbl.c: New file.
2578         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
2579         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
2580         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
2581         * sysdeps/x86_64/fpu/s_rintl.c: New file.
2582         * sysdeps/x86_64/fpu/s_significandl.c: New file.
2583         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
2584         * sysdeps/x86_64/fpu/s_sinl.S: New file.
2585         * sysdeps/x86_64/fpu/s_tanl.S: New file.
2586         * sysdeps/x86_64/gmp-mparam.h: New file.
2587         * sysdeps/x86_64/hp-timing.c: New file.
2588         * sysdeps/x86_64/hp-timing.h: New file.
2589         * sysdeps/x86_64/htonl.S: New file.
2590         * sysdeps/x86_64/memusage.h: New file.
2591         * sysdeps/x86_64/setjmp.S: New file.
2592         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
2593         * sysdeps/x86_64/stackinfo.h: New file.
2594         * sysdeps/x86_64/sysdep.h: New file.
2595         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
2597         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
2598         L Moshier.
2600 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2602         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
2603         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
2605 2001-09-18  Andreas Schwab  <schwab@suse.de>
2607         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
2608         list, now that l_scope is a pointer.
2610         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
2611         scope list.
2613 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2615         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
2616         (elf_machine_rela_relative): Add a missing declaration.
2618 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
2620         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
2621         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
2622         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
2623         ldd-rewrite scripts.
2625 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2627         * elf/ldd.bash.in: Update copyright message.
2629 2001-09-17  H.J. Lu  <hjl@gnu.org>
2631         * hurd/hurdmalloc.c (bcopy): Removed.
2632         (realloc): Replace bcopy with memcpy.
2633         * hurd/path-lookup.c (file_name_path_scan): Likewise.
2634         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
2635         * sunrpc/rpcinfo.c (pmapdump): Likewise.
2637         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
2638         (gethostbyaddr): Likewise.
2639         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
2641 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2643         * sysdeps/gnu/eval.c: Removed.
2645 2001-09-18  Andreas Jaeger  <aj@suse.de>
2647         * sysdeps/i386/fpu/s_logbl.S: Move to ...
2648         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
2650         * sysdeps/i386/fpu/s_rintl.S: Move to ...
2651         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
2653         * sysdeps/i386/fpu/s_significandl.S: Move to ...
2654         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
2656 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
2658         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
2659         nrules value.
2661 2001-09-14  H.J. Lu  <hjl@gnu.org>
2663         * sysdeps/mips/fpu/libm-test-ulps: Updated.
2665 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
2667         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
2668         Patch by Florian La Roche <laroche@redhat.com>.
2670         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
2672         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
2673         ETHER_CRC_LEN.
2675 2001-09-14  Andreas Schwab  <schwab@suse.de>
2677         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
2678         Sumner <bls@sgi.com>.
2679         * posix/execlp.c: Likewise.
2681 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
2683         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
2684         is already found earlier in the search scope.
2686 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
2688         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
2689         filter.
2691 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
2693         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
2695 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
2697         * config.h.in: Enforce optimization to be used.
2698         * Makeconfig (preprocess-versions): Define ASSEMBLER.
2699         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
2700         * posix/Makefile (annexc-CFLAGS): Define to -O.
2701         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
2703 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
2705         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
2706         Patch by Stephan Kulow.
2708 2001-09-08  Ben Collins  <bcollins@debian.org>
2710         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
2711         usage of RESOLVE() (r_type, not reloc->r_type).
2713 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
2715         * elf/dl-object.c: Avoid allocating extra memory block for name.
2716         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
2717         allocated separately.
2718         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2720 2001-09-08  H.J. Lu  <hjl@gnu.org>
2722         * po/zh_TW.po: Fix a typo.
2724 2001-09-07  Tom Rix  <trix@redhat.com>
2726         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
2728 2001-08-26  Tom Rix  <trix@redhat.com>
2730         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
2731         command line options.
2732         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
2733         * sysdeps/unix/sysv/aix/start.c: Removed.
2734         * sysdeps/unix/sysv/aix/start-libc.c: New file.
2735         * sysdeps/unix/sysv/aix/init-first.c: New file.
2736         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
2738 2001-09-08  Ben Collins  <bcollins@debian.org>
2740         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
2741         * sysdeps/generic/dl-machine.h: Likewise.
2742         * sysdeps/hppa/dl-fptr.c: Likewise.
2743         * sysdeps/ia64/dl-fptr.c: Likewise.
2744         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
2745         * sysdeps/mips/dl-machine.h: Likewise.
2746         * sysdeps/mips/mips64/dl-machine.h: Likewise.
2747         * sysdeps/powerpc/dl-machine.c: Likewise.
2749 2001-09-07  Ben Collins  <bcollins@debian.org>
2751         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
2753         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
2755 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
2757         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
2758         dependencies if necessary.
2760         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
2761         loaded directly) determine length if l_initfini list by iterating
2762         over its elements.  Minor optimizations.
2763         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
2764         for dependency objects.
2765         If object was already loaded check whether any of the dependencies
2766         is already on the relocation dependency list.  If yes, remove the
2767         latter.  Minor optimizations.
2768         * elf/dl-lookup.c (add_dependency): Add check for self reference of
2769         maps here.  Search l_initfini list only if the object was loaded
2770         directly and not only as a dependency.
2771         (_dl_lookup_symbol): Add relocation dependency also if object
2772         is not in global scope.  Remove test for self-reference here.
2773         (_dl_lookup_versioned_symbol): Likewise.
2774         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
2775         element of first name record.
2776         * elf/loadtest.c: Add some more test to recognize early if an object
2777         wasn't unloaded.
2778         * elf/Makefile: Add rules to build and run reldep5.
2779         * elf/reldep5.c: New file.
2780         * elf/reldepmod5.c: New file.
2781         * elf/reldepmod6.c: New file.
2783         * elf/reldep2.c: Fix typo.
2785 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
2787         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
2788         elements.  Change l_scope to be a pointer only.
2789         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
2790         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
2791         here add searchlist of newly open file to the dependency's scope.
2792         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
2793         only searchlist from its scope.  Free own scope array if necessary.
2794         * elf/Makefile (tests): Add dblload and dblunload now.
2796 2001-09-06  Andreas Jaeger  <aj@suse.de>
2798         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
2799         Stephen L Moshier.
2801 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
2803         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
2804         they both fail.
2805         * elf/dblload.c: New file.
2806         * elf/dblloadmod1.c: New file.
2807         * elf/dblloadmod2.c: New file.
2808         * elf/dblloadmod3.c: New file.
2809         * elf/dblunload.c: New file.
2811 2001-09-04  Richard Henderson  <rth@redhat.com>
2813         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
2814         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
2816 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
2818         Correct very misleading message for error in failed runtime relocation.
2819         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
2820         place of the error.
2821         (_dl_signal_cerror): Likewise.
2822         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
2823         * elf/dl-close.c: Likewise.
2824         * elf/dl-deps.c: Likewise.
2825         * elf/dl-load.c: Likewise.
2826         * elf/dl-lookup.c: Likewise.
2827         * elf/dl-open.c: Likewise.
2828         * elf/dl-reloc.c: Likewise.
2829         * elf/dl-sym.c: Likewise.
2830         * elf/dl-version.c: Likewise.
2831         * sysdeps/generic/dl-sysdep.c: Likewise.
2833 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
2835         * iconv/strtab.c (strtabinit): Initialize null Strent.
2836         (newstring): Move len == 0 handling...
2837         (strtabadd): ...here.
2838         If len == 1, return null Strent.
2839         When inserting a suffix of an existing string, check if
2840         it is not equal to some suffix already recorded.
2841         Copy left and right members over if adding longer string.
2843 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
2845         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
2847         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
2848         (__syscall_gethostname): Add prototype.
2850 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
2852         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
2854 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
2856         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
2858 2001-08-27  Roland McGrath  <roland@frob.com>
2860         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
2861         short, copy that much into NAME anyway before returning error.
2863 2001-09-01  Richard Henderson  <rth@redhat.com>
2865         * sysdeps/alpha/elf/Dist: Remove file.
2866         * sysdeps/alpha/elf/Makefile: Remove file.
2867         * sysdeps/alpha/elf/crtbegin.S: Remove file.
2868         * sysdeps/alpha/elf/crtend.S: Remove file.
2869         * sysdeps/alpha/elf/initfini.c: New file.
2871 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
2873         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
2874         * iconv/tst-iconv3.c: Likewise.
2876 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
2878         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
2880 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
2882         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
2883         export it.
2884         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
2885         * iconv/iconv_prog.c (insert_cache): New function.
2886         (print_known_names): If cache is used call insert_cache to use the
2887         information from the cache [PR libc/2509].
2889 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
2891         * time/strptime.c (strptime_internal): Recognize 'l' format and
2892         handle it like 'I' for symmetry with strftime.
2894 2001-08-31  Richard Henderson  <rth@redhat.com>
2896         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
2897         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
2898         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
2899         (print_statistics): Make scalar unsigned long long.
2900         * sysdeps/alpha/hp-timing.h: New file.
2902 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
2904         * stdio-common/perror.c (perror): Save errno early, pass it
2905         down to perror_internal.
2906         (perror_internal): Add errnum argument.
2908 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
2910         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
2911         Don't add old memory content for R_ALPHA_REFQUAD.
2913 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
2915         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
2916         memory correctly.
2918         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
2919         instead of open, __close instead of close, __getpagesize instead
2920         of getpagesize.
2922         * string/argz-stringify.c (__argz_stringify): Use __strnlen
2923         instead of strnlen.
2924         * include/string.h (strndupa): Redefine here to use __strnlen
2925         instead of strnlen.
2926         * string/strndup.c (__strndup): Use __strnlen not strnlen.
2928         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
2929         connected).
2931 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
2933         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
2934         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
2935         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
2936         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
2937         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
2938         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
2939         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
2941 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
2943         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
2945 2001-08-30  Andreas Jaeger  <aj@suse.de>
2947         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
2948         contributed Stephen L Moshier.
2950 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
2952         * sunrpc/etc.rpc (sgi_fam): Add.
2954 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
2956         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
2958 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
2960         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
2961         first is from a previous call.
2962         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
2964 2001-08-29  Andreas Schwab  <schwab@suse.de>
2966         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
2968 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2970         * config.make.in (INSTALL_SCRIPT): Define.
2971         * Makeconfig (INSTALL_SCRIPT): Define.
2972         * Makerules (do-install-script): New macro to install scripts using
2973         INSTALL_SCRIPT.
2974         (install-bin-script): New rule to install scripts with
2975         do-install-script.
2976         (install-bin-script-nosubdir): New rule.
2977         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
2978         (distinfo-vars): Add $(install-bin-script).
2979         * Rules (others): Likewise.
2980         * Makefile (glibcbug): Install with install-bin-script.
2981         * debug/Makefile (xtrace): Likewise.
2982         (catchsegv): Likewise.
2983         * elf/Makefile (ldd): Likewise.
2984         * malloc/Makefile (mtrace): Likewise.
2985         * timezone/Makefile (tzselect): Likewise.
2987 2001-08-29  H.J. Lu  <hjl@gnu.org>
2989         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
2990         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
2991         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
2993 2001-08-29  Andreas Schwab  <schwab@suse.de>
2995         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
2997 2001-08-28  H.J. Lu  <hjl@gnu.org>
2999         * Makeconfig (combreloc-LDFLAGS): New variable.
3000         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
3001         * config.make.in (have-z-combreloc): New variable.
3002         * configure.in: Substitute libc_cv_z_combreloc.
3004 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
3006         * po/sv.po: Update from translation team.
3007         * po/fr.po: Likewise.
3008         * po/da.po: Likewise.
3010 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3012         * Makerules: Fix a typo: MD% -> MD5.
3014 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
3016         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
3017         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
3019 2001-08-28  Andreas Jaeger  <aj@suse.de>
3021         * manual/libc-texinfo.sh: Add entry about free manuals.
3023         * manual/contrib.texi (Contributors): Fix cross reference.
3025         * manual/libc.texinfo (Copying): Include freemanuals.
3027         * manual/Makefile (appendices): Add freemanuals.
3029         * manual/freemanuals.texi: New file.
3030         Patch by Brian Youmans <3diff@gnu.org>.
3032         * manual/libm-err-tab.pl: Pretty print more platforms, print a
3033         smaller table.
3035         * manual/math.texi (Errors in Math Functions): Fix grammar, start
3036         table on separate page.
3037         Patch by Brian Youmans <3diff@gnu.org>.
3039 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
3041         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
3042         the connection went down after we first used it try to connect
3043         again and resend the message before printing to the console.
3044         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
3046 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
3048         * string/tst-strlen.c (main): Test strnlen (, -1) too.
3049         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
3050         bit set.
3052 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
3054         * iconv/strtab.c (searchstring): Use correct length for comparison.
3055         (strtabadd): Account total size correct if new string has old string as
3056         substring.
3058 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
3060         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
3062 2001-08-27  Andreas Jaeger  <aj@suse.de>
3064         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
3066         * math/libm-test.inc (j0_test): Add extra tests.
3067         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
3068         not x, in Hankel approximation.
3069         Patches by Stephen L Moshier.
3071 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
3073         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
3074         link_map.
3076         * configure.in: Fix test for .rela.dyn section.
3078         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
3080 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
3082         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
3083         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
3084         Pass type_class to _dl_lookup_*.
3085         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
3086         Pass around just type_class instead of noexec, noplt pair.
3087         (_dl_lookup_versioned_symbol): Likewise.
3088         (_dl_lookup_symbol_skip): Pass around just type_class instead of
3089         noexec, noplt pair.
3090         (_dl_lookup_versioned_symbol_skip): Likewise.
3091         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
3092         * elf/do-lookup.h (do_lookup): Likewise.
3093         * include/link.h (struct link_map): Replace noexec and noplt fields
3094         in l_lookup_cache with type_class field.
3095         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
3096         ELF_RTYPE_CLASS_COPY): Define.
3097         Adjust prototypes for _dl_lookup_symbol and
3098         _dl_lookup_versioned_symbol.
3099         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
3100         elf_machine_lookup_noexec_p): Remove.
3101         (elf_machine_type_class): Define.
3102         * sysdeps/arm/dl-machine.h: Likewise.
3103         * sysdeps/hppa/dl-machine.h: Likewise.
3104         * sysdeps/cris/dl-machine.h: Likewise.
3105         * sysdeps/i386/dl-machine.h: Likewise.
3106         * sysdeps/ia64/dl-machine.h: Likewise.
3107         * sysdeps/m68k/dl-machine.h: Likewise.
3108         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3109         * sysdeps/mips/dl-machine.h: Likewise.
3110         * sysdeps/powerpc/dl-machine.h: Likewise.
3111         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3112         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3113         * sysdeps/sh/dl-machine.h: Likewise.
3114         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3115         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3117 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
3119         * manual/message.texi (Advanced gettext functions): Change
3120         description of plural forms for Slovak.
3121         Reported by Marcel Telka <marcel@telka.sk>.
3123         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
3124         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
3126 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
3128         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
3129         typo.  Patch by Florian La Roche <laroche@redhat.com>.
3131 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
3133         * include/link.h (struct link_map): Add l_lookup_cache element.
3134         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
3135         (RESOLVE_MAP): Likewise.
3136         (_dl_relocate_object): Remove cache initialization.
3137         * elf/dl-lookup.c: Rip out cache handling code.
3138         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
3139         declarations.
3141         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
3142         remove some __builtin_expect.
3143         (_dl_lookup_versioned_symbol): Likewise.
3145         * config.h.in: Add HAVE_Z_COMBRELOC.
3146         * configure.in: Add test for -z combreloc.
3148         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
3149         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
3150         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
3151         case to almost no code.
3153 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
3155         * po/tr.po: Update from translation team.
3157 2001-08-24  Andreas Jaeger  <aj@suse.de>
3159         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
3160         make clean works.
3162 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3164         * elf/rtld.c (print_statistics): Printf % after percent values.
3165         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
3167         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
3168         don't have to compute the hash value and initialize current_value.
3169         Move reference_name variable to where it is needed.
3170         (_dl_lookup_versioned_symbol): Likewise.
3172 2001-08-24  Roland McGrath  <roland@frob.com>
3174         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
3175         Just test that strerror returns non-null for a few errno codes.
3177 2001-08-23  Roland McGrath  <roland@frob.com>
3179         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
3180         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
3182         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
3184         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
3185         __mach_reply_port.
3187 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3189         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
3190         returns NULL.
3192         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
3193         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
3194         doesn't do it.
3195         * elf/rtld.c: Include <sys/param.h>.
3196         * elf/dl-reloc.c: Likewise.
3198 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3200         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
3201         empty to prevent junk from being generated.
3202         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
3204 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
3206         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
3207         records.  Rename endrel to relative, initialize it to r, and use it
3208         in elf_machine_rel_relative calls.  Point r after relative relocs.
3210 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3212         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
3213         of R_386_NONE.
3215 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
3217         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
3218         necessary.  Undefine newly defined macros at the end.
3219         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
3220         Rename from elf_machine_rel_relative.
3221         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
3222         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
3223         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
3224         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
3225         Likewise.
3226         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
3227         Likewise.
3228         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
3229         Fix argument types.
3230         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
3231         Fix argument types.
3232         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
3233         Likewise.  Fix argument types.
3234         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
3235         Likewise.  Fix argument types.
3236         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
3237         Fix argument types.
3238         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
3239         ElfW(Rel) in argument.
3240         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
3241         function.
3243 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
3245         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
3247 2001-08-24  Andreas Jaeger  <aj@suse.de>
3249         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
3250         Stephen L Moshier <moshier@mediaone.net>.
3252 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3254         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
3255         first if RELCOUNT is set.
3257         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
3258         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
3259         elf_machine_rel_relative.
3260         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
3261         Minor optimizations.
3262         * sysdeps/arm/dl-machine.h: Likewise.
3263         * sysdeps/cris/dl-machine.h: Likewise.
3264         * sysdeps/hppa/dl-machine.h: Likewise.
3265         * sysdeps/i386/dl-machine.h: Likewise.
3266         * sysdeps/ia64/dl-machine.h: Likewise.
3267         * sysdeps/m68k/dl-machine.h: Likewise.
3268         * sysdeps/mips/dl-machine.h: Likewise.
3269         * sysdeps/powerpc/dl-machine.h: Likewise.
3270         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3271         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3272         * sysdeps/sh/dl-machine.h: Likewise.
3273         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3274         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3276 2001-08-23  Roland McGrath  <roland@frob.com>
3278         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
3280         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
3281         sysdeps/mach version.  Implement counting ("recursive") mutexes
3282         on top of cthreads mutexes.
3283         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
3285         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
3286         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
3287         (__libc_cleanup_region_start, __libc_cleanup_region_end,
3288         __libc_clean_end): Define these to call the cleanup function after
3289         normal exit when they're supposed to.
3291         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
3292         Take new first arg DOIT, a boolean saying whether to really install
3293         any cleanup handler.
3294         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
3295         (__libc_cleanup_end): Likewise.
3296         * sysdeps/generic/bits/libc-lock.h: Same changes.
3297         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
3298         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
3299         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
3300         Likewise.
3301         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
3302         * sysdeps/generic/bits/stdio-lock.h
3303         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
3305 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3307         * elf/ldconfig.c (search_dir): Remove stale symlinks.
3309 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3311         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
3312         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
3313         lookups in cache.
3314         (_dl_lookup_versioned_symbol): Likewise.
3315         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
3316         relocation lookup.
3317         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
3318         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
3319         (lookup_cache, lookup_cache_versioned): Add declarations.
3321 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
3323         * stdlib/tst-random.c (main): Swap parameters in fail call.
3324         Patch by Pete Bevin <pete@petebevin.com>.
3326 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3328         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
3330 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
3332         * malloc/obstack.c: Indent preprocessor directives.
3333         Patch by Jim Meyering <meyering@ascend.com>.
3335         * po/ja.po: Update from translation team.
3337 2001-08-23  Roland McGrath  <roland@frob.com>
3339         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
3341         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
3342         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
3344 2001-08-22  Roland McGrath  <roland@frob.com>
3346         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
3347         __libc_lock_define_recursive.
3348         * elf/dl-open.c: Don't declare it here any more.
3349         * elf/dl-close.c: Likewise.
3350         * elf/dl-lookup.c: Likewise.
3351         * elf/dl-iteratephdr.c: Likewise.
3352         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
3353         __libc_lock_unlock_recursive.
3354         * elf/dl-close.c (_dl_close): Likewise
3355         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
3356         * elf/dl-open.c (_dl_open): Likewise
3358         * sysdeps/generic/bits/libc-lock.h
3359         (__libc_lock_define_recursive): New macro.
3360         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
3361         (_IO_lock_lock): Use __libc_lock_lock_recursive.
3362         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
3364         * conform/conformtest.pl (checknamespace): Sort the output list.
3366         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
3367         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
3368         definitions conditional on [__USE_XOPEN].
3370         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
3371         these unconditionally, not only use [__USE_BSD], so as to match
3372         the sysdeps/unix/sysv/linux files.
3374 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3376         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
3377         avoid warnings.
3379         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
3380         DL_LOOKUP_ADDRESS.
3382 2001-08-22  Roland McGrath  <roland@frob.com>
3384         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
3385         conditionalization of sa_handler/sa_sigaction member types to
3386         match the sysdeps/unix/sysv/linux file.
3388 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3390         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
3391         symbol sizes a bit better.
3393         * sysdeps/ia64/strncpy.S: Complete rewrite.
3394         Contributed by Jakub Jelinek <jakub@redhat.com>.
3396         * string/stratcliff.c (main): Add strncpy test.
3398 2001-08-22  Roland McGrath  <roland@frob.com>
3400         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
3401         and don't declare unsetenv or _environ directly.
3402         (unsetenv): Return int, not void.  Use __environ instead of _environ.
3404 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
3406         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
3407         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
3408         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
3409         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
3410         test for cmsg struct size.
3412 2001-04-23  Paul Eggert  <eggert@twinsun.com>
3414         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
3415         Rename __argc to ___argc in prototypes to avoid compatibility
3416         problems with systems that reserve the identifier "__argc".
3417         Similarly for __argv.
3419 2001-08-21  Roland McGrath  <roland@frob.com>
3421         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
3423         * mach/Makefile (tests): Removed.
3424         * mach/hello.c: File removed.
3426 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3428         * po/sv.po: Update from translation team.
3430         * stdio-common/vfscanf.c: Fix handling of %l[].
3431         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
3433         * libio/Makefile (tests): Add tst-sscanf.
3434         * libio/tst-sscanf.c: New file.
3436         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
3437         * malloc/mtrace.c (tr_where): dli_sname always points to a
3438         non-empty string if != NULL.
3439         Reported by Tim Janik <timj@gtk.org>.
3441 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
3443         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
3444         buf.  Free resources on failure.
3445         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
3446         (makefd_xprt): Likewise.
3447         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
3448         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
3449         * sunrpc/auth_unix.c (authunix_create): Likewise.
3451 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
3453         * string/strnlen.c: Remove.
3454         * sysdeps/generic/strnlen.c: New file.
3455         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
3457 2001-08-21  Roland McGrath  <roland@frob.com>
3459         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
3460         as a macro, not an extern inline function.
3462         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
3463         * Versions.def (libc): Add GLIBC_2.2.5 set.
3464         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
3465         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
3467 2001-08-20  Roland McGrath  <roland@frob.com>
3469         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
3470         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
3472 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
3474         * string/bits/string2.h: Remove strnlen optimization here.
3475         * sysdeps/i386/i486/bits/string.h: Add it here.
3477 2001-08-21  Wolfram Gloger  <wg@malloc.de>
3479         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
3481 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
3483         * po/gl.po: Update from translation team.
3485 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3487         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
3488         * misc/err.c (convert_and_print): Likewise.
3490         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
3491         function calls.
3493 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3495         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
3496         change of the gregset_t type.
3497         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
3499 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
3501         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
3503 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3505         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
3507         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
3509 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
3511         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
3512         before calling the cthreads initialization code.
3514 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3516         * argp/argp-help.c: Fix two problems introduced in last change.
3518         * include/dirent.h: Include <dirstream.h> first.
3520 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
3522         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
3524         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
3525         * sunrpc/xdr_rec.c: Likewise.
3526         * sunrpc/xdr_mem.c: Likewise.
3527         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
3528         * sunrpc/rpc_cmsg.c: Likewise.
3529         * sunrpc/getrpcport.c (getrpcport): Likewise.
3530         * sunrpc/clnt_simp.c (callrpc): Likewise.
3531         * sunrpc/clnt_gen.c (clnt_create): Likewise.
3532         * string/envz.c: Likewise.
3534         * po/ko.po: Update from translation team.
3536         * argp/argp-help.c: Handle wide oriented stderr stream.
3538 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
3540         * sysdeps/generic/strtol.c: Little optimizations.  Add some
3541         __builtin_expect.
3543         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
3545         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
3546         * wcsmbs/wcwidth.c (wcwdith): Likewise.
3547         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
3549         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
3551         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
3553         * time/time.h (struct timespec): Use __time_t for tv_sec element.
3555         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
3556         wchar_t for function declarations and defintions.
3558         * misc/sys/select.h: Define __need_time_t before including <time.h>.
3559         Define suseconds_t if it hasn't happened yet.
3561         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
3563         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
3565         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
3566         <stddef.h>.
3568         * conform/data/stddef.h-data: Remove wint_t.
3570         * conform/conformtest.pl: Change namespace test to take #undef
3571         lines into account.
3573         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
3575         * conform/data/sys/socket.h-data: Add sockatmark.
3577 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3579         * io/fts.c: Update from recent BSD source.
3581 2001-08-17  Roland McGrath  <roland@frob.com>
3583         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
3584         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
3585         Likewise.
3587 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3589         * locale/duplocale.c (__duplocale): Also initialize the special
3590         __ctype_* elements.
3592         * conform/data/netdb.h-data: Adjust gai_strerror return type.
3594 2001-08-17  Andreas Jaeger  <aj@suse.de>
3596         * misc/getpass.c: Include wchar.h for prototypes.
3597         * malloc/obstack.c: Likewise.
3599 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3601         * sunrpc/svc_simple.c (universal): Use __write instead of write.
3603         * wcsmbs/wcscoll.c: Also define __wcscoll.
3604         * include/wchar.h: Declare __wcscoll.
3606         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
3607         * libio/vwprintf.c: Likewise.
3608         * libio/wprintf.c: Likewise.
3610         * iconv/gconv_cache.c: Use __munmap instead of munmap.
3612 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
3614         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
3615         instead of mbrtowc.
3616         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
3617         wcslen, and __wcscoll instead of wcscoll.
3619         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
3621         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
3622         __getuid instead of getuid.
3624         * stdio-common/perror.c (perror): Use __close instead of close.
3625         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
3626         * libio/freopen.c (freopen): Likewise.
3627         * libio/freopen64.c (freopen64): Likewise.
3629         * libio/tst-ungetwc2.c (main): Define str const.
3631         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
3632         * libio/fwprintf.c: Also define __fwprintf.
3633         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
3634         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
3635         * assert/assert-perr.c: Likewise.
3636         * assert/assert.c: Likewise.
3637         * gmon/gmon.c: Likewise.
3638         * inet/rcmd.c: Likewise.
3639         * malloc/obstack.c: Likewise.
3640         * misc/err.c: Likewise.
3641         * misc/error.c: Likewise.
3642         * misc/getpass.c: Likewise.
3643         * posix/getopt.c: Likewise.
3644         * resolv/res_hconf.c: Likewise.
3645         * stdio-common/perror.c: Likewise.
3646         * stdio-common/psignal.c: Likewise.
3647         * stdlib/fmtmsg.c: Likewise.
3648         * sunrpc/auth_unix.c: Likewise.
3649         * sunrpc/clnt_perr.c: Likewise.
3650         * sunrpc/clnt_tcp.c: Likewise.
3651         * sunrpc/clnt_udp.c: Likewise.
3652         * sunrpc/clnt_unix.c: Likewise.
3653         * sunrpc/svc_simple.c: Likewise.
3654         * sunrpc/svc_tcp.c: Likewise.
3655         * sunrpc/svc_udp.c: Likewise.
3656         * sunrpc/svc_unix.c: Likewise.
3657         * sunrpc/xdr.c: Likewise.
3658         * sunrpc/xdr_array.c: Likewise.
3659         * sunrpc/xdr_rec.c: Likewise.
3660         * sunrpc/xdr_ref.c: Likewise.
3661         * sysdeps/generic/wordexp.c: Likewise.
3663         * po/it.po: Update from translation team.
3665         * misc/err.c: Handle wide oriented stderr stream.
3667 2001-08-14  Tom Rix  <trix@redhat.com>
3669         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
3670         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
3672 2001-08-13  Tom Rix  <trix@redhat.com>
3674         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
3675         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
3676         and __intptr_t.
3678 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3680         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
3681         Store the access registers to the ucontext structure.
3682         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
3683         Likewise.
3685         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
3686         Load the access registers from the ucontext structure.
3687         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
3688         Likewise.
3690         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
3691         offsets to the new ucontext layout.
3692         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
3694         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
3695         of the ucontext structure.
3696         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
3698 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
3700         * misc/error.c (error): Handle wide oriented stderr stream correctly.
3701         (error_at_line): Likewise.
3703         * stdio-common/perror.c (perror): Implement according to standard.
3704         The stream orientation must not be changed if the stream was not
3705         oriented before the call.
3706         * stdio-common/Makefile (tests): Add tst-perror.
3707         * stdio-common/tst-perror.c: New file.
3710 See ChangeLog.12 for earlier changes.