Update.
[glibc.git] / ChangeLog
bloba842ca72f960b2fe8baa7a1f4344cf1dccc057ad
1 2002-02-10  Ulrich Drepper  <drepper@redhat.com>
3         * po/tr.po: Update from translation team.
5 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
7         * elf/Makefile (tests): Add tst-tls1.
8         * elf/tst-tls1.c: New file.
10         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
11         alignment of TCB for now.
13         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
14         initialization image for the application itself.
16         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
17         loop to initialize TLS block.
19 2002-02-08  Richard Henderson  <rth@twiddle.net>
21         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
22         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
24         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
26 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
28         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
30 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
32         * po/ca.po: Update from translation team.
33         * po/sk.po: Likewise.
35         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
36         (dl_main): Move dtv/static TLS handling before relocation.
37         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
38         TLS_INIT_TP to allocate and install the dtv/static TLS block.
39         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
40         so far uses TLS initialize GL(dl_tls_static_size) and
41         GL(dl_tls_static_align) to account for the TCB.
42         (_dl_allocate_tls): New function.
43         * sysdeps/generic/ldsodefs.h (rtld_global): Add
44         _dl_initial_dtv_malloced.
46         * configure.in: Test for __builtin_memset more realistically.
48         * csu/version.c (banner): If TLS support is available say so.
50 2002-02-04  H.J. Lu  <hjl@gnu.org>
52         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
53         __attribute_used__.
54         (__dl_runtime_resolve): Likewise.
56         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
57         declaration.
59 2001-11-15  H.J. Lu  <hjl@gnu.org>
61         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
62         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
64         * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
66 2002-02-07  H.J. Lu  <hjl@gnu.org>
68         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
69         ".set noreorder".
70         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
71         Likewise.
73 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
75         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
77         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
78         ___tls_get_addr_internal.
79         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
81         * po/ko.po: Update from translation team.
83 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
85         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
86         attribute, change __pad{1,2} type to unsigned int.
87         (struct stat64): Remove packed attribute.
89 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
91         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
93 2002-02-07  Andreas Schwab  <schwab@suse.de>
95         * configure.in: Fix check for -zcombreloc.
97 2002-02-06  H.J. Lu  <hjl@gnu.org>
99         * config.h.in (HAVE_BUILTIN_MEMSET): New.
100         * configure.in: Check if __builtin_memset really works.
101         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
102         __GNUC_PREREQ (2, 96) before using __builtin_memset.
104 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
106         * io/bug-ftw3.c (main): Don't try the test if root.
108 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
110         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
111         constraints.
112         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
113         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
114         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
115         Likewise.
116         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
117         a weak alias for __clone.
118         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
119         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
120         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
121         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
122         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
123         a weak alias for __mmap64.
125 2002-02-05  H.J. Lu  <hjl@gnu.org>
127         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
128         (atomic_add): Likewise.
129         (compare_and_swap): Likewise.
130         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
132 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
134         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
136         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
137         alignment of the TCB and store total size and alignment of static
138         TLS block in _dl_tls_static_size and _dl_tls_static_align.
139         tls_index is a typedef.
140         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
141         _dl_tls_static_align.
142         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
143         * elf/dl-support.c: Define _dl_tls_static_size and
144         _dl_tls_static_align.
146 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
148         * configure.in: Add --without-tls option.
149         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
150         --without-tls is given.
152         * sysdeps/generic/dl-tls.c: Include <tls.h>.
154         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
156 2002-02-06  Roland McGrath  <roland@frob.com>
158         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
159         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
161         * scripts/versions.awk: Improve error message for missing version.
162         Each version inherits from the last one only if they have the same
163         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
164         but not GLIBC_x and FOO_y.
166         * scripts/firstversions.awk: Handle libraries that don't have each
167         particular version named in the third column of shlib-versions.
169         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
171 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
173         * Versions.def [ld]: Add GLIBC_2.3.
174         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
175         * elf/Makefile (dl-routines): Add dl-tls.
176         (distribute): Add dl-tls.h.
177         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
178         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
179         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
180         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
181         along with the other info in the link map.  Change queueing of init
182         images for double linked list.  Use _dl_next_tls_modid to compute
183         l_tls_modid.
184         * elf/rtld.c (_dl_start_final): Store alignment requirement
185         along with the other info in rtld map and executable map.
186         (dl_main): Add ld.so to the init image list if necessary.  Compute
187         final module ID with _dl_next_tls_modid.
188         * include/link.h (struct link_map): Add l_tls_previmage and
189         l_tls_align.
190         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
191         * sysdeps/i386/elf/Versions: New file.
192         * sysdeps/generic/dl-tls.c: New file.
193         * sysdeps/generic/dl-tls.h: New file.
194         * sysdeps/i386/dl-tls.h: New file.
196 2002-02-06  Roland McGrath  <roland@frob.com>
198         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
199         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
201 2002-01-05  Roland McGrath  <roland@frob.com>
203         * sysdeps/mach/configure.in: New file.
204         * sysdeps/mach/configure: New generated file.
206         * mach/Makefile (user-interfaces): Remove default_pager_helper.
207         It has never been used by anything.
209 2002-02-06  H.J. Lu  <hjl@gnu.org>
211         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
212         is included.
214 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
216         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
217         attribute((packed)) to counter stupid people misusing gcc options.
218         (struct stat64): Likewise.
220 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
222         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
223         the variables which are used as booleans.
225 2002-02-06  Andreas Jaeger  <aj@suse.de>
227         * include/libc-symbols.h (INTUSE): Renamed from INT.
228         * elf/dl-deps.c: Change users.
229         * sysdeps/generic/dl-sysdep.c: Likewise.
230         * sysdeps/generic/dl-cache.c: Likewise.
231         * elf/dl-reloc.c: Likewise.
232         * elf/rtld.c: Likewise.
233         * elf/dl-version.c: Likewise.
234         * elf/dl-load.c: Likewise.
235         * elf/dl-dst.h: Likewise.
236         * elf/dl-init.c: Likewise.
237         * elf/dl-error.c: Likewise.
238         * elf/dl-fini.c: Likewise.
239         * elf/dl-runtime.c: Likewise.
240         * elf/do-lookup.h: Likewise.
242         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
243         definition.
244         * stdio-common/_itowa.h: Likewise.
246 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
248         * elf/dl-minimal.c: Define _itoa_lower_digits.
250         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
251         DT_FLAGS set.
253         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
254         loading modules with the DF_STATIC_TLS flag set.
255         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
256         element.
257         * include/link.h (struct link_map): Add l_flags field.
258         * elf/elf.h (DF_STATIC_TLS): New definition.
260         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
261         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
263         * elf/rtld.c (process_dl_debug): Correct printing help message.
264         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
265         for %s.
267         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
268         definition and pass &errno in use of this variable.
269         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
271 2002-02-04  Andreas Schwab  <schwab@suse.de>
273         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
274         * locale/programs/charmap-dir.c: Wrap calls that output messages
275         with WITH_CUR_LOCALE.  Include "localedef.h" first.
276         * locale/programs/charmap.c: Likewise.
277         * locale/programs/ld-address.c: Likewise.
278         * locale/programs/ld-collate.c: Likewise.
279         * locale/programs/ld-ctype.c: Likewise.
280         * locale/programs/ld-identification.c: Likewise.
281         * locale/programs/ld-measurement.c: Likewise.
282         * locale/programs/ld-messages.c: Likewise.
283         * locale/programs/ld-monetary.c: Likewise.
284         * locale/programs/ld-name.c: Likewise.
285         * locale/programs/ld-numeric.c: Likewise.
286         * locale/programs/ld-paper.c: Likewise.
287         * locale/programs/ld-telephone.c: Likewise.
288         * locale/programs/ld-time.c: Likewise.
289         * locale/programs/linereader.c: Likewise.
290         * locale/programs/linereader.h: Likewise.
291         * locale/programs/localedef.c: Likewise.
292         * locale/programs/locfile.c: Likewise.
293         * locale/programs/repertoire.c: Likewise.
295 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
297         * elf/rtld.c (_dl_start_final): Determine load address to locate
298         ehdr with GL(dl_rtld_map).l_map_start.
300         * po/ca.po: Update from translation team.
302         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
303         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
304         header entry.
305         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
306         _dl_tls_module_cnt.
307         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
309 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
311         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
312         * include/link.h (struct link_map): Add various members for TLS
313         information.
314         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
315         _rtld_tlsoffset, add _dl_initimage_list.
316         * sysdeps/i386/dl-lookupcfg.h: New file.
317         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
318         TLS relocation.  When using TLS we now use RESOLVE_MAP.
319         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
320         is used.
322         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
323         unused.
325         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
326         thread-pointer as soon as possible.
327         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
328         elements in rtld_global.
329         * sysdeps/generic/tls.h: New file.
330         * elf/Makefile (distribute): Add tls.h.
331         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
332         relocations.  Not complete yet.
334         * resolv/resolv.h: Allow user to define __need_res_state and only
335         define __res_start structure then.
336         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
338         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
339         dl_cpuclock_offset initialization to _dl_start_final.
340         (_dl_show_auxv): Avoid unnecessary sign extension.
341         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
343 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
345         * config.h.in: Add HAVE_TLS_SUPPORT.
346         * sysdeps/i386/elf/configure.in: New file.
348 2002-02-03  Andreas Schwab  <schwab@suse.de>
350         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
351         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
353 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
355         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
356         alloca if the memory reqirements are too high.
358 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
360         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
361         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
362         the former is available anyway and speed isn't important here.
363         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
364         * elf/dl-version.c (match_symbol): Likewise.
365         (_dl_check_map_versions): Likewise.
366         * elf/rtld.c (process_envvars): Likewise.
367         (print_statistics): Likewise.
368         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
369         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
370         bases.  Add assert to catch uses of unimplemented features.
371         (__strsep): Add assert to catch uses of unimplemented features.
372         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
373         and avoid inline optimization.
374         * elf/rtld.c (process_envvars): Likewise.
375         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
376         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
377         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
379 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
381         * stdio-common/_itoa.h: Minor simplifications of the code.
382         * stdio-common/_itoa.c: Likewise.
384         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
385         instead of _dl_printf for debugging info output.
387         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
388         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
390 2002-02-01  H.J. Lu  <hjl@gnu.org>
392         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
393         (atomic_add): Likewise.
394         (compare_and_swap): Return 0 only when failed to compare. Use
395         branch likely.
397         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
398         branch likely.
400 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
402         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
404 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
406         * elf/dl-minimal.c (__strsep): New minimal implementation.
408 2002-02-02  Paul Eggert  <eggert@twinsun.com>
410         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
411         (__mktime_internal): If no tm_isdst is requested, prefer solutions
412         with tm_isdst > 0 when the requested time falls within a
413         spring-forward gap [PR libc/2894].
415 2002-02-03  Andreas Schwab  <schwab@suse.de>
417         * stdio-common/tst-rndseek.c: Increase timeout.
419 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
421         Change ld.so to not use functions which are exported.  One cannot
422         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
423         definitions.
424         * include/libc-symbols.h: Define INT and INTDEF.
425         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
426         _dl_signal_error_internal, _dl_map_object_internal,
427         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
428         _dl_lookup_versioned_symbol_internal,
429         _dl_relocate_object_internal, _dl_debug_state_internal,
430         _dl_start_profile_internal, and _dl_unload_cache_internal.
431         * include/dlfcn.h: Declare _dl_catch_error_internal.
432         * elf/rtld.c: Use INT for calls to any of the *_internal functions
433         above.  Add INTDEF to function definitions.
434         * elf/dl-debug.c: Likewise.
435         * elf/dl-deps.c: Likewise.
436         * elf/dl-dst.h: Likewise.
437         * elf/dl-error.c: Likewise.
438         * elf/dl-fini.c: Likewise.
439         * elf/dl-init.c: Likewise.
440         * elf/dl-load.c: Likewise.
441         * elf/dl-lookup.c: Likewise.
442         * elf/dl-misc.c: Likewise.
443         * elf/dl-open.c: Likewise.
444         * elf/dl-profile.c: Likewise.
445         * elf/dl-reloc.c: Likewise.
446         * elf/dl-runtime.c: Likewise.
447         * elf/dl-version.c: Likewise.
448         * elf/do-lookup.h: Likewise.
449         * sysdeps/generic/dl-cache.c: Likewise.
450         * sysdeps/generic/dl-sysdep.c: Likewise.
451         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
452         instead of _dl_init.
453         * sysdeps/arm/dl-machine.h: Likewise.
454         * sysdeps/cris/dl-machine.h: Likewise.
455         * sysdeps/hppa/dl-machine.h: Likewise.
456         * sysdeps/i386/dl-machine.h: Likewise.
457         * sysdeps/ia64/dl-machine.h: Likewise.
458         * sysdeps/m68k/dl-machine.h: Likewise.
459         * sysdeps/mips/dl-machine.h: Likewise.
460         * sysdeps/mips/mips64/dl-machine.h: Likewise.
461         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
462         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
463         * sysdeps/sh/dl-machine.h: Likewise.
464         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
465         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
466         * sysdeps/x86_64/dl-machine.h: Likewise.
467         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
469         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
470         and _dl_debug_initialize.
472         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
473         more information.
474         * elf/rtld.c (dl_main): Avoid strrchr.
475         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
476         result of readlink.  Search from the back for '/'.
478         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
479         strncpy if possible.
481         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
482         strncmp.
483         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
484         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
485         strspn, and strcspn.
486         (process_envvars): Don't use strcspn.
488         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
489         (_dl_dst_substitute): Likewise.
491 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
493         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
494         code which is never used when relocating ld.so itself.
496         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
497         starting ld.so itself.  Move l_addr variable initialization closer
498         to use.
499         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
501 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
503         * Versions.def (libc): Add GLIBC_PRIVATE.
504         (libdb, libnss_db, libdb1): Remove.
505         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
506         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
507         (libpthread): Add GLIBC_PRIVATE.
508         (libresolv): Likewise, remove GLIBC_2.1.
509         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
510         GLIBC_2.2.3, GLIBC_2.3.
511         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
512         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
513         _dl_sym, _dl_vsym): Likewise.
514         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
515         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
516         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
517         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
518         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
519         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
520         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
521         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
522         Likewise.
523         (_dl_object_relocation_scope): Remove.
524         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
525         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
526         __gconv_cache): Move to GLIBC_PRIVATE.
527         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
528         __internal_setnetgrent): Likewise.
529         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
530         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
531         * locale/Versions (__collate_element_hash, __collate_element_strings,
532         __collate_symbol_classes, __collate_symbol_hash,
533         __collate_symbol_strings, _nl_current_LC_COLLATE,
534         _nl_current_LC_CTYPE): Likewise.
535         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
536         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
537         (libnss_nis, libnss_nisplus): Likewise.
538         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
539         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
540         (libnss_files): Move all symbols to GLIBC_PRIVATE.
541         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
542         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
543         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
544         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
545         __ns_get16, __ns_samename): Likewise.
546         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
547         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
548         GLIBC_PRIVATE.
549         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
550         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
551         __libc_connect): Likewise.
552         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
553         Likewise.
554         * stdlib/Versions (__libc_system): Likewise.
555         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
556         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
557         * sysdeps/ia64/fpu/Versions: Likewise.
558         * sysdeps/ia64/Versions: Likewise.
559         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
560         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
561         to GLIBC_PRIVATE.
562         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
563         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
564         __libc_sigaction): Likewise.
565         * termios/Versions (__libc_tcdrain): Likewise.
567         * misc/sys/cdefs (__attribute_noinline__): Define.
568         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
569         __attribute_noinline__.
571         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
572         * elf/dl-xstat64.c: New file.
573         * elf/dl-fxstat64.c: New file.
574         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
575         don't export __fxstat64 at multiple versions.
576         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
577         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
579 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
581         * locale/program/ld-collate.c (collate_finish): Assign a wide
582         char collation sequence value to multi character collating
583         elements, and avoid over writing by non-character elements.
585 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
587         * elf/Makefile (distribute): Add dl-procinfo.c.
588         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
589         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
591 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
593         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
594         definition.
595         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
596         _rtld_global struct.
597         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
598         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
599         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
600         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
601         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
602         _dl_fpu_control_set): Remove unused externs.
603         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
604         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
605         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
606         related variables in _rtld_global struct.
607         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
608         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
609         unused extern.
611 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
613         * sysdeps/generic/dl-procinfo.c: New file.
615 2002-02-01  Andreas Schwab  <schwab@suse.de>
617         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
619 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
621         * elf/rtld.c (_dl_start): Mark as internal_function.
622         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
623         in register.
624         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
625         General pretty printing.
627 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
629         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
630         * elf/dl-reloc.c: Pretty printing.
631         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
632         procinfo-related variables in rtld_global struct.
633         * elf/dl-support.c: Likewise.
634         * elf/rtld.c: Likewise.
635         * sysdeps/i386/i686/Makefile: Likewise.
636         * sysdeps/i386/i686/hp-timing.c: Likewise.
637         * sysdeps/i386/i686/hp-timing.h: Likewise.
638         * sysdeps/ia64/Makefile: Likewise.
639         * sysdeps/ia64/hp-timing.c: Likewise.
640         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
641         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
642         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
643         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
644         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
645         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
646         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
647         * sysdeps/x86_64/Makefile: Likewise.
649         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
650         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
651         _dl_debug_fd to rtld_global.
652         * elf/Versions: Likewise.
653         * elf/dl-close.c: Likewise.
654         * elf/dl-iteratephdr.c: Likewise.
655         * elf/dl-lookup.c: Likewise.
656         * elf/dl-misc.c: Likewise.
657         * elf/dl-open.c: Likewise.
658         * elf/dl-support.c: Likewise.
659         * elf/do-lookup.h: Likewise.
660         * elf/rtld.c: Likewise.
661         * sysdeps/generic/dl-cache.c: Likewise.
662         * sysdeps/generic/dl-sysdep.c: Likewise.
663         * sysdeps/ia64/Versions: Likewise.
664         * sysdeps/unix/clock_gettime.c: Likewise.
665         * sysdeps/unix/clock_settime.c: Likewise.
666         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
667         * sysdeps/sparc/Versions: Removed.
668         * sysdeps/i386/i686/Versions : Removed.
669         * sysdeps/x86_64/Versions: Removed.
670         * configure.in: Define HAVE_PROTECTED if .protected is available.
671         * config.h.in: Add entry for HAVE_PROTECTED.
673 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
675         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
676         code in struct _rtld_global.  Export this struct, remove all
677         exports for the signal variables.
678         * sysdeps/arm/dl-machine: Likewise.
679         * sysdeps/generic/dl-origin: Likewise.
680         * sysdeps/generic/dl-sysdep: Likewise.
681         * sysdeps/generic/dl-cache: Likewise.
682         * sysdeps/hppa/dl-fptr: Likewise.
683         * sysdeps/hppa/dl-machine: Likewise.
684         * sysdeps/cris/dl-machine: Likewise.
685         * sysdeps/i386/dl-machine: Likewise.
686         * sysdeps/ia64/dl-machine: Likewise.
687         * sysdeps/m68k/dl-machine: Likewise.
688         * sysdeps/mach/hurd/dl-sysdep: Likewise.
689         * sysdeps/mips/mips64/dl-machine: Likewise.
690         * sysdeps/mips/dl-machine: Likewise.
691         * sysdeps/powerpc/elf/libc-start: Likewise.
692         * sysdeps/powerpc/dl-machine: Likewise.
693         * sysdeps/powerpc/dl-start: Likewise.
694         * sysdeps/sparc/sparc32/dl-machine: Likewise.
695         * sysdeps/sparc/sparc64/dl-machine: Likewise.
696         * sysdeps/sh/dl-machine: Likewise.
697         * sysdeps/s390/s390-32/dl-machine: Likewise.
698         * sysdeps/s390/s390-64/dl-machine: Likewise.
699         * sysdeps/unix/sysv/aix/libc-start: Likewise.
700         * sysdeps/unix/sysv/aix/start-libc: Likewise.
701         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
702         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
703         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
704         * sysdeps/x86_64/dl-machine: Likewise.
706 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
708         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
709         are too high.
711 2002-01-31  Andreas Schwab  <schwab@suse.de>
713         * sysdeps/posix/readv.c: Check for ssize_t overflow.
715 2002-01-31  Andreas Schwab  <schwab@suse.de>
717         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
718         reference to _dl_pagesize.
720 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
722         * Versions.def [ld]: Add GLIBC_2.3.
723         * elf/dl-addr.c: Move global variables for SHARED code in struct
724         _rtld_global.  Export this struct, remove all exports for the
725         signal variables.
726         * elf/dl-close.c: Likewise.
727         * elf/dl-conflict.c: Likewise.
728         * elf/dl-debug.c: Likewise.
729         * elf/dl-deps.c: Likewise.
730         * elf/dl-dst.h: Likewise.
731         * elf/dl-error.c: Likewise.
732         * elf/dl-fini.c: Likewise.
733         * elf/dl-init.c: Likewise.
734         * elf/dl-iteratephdr.c: Likewise.
735         * elf/dl-libc.c: Likewise.
736         * elf/dl-load.c: Likewise.
737         * elf/dl-lookup.c: Likewise.
738         * elf/dl-minimal.c: Likewise.
739         * elf/dl-object.c: Likewise.
740         * elf/dl-open.c: Likewise.
741         * elf/dl-profile.c: Likewise.
742         * elf/dl-profstub.c: Likewise.
743         * elf/dl-reloc.c: Likewise.
744         * elf/dl-runtime.c: Likewise.
745         * elf/dl-support.c: Likewise.
746         * elf/dl-sym.c: Likewise.
747         * elf/dl-version.c: Likewise.
748         * elf/do-lookup.h: Likewise.
749         * elf/do-rel.h: Likewise.
750         * elf/dynamic-link.h: Likewise.
751         * elf/rtld.c: Likewise.
752         * sysdeps/generic/dl-cache.c: Likewise.
753         * sysdeps/generic/dl-sysdep.c: Likewise.
754         * sysdeps/generic/ldsodefs.h: Likewise.
755         * sysdeps/generic/libc-start.c: Likewise.
756         * sysdeps/i386/dl-machine.h: Likewise.
757         * sysdeps/ia64/dl-fptr.c: Likewise.
758         * sysdeps/ia64/dl-machine.h: Likewise.
759         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
760         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
761         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
762         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
763         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
764         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
765         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
766         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
768 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
770         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
771         to avoid warning
772         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
774         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
775         SHARED version.
776         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
778         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
780 2002-01-29  Ben Collins  <bcollins@debian.org>
782         * string/bits/string2.h (__mempcpy): Protect size arg for
783         addition when using __builtin_memcpy.
785 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
787         * stdlib/Makefile (tests): Add tst-qsort.
788         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
790         * manual/signal.texi (Process Signal Mask): Document that
791         pthread_sigmask, not sigprocmask, must be used in MT programs.
792         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
794         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
795         found.
796         * misc/Makefile (tests): Add tst-hsearch.
797         * misc/tst-hsearch.c: New file.
799 2002-01-18  Wolfram Gloger  <wg@malloc.de>
801         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
802         * malloc/malloc.h: Likewise.
803         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
804         * malloc/arena.c: New file.
805         * malloc/hooks.c: New file.
806         * malloc/tst-mallocstate.c: New file.
807         * malloc/Makefile: Add new testcase tst-mallocstate.
808         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
810 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
812         * stdlib/msort.c: Remove last patch.  The optimization violates the
813         same rule which qsort.c had problems with.
815 2002-01-27  Paul Eggert  <eggert@twinsun.com>
817         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
818         to a pivot element that lies outside the array to be sorted, as
819         ISO C99 requires that the comparison function be called only with
820         addresses of array elements [PR libc/2880].
822 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
824         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
825         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
827         * timezone/asia: Update from tzdata2002b.
828         * timezone/australasia: Likewise.
829         * timezone/backward: Likewise.
830         * timezone/europe: Likewise.
831         * timezone/leapseconds: Likewise.
832         * timezone/iso3166.tab: Likewise.
833         * timezone/zone.tab: Likewise.
835 2002-01-23  Richard Henderson  <rth@redhat.com>
837         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
839 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
841         * string/strxfrm.c: Allocate one more byte for rulearr and clear
842         this element [PR libc/2855].
844         * string/strcoll.c: Handle zero-length arguments specially
845         [PR libc/2856].
847 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
849         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
850         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
851         short lengths and constant src.
852         (strcpy): Don't optimize for gcc 3.0+.
853         (__stpcpy): For gcc 3.0+, don't use
854         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
855         for short string literal src.
857 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
859         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
860         Set for arm, too.
862 2001-01-22  Paul Eggert  <eggert@twinsun.com>
864         * manual/llio.texi (Linked Channels, Cleaning Streams):
865         Make it clearer that a just-opened input stream might need cleaning.
867 2002-01-21  H.J. Lu  <hjl@gnu.org>
869         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
870         Don't use label at end of compound statement.
872 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
874         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
875         Remove test for negative integer arg; sin_pi does it correctly.
877 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
879         * nscd/Makefile (distribute): Filter out xmalloc.c.
881 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
883         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
884         Set offset if read end wasn't the buffer end.
885         (_IO_file_seekoff_mmap): New function.
886         (_IO_file_xsgetn_mmap): New function.
887         (_IO_file_jumps_mmap): Use the two new functions.
888         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
889         != end buffer.
890         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
891         _IO_file_underflow_mmap.
892         * libio/iofopen.c: Don't position file descriptor at end of file.
893         * libio/tst-widetext.c: Improve error messages.
894         * stdio-common/tst-rndseek.c: Likewise.
896 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
898         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
899         end of enum for !_GNU_SOURCE.
900         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
901         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
902         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
903         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
904         values unless _GNU_SOURCE.
906         * iconvdata/tcvn5712-1.c: Minor cleanups.
908 2002-01-18  Andreas Schwab  <schwab@suse.de>
910         * sysdeps/unix/sysv/linux/configure.in
911         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
913 2002-01-16  Roger Sayle  <roger@eyesopen.com>
915         * stdlib/msort.c (msort_with_tmp): Replace implementation with
916         more efficient "Towers of Hanoi" mergesort.
917         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
918         for generic, sizeof(int) and sizeof(long) variants respectively.
920 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
922         * manual/syslog.texi (openlog): Describe possible problems with
923         first parameter.
924         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
926         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
927         * nscd/connections.c (begin_drop_privileges): New function.
928         (finish_drop_privileges): New function.
929         (nscd_init): Call the new functions which also install all groups
930         for the server user.
931         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
932         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
934 2002-01-17  H.J. Lu  <hjl@gnu.org>
936         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
937         `const' from `got'.
939 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
941         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
942         instructions for pointer operations.
943         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
945 2002-01-17  Andreas Jaeger  <aj@suse.de>
947         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
948         __uint128_t build-in.
950         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
951         PowerPC, sync with 2.2 branch.
953 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
955         * posix/getconf.c: Update copyright year.
956         * nss/getent.c: Likewise.
957         * nscd/nscd_nischeck.c: Likewise.
958         * iconv/iconvconfig.c: Likewise.
959         * iconv/iconv_prog.c: Likewise.
960         * elf/ldconfig.c: Likewise.
961         * catgets/gencat.c: Likewise.
962         * csu/version.c: Likewise.
963         * elf/ldd.bash.in: Likewise.
964         * elf/sprof.c (print_version): Likewise.
965         * locale/programs/locale.c: Likewise.
966         * locale/programs/localedef.c: Likewise.
967         * nscd/nscd.c (print_version): Likewise.
968         * debug/xtrace.sh: Likewise.
969         * malloc/memusage.sh: Likewise.
970         * malloc/mtrace.pl: Likewise.
972 2002-01-16  Andreas Schwab  <schwab@suse.de>
974         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
975         reliably remove "-ia64" from rtld name.
977 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
979         * iconvdata/gb18030.c: Bug fixes and support for more characters.
980         Patch by Yu Shao <yshao@redhat.com>.
982 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
984         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
985         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
986         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
988 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
990         * sysdeps/s390/fpu/libm-test-ulps: Update.
992 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
994         * elf/elf.h: Update x86 relocations.
996 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
998         * locale/programs/charmap.c (new_width): Check whether byte
999         sequences for both ends of range have the same length.
1001 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
1003         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
1005 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
1007         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
1008         string literals.
1009         (__full_ieee754_sqrt): Add __attribute_used__.
1011 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
1013         * sysdeps/generic/group_member.c (__group_member): Also check
1014         groups[0] [PR libc/2781].
1016 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
1018         * Makefile (distribute): Add scripts/cpp.
1019         * elf/Makefile (distribute): Add reldep6mod[01234].c,
1020         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
1021         unwind-dw2-fde.h, and dwarf2.h.
1022         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
1023         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
1024         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
1025         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
1027 2002-01-07  Roland McGrath  <roland@frob.com>
1029         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
1030         volatile on type of ARGC so the compiler doesn't get clever.
1032 2002-01-07  Andreas Jaeger  <aj@suse.de>
1034         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
1035         * sysdeps/i386/bits/byteswap.h: Likewise.
1036         * sysdeps/ia64/bits/byteswap.h: Likewise.
1037         * sysdeps/m68k/bits/byteswap.h: Likewise.
1038         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
1039         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise.
1041 2002-01-02  Bruno Haible  <bruno@clisp.org>
1043         * intl/plural.y: Fix %expect count.
1045 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
1047         * elf/Makefile (routines, shared-only-routines): Add
1048         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
1049         * elf/elf.h (PT_GNU_EH_FRAME): Define.
1050         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
1051         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
1052         Optimize if .eh_frame section contains no FDEs.
1053         (__register_frame, __deregister_frame_info_bases,
1054         __deregister_frame): Likewise.
1055         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
1056         DW_CFA_restore handling.
1058 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
1060         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
1062         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
1063         for x < 0.25 and restore original range reduction method.
1064         (__ieee754_lgammal_r): Make sure signgam is set before returning.
1066 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
1068         * libio/fileops.c (_IO_file_underflow_mmap): New function.
1069         (_IO_file_close_mmap): New function.
1070         (_IO_file_jumps_mmap): New variable.
1071         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
1072         trying to convert rest of byte buffer.
1073         (_IO_wfile_underflow_mmap): New function.
1074         (_IO_wfile_jumps_mmap): New variable.
1075         * libio/iofopen.c (__fopen_maybe_mmap): New function.
1076         (__fopen_internal): New function.  Split out from _IO_new_fopen.
1077         (_IO_new_fopen): Call __fopen_internal.
1078         * libio/iofopen64.c: Just call __fopen_internal.
1079         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
1080         successfully.
1081         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
1082         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
1083         _IO_file_close_mmap.
1085         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
1086         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
1088         * stdio-common/Makefile (tests): Add tst-rndseek.
1089         * stdio-common/tst-rndseek.c: New file.
1091 2002-01-05  Roland McGrath  <roland@frob.com>
1093         * config.h.in (HAVE_MIG_RETCODE): New #undef.
1094         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
1095         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
1096         * sysdeps/mach/hurd/configure: Regenerated.
1098 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
1100         * elf/elf.h: Add more TLS definitions.
1102 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
1104         * include/features.h (__GLIBC_MINOR__): Bump to 3.
1106 2002-01-02  Roland McGrath  <roland@frob.com>
1108         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
1109         __sigisemptyset.  Don't use MASK uninitialized.
1111         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
1112         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
1113         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
1114         __sigdelset, __sigaddset, __sigorset.
1116         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
1117         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
1119         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
1120         _hurd_ports is null.
1122         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
1123         for old CMU and new OSF Mach interface flavors.
1124         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
1125         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
1127         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
1129         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
1130         Pass extra arguments to task_create for OSF variant.
1131         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
1133         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
1134         conditional on [HAVE_AUX_VECTOR].
1136         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
1137         mach_msg_timeout_t as type of final argument.
1139         * hurd/privports.c (__get_privileged_ports):
1140         Change host_priv_t to mach_port_t in argument type.
1141         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
1142         Update decls.
1144         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
1145         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
1146         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
1147         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
1148         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
1149         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
1151 2002-01-01  Roland McGrath  <roland@frob.com>
1153         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
1155 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
1157         * include/stdlib.h: Define inlines for the _l variants of the strto*
1158         functions.
1160 2002-01-01  Roland McGrath  <roland@frob.com>
1162         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
1164         * mach/Machrules (MIG): Set CPP as well as CC.
1166 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
1168         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
1169         locale to parse /proc/loadavg [PR libc/2760].
1171 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
1173         * elf/dl-conflict.c: Include sys/param.h.
1174         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
1175         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
1176         warning.
1177         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
1178         literals to avoid warnings.
1180 2001-12-31  Andreas Jaeger  <aj@suse.de>
1182         * configure.in: Don't check for gsed since we do not use it anywhere.
1184 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
1186         * io/fts.c: Update from BSD to fix memory leaks.
1188 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
1190         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
1191         * elf/chroot_canon.c: Likewise.
1192         * elf/dl-object.c: Likewise.
1193         * iconv/iconv_charmap.c: Likewise.
1194         * iconv/iconv_prog.c: Likewise.
1195         * libio/iogetdelim.c: Likewise.
1196         * locale/lc-time.c: Likewise.
1197         * stdlib/canonicalize.c: Likewise.
1198         * sunrpc/svc.c: Likewise.
1199         * sysdeps/generic/glob.c: Likewise.
1201 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1203         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
1204         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
1205         remove high order bit from the program counter.
1206         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
1208 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1210         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
1211         unnecessary code and add missing reloc types.
1212         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
1213         case for reloc type R_390_NONE.
1215 2001-12-28  Andreas Jaeger  <aj@suse.de>
1217         * io/bug-ftw3.c: Include string.h for prototypes.
1219         * crypt/md5test.c (main): Remove unused variable.
1221         * dlfcn/modstatic.c: Add prototype to avoid warning.
1223 2001-12-26  Roland McGrath  <roland@frob.com>
1225         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
1226         check only (SS->pending & MASK) for the signal to return.
1227         From Jeroen Dekkers <jeroen@dekkers.cx>.
1229 2001-12-22  Roland McGrath  <roland@frob.com>
1231         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
1232         Use preprocessor #if conditionals instead of `if' to avoid
1233         warnings about divide by zero in dead code.
1235         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
1236         _hurd_port_init, and __hurd_self_sigstate.
1238         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
1240 2001-12-21  Andreas Jaeger  <aj@suse.de>
1242         * elf/dblloadmod1.c: Add prototype to avoid warning.
1243         * elf/dblloadmod2.c: Likewise.
1244         * elf/dblloadmod3.c: Likewise.
1245         * elf/reldepmod5.c: Likewise.
1246         * elf/reldepmod6.c: Likewise.
1248         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
1249         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
1250         used on all architectures.
1252         * sunrpc/svc_tcp.c: Add noreturn attribute for
1253         svctcp_rendezvous_abort.
1254         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
1256         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
1257         to avoid warning.
1259 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
1261         * manual/llio.texi (aio_fsync): Fix a typo.
1262         Patch by Tammy Fox <tfox@redhat.com>.
1264 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
1266         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
1267         stack bias from child stack pointer before passing it to clone syscall.
1269 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
1271         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
1272         _SC_TZNAME_MAX.
1273         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
1274         Reported by Thorsten Kukuk <kukuk@suse.de>.
1276         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
1277         add some casts.
1279         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
1281 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
1283         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
1284         conforming: return EBADF if file descriptor is invalid and EINVAL
1285         if file descriptor is no valid tty.
1286         * login/tst-grantpt.c: New file.
1287         * login/Makefile (tests): Add tst-grantpt.
1289 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
1291         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
1292         different than implemented in last patch.
1293         * io/bug-ftw3.c: Adjust test for changed handling of
1294         inaccessibility of toplevel dir.
1296 2001-12-16  Roland McGrath  <roland@frob.com>
1298         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
1299         * grp/initgroups.c (internal_getgrouplist): Likewise.
1301         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
1302         `default:' to silence new GCC warning.
1303         Rewrite cast of lvalue to silence new GCC warning.
1305         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
1307         * sysdeps/mach/hurd/spawni.c: New file, by me with a
1308         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
1310 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
1312         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
1313         Patch by Stephen R. van den Berg.
1315         * crypt/md5.h: Define md5_uintptr.
1317 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
1319         * libio/tst_swprintf.c (main): Add test for string argument with
1320         zero precision.
1321         * stdio-common/Makefile (tests): Add tst-sprintf.
1322         * stdio-common/tst-sprintf.c: New file.
1324 2001-12-13  Andreas Schwab  <schwab@suse.de>
1326         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
1327         zero precision with wide character string format.
1329 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
1331         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
1332         but have a user supplied buffer, return the empty buffer, not NULL.
1334 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
1336         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
1337         Patch by Eric Sharkey <sharkey@netrics.com>.
1339         * crypt/md5test.c (main): Add test for multiple calls to
1340         __md5_process_bytes to itererate over input string.
1342 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
1344         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
1345         from __nis_findfastest.  Take timeout value from parameter.
1346         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
1347         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
1348         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
1350 2001-12-12  Andreas Jaeger  <aj@suse.de>
1352         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
1353         combreloc test so that it works in this case.
1355         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
1357 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
1359         * sysdeps/sh/Makefile: New file.
1360         * sysdeps/sh/_mcount.S: New file.
1361         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
1362         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
1364 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
1366         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
1367         limitation [PR libc/2564].
1369 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
1371         * elf/Makefile (dl-routines): Add conflict.
1372         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
1373         (ld.so): Add _begin local symbol.
1374         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
1375         Define.
1376         * elf/dl-deps.c (_dl_build_local_scope): New.
1377         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
1378         of all libraries.
1379         * elf/do-rel.h (VALIDX): Define.
1380         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
1381         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
1382         can be skipped.
1383         * elf/dl-conflict.c: New file.
1384         * elf/dl-lookup.c (_dl_debug_bindings): New.
1385         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
1386         non-NULL.
1387         (_dl_lookup_symbol_skip): Likewise.
1388         (_dl_lookup_versioned_symbol): Likewise.
1389         (_dl_lookup_versioned_symbol_skip): Likewise.
1390         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
1391         define to ElfW(Rel).
1392         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
1393         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
1394         ranges.
1395         Don't adjust address dynamic tags if l_addr is 0.
1396         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
1397         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
1398         (VALIDX, ADDRIDX): Define.
1399         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
1400         (dl_main): Print library list for LD_TRACE_PRELINKING.
1401         If prelinking information can be used, skip relocating libraries and
1402         call _dl_resolve_conflicts instead.
1403         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
1404         * elf/dl-load.c (_dl_map_object): Don't create fake libs
1405         if LD_TRACE_PRELINKING.
1406         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
1407         + DT_ADDRNUM.
1408         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
1409         (DL_DEBUG_PRELINK): Define.
1410         (_dl_resolve_conflicts): Add prototype.
1412         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
1413         .plt for prelinked libraries where prelinking info cannot be used.
1414         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
1415         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
1416         * sysdeps/arm/bits/link.h: New file.
1417         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
1418         content of .got[1].
1419         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
1420         (ELF_MACHINE_PLT_REL): Define.
1421         (elf_machine_rela, elf_machine_rela_relative): New.
1422         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
1423         of adjusting it if prelinked and prelinking cannot be used.
1424         * sysdeps/i386/bits/link.h: New file.
1425         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
1426         content of .got[1].
1427         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
1428         (ELF_MACHINE_PLT_REL): Define.
1429         (elf_machine_rela, elf_machine_rela_relative): New.
1430         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
1431         of adjusting it if prelinked and prelinking cannot be used.
1432         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
1433         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
1434         to find out map for R_PPC_JMP_SLOT relocs.
1435         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
1436         (OPCODE_BA): Define.
1437         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
1438         libraries where prelinking info cannot be used.
1439         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
1440         (elf_machine_fixup_plt): Call sparc_fixup_plt.
1441         (elf_machine_rela): Set value to 0 if relocating conflicts.
1442         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
1443         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
1444         (sparc64_fixup_plt): Fix a typo.
1445         (elf_machine_rela): Set value to 0 if relocating conflicts.
1446         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
1447         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
1448         libraries where prelinking info cannot be used.
1449         * sysdeps/sh/bits/link.h: New file.
1450         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
1451         content of .got[1].
1452         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
1453         of adjusting it if prelinked and prelinking cannot be used.
1454         * sysdeps/s390/s390-32/bits/link.h: New file.
1455         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
1456         Save original content of .got[1].
1457         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
1458         of adjusting it if prelinked and prelinking cannot be used.
1459         * sysdeps/s390/s390-64/bits/link.h: New file.
1460         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
1461         Save original content of .got[1].
1462         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
1463         of adjusting it if prelinked and prelinking cannot be used.
1464         * sysdeps/x86_64/bits/link.h: New file.
1465         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
1466         Save original content of .got[1].
1467         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
1468         of adjusting it if prelinked and prelinking cannot be used.
1470 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
1472         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
1473         where appropriate instead of numbers.  Little optimizations.
1475 2001-12-10  Roland McGrath  <roland@frob.com>
1477         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
1478         set it.
1480         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
1481         set to GLIBC_2.2.5, not GLIBC_2.2.4.
1483         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
1484         Fix conditionals so this is set by default for stdio and not for libio.
1485         * sysdeps/mach/hurd/configure: Regenerated.
1487 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
1489         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
1491 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
1493         * io/Makefile (tests): Add bug-ftw3.
1494         * io/bug-ftw3.c: New file.
1496         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
1497         matches and GLOB_NOCHECK is set.
1498         * posix/globtest.sh: Correct expected result for NOCHECK test.
1500         * po/ca.po: Update from translation team.
1502 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
1504         Implement transliteration of characters in strings of the locale
1505         definitions.
1506         * locale/programs/linereader.c: Adjust for additional parameter to
1507         lr_token.
1508         (get_string): If character <Uxxxx> is not found try to transliterate
1509         it.
1510         * locale/programs/ld-ctype.c: Adjust for additional parameter to
1511         lr_token.  Add const to charmap parameter of all functions.
1512         (find_translit, find_translit2): New functions.
1513         * locale/programs/charmap.c: Adjust for additional parameter to
1514         lr_token.
1515         * locale/programs/repertoire.c: Likewise.
1516         * locale/programs/linereader.h: Likewise.
1517         * locale/programs/ld-address.c: Likewise.  Add const to charmap
1518         parameter of all functions.
1519         * locale/programs/ld-collate.c: Likewise.
1520         * locale/programs/ld-identification.c: Likewise.
1521         * locale/programs/ld-measurement.c: Likewise.
1522         * locale/programs/ld-messages.c: Likewise.
1523         * locale/programs/ld-monetary.c: Likewise.
1524         * locale/programs/ld-name.c: Likewise.
1525         * locale/programs/ld-numeric.c: Likewise.
1526         * locale/programs/ld-paper.c: Likewise.
1527         * locale/programs/ld-paper.c: Likewise.
1528         * locale/programs/ld-telephone.c: Likewise.
1529         * locale/programs/ld-time.c: Likewise.
1530         * locale/programs/locfile.c: Likewise.
1531         * locale/programs/localedef.c: Likewise.
1532         * locale/programs/localedef.h: Likewise.
1533         * locale/programs/locfile.h: Likewise.  Add declaration for
1534         find_translit.
1535         * locale/programs/simple-hash.c: Add const to first parameter of
1536         find_entry, iterate_table, and lookup.
1537         * locale/programs/simple-hash.h: Likewise.
1538         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
1539         instead.
1540         * include/locale.h: Define __LC_LAST.
1541         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
1543 2001-12-07  Geoff Keating  <geoffk@redhat.com>
1545         * sysdeps/powerpc/Dist: Update for recent FP changes.
1546         * sysdeps/powerpc/fpu/Dist: Likewise.
1548 2001-12-07  Andreas Schwab  <schwab@suse.de>
1550         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
1552 2001-12-06  Geoff Keating  <geoffk@redhat.com>
1554         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
1555         save/restore functions here.
1556         (libm-support): Don't define these functions here.
1557         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
1558         functions here.
1559         * sysdeps/powerpc/fe_nomask.c: Move to...
1560         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
1561         * sysdeps/powerpc/fprrest.S: Move to...
1562         * sysdeps/powerpc/fpu/fprrest.S: ... here.
1563         * sysdeps/powerpc/fprsave.S: Move to...
1564         * sysdeps/powerpc/fpu/fprsave.S: ... here.
1566 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
1568         * sysdeps/unix/sysv/linux/opensock.c: New file.
1570 2001-12-06  Geoff Keating  <geoffk@redhat.com>
1572         * config.make.in (with-fp): Define from configure.
1573         * configure.in: Substitute with_fp.
1574         * configure: Regenerate.
1575         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
1576         specified, and don't change FPU environment.
1578 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
1580         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
1581         * assert/assert.c: Check result of __asprintf call and don't use
1582         string if it failed.
1583         * assert/assert-perr.c: Likewise.
1584         * inet/rcmd.c: Likewise.
1585         * locale/programs/localedef.c (main): Check result of
1586         construct_output_path and exit if it failed.
1587         (construct_output_path): Check result of asprintf and mkdir calls and
1588         fail if they failed.
1589         * posix/getopt.c: Check result of __asprintf calls and fail if
1590         they failed.
1591         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
1593 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1595         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
1596         patch.
1597         * sysdeps/generic/strncase.c: Likewise.
1598         * string/tester.c: Add tests for strcasecmp and strncasecmp.
1600 2001-12-05  Geoff Keating  <geoffk@redhat.com>
1602         * scripts/cpp: Test the exit status from 'type', not 'awk'.
1604         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
1605         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
1606         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
1607         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
1608         * sysdeps/powerpc/fclrexcpt.c: Move to...
1609         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
1610         * sysdeps/powerpc/fpu_control.h: Move to...
1611         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
1613 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1615         * iconvdata/ibm1129.h: Remove duplicate mappings.
1616         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
1617         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
1618         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1620         * timezone/zic.c: Fix handling of turnaround times.
1621         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
1623 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
1625         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
1626         overflow problem.
1628 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1630         * posix/regex.c: For use outside glibc defined bounded pointer
1631         macros here.  Patch by Jim Meyering <jim@meyering.net>.
1633         * iconvdata/Makefile (modules): Add TCVN5712-1.
1634         * iconvdata/TESTS: Add TCVN5712-1.
1635         * iconvdata/gconv-modules: Likewise.
1636         * iconvdata/tcvn5712-1.c: New file.
1637         * iconvdata/testdata/TCVN-5712: New file.
1638         * iconvdata/testdata/TCVN-5712..UTF8: New file.
1640 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
1642         * iconvdata/cp1258.c: Optimize conversion from UCS4.
1644 2001-12-02  Roland McGrath  <roland@frob.com>
1646         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
1648         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
1649         Reported by Jeff Bailey <jbailey@nisa.net>.
1651         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
1652         Reported by Jeff Bailey <jbailey@nisa.net>.
1654         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
1655         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
1656         Reported by Jeff Bailey <jbailey@nisa.net>.
1658 2001-12-01  Roland McGrath  <roland@frob.com>
1660         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
1661         missing backslash in test arguments.
1662         * sysdeps/mach/hurd/configure: Regenerated.
1664 2001-11-26  Roland McGrath  <roland@frob.com>
1666         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
1667         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
1669 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
1671         * iconvdata/Makefile (modules): Add ARMSCII-8.
1672         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
1673         * iconvdata/armscii-8.c: New file.
1675 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
1677         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
1678         don't match, fix {{a,b},c} globbing, clean up.
1679         Patch by Flavio Veloso <flaviovs@magnux.com>.
1680         * posix/globtest.sh: Add new tests.
1682 2001-11-29  Andreas Jaeger  <aj@suse.de>
1684         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
1685         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
1687         * sysdeps/generic/abort.c: Include libioP.h for
1688         _IO_flush_all_lockp prototype.
1690 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
1692         * posix/regex.h: Define __restrict_arr correctly.
1694 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
1696         * iconvdata/ibm1163.c: New file.
1697         * iconvdata/ibm1163.h: New file.
1698         * iconvdata/ibm1164.c: New file.
1699         * iconvdata/ibm1164.h: New file.
1700         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
1701         * iconvdata/Makefile: Likewise.
1702         * iconvdata/testdata/IBM1163: New file.
1703         * iconvdata/testdata/IBM1163..UTF8: New file.
1704         * iconvdata/testdata/IBM1164: New file.
1705         * iconvdata/testdata/IBM1164..UTF8: New file.
1706         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1708         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
1709         * iconvdata/ibm1124.h: Likewise.
1710         * iconvdata/ibm1132.h: Likewise.
1711         * iconvdata/ibm1133.h: Likewise.
1712         * iconvdata/ibm1160.h: Likewise.
1713         * iconvdata/ibm1161.h: Likewise.
1714         * iconvdata/ibm1162.h: Likewise.
1715         * iconvdata/ibm856.h: Likewise.
1716         * iconvdata/ibm922.h: Likewise.
1717         * iconvdata/ibm930.h: Likewise.
1718         * iconvdata/ibm932.h: Likewise.
1719         * iconvdata/ibm933.h: Likewise.
1720         * iconvdata/ibm935.h: Likewise.
1721         * iconvdata/ibm937.h: Likewise.
1722         * iconvdata/ibm939.h: Likewise.
1723         * iconvdata/ibm943.h: Likewise.
1724         * iconvdata/ibm930.c: Pretty printing.
1725         * iconvdata/ibm937.c: Avoid access accross array boundary.
1727         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
1728         the current locale's codeset.
1729         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
1730         empty input string.
1731         * iconv/iconv_prog.c: Pass empty strings as default value for to-
1732         and from-charset.  Don't determine locale's charset here.
1734         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
1735         as the old _IO_flush_all but lock only if parameter is nonzero.
1736         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
1737         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
1738         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
1739         if libio is used [PR libc/2575].
1741 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
1743         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
1744         __signbitl): Only define for ISO C99.
1746 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
1748         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
1749         herrnop to NETDB_INTERNAL if we run out of buffer space.
1751 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
1753         * nss/nss_files/files-XXX.c (internal_getent): Correct input
1754         overflow test for platforms with signed char.
1755         Reported by Andrew Haley <aph@cambridge.redhat.com>.
1757 2001-11-28  Bruno Haible  <bruno@clisp.org>
1759         * locale/programs/simple-hash.c (lookup_2): Remove function.
1760         (insert_entry_2): Call lookup instead of lookup_2.
1762 2001-03-04  Bruno Haible  <bruno@clisp.org>
1764         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
1766 2001-10-31  Bruno Haible  <bruno@clisp.org>
1768         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
1770 2001-03-21  Bruno Haible  <bruno@clisp.org>
1772         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
1773         chokes on empty macro arguments.
1774         * intl/plural.y: Add #pragma for alloca on AIX 3.
1776 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
1778         * intl/dcigettext.c (guess_category_value): Only implement for
1779         glibc.  Otherwise rely on function _nl_locale_name which isn't
1780         present in the glibc sources.
1782 2001-09-24  Bruno Haible  <bruno@clisp.org>
1784         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
1785         transliteration when building on a glibc system but outside glibc.
1787 2001-09-22  Bruno Haible  <bruno@clisp.org>
1789         * intl/plural-eval.c: New file, extracted from dcigettext.c.
1790         * intl/dcigettext.c (plural_eval): Remove function, moved to
1791         intl/plural-eval.c.
1792         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
1793         Include plural-eval.c.
1795 2001-09-22  Bruno Haible  <bruno@clisp.org>
1797         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
1798         don't start with a digit; nplurals must be positive.
1800 2001-09-02  Bruno Haible  <bruno@clisp.org>
1802         * intl/plural-exp.h: New file, extracted from gettextP.h.
1803         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
1804         * intl/gettextP.h (struct expression, struct parse_args,
1805         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
1806         * intl/loadmsgcat.c: Include plural-exp.h.
1807         (PLURAL_PARSE): Move macro to plural-exp.h.
1808         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
1809         plural-exp.c.
1810         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
1811         EXTRACT_PLURAL_EXPRESSION.
1812         (_nl_unload_domain): Update.
1813         * intl/dcigettext.c: Include plural-exp.h.
1814         * intl/plural.y: Include plural-exp.h, not gettextP.h.
1815         (FREE_EXPRESSION): Move macro to plural-exp.h.
1816         * intl/Makefile (routines): Add plural-exp.
1817         (distribute): Add plural-exp.h.
1819 2001-07-28  Bruno Haible  <bruno@clisp.org>
1821         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
1822         isdigit, tolower argument to 'unsigned char'.
1823         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
1824         'unsigned char'.
1825         * intl/localealias.c (read_alias_file): Cast isspace argument to
1826         'unsigned char'.
1828 2001-10-20  Bruno Haible  <bruno@clisp.org>
1830         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
1831         anyway.)
1832         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
1833         with the variable 'index' in plural_lookup.
1834         * intl/l10nflist.c (strchr): Likewise.
1835         * intl/localealias.c (strchr): Likewise.
1837         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
1838         * intl/bindtextdom.c: Likewise.
1839         * intl/dcigettext.c: Likewise.
1840         * intl/dgettext.c: Likewise.
1841         * intl/dngettext.c: Likewise.
1842         * intl/explodename.c: Likewise.
1843         * intl/finddomain.c: Likewise.
1844         * intl/gettext.c: Likewise.
1845         * intl/l10nflist.c: Likewise.
1846         * intl/loadmsgcat.c: Likewise.
1847         * intl/localealias.c: Likewise.
1848         * intl/ngettext.c: Likewise.
1849         * intl/textdomain.c: Likewise.
1850         * intl/gettext.h: Assume <limits.h> exists.
1852 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
1854         * stdio-common/Makefile (tests): Add scanf11.
1855         * stdio-common/scanf11.c: New file.
1857 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
1859         * version.h (RELEASE): Define as development.
1860         (VERSION): Set to 2.2.90.
1862 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
1864         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
1865         * nis/nss_nis/nis-grp.c: Likewise.
1866         * nis/nss_nisplus/nisplus-grp.c: Likewise.
1868         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
1869         * nis/nss_nis/nis-pwd.c: Likewise.
1870         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
1872         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
1873         * nis/nss_nisplus/nisplus-parser.c: Likewise.
1874         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
1876         * nscd/grpcache.c: Use strtoul instead of atol.
1877         * nscd/pwdcache.c: Likewise.
1878         * nss/getent.c: Likewise.
1880 2001-11-27  Paul Eggert  <eggert@twinsun.com>
1882         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
1883         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
1885 2001-11-19  Bruno Haible  <bruno@clisp.org>
1887         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
1888         90%.
1889         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
1890         improves the quality of the hash function, especially for short
1891         strings.
1893 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
1895         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
1896         are found call conv_error and not input_error [PR libc/2669].
1898         * math/bits/mathcalls.h: Mark ceil and floor as const.
1899         Reported by David Mosberger.
1901 2001-11-21  Jim Meyering  <meyering@lucent.com>
1903         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
1904         Define to be __-prefixed.
1905         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
1907 2001-11-26  Andreas Jaeger  <aj@suse.de>
1909         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
1910         avoid warning.
1912 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
1914         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
1915         initialization.
1917         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
1918         unused variables.  Fix threshold for returning 1.0.
1920         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
1921         argument.
1923         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
1924         remove unused variables.
1926         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
1928         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
1929         include local math header files.
1931 2001-11-22  Andreas Jaeger  <aj@suse.de>
1933         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
1934         avoid warning.
1936 2001-11-21  Andreas Jaeger  <aj@suse.de>
1938         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
1940         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
1941         sys/debugreg.h
1943 2001-11-15  Andreas Jaeger  <aj@suse.de>
1945         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
1946         compilers that support it.
1948         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
1949         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
1950         * stdlib/stdlib.h: Likewise.
1952 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
1954         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
1955         statement with gotos.
1956         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
1958 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
1960         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
1962 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
1964         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
1966 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
1967             H.J. Lu  <hjl@gnu.org>
1969         * Versions.def (libc): Add GCC_3.0.
1970         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
1971         if gcc supports this flag.
1972         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
1973         (gcc3): Allow glibc to be compiled with gcc 3.x.
1974         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
1975         * config.make.in (static-libgcc, unwind-find-fde): Add.
1976         * Makerules (build-shlib-helper, build-module-helper): Use it.
1977         * scripts/versions.awk: Make sure GLIBC_ versions come first.
1978         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
1979         necessary.
1980         (_fini): Call __deregister_frame_info_bases if
1981         __register_frame_info_bases was used to register.
1982         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
1983         for GLIBC_2.0.
1984         (__register_frame_info_bases, __register_frame_info_table_bases,
1985         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
1986         * elf/Makefile (routines): Add unwind-dw2-fde.
1987         (shared-only-routines): Add unwind-dw2-fde.
1988         * sysdeps/alpha/gccframe.h: New file.
1989         * sysdeps/arm/gccframe.h: New file.
1990         * sysdeps/generic/framestate.c: New file.
1991         * sysdeps/generic/dwarf2.h: New file.
1992         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
1993         * sysdeps/generic/unwind-dw2-fde.c: New file.
1994         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
1995         * sysdeps/generic/unwind-dw2-fde.h: New file.
1996         * sysdeps/generic/unwind-dw2.c: New file.
1997         * sysdeps/generic/unwind-pe.h: New file.
1998         * sysdeps/generic/unwind.h: New file.
1999         * sysdeps/hppa/gccframe.h: New file.
2000         * sysdeps/i386/gccframe.h: New file.
2001         * sysdeps/m68k/gccframe.h: New file.
2002         * sysdeps/mips/gccframe.h: New file.
2003         * sysdeps/powerpc/gccframe.h: New file.
2004         * sysdeps/s390/gccframe.h: New file.
2005         * sysdeps/sh/gccframe.h: New file.
2006         * sysdeps/sparc/gccframe.h: New file.
2007         * sysdeps/vax/gccframe.h: New file.
2008         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
2009         Set on all architectures except ia64.
2010         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
2011         for i386.
2012         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
2013         __deregister_frame_info): Move to elf/Versions.
2014         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
2015         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2016         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2017         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
2018         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
2019         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2020         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2021         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2022         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2023         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
2024         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
2025         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
2026         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
2027         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
2028         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
2029         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
2030         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
2031         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
2033 2001-11-15  Jeff Law  <law@redhat.com>
2035         * posix/regex.c (uintptr_t): Do not provide a definition if the
2036         system provided one.
2038 2001-11-13  Roland McGrath  <roland@frob.com>
2040         * stdio-common/tmpfile.c: Moved to ...
2041         * sysdeps/generic/tmpfile.c: ... here.
2042         * sysdeps/mach/hurd/tmpfile.c: New file.
2044         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
2045         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
2046         (fopenport): Define as weak alias.
2048         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
2049         * libio/libioP.h: ... to here.
2051 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
2053         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
2054         program header twice.  Construct list with the needed information.
2056 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
2058         * po/ca.po: Update from translation team.
2060         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
2061         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
2062         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
2063         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
2065 2001-11-10  Andreas Jaeger  <aj@suse.de>
2067         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
2068         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2069         Contributed by Stephen L Moshier <moshier@mediaone.net>.
2071 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
2073         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
2074         correctly.
2075         * elf/dl-load.c (is_dst): New function.
2076         (_dl_dst_count): Use is_dst to check for DST variable.
2077         (_dl_dst_substitute): Likewise.
2079 2001-11-09  Roland McGrath  <roland@frob.com>
2081         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
2082         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
2083         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
2084         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
2085         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
2086         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
2087         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
2088         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
2089         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
2090         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
2091         * sysdeps/mach/hurd/powerpc/Dist: New file.
2093         * hurd/privports.c (__get_privileged_ports):
2094         Only contact the proc server if necessary for this call.
2095         Suggested by Neal H Walfield <neal@cs.uml.edu>.
2096         Check error return for mach_port_mod_refs.
2098 2001-11-09  Andreas Schwab  <schwab@suse.de>
2100         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
2102 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
2104         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
2105         object is always the last in the list.
2106         (_dl_map_object_from_fd): Delete code to remove from object list
2107         when DF_1_NOOPEN is seen.  This is done in lose.
2109 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
2111         * elf/dl-object.c (_dl_new_object): Various small optimizations.
2113 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
2115         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
2116         HWCAP_CHECK macro code.
2118         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
2119         Now returns MAP_FAILED on error.
2120         * elf/rtld.c: Adjust caller.
2121         * sysdeps/generic/dl-cache.c: Likewise.
2122         * sysdeps/generic/ldsodefs.h: Adjust description.
2124         * elf/dl-version.c (match_symbol): Optimize error handling for size.
2125         (_dl_check_map_versions): Likewise.
2127 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
2129         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
2130         _dl_signal_error directly, always use lose.  Set fd to -1 after
2131         file is closed.
2132         (lose): Don't call close if fd == -1.
2134 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
2136         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
2137          Also fix typo @code {mbsinit} to @code{mbsinit}.
2139 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
2141         * elf/dl-profile.c: Replace state variable with simple flag named
2142         running.  Remove commented-out code.
2144         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
2145         (_dl_init_paths): Likewise.
2146         (_dl_map_object_from_fd): Likewise.
2147         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
2149 2001-11-06  Roland McGrath  <roland@frob.com>
2151         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
2152         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
2154         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
2155         sysdeps/powerpc/elf/sysdep.h.
2156         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
2158 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
2160         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
2161         speed.
2162         (process_envvars): Some more optimizations.
2163         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
2165         * elf/elf.h: Add dynamic tag definitions for prelinking.
2167         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
2168         Rewrite code to remove environment varables for SUID binaries.
2169         Small optimization in LD_PROFILE handling.
2170         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
2171         changes.
2172         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
2174         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
2176         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
2177         strings.  Change type of second parameter.
2178         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
2179         for last change.
2181         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
2183 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
2185         * manual/string.texi: Fix typos.
2186         * manual/examples/argp-ex2.c: Likewise.
2188 2001-11-05  Roland McGrath  <roland@frob.com>
2190         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
2191         the more-specific unix/sysv/linux/powerpc file and breaks everything.
2192         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
2193         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
2194         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
2195         here, put under [__ELF__].
2197 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
2199         * manual/charset.texi: Extensive editing work.
2200         * manual/nss.texi: Likewise.
2201         Changes by Dennis Grace <dgrace@us.ibm.com>.
2203 2001-11-04  Roland McGrath  <roland@frob.com>
2205         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
2206         parameter to dir_mkfile.
2208 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
2210         * string/bits/string2.h (__strndup): If n is smaller than len, set
2211         len to n + 1.
2212         * string/tester.c (test_strndup): New function.
2213         (main): Call it.
2215 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
2217         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
2219         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
2220         * scripts/cpp: New file.
2222         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
2223         for rtld_search_dirs content.  Minor optimizations.
2225 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
2227         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
2228         avoiding unnecessary duplication.
2230 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
2232         * elf/dl-load.c (_dl_map_object): If library was found using
2233         LD_LIBRARY_PATH, don't try RUNPATH list.
2235 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2237         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
2238         Correct second argument of register_dump call.
2239         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
2240         Likewise.
2242 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
2244         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
2245         modules.
2246         * iconvdata/TESTS: Likewise.
2247         * iconvdata/gconv-modules: Likewise.
2248         * iconvdata/ibm1132.c: New file.
2249         * iconvdata/ibm1132.h: New file.
2250         * iconvdata/ibm1133.c: New file.
2251         * iconvdata/ibm1133.h: New file.
2252         * iconvdata/ibm1162.c: New file.
2253         * iconvdata/ibm1162.h: New file.
2254         * iconvdata/testdata/IBM1132: New file.
2255         * iconvdata/testdata/IBM1132..UTF8: New file.
2256         * iconvdata/testdata/IBM1133: New file.
2257         * iconvdata/testdata/IBM1133..UTF8: New file.
2258         * iconvdata/testdata/IBM1162: New file.
2259         * iconvdata/testdata/IBM1162..UTF8: New file.
2260         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
2262         * string/string.h: Fix typo in comment.
2263         * wcsmbs/wchar.h: Likewise.
2265 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
2267         * manual/getopt.texi (getopt_long, getopt_long_only): Include
2268         const in type of longopts parameter.
2270 2001-10-29  Andreas Jaeger  <aj@suse.de>
2272         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
2274 2001-10-29  Kevin Ryde  <user42@zip.com.au>
2276         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
2277         output, clarify `#' behaviour on 0.
2278         (Floating-Point Conversions): Clarify that %g only uses %e when
2279         the exponent would be greater than 1.
2281 2001-10-28  Roland McGrath  <roland@frob.com>
2283         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
2284         * sysdeps/mach/powerpc/machine-sp.h: New file.
2285         * sysdeps/mach/powerpc/sysdep.h: New file.
2286         * sysdeps/mach/powerpc/thread_state.h: New file.
2288         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
2289         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
2290         expect to need the same thing on every platform.
2292         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
2293         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
2295         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
2296         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
2297         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
2298         Move all these assembly-related definitions to ...
2299         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
2301         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
2302         by Peter Bruin <pjbruin@dds.nl>.
2304         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
2305         packing results for a `poll' call.
2307 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
2309         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
2310         correctly.
2311         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
2312         bracket expression.
2314         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
2315         nrules value.
2316         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
2318 2001-10-24  H.J. Lu  <hjl@gnu.org>
2320         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
2321         Use __BEGIN_DECLS/__END_DECLS around prototypes.
2322         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
2324 2001-10-21  Jim Meyering  <meyering@lucent.com>
2326         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
2327         this code would end up calling gettext even in packages built
2328         with --disable-nls.
2329         * posix/getopt.c (_): Likewise.
2330         * posix/regex.c (_): Likewise.
2332 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
2334         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
2335         lookup not ip6.int.
2336         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
2337         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
2339 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
2341         * misc/sys/cdefs.h (__attribute_used__): Define.
2342         * elf/rtld.c (_dl_start): Add __attribute_used__.
2343         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
2345 2001-10-25  Andreas Schwab  <schwab@suse.de>
2347         * stdlib/a64l.c: Expect least significant digit first.
2348         * stdlib/l64a.c: Produce least significant digit first.
2349         * stdlib/Makefile (tests): Add test-a64l.
2350         * stdlib/test-a64l.c: New file.
2351         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
2353 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
2355         * po/sk.po: Update from translation team.
2357 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
2359         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
2361 2001-10-18  Andreas Schwab  <schwab@suse.de>
2363         * math/libm-test.inc (print_ulps): Print ulp values rounded to
2364         next whole number.
2365         (print_function_ulps): Likewise.
2366         (print_complex_function_ulps): Likewise.
2367         (print_max_error): Likewise.
2368         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
2370 2001-10-16  Andreas Schwab  <schwab@suse.de>
2372         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
2373         implementation.
2375         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
2376         BSD_SETJMP or BSD__SETJMP is defined, resp.
2377         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
2378         a tail call to __sigsetjmp that would require extending the
2379         caller's frame.
2380         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
2381         * sysdeps/m68k/bsd-setjmp.S: Deleted.
2382         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
2383         Reported by Jes Sorensen <jes@trained-monkey.org>.
2385 2001-10-16  Andreas Jaeger  <aj@suse.de>
2387         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
2388         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
2389         close PR libc/2589.
2391 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
2393         * po/ca.po: New file.  Contributed by the translation team.
2395 2001-10-15  Ralf Baechle  <ralf@gnu.org>
2397         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
2398         a varargs prototype.  Remove dependency from kernel header files.
2400         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
2401         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
2403 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
2405         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
2406         to generate hexadecimal identifier.
2407         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
2409 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
2411         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
2413 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
2415         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
2416         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
2417         Contributed by Stephen L Moshier <moshier@mediaone.net>.
2419         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
2420         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2421         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
2422         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
2423         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
2424         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
2426         * timezone/africa: Update from tzdata2001d.
2427         * timezone/asia: Likewise.
2428         * timezone/australasia: Likewise.
2429         * timezone/backward: Likewise.
2430         * timezone/europe: Likewise.
2431         * timezone/leapseconds: Likewise.
2432         * timezone/northamerica: Likewise.
2433         * timezone/southamerica: Likewise.
2434         * timezone/zone.tab: Likewise.
2436 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2438         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
2439         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
2441 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
2443         * elf/elf.h (PT_TLS): New definition.
2445 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
2447         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
2448         bits/errno.h
2450 2001-10-07  Roland McGrath  <roland@frob.com>
2452         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
2454 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
2456         * elf/elf.h: Add more ELFOSABI_* constants.
2458 2001-10-04  Ben Collins  <bcollins@debian.org>
2460         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
2461         decleration of __need_wchar_t.
2463 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
2465         * string/bits/string2.h (__strsep_g): Add prototype.
2466         (__strsep): Use it.
2467         * string/Versions (__strsep): Remove.
2468         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
2470 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
2472         * manua/llio.texi: Clarify file references added by mmap.
2473         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
2475 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
2477         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
2478         Add sc_loadrs and sc_rbs_bas to match current kernel.
2480 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
2482         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
2484         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
2486 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
2488         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
2489         object has been bumped because of relocation dependency, avoid
2490         duplicates in l_scope.
2491         (show_scope): Fix typos.
2492         * elf/Makefile: Add rules to build and run reldep6.
2493         * elf/reldep6.c: New file.
2494         * elf/reldep6mod0.c: New file.
2495         * elf/reldep6mod1.c: New file.
2496         * elf/reldep6mod2.c: New file.
2497         * elf/reldep6mod3.c: New file.
2498         * elf/reldep6mod4.c: New file.
2500 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
2502         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
2503         sparc64_fixup_plt.
2504         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
2505         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
2506         for non-lazy binding. Fix .plt[32768+] handling.
2507         (elf_machine_plt_value): Don't add addend.
2508         (elf_machine_rela): Call sparc64_fixup_plt instead of
2509         elf_machine_fixup_plt.
2510         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
2511         dynamic linker at 0xfffff800XXXXXXXX.
2513         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
2515 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
2517         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
2519 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
2521         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
2522         declare __cmsg_data field if its size would be bigger than 0.
2523         (CMSG_DATA): Adjust accordingly.
2524         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
2525         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
2526         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
2527         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
2528         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2529         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
2530         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2532 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
2534         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
2535         * iconvdata/testdata/IBM1160: New file.
2536         * iconvdata/testdata/IBM1160..UTF8: New file.
2537         * iconvdata/testdata/IBM1161: New file.
2538         * iconvdata/testdata/IBM1161..UTF8: New file.
2539         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
2541 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
2543         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
2544         UL_SETFSIZE computations better.
2546         * rt/Makefile: Remove use of filter for librt again.
2548         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
2549         UL_SETFSIZE computations better.
2551         * string/Versions: Export __strsep for GLIBC_2.2.5.
2552         * string/bits/string2.h: Define all __STRING_INLINE functions if
2553         _FORCE_INLINES is defined.
2554         Use int instead of char of parameter types.
2555         (__strsep): Don't use __strsep_g.  Don't define it.
2556         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
2557         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
2558         __strcpy_small.
2559         (__stpcpy_a_small): Renamed from __stpcpy_small.
2560         (__strcspn_c1): Don't define if _FORCE_INLINES.
2561         (__strspn_c1): Likewise.
2563 2001-09-22  Ben Collins  <bcollins@debian.org>
2565         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
2566         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
2567         * sysdeps/ia64/bits/sigaction.h: Likewise.
2568         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
2570 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
2572         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
2574 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
2576         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
2578 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
2580         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
2582 2001-09-20  H.J. Lu  <hjl@gnu.org>
2584         * include/dlfcn.h (__RTLD_SPROF): New definiton.
2585         * elf/dl-open.c (dl_open_worker): Return immediately after loading
2586         for __RTLD_SPROF.
2587         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
2588         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
2590 2001-09-20  H.J. Lu  <hjl@gnu.org>
2592         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
2593         don't add 1.
2595 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
2597         * nss/getent.c: Accept -s parameter to overwrite rules in
2598         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
2600         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
2601         with as many ".0" as necessary to form a complete address
2602         inet_network understands.
2604         * nss/getent.c: Various cleanups.  Use simpler and fewer function
2605         calls.
2607 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2609         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
2610         _JMPBUF_UNWINDS.
2611         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
2613 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
2615         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
2616         IBM1161.
2617         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
2618         * iconvdata/ibm1160.c: New file.
2619         * iconvdata/ibm1160.h: New file.
2620         * iconvdata/ibm1161.c: New file.
2621         * iconvdata/ibm1161.h: New file.
2622         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
2624 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
2626         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
2627         difference between base address and first PT_LOAD's virtual address,
2628         not the base address.
2630 2001-09-11  Tom Rix  <trix@redhat.com>
2632         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
2633         ifdef for __getopt_clean_environment.
2634         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
2636 2001-09-22  Andreas Jaeger  <aj@suse.de>
2638         * elf/reldep4.c (main): Add proper prototype to fix warning.
2640         * elf/reldep5.c (main): Remove unused variable.
2642         * math/math_private.h: Add prototypes.
2644 2001-09-21  Andreas Jaeger  <aj@suse.de>
2646         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
2647         * sysdeps/x86_64/Dist: New file.
2648         * sysdeps/x86_64/soft-fp/Dist: New file.
2650         * sysdeps/gnu/Dist: Remove eval.c.
2652 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
2654         * malloc/memusage.c (realloc): Don't count already allocated
2655         memory in the sums.
2656         (me): Always use dlsym() to find the real implementations.
2658         * malloc/memusage.sh: Make -n option actually do something.
2660 2001-09-20  Andreas Jaeger  <aj@suse.de>
2662         * elf/elf.h (R_390_NUM): Correct value.
2664         * Versions.def: Add missing versions 2.2.3 for libthread_db and
2665         libpthread.
2667         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
2668         for x86-64, install x86-64 into */lib64.
2670         * shlib-versions: Add x86-64.
2672         * elf/elf.h: Add x86-64 relocations.
2674 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
2676         * po/fr.po: Update from translation team.
2678 2001-09-19  Andreas Jaeger  <aj@suse.de>
2680         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
2681         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
2682         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
2683         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
2684         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
2685         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
2686         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
2687         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
2688         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
2689         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
2690         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
2691         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
2692         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
2693         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
2694         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
2695         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
2696         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
2697         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
2698         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
2699         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
2700         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
2701         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
2702         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
2703         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
2704         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
2705         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
2706         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
2707         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
2708         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
2709         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
2710         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
2711         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
2712         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
2713         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
2714         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
2715         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
2716         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
2717         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
2718         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
2719         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
2720         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
2721         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
2722         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
2723         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
2724         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
2725         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
2726         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
2727         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
2728         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
2729         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
2730         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
2731         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
2732         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
2733         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
2734         * sysdeps/unix/x86_64/sysdep.S: New file.
2735         * sysdeps/unix/x86_64/sysdep.h: New file.
2736         * sysdeps/x86_64/Implies: New file.
2737         * sysdeps/x86_64/Makefile: New file.
2738         * sysdeps/x86_64/Versions: New file.
2739         * sysdeps/x86_64/__longjmp.S: New file.
2740         * sysdeps/x86_64/abort-instr.h: New file.
2741         * sysdeps/x86_64/atomicity.h: New file.
2742         * sysdeps/x86_64/bits/endian.h: New file.
2743         * sysdeps/x86_64/bits/setjmp.h: New file.
2744         * sysdeps/x86_64/bits/string.h: New file.
2745         * sysdeps/x86_64/bp-asm.h: New file.
2746         * sysdeps/x86_64/bsd-_setjmp.S: New file.
2747         * sysdeps/x86_64/bsd-setjmp.S: New file.
2748         * sysdeps/x86_64/dl-machine.h: New file.
2749         * sysdeps/x86_64/elf/initfini.c: New file.
2750         * sysdeps/x86_64/elf/start.S: New file.
2751         * sysdeps/x86_64/ffs.c: New file.
2752         * sysdeps/x86_64/ffsll.c: New file.
2753         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
2754         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
2755         * sysdeps/x86_64/fpu/e_acosl.c: New file.
2756         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
2757         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
2758         * sysdeps/x86_64/fpu/e_expl.c: New file.
2759         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
2760         * sysdeps/x86_64/fpu/e_log10l.S: New file.
2761         * sysdeps/x86_64/fpu/e_log2l.S: New file.
2762         * sysdeps/x86_64/fpu/e_logl.S: New file.
2763         * sysdeps/x86_64/fpu/e_powl.S: New file.
2764         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
2765         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
2766         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
2767         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
2768         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
2769         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
2770         * sysdeps/x86_64/fpu/fegetenv.c: New file.
2771         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
2772         * sysdeps/x86_64/fpu/fegetround.c: New file.
2773         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
2774         * sysdeps/x86_64/fpu/fesetenv.c: New file.
2775         * sysdeps/x86_64/fpu/fesetround.c: New file.
2776         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
2777         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
2778         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
2779         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
2780         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
2781         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
2782         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
2783         * sysdeps/x86_64/fpu/s_atanl.c: New file.
2784         * sysdeps/x86_64/fpu/s_cosl.S: New file.
2785         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
2786         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
2787         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
2788         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
2789         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
2790         * sysdeps/x86_64/fpu/s_logbl.c: New file.
2791         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
2792         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
2793         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
2794         * sysdeps/x86_64/fpu/s_rintl.c: New file.
2795         * sysdeps/x86_64/fpu/s_significandl.c: New file.
2796         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
2797         * sysdeps/x86_64/fpu/s_sinl.S: New file.
2798         * sysdeps/x86_64/fpu/s_tanl.S: New file.
2799         * sysdeps/x86_64/gmp-mparam.h: New file.
2800         * sysdeps/x86_64/hp-timing.c: New file.
2801         * sysdeps/x86_64/hp-timing.h: New file.
2802         * sysdeps/x86_64/htonl.S: New file.
2803         * sysdeps/x86_64/memusage.h: New file.
2804         * sysdeps/x86_64/setjmp.S: New file.
2805         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
2806         * sysdeps/x86_64/stackinfo.h: New file.
2807         * sysdeps/x86_64/sysdep.h: New file.
2808         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
2810         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
2811         L Moshier.
2813 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2815         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
2816         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
2818 2001-09-18  Andreas Schwab  <schwab@suse.de>
2820         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
2821         list, now that l_scope is a pointer.
2823         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
2824         scope list.
2826 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2828         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
2829         (elf_machine_rela_relative): Add a missing declaration.
2831 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
2833         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
2834         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
2835         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
2836         ldd-rewrite scripts.
2838 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2840         * elf/ldd.bash.in: Update copyright message.
2842 2001-09-17  H.J. Lu  <hjl@gnu.org>
2844         * hurd/hurdmalloc.c (bcopy): Removed.
2845         (realloc): Replace bcopy with memcpy.
2846         * hurd/path-lookup.c (file_name_path_scan): Likewise.
2847         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
2848         * sunrpc/rpcinfo.c (pmapdump): Likewise.
2850         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
2851         (gethostbyaddr): Likewise.
2852         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
2854 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2856         * sysdeps/gnu/eval.c: Removed.
2858 2001-09-18  Andreas Jaeger  <aj@suse.de>
2860         * sysdeps/i386/fpu/s_logbl.S: Move to ...
2861         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
2863         * sysdeps/i386/fpu/s_rintl.S: Move to ...
2864         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
2866         * sysdeps/i386/fpu/s_significandl.S: Move to ...
2867         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
2869 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
2871         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
2872         nrules value.
2874 2001-09-14  H.J. Lu  <hjl@gnu.org>
2876         * sysdeps/mips/fpu/libm-test-ulps: Updated.
2878 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
2880         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
2881         Patch by Florian La Roche <laroche@redhat.com>.
2883         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
2885         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
2886         ETHER_CRC_LEN.
2888 2001-09-14  Andreas Schwab  <schwab@suse.de>
2890         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
2891         Sumner <bls@sgi.com>.
2892         * posix/execlp.c: Likewise.
2894 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
2896         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
2897         is already found earlier in the search scope.
2899 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
2901         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
2902         filter.
2904 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
2906         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
2908 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
2910         * config.h.in: Enforce optimization to be used.
2911         * Makeconfig (preprocess-versions): Define ASSEMBLER.
2912         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
2913         * posix/Makefile (annexc-CFLAGS): Define to -O.
2914         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
2916 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
2918         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
2919         Patch by Stephan Kulow.
2921 2001-09-08  Ben Collins  <bcollins@debian.org>
2923         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
2924         usage of RESOLVE() (r_type, not reloc->r_type).
2926 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
2928         * elf/dl-object.c: Avoid allocating extra memory block for name.
2929         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
2930         allocated separately.
2931         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2933 2001-09-08  H.J. Lu  <hjl@gnu.org>
2935         * po/zh_TW.po: Fix a typo.
2937 2001-09-07  Tom Rix  <trix@redhat.com>
2939         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
2941 2001-08-26  Tom Rix  <trix@redhat.com>
2943         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
2944         command line options.
2945         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
2946         * sysdeps/unix/sysv/aix/start.c: Removed.
2947         * sysdeps/unix/sysv/aix/start-libc.c: New file.
2948         * sysdeps/unix/sysv/aix/init-first.c: New file.
2949         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
2951 2001-09-08  Ben Collins  <bcollins@debian.org>
2953         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
2954         * sysdeps/generic/dl-machine.h: Likewise.
2955         * sysdeps/hppa/dl-fptr.c: Likewise.
2956         * sysdeps/ia64/dl-fptr.c: Likewise.
2957         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
2958         * sysdeps/mips/dl-machine.h: Likewise.
2959         * sysdeps/mips/mips64/dl-machine.h: Likewise.
2960         * sysdeps/powerpc/dl-machine.c: Likewise.
2962 2001-09-07  Ben Collins  <bcollins@debian.org>
2964         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
2966         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
2968 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
2970         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
2971         dependencies if necessary.
2973         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
2974         loaded directly) determine length if l_initfini list by iterating
2975         over its elements.  Minor optimizations.
2976         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
2977         for dependency objects.
2978         If object was already loaded check whether any of the dependencies
2979         is already on the relocation dependency list.  If yes, remove the
2980         latter.  Minor optimizations.
2981         * elf/dl-lookup.c (add_dependency): Add check for self reference of
2982         maps here.  Search l_initfini list only if the object was loaded
2983         directly and not only as a dependency.
2984         (_dl_lookup_symbol): Add relocation dependency also if object
2985         is not in global scope.  Remove test for self-reference here.
2986         (_dl_lookup_versioned_symbol): Likewise.
2987         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
2988         element of first name record.
2989         * elf/loadtest.c: Add some more test to recognize early if an object
2990         wasn't unloaded.
2991         * elf/Makefile: Add rules to build and run reldep5.
2992         * elf/reldep5.c: New file.
2993         * elf/reldepmod5.c: New file.
2994         * elf/reldepmod6.c: New file.
2996         * elf/reldep2.c: Fix typo.
2998 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
3000         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
3001         elements.  Change l_scope to be a pointer only.
3002         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
3003         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
3004         here add searchlist of newly open file to the dependency's scope.
3005         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
3006         only searchlist from its scope.  Free own scope array if necessary.
3007         * elf/Makefile (tests): Add dblload and dblunload now.
3009 2001-09-06  Andreas Jaeger  <aj@suse.de>
3011         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
3012         Stephen L Moshier.
3014 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
3016         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
3017         they both fail.
3018         * elf/dblload.c: New file.
3019         * elf/dblloadmod1.c: New file.
3020         * elf/dblloadmod2.c: New file.
3021         * elf/dblloadmod3.c: New file.
3022         * elf/dblunload.c: New file.
3024 2001-09-04  Richard Henderson  <rth@redhat.com>
3026         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
3027         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
3029 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
3031         Correct very misleading message for error in failed runtime relocation.
3032         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
3033         place of the error.
3034         (_dl_signal_cerror): Likewise.
3035         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
3036         * elf/dl-close.c: Likewise.
3037         * elf/dl-deps.c: Likewise.
3038         * elf/dl-load.c: Likewise.
3039         * elf/dl-lookup.c: Likewise.
3040         * elf/dl-open.c: Likewise.
3041         * elf/dl-reloc.c: Likewise.
3042         * elf/dl-sym.c: Likewise.
3043         * elf/dl-version.c: Likewise.
3044         * sysdeps/generic/dl-sysdep.c: Likewise.
3046 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
3048         * iconv/strtab.c (strtabinit): Initialize null Strent.
3049         (newstring): Move len == 0 handling...
3050         (strtabadd): ...here.
3051         If len == 1, return null Strent.
3052         When inserting a suffix of an existing string, check if
3053         it is not equal to some suffix already recorded.
3054         Copy left and right members over if adding longer string.
3056 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
3058         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
3060         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
3061         (__syscall_gethostname): Add prototype.
3063 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
3065         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
3067 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
3069         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
3071 2001-08-27  Roland McGrath  <roland@frob.com>
3073         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
3074         short, copy that much into NAME anyway before returning error.
3076 2001-09-01  Richard Henderson  <rth@redhat.com>
3078         * sysdeps/alpha/elf/Dist: Remove file.
3079         * sysdeps/alpha/elf/Makefile: Remove file.
3080         * sysdeps/alpha/elf/crtbegin.S: Remove file.
3081         * sysdeps/alpha/elf/crtend.S: Remove file.
3082         * sysdeps/alpha/elf/initfini.c: New file.
3084 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
3086         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
3087         * iconv/tst-iconv3.c: Likewise.
3089 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
3091         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
3093 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
3095         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
3096         export it.
3097         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
3098         * iconv/iconv_prog.c (insert_cache): New function.
3099         (print_known_names): If cache is used call insert_cache to use the
3100         information from the cache [PR libc/2509].
3102 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
3104         * time/strptime.c (strptime_internal): Recognize 'l' format and
3105         handle it like 'I' for symmetry with strftime.
3107 2001-08-31  Richard Henderson  <rth@redhat.com>
3109         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
3110         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
3111         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
3112         (print_statistics): Make scalar unsigned long long.
3113         * sysdeps/alpha/hp-timing.h: New file.
3115 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
3117         * stdio-common/perror.c (perror): Save errno early, pass it
3118         down to perror_internal.
3119         (perror_internal): Add errnum argument.
3121 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
3123         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
3124         Don't add old memory content for R_ALPHA_REFQUAD.
3126 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
3128         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
3129         memory correctly.
3131         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
3132         instead of open, __close instead of close, __getpagesize instead
3133         of getpagesize.
3135         * string/argz-stringify.c (__argz_stringify): Use __strnlen
3136         instead of strnlen.
3137         * include/string.h (strndupa): Redefine here to use __strnlen
3138         instead of strnlen.
3139         * string/strndup.c (__strndup): Use __strnlen not strnlen.
3141         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
3142         connected).
3144 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
3146         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
3147         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
3148         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
3149         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
3150         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
3151         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
3152         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
3154 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
3156         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
3158 2001-08-30  Andreas Jaeger  <aj@suse.de>
3160         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
3161         contributed Stephen L Moshier.
3163 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
3165         * sunrpc/etc.rpc (sgi_fam): Add.
3167 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
3169         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
3171 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
3173         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
3174         first is from a previous call.
3175         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
3177 2001-08-29  Andreas Schwab  <schwab@suse.de>
3179         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
3181 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3183         * config.make.in (INSTALL_SCRIPT): Define.
3184         * Makeconfig (INSTALL_SCRIPT): Define.
3185         * Makerules (do-install-script): New macro to install scripts using
3186         INSTALL_SCRIPT.
3187         (install-bin-script): New rule to install scripts with
3188         do-install-script.
3189         (install-bin-script-nosubdir): New rule.
3190         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
3191         (distinfo-vars): Add $(install-bin-script).
3192         * Rules (others): Likewise.
3193         * Makefile (glibcbug): Install with install-bin-script.
3194         * debug/Makefile (xtrace): Likewise.
3195         (catchsegv): Likewise.
3196         * elf/Makefile (ldd): Likewise.
3197         * malloc/Makefile (mtrace): Likewise.
3198         * timezone/Makefile (tzselect): Likewise.
3200 2001-08-29  H.J. Lu  <hjl@gnu.org>
3202         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
3203         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
3204         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
3206 2001-08-29  Andreas Schwab  <schwab@suse.de>
3208         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
3210 2001-08-28  H.J. Lu  <hjl@gnu.org>
3212         * Makeconfig (combreloc-LDFLAGS): New variable.
3213         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
3214         * config.make.in (have-z-combreloc): New variable.
3215         * configure.in: Substitute libc_cv_z_combreloc.
3217 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
3219         * po/sv.po: Update from translation team.
3220         * po/fr.po: Likewise.
3221         * po/da.po: Likewise.
3223 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3225         * Makerules: Fix a typo: MD% -> MD5.
3227 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
3229         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
3230         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
3232 2001-08-28  Andreas Jaeger  <aj@suse.de>
3234         * manual/libc-texinfo.sh: Add entry about free manuals.
3236         * manual/contrib.texi (Contributors): Fix cross reference.
3238         * manual/libc.texinfo (Copying): Include freemanuals.
3240         * manual/Makefile (appendices): Add freemanuals.
3242         * manual/freemanuals.texi: New file.
3243         Patch by Brian Youmans <3diff@gnu.org>.
3245         * manual/libm-err-tab.pl: Pretty print more platforms, print a
3246         smaller table.
3248         * manual/math.texi (Errors in Math Functions): Fix grammar, start
3249         table on separate page.
3250         Patch by Brian Youmans <3diff@gnu.org>.
3252 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
3254         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
3255         the connection went down after we first used it try to connect
3256         again and resend the message before printing to the console.
3257         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
3259 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
3261         * string/tst-strlen.c (main): Test strnlen (, -1) too.
3262         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
3263         bit set.
3265 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
3267         * iconv/strtab.c (searchstring): Use correct length for comparison.
3268         (strtabadd): Account total size correct if new string has old string as
3269         substring.
3271 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
3273         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
3275 2001-08-27  Andreas Jaeger  <aj@suse.de>
3277         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
3279         * math/libm-test.inc (j0_test): Add extra tests.
3280         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
3281         not x, in Hankel approximation.
3282         Patches by Stephen L Moshier.
3284 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
3286         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
3287         link_map.
3289         * configure.in: Fix test for .rela.dyn section.
3291         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
3293 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
3295         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
3296         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
3297         Pass type_class to _dl_lookup_*.
3298         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
3299         Pass around just type_class instead of noexec, noplt pair.
3300         (_dl_lookup_versioned_symbol): Likewise.
3301         (_dl_lookup_symbol_skip): Pass around just type_class instead of
3302         noexec, noplt pair.
3303         (_dl_lookup_versioned_symbol_skip): Likewise.
3304         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
3305         * elf/do-lookup.h (do_lookup): Likewise.
3306         * include/link.h (struct link_map): Replace noexec and noplt fields
3307         in l_lookup_cache with type_class field.
3308         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
3309         ELF_RTYPE_CLASS_COPY): Define.
3310         Adjust prototypes for _dl_lookup_symbol and
3311         _dl_lookup_versioned_symbol.
3312         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
3313         elf_machine_lookup_noexec_p): Remove.
3314         (elf_machine_type_class): Define.
3315         * sysdeps/arm/dl-machine.h: Likewise.
3316         * sysdeps/hppa/dl-machine.h: Likewise.
3317         * sysdeps/cris/dl-machine.h: Likewise.
3318         * sysdeps/i386/dl-machine.h: Likewise.
3319         * sysdeps/ia64/dl-machine.h: Likewise.
3320         * sysdeps/m68k/dl-machine.h: Likewise.
3321         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3322         * sysdeps/mips/dl-machine.h: Likewise.
3323         * sysdeps/powerpc/dl-machine.h: Likewise.
3324         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3325         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3326         * sysdeps/sh/dl-machine.h: Likewise.
3327         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3328         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3330 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
3332         * manual/message.texi (Advanced gettext functions): Change
3333         description of plural forms for Slovak.
3334         Reported by Marcel Telka <marcel@telka.sk>.
3336         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
3337         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
3339 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
3341         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
3342         typo.  Patch by Florian La Roche <laroche@redhat.com>.
3344 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
3346         * include/link.h (struct link_map): Add l_lookup_cache element.
3347         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
3348         (RESOLVE_MAP): Likewise.
3349         (_dl_relocate_object): Remove cache initialization.
3350         * elf/dl-lookup.c: Rip out cache handling code.
3351         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
3352         declarations.
3354         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
3355         remove some __builtin_expect.
3356         (_dl_lookup_versioned_symbol): Likewise.
3358         * config.h.in: Add HAVE_Z_COMBRELOC.
3359         * configure.in: Add test for -z combreloc.
3361         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
3362         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
3363         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
3364         case to almost no code.
3366 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
3368         * po/tr.po: Update from translation team.
3370 2001-08-24  Andreas Jaeger  <aj@suse.de>
3372         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
3373         make clean works.
3375 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3377         * elf/rtld.c (print_statistics): Printf % after percent values.
3378         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
3380         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
3381         don't have to compute the hash value and initialize current_value.
3382         Move reference_name variable to where it is needed.
3383         (_dl_lookup_versioned_symbol): Likewise.
3385 2001-08-24  Roland McGrath  <roland@frob.com>
3387         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
3388         Just test that strerror returns non-null for a few errno codes.
3390 2001-08-23  Roland McGrath  <roland@frob.com>
3392         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
3393         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
3395         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
3397         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
3398         __mach_reply_port.
3400 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3402         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
3403         returns NULL.
3405         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
3406         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
3407         doesn't do it.
3408         * elf/rtld.c: Include <sys/param.h>.
3409         * elf/dl-reloc.c: Likewise.
3411 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3413         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
3414         empty to prevent junk from being generated.
3415         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
3417 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
3419         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
3420         records.  Rename endrel to relative, initialize it to r, and use it
3421         in elf_machine_rel_relative calls.  Point r after relative relocs.
3423 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3425         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
3426         of R_386_NONE.
3428 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
3430         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
3431         necessary.  Undefine newly defined macros at the end.
3432         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
3433         Rename from elf_machine_rel_relative.
3434         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
3435         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
3436         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
3437         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
3438         Likewise.
3439         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
3440         Likewise.
3441         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
3442         Fix argument types.
3443         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
3444         Fix argument types.
3445         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
3446         Likewise.  Fix argument types.
3447         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
3448         Likewise.  Fix argument types.
3449         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
3450         Fix argument types.
3451         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
3452         ElfW(Rel) in argument.
3453         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
3454         function.
3456 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
3458         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
3460 2001-08-24  Andreas Jaeger  <aj@suse.de>
3462         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
3463         Stephen L Moshier <moshier@mediaone.net>.
3465 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3467         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
3468         first if RELCOUNT is set.
3470         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
3471         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
3472         elf_machine_rel_relative.
3473         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
3474         Minor optimizations.
3475         * sysdeps/arm/dl-machine.h: Likewise.
3476         * sysdeps/cris/dl-machine.h: Likewise.
3477         * sysdeps/hppa/dl-machine.h: Likewise.
3478         * sysdeps/i386/dl-machine.h: Likewise.
3479         * sysdeps/ia64/dl-machine.h: Likewise.
3480         * sysdeps/m68k/dl-machine.h: Likewise.
3481         * sysdeps/mips/dl-machine.h: Likewise.
3482         * sysdeps/powerpc/dl-machine.h: Likewise.
3483         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3484         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3485         * sysdeps/sh/dl-machine.h: Likewise.
3486         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3487         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3489 2001-08-23  Roland McGrath  <roland@frob.com>
3491         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
3493         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
3494         sysdeps/mach version.  Implement counting ("recursive") mutexes
3495         on top of cthreads mutexes.
3496         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
3498         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
3499         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
3500         (__libc_cleanup_region_start, __libc_cleanup_region_end,
3501         __libc_clean_end): Define these to call the cleanup function after
3502         normal exit when they're supposed to.
3504         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
3505         Take new first arg DOIT, a boolean saying whether to really install
3506         any cleanup handler.
3507         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
3508         (__libc_cleanup_end): Likewise.
3509         * sysdeps/generic/bits/libc-lock.h: Same changes.
3510         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
3511         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
3512         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
3513         Likewise.
3514         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
3515         * sysdeps/generic/bits/stdio-lock.h
3516         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
3518 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3520         * elf/ldconfig.c (search_dir): Remove stale symlinks.
3522 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3524         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
3525         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
3526         lookups in cache.
3527         (_dl_lookup_versioned_symbol): Likewise.
3528         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
3529         relocation lookup.
3530         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
3531         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
3532         (lookup_cache, lookup_cache_versioned): Add declarations.
3534 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
3536         * stdlib/tst-random.c (main): Swap parameters in fail call.
3537         Patch by Pete Bevin <pete@petebevin.com>.
3539 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3541         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
3543 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
3545         * malloc/obstack.c: Indent preprocessor directives.
3546         Patch by Jim Meyering <meyering@ascend.com>.
3548         * po/ja.po: Update from translation team.
3550 2001-08-23  Roland McGrath  <roland@frob.com>
3552         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
3554         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
3555         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
3557 2001-08-22  Roland McGrath  <roland@frob.com>
3559         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
3560         __libc_lock_define_recursive.
3561         * elf/dl-open.c: Don't declare it here any more.
3562         * elf/dl-close.c: Likewise.
3563         * elf/dl-lookup.c: Likewise.
3564         * elf/dl-iteratephdr.c: Likewise.
3565         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
3566         __libc_lock_unlock_recursive.
3567         * elf/dl-close.c (_dl_close): Likewise
3568         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
3569         * elf/dl-open.c (_dl_open): Likewise
3571         * sysdeps/generic/bits/libc-lock.h
3572         (__libc_lock_define_recursive): New macro.
3573         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
3574         (_IO_lock_lock): Use __libc_lock_lock_recursive.
3575         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
3577         * conform/conformtest.pl (checknamespace): Sort the output list.
3579         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
3580         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
3581         definitions conditional on [__USE_XOPEN].
3583         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
3584         these unconditionally, not only use [__USE_BSD], so as to match
3585         the sysdeps/unix/sysv/linux files.
3587 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3589         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
3590         avoid warnings.
3592         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
3593         DL_LOOKUP_ADDRESS.
3595 2001-08-22  Roland McGrath  <roland@frob.com>
3597         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
3598         conditionalization of sa_handler/sa_sigaction member types to
3599         match the sysdeps/unix/sysv/linux file.
3601 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3603         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
3604         symbol sizes a bit better.
3606         * sysdeps/ia64/strncpy.S: Complete rewrite.
3607         Contributed by Jakub Jelinek <jakub@redhat.com>.
3609         * string/stratcliff.c (main): Add strncpy test.
3611 2001-08-22  Roland McGrath  <roland@frob.com>
3613         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
3614         and don't declare unsetenv or _environ directly.
3615         (unsetenv): Return int, not void.  Use __environ instead of _environ.
3617 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
3619         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
3620         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
3621         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
3622         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
3623         test for cmsg struct size.
3625 2001-04-23  Paul Eggert  <eggert@twinsun.com>
3627         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
3628         Rename __argc to ___argc in prototypes to avoid compatibility
3629         problems with systems that reserve the identifier "__argc".
3630         Similarly for __argv.
3632 2001-08-21  Roland McGrath  <roland@frob.com>
3634         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
3636         * mach/Makefile (tests): Removed.
3637         * mach/hello.c: File removed.
3639 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3641         * po/sv.po: Update from translation team.
3643         * stdio-common/vfscanf.c: Fix handling of %l[].
3644         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
3646         * libio/Makefile (tests): Add tst-sscanf.
3647         * libio/tst-sscanf.c: New file.
3649         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
3650         * malloc/mtrace.c (tr_where): dli_sname always points to a
3651         non-empty string if != NULL.
3652         Reported by Tim Janik <timj@gtk.org>.
3654 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
3656         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
3657         buf.  Free resources on failure.
3658         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
3659         (makefd_xprt): Likewise.
3660         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
3661         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
3662         * sunrpc/auth_unix.c (authunix_create): Likewise.
3664 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
3666         * string/strnlen.c: Remove.
3667         * sysdeps/generic/strnlen.c: New file.
3668         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
3670 2001-08-21  Roland McGrath  <roland@frob.com>
3672         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
3673         as a macro, not an extern inline function.
3675         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
3676         * Versions.def (libc): Add GLIBC_2.2.5 set.
3677         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
3678         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
3680 2001-08-20  Roland McGrath  <roland@frob.com>
3682         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
3683         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
3685 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
3687         * string/bits/string2.h: Remove strnlen optimization here.
3688         * sysdeps/i386/i486/bits/string.h: Add it here.
3690 2001-08-21  Wolfram Gloger  <wg@malloc.de>
3692         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
3694 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
3696         * po/gl.po: Update from translation team.
3698 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3700         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
3701         * misc/err.c (convert_and_print): Likewise.
3703         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
3704         function calls.
3706 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3708         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
3709         change of the gregset_t type.
3710         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
3712 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
3714         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
3716 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3718         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
3720         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
3722 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
3724         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
3725         before calling the cthreads initialization code.
3727 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3729         * argp/argp-help.c: Fix two problems introduced in last change.
3731         * include/dirent.h: Include <dirstream.h> first.
3733 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
3735         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
3737         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
3738         * sunrpc/xdr_rec.c: Likewise.
3739         * sunrpc/xdr_mem.c: Likewise.
3740         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
3741         * sunrpc/rpc_cmsg.c: Likewise.
3742         * sunrpc/getrpcport.c (getrpcport): Likewise.
3743         * sunrpc/clnt_simp.c (callrpc): Likewise.
3744         * sunrpc/clnt_gen.c (clnt_create): Likewise.
3745         * string/envz.c: Likewise.
3747         * po/ko.po: Update from translation team.
3749         * argp/argp-help.c: Handle wide oriented stderr stream.
3751 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
3753         * sysdeps/generic/strtol.c: Little optimizations.  Add some
3754         __builtin_expect.
3756         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
3758         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
3759         * wcsmbs/wcwidth.c (wcwdith): Likewise.
3760         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
3762         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
3764         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
3766         * time/time.h (struct timespec): Use __time_t for tv_sec element.
3768         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
3769         wchar_t for function declarations and defintions.
3771         * misc/sys/select.h: Define __need_time_t before including <time.h>.
3772         Define suseconds_t if it hasn't happened yet.
3774         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
3776         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
3778         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
3779         <stddef.h>.
3781         * conform/data/stddef.h-data: Remove wint_t.
3783         * conform/conformtest.pl: Change namespace test to take #undef
3784         lines into account.
3786         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
3788         * conform/data/sys/socket.h-data: Add sockatmark.
3790 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3792         * io/fts.c: Update from recent BSD source.
3794 2001-08-17  Roland McGrath  <roland@frob.com>
3796         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
3797         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
3798         Likewise.
3800 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3802         * locale/duplocale.c (__duplocale): Also initialize the special
3803         __ctype_* elements.
3805         * conform/data/netdb.h-data: Adjust gai_strerror return type.
3807 2001-08-17  Andreas Jaeger  <aj@suse.de>
3809         * misc/getpass.c: Include wchar.h for prototypes.
3810         * malloc/obstack.c: Likewise.
3812 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3814         * sunrpc/svc_simple.c (universal): Use __write instead of write.
3816         * wcsmbs/wcscoll.c: Also define __wcscoll.
3817         * include/wchar.h: Declare __wcscoll.
3819         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
3820         * libio/vwprintf.c: Likewise.
3821         * libio/wprintf.c: Likewise.
3823         * iconv/gconv_cache.c: Use __munmap instead of munmap.
3825 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
3827         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
3828         instead of mbrtowc.
3829         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
3830         wcslen, and __wcscoll instead of wcscoll.
3832         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
3834         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
3835         __getuid instead of getuid.
3837         * stdio-common/perror.c (perror): Use __close instead of close.
3838         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
3839         * libio/freopen.c (freopen): Likewise.
3840         * libio/freopen64.c (freopen64): Likewise.
3842         * libio/tst-ungetwc2.c (main): Define str const.
3844         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
3845         * libio/fwprintf.c: Also define __fwprintf.
3846         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
3847         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
3848         * assert/assert-perr.c: Likewise.
3849         * assert/assert.c: Likewise.
3850         * gmon/gmon.c: Likewise.
3851         * inet/rcmd.c: Likewise.
3852         * malloc/obstack.c: Likewise.
3853         * misc/err.c: Likewise.
3854         * misc/error.c: Likewise.
3855         * misc/getpass.c: Likewise.
3856         * posix/getopt.c: Likewise.
3857         * resolv/res_hconf.c: Likewise.
3858         * stdio-common/perror.c: Likewise.
3859         * stdio-common/psignal.c: Likewise.
3860         * stdlib/fmtmsg.c: Likewise.
3861         * sunrpc/auth_unix.c: Likewise.
3862         * sunrpc/clnt_perr.c: Likewise.
3863         * sunrpc/clnt_tcp.c: Likewise.
3864         * sunrpc/clnt_udp.c: Likewise.
3865         * sunrpc/clnt_unix.c: Likewise.
3866         * sunrpc/svc_simple.c: Likewise.
3867         * sunrpc/svc_tcp.c: Likewise.
3868         * sunrpc/svc_udp.c: Likewise.
3869         * sunrpc/svc_unix.c: Likewise.
3870         * sunrpc/xdr.c: Likewise.
3871         * sunrpc/xdr_array.c: Likewise.
3872         * sunrpc/xdr_rec.c: Likewise.
3873         * sunrpc/xdr_ref.c: Likewise.
3874         * sysdeps/generic/wordexp.c: Likewise.
3876         * po/it.po: Update from translation team.
3878         * misc/err.c: Handle wide oriented stderr stream.
3880 2001-08-14  Tom Rix  <trix@redhat.com>
3882         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
3883         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
3885 2001-08-13  Tom Rix  <trix@redhat.com>
3887         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
3888         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
3889         and __intptr_t.
3891 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3893         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
3894         Store the access registers to the ucontext structure.
3895         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
3896         Likewise.
3898         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
3899         Load the access registers from the ucontext structure.
3900         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
3901         Likewise.
3903         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
3904         offsets to the new ucontext layout.
3905         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
3907         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
3908         of the ucontext structure.
3909         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
3911 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
3913         * misc/error.c (error): Handle wide oriented stderr stream correctly.
3914         (error_at_line): Likewise.
3916         * stdio-common/perror.c (perror): Implement according to standard.
3917         The stream orientation must not be changed if the stream was not
3918         oriented before the call.
3919         * stdio-common/Makefile (tests): Add tst-perror.
3920         * stdio-common/tst-perror.c: New file.
3923 See ChangeLog.12 for earlier changes.