Update.
[glibc.git] / ChangeLog
blob0d21e736e46662abc14c5f95e431e81850bdfeef
1 2002-02-09  Ulrich Drepper  <drepper@redhat.com>
3         * elf/Makefile (tests): Add tst-tls1.
4         * elf/tst-tls1.c: New file.
6         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Don't handle
7         alignment of TCB for now.
9         * elf/rtld.c (dl_main): Use p_vaddr as address of TLS
10         initialization image for the application itself.
12         * sysdeps/generic/dl-tls.c (_dl_allocate_tls): Correctly terminate
13         loop to initialize TLS block.
15 2002-02-08  Richard Henderson  <rth@twiddle.net>
17         * sysdeps/generic/ldsodefs.h (struct rtld_global): Also include
18         _dl_cpuclock_offset if HP_SMALL_TIMING_AVAIL.
20         * sysdeps/alpha/elf/initfini.c: Use \n\ for multiline string.
22 2002-02-09  Jakub Jelinek  <jakub@redhat.com>
24         * sysdeps/generic/dl-environ.c (unsetenv): Clear cnt before use.
26 2002-02-08  Ulrich Drepper  <drepper@redhat.com>
28         * po/ca.po: Update from translation team.
29         * po/sk.po: Likewise.
31         * elf/rtld.c (_dl_start_final): Install DTV explicitly.
32         (dl_main): Move dtv/static TLS handling before relocation.
33         Unconditionally call _dl_tlsoffset.  Call _dl_allocate_tls and
34         TLS_INIT_TP to allocate and install the dtv/static TLS block.
35         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): If no object
36         so far uses TLS initialize GL(dl_tls_static_size) and
37         GL(dl_tls_static_align) to account for the TCB.
38         (_dl_allocate_tls): New function.
39         * sysdeps/generic/ldsodefs.h (rtld_global): Add
40         _dl_initial_dtv_malloced.
42         * configure.in: Test for __builtin_memset more realistically.
44         * csu/version.c (banner): If TLS support is available say so.
46 2002-02-04  H.J. Lu  <hjl@gnu.org>
48         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Use
49         __attribute_used__.
50         (__dl_runtime_resolve): Likewise.
52         * sysdeps/mips/machine-gmon.h (_MCOUNT_DECL): Make it a real
53         declaration.
55 2001-11-15  H.J. Lu  <hjl@gnu.org>
57         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Don't include
58         <signal.h>, <sys/ucontext.h> nor <asm/elf.h>. Updated for gdb.
60         * sysdeps/unix/sysv/linux/mips/sys/user.h: New.
62 2002-02-07  H.J. Lu  <hjl@gnu.org>
64         * sysdeps/mips/atomicity.h (compare_and_swap): Remove
65         ".set noreorder".
66         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set):
67         Likewise.
69 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
71         * sysdeps/unix/sysv/linux/bits/stat.h: Undo last patch.
73         * sysdeps/i386/dl-tls.h (__tls_get_addr): Call
74         ___tls_get_addr_internal.
75         (___tls_get_addr_internal): Define as alias for ___tls_get_addr.
77         * po/ko.po: Update from translation team.
79 2002-02-07  Jakub Jelinek  <jakub@redhat.com>
81         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Remove packed
82         attribute, change __pad{1,2} type to unsigned int.
83         (struct stat64): Remove packed attribute.
85 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
87         * sysdeps/i386/dl-tls.h: No need for #ifdef USE_TLS.
89 2002-02-07  Andreas Schwab  <schwab@suse.de>
91         * configure.in: Fix check for -zcombreloc.
93 2002-02-06  H.J. Lu  <hjl@gnu.org>
95         * config.h.in (HAVE_BUILTIN_MEMSET): New.
96         * configure.in: Check if __builtin_memset really works.
97         * elf/rtld.c (_dl_start): Check HAVE_BUILTIN_MEMSET instead of
98         __GNUC_PREREQ (2, 96) before using __builtin_memset.
100 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
102         * io/bug-ftw3.c (main): Don't try the test if root.
104 2002-02-06  Martin Schwidefsky  <schwidefsky@de.ibm.com>
106         * sysdeps/unix/sysv/linux/s390/brk.c (__brk): Correct inline assembly
107         constraints.
108         * sysdeps/unix/sysv/linux/s390/s390-32/bits/resource.h (RLIMIT_LOCKS):
109         Add RLIMIT_LOCKS and adjust RLIMIT_NLIMITS.
110         * sysdeps/unix/sysv/linux/s390/s390-64/bits/resource.h (RLIMIT_LOCKS):
111         Likewise.
112         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (clone): Make clone
113         a weak alias for __clone.
114         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (clone): Likewise.
115         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: Fix typo.
116         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add framestate.
117         * sysdeps/unix/sysv/linux/s390/s390-64/Versions: New file.
118         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S (__mmap64): Make __mmap
119         a weak alias for __mmap64.
121 2002-02-05  H.J. Lu  <hjl@gnu.org>
123         * sysdeps/mips/atomicity.h (exchange_and_add): Not use branch likely.
124         (atomic_add): Likewise.
125         (compare_and_swap): Likewise.
126         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Likewise.
128 2002-02-07  Ulrich Drepper  <drepper@redhat.com>
130         * sysdeps/generic/dl-tls.c: Don't read TLS header if TLS is not needed.
132         * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Account for
133         alignment of the TCB and store total size and alignment of static
134         TLS block in _dl_tls_static_size and _dl_tls_static_align.
135         tls_index is a typedef.
136         * sysdeps/generic/ldsodefs.h: Declare _dl_tls_static_size and
137         _dl_tls_static_align.
138         * sysdeps/i386/dl-tls.h: tls_index is a typedef.
139         * elf/dl-support.c: Define _dl_tls_static_size and
140         _dl_tls_static_align.
142 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
144         * configure.in: Add --without-tls option.
145         * sysdeps/i386/elf/configure.in: Don't check for TLS support if
146         --without-tls is given.
148         * sysdeps/generic/dl-tls.c: Include <tls.h>.
150         * sysdeps/i386/dl-tls.h: Don't define anything if !USE_TLS.
152 2002-02-06  Roland McGrath  <roland@frob.com>
154         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
155         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
157         * scripts/versions.awk: Improve error message for missing version.
158         Each version inherits from the last one only if they have the same
159         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
160         but not GLIBC_x and FOO_y.
162         * scripts/firstversions.awk: Handle libraries that don't have each
163         particular version named in the third column of shlib-versions.
165         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
167 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
169         * Versions.def [ld]: Add GLIBC_2.3.
170         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
171         * elf/Makefile (dl-routines): Add dl-tls.
172         (distribute): Add dl-tls.h.
173         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
174         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
175         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
176         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
177         along with the other info in the link map.  Change queueing of init
178         images for double linked list.  Use _dl_next_tls_modid to compute
179         l_tls_modid.
180         * elf/rtld.c (_dl_start_final): Store alignment requirement
181         along with the other info in rtld map and executable map.
182         (dl_main): Add ld.so to the init image list if necessary.  Compute
183         final module ID with _dl_next_tls_modid.
184         * include/link.h (struct link_map): Add l_tls_previmage and
185         l_tls_align.
186         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
187         * sysdeps/i386/elf/Versions: New file.
188         * sysdeps/generic/dl-tls.c: New file.
189         * sysdeps/generic/dl-tls.h: New file.
190         * sysdeps/i386/dl-tls.h: New file.
192 2002-02-06  Roland McGrath  <roland@frob.com>
194         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
195         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
197 2002-01-05  Roland McGrath  <roland@frob.com>
199         * sysdeps/mach/configure.in: New file.
200         * sysdeps/mach/configure: New generated file.
202         * mach/Makefile (user-interfaces): Remove default_pager_helper.
203         It has never been used by anything.
205 2002-02-06  H.J. Lu  <hjl@gnu.org>
207         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
208         is included.
210 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
212         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
213         attribute((packed)) to counter stupid people misusing gcc options.
214         (struct stat64): Likewise.
216 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
218         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
219         the variables which are used as booleans.
221 2002-02-06  Andreas Jaeger  <aj@suse.de>
223         * include/libc-symbols.h (INTUSE): Renamed from INT.
224         * elf/dl-deps.c: Change users.
225         * sysdeps/generic/dl-sysdep.c: Likewise.
226         * sysdeps/generic/dl-cache.c: Likewise.
227         * elf/dl-reloc.c: Likewise.
228         * elf/rtld.c: Likewise.
229         * elf/dl-version.c: Likewise.
230         * elf/dl-load.c: Likewise.
231         * elf/dl-dst.h: Likewise.
232         * elf/dl-init.c: Likewise.
233         * elf/dl-error.c: Likewise.
234         * elf/dl-fini.c: Likewise.
235         * elf/dl-runtime.c: Likewise.
236         * elf/do-lookup.h: Likewise.
238         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
239         definition.
240         * stdio-common/_itowa.h: Likewise.
242 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
244         * elf/dl-minimal.c: Define _itoa_lower_digits.
246         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
247         DT_FLAGS set.
249         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
250         loading modules with the DF_STATIC_TLS flag set.
251         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
252         element.
253         * include/link.h (struct link_map): Add l_flags field.
254         * elf/elf.h (DF_STATIC_TLS): New definition.
256         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
257         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
259         * elf/rtld.c (process_dl_debug): Correct printing help message.
260         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
261         for %s.
263         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
264         definition and pass &errno in use of this variable.
265         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
267 2002-02-04  Andreas Schwab  <schwab@suse.de>
269         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
270         * locale/programs/charmap-dir.c: Wrap calls that output messages
271         with WITH_CUR_LOCALE.  Include "localedef.h" first.
272         * locale/programs/charmap.c: Likewise.
273         * locale/programs/ld-address.c: Likewise.
274         * locale/programs/ld-collate.c: Likewise.
275         * locale/programs/ld-ctype.c: Likewise.
276         * locale/programs/ld-identification.c: Likewise.
277         * locale/programs/ld-measurement.c: Likewise.
278         * locale/programs/ld-messages.c: Likewise.
279         * locale/programs/ld-monetary.c: Likewise.
280         * locale/programs/ld-name.c: Likewise.
281         * locale/programs/ld-numeric.c: Likewise.
282         * locale/programs/ld-paper.c: Likewise.
283         * locale/programs/ld-telephone.c: Likewise.
284         * locale/programs/ld-time.c: Likewise.
285         * locale/programs/linereader.c: Likewise.
286         * locale/programs/linereader.h: Likewise.
287         * locale/programs/localedef.c: Likewise.
288         * locale/programs/locfile.c: Likewise.
289         * locale/programs/repertoire.c: Likewise.
291 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
293         * elf/rtld.c (_dl_start_final): Determine load address to locate
294         ehdr with GL(dl_rtld_map).l_map_start.
296         * po/ca.po: Update from translation team.
298         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
299         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
300         header entry.
301         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
302         _dl_tls_module_cnt.
303         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
305 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
307         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
308         * include/link.h (struct link_map): Add various members for TLS
309         information.
310         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
311         _rtld_tlsoffset, add _dl_initimage_list.
312         * sysdeps/i386/dl-lookupcfg.h: New file.
313         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
314         TLS relocation.  When using TLS we now use RESOLVE_MAP.
315         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
316         is used.
318         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
319         unused.
321         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
322         thread-pointer as soon as possible.
323         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
324         elements in rtld_global.
325         * sysdeps/generic/tls.h: New file.
326         * elf/Makefile (distribute): Add tls.h.
327         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
328         relocations.  Not complete yet.
330         * resolv/resolv.h: Allow user to define __need_res_state and only
331         define __res_start structure then.
332         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
334         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
335         dl_cpuclock_offset initialization to _dl_start_final.
336         (_dl_show_auxv): Avoid unnecessary sign extension.
337         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
339 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
341         * config.h.in: Add HAVE_TLS_SUPPORT.
342         * sysdeps/i386/elf/configure.in: New file.
344 2002-02-03  Andreas Schwab  <schwab@suse.de>
346         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
347         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
349 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
351         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
352         alloca if the memory reqirements are too high.
354 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
356         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
357         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
358         the former is available anyway and speed isn't important here.
359         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
360         * elf/dl-version.c (match_symbol): Likewise.
361         (_dl_check_map_versions): Likewise.
362         * elf/rtld.c (process_envvars): Likewise.
363         (print_statistics): Likewise.
364         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
365         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
366         bases.  Add assert to catch uses of unimplemented features.
367         (__strsep): Add assert to catch uses of unimplemented features.
368         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
369         and avoid inline optimization.
370         * elf/rtld.c (process_envvars): Likewise.
371         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
372         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
373         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
375 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
377         * stdio-common/_itoa.h: Minor simplifications of the code.
378         * stdio-common/_itoa.c: Likewise.
380         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
381         instead of _dl_printf for debugging info output.
383         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
384         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
386 2002-02-01  H.J. Lu  <hjl@gnu.org>
388         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
389         (atomic_add): Likewise.
390         (compare_and_swap): Return 0 only when failed to compare. Use
391         branch likely.
393         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
394         branch likely.
396 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
398         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
400 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
402         * elf/dl-minimal.c (__strsep): New minimal implementation.
404 2002-02-02  Paul Eggert  <eggert@twinsun.com>
406         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
407         (__mktime_internal): If no tm_isdst is requested, prefer solutions
408         with tm_isdst > 0 when the requested time falls within a
409         spring-forward gap [PR libc/2894].
411 2002-02-03  Andreas Schwab  <schwab@suse.de>
413         * stdio-common/tst-rndseek.c: Increase timeout.
415 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
417         Change ld.so to not use functions which are exported.  One cannot
418         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
419         definitions.
420         * include/libc-symbols.h: Define INT and INTDEF.
421         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
422         _dl_signal_error_internal, _dl_map_object_internal,
423         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
424         _dl_lookup_versioned_symbol_internal,
425         _dl_relocate_object_internal, _dl_debug_state_internal,
426         _dl_start_profile_internal, and _dl_unload_cache_internal.
427         * include/dlfcn.h: Declare _dl_catch_error_internal.
428         * elf/rtld.c: Use INT for calls to any of the *_internal functions
429         above.  Add INTDEF to function definitions.
430         * elf/dl-debug.c: Likewise.
431         * elf/dl-deps.c: Likewise.
432         * elf/dl-dst.h: Likewise.
433         * elf/dl-error.c: Likewise.
434         * elf/dl-fini.c: Likewise.
435         * elf/dl-init.c: Likewise.
436         * elf/dl-load.c: Likewise.
437         * elf/dl-lookup.c: Likewise.
438         * elf/dl-misc.c: Likewise.
439         * elf/dl-open.c: Likewise.
440         * elf/dl-profile.c: Likewise.
441         * elf/dl-reloc.c: Likewise.
442         * elf/dl-runtime.c: Likewise.
443         * elf/dl-version.c: Likewise.
444         * elf/do-lookup.h: Likewise.
445         * sysdeps/generic/dl-cache.c: Likewise.
446         * sysdeps/generic/dl-sysdep.c: Likewise.
447         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
448         instead of _dl_init.
449         * sysdeps/arm/dl-machine.h: Likewise.
450         * sysdeps/cris/dl-machine.h: Likewise.
451         * sysdeps/hppa/dl-machine.h: Likewise.
452         * sysdeps/i386/dl-machine.h: Likewise.
453         * sysdeps/ia64/dl-machine.h: Likewise.
454         * sysdeps/m68k/dl-machine.h: Likewise.
455         * sysdeps/mips/dl-machine.h: Likewise.
456         * sysdeps/mips/mips64/dl-machine.h: Likewise.
457         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
458         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
459         * sysdeps/sh/dl-machine.h: Likewise.
460         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
461         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
462         * sysdeps/x86_64/dl-machine.h: Likewise.
463         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
465         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
466         and _dl_debug_initialize.
468         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
469         more information.
470         * elf/rtld.c (dl_main): Avoid strrchr.
471         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
472         result of readlink.  Search from the back for '/'.
474         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
475         strncpy if possible.
477         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
478         strncmp.
479         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
480         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
481         strspn, and strcspn.
482         (process_envvars): Don't use strcspn.
484         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
485         (_dl_dst_substitute): Likewise.
487 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
489         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
490         code which is never used when relocating ld.so itself.
492         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
493         starting ld.so itself.  Move l_addr variable initialization closer
494         to use.
495         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
497 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
499         * Versions.def (libc): Add GLIBC_PRIVATE.
500         (libdb, libnss_db, libdb1): Remove.
501         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
502         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
503         (libpthread): Add GLIBC_PRIVATE.
504         (libresolv): Likewise, remove GLIBC_2.1.
505         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
506         GLIBC_2.2.3, GLIBC_2.3.
507         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
508         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
509         _dl_sym, _dl_vsym): Likewise.
510         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
511         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
512         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
513         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
514         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
515         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
516         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
517         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
518         Likewise.
519         (_dl_object_relocation_scope): Remove.
520         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
521         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
522         __gconv_cache): Move to GLIBC_PRIVATE.
523         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
524         __internal_setnetgrent): Likewise.
525         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
526         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
527         * locale/Versions (__collate_element_hash, __collate_element_strings,
528         __collate_symbol_classes, __collate_symbol_hash,
529         __collate_symbol_strings, _nl_current_LC_COLLATE,
530         _nl_current_LC_CTYPE): Likewise.
531         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
532         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
533         (libnss_nis, libnss_nisplus): Likewise.
534         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
535         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
536         (libnss_files): Move all symbols to GLIBC_PRIVATE.
537         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
538         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
539         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
540         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
541         __ns_get16, __ns_samename): Likewise.
542         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
543         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
544         GLIBC_PRIVATE.
545         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
546         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
547         __libc_connect): Likewise.
548         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
549         Likewise.
550         * stdlib/Versions (__libc_system): Likewise.
551         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
552         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
553         * sysdeps/ia64/fpu/Versions: Likewise.
554         * sysdeps/ia64/Versions: Likewise.
555         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
556         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
557         to GLIBC_PRIVATE.
558         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
559         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
560         __libc_sigaction): Likewise.
561         * termios/Versions (__libc_tcdrain): Likewise.
563         * misc/sys/cdefs (__attribute_noinline__): Define.
564         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
565         __attribute_noinline__.
567         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
568         * elf/dl-xstat64.c: New file.
569         * elf/dl-fxstat64.c: New file.
570         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
571         don't export __fxstat64 at multiple versions.
572         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
573         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
575 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
577         * locale/program/ld-collate.c (collate_finish): Assign a wide
578         char collation sequence value to multi character collating
579         elements, and avoid over writing by non-character elements.
581 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
583         * elf/Makefile (distribute): Add dl-procinfo.c.
584         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
585         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
587 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
589         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
590         definition.
591         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
592         _rtld_global struct.
593         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
594         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
595         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
596         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
597         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
598         _dl_fpu_control_set): Remove unused externs.
599         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
600         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
601         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
602         related variables in _rtld_global struct.
603         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
604         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
605         unused extern.
607 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
609         * sysdeps/generic/dl-procinfo.c: New file.
611 2002-02-01  Andreas Schwab  <schwab@suse.de>
613         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
615 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
617         * elf/rtld.c (_dl_start): Mark as internal_function.
618         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
619         in register.
620         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
621         General pretty printing.
623 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
625         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
626         * elf/dl-reloc.c: Pretty printing.
627         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
628         procinfo-related variables in rtld_global struct.
629         * elf/dl-support.c: Likewise.
630         * elf/rtld.c: Likewise.
631         * sysdeps/i386/i686/Makefile: Likewise.
632         * sysdeps/i386/i686/hp-timing.c: Likewise.
633         * sysdeps/i386/i686/hp-timing.h: Likewise.
634         * sysdeps/ia64/Makefile: Likewise.
635         * sysdeps/ia64/hp-timing.c: Likewise.
636         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
637         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
638         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
639         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
640         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
641         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
642         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
643         * sysdeps/x86_64/Makefile: Likewise.
645         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
646         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
647         _dl_debug_fd to rtld_global.
648         * elf/Versions: Likewise.
649         * elf/dl-close.c: Likewise.
650         * elf/dl-iteratephdr.c: Likewise.
651         * elf/dl-lookup.c: Likewise.
652         * elf/dl-misc.c: Likewise.
653         * elf/dl-open.c: Likewise.
654         * elf/dl-support.c: Likewise.
655         * elf/do-lookup.h: Likewise.
656         * elf/rtld.c: Likewise.
657         * sysdeps/generic/dl-cache.c: Likewise.
658         * sysdeps/generic/dl-sysdep.c: Likewise.
659         * sysdeps/ia64/Versions: Likewise.
660         * sysdeps/unix/clock_gettime.c: Likewise.
661         * sysdeps/unix/clock_settime.c: Likewise.
662         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
663         * sysdeps/sparc/Versions: Removed.
664         * sysdeps/i386/i686/Versions : Removed.
665         * sysdeps/x86_64/Versions: Removed.
666         * configure.in: Define HAVE_PROTECTED if .protected is available.
667         * config.h.in: Add entry for HAVE_PROTECTED.
669 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
671         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
672         code in struct _rtld_global.  Export this struct, remove all
673         exports for the signal variables.
674         * sysdeps/arm/dl-machine: Likewise.
675         * sysdeps/generic/dl-origin: Likewise.
676         * sysdeps/generic/dl-sysdep: Likewise.
677         * sysdeps/generic/dl-cache: Likewise.
678         * sysdeps/hppa/dl-fptr: Likewise.
679         * sysdeps/hppa/dl-machine: Likewise.
680         * sysdeps/cris/dl-machine: Likewise.
681         * sysdeps/i386/dl-machine: Likewise.
682         * sysdeps/ia64/dl-machine: Likewise.
683         * sysdeps/m68k/dl-machine: Likewise.
684         * sysdeps/mach/hurd/dl-sysdep: Likewise.
685         * sysdeps/mips/mips64/dl-machine: Likewise.
686         * sysdeps/mips/dl-machine: Likewise.
687         * sysdeps/powerpc/elf/libc-start: Likewise.
688         * sysdeps/powerpc/dl-machine: Likewise.
689         * sysdeps/powerpc/dl-start: Likewise.
690         * sysdeps/sparc/sparc32/dl-machine: Likewise.
691         * sysdeps/sparc/sparc64/dl-machine: Likewise.
692         * sysdeps/sh/dl-machine: Likewise.
693         * sysdeps/s390/s390-32/dl-machine: Likewise.
694         * sysdeps/s390/s390-64/dl-machine: Likewise.
695         * sysdeps/unix/sysv/aix/libc-start: Likewise.
696         * sysdeps/unix/sysv/aix/start-libc: Likewise.
697         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
698         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
699         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
700         * sysdeps/x86_64/dl-machine: Likewise.
702 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
704         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
705         are too high.
707 2002-01-31  Andreas Schwab  <schwab@suse.de>
709         * sysdeps/posix/readv.c: Check for ssize_t overflow.
711 2002-01-31  Andreas Schwab  <schwab@suse.de>
713         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
714         reference to _dl_pagesize.
716 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
718         * Versions.def [ld]: Add GLIBC_2.3.
719         * elf/dl-addr.c: Move global variables for SHARED code in struct
720         _rtld_global.  Export this struct, remove all exports for the
721         signal variables.
722         * elf/dl-close.c: Likewise.
723         * elf/dl-conflict.c: Likewise.
724         * elf/dl-debug.c: Likewise.
725         * elf/dl-deps.c: Likewise.
726         * elf/dl-dst.h: Likewise.
727         * elf/dl-error.c: Likewise.
728         * elf/dl-fini.c: Likewise.
729         * elf/dl-init.c: Likewise.
730         * elf/dl-iteratephdr.c: Likewise.
731         * elf/dl-libc.c: Likewise.
732         * elf/dl-load.c: Likewise.
733         * elf/dl-lookup.c: Likewise.
734         * elf/dl-minimal.c: Likewise.
735         * elf/dl-object.c: Likewise.
736         * elf/dl-open.c: Likewise.
737         * elf/dl-profile.c: Likewise.
738         * elf/dl-profstub.c: Likewise.
739         * elf/dl-reloc.c: Likewise.
740         * elf/dl-runtime.c: Likewise.
741         * elf/dl-support.c: Likewise.
742         * elf/dl-sym.c: Likewise.
743         * elf/dl-version.c: Likewise.
744         * elf/do-lookup.h: Likewise.
745         * elf/do-rel.h: Likewise.
746         * elf/dynamic-link.h: Likewise.
747         * elf/rtld.c: Likewise.
748         * sysdeps/generic/dl-cache.c: Likewise.
749         * sysdeps/generic/dl-sysdep.c: Likewise.
750         * sysdeps/generic/ldsodefs.h: Likewise.
751         * sysdeps/generic/libc-start.c: Likewise.
752         * sysdeps/i386/dl-machine.h: Likewise.
753         * sysdeps/ia64/dl-fptr.c: Likewise.
754         * sysdeps/ia64/dl-machine.h: Likewise.
755         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
756         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
757         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
758         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
759         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
760         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
761         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
762         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
764 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
766         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
767         to avoid warning
768         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
770         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
771         SHARED version.
772         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
774         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
776 2002-01-29  Ben Collins  <bcollins@debian.org>
778         * string/bits/string2.h (__mempcpy): Protect size arg for
779         addition when using __builtin_memcpy.
781 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
783         * stdlib/Makefile (tests): Add tst-qsort.
784         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
786         * manual/signal.texi (Process Signal Mask): Document that
787         pthread_sigmask, not sigprocmask, must be used in MT programs.
788         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
790         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
791         found.
792         * misc/Makefile (tests): Add tst-hsearch.
793         * misc/tst-hsearch.c: New file.
795 2002-01-18  Wolfram Gloger  <wg@malloc.de>
797         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
798         * malloc/malloc.h: Likewise.
799         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
800         * malloc/arena.c: New file.
801         * malloc/hooks.c: New file.
802         * malloc/tst-mallocstate.c: New file.
803         * malloc/Makefile: Add new testcase tst-mallocstate.
804         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
806 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
808         * stdlib/msort.c: Remove last patch.  The optimization violates the
809         same rule which qsort.c had problems with.
811 2002-01-27  Paul Eggert  <eggert@twinsun.com>
813         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
814         to a pivot element that lies outside the array to be sorted, as
815         ISO C99 requires that the comparison function be called only with
816         addresses of array elements [PR libc/2880].
818 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
820         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
821         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
823         * timezone/asia: Update from tzdata2002b.
824         * timezone/australasia: Likewise.
825         * timezone/backward: Likewise.
826         * timezone/europe: Likewise.
827         * timezone/leapseconds: Likewise.
828         * timezone/iso3166.tab: Likewise.
829         * timezone/zone.tab: Likewise.
831 2002-01-23  Richard Henderson  <rth@redhat.com>
833         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
835 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
837         * string/strxfrm.c: Allocate one more byte for rulearr and clear
838         this element [PR libc/2855].
840         * string/strcoll.c: Handle zero-length arguments specially
841         [PR libc/2856].
843 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
845         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
846         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
847         short lengths and constant src.
848         (strcpy): Don't optimize for gcc 3.0+.
849         (__stpcpy): For gcc 3.0+, don't use
850         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
851         for short string literal src.
853 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
855         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
856         Set for arm, too.
858 2001-01-22  Paul Eggert  <eggert@twinsun.com>
860         * manual/llio.texi (Linked Channels, Cleaning Streams):
861         Make it clearer that a just-opened input stream might need cleaning.
863 2002-01-21  H.J. Lu  <hjl@gnu.org>
865         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
866         Don't use label at end of compound statement.
868 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
870         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
871         Remove test for negative integer arg; sin_pi does it correctly.
873 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
875         * nscd/Makefile (distribute): Filter out xmalloc.c.
877 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
879         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
880         Set offset if read end wasn't the buffer end.
881         (_IO_file_seekoff_mmap): New function.
882         (_IO_file_xsgetn_mmap): New function.
883         (_IO_file_jumps_mmap): Use the two new functions.
884         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
885         != end buffer.
886         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
887         _IO_file_underflow_mmap.
888         * libio/iofopen.c: Don't position file descriptor at end of file.
889         * libio/tst-widetext.c: Improve error messages.
890         * stdio-common/tst-rndseek.c: Likewise.
892 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
894         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
895         end of enum for !_GNU_SOURCE.
896         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
897         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
898         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
899         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
900         values unless _GNU_SOURCE.
902         * iconvdata/tcvn5712-1.c: Minor cleanups.
904 2002-01-18  Andreas Schwab  <schwab@suse.de>
906         * sysdeps/unix/sysv/linux/configure.in
907         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
909 2002-01-16  Roger Sayle  <roger@eyesopen.com>
911         * stdlib/msort.c (msort_with_tmp): Replace implementation with
912         more efficient "Towers of Hanoi" mergesort.
913         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
914         for generic, sizeof(int) and sizeof(long) variants respectively.
916 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
918         * manual/syslog.texi (openlog): Describe possible problems with
919         first parameter.
920         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
922         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
923         * nscd/connections.c (begin_drop_privileges): New function.
924         (finish_drop_privileges): New function.
925         (nscd_init): Call the new functions which also install all groups
926         for the server user.
927         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
928         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
930 2002-01-17  H.J. Lu  <hjl@gnu.org>
932         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
933         `const' from `got'.
935 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
937         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
938         instructions for pointer operations.
939         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
941 2002-01-17  Andreas Jaeger  <aj@suse.de>
943         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
944         __uint128_t build-in.
946         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
947         PowerPC, sync with 2.2 branch.
949 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
951         * posix/getconf.c: Update copyright year.
952         * nss/getent.c: Likewise.
953         * nscd/nscd_nischeck.c: Likewise.
954         * iconv/iconvconfig.c: Likewise.
955         * iconv/iconv_prog.c: Likewise.
956         * elf/ldconfig.c: Likewise.
957         * catgets/gencat.c: Likewise.
958         * csu/version.c: Likewise.
959         * elf/ldd.bash.in: Likewise.
960         * elf/sprof.c (print_version): Likewise.
961         * locale/programs/locale.c: Likewise.
962         * locale/programs/localedef.c: Likewise.
963         * nscd/nscd.c (print_version): Likewise.
964         * debug/xtrace.sh: Likewise.
965         * malloc/memusage.sh: Likewise.
966         * malloc/mtrace.pl: Likewise.
968 2002-01-16  Andreas Schwab  <schwab@suse.de>
970         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
971         reliably remove "-ia64" from rtld name.
973 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
975         * iconvdata/gb18030.c: Bug fixes and support for more characters.
976         Patch by Yu Shao <yshao@redhat.com>.
978 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
980         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
981         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
982         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
984 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
986         * sysdeps/s390/fpu/libm-test-ulps: Update.
988 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
990         * elf/elf.h: Update x86 relocations.
992 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
994         * locale/programs/charmap.c (new_width): Check whether byte
995         sequences for both ends of range have the same length.
997 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
999         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
1001 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
1003         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
1004         string literals.
1005         (__full_ieee754_sqrt): Add __attribute_used__.
1007 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
1009         * sysdeps/generic/group_member.c (__group_member): Also check
1010         groups[0] [PR libc/2781].
1012 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
1014         * Makefile (distribute): Add scripts/cpp.
1015         * elf/Makefile (distribute): Add reldep6mod[01234].c,
1016         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
1017         unwind-dw2-fde.h, and dwarf2.h.
1018         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
1019         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
1020         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
1021         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
1023 2002-01-07  Roland McGrath  <roland@frob.com>
1025         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
1026         volatile on type of ARGC so the compiler doesn't get clever.
1028 2002-01-07  Andreas Jaeger  <aj@suse.de>
1030         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
1031         * sysdeps/i386/bits/byteswap.h: Likewise.
1032         * sysdeps/ia64/bits/byteswap.h: Likewise.
1033         * sysdeps/m68k/bits/byteswap.h: Likewise.
1034         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
1035         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise.
1037 2002-01-02  Bruno Haible  <bruno@clisp.org>
1039         * intl/plural.y: Fix %expect count.
1041 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
1043         * elf/Makefile (routines, shared-only-routines): Add
1044         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
1045         * elf/elf.h (PT_GNU_EH_FRAME): Define.
1046         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
1047         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
1048         Optimize if .eh_frame section contains no FDEs.
1049         (__register_frame, __deregister_frame_info_bases,
1050         __deregister_frame): Likewise.
1051         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
1052         DW_CFA_restore handling.
1054 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
1056         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
1058         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
1059         for x < 0.25 and restore original range reduction method.
1060         (__ieee754_lgammal_r): Make sure signgam is set before returning.
1062 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
1064         * libio/fileops.c (_IO_file_underflow_mmap): New function.
1065         (_IO_file_close_mmap): New function.
1066         (_IO_file_jumps_mmap): New variable.
1067         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
1068         trying to convert rest of byte buffer.
1069         (_IO_wfile_underflow_mmap): New function.
1070         (_IO_wfile_jumps_mmap): New variable.
1071         * libio/iofopen.c (__fopen_maybe_mmap): New function.
1072         (__fopen_internal): New function.  Split out from _IO_new_fopen.
1073         (_IO_new_fopen): Call __fopen_internal.
1074         * libio/iofopen64.c: Just call __fopen_internal.
1075         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
1076         successfully.
1077         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
1078         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
1079         _IO_file_close_mmap.
1081         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
1082         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
1084         * stdio-common/Makefile (tests): Add tst-rndseek.
1085         * stdio-common/tst-rndseek.c: New file.
1087 2002-01-05  Roland McGrath  <roland@frob.com>
1089         * config.h.in (HAVE_MIG_RETCODE): New #undef.
1090         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
1091         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
1092         * sysdeps/mach/hurd/configure: Regenerated.
1094 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
1096         * elf/elf.h: Add more TLS definitions.
1098 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
1100         * include/features.h (__GLIBC_MINOR__): Bump to 3.
1102 2002-01-02  Roland McGrath  <roland@frob.com>
1104         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
1105         __sigisemptyset.  Don't use MASK uninitialized.
1107         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
1108         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
1109         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
1110         __sigdelset, __sigaddset, __sigorset.
1112         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
1113         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
1115         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
1116         _hurd_ports is null.
1118         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
1119         for old CMU and new OSF Mach interface flavors.
1120         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
1121         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
1123         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
1125         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
1126         Pass extra arguments to task_create for OSF variant.
1127         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
1129         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
1130         conditional on [HAVE_AUX_VECTOR].
1132         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
1133         mach_msg_timeout_t as type of final argument.
1135         * hurd/privports.c (__get_privileged_ports):
1136         Change host_priv_t to mach_port_t in argument type.
1137         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
1138         Update decls.
1140         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
1141         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
1142         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
1143         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
1144         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
1145         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
1147 2002-01-01  Roland McGrath  <roland@frob.com>
1149         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
1151 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
1153         * include/stdlib.h: Define inlines for the _l variants of the strto*
1154         functions.
1156 2002-01-01  Roland McGrath  <roland@frob.com>
1158         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
1160         * mach/Machrules (MIG): Set CPP as well as CC.
1162 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
1164         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
1165         locale to parse /proc/loadavg [PR libc/2760].
1167 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
1169         * elf/dl-conflict.c: Include sys/param.h.
1170         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
1171         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
1172         warning.
1173         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
1174         literals to avoid warnings.
1176 2001-12-31  Andreas Jaeger  <aj@suse.de>
1178         * configure.in: Don't check for gsed since we do not use it anywhere.
1180 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
1182         * io/fts.c: Update from BSD to fix memory leaks.
1184 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
1186         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
1187         * elf/chroot_canon.c: Likewise.
1188         * elf/dl-object.c: Likewise.
1189         * iconv/iconv_charmap.c: Likewise.
1190         * iconv/iconv_prog.c: Likewise.
1191         * libio/iogetdelim.c: Likewise.
1192         * locale/lc-time.c: Likewise.
1193         * stdlib/canonicalize.c: Likewise.
1194         * sunrpc/svc.c: Likewise.
1195         * sysdeps/generic/glob.c: Likewise.
1197 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1199         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
1200         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
1201         remove high order bit from the program counter.
1202         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
1204 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1206         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
1207         unnecessary code and add missing reloc types.
1208         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
1209         case for reloc type R_390_NONE.
1211 2001-12-28  Andreas Jaeger  <aj@suse.de>
1213         * io/bug-ftw3.c: Include string.h for prototypes.
1215         * crypt/md5test.c (main): Remove unused variable.
1217         * dlfcn/modstatic.c: Add prototype to avoid warning.
1219 2001-12-26  Roland McGrath  <roland@frob.com>
1221         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
1222         check only (SS->pending & MASK) for the signal to return.
1223         From Jeroen Dekkers <jeroen@dekkers.cx>.
1225 2001-12-22  Roland McGrath  <roland@frob.com>
1227         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
1228         Use preprocessor #if conditionals instead of `if' to avoid
1229         warnings about divide by zero in dead code.
1231         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
1232         _hurd_port_init, and __hurd_self_sigstate.
1234         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
1236 2001-12-21  Andreas Jaeger  <aj@suse.de>
1238         * elf/dblloadmod1.c: Add prototype to avoid warning.
1239         * elf/dblloadmod2.c: Likewise.
1240         * elf/dblloadmod3.c: Likewise.
1241         * elf/reldepmod5.c: Likewise.
1242         * elf/reldepmod6.c: Likewise.
1244         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
1245         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
1246         used on all architectures.
1248         * sunrpc/svc_tcp.c: Add noreturn attribute for
1249         svctcp_rendezvous_abort.
1250         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
1252         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
1253         to avoid warning.
1255 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
1257         * manual/llio.texi (aio_fsync): Fix a typo.
1258         Patch by Tammy Fox <tfox@redhat.com>.
1260 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
1262         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
1263         stack bias from child stack pointer before passing it to clone syscall.
1265 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
1267         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
1268         _SC_TZNAME_MAX.
1269         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
1270         Reported by Thorsten Kukuk <kukuk@suse.de>.
1272         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
1273         add some casts.
1275         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
1277 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
1279         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
1280         conforming: return EBADF if file descriptor is invalid and EINVAL
1281         if file descriptor is no valid tty.
1282         * login/tst-grantpt.c: New file.
1283         * login/Makefile (tests): Add tst-grantpt.
1285 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
1287         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
1288         different than implemented in last patch.
1289         * io/bug-ftw3.c: Adjust test for changed handling of
1290         inaccessibility of toplevel dir.
1292 2001-12-16  Roland McGrath  <roland@frob.com>
1294         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
1295         * grp/initgroups.c (internal_getgrouplist): Likewise.
1297         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
1298         `default:' to silence new GCC warning.
1299         Rewrite cast of lvalue to silence new GCC warning.
1301         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
1303         * sysdeps/mach/hurd/spawni.c: New file, by me with a
1304         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
1306 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
1308         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
1309         Patch by Stephen R. van den Berg.
1311         * crypt/md5.h: Define md5_uintptr.
1313 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
1315         * libio/tst_swprintf.c (main): Add test for string argument with
1316         zero precision.
1317         * stdio-common/Makefile (tests): Add tst-sprintf.
1318         * stdio-common/tst-sprintf.c: New file.
1320 2001-12-13  Andreas Schwab  <schwab@suse.de>
1322         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
1323         zero precision with wide character string format.
1325 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
1327         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
1328         but have a user supplied buffer, return the empty buffer, not NULL.
1330 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
1332         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
1333         Patch by Eric Sharkey <sharkey@netrics.com>.
1335         * crypt/md5test.c (main): Add test for multiple calls to
1336         __md5_process_bytes to itererate over input string.
1338 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
1340         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
1341         from __nis_findfastest.  Take timeout value from parameter.
1342         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
1343         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
1344         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
1346 2001-12-12  Andreas Jaeger  <aj@suse.de>
1348         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
1349         combreloc test so that it works in this case.
1351         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
1353 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
1355         * sysdeps/sh/Makefile: New file.
1356         * sysdeps/sh/_mcount.S: New file.
1357         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
1358         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
1360 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
1362         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
1363         limitation [PR libc/2564].
1365 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
1367         * elf/Makefile (dl-routines): Add conflict.
1368         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
1369         (ld.so): Add _begin local symbol.
1370         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
1371         Define.
1372         * elf/dl-deps.c (_dl_build_local_scope): New.
1373         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
1374         of all libraries.
1375         * elf/do-rel.h (VALIDX): Define.
1376         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
1377         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
1378         can be skipped.
1379         * elf/dl-conflict.c: New file.
1380         * elf/dl-lookup.c (_dl_debug_bindings): New.
1381         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
1382         non-NULL.
1383         (_dl_lookup_symbol_skip): Likewise.
1384         (_dl_lookup_versioned_symbol): Likewise.
1385         (_dl_lookup_versioned_symbol_skip): Likewise.
1386         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
1387         define to ElfW(Rel).
1388         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
1389         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
1390         ranges.
1391         Don't adjust address dynamic tags if l_addr is 0.
1392         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
1393         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
1394         (VALIDX, ADDRIDX): Define.
1395         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
1396         (dl_main): Print library list for LD_TRACE_PRELINKING.
1397         If prelinking information can be used, skip relocating libraries and
1398         call _dl_resolve_conflicts instead.
1399         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
1400         * elf/dl-load.c (_dl_map_object): Don't create fake libs
1401         if LD_TRACE_PRELINKING.
1402         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
1403         + DT_ADDRNUM.
1404         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
1405         (DL_DEBUG_PRELINK): Define.
1406         (_dl_resolve_conflicts): Add prototype.
1408         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
1409         .plt for prelinked libraries where prelinking info cannot be used.
1410         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
1411         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
1412         * sysdeps/arm/bits/link.h: New file.
1413         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
1414         content of .got[1].
1415         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
1416         (ELF_MACHINE_PLT_REL): Define.
1417         (elf_machine_rela, elf_machine_rela_relative): New.
1418         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
1419         of adjusting it if prelinked and prelinking cannot be used.
1420         * sysdeps/i386/bits/link.h: New file.
1421         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
1422         content of .got[1].
1423         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
1424         (ELF_MACHINE_PLT_REL): Define.
1425         (elf_machine_rela, elf_machine_rela_relative): New.
1426         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
1427         of adjusting it if prelinked and prelinking cannot be used.
1428         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
1429         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
1430         to find out map for R_PPC_JMP_SLOT relocs.
1431         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
1432         (OPCODE_BA): Define.
1433         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
1434         libraries where prelinking info cannot be used.
1435         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
1436         (elf_machine_fixup_plt): Call sparc_fixup_plt.
1437         (elf_machine_rela): Set value to 0 if relocating conflicts.
1438         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
1439         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
1440         (sparc64_fixup_plt): Fix a typo.
1441         (elf_machine_rela): Set value to 0 if relocating conflicts.
1442         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
1443         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
1444         libraries where prelinking info cannot be used.
1445         * sysdeps/sh/bits/link.h: New file.
1446         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
1447         content of .got[1].
1448         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
1449         of adjusting it if prelinked and prelinking cannot be used.
1450         * sysdeps/s390/s390-32/bits/link.h: New file.
1451         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
1452         Save original content of .got[1].
1453         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
1454         of adjusting it if prelinked and prelinking cannot be used.
1455         * sysdeps/s390/s390-64/bits/link.h: New file.
1456         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
1457         Save original content of .got[1].
1458         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
1459         of adjusting it if prelinked and prelinking cannot be used.
1460         * sysdeps/x86_64/bits/link.h: New file.
1461         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
1462         Save original content of .got[1].
1463         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
1464         of adjusting it if prelinked and prelinking cannot be used.
1466 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
1468         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
1469         where appropriate instead of numbers.  Little optimizations.
1471 2001-12-10  Roland McGrath  <roland@frob.com>
1473         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
1474         set it.
1476         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
1477         set to GLIBC_2.2.5, not GLIBC_2.2.4.
1479         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
1480         Fix conditionals so this is set by default for stdio and not for libio.
1481         * sysdeps/mach/hurd/configure: Regenerated.
1483 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
1485         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
1487 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
1489         * io/Makefile (tests): Add bug-ftw3.
1490         * io/bug-ftw3.c: New file.
1492         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
1493         matches and GLOB_NOCHECK is set.
1494         * posix/globtest.sh: Correct expected result for NOCHECK test.
1496         * po/ca.po: Update from translation team.
1498 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
1500         Implement transliteration of characters in strings of the locale
1501         definitions.
1502         * locale/programs/linereader.c: Adjust for additional parameter to
1503         lr_token.
1504         (get_string): If character <Uxxxx> is not found try to transliterate
1505         it.
1506         * locale/programs/ld-ctype.c: Adjust for additional parameter to
1507         lr_token.  Add const to charmap parameter of all functions.
1508         (find_translit, find_translit2): New functions.
1509         * locale/programs/charmap.c: Adjust for additional parameter to
1510         lr_token.
1511         * locale/programs/repertoire.c: Likewise.
1512         * locale/programs/linereader.h: Likewise.
1513         * locale/programs/ld-address.c: Likewise.  Add const to charmap
1514         parameter of all functions.
1515         * locale/programs/ld-collate.c: Likewise.
1516         * locale/programs/ld-identification.c: Likewise.
1517         * locale/programs/ld-measurement.c: Likewise.
1518         * locale/programs/ld-messages.c: Likewise.
1519         * locale/programs/ld-monetary.c: Likewise.
1520         * locale/programs/ld-name.c: Likewise.
1521         * locale/programs/ld-numeric.c: Likewise.
1522         * locale/programs/ld-paper.c: Likewise.
1523         * locale/programs/ld-paper.c: Likewise.
1524         * locale/programs/ld-telephone.c: Likewise.
1525         * locale/programs/ld-time.c: Likewise.
1526         * locale/programs/locfile.c: Likewise.
1527         * locale/programs/localedef.c: Likewise.
1528         * locale/programs/localedef.h: Likewise.
1529         * locale/programs/locfile.h: Likewise.  Add declaration for
1530         find_translit.
1531         * locale/programs/simple-hash.c: Add const to first parameter of
1532         find_entry, iterate_table, and lookup.
1533         * locale/programs/simple-hash.h: Likewise.
1534         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
1535         instead.
1536         * include/locale.h: Define __LC_LAST.
1537         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
1539 2001-12-07  Geoff Keating  <geoffk@redhat.com>
1541         * sysdeps/powerpc/Dist: Update for recent FP changes.
1542         * sysdeps/powerpc/fpu/Dist: Likewise.
1544 2001-12-07  Andreas Schwab  <schwab@suse.de>
1546         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
1548 2001-12-06  Geoff Keating  <geoffk@redhat.com>
1550         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
1551         save/restore functions here.
1552         (libm-support): Don't define these functions here.
1553         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
1554         functions here.
1555         * sysdeps/powerpc/fe_nomask.c: Move to...
1556         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
1557         * sysdeps/powerpc/fprrest.S: Move to...
1558         * sysdeps/powerpc/fpu/fprrest.S: ... here.
1559         * sysdeps/powerpc/fprsave.S: Move to...
1560         * sysdeps/powerpc/fpu/fprsave.S: ... here.
1562 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
1564         * sysdeps/unix/sysv/linux/opensock.c: New file.
1566 2001-12-06  Geoff Keating  <geoffk@redhat.com>
1568         * config.make.in (with-fp): Define from configure.
1569         * configure.in: Substitute with_fp.
1570         * configure: Regenerate.
1571         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
1572         specified, and don't change FPU environment.
1574 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
1576         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
1577         * assert/assert.c: Check result of __asprintf call and don't use
1578         string if it failed.
1579         * assert/assert-perr.c: Likewise.
1580         * inet/rcmd.c: Likewise.
1581         * locale/programs/localedef.c (main): Check result of
1582         construct_output_path and exit if it failed.
1583         (construct_output_path): Check result of asprintf and mkdir calls and
1584         fail if they failed.
1585         * posix/getopt.c: Check result of __asprintf calls and fail if
1586         they failed.
1587         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
1589 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1591         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
1592         patch.
1593         * sysdeps/generic/strncase.c: Likewise.
1594         * string/tester.c: Add tests for strcasecmp and strncasecmp.
1596 2001-12-05  Geoff Keating  <geoffk@redhat.com>
1598         * scripts/cpp: Test the exit status from 'type', not 'awk'.
1600         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
1601         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
1602         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
1603         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
1604         * sysdeps/powerpc/fclrexcpt.c: Move to...
1605         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
1606         * sysdeps/powerpc/fpu_control.h: Move to...
1607         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
1609 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1611         * iconvdata/ibm1129.h: Remove duplicate mappings.
1612         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
1613         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
1614         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1616         * timezone/zic.c: Fix handling of turnaround times.
1617         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
1619 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
1621         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
1622         overflow problem.
1624 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1626         * posix/regex.c: For use outside glibc defined bounded pointer
1627         macros here.  Patch by Jim Meyering <jim@meyering.net>.
1629         * iconvdata/Makefile (modules): Add TCVN5712-1.
1630         * iconvdata/TESTS: Add TCVN5712-1.
1631         * iconvdata/gconv-modules: Likewise.
1632         * iconvdata/tcvn5712-1.c: New file.
1633         * iconvdata/testdata/TCVN-5712: New file.
1634         * iconvdata/testdata/TCVN-5712..UTF8: New file.
1636 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
1638         * iconvdata/cp1258.c: Optimize conversion from UCS4.
1640 2001-12-02  Roland McGrath  <roland@frob.com>
1642         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
1644         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
1645         Reported by Jeff Bailey <jbailey@nisa.net>.
1647         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
1648         Reported by Jeff Bailey <jbailey@nisa.net>.
1650         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
1651         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
1652         Reported by Jeff Bailey <jbailey@nisa.net>.
1654 2001-12-01  Roland McGrath  <roland@frob.com>
1656         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
1657         missing backslash in test arguments.
1658         * sysdeps/mach/hurd/configure: Regenerated.
1660 2001-11-26  Roland McGrath  <roland@frob.com>
1662         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
1663         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
1665 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
1667         * iconvdata/Makefile (modules): Add ARMSCII-8.
1668         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
1669         * iconvdata/armscii-8.c: New file.
1671 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
1673         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
1674         don't match, fix {{a,b},c} globbing, clean up.
1675         Patch by Flavio Veloso <flaviovs@magnux.com>.
1676         * posix/globtest.sh: Add new tests.
1678 2001-11-29  Andreas Jaeger  <aj@suse.de>
1680         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
1681         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
1683         * sysdeps/generic/abort.c: Include libioP.h for
1684         _IO_flush_all_lockp prototype.
1686 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
1688         * posix/regex.h: Define __restrict_arr correctly.
1690 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
1692         * iconvdata/ibm1163.c: New file.
1693         * iconvdata/ibm1163.h: New file.
1694         * iconvdata/ibm1164.c: New file.
1695         * iconvdata/ibm1164.h: New file.
1696         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
1697         * iconvdata/Makefile: Likewise.
1698         * iconvdata/testdata/IBM1163: New file.
1699         * iconvdata/testdata/IBM1163..UTF8: New file.
1700         * iconvdata/testdata/IBM1164: New file.
1701         * iconvdata/testdata/IBM1164..UTF8: New file.
1702         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1704         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
1705         * iconvdata/ibm1124.h: Likewise.
1706         * iconvdata/ibm1132.h: Likewise.
1707         * iconvdata/ibm1133.h: Likewise.
1708         * iconvdata/ibm1160.h: Likewise.
1709         * iconvdata/ibm1161.h: Likewise.
1710         * iconvdata/ibm1162.h: Likewise.
1711         * iconvdata/ibm856.h: Likewise.
1712         * iconvdata/ibm922.h: Likewise.
1713         * iconvdata/ibm930.h: Likewise.
1714         * iconvdata/ibm932.h: Likewise.
1715         * iconvdata/ibm933.h: Likewise.
1716         * iconvdata/ibm935.h: Likewise.
1717         * iconvdata/ibm937.h: Likewise.
1718         * iconvdata/ibm939.h: Likewise.
1719         * iconvdata/ibm943.h: Likewise.
1720         * iconvdata/ibm930.c: Pretty printing.
1721         * iconvdata/ibm937.c: Avoid access accross array boundary.
1723         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
1724         the current locale's codeset.
1725         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
1726         empty input string.
1727         * iconv/iconv_prog.c: Pass empty strings as default value for to-
1728         and from-charset.  Don't determine locale's charset here.
1730         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
1731         as the old _IO_flush_all but lock only if parameter is nonzero.
1732         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
1733         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
1734         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
1735         if libio is used [PR libc/2575].
1737 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
1739         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
1740         __signbitl): Only define for ISO C99.
1742 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
1744         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
1745         herrnop to NETDB_INTERNAL if we run out of buffer space.
1747 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
1749         * nss/nss_files/files-XXX.c (internal_getent): Correct input
1750         overflow test for platforms with signed char.
1751         Reported by Andrew Haley <aph@cambridge.redhat.com>.
1753 2001-11-28  Bruno Haible  <bruno@clisp.org>
1755         * locale/programs/simple-hash.c (lookup_2): Remove function.
1756         (insert_entry_2): Call lookup instead of lookup_2.
1758 2001-03-04  Bruno Haible  <bruno@clisp.org>
1760         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
1762 2001-10-31  Bruno Haible  <bruno@clisp.org>
1764         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
1766 2001-03-21  Bruno Haible  <bruno@clisp.org>
1768         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
1769         chokes on empty macro arguments.
1770         * intl/plural.y: Add #pragma for alloca on AIX 3.
1772 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
1774         * intl/dcigettext.c (guess_category_value): Only implement for
1775         glibc.  Otherwise rely on function _nl_locale_name which isn't
1776         present in the glibc sources.
1778 2001-09-24  Bruno Haible  <bruno@clisp.org>
1780         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
1781         transliteration when building on a glibc system but outside glibc.
1783 2001-09-22  Bruno Haible  <bruno@clisp.org>
1785         * intl/plural-eval.c: New file, extracted from dcigettext.c.
1786         * intl/dcigettext.c (plural_eval): Remove function, moved to
1787         intl/plural-eval.c.
1788         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
1789         Include plural-eval.c.
1791 2001-09-22  Bruno Haible  <bruno@clisp.org>
1793         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
1794         don't start with a digit; nplurals must be positive.
1796 2001-09-02  Bruno Haible  <bruno@clisp.org>
1798         * intl/plural-exp.h: New file, extracted from gettextP.h.
1799         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
1800         * intl/gettextP.h (struct expression, struct parse_args,
1801         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
1802         * intl/loadmsgcat.c: Include plural-exp.h.
1803         (PLURAL_PARSE): Move macro to plural-exp.h.
1804         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
1805         plural-exp.c.
1806         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
1807         EXTRACT_PLURAL_EXPRESSION.
1808         (_nl_unload_domain): Update.
1809         * intl/dcigettext.c: Include plural-exp.h.
1810         * intl/plural.y: Include plural-exp.h, not gettextP.h.
1811         (FREE_EXPRESSION): Move macro to plural-exp.h.
1812         * intl/Makefile (routines): Add plural-exp.
1813         (distribute): Add plural-exp.h.
1815 2001-07-28  Bruno Haible  <bruno@clisp.org>
1817         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
1818         isdigit, tolower argument to 'unsigned char'.
1819         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
1820         'unsigned char'.
1821         * intl/localealias.c (read_alias_file): Cast isspace argument to
1822         'unsigned char'.
1824 2001-10-20  Bruno Haible  <bruno@clisp.org>
1826         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
1827         anyway.)
1828         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
1829         with the variable 'index' in plural_lookup.
1830         * intl/l10nflist.c (strchr): Likewise.
1831         * intl/localealias.c (strchr): Likewise.
1833         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
1834         * intl/bindtextdom.c: Likewise.
1835         * intl/dcigettext.c: Likewise.
1836         * intl/dgettext.c: Likewise.
1837         * intl/dngettext.c: Likewise.
1838         * intl/explodename.c: Likewise.
1839         * intl/finddomain.c: Likewise.
1840         * intl/gettext.c: Likewise.
1841         * intl/l10nflist.c: Likewise.
1842         * intl/loadmsgcat.c: Likewise.
1843         * intl/localealias.c: Likewise.
1844         * intl/ngettext.c: Likewise.
1845         * intl/textdomain.c: Likewise.
1846         * intl/gettext.h: Assume <limits.h> exists.
1848 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
1850         * stdio-common/Makefile (tests): Add scanf11.
1851         * stdio-common/scanf11.c: New file.
1853 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
1855         * version.h (RELEASE): Define as development.
1856         (VERSION): Set to 2.2.90.
1858 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
1860         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
1861         * nis/nss_nis/nis-grp.c: Likewise.
1862         * nis/nss_nisplus/nisplus-grp.c: Likewise.
1864         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
1865         * nis/nss_nis/nis-pwd.c: Likewise.
1866         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
1868         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
1869         * nis/nss_nisplus/nisplus-parser.c: Likewise.
1870         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
1872         * nscd/grpcache.c: Use strtoul instead of atol.
1873         * nscd/pwdcache.c: Likewise.
1874         * nss/getent.c: Likewise.
1876 2001-11-27  Paul Eggert  <eggert@twinsun.com>
1878         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
1879         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
1881 2001-11-19  Bruno Haible  <bruno@clisp.org>
1883         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
1884         90%.
1885         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
1886         improves the quality of the hash function, especially for short
1887         strings.
1889 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
1891         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
1892         are found call conv_error and not input_error [PR libc/2669].
1894         * math/bits/mathcalls.h: Mark ceil and floor as const.
1895         Reported by David Mosberger.
1897 2001-11-21  Jim Meyering  <meyering@lucent.com>
1899         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
1900         Define to be __-prefixed.
1901         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
1903 2001-11-26  Andreas Jaeger  <aj@suse.de>
1905         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
1906         avoid warning.
1908 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
1910         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
1911         initialization.
1913         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
1914         unused variables.  Fix threshold for returning 1.0.
1916         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
1917         argument.
1919         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
1920         remove unused variables.
1922         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
1924         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
1925         include local math header files.
1927 2001-11-22  Andreas Jaeger  <aj@suse.de>
1929         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
1930         avoid warning.
1932 2001-11-21  Andreas Jaeger  <aj@suse.de>
1934         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
1936         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
1937         sys/debugreg.h
1939 2001-11-15  Andreas Jaeger  <aj@suse.de>
1941         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
1942         compilers that support it.
1944         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
1945         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
1946         * stdlib/stdlib.h: Likewise.
1948 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
1950         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
1951         statement with gotos.
1952         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
1954 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
1956         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
1958 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
1960         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
1962 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
1963             H.J. Lu  <hjl@gnu.org>
1965         * Versions.def (libc): Add GCC_3.0.
1966         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
1967         if gcc supports this flag.
1968         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
1969         (gcc3): Allow glibc to be compiled with gcc 3.x.
1970         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
1971         * config.make.in (static-libgcc, unwind-find-fde): Add.
1972         * Makerules (build-shlib-helper, build-module-helper): Use it.
1973         * scripts/versions.awk: Make sure GLIBC_ versions come first.
1974         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
1975         necessary.
1976         (_fini): Call __deregister_frame_info_bases if
1977         __register_frame_info_bases was used to register.
1978         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
1979         for GLIBC_2.0.
1980         (__register_frame_info_bases, __register_frame_info_table_bases,
1981         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
1982         * elf/Makefile (routines): Add unwind-dw2-fde.
1983         (shared-only-routines): Add unwind-dw2-fde.
1984         * sysdeps/alpha/gccframe.h: New file.
1985         * sysdeps/arm/gccframe.h: New file.
1986         * sysdeps/generic/framestate.c: New file.
1987         * sysdeps/generic/dwarf2.h: New file.
1988         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
1989         * sysdeps/generic/unwind-dw2-fde.c: New file.
1990         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
1991         * sysdeps/generic/unwind-dw2-fde.h: New file.
1992         * sysdeps/generic/unwind-dw2.c: New file.
1993         * sysdeps/generic/unwind-pe.h: New file.
1994         * sysdeps/generic/unwind.h: New file.
1995         * sysdeps/hppa/gccframe.h: New file.
1996         * sysdeps/i386/gccframe.h: New file.
1997         * sysdeps/m68k/gccframe.h: New file.
1998         * sysdeps/mips/gccframe.h: New file.
1999         * sysdeps/powerpc/gccframe.h: New file.
2000         * sysdeps/s390/gccframe.h: New file.
2001         * sysdeps/sh/gccframe.h: New file.
2002         * sysdeps/sparc/gccframe.h: New file.
2003         * sysdeps/vax/gccframe.h: New file.
2004         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
2005         Set on all architectures except ia64.
2006         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
2007         for i386.
2008         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
2009         __deregister_frame_info): Move to elf/Versions.
2010         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
2011         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2012         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
2013         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
2014         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
2015         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2016         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
2017         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2018         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
2019         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
2020         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
2021         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
2022         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
2023         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
2024         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
2025         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
2026         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
2027         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
2029 2001-11-15  Jeff Law  <law@redhat.com>
2031         * posix/regex.c (uintptr_t): Do not provide a definition if the
2032         system provided one.
2034 2001-11-13  Roland McGrath  <roland@frob.com>
2036         * stdio-common/tmpfile.c: Moved to ...
2037         * sysdeps/generic/tmpfile.c: ... here.
2038         * sysdeps/mach/hurd/tmpfile.c: New file.
2040         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
2041         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
2042         (fopenport): Define as weak alias.
2044         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
2045         * libio/libioP.h: ... to here.
2047 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
2049         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
2050         program header twice.  Construct list with the needed information.
2052 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
2054         * po/ca.po: Update from translation team.
2056         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
2057         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
2058         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
2059         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
2061 2001-11-10  Andreas Jaeger  <aj@suse.de>
2063         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
2064         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2065         Contributed by Stephen L Moshier <moshier@mediaone.net>.
2067 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
2069         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
2070         correctly.
2071         * elf/dl-load.c (is_dst): New function.
2072         (_dl_dst_count): Use is_dst to check for DST variable.
2073         (_dl_dst_substitute): Likewise.
2075 2001-11-09  Roland McGrath  <roland@frob.com>
2077         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
2078         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
2079         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
2080         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
2081         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
2082         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
2083         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
2084         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
2085         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
2086         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
2087         * sysdeps/mach/hurd/powerpc/Dist: New file.
2089         * hurd/privports.c (__get_privileged_ports):
2090         Only contact the proc server if necessary for this call.
2091         Suggested by Neal H Walfield <neal@cs.uml.edu>.
2092         Check error return for mach_port_mod_refs.
2094 2001-11-09  Andreas Schwab  <schwab@suse.de>
2096         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
2098 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
2100         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
2101         object is always the last in the list.
2102         (_dl_map_object_from_fd): Delete code to remove from object list
2103         when DF_1_NOOPEN is seen.  This is done in lose.
2105 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
2107         * elf/dl-object.c (_dl_new_object): Various small optimizations.
2109 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
2111         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
2112         HWCAP_CHECK macro code.
2114         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
2115         Now returns MAP_FAILED on error.
2116         * elf/rtld.c: Adjust caller.
2117         * sysdeps/generic/dl-cache.c: Likewise.
2118         * sysdeps/generic/ldsodefs.h: Adjust description.
2120         * elf/dl-version.c (match_symbol): Optimize error handling for size.
2121         (_dl_check_map_versions): Likewise.
2123 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
2125         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
2126         _dl_signal_error directly, always use lose.  Set fd to -1 after
2127         file is closed.
2128         (lose): Don't call close if fd == -1.
2130 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
2132         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
2133          Also fix typo @code {mbsinit} to @code{mbsinit}.
2135 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
2137         * elf/dl-profile.c: Replace state variable with simple flag named
2138         running.  Remove commented-out code.
2140         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
2141         (_dl_init_paths): Likewise.
2142         (_dl_map_object_from_fd): Likewise.
2143         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
2145 2001-11-06  Roland McGrath  <roland@frob.com>
2147         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
2148         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
2150         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
2151         sysdeps/powerpc/elf/sysdep.h.
2152         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
2154 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
2156         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
2157         speed.
2158         (process_envvars): Some more optimizations.
2159         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
2161         * elf/elf.h: Add dynamic tag definitions for prelinking.
2163         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
2164         Rewrite code to remove environment varables for SUID binaries.
2165         Small optimization in LD_PROFILE handling.
2166         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
2167         changes.
2168         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
2170         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
2172         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
2173         strings.  Change type of second parameter.
2174         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
2175         for last change.
2177         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
2179 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
2181         * manual/string.texi: Fix typos.
2182         * manual/examples/argp-ex2.c: Likewise.
2184 2001-11-05  Roland McGrath  <roland@frob.com>
2186         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
2187         the more-specific unix/sysv/linux/powerpc file and breaks everything.
2188         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
2189         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
2190         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
2191         here, put under [__ELF__].
2193 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
2195         * manual/charset.texi: Extensive editing work.
2196         * manual/nss.texi: Likewise.
2197         Changes by Dennis Grace <dgrace@us.ibm.com>.
2199 2001-11-04  Roland McGrath  <roland@frob.com>
2201         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
2202         parameter to dir_mkfile.
2204 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
2206         * string/bits/string2.h (__strndup): If n is smaller than len, set
2207         len to n + 1.
2208         * string/tester.c (test_strndup): New function.
2209         (main): Call it.
2211 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
2213         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
2215         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
2216         * scripts/cpp: New file.
2218         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
2219         for rtld_search_dirs content.  Minor optimizations.
2221 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
2223         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
2224         avoiding unnecessary duplication.
2226 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
2228         * elf/dl-load.c (_dl_map_object): If library was found using
2229         LD_LIBRARY_PATH, don't try RUNPATH list.
2231 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2233         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
2234         Correct second argument of register_dump call.
2235         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
2236         Likewise.
2238 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
2240         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
2241         modules.
2242         * iconvdata/TESTS: Likewise.
2243         * iconvdata/gconv-modules: Likewise.
2244         * iconvdata/ibm1132.c: New file.
2245         * iconvdata/ibm1132.h: New file.
2246         * iconvdata/ibm1133.c: New file.
2247         * iconvdata/ibm1133.h: New file.
2248         * iconvdata/ibm1162.c: New file.
2249         * iconvdata/ibm1162.h: New file.
2250         * iconvdata/testdata/IBM1132: New file.
2251         * iconvdata/testdata/IBM1132..UTF8: New file.
2252         * iconvdata/testdata/IBM1133: New file.
2253         * iconvdata/testdata/IBM1133..UTF8: New file.
2254         * iconvdata/testdata/IBM1162: New file.
2255         * iconvdata/testdata/IBM1162..UTF8: New file.
2256         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
2258         * string/string.h: Fix typo in comment.
2259         * wcsmbs/wchar.h: Likewise.
2261 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
2263         * manual/getopt.texi (getopt_long, getopt_long_only): Include
2264         const in type of longopts parameter.
2266 2001-10-29  Andreas Jaeger  <aj@suse.de>
2268         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
2270 2001-10-29  Kevin Ryde  <user42@zip.com.au>
2272         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
2273         output, clarify `#' behaviour on 0.
2274         (Floating-Point Conversions): Clarify that %g only uses %e when
2275         the exponent would be greater than 1.
2277 2001-10-28  Roland McGrath  <roland@frob.com>
2279         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
2280         * sysdeps/mach/powerpc/machine-sp.h: New file.
2281         * sysdeps/mach/powerpc/sysdep.h: New file.
2282         * sysdeps/mach/powerpc/thread_state.h: New file.
2284         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
2285         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
2286         expect to need the same thing on every platform.
2288         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
2289         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
2291         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
2292         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
2293         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
2294         Move all these assembly-related definitions to ...
2295         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
2297         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
2298         by Peter Bruin <pjbruin@dds.nl>.
2300         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
2301         packing results for a `poll' call.
2303 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
2305         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
2306         correctly.
2307         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
2308         bracket expression.
2310         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
2311         nrules value.
2312         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
2314 2001-10-24  H.J. Lu  <hjl@gnu.org>
2316         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
2317         Use __BEGIN_DECLS/__END_DECLS around prototypes.
2318         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
2320 2001-10-21  Jim Meyering  <meyering@lucent.com>
2322         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
2323         this code would end up calling gettext even in packages built
2324         with --disable-nls.
2325         * posix/getopt.c (_): Likewise.
2326         * posix/regex.c (_): Likewise.
2328 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
2330         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
2331         lookup not ip6.int.
2332         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
2333         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
2335 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
2337         * misc/sys/cdefs.h (__attribute_used__): Define.
2338         * elf/rtld.c (_dl_start): Add __attribute_used__.
2339         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
2341 2001-10-25  Andreas Schwab  <schwab@suse.de>
2343         * stdlib/a64l.c: Expect least significant digit first.
2344         * stdlib/l64a.c: Produce least significant digit first.
2345         * stdlib/Makefile (tests): Add test-a64l.
2346         * stdlib/test-a64l.c: New file.
2347         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
2349 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
2351         * po/sk.po: Update from translation team.
2353 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
2355         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
2357 2001-10-18  Andreas Schwab  <schwab@suse.de>
2359         * math/libm-test.inc (print_ulps): Print ulp values rounded to
2360         next whole number.
2361         (print_function_ulps): Likewise.
2362         (print_complex_function_ulps): Likewise.
2363         (print_max_error): Likewise.
2364         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
2366 2001-10-16  Andreas Schwab  <schwab@suse.de>
2368         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
2369         implementation.
2371         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
2372         BSD_SETJMP or BSD__SETJMP is defined, resp.
2373         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
2374         a tail call to __sigsetjmp that would require extending the
2375         caller's frame.
2376         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
2377         * sysdeps/m68k/bsd-setjmp.S: Deleted.
2378         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
2379         Reported by Jes Sorensen <jes@trained-monkey.org>.
2381 2001-10-16  Andreas Jaeger  <aj@suse.de>
2383         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
2384         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
2385         close PR libc/2589.
2387 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
2389         * po/ca.po: New file.  Contributed by the translation team.
2391 2001-10-15  Ralf Baechle  <ralf@gnu.org>
2393         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
2394         a varargs prototype.  Remove dependency from kernel header files.
2396         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
2397         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
2399 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
2401         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
2402         to generate hexadecimal identifier.
2403         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
2405 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
2407         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
2409 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
2411         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
2412         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
2413         Contributed by Stephen L Moshier <moshier@mediaone.net>.
2415         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
2416         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2417         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
2418         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
2419         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
2420         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
2422         * timezone/africa: Update from tzdata2001d.
2423         * timezone/asia: Likewise.
2424         * timezone/australasia: Likewise.
2425         * timezone/backward: Likewise.
2426         * timezone/europe: Likewise.
2427         * timezone/leapseconds: Likewise.
2428         * timezone/northamerica: Likewise.
2429         * timezone/southamerica: Likewise.
2430         * timezone/zone.tab: Likewise.
2432 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2434         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
2435         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
2437 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
2439         * elf/elf.h (PT_TLS): New definition.
2441 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
2443         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
2444         bits/errno.h
2446 2001-10-07  Roland McGrath  <roland@frob.com>
2448         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
2450 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
2452         * elf/elf.h: Add more ELFOSABI_* constants.
2454 2001-10-04  Ben Collins  <bcollins@debian.org>
2456         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
2457         decleration of __need_wchar_t.
2459 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
2461         * string/bits/string2.h (__strsep_g): Add prototype.
2462         (__strsep): Use it.
2463         * string/Versions (__strsep): Remove.
2464         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
2466 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
2468         * manua/llio.texi: Clarify file references added by mmap.
2469         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
2471 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
2473         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
2474         Add sc_loadrs and sc_rbs_bas to match current kernel.
2476 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
2478         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
2480         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
2482 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
2484         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
2485         object has been bumped because of relocation dependency, avoid
2486         duplicates in l_scope.
2487         (show_scope): Fix typos.
2488         * elf/Makefile: Add rules to build and run reldep6.
2489         * elf/reldep6.c: New file.
2490         * elf/reldep6mod0.c: New file.
2491         * elf/reldep6mod1.c: New file.
2492         * elf/reldep6mod2.c: New file.
2493         * elf/reldep6mod3.c: New file.
2494         * elf/reldep6mod4.c: New file.
2496 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
2498         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
2499         sparc64_fixup_plt.
2500         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
2501         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
2502         for non-lazy binding. Fix .plt[32768+] handling.
2503         (elf_machine_plt_value): Don't add addend.
2504         (elf_machine_rela): Call sparc64_fixup_plt instead of
2505         elf_machine_fixup_plt.
2506         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
2507         dynamic linker at 0xfffff800XXXXXXXX.
2509         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
2511 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
2513         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
2515 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
2517         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
2518         declare __cmsg_data field if its size would be bigger than 0.
2519         (CMSG_DATA): Adjust accordingly.
2520         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
2521         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
2522         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
2523         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
2524         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2525         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
2526         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2528 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
2530         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
2531         * iconvdata/testdata/IBM1160: New file.
2532         * iconvdata/testdata/IBM1160..UTF8: New file.
2533         * iconvdata/testdata/IBM1161: New file.
2534         * iconvdata/testdata/IBM1161..UTF8: New file.
2535         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
2537 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
2539         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
2540         UL_SETFSIZE computations better.
2542         * rt/Makefile: Remove use of filter for librt again.
2544         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
2545         UL_SETFSIZE computations better.
2547         * string/Versions: Export __strsep for GLIBC_2.2.5.
2548         * string/bits/string2.h: Define all __STRING_INLINE functions if
2549         _FORCE_INLINES is defined.
2550         Use int instead of char of parameter types.
2551         (__strsep): Don't use __strsep_g.  Don't define it.
2552         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
2553         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
2554         __strcpy_small.
2555         (__stpcpy_a_small): Renamed from __stpcpy_small.
2556         (__strcspn_c1): Don't define if _FORCE_INLINES.
2557         (__strspn_c1): Likewise.
2559 2001-09-22  Ben Collins  <bcollins@debian.org>
2561         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
2562         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
2563         * sysdeps/ia64/bits/sigaction.h: Likewise.
2564         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
2566 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
2568         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
2570 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
2572         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
2574 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
2576         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
2578 2001-09-20  H.J. Lu  <hjl@gnu.org>
2580         * include/dlfcn.h (__RTLD_SPROF): New definiton.
2581         * elf/dl-open.c (dl_open_worker): Return immediately after loading
2582         for __RTLD_SPROF.
2583         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
2584         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
2586 2001-09-20  H.J. Lu  <hjl@gnu.org>
2588         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
2589         don't add 1.
2591 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
2593         * nss/getent.c: Accept -s parameter to overwrite rules in
2594         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
2596         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
2597         with as many ".0" as necessary to form a complete address
2598         inet_network understands.
2600         * nss/getent.c: Various cleanups.  Use simpler and fewer function
2601         calls.
2603 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2605         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
2606         _JMPBUF_UNWINDS.
2607         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
2609 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
2611         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
2612         IBM1161.
2613         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
2614         * iconvdata/ibm1160.c: New file.
2615         * iconvdata/ibm1160.h: New file.
2616         * iconvdata/ibm1161.c: New file.
2617         * iconvdata/ibm1161.h: New file.
2618         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
2620 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
2622         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
2623         difference between base address and first PT_LOAD's virtual address,
2624         not the base address.
2626 2001-09-11  Tom Rix  <trix@redhat.com>
2628         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
2629         ifdef for __getopt_clean_environment.
2630         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
2632 2001-09-22  Andreas Jaeger  <aj@suse.de>
2634         * elf/reldep4.c (main): Add proper prototype to fix warning.
2636         * elf/reldep5.c (main): Remove unused variable.
2638         * math/math_private.h: Add prototypes.
2640 2001-09-21  Andreas Jaeger  <aj@suse.de>
2642         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
2643         * sysdeps/x86_64/Dist: New file.
2644         * sysdeps/x86_64/soft-fp/Dist: New file.
2646         * sysdeps/gnu/Dist: Remove eval.c.
2648 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
2650         * malloc/memusage.c (realloc): Don't count already allocated
2651         memory in the sums.
2652         (me): Always use dlsym() to find the real implementations.
2654         * malloc/memusage.sh: Make -n option actually do something.
2656 2001-09-20  Andreas Jaeger  <aj@suse.de>
2658         * elf/elf.h (R_390_NUM): Correct value.
2660         * Versions.def: Add missing versions 2.2.3 for libthread_db and
2661         libpthread.
2663         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
2664         for x86-64, install x86-64 into */lib64.
2666         * shlib-versions: Add x86-64.
2668         * elf/elf.h: Add x86-64 relocations.
2670 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
2672         * po/fr.po: Update from translation team.
2674 2001-09-19  Andreas Jaeger  <aj@suse.de>
2676         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
2677         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
2678         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
2679         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
2680         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
2681         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
2682         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
2683         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
2684         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
2685         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
2686         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
2687         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
2688         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
2689         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
2690         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
2691         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
2692         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
2693         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
2694         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
2695         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
2696         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
2697         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
2698         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
2699         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
2700         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
2701         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
2702         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
2703         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
2704         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
2705         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
2706         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
2707         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
2708         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
2709         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
2710         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
2711         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
2712         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
2713         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
2714         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
2715         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
2716         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
2717         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
2718         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
2719         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
2720         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
2721         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
2722         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
2723         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
2724         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
2725         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
2726         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
2727         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
2728         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
2729         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
2730         * sysdeps/unix/x86_64/sysdep.S: New file.
2731         * sysdeps/unix/x86_64/sysdep.h: New file.
2732         * sysdeps/x86_64/Implies: New file.
2733         * sysdeps/x86_64/Makefile: New file.
2734         * sysdeps/x86_64/Versions: New file.
2735         * sysdeps/x86_64/__longjmp.S: New file.
2736         * sysdeps/x86_64/abort-instr.h: New file.
2737         * sysdeps/x86_64/atomicity.h: New file.
2738         * sysdeps/x86_64/bits/endian.h: New file.
2739         * sysdeps/x86_64/bits/setjmp.h: New file.
2740         * sysdeps/x86_64/bits/string.h: New file.
2741         * sysdeps/x86_64/bp-asm.h: New file.
2742         * sysdeps/x86_64/bsd-_setjmp.S: New file.
2743         * sysdeps/x86_64/bsd-setjmp.S: New file.
2744         * sysdeps/x86_64/dl-machine.h: New file.
2745         * sysdeps/x86_64/elf/initfini.c: New file.
2746         * sysdeps/x86_64/elf/start.S: New file.
2747         * sysdeps/x86_64/ffs.c: New file.
2748         * sysdeps/x86_64/ffsll.c: New file.
2749         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
2750         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
2751         * sysdeps/x86_64/fpu/e_acosl.c: New file.
2752         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
2753         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
2754         * sysdeps/x86_64/fpu/e_expl.c: New file.
2755         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
2756         * sysdeps/x86_64/fpu/e_log10l.S: New file.
2757         * sysdeps/x86_64/fpu/e_log2l.S: New file.
2758         * sysdeps/x86_64/fpu/e_logl.S: New file.
2759         * sysdeps/x86_64/fpu/e_powl.S: New file.
2760         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
2761         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
2762         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
2763         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
2764         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
2765         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
2766         * sysdeps/x86_64/fpu/fegetenv.c: New file.
2767         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
2768         * sysdeps/x86_64/fpu/fegetround.c: New file.
2769         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
2770         * sysdeps/x86_64/fpu/fesetenv.c: New file.
2771         * sysdeps/x86_64/fpu/fesetround.c: New file.
2772         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
2773         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
2774         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
2775         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
2776         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
2777         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
2778         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
2779         * sysdeps/x86_64/fpu/s_atanl.c: New file.
2780         * sysdeps/x86_64/fpu/s_cosl.S: New file.
2781         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
2782         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
2783         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
2784         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
2785         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
2786         * sysdeps/x86_64/fpu/s_logbl.c: New file.
2787         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
2788         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
2789         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
2790         * sysdeps/x86_64/fpu/s_rintl.c: New file.
2791         * sysdeps/x86_64/fpu/s_significandl.c: New file.
2792         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
2793         * sysdeps/x86_64/fpu/s_sinl.S: New file.
2794         * sysdeps/x86_64/fpu/s_tanl.S: New file.
2795         * sysdeps/x86_64/gmp-mparam.h: New file.
2796         * sysdeps/x86_64/hp-timing.c: New file.
2797         * sysdeps/x86_64/hp-timing.h: New file.
2798         * sysdeps/x86_64/htonl.S: New file.
2799         * sysdeps/x86_64/memusage.h: New file.
2800         * sysdeps/x86_64/setjmp.S: New file.
2801         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
2802         * sysdeps/x86_64/stackinfo.h: New file.
2803         * sysdeps/x86_64/sysdep.h: New file.
2804         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
2806         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
2807         L Moshier.
2809 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2811         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
2812         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
2814 2001-09-18  Andreas Schwab  <schwab@suse.de>
2816         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
2817         list, now that l_scope is a pointer.
2819         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
2820         scope list.
2822 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2824         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
2825         (elf_machine_rela_relative): Add a missing declaration.
2827 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
2829         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
2830         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
2831         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
2832         ldd-rewrite scripts.
2834 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2836         * elf/ldd.bash.in: Update copyright message.
2838 2001-09-17  H.J. Lu  <hjl@gnu.org>
2840         * hurd/hurdmalloc.c (bcopy): Removed.
2841         (realloc): Replace bcopy with memcpy.
2842         * hurd/path-lookup.c (file_name_path_scan): Likewise.
2843         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
2844         * sunrpc/rpcinfo.c (pmapdump): Likewise.
2846         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
2847         (gethostbyaddr): Likewise.
2848         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
2850 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2852         * sysdeps/gnu/eval.c: Removed.
2854 2001-09-18  Andreas Jaeger  <aj@suse.de>
2856         * sysdeps/i386/fpu/s_logbl.S: Move to ...
2857         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
2859         * sysdeps/i386/fpu/s_rintl.S: Move to ...
2860         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
2862         * sysdeps/i386/fpu/s_significandl.S: Move to ...
2863         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
2865 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
2867         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
2868         nrules value.
2870 2001-09-14  H.J. Lu  <hjl@gnu.org>
2872         * sysdeps/mips/fpu/libm-test-ulps: Updated.
2874 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
2876         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
2877         Patch by Florian La Roche <laroche@redhat.com>.
2879         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
2881         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
2882         ETHER_CRC_LEN.
2884 2001-09-14  Andreas Schwab  <schwab@suse.de>
2886         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
2887         Sumner <bls@sgi.com>.
2888         * posix/execlp.c: Likewise.
2890 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
2892         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
2893         is already found earlier in the search scope.
2895 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
2897         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
2898         filter.
2900 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
2902         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
2904 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
2906         * config.h.in: Enforce optimization to be used.
2907         * Makeconfig (preprocess-versions): Define ASSEMBLER.
2908         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
2909         * posix/Makefile (annexc-CFLAGS): Define to -O.
2910         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
2912 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
2914         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
2915         Patch by Stephan Kulow.
2917 2001-09-08  Ben Collins  <bcollins@debian.org>
2919         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
2920         usage of RESOLVE() (r_type, not reloc->r_type).
2922 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
2924         * elf/dl-object.c: Avoid allocating extra memory block for name.
2925         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
2926         allocated separately.
2927         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2929 2001-09-08  H.J. Lu  <hjl@gnu.org>
2931         * po/zh_TW.po: Fix a typo.
2933 2001-09-07  Tom Rix  <trix@redhat.com>
2935         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
2937 2001-08-26  Tom Rix  <trix@redhat.com>
2939         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
2940         command line options.
2941         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
2942         * sysdeps/unix/sysv/aix/start.c: Removed.
2943         * sysdeps/unix/sysv/aix/start-libc.c: New file.
2944         * sysdeps/unix/sysv/aix/init-first.c: New file.
2945         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
2947 2001-09-08  Ben Collins  <bcollins@debian.org>
2949         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
2950         * sysdeps/generic/dl-machine.h: Likewise.
2951         * sysdeps/hppa/dl-fptr.c: Likewise.
2952         * sysdeps/ia64/dl-fptr.c: Likewise.
2953         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
2954         * sysdeps/mips/dl-machine.h: Likewise.
2955         * sysdeps/mips/mips64/dl-machine.h: Likewise.
2956         * sysdeps/powerpc/dl-machine.c: Likewise.
2958 2001-09-07  Ben Collins  <bcollins@debian.org>
2960         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
2962         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
2964 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
2966         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
2967         dependencies if necessary.
2969         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
2970         loaded directly) determine length if l_initfini list by iterating
2971         over its elements.  Minor optimizations.
2972         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
2973         for dependency objects.
2974         If object was already loaded check whether any of the dependencies
2975         is already on the relocation dependency list.  If yes, remove the
2976         latter.  Minor optimizations.
2977         * elf/dl-lookup.c (add_dependency): Add check for self reference of
2978         maps here.  Search l_initfini list only if the object was loaded
2979         directly and not only as a dependency.
2980         (_dl_lookup_symbol): Add relocation dependency also if object
2981         is not in global scope.  Remove test for self-reference here.
2982         (_dl_lookup_versioned_symbol): Likewise.
2983         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
2984         element of first name record.
2985         * elf/loadtest.c: Add some more test to recognize early if an object
2986         wasn't unloaded.
2987         * elf/Makefile: Add rules to build and run reldep5.
2988         * elf/reldep5.c: New file.
2989         * elf/reldepmod5.c: New file.
2990         * elf/reldepmod6.c: New file.
2992         * elf/reldep2.c: Fix typo.
2994 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
2996         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
2997         elements.  Change l_scope to be a pointer only.
2998         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
2999         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
3000         here add searchlist of newly open file to the dependency's scope.
3001         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
3002         only searchlist from its scope.  Free own scope array if necessary.
3003         * elf/Makefile (tests): Add dblload and dblunload now.
3005 2001-09-06  Andreas Jaeger  <aj@suse.de>
3007         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
3008         Stephen L Moshier.
3010 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
3012         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
3013         they both fail.
3014         * elf/dblload.c: New file.
3015         * elf/dblloadmod1.c: New file.
3016         * elf/dblloadmod2.c: New file.
3017         * elf/dblloadmod3.c: New file.
3018         * elf/dblunload.c: New file.
3020 2001-09-04  Richard Henderson  <rth@redhat.com>
3022         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
3023         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
3025 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
3027         Correct very misleading message for error in failed runtime relocation.
3028         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
3029         place of the error.
3030         (_dl_signal_cerror): Likewise.
3031         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
3032         * elf/dl-close.c: Likewise.
3033         * elf/dl-deps.c: Likewise.
3034         * elf/dl-load.c: Likewise.
3035         * elf/dl-lookup.c: Likewise.
3036         * elf/dl-open.c: Likewise.
3037         * elf/dl-reloc.c: Likewise.
3038         * elf/dl-sym.c: Likewise.
3039         * elf/dl-version.c: Likewise.
3040         * sysdeps/generic/dl-sysdep.c: Likewise.
3042 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
3044         * iconv/strtab.c (strtabinit): Initialize null Strent.
3045         (newstring): Move len == 0 handling...
3046         (strtabadd): ...here.
3047         If len == 1, return null Strent.
3048         When inserting a suffix of an existing string, check if
3049         it is not equal to some suffix already recorded.
3050         Copy left and right members over if adding longer string.
3052 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
3054         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
3056         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
3057         (__syscall_gethostname): Add prototype.
3059 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
3061         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
3063 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
3065         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
3067 2001-08-27  Roland McGrath  <roland@frob.com>
3069         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
3070         short, copy that much into NAME anyway before returning error.
3072 2001-09-01  Richard Henderson  <rth@redhat.com>
3074         * sysdeps/alpha/elf/Dist: Remove file.
3075         * sysdeps/alpha/elf/Makefile: Remove file.
3076         * sysdeps/alpha/elf/crtbegin.S: Remove file.
3077         * sysdeps/alpha/elf/crtend.S: Remove file.
3078         * sysdeps/alpha/elf/initfini.c: New file.
3080 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
3082         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
3083         * iconv/tst-iconv3.c: Likewise.
3085 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
3087         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
3089 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
3091         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
3092         export it.
3093         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
3094         * iconv/iconv_prog.c (insert_cache): New function.
3095         (print_known_names): If cache is used call insert_cache to use the
3096         information from the cache [PR libc/2509].
3098 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
3100         * time/strptime.c (strptime_internal): Recognize 'l' format and
3101         handle it like 'I' for symmetry with strftime.
3103 2001-08-31  Richard Henderson  <rth@redhat.com>
3105         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
3106         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
3107         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
3108         (print_statistics): Make scalar unsigned long long.
3109         * sysdeps/alpha/hp-timing.h: New file.
3111 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
3113         * stdio-common/perror.c (perror): Save errno early, pass it
3114         down to perror_internal.
3115         (perror_internal): Add errnum argument.
3117 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
3119         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
3120         Don't add old memory content for R_ALPHA_REFQUAD.
3122 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
3124         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
3125         memory correctly.
3127         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
3128         instead of open, __close instead of close, __getpagesize instead
3129         of getpagesize.
3131         * string/argz-stringify.c (__argz_stringify): Use __strnlen
3132         instead of strnlen.
3133         * include/string.h (strndupa): Redefine here to use __strnlen
3134         instead of strnlen.
3135         * string/strndup.c (__strndup): Use __strnlen not strnlen.
3137         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
3138         connected).
3140 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
3142         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
3143         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
3144         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
3145         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
3146         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
3147         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
3148         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
3150 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
3152         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
3154 2001-08-30  Andreas Jaeger  <aj@suse.de>
3156         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
3157         contributed Stephen L Moshier.
3159 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
3161         * sunrpc/etc.rpc (sgi_fam): Add.
3163 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
3165         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
3167 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
3169         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
3170         first is from a previous call.
3171         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
3173 2001-08-29  Andreas Schwab  <schwab@suse.de>
3175         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
3177 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3179         * config.make.in (INSTALL_SCRIPT): Define.
3180         * Makeconfig (INSTALL_SCRIPT): Define.
3181         * Makerules (do-install-script): New macro to install scripts using
3182         INSTALL_SCRIPT.
3183         (install-bin-script): New rule to install scripts with
3184         do-install-script.
3185         (install-bin-script-nosubdir): New rule.
3186         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
3187         (distinfo-vars): Add $(install-bin-script).
3188         * Rules (others): Likewise.
3189         * Makefile (glibcbug): Install with install-bin-script.
3190         * debug/Makefile (xtrace): Likewise.
3191         (catchsegv): Likewise.
3192         * elf/Makefile (ldd): Likewise.
3193         * malloc/Makefile (mtrace): Likewise.
3194         * timezone/Makefile (tzselect): Likewise.
3196 2001-08-29  H.J. Lu  <hjl@gnu.org>
3198         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
3199         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
3200         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
3202 2001-08-29  Andreas Schwab  <schwab@suse.de>
3204         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
3206 2001-08-28  H.J. Lu  <hjl@gnu.org>
3208         * Makeconfig (combreloc-LDFLAGS): New variable.
3209         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
3210         * config.make.in (have-z-combreloc): New variable.
3211         * configure.in: Substitute libc_cv_z_combreloc.
3213 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
3215         * po/sv.po: Update from translation team.
3216         * po/fr.po: Likewise.
3217         * po/da.po: Likewise.
3219 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3221         * Makerules: Fix a typo: MD% -> MD5.
3223 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
3225         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
3226         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
3228 2001-08-28  Andreas Jaeger  <aj@suse.de>
3230         * manual/libc-texinfo.sh: Add entry about free manuals.
3232         * manual/contrib.texi (Contributors): Fix cross reference.
3234         * manual/libc.texinfo (Copying): Include freemanuals.
3236         * manual/Makefile (appendices): Add freemanuals.
3238         * manual/freemanuals.texi: New file.
3239         Patch by Brian Youmans <3diff@gnu.org>.
3241         * manual/libm-err-tab.pl: Pretty print more platforms, print a
3242         smaller table.
3244         * manual/math.texi (Errors in Math Functions): Fix grammar, start
3245         table on separate page.
3246         Patch by Brian Youmans <3diff@gnu.org>.
3248 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
3250         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
3251         the connection went down after we first used it try to connect
3252         again and resend the message before printing to the console.
3253         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
3255 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
3257         * string/tst-strlen.c (main): Test strnlen (, -1) too.
3258         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
3259         bit set.
3261 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
3263         * iconv/strtab.c (searchstring): Use correct length for comparison.
3264         (strtabadd): Account total size correct if new string has old string as
3265         substring.
3267 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
3269         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
3271 2001-08-27  Andreas Jaeger  <aj@suse.de>
3273         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
3275         * math/libm-test.inc (j0_test): Add extra tests.
3276         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
3277         not x, in Hankel approximation.
3278         Patches by Stephen L Moshier.
3280 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
3282         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
3283         link_map.
3285         * configure.in: Fix test for .rela.dyn section.
3287         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
3289 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
3291         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
3292         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
3293         Pass type_class to _dl_lookup_*.
3294         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
3295         Pass around just type_class instead of noexec, noplt pair.
3296         (_dl_lookup_versioned_symbol): Likewise.
3297         (_dl_lookup_symbol_skip): Pass around just type_class instead of
3298         noexec, noplt pair.
3299         (_dl_lookup_versioned_symbol_skip): Likewise.
3300         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
3301         * elf/do-lookup.h (do_lookup): Likewise.
3302         * include/link.h (struct link_map): Replace noexec and noplt fields
3303         in l_lookup_cache with type_class field.
3304         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
3305         ELF_RTYPE_CLASS_COPY): Define.
3306         Adjust prototypes for _dl_lookup_symbol and
3307         _dl_lookup_versioned_symbol.
3308         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
3309         elf_machine_lookup_noexec_p): Remove.
3310         (elf_machine_type_class): Define.
3311         * sysdeps/arm/dl-machine.h: Likewise.
3312         * sysdeps/hppa/dl-machine.h: Likewise.
3313         * sysdeps/cris/dl-machine.h: Likewise.
3314         * sysdeps/i386/dl-machine.h: Likewise.
3315         * sysdeps/ia64/dl-machine.h: Likewise.
3316         * sysdeps/m68k/dl-machine.h: Likewise.
3317         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3318         * sysdeps/mips/dl-machine.h: Likewise.
3319         * sysdeps/powerpc/dl-machine.h: Likewise.
3320         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3321         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3322         * sysdeps/sh/dl-machine.h: Likewise.
3323         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3324         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3326 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
3328         * manual/message.texi (Advanced gettext functions): Change
3329         description of plural forms for Slovak.
3330         Reported by Marcel Telka <marcel@telka.sk>.
3332         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
3333         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
3335 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
3337         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
3338         typo.  Patch by Florian La Roche <laroche@redhat.com>.
3340 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
3342         * include/link.h (struct link_map): Add l_lookup_cache element.
3343         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
3344         (RESOLVE_MAP): Likewise.
3345         (_dl_relocate_object): Remove cache initialization.
3346         * elf/dl-lookup.c: Rip out cache handling code.
3347         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
3348         declarations.
3350         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
3351         remove some __builtin_expect.
3352         (_dl_lookup_versioned_symbol): Likewise.
3354         * config.h.in: Add HAVE_Z_COMBRELOC.
3355         * configure.in: Add test for -z combreloc.
3357         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
3358         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
3359         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
3360         case to almost no code.
3362 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
3364         * po/tr.po: Update from translation team.
3366 2001-08-24  Andreas Jaeger  <aj@suse.de>
3368         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
3369         make clean works.
3371 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3373         * elf/rtld.c (print_statistics): Printf % after percent values.
3374         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
3376         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
3377         don't have to compute the hash value and initialize current_value.
3378         Move reference_name variable to where it is needed.
3379         (_dl_lookup_versioned_symbol): Likewise.
3381 2001-08-24  Roland McGrath  <roland@frob.com>
3383         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
3384         Just test that strerror returns non-null for a few errno codes.
3386 2001-08-23  Roland McGrath  <roland@frob.com>
3388         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
3389         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
3391         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
3393         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
3394         __mach_reply_port.
3396 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3398         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
3399         returns NULL.
3401         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
3402         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
3403         doesn't do it.
3404         * elf/rtld.c: Include <sys/param.h>.
3405         * elf/dl-reloc.c: Likewise.
3407 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3409         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
3410         empty to prevent junk from being generated.
3411         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
3413 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
3415         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
3416         records.  Rename endrel to relative, initialize it to r, and use it
3417         in elf_machine_rel_relative calls.  Point r after relative relocs.
3419 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3421         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
3422         of R_386_NONE.
3424 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
3426         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
3427         necessary.  Undefine newly defined macros at the end.
3428         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
3429         Rename from elf_machine_rel_relative.
3430         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
3431         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
3432         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
3433         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
3434         Likewise.
3435         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
3436         Likewise.
3437         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
3438         Fix argument types.
3439         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
3440         Fix argument types.
3441         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
3442         Likewise.  Fix argument types.
3443         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
3444         Likewise.  Fix argument types.
3445         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
3446         Fix argument types.
3447         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
3448         ElfW(Rel) in argument.
3449         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
3450         function.
3452 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
3454         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
3456 2001-08-24  Andreas Jaeger  <aj@suse.de>
3458         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
3459         Stephen L Moshier <moshier@mediaone.net>.
3461 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3463         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
3464         first if RELCOUNT is set.
3466         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
3467         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
3468         elf_machine_rel_relative.
3469         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
3470         Minor optimizations.
3471         * sysdeps/arm/dl-machine.h: Likewise.
3472         * sysdeps/cris/dl-machine.h: Likewise.
3473         * sysdeps/hppa/dl-machine.h: Likewise.
3474         * sysdeps/i386/dl-machine.h: Likewise.
3475         * sysdeps/ia64/dl-machine.h: Likewise.
3476         * sysdeps/m68k/dl-machine.h: Likewise.
3477         * sysdeps/mips/dl-machine.h: Likewise.
3478         * sysdeps/powerpc/dl-machine.h: Likewise.
3479         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3480         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3481         * sysdeps/sh/dl-machine.h: Likewise.
3482         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3483         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3485 2001-08-23  Roland McGrath  <roland@frob.com>
3487         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
3489         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
3490         sysdeps/mach version.  Implement counting ("recursive") mutexes
3491         on top of cthreads mutexes.
3492         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
3494         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
3495         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
3496         (__libc_cleanup_region_start, __libc_cleanup_region_end,
3497         __libc_clean_end): Define these to call the cleanup function after
3498         normal exit when they're supposed to.
3500         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
3501         Take new first arg DOIT, a boolean saying whether to really install
3502         any cleanup handler.
3503         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
3504         (__libc_cleanup_end): Likewise.
3505         * sysdeps/generic/bits/libc-lock.h: Same changes.
3506         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
3507         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
3508         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
3509         Likewise.
3510         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
3511         * sysdeps/generic/bits/stdio-lock.h
3512         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
3514 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3516         * elf/ldconfig.c (search_dir): Remove stale symlinks.
3518 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3520         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
3521         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
3522         lookups in cache.
3523         (_dl_lookup_versioned_symbol): Likewise.
3524         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
3525         relocation lookup.
3526         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
3527         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
3528         (lookup_cache, lookup_cache_versioned): Add declarations.
3530 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
3532         * stdlib/tst-random.c (main): Swap parameters in fail call.
3533         Patch by Pete Bevin <pete@petebevin.com>.
3535 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3537         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
3539 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
3541         * malloc/obstack.c: Indent preprocessor directives.
3542         Patch by Jim Meyering <meyering@ascend.com>.
3544         * po/ja.po: Update from translation team.
3546 2001-08-23  Roland McGrath  <roland@frob.com>
3548         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
3550         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
3551         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
3553 2001-08-22  Roland McGrath  <roland@frob.com>
3555         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
3556         __libc_lock_define_recursive.
3557         * elf/dl-open.c: Don't declare it here any more.
3558         * elf/dl-close.c: Likewise.
3559         * elf/dl-lookup.c: Likewise.
3560         * elf/dl-iteratephdr.c: Likewise.
3561         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
3562         __libc_lock_unlock_recursive.
3563         * elf/dl-close.c (_dl_close): Likewise
3564         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
3565         * elf/dl-open.c (_dl_open): Likewise
3567         * sysdeps/generic/bits/libc-lock.h
3568         (__libc_lock_define_recursive): New macro.
3569         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
3570         (_IO_lock_lock): Use __libc_lock_lock_recursive.
3571         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
3573         * conform/conformtest.pl (checknamespace): Sort the output list.
3575         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
3576         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
3577         definitions conditional on [__USE_XOPEN].
3579         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
3580         these unconditionally, not only use [__USE_BSD], so as to match
3581         the sysdeps/unix/sysv/linux files.
3583 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3585         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
3586         avoid warnings.
3588         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
3589         DL_LOOKUP_ADDRESS.
3591 2001-08-22  Roland McGrath  <roland@frob.com>
3593         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
3594         conditionalization of sa_handler/sa_sigaction member types to
3595         match the sysdeps/unix/sysv/linux file.
3597 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3599         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
3600         symbol sizes a bit better.
3602         * sysdeps/ia64/strncpy.S: Complete rewrite.
3603         Contributed by Jakub Jelinek <jakub@redhat.com>.
3605         * string/stratcliff.c (main): Add strncpy test.
3607 2001-08-22  Roland McGrath  <roland@frob.com>
3609         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
3610         and don't declare unsetenv or _environ directly.
3611         (unsetenv): Return int, not void.  Use __environ instead of _environ.
3613 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
3615         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
3616         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
3617         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
3618         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
3619         test for cmsg struct size.
3621 2001-04-23  Paul Eggert  <eggert@twinsun.com>
3623         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
3624         Rename __argc to ___argc in prototypes to avoid compatibility
3625         problems with systems that reserve the identifier "__argc".
3626         Similarly for __argv.
3628 2001-08-21  Roland McGrath  <roland@frob.com>
3630         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
3632         * mach/Makefile (tests): Removed.
3633         * mach/hello.c: File removed.
3635 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3637         * po/sv.po: Update from translation team.
3639         * stdio-common/vfscanf.c: Fix handling of %l[].
3640         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
3642         * libio/Makefile (tests): Add tst-sscanf.
3643         * libio/tst-sscanf.c: New file.
3645         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
3646         * malloc/mtrace.c (tr_where): dli_sname always points to a
3647         non-empty string if != NULL.
3648         Reported by Tim Janik <timj@gtk.org>.
3650 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
3652         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
3653         buf.  Free resources on failure.
3654         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
3655         (makefd_xprt): Likewise.
3656         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
3657         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
3658         * sunrpc/auth_unix.c (authunix_create): Likewise.
3660 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
3662         * string/strnlen.c: Remove.
3663         * sysdeps/generic/strnlen.c: New file.
3664         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
3666 2001-08-21  Roland McGrath  <roland@frob.com>
3668         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
3669         as a macro, not an extern inline function.
3671         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
3672         * Versions.def (libc): Add GLIBC_2.2.5 set.
3673         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
3674         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
3676 2001-08-20  Roland McGrath  <roland@frob.com>
3678         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
3679         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
3681 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
3683         * string/bits/string2.h: Remove strnlen optimization here.
3684         * sysdeps/i386/i486/bits/string.h: Add it here.
3686 2001-08-21  Wolfram Gloger  <wg@malloc.de>
3688         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
3690 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
3692         * po/gl.po: Update from translation team.
3694 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3696         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
3697         * misc/err.c (convert_and_print): Likewise.
3699         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
3700         function calls.
3702 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3704         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
3705         change of the gregset_t type.
3706         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
3708 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
3710         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
3712 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3714         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
3716         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
3718 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
3720         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
3721         before calling the cthreads initialization code.
3723 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3725         * argp/argp-help.c: Fix two problems introduced in last change.
3727         * include/dirent.h: Include <dirstream.h> first.
3729 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
3731         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
3733         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
3734         * sunrpc/xdr_rec.c: Likewise.
3735         * sunrpc/xdr_mem.c: Likewise.
3736         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
3737         * sunrpc/rpc_cmsg.c: Likewise.
3738         * sunrpc/getrpcport.c (getrpcport): Likewise.
3739         * sunrpc/clnt_simp.c (callrpc): Likewise.
3740         * sunrpc/clnt_gen.c (clnt_create): Likewise.
3741         * string/envz.c: Likewise.
3743         * po/ko.po: Update from translation team.
3745         * argp/argp-help.c: Handle wide oriented stderr stream.
3747 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
3749         * sysdeps/generic/strtol.c: Little optimizations.  Add some
3750         __builtin_expect.
3752         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
3754         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
3755         * wcsmbs/wcwidth.c (wcwdith): Likewise.
3756         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
3758         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
3760         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
3762         * time/time.h (struct timespec): Use __time_t for tv_sec element.
3764         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
3765         wchar_t for function declarations and defintions.
3767         * misc/sys/select.h: Define __need_time_t before including <time.h>.
3768         Define suseconds_t if it hasn't happened yet.
3770         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
3772         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
3774         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
3775         <stddef.h>.
3777         * conform/data/stddef.h-data: Remove wint_t.
3779         * conform/conformtest.pl: Change namespace test to take #undef
3780         lines into account.
3782         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
3784         * conform/data/sys/socket.h-data: Add sockatmark.
3786 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3788         * io/fts.c: Update from recent BSD source.
3790 2001-08-17  Roland McGrath  <roland@frob.com>
3792         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
3793         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
3794         Likewise.
3796 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3798         * locale/duplocale.c (__duplocale): Also initialize the special
3799         __ctype_* elements.
3801         * conform/data/netdb.h-data: Adjust gai_strerror return type.
3803 2001-08-17  Andreas Jaeger  <aj@suse.de>
3805         * misc/getpass.c: Include wchar.h for prototypes.
3806         * malloc/obstack.c: Likewise.
3808 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3810         * sunrpc/svc_simple.c (universal): Use __write instead of write.
3812         * wcsmbs/wcscoll.c: Also define __wcscoll.
3813         * include/wchar.h: Declare __wcscoll.
3815         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
3816         * libio/vwprintf.c: Likewise.
3817         * libio/wprintf.c: Likewise.
3819         * iconv/gconv_cache.c: Use __munmap instead of munmap.
3821 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
3823         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
3824         instead of mbrtowc.
3825         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
3826         wcslen, and __wcscoll instead of wcscoll.
3828         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
3830         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
3831         __getuid instead of getuid.
3833         * stdio-common/perror.c (perror): Use __close instead of close.
3834         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
3835         * libio/freopen.c (freopen): Likewise.
3836         * libio/freopen64.c (freopen64): Likewise.
3838         * libio/tst-ungetwc2.c (main): Define str const.
3840         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
3841         * libio/fwprintf.c: Also define __fwprintf.
3842         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
3843         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
3844         * assert/assert-perr.c: Likewise.
3845         * assert/assert.c: Likewise.
3846         * gmon/gmon.c: Likewise.
3847         * inet/rcmd.c: Likewise.
3848         * malloc/obstack.c: Likewise.
3849         * misc/err.c: Likewise.
3850         * misc/error.c: Likewise.
3851         * misc/getpass.c: Likewise.
3852         * posix/getopt.c: Likewise.
3853         * resolv/res_hconf.c: Likewise.
3854         * stdio-common/perror.c: Likewise.
3855         * stdio-common/psignal.c: Likewise.
3856         * stdlib/fmtmsg.c: Likewise.
3857         * sunrpc/auth_unix.c: Likewise.
3858         * sunrpc/clnt_perr.c: Likewise.
3859         * sunrpc/clnt_tcp.c: Likewise.
3860         * sunrpc/clnt_udp.c: Likewise.
3861         * sunrpc/clnt_unix.c: Likewise.
3862         * sunrpc/svc_simple.c: Likewise.
3863         * sunrpc/svc_tcp.c: Likewise.
3864         * sunrpc/svc_udp.c: Likewise.
3865         * sunrpc/svc_unix.c: Likewise.
3866         * sunrpc/xdr.c: Likewise.
3867         * sunrpc/xdr_array.c: Likewise.
3868         * sunrpc/xdr_rec.c: Likewise.
3869         * sunrpc/xdr_ref.c: Likewise.
3870         * sysdeps/generic/wordexp.c: Likewise.
3872         * po/it.po: Update from translation team.
3874         * misc/err.c: Handle wide oriented stderr stream.
3876 2001-08-14  Tom Rix  <trix@redhat.com>
3878         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
3879         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
3881 2001-08-13  Tom Rix  <trix@redhat.com>
3883         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
3884         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
3885         and __intptr_t.
3887 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3889         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
3890         Store the access registers to the ucontext structure.
3891         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
3892         Likewise.
3894         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
3895         Load the access registers from the ucontext structure.
3896         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
3897         Likewise.
3899         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
3900         offsets to the new ucontext layout.
3901         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
3903         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
3904         of the ucontext structure.
3905         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
3907 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
3909         * misc/error.c (error): Handle wide oriented stderr stream correctly.
3910         (error_at_line): Likewise.
3912         * stdio-common/perror.c (perror): Implement according to standard.
3913         The stream orientation must not be changed if the stream was not
3914         oriented before the call.
3915         * stdio-common/Makefile (tests): Add tst-perror.
3916         * stdio-common/tst-perror.c: New file.
3919 See ChangeLog.12 for earlier changes.