Don't define anything if !USE_TLS.
[glibc.git] / ChangeLog
blob2e93c7816295db7617559c592ab32784c4345bb2
1 2002-02-06  Roland McGrath  <roland@frob.com>
3         * malloc/hooks.c [! HAVE_MREMAP]: Conditionalize unused decls.
4         * malloc/malloc.c [! HAVE_MREMAP]: Likewise.
6         * scripts/versions.awk: Improve error message for missing version.
7         Each version inherits from the last one only if they have the same
8         nonnumeric prefix, i.e. GLIBC_x.y and GLIBC_x.z or FOO_x and FOO_y
9         but not GLIBC_x and FOO_y.
11         * scripts/firstversions.awk: Handle libraries that don't have each
12         particular version named in the third column of shlib-versions.
14         * scripts/firstversions.awk: Don't mess with GLIBC_PRIVATE.
16 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
18         * Versions.def [ld]: Add GLIBC_2.3.
19         * elf/Versions [ld]: Add __tls_get_addr to GLIBC_2.3.
20         * elf/Makefile (dl-routines): Add dl-tls.
21         (distribute): Add dl-tls.h.
22         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
23         _dl_tls_module_cnt, add _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
24         Add prototypes for _dl_next_tls_modid and _dl_determine_tlsoffset.
25         * elf/dl-load.c (_dl_map_object_from_fd): Store alignment requirement
26         along with the other info in the link map.  Change queueing of init
27         images for double linked list.  Use _dl_next_tls_modid to compute
28         l_tls_modid.
29         * elf/rtld.c (_dl_start_final): Store alignment requirement
30         along with the other info in rtld map and executable map.
31         (dl_main): Add ld.so to the init image list if necessary.  Compute
32         final module ID with _dl_next_tls_modid.
33         * include/link.h (struct link_map): Add l_tls_previmage and
34         l_tls_align.
35         * eld/dl-support.c: Define _dl_tls_max_dtv_idx and _dl_tls_dtv_gaps.
36         * sysdeps/i386/elf/Versions: New file.
37         * sysdeps/generic/dl-tls.c: New file.
38         * sysdeps/generic/dl-tls.h: New file.
39         * sysdeps/i386/dl-tls.h: New file.
41 2002-02-06  Roland McGrath  <roland@frob.com>
43         * sysdeps/unix/sysv/linux/netinet/ip.h: Moved to ...
44         * sysdeps/generic/netinet/ip.h: ... here, replacing old file.
46 2002-01-05  Roland McGrath  <roland@frob.com>
48         * sysdeps/mach/configure.in: New file.
49         * sysdeps/mach/configure: New generated file.
51         * mach/Makefile (user-interfaces): Remove default_pager_helper.
52         It has never been used by anything.
54 2002-02-06  H.J. Lu  <hjl@gnu.org>
56         * sysdeps/mips/elf/ldsodefs.h: Make sure the right <ldsodefs.h>
57         is included.
59 2002-02-06  Ulrich Drepper  <drepper@redhat.com>
61         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Add
62         attribute((packed)) to counter stupid people misusing gcc options.
63         (struct stat64): Likewise.
65 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
67         * elf/rtld.c (dl_main): Correct indentation.  Use bool as type for
68         the variables which are used as booleans.
70 2002-02-06  Andreas Jaeger  <aj@suse.de>
72         * include/libc-symbols.h (INTUSE): Renamed from INT.
73         * elf/dl-deps.c: Change users.
74         * sysdeps/generic/dl-sysdep.c: Likewise.
75         * sysdeps/generic/dl-cache.c: Likewise.
76         * elf/dl-reloc.c: Likewise.
77         * elf/rtld.c: Likewise.
78         * elf/dl-version.c: Likewise.
79         * elf/dl-load.c: Likewise.
80         * elf/dl-dst.h: Likewise.
81         * elf/dl-init.c: Likewise.
82         * elf/dl-error.c: Likewise.
83         * elf/dl-fini.c: Likewise.
84         * elf/dl-runtime.c: Likewise.
85         * elf/do-lookup.h: Likewise.
87         * stdio-common/_itoa.h: Undefine SPECIAL to avoid duplicate
88         definition.
89         * stdio-common/_itowa.h: Likewise.
91 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
93         * elf/dl-minimal.c: Define _itoa_lower_digits.
95         * elf/dynamic-link.h (elf_get_dynamic_info): ld.so can have
96         DT_FLAGS set.
98         * elf/dl-load.c (_dl_map_object_from_fd): Prevent dynamically
99         loading modules with the DF_STATIC_TLS flag set.
100         * elf/dynamic-link.h (elf_get_dynamic_info): Initialize l_flags
101         element.
102         * include/link.h (struct link_map): Add l_flags field.
103         * elf/elf.h (DF_STATIC_TLS): New definition.
105         * dlfcn/Makefile: Add rules to build and run bug-dlopen1.
106         * dlfcn/bug-dlopen1.c: New file.  By Bruno Haible.
108         * elf/rtld.c (process_dl_debug): Correct printing help message.
109         * elf/dl-misc.c (_dl_debug_vdprintf): Implement precision handling
110         for %s.
112         * inet/getnetgrent_r.c (innetgr): Add int* parameter to getfct
113         definition and pass &errno in use of this variable.
114         Reported by Simon Wilkinson <simon@sxw.org.uk> [PR libc/2911].
116 2002-02-04  Andreas Schwab  <schwab@suse.de>
118         * locale/programs/localedef.h (WITH_CUR_LOCALE): Define.
119         * locale/programs/charmap-dir.c: Wrap calls that output messages
120         with WITH_CUR_LOCALE.  Include "localedef.h" first.
121         * locale/programs/charmap.c: Likewise.
122         * locale/programs/ld-address.c: Likewise.
123         * locale/programs/ld-collate.c: Likewise.
124         * locale/programs/ld-ctype.c: Likewise.
125         * locale/programs/ld-identification.c: Likewise.
126         * locale/programs/ld-measurement.c: Likewise.
127         * locale/programs/ld-messages.c: Likewise.
128         * locale/programs/ld-monetary.c: Likewise.
129         * locale/programs/ld-name.c: Likewise.
130         * locale/programs/ld-numeric.c: Likewise.
131         * locale/programs/ld-paper.c: Likewise.
132         * locale/programs/ld-telephone.c: Likewise.
133         * locale/programs/ld-time.c: Likewise.
134         * locale/programs/linereader.c: Likewise.
135         * locale/programs/linereader.h: Likewise.
136         * locale/programs/localedef.c: Likewise.
137         * locale/programs/locfile.c: Likewise.
138         * locale/programs/repertoire.c: Likewise.
140 2002-02-05  Ulrich Drepper  <drepper@redhat.com>
142         * elf/rtld.c (_dl_start_final): Determine load address to locate
143         ehdr with GL(dl_rtld_map).l_map_start.
145         * po/ca.po: Update from translation team.
147         * elf/rtld.c (dl_main): Read PT_TLS entry of the executable.
148         * elf/dl-load.c (_dl_map_object_from_fd): Handle PT_TLS program
149         header entry.
150         * sysdeps/generic/ldsodefs.h (struct rtld_global): Add
151         _dl_tls_module_cnt.
152         * elf/dl-support.c: Define _dl_initimage_list and _dl_tls_module_cnt.
154 2002-02-04  Ulrich Drepper  <drepper@redhat.com>
156         * elf/rtld.c (_dl_start): Fill TLS values in link map for rtld.
157         * include/link.h (struct link_map): Add various members for TLS
158         information.
159         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
160         _rtld_tlsoffset, add _dl_initimage_list.
161         * sysdeps/i386/dl-lookupcfg.h: New file.
162         * sysdeps/i386/dl-machine.h (elf_machine_rel): Implement missing
163         TLS relocation.  When using TLS we now use RESOLVE_MAP.
164         (elf_machine_rela): Use RESOLVE_MAP instead of RESOLVE_MAP if TLS
165         is used.
167         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Mark as possibly
168         unused.
170         * elf/rtld.c (_dl_start_final): Allocate TLS and initialize
171         thread-pointer as soon as possible.
172         * sysdeps/generic/ldsodefs.h: Include <tls.h>.  Define first TLS
173         elements in rtld_global.
174         * sysdeps/generic/tls.h: New file.
175         * elf/Makefile (distribute): Add tls.h.
176         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add support for TLS
177         relocations.  Not complete yet.
179         * resolv/resolv.h: Allow user to define __need_res_state and only
180         define __res_start structure then.
181         * include/resolv.h: Only declare functions if _RESOLV_H_ is defined.
183         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Move
184         dl_cpuclock_offset initialization to _dl_start_final.
185         (_dl_show_auxv): Avoid unnecessary sign extension.
186         * elf/rtld.c (_dl_start_final): Initialize dl_cpuclock_offset.
188 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
190         * config.h.in: Add HAVE_TLS_SUPPORT.
191         * sysdeps/i386/elf/configure.in: New file.
193 2002-02-03  Andreas Schwab  <schwab@suse.de>
195         * sysdeps/posix/readv.c: Use ssize_t for bytes_read.
196         * sysdeps/posix/writev.c: Use ssize_t for bytes_written.  Fix comment.
198 2002-02-03  Thorsten Kukuk  <kukuk@suse.de>
200         * sysdeps/posix/writev.c: Check for ssize_t overflow, don't use
201         alloca if the memory reqirements are too high.
203 2002-02-03  Ulrich Drepper  <drepper@redhat.com>
205         * elf/dl-load.c (decompose_rpath): Avoid using strstr.
206         * elf/dl-minimal.c (_strerror_r): Use _itoa instead of _itoa_word since
207         the former is available anyway and speed isn't important here.
208         * elf/dl-misc.c (_dl_debug_vdprintf): Likewise.
209         * elf/dl-version.c (match_symbol): Likewise.
210         (_dl_check_map_versions): Likewise.
211         * elf/rtld.c (process_envvars): Likewise.
212         (print_statistics): Likewise.
213         * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Likewise.
214         * elf/dl-minimal.c (_itoa): Always define it.  Make it work for all
215         bases.  Add assert to catch uses of unimplemented features.
216         (__strsep): Add assert to catch uses of unimplemented features.
217         * elf/dl-object.c (_dl_new_object): Don't use rawmemchr.  Use strchr
218         and avoid inline optimization.
219         * elf/rtld.c (process_envvars): Likewise.
220         * elf/dl-open.c: Don't include <stdio-common/_itoa.h>.
221         * elf/dl-profile.c (_dl_start_profile): Help compiler to avoid ffs.
222         * elf/rtld.c (dl_main): Avoid strsep inline optimization.
224 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
226         * stdio-common/_itoa.h: Minor simplifications of the code.
227         * stdio-common/_itoa.c: Likewise.
229         * elf/dl-reloc.c (_dl_relocate_object): Use _dl_debug_printf
230         instead of _dl_printf for debugging info output.
232         * manual/examples/mkfsock.c (make_named_socket): Make sure name is
233         always NUL-terminated.  Patch by Chris D. Sloan <cds@cs.hmc.edu>.
235 2002-02-01  H.J. Lu  <hjl@gnu.org>
237         * sysdeps/mips/atomicity.h (exchange_and_add): Use branch likely.
238         (atomic_add): Likewise.
239         (compare_and_swap): Return 0 only when failed to compare. Use
240         branch likely.
242         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Use
243         branch likely.
245 2002-02-03  kaz Kojima  <kkojima@rr.iij4u.or.jp>
247         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix a typo.
249 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
251         * elf/dl-minimal.c (__strsep): New minimal implementation.
253 2002-02-02  Paul Eggert  <eggert@twinsun.com>
255         * src/mktime.c [defined DEBUG && STDC_HEADERS]: Include <string.h>.
256         (__mktime_internal): If no tm_isdst is requested, prefer solutions
257         with tm_isdst > 0 when the requested time falls within a
258         spring-forward gap [PR libc/2894].
260 2002-02-03  Andreas Schwab  <schwab@suse.de>
262         * stdio-common/tst-rndseek.c: Increase timeout.
264 2002-02-02  Ulrich Drepper  <drepper@redhat.com>
266         Change ld.so to not use functions which are exported.  One cannot
267         interpose them anyway.  Use INT() to mark uses, INTDEF() to mark
268         definitions.
269         * include/libc-symbols.h: Define INT and INTDEF.
270         * sysdeps/generic/ldsodefs.h: Declare _dl_debug_printf_internal,
271         _dl_signal_error_internal, _dl_map_object_internal,
272         _dl_map_object_deps_internal, _dl_lookup_symbol_internal,
273         _dl_lookup_versioned_symbol_internal,
274         _dl_relocate_object_internal, _dl_debug_state_internal,
275         _dl_start_profile_internal, and _dl_unload_cache_internal.
276         * include/dlfcn.h: Declare _dl_catch_error_internal.
277         * elf/rtld.c: Use INT for calls to any of the *_internal functions
278         above.  Add INTDEF to function definitions.
279         * elf/dl-debug.c: Likewise.
280         * elf/dl-deps.c: Likewise.
281         * elf/dl-dst.h: Likewise.
282         * elf/dl-error.c: Likewise.
283         * elf/dl-fini.c: Likewise.
284         * elf/dl-init.c: Likewise.
285         * elf/dl-load.c: Likewise.
286         * elf/dl-lookup.c: Likewise.
287         * elf/dl-misc.c: Likewise.
288         * elf/dl-open.c: Likewise.
289         * elf/dl-profile.c: Likewise.
290         * elf/dl-reloc.c: Likewise.
291         * elf/dl-runtime.c: Likewise.
292         * elf/dl-version.c: Likewise.
293         * elf/do-lookup.h: Likewise.
294         * sysdeps/generic/dl-cache.c: Likewise.
295         * sysdeps/generic/dl-sysdep.c: Likewise.
296         * sysdeps/alpha/dl-machine.h (RTLD_START): Call _dl_init_internal
297         instead of _dl_init.
298         * sysdeps/arm/dl-machine.h: Likewise.
299         * sysdeps/cris/dl-machine.h: Likewise.
300         * sysdeps/hppa/dl-machine.h: Likewise.
301         * sysdeps/i386/dl-machine.h: Likewise.
302         * sysdeps/ia64/dl-machine.h: Likewise.
303         * sysdeps/m68k/dl-machine.h: Likewise.
304         * sysdeps/mips/dl-machine.h: Likewise.
305         * sysdeps/mips/mips64/dl-machine.h: Likewise.
306         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
307         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
308         * sysdeps/sh/dl-machine.h: Likewise.
309         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
310         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
311         * sysdeps/x86_64/dl-machine.h: Likewise.
312         * sysdeps/powerpc/dl-start.S (_dl_start_user): Likewise.
314         * elf/Versions: Don't export _dl_check_all_versions, _dl_sysdep_start,
315         and _dl_debug_initialize.
317         * elf/dl-object.c (_dl_new_object): Avoid using strrchr.  We have
318         more information.
319         * elf/rtld.c (dl_main): Avoid strrchr.
320         * sysdeps/unix/sysv/linux/dl-origin.c (_dl_get_origin): Use the
321         result of readlink.  Search from the back for '/'.
323         * elf/dl-profile.c (_dl_start_profile): Help the compiler to avoid
324         strncpy if possible.
326         * sysdeps/generic/dl-environ.c (unsetenv): Optimize.  Don't use
327         strncmp.
328         * elf/dl-load.c (is_dst): Optimize.  Don't call strncmp twice.
329         * elf/rtld.c (process_dl_debug): Optimize. Avoid calls to strncmp,
330         strspn, and strcspn.
331         (process_envvars): Don't use strcspn.
333         * elf/dl-load.c (_dl_dst_count): Fix possible endless loop.
334         (_dl_dst_substitute): Likewise.
336 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
338         * elf/do-rel.h (elf_dynamic_do_rel): Help the compiler recognize
339         code which is never used when relocating ld.so itself.
341         * elf/dynamic-link.h (elf_get_dynamic_info): Optimize a bit for
342         starting ld.so itself.  Move l_addr variable initialization closer
343         to use.
344         (_ELF_DYNAMIC_DO_RELOC): Help the compiler optimize a bit.
346 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
348         * Versions.def (libc): Add GLIBC_PRIVATE.
349         (libdb, libnss_db, libdb1): Remove.
350         (libnss_compat, libnss_dns, libnss_files, libnss_hesiod, libnss_nis,
351         libnss_nisplus): Move all symbols to GLIBC_PRIVATE.
352         (libpthread): Add GLIBC_PRIVATE.
353         (libresolv): Likewise, remove GLIBC_2.1.
354         (ld): Add GLIBC_PRIVATE, remove GLIBC_2.1.1, GLIBC_2.2, GLIBC_2.2.1,
355         GLIBC_2.2.3, GLIBC_2.3.
356         * catgets/Versions (__open_catalog): Move to GLIBC_PRIVATE.
357         * elf/Versions (_dl_open, _dl_close, _dl_addr, _dl_init_first,
358         _dl_sym, _dl_vsym): Likewise.
359         (__libc_enable_secure, __libc_stack_end, _dl_argv, _dl_catch_error,
360         _dl_check_all_versions, _dl_check_map_versions, _dl_debug_initialize,
361         _dl_debug_printf, _dl_debug_state, _dl_dst_count, _dl_dst_substitute,
362         _dl_init, _dl_lookup_symbol, _dl_lookup_symbol_skip,
363         _dl_lookup_versioned_symbol, _dl_lookup_versioned_symbol_skip,
364         _dl_map_object, _dl_map_object_deps, _dl_out_of_memory,
365         _dl_relocate_object, _dl_signal_error, _dl_start_profile,
366         _dl_starting_up, _dl_sysdep_start, _dl_unload_cache, _rtld_global):
367         Likewise.
368         (_dl_object_relocation_scope): Remove.
369         * hesiod/Versions: Move all symbols to GLIBC_PRIVATE.
370         * iconv/Versions (__gconv_alias_db, __gconv_modules_db,
371         __gconv_cache): Move to GLIBC_PRIVATE.
372         * inet/Versions (__internal_endnetgrent, __internal_getnetgrent_r,
373         __internal_setnetgrent): Likewise.
374         * io/Versions (__libc_open, __libc_close, __libc_read, __libc_write,
375         __libc_lseek, __libc_fcntl, __libc_open64, __libc_lseek64): Likewise.
376         * locale/Versions (__collate_element_hash, __collate_element_strings,
377         __collate_symbol_classes, __collate_symbol_hash,
378         __collate_symbol_strings, _nl_current_LC_COLLATE,
379         _nl_current_LC_CTYPE): Likewise.
380         * misc/Versions (__libc_fsync, __libc_msync): Likewise.
381         * nis/Versions (libnss_compat): Move all symbols to GLIBC_PRIVATE.
382         (libnss_nis, libnss_nisplus): Likewise.
383         * nss/Versions (_nss_files_parse_grent, _nss_files_parse_pwent,
384         _nss_files_parse_spent): Move to GLIBC_PRIVATE.
385         (libnss_files): Move all symbols to GLIBC_PRIVATE.
386         * posix/Versions (__libc_wait, __libc_waitpid, __libc_pause,
387         __libc_nanosleep, __libc_fork, __libc_pread, __libc_pread64,
388         __libc_pwrite, __libc_pwrite64): Move to GLIBC_PRIVATE.
389         * resolv/Versions (__gai_sigqueue, __ns_name_unpack, __ns_name_ntop,
390         __ns_get16, __ns_samename): Likewise.
391         (libnss_dns): Move all symbols to GLIBC_PRIVATE.
392         * setjmp/Versions (__libc_longjmp, __libc_siglongjmp): Move to
393         GLIBC_PRIVATE.
394         * socket/Versions (__libc_accept, __libc_send, __libc_recvfrom,
395         __libc_recvmsg, __libc_sendmsg, __libc_recv, __libc_sendto,
396         __libc_connect): Likewise.
397         * stdio-common/Versions (_itoa_lower_digits, _itoa_upper_digits):
398         Likewise.
399         * stdlib/Versions (__libc_system): Likewise.
400         * sunrpc/Versions (__rpc_thread_destroy): Likewise.
401         * sysdeps/hppa/Versions: Move all symbols to GLIBC_PRIVATE.
402         * sysdeps/ia64/fpu/Versions: Likewise.
403         * sysdeps/ia64/Versions: Likewise.
404         * sysdeps/unix/sysv/linux/ia64/Versions: Likewise.
405         * sysdeps/unix/sysv/linux/i386/Versions (__modify_ldt): Move
406         to GLIBC_PRIVATE.
407         * sysdeps/unix/sysv/linux/x86_64/Versions (__modify_ldt): Likewise.
408         * sysdeps/unix/sysv/linux/Versions (__syscall_rt_sigqueueinfo,
409         __libc_sigaction): Likewise.
410         * termios/Versions (__libc_tcdrain): Likewise.
412         * misc/sys/cdefs (__attribute_noinline__): Define.
413         * elf/dl-lookup.c (_dl_do_lookup, _dl_do_lookup_versioned): Add
414         __attribute_noinline__.
416         * elf/Makefile (rtld-routines): Add dl-xstat64, dl-fxstat64.
417         * elf/dl-xstat64.c: New file.
418         * elf/dl-fxstat64.c: New file.
419         * sysdeps/unix/sysv/linux/fxstat64.c: If RTLD_STAT64 is defined,
420         don't export __fxstat64 at multiple versions.
421         * sysdeps/unix/sysv/linux/lxstat64.c: Similarly.
422         * sysdeps/unix/sysv/linux/xstat64.c: Similarly.
424 2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>
426         * locale/program/ld-collate.c (collate_finish): Assign a wide
427         char collation sequence value to multi character collating
428         elements, and avoid over writing by non-character elements.
430 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
432         * elf/Makefile (distribute): Add dl-procinfo.c.
433         * sysdeps/unix/sysv/linux/i386/Dist: Remove dl-procinfo.c.
434         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
436 2002-02-01  Jakub Jelinek  <jakub@redhat.com>
438         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Remove duplicate
439         definition.
440         * sysdeps/ia64/hp-timing.h: Move _dl_hp_timing_overhead in
441         _rtld_global struct.
442         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
443         * sysdeps/sparc/sparc64/hp-timing.c: Likewise.
444         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
445         * sysdeps/sparc/sparc64/Makefile: Make hp-timing static only.
446         * sysdeps/unix/sysv/aix/init-first.c (_dl_fpu_control,
447         _dl_fpu_control_set): Remove unused externs.
448         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.c: New file.
449         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.c: New file.
450         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h: Move procinfo
451         related variables in _rtld_global struct.
452         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h: Likewise.
453         * sysdeps/unix/sysv/linux/init-first.c (_dl_fpu_control_set): Remove
454         unused extern.
456 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
458         * sysdeps/generic/dl-procinfo.c: New file.
460 2002-02-01  Andreas Schwab  <schwab@suse.de>
462         * sysdeps/m68k/dl-machine.h: Don't use multi-line string literals.
464 2002-02-01  Ulrich Drepper  <drepper@redhat.com>
466         * elf/rtld.c (_dl_start): Mark as internal_function.
467         * sysdeps/i386/dl-machine.h (RTLD_START): Pass parameter for _dl_start
468         in register.
469         (elf_machine_rel): Cleanup and minor optimization for RTLD_BOOTSTRAP.
470         General pretty printing.
472 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
474         * elf/dl-minimal.c: Define _itoa for 32-bit machines with HP timing.
475         * elf/dl-reloc.c: Pretty printing.
476         * sysdeps/generic/ldsodefs.h: Move _dl_hp_timing_overhead and
477         procinfo-related variables in rtld_global struct.
478         * elf/dl-support.c: Likewise.
479         * elf/rtld.c: Likewise.
480         * sysdeps/i386/i686/Makefile: Likewise.
481         * sysdeps/i386/i686/hp-timing.c: Likewise.
482         * sysdeps/i386/i686/hp-timing.h: Likewise.
483         * sysdeps/ia64/Makefile: Likewise.
484         * sysdeps/ia64/hp-timing.c: Likewise.
485         * sysdeps/sparc/sparc32/sparcv9/Makefile: Likewise.
486         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Likewise.
487         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c: Likewise.
488         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h: Likewise.
489         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
490         * sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Likewise.
491         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
492         * sysdeps/x86_64/Makefile: Likewise.
494         * sysdeps/generic/ldsodefs.h: Add _dl_load_lock, _dl_lazy,
495         _dl_dynamic_weak, _dl_fpu_control, _dl_cpuclock_offset, and
496         _dl_debug_fd to rtld_global.
497         * elf/Versions: Likewise.
498         * elf/dl-close.c: Likewise.
499         * elf/dl-iteratephdr.c: Likewise.
500         * elf/dl-lookup.c: Likewise.
501         * elf/dl-misc.c: Likewise.
502         * elf/dl-open.c: Likewise.
503         * elf/dl-support.c: Likewise.
504         * elf/do-lookup.h: Likewise.
505         * elf/rtld.c: Likewise.
506         * sysdeps/generic/dl-cache.c: Likewise.
507         * sysdeps/generic/dl-sysdep.c: Likewise.
508         * sysdeps/ia64/Versions: Likewise.
509         * sysdeps/unix/clock_gettime.c: Likewise.
510         * sysdeps/unix/clock_settime.c: Likewise.
511         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
512         * sysdeps/sparc/Versions: Removed.
513         * sysdeps/i386/i686/Versions : Removed.
514         * sysdeps/x86_64/Versions: Removed.
515         * configure.in: Define HAVE_PROTECTED if .protected is available.
516         * config.h.in: Add entry for HAVE_PROTECTED.
518 2002-01-31  Jakub Jelinek  <jakub@redhat.com.
520         * sysdeps/alpha/dl-machine.h: Move global variables for SHARED
521         code in struct _rtld_global.  Export this struct, remove all
522         exports for the signal variables.
523         * sysdeps/arm/dl-machine: Likewise.
524         * sysdeps/generic/dl-origin: Likewise.
525         * sysdeps/generic/dl-sysdep: Likewise.
526         * sysdeps/generic/dl-cache: Likewise.
527         * sysdeps/hppa/dl-fptr: Likewise.
528         * sysdeps/hppa/dl-machine: Likewise.
529         * sysdeps/cris/dl-machine: Likewise.
530         * sysdeps/i386/dl-machine: Likewise.
531         * sysdeps/ia64/dl-machine: Likewise.
532         * sysdeps/m68k/dl-machine: Likewise.
533         * sysdeps/mach/hurd/dl-sysdep: Likewise.
534         * sysdeps/mips/mips64/dl-machine: Likewise.
535         * sysdeps/mips/dl-machine: Likewise.
536         * sysdeps/powerpc/elf/libc-start: Likewise.
537         * sysdeps/powerpc/dl-machine: Likewise.
538         * sysdeps/powerpc/dl-start: Likewise.
539         * sysdeps/sparc/sparc32/dl-machine: Likewise.
540         * sysdeps/sparc/sparc64/dl-machine: Likewise.
541         * sysdeps/sh/dl-machine: Likewise.
542         * sysdeps/s390/s390-32/dl-machine: Likewise.
543         * sysdeps/s390/s390-64/dl-machine: Likewise.
544         * sysdeps/unix/sysv/aix/libc-start: Likewise.
545         * sysdeps/unix/sysv/aix/start-libc: Likewise.
546         * sysdeps/unix/sysv/linux/ia64/dl-static: Likewise.
547         * sysdeps/unix/sysv/linux/m68k/getpagesize: Likewise.
548         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize: Likewise.
549         * sysdeps/x86_64/dl-machine: Likewise.
551 2002-01-31  Ulrich Drepper  <drepper@redhat.com>
553         * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
554         are too high.
556 2002-01-31  Andreas Schwab  <schwab@suse.de>
558         * sysdeps/posix/readv.c: Check for ssize_t overflow.
560 2002-01-31  Andreas Schwab  <schwab@suse.de>
562         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
563         reference to _dl_pagesize.
565 2002-01-30  Ulrich Drepper  <drepper@redhat.com>
567         * Versions.def [ld]: Add GLIBC_2.3.
568         * elf/dl-addr.c: Move global variables for SHARED code in struct
569         _rtld_global.  Export this struct, remove all exports for the
570         signal variables.
571         * elf/dl-close.c: Likewise.
572         * elf/dl-conflict.c: Likewise.
573         * elf/dl-debug.c: Likewise.
574         * elf/dl-deps.c: Likewise.
575         * elf/dl-dst.h: Likewise.
576         * elf/dl-error.c: Likewise.
577         * elf/dl-fini.c: Likewise.
578         * elf/dl-init.c: Likewise.
579         * elf/dl-iteratephdr.c: Likewise.
580         * elf/dl-libc.c: Likewise.
581         * elf/dl-load.c: Likewise.
582         * elf/dl-lookup.c: Likewise.
583         * elf/dl-minimal.c: Likewise.
584         * elf/dl-object.c: Likewise.
585         * elf/dl-open.c: Likewise.
586         * elf/dl-profile.c: Likewise.
587         * elf/dl-profstub.c: Likewise.
588         * elf/dl-reloc.c: Likewise.
589         * elf/dl-runtime.c: Likewise.
590         * elf/dl-support.c: Likewise.
591         * elf/dl-sym.c: Likewise.
592         * elf/dl-version.c: Likewise.
593         * elf/do-lookup.h: Likewise.
594         * elf/do-rel.h: Likewise.
595         * elf/dynamic-link.h: Likewise.
596         * elf/rtld.c: Likewise.
597         * sysdeps/generic/dl-cache.c: Likewise.
598         * sysdeps/generic/dl-sysdep.c: Likewise.
599         * sysdeps/generic/ldsodefs.h: Likewise.
600         * sysdeps/generic/libc-start.c: Likewise.
601         * sysdeps/i386/dl-machine.h: Likewise.
602         * sysdeps/ia64/dl-fptr.c: Likewise.
603         * sysdeps/ia64/dl-machine.h: Likewise.
604         * sysdeps/unix/sysv/linux/dl-librecon.h: Likewise.
605         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
606         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
607         * sysdeps/unix/sysv/linux/getclktck.c: Likewise.
608         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
609         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
610         * sysdeps/unix/sysv/linux/ia64/dl-static.c: Likewise.
611         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Likewise.
613 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
615         * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
616         to avoid warning
617         (DL_STATIC_FUNCTION_ADDRESS): Likewise.
619         * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
620         SHARED version.
621         * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
623         * elf/rtld.c (_dl_start): Use __builtin_memset if available.
625 2002-01-29  Ben Collins  <bcollins@debian.org>
627         * string/bits/string2.h (__mempcpy): Protect size arg for
628         addition when using __builtin_memcpy.
630 2002-01-29  Ulrich Drepper  <drepper@redhat.com>
632         * stdlib/Makefile (tests): Add tst-qsort.
633         * stdlib/tst-qsort.c: New file.  Written by Paul Eggert.
635         * manual/signal.texi (Process Signal Mask): Document that
636         pthread_sigmask, not sigprocmask, must be used in MT programs.
637         Patch by Bertold Kolics <Bertold.Kolics@Sun.COM>.
639         * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
640         found.
641         * misc/Makefile (tests): Add tst-hsearch.
642         * misc/tst-hsearch.c: New file.
644 2002-01-18  Wolfram Gloger  <wg@malloc.de>
646         * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c.
647         * malloc/malloc.h: Likewise.
648         * malloc/thread-m.h: Spinlock definitions for x86/x86_64.
649         * malloc/arena.c: New file.
650         * malloc/hooks.c: New file.
651         * malloc/tst-mallocstate.c: New file.
652         * malloc/Makefile: Add new testcase tst-mallocstate.
653         Add arena.c and hooks.c to distribute.  Fix commented CPPFLAGS.
655 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
657         * stdlib/msort.c: Remove last patch.  The optimization violates the
658         same rule which qsort.c had problems with.
660 2002-01-27  Paul Eggert  <eggert@twinsun.com>
662         * stdlib/qsort.c (_quicksort): Do not apply the comparison function
663         to a pivot element that lies outside the array to be sorted, as
664         ISO C99 requires that the comparison function be called only with
665         addresses of array elements [PR libc/2880].
667 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
669         * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
670         for SHARED code.  Reported by Ben Collins <bcollins@debian.org>.
672         * timezone/asia: Update from tzdata2002b.
673         * timezone/australasia: Likewise.
674         * timezone/backward: Likewise.
675         * timezone/europe: Likewise.
676         * timezone/leapseconds: Likewise.
677         * timezone/iso3166.tab: Likewise.
678         * timezone/zone.tab: Likewise.
680 2002-01-23  Richard Henderson  <rth@redhat.com>
682         * sysdeps/alpha/Makefile (pic-ccflag): New variable.
684 2002-01-28  Ulrich Drepper  <drepper@redhat.com>
686         * string/strxfrm.c: Allocate one more byte for rulearr and clear
687         this element [PR libc/2855].
689         * string/strcoll.c: Handle zero-length arguments specially
690         [PR libc/2856].
692 2002-01-23  Jakub Jelinek  <jakub@redhat.com>
694         * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
695         __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
696         short lengths and constant src.
697         (strcpy): Don't optimize for gcc 3.0+.
698         (__stpcpy): For gcc 3.0+, don't use
699         __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
700         for short string literal src.
702 2002-01-23  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
704         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
705         Set for arm, too.
707 2001-01-22  Paul Eggert  <eggert@twinsun.com>
709         * manual/llio.texi (Linked Channels, Cleaning Streams):
710         Make it clearer that a just-opened input stream might need cleaning.
712 2002-01-21  H.J. Lu  <hjl@gnu.org>
714         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
715         Don't use label at end of compound statement.
717 2002-01-28  Stephen L Moshier  <moshier@mediaone.net>
719         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
720         Remove test for negative integer arg; sin_pi does it correctly.
722 2002-01-20  Ulrich Drepper  <drepper@redhat.com>
724         * nscd/Makefile (distribute): Filter out xmalloc.c.
726 2002-01-19  Ulrich Drepper  <drepper@redhat.com>
728         * libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
729         Set offset if read end wasn't the buffer end.
730         (_IO_file_seekoff_mmap): New function.
731         (_IO_file_xsgetn_mmap): New function.
732         (_IO_file_jumps_mmap): Use the two new functions.
733         * libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
734         != end buffer.
735         * libio/libioP.h: Declare _IO_file_seekoff_mmap and
736         _IO_file_underflow_mmap.
737         * libio/iofopen.c: Don't position file descriptor at end of file.
738         * libio/tst-widetext.c: Improve error messages.
739         * stdio-common/tst-rndseek.c: Likewise.
741 2002-01-18  Ulrich Drepper  <drepper@redhat.com>
743         * sysdeps/unix/sysv/linux/bits/statvfs.h: Avoid warning about comma at
744         end of enum for !_GNU_SOURCE.
745         * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: Likewise.
746         * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: Likewise.
747         * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Likewise.
748         * sysdeps/mach/hurd/bits/statvfs.h: Don't define non-standard ST_*
749         values unless _GNU_SOURCE.
751         * iconvdata/tcvn5712-1.c: Minor cleanups.
753 2002-01-18  Andreas Schwab  <schwab@suse.de>
755         * sysdeps/unix/sysv/linux/configure.in
756         (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
758 2002-01-16  Roger Sayle  <roger@eyesopen.com>
760         * stdlib/msort.c (msort_with_tmp): Replace implementation with
761         more efficient "Towers of Hanoi" mergesort.
762         (hanoi_sort, hanoi_sort_int, hanoi_sort_long): New functions,
763         for generic, sizeof(int) and sizeof(long) variants respectively.
765 2002-01-17  Ulrich Drepper  <drepper@redhat.com>
767         * manual/syslog.texi (openlog): Describe possible problems with
768         first parameter.
769         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
771         * nscd/nscd.c (drop_privileges): Removed.  Adjust caller.
772         * nscd/connections.c (begin_drop_privileges): New function.
773         (finish_drop_privileges): New function.
774         (nscd_init): Call the new functions which also install all groups
775         for the server user.
776         * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
777         Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
779 2002-01-17  H.J. Lu  <hjl@gnu.org>
781         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
782         `const' from `got'.
784 2002-01-17  Martin Schwidefsky  <schwidefsky@de.ibm.com>
786         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Use 64 bit
787         instructions for pointer operations.
788         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
790 2002-01-17  Andreas Jaeger  <aj@suse.de>
792         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
793         __uint128_t build-in.
795         * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
796         PowerPC, sync with 2.2 branch.
798 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
800         * posix/getconf.c: Update copyright year.
801         * nss/getent.c: Likewise.
802         * nscd/nscd_nischeck.c: Likewise.
803         * iconv/iconvconfig.c: Likewise.
804         * iconv/iconv_prog.c: Likewise.
805         * elf/ldconfig.c: Likewise.
806         * catgets/gencat.c: Likewise.
807         * csu/version.c: Likewise.
808         * elf/ldd.bash.in: Likewise.
809         * elf/sprof.c (print_version): Likewise.
810         * locale/programs/locale.c: Likewise.
811         * locale/programs/localedef.c: Likewise.
812         * nscd/nscd.c (print_version): Likewise.
813         * debug/xtrace.sh: Likewise.
814         * malloc/memusage.sh: Likewise.
815         * malloc/mtrace.pl: Likewise.
817 2002-01-16  Andreas Schwab  <schwab@suse.de>
819         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
820         reliably remove "-ia64" from rtld name.
822 2002-01-16  Ulrich Drepper  <drepper@redhat.com>
824         * iconvdata/gb18030.c: Bug fixes and support for more characters.
825         Patch by Yu Shao <yshao@redhat.com>.
827 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
829         * sysdeps/unix/sysv/linux/s390/swapcontext.c: Remove.
830         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: New file.
831         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: New file.
833 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
835         * sysdeps/s390/fpu/libm-test-ulps: Update.
837 2002-01-11  Ulrich Drepper  <drepper@redhat.com>
839         * elf/elf.h: Update x86 relocations.
841 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
843         * locale/programs/charmap.c (new_width): Check whether byte
844         sequences for both ends of range have the same length.
846 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
848         * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
850 2002-01-09  Jakub Jelinek  <jakub@redhat.com>
852         * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
853         string literals.
854         (__full_ieee754_sqrt): Add __attribute_used__.
856 2002-01-10  Ulrich Drepper  <drepper@redhat.com>
858         * sysdeps/generic/group_member.c (__group_member): Also check
859         groups[0] [PR libc/2781].
861 2002-01-08  Ulrich Drepper  <drepper@redhat.com>
863         * Makefile (distribute): Add scripts/cpp.
864         * elf/Makefile (distribute): Add reldep6mod[01234].c,
865         unwind-dw2.c, unwind-dw2-fde.c, unwind.h, unwind-pe.h,
866         unwind-dw2-fde.h, and dwarf2.h.
867         * sysdeps/unix/bsd/bsd4.4/Dist: New file.
868         * sysdeps/unix/sysv/aix/Dist: Add sysv_termio.h and start-libc.c.
869         * sysdeps/unix/sysv/linux/ia64/Dist: Add ldd-rewrite.sed.
870         * sysdeps/unix/sysv/linux/s390/Dist: Likewise.
872 2002-01-07  Roland McGrath  <roland@frob.com>
874         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use
875         volatile on type of ARGC so the compiler doesn't get clever.
877 2002-01-07  Andreas Jaeger  <aj@suse.de>
879         * sysdeps/generic/bits/byteswap.h: Prevent double inclusion.
880         * sysdeps/i386/bits/byteswap.h: Likewise.
881         * sysdeps/ia64/bits/byteswap.h: Likewise.
882         * sysdeps/m68k/bits/byteswap.h: Likewise.
883         * sysdeps/s390/s390-32/bits/byteswap.h: Likewise.
884         * sysdeps/s390/s390-64/bits/byteswap.h: Likewise.
886 2002-01-02  Bruno Haible  <bruno@clisp.org>
888         * intl/plural.y: Fix %expect count.
890 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
892         * elf/Makefile (routines, shared-only-routines): Add
893         unwind-dw2-fde-glibc instead of unwind-dw2-fde.
894         * elf/elf.h (PT_GNU_EH_FRAME): Define.
895         * sysdeps/generic/unwind-dw2-fde-glibc.c: New file.
896         * sysdeps/generic/unwind-dw2-fde.c (__register_frame_info_bases):
897         Optimize if .eh_frame section contains no FDEs.
898         (__register_frame, __deregister_frame_info_bases,
899         __deregister_frame): Likewise.
900         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix
901         DW_CFA_restore handling.
903 2002-01-07  Stephen L Moshier  <moshier@mediaone.net>
905         * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
907         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Fix typo in test
908         for x < 0.25 and restore original range reduction method.
909         (__ieee754_lgammal_r): Make sure signgam is set before returning.
911 2002-01-07  Ulrich Drepper  <drepper@redhat.com>
913         * libio/fileops.c (_IO_file_underflow_mmap): New function.
914         (_IO_file_close_mmap): New function.
915         (_IO_file_jumps_mmap): New variable.
916         * libio/wfileops.c (_IO_wfile_underflow): Reset read pointer before
917         trying to convert rest of byte buffer.
918         (_IO_wfile_underflow_mmap): New function.
919         (_IO_wfile_jumps_mmap): New variable.
920         * libio/iofopen.c (__fopen_maybe_mmap): New function.
921         (__fopen_internal): New function.  Split out from _IO_new_fopen.
922         (_IO_new_fopen): Call __fopen_internal.
923         * libio/iofopen64.c: Just call __fopen_internal.
924         * libio/iofdopen.c: Call __fopen_maybe_mmap before returning
925         successfully.
926         * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
927         * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
928         _IO_file_close_mmap.
930         * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
931         * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
933         * stdio-common/Makefile (tests): Add tst-rndseek.
934         * stdio-common/tst-rndseek.c: New file.
936 2002-01-05  Roland McGrath  <roland@frob.com>
938         * config.h.in (HAVE_MIG_RETCODE): New #undef.
939         * sysdeps/mach/hurd/configure.in (hurd_MIG_RETCODE: New macro
940         swiped from hurd package's aclocal.m4; use it to set HAVE_MIG_RETCODE.
941         * sysdeps/mach/hurd/configure: Regenerated.
943 2002-01-03  Ulrich Drepper  <drepper@redhat.com>
945         * elf/elf.h: Add more TLS definitions.
947 2002-01-02  Ulrich Drepper  <drepper@redhat.com>
949         * include/features.h (__GLIBC_MINOR__): Bump to 3.
951 2002-01-02  Roland McGrath  <roland@frob.com>
953         * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
954         __sigisemptyset.  Don't use MASK uninitialized.
956         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Use __sigorset.
957         * hurd/hurdinit.c (_hurd_new_proc_init): Use __sigisemptyset.
958         * hurd/hurdsig.c (_hurd_internal_post_signal): Use __sigismember,
959         __sigdelset, __sigaddset, __sigorset.
961         * sysdeps/generic/htonl.c: Use uint32_t instead of u_int32_t.
962         * sysdeps/generic/htons.c: Use uint16_t instead of u_int16_t.
964         * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
965         _hurd_ports is null.
967         * hurd/hurdsig.c (_hurdsig_init): Conditionalize exception port setup
968         for old CMU and new OSF Mach interface flavors.
969         * hurd/hurdfault.c (_hurdsig_fault_init): Likewise.
970         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
972         * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
974         * sysdeps/mach/hurd/spawni.c (__spawni) [KERN_INVALID_LEDGER]:
975         Pass extra arguments to task_create for OSF variant.
976         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
978         * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
979         conditional on [HAVE_AUX_VECTOR].
981         * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
982         mach_msg_timeout_t as type of final argument.
984         * hurd/privports.c (__get_privileged_ports):
985         Change host_priv_t to mach_port_t in argument type.
986         * hurd/hurd.h (get_privileged_ports, __get_privileged_ports):
987         Update decls.
989         * sysdeps/mach/hurd/i386/bits/sigcontext.h: Protect from
990         multiple inclusion.  Inhibit #error under [_SYS_UCONTEXT_H].
991         * sysdeps/mach/hurd/alpha/bits/sigcontext.h: Likewise.
992         * sysdeps/mach/hurd/hppa/bits/sigcontext.h: Likewise.
993         * sysdeps/mach/hurd/mips/bits/sigcontext.h: Likewise.
994         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: Likewise.
996 2002-01-01  Roland McGrath  <roland@frob.com>
998         * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
1000 2002-01-01  Ulrich Drepper  <drepper@redhat.com>
1002         * include/stdlib.h: Define inlines for the _l variants of the strto*
1003         functions.
1005 2002-01-01  Roland McGrath  <roland@frob.com>
1007         * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
1009         * mach/Machrules (MIG): Set CPP as well as CC.
1011 2001-12-31  Ulrich Drepper  <drepper@redhat.com>
1013         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
1014         locale to parse /proc/loadavg [PR libc/2760].
1016 2001-12-31  Jakub Jelinek  <jakub@redhat.com>
1018         * elf/dl-conflict.c: Include sys/param.h.
1019         (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr).
1020         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid
1021         warning.
1022         (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
1023         literals to avoid warnings.
1025 2001-12-31  Andreas Jaeger  <aj@suse.de>
1027         * configure.in: Don't check for gsed since we do not use it anywhere.
1029 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
1031         * io/fts.c: Update from BSD to fix memory leaks.
1033 2001-12-25  Dmitry V. Levin  <ldv@alt-linux.org>
1035         * crypt/md5-crypt.c: Realloc error handling memory leak fix.
1036         * elf/chroot_canon.c: Likewise.
1037         * elf/dl-object.c: Likewise.
1038         * iconv/iconv_charmap.c: Likewise.
1039         * iconv/iconv_prog.c: Likewise.
1040         * libio/iogetdelim.c: Likewise.
1041         * locale/lc-time.c: Likewise.
1042         * stdlib/canonicalize.c: Likewise.
1043         * sunrpc/svc.c: Likewise.
1044         * sysdeps/generic/glob.c: Likewise.
1046 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1048         * sysdeps/unix/sysv/linux/s390/profil-counter.h: Move/copy to ...
1049         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h: ... here,
1050         remove high order bit from the program counter.
1051         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h: ... and here.
1053 2001-12-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1055         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
1056         unnecessary code and add missing reloc types.
1057         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
1058         case for reloc type R_390_NONE.
1060 2001-12-28  Andreas Jaeger  <aj@suse.de>
1062         * io/bug-ftw3.c: Include string.h for prototypes.
1064         * crypt/md5test.c (main): Remove unused variable.
1066         * dlfcn/modstatic.c: Add prototype to avoid warning.
1068 2001-12-26  Roland McGrath  <roland@frob.com>
1070         * sysdeps/mach/hurd/sigwait.c (__sigwait): When returning immediately,
1071         check only (SS->pending & MASK) for the signal to return.
1072         From Jeroen Dekkers <jeroen@dekkers.cx>.
1074 2001-12-22  Roland McGrath  <roland@frob.com>
1076         * iconv/skeleton.c [!RESET_INPUT_BUFFER && !SAVE_RESET_STATE]:
1077         Use preprocessor #if conditionals instead of `if' to avoid
1078         warnings about divide by zero in dead code.
1080         * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
1081         _hurd_port_init, and __hurd_self_sigstate.
1083         * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
1085 2001-12-21  Andreas Jaeger  <aj@suse.de>
1087         * elf/dblloadmod1.c: Add prototype to avoid warning.
1088         * elf/dblloadmod2.c: Likewise.
1089         * elf/dblloadmod3.c: Likewise.
1090         * elf/reldepmod5.c: Likewise.
1091         * elf/reldepmod6.c: Likewise.
1093         * elf/dl-conflict.c (_dl_resolve_conflicts): Add unused attribute
1094         for resolve_conflict_map since RESOLVE_CONFLICT_FIND_MAP is not
1095         used on all architectures.
1097         * sunrpc/svc_tcp.c: Add noreturn attribute for
1098         svctcp_rendezvous_abort.
1099         * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
1101         * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
1102         to avoid warning.
1104 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
1106         * manual/llio.texi (aio_fsync): Fix a typo.
1107         Patch by Tammy Fox <tfox@redhat.com>.
1109 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
1111         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
1112         stack bias from child stack pointer before passing it to clone syscall.
1114 2001-12-18  Ulrich Drepper  <drepper@redhat.com>
1116         * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
1117         _SC_TZNAME_MAX.
1118         * sysdeps/generic/sysconf.c (__sysconf): Likewise.
1119         Reported by Thorsten Kukuk <kukuk@suse.de>.
1121         * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
1122         add some casts.
1124         * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
1126 2001-12-18  Thorsten Kukuk  <kukuk@suse.de>
1128         * sysdeps/unix/sysv/linux/grantpt.c: Make errno results standard
1129         conforming: return EBADF if file descriptor is invalid and EINVAL
1130         if file descriptor is no valid tty.
1131         * login/tst-grantpt.c: New file.
1132         * login/Makefile (tests): Add tst-grantpt.
1134 2001-12-17  Ulrich Drepper  <drepper@redhat.com>
1136         * io/ftw.c (ftw_dir): Handle inaccessibility of toplevel dir
1137         different than implemented in last patch.
1138         * io/bug-ftw3.c: Adjust test for changed handling of
1139         inaccessibility of toplevel dir.
1141 2001-12-16  Roland McGrath  <roland@frob.com>
1143         * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
1144         * grp/initgroups.c (internal_getgrouplist): Likewise.
1146         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
1147         `default:' to silence new GCC warning.
1148         Rewrite cast of lvalue to silence new GCC warning.
1150         * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
1152         * sysdeps/mach/hurd/spawni.c: New file, by me with a
1153         couple fixes by Neal H Walfield <neal@cs.uml.edu>.
1155 2001-12-14  Ulrich Drepper  <drepper@redhat.com>
1157         * sysdeps/generic/strstr.c (strstr): Update.  New optimized version.
1158         Patch by Stephen R. van den Berg.
1160         * crypt/md5.h: Define md5_uintptr.
1162 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
1164         * libio/tst_swprintf.c (main): Add test for string argument with
1165         zero precision.
1166         * stdio-common/Makefile (tests): Add tst-sprintf.
1167         * stdio-common/tst-sprintf.c: New file.
1169 2001-12-13  Andreas Schwab  <schwab@suse.de>
1171         * stdio-common/vfprintf.c (process_string_arg): Correctly handle
1172         zero precision with wide character string format.
1174 2001-12-13  Thorsten Kukuk  <kukuk@suse.de>
1176         * sysdeps/posix/cuserid.c (cuserid): If we don't find the UID,
1177         but have a user supplied buffer, return the empty buffer, not NULL.
1179 2001-12-13  Ulrich Drepper  <drepper@redhat.com>
1181         * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
1182         Patch by Eric Sharkey <sharkey@netrics.com>.
1184         * crypt/md5test.c (main): Add test for multiple calls to
1185         __md5_process_bytes to itererate over input string.
1187 2001-12-12  Ulrich Drepper  <drepper@redhat.com>
1189         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code
1190         from __nis_findfastest.  Take timeout value from parameter.
1191         (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly.
1192         * nis/nis_intern.h: Define parameters controlling __nis_findfastest
1193         [PR libc/2520].  Patch by Alexander Belopolsky <alexb@rentec.com>.
1195 2001-12-12  Andreas Jaeger  <aj@suse.de>
1197         * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
1198         combreloc test so that it works in this case.
1200         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
1202 2001-12-12  NIIBE Yutaka  <gniibe@m17n.org>
1204         * sysdeps/sh/Makefile: New file.
1205         * sysdeps/sh/_mcount.S: New file.
1206         * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented.
1207         * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
1209 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
1211         * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
1212         limitation [PR libc/2564].
1214 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
1216         * elf/Makefile (dl-routines): Add conflict.
1217         (rtld-ldscript-in, rtld-ldscript, rtld-parms): Remove.
1218         (ld.so): Add _begin local symbol.
1219         * elf/elf.h (DT_VALTAGIDX, DT_VALNUM, DT_ADDRTAGIDX, DT_ADDRNUM):
1220         Define.
1221         * elf/dl-deps.c (_dl_build_local_scope): New.
1222         (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
1223         of all libraries.
1224         * elf/do-rel.h (VALIDX): Define.
1225         (elf_dynamic_do_rel): If ELF_MACHINE_PLT_REL is defined, don't do
1226         lazy binding for RELA.  If DT_GNU_PRELINKED, DT_RELACOUNT relocations
1227         can be skipped.
1228         * elf/dl-conflict.c: New file.
1229         * elf/dl-lookup.c (_dl_debug_bindings): New.
1230         (_dl_lookup_symbol): Use _dl_debug_bindings.  Reference_name is always
1231         non-NULL.
1232         (_dl_lookup_symbol_skip): Likewise.
1233         (_dl_lookup_versioned_symbol): Likewise.
1234         (_dl_lookup_versioned_symbol_skip): Likewise.
1235         * elf/dl-runtime.c (PLTREL): If ELF_MACHINE_PLT_REL is defined,
1236         define to ElfW(Rel).
1237         * elf/dynamic-link.h (elf_get_dynamic_info): Record selected dynamic
1238         tags in the DT_VALRNGLO..DT_VALRNGHI and DT_ADDRRNGLO..DT_ADDRRNGHI
1239         ranges.
1240         Don't adjust address dynamic tags if l_addr is 0.
1241         * elf/rtld.c (_dl_trace_prelink, _dl_trace_prelink_map): New variables.
1242         (_dl_start): Skip ELF_DYNAMIC_RELOCATE if ld.so is prelinked.
1243         (VALIDX, ADDRIDX): Define.
1244         (_dl_start_final): Initialize _dl_rtld_map's l_map_start and l_map_end.
1245         (dl_main): Print library list for LD_TRACE_PRELINKING.
1246         If prelinking information can be used, skip relocating libraries and
1247         call _dl_resolve_conflicts instead.
1248         (process_envvars): Handle LD_TRACE_PRELINKING envvar.
1249         * elf/dl-load.c (_dl_map_object): Don't create fake libs
1250         if LD_TRACE_PRELINKING.
1251         * include/link.h (struct link_map) [l_info]: Add DT_VALNUM
1252         + DT_ADDRNUM.
1253         * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
1254         (DL_DEBUG_PRELINK): Define.
1255         (_dl_resolve_conflicts): Add prototype.
1257         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Reinitialize
1258         .plt for prelinked libraries where prelinking info cannot be used.
1259         (elf_machine_rela): If relocating R_ALPHA_JMP_SLOT in .gnu.conflict
1260         section, use RESOLVE_CONFLICT_FIND_MAP to find out reloc's link_map.
1261         * sysdeps/arm/bits/link.h: New file.
1262         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Save original
1263         content of .got[1].
1264         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
1265         (ELF_MACHINE_PLT_REL): Define.
1266         (elf_machine_rela, elf_machine_rela_relative): New.
1267         (elf_machine_lazy_rel): Reinitialize R_ARM_JUMP_SLOT address instead
1268         of adjusting it if prelinked and prelinking cannot be used.
1269         * sysdeps/i386/bits/link.h: New file.
1270         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Save original
1271         content of .got[1].
1272         (ELF_MACHINE_NO_RELA): Only define if RTLD_BOOTSTRAP.
1273         (ELF_MACHINE_PLT_REL): Define.
1274         (elf_machine_rela, elf_machine_rela_relative): New.
1275         (elf_machine_lazy_rel): Reinitialize R_386_JUMP_SLOT address instead
1276         of adjusting it if prelinked and prelinking cannot be used.
1277         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): If relocating
1278         conflicts, skip finaladdr computation.  Use RESOLVE_CONFLICT_FIND_MAP
1279         to find out map for R_PPC_JMP_SLOT relocs.
1280         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Define.
1281         (OPCODE_BA): Define.
1282         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
1283         libraries where prelinking info cannot be used.
1284         (sparc_fixup_plt): Renamed from elf_machine_fixup_plt.
1285         (elf_machine_fixup_plt): Call sparc_fixup_plt.
1286         (elf_machine_rela): Set value to 0 if relocating conflicts.
1287         Call sparc_fixup_plt for R_SPARC_JMP_SLOT.
1288         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Define.
1289         (sparc64_fixup_plt): Fix a typo.
1290         (elf_machine_rela): Set value to 0 if relocating conflicts.
1291         Handle R_SPARC_JMP_SLOT relocs when relocating conflicts.
1292         (elf_machine_runtime_setup): Reinitialize .plt for prelinked
1293         libraries where prelinking info cannot be used.
1294         * sysdeps/sh/bits/link.h: New file.
1295         * sysdeps/sh/dl-machine.h (elf_machine_runtime_setup): Save original
1296         content of .got[1].
1297         (elf_machine_lazy_rel): Reinitialize R_SH_JMP_SLOT address instead
1298         of adjusting it if prelinked and prelinking cannot be used.
1299         * sysdeps/s390/s390-32/bits/link.h: New file.
1300         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
1301         Save original content of .got[1].
1302         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
1303         of adjusting it if prelinked and prelinking cannot be used.
1304         * sysdeps/s390/s390-64/bits/link.h: New file.
1305         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup):
1306         Save original content of .got[1].
1307         (elf_machine_lazy_rel): Reinitialize R_390_JMP_SLOT address instead
1308         of adjusting it if prelinked and prelinking cannot be used.
1309         * sysdeps/x86_64/bits/link.h: New file.
1310         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
1311         Save original content of .got[1].
1312         (elf_machine_lazy_rel): Reinitialize R_X86_64_JMP_SLOT address instead
1313         of adjusting it if prelinked and prelinking cannot be used.
1315 2001-12-11  Ulrich Drepper  <drepper@redhat.com>
1317         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
1318         where appropriate instead of numbers.  Little optimizations.
1320 2001-12-10  Roland McGrath  <roland@frob.com>
1322         * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
1323         set it.
1325         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
1326         set to GLIBC_2.2.5, not GLIBC_2.2.4.
1328         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde):
1329         Fix conditionals so this is set by default for stdio and not for libio.
1330         * sysdeps/mach/hurd/configure: Regenerated.
1332 2001-12-10  Thorsten Kukuk  <kukuk@suse.de>
1334         * io/ftw.c (ftw_startup): Check, if the path is search and readable.
1336 2001-12-10  Ulrich Drepper  <drepper@redhat.com>
1338         * io/Makefile (tests): Add bug-ftw3.
1339         * io/bug-ftw3.c: New file.
1341         * sysdeps/generic/glob.c (glob): Return only pattern if nothing
1342         matches and GLOB_NOCHECK is set.
1343         * posix/globtest.sh: Correct expected result for NOCHECK test.
1345         * po/ca.po: Update from translation team.
1347 2001-12-09  Ulrich Drepper  <drepper@redhat.com>
1349         Implement transliteration of characters in strings of the locale
1350         definitions.
1351         * locale/programs/linereader.c: Adjust for additional parameter to
1352         lr_token.
1353         (get_string): If character <Uxxxx> is not found try to transliterate
1354         it.
1355         * locale/programs/ld-ctype.c: Adjust for additional parameter to
1356         lr_token.  Add const to charmap parameter of all functions.
1357         (find_translit, find_translit2): New functions.
1358         * locale/programs/charmap.c: Adjust for additional parameter to
1359         lr_token.
1360         * locale/programs/repertoire.c: Likewise.
1361         * locale/programs/linereader.h: Likewise.
1362         * locale/programs/ld-address.c: Likewise.  Add const to charmap
1363         parameter of all functions.
1364         * locale/programs/ld-collate.c: Likewise.
1365         * locale/programs/ld-identification.c: Likewise.
1366         * locale/programs/ld-measurement.c: Likewise.
1367         * locale/programs/ld-messages.c: Likewise.
1368         * locale/programs/ld-monetary.c: Likewise.
1369         * locale/programs/ld-name.c: Likewise.
1370         * locale/programs/ld-numeric.c: Likewise.
1371         * locale/programs/ld-paper.c: Likewise.
1372         * locale/programs/ld-paper.c: Likewise.
1373         * locale/programs/ld-telephone.c: Likewise.
1374         * locale/programs/ld-time.c: Likewise.
1375         * locale/programs/locfile.c: Likewise.
1376         * locale/programs/localedef.c: Likewise.
1377         * locale/programs/localedef.h: Likewise.
1378         * locale/programs/locfile.h: Likewise.  Add declaration for
1379         find_translit.
1380         * locale/programs/simple-hash.c: Add const to first parameter of
1381         find_entry, iterate_table, and lookup.
1382         * locale/programs/simple-hash.h: Likewise.
1383         * locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
1384         instead.
1385         * include/locale.h: Define __LC_LAST.
1386         * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
1388 2001-12-07  Geoff Keating  <geoffk@redhat.com>
1390         * sysdeps/powerpc/Dist: Update for recent FP changes.
1391         * sysdeps/powerpc/fpu/Dist: Likewise.
1393 2001-12-07  Andreas Schwab  <schwab@suse.de>
1395         * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
1397 2001-12-06  Geoff Keating  <geoffk@redhat.com>
1399         * sysdeps/powerpc/Makefile (sysdep_routines): Don't build the fpr
1400         save/restore functions here.
1401         (libm-support): Don't define these functions here.
1402         * sysdeps/powerpc/fpu/Makefile: Build the fpr save/restore
1403         functions here.
1404         * sysdeps/powerpc/fe_nomask.c: Move to...
1405         * sysdeps/powerpc/fpu/fe_nomask.c: ... here.
1406         * sysdeps/powerpc/fprrest.S: Move to...
1407         * sysdeps/powerpc/fpu/fprrest.S: ... here.
1408         * sysdeps/powerpc/fprsave.S: Move to...
1409         * sysdeps/powerpc/fpu/fprsave.S: ... here.
1411 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
1413         * sysdeps/unix/sysv/linux/opensock.c: New file.
1415 2001-12-06  Geoff Keating  <geoffk@redhat.com>
1417         * config.make.in (with-fp): Define from configure.
1418         * configure.in: Substitute with_fp.
1419         * configure: Regenerate.
1420         * sysdeps/powerpc/Makefile: Set -msoft-float when --without-fp is
1421         specified, and don't change FPU environment.
1423 2001-12-06  Ulrich Drepper  <drepper@redhat.com>
1425         * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
1426         * assert/assert.c: Check result of __asprintf call and don't use
1427         string if it failed.
1428         * assert/assert-perr.c: Likewise.
1429         * inet/rcmd.c: Likewise.
1430         * locale/programs/localedef.c (main): Check result of
1431         construct_output_path and exit if it failed.
1432         (construct_output_path): Check result of asprintf and mkdir calls and
1433         fail if they failed.
1434         * posix/getopt.c: Check result of __asprintf calls and fail if
1435         they failed.
1436         Patch by Dmitry V. Levin <ldv@alt-linux.org>.
1438 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1440         * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
1441         patch.
1442         * sysdeps/generic/strncase.c: Likewise.
1443         * string/tester.c: Add tests for strcasecmp and strncasecmp.
1445 2001-12-05  Geoff Keating  <geoffk@redhat.com>
1447         * scripts/cpp: Test the exit status from 'type', not 'awk'.
1449         * sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
1450         * sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
1451         * sysdeps/powerpc/setjmp.S: Don't save FP registers.
1452         * sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
1453         * sysdeps/powerpc/fclrexcpt.c: Move to...
1454         * sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
1455         * sysdeps/powerpc/fpu_control.h: Move to...
1456         * sysdeps/powerpc/fpu/fpu_control.h: ... here.
1458 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1460         * iconvdata/ibm1129.h: Remove duplicate mappings.
1461         * iconvdata/ibm937.c: Handle overflow errors.  Handle new tables.
1462         * iconvdata/ibm937.h: Reorganize table to safe a lot of space.
1463         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1465         * timezone/zic.c: Fix handling of turnaround times.
1466         Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
1468 2001-12-02  Moshe Olshansky  <OLSHANSK@il.ibm.com>
1470         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
1471         overflow problem.
1473 2001-12-05  Ulrich Drepper  <drepper@redhat.com>
1475         * posix/regex.c: For use outside glibc defined bounded pointer
1476         macros here.  Patch by Jim Meyering <jim@meyering.net>.
1478         * iconvdata/Makefile (modules): Add TCVN5712-1.
1479         * iconvdata/TESTS: Add TCVN5712-1.
1480         * iconvdata/gconv-modules: Likewise.
1481         * iconvdata/tcvn5712-1.c: New file.
1482         * iconvdata/testdata/TCVN-5712: New file.
1483         * iconvdata/testdata/TCVN-5712..UTF8: New file.
1485 2001-12-04  Ulrich Drepper  <drepper@redhat.com>
1487         * iconvdata/cp1258.c: Optimize conversion from UCS4.
1489 2001-12-02  Roland McGrath  <roland@frob.com>
1491         * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
1493         * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
1494         Reported by Jeff Bailey <jbailey@nisa.net>.
1496         * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
1497         Reported by Jeff Bailey <jbailey@nisa.net>.
1499         * mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
1500         * mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
1501         Reported by Jeff Bailey <jbailey@nisa.net>.
1503 2001-12-01  Roland McGrath  <roland@frob.com>
1505         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Add
1506         missing backslash in test arguments.
1507         * sysdeps/mach/hurd/configure: Regenerated.
1509 2001-11-26  Roland McGrath  <roland@frob.com>
1511         * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
1512         Reported by John Tobey <jtobey@john-edwin-tobey.org>.
1514 2001-11-30  Ulrich Drepper  <drepper@redhat.com>
1516         * iconvdata/Makefile (modules): Add ARMSCII-8.
1517         * iconvdata/gconv-modules: Add entries for ARMSCII-8.
1518         * iconvdata/armscii-8.c: New file.
1520 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
1522         * sysdeps/generic/glob.c (next_brace_sub): Return NULL if braces
1523         don't match, fix {{a,b},c} globbing, clean up.
1524         Patch by Flavio Veloso <flaviovs@magnux.com>.
1525         * posix/globtest.sh: Add new tests.
1527 2001-11-29  Andreas Jaeger  <aj@suse.de>
1529         * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
1530         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
1532         * sysdeps/generic/abort.c: Include libioP.h for
1533         _IO_flush_all_lockp prototype.
1535 2001-11-29  Ulrich Drepper  <drepper@redhat.com>
1537         * posix/regex.h: Define __restrict_arr correctly.
1539 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
1541         * iconvdata/ibm1163.c: New file.
1542         * iconvdata/ibm1163.h: New file.
1543         * iconvdata/ibm1164.c: New file.
1544         * iconvdata/ibm1164.h: New file.
1545         * iconvdata/TESTS: Add entries for IBM1163 and IBM1164.
1546         * iconvdata/Makefile: Likewise.
1547         * iconvdata/testdata/IBM1163: New file.
1548         * iconvdata/testdata/IBM1163..UTF8: New file.
1549         * iconvdata/testdata/IBM1164: New file.
1550         * iconvdata/testdata/IBM1164..UTF8: New file.
1551         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
1553         * iconvdata/ibm1046.h: Optimize.  Remove duplicate mappings.
1554         * iconvdata/ibm1124.h: Likewise.
1555         * iconvdata/ibm1132.h: Likewise.
1556         * iconvdata/ibm1133.h: Likewise.
1557         * iconvdata/ibm1160.h: Likewise.
1558         * iconvdata/ibm1161.h: Likewise.
1559         * iconvdata/ibm1162.h: Likewise.
1560         * iconvdata/ibm856.h: Likewise.
1561         * iconvdata/ibm922.h: Likewise.
1562         * iconvdata/ibm930.h: Likewise.
1563         * iconvdata/ibm932.h: Likewise.
1564         * iconvdata/ibm933.h: Likewise.
1565         * iconvdata/ibm935.h: Likewise.
1566         * iconvdata/ibm937.h: Likewise.
1567         * iconvdata/ibm939.h: Likewise.
1568         * iconvdata/ibm943.h: Likewise.
1569         * iconvdata/ibm930.c: Pretty printing.
1570         * iconvdata/ibm937.c: Avoid access accross array boundary.
1572         * iconv/gconv_open.c (__gconv_open): Empty codeset name now means using
1573         the current locale's codeset.
1574         * iconv/iconv_open.c (iconv_open): Don't strip out everything for
1575         empty input string.
1576         * iconv/iconv_prog.c: Pass empty strings as default value for to-
1577         and from-charset.  Don't determine locale's charset here.
1579         * libio/genops.c (_IO_flush_all_lockp): New function.  The same code
1580         as the old _IO_flush_all but lock only if parameter is nonzero.
1581         (_IO_flush_all): Call _IO_flush_all_lockp with 1 as parameter.
1582         * libio/libioP.h: Add prototype for _IO_flush_all_lockp.
1583         * sysdeps/generic/abort.c (fflush): Define to _IO_flush_all_lockp(0)
1584         if libio is used [PR libc/2575].
1586 2001-11-28  Jakub Jelinek  <jakub@redhat.com>
1588         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
1589         __signbitl): Only define for ISO C99.
1591 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
1593         * nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set
1594         herrnop to NETDB_INTERNAL if we run out of buffer space.
1596 2001-11-28  Ulrich Drepper  <drepper@redhat.com>
1598         * nss/nss_files/files-XXX.c (internal_getent): Correct input
1599         overflow test for platforms with signed char.
1600         Reported by Andrew Haley <aph@cambridge.redhat.com>.
1602 2001-11-28  Bruno Haible  <bruno@clisp.org>
1604         * locale/programs/simple-hash.c (lookup_2): Remove function.
1605         (insert_entry_2): Call lookup instead of lookup_2.
1607 2001-03-04  Bruno Haible  <bruno@clisp.org>
1609         * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
1611 2001-10-31  Bruno Haible  <bruno@clisp.org>
1613         * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
1615 2001-03-21  Bruno Haible  <bruno@clisp.org>
1617         * intl/dcigettext.c (_nl_state_lock): Mark as #ifdef _LIBC. AIX 3 xlc
1618         chokes on empty macro arguments.
1619         * intl/plural.y: Add #pragma for alloca on AIX 3.
1621 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
1623         * intl/dcigettext.c (guess_category_value): Only implement for
1624         glibc.  Otherwise rely on function _nl_locale_name which isn't
1625         present in the glibc sources.
1627 2001-09-24  Bruno Haible  <bruno@clisp.org>
1629         * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
1630         transliteration when building on a glibc system but outside glibc.
1632 2001-09-22  Bruno Haible  <bruno@clisp.org>
1634         * intl/plural-eval.c: New file, extracted from dcigettext.c.
1635         * intl/dcigettext.c (plural_eval): Remove function, moved to
1636         intl/plural-eval.c.
1637         (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
1638         Include plural-eval.c.
1640 2001-09-22  Bruno Haible  <bruno@clisp.org>
1642         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
1643         don't start with a digit; nplurals must be positive.
1645 2001-09-02  Bruno Haible  <bruno@clisp.org>
1647         * intl/plural-exp.h: New file, extracted from gettextP.h.
1648         * intl/plural-exp.c: New file, extracted from loadmsgcat.c.
1649         * intl/gettextP.h (struct expression, struct parse_args,
1650         __gettext_free_exp, __gettextparse): Move to plural-exp.h.
1651         * intl/loadmsgcat.c: Include plural-exp.h.
1652         (PLURAL_PARSE): Move macro to plural-exp.h.
1653         (plvar, plone, germanic_plural, INIT_GERMANIC_PLURAL): Move to
1654         plural-exp.c.
1655         (_nl_load_domain): Move plural handling code to plural-exp.c.  Call
1656         EXTRACT_PLURAL_EXPRESSION.
1657         (_nl_unload_domain): Update.
1658         * intl/dcigettext.c: Include plural-exp.h.
1659         * intl/plural.y: Include plural-exp.h, not gettextP.h.
1660         (FREE_EXPRESSION): Move macro to plural-exp.h.
1661         * intl/Makefile (routines): Add plural-exp.
1662         (distribute): Add plural-exp.h.
1664 2001-07-28  Bruno Haible  <bruno@clisp.org>
1666         * intl/l10nflist.c (_nl_normalize_codeset): Cast isalnum, isalpha,
1667         isdigit, tolower argument to 'unsigned char'.
1668         * intl/loadmsgcat.c (_nl_load_domain): Cast isspace argument to
1669         'unsigned char'.
1670         * intl/localealias.c (read_alias_file): Cast isspace argument to
1671         'unsigned char'.
1673 2001-10-20  Bruno Haible  <bruno@clisp.org>
1675         Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
1676         anyway.)
1677         * intl/dcigettext.c (strchr): Remove fallback definition; it conflicts
1678         with the variable 'index' in plural_lookup.
1679         * intl/l10nflist.c (strchr): Likewise.
1680         * intl/localealias.c (strchr): Likewise.
1682         Assume <stddef.h>, <stdlib.h>, <string.h>, <locale.h> exist.
1683         * intl/bindtextdom.c: Likewise.
1684         * intl/dcigettext.c: Likewise.
1685         * intl/dgettext.c: Likewise.
1686         * intl/dngettext.c: Likewise.
1687         * intl/explodename.c: Likewise.
1688         * intl/finddomain.c: Likewise.
1689         * intl/gettext.c: Likewise.
1690         * intl/l10nflist.c: Likewise.
1691         * intl/loadmsgcat.c: Likewise.
1692         * intl/localealias.c: Likewise.
1693         * intl/ngettext.c: Likewise.
1694         * intl/textdomain.c: Likewise.
1695         * intl/gettext.h: Assume <limits.h> exists.
1697 2001-11-27  Ulrich Drepper  <drepper@redhat.com>
1699         * stdio-common/Makefile (tests): Add scanf11.
1700         * stdio-common/scanf11.c: New file.
1702 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
1704         * version.h (RELEASE): Define as development.
1705         (VERSION): Set to 2.2.90.
1707 2001-11-22  Thorsten Kukuk  <kukuk@suse.de>
1709         * nis/nss_compat/compat-grp.c: Print group id as unsigned long.
1710         * nis/nss_nis/nis-grp.c: Likewise.
1711         * nis/nss_nisplus/nisplus-grp.c: Likewise.
1713         * nis/nss_compat/compat-pwd.c: Print user id as unsigned long.
1714         * nis/nss_nis/nis-pwd.c: Likewise.
1715         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
1717         * nis/nss_nis/nis-publickey.c: Use strtoul instead of atoi.
1718         * nis/nss_nisplus/nisplus-parser.c: Likewise.
1719         * nis/nss_nisplus/nisplus-publickey.c: Likewise.
1721         * nscd/grpcache.c: Use strtoul instead of atol.
1722         * nscd/pwdcache.c: Likewise.
1723         * nss/getent.c: Likewise.
1725 2001-11-27  Paul Eggert  <eggert@twinsun.com>
1727         * sysdeps/posix/tempname.c (__gen_tempname): Try at least
1728         ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
1730 2001-11-19  Bruno Haible  <bruno@clisp.org>
1732         * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
1733         90%.
1734         (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
1735         improves the quality of the hash function, especially for short
1736         strings.
1738 2001-11-26  Ulrich Drepper  <drepper@redhat.com>
1740         * stdio-common/vfscanf.c: If incomplete nan of inf(inity) strings
1741         are found call conv_error and not input_error [PR libc/2669].
1743         * math/bits/mathcalls.h: Mark ceil and floor as const.
1744         Reported by David Mosberger.
1746 2001-11-21  Jim Meyering  <meyering@lucent.com>
1748         * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
1749         Define to be __-prefixed.
1750         Remove unnecessary duplication in `#ifdef _LIBC' blocks.
1752 2001-11-26  Andreas Jaeger  <aj@suse.de>
1754         * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
1755         avoid warning.
1757 2001-11-26  Stephen L Moshier <moshier@mediaone.net>
1759         * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
1760         initialization.
1762         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
1763         unused variables.  Fix threshold for returning 1.0.
1765         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
1766         argument.
1768         * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
1769         remove unused variables.
1771         * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
1773         * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
1774         include local math header files.
1776 2001-11-22  Andreas Jaeger  <aj@suse.de>
1778         * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
1779         avoid warning.
1781 2001-11-21  Andreas Jaeger  <aj@suse.de>
1783         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
1785         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
1786         sys/debugreg.h
1788 2001-11-15  Andreas Jaeger  <aj@suse.de>
1790         * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
1791         compilers that support it.
1793         * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
1794         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
1795         * stdlib/stdlib.h: Likewise.
1797 2001-11-17  Ulrich Drepper  <drepper@redhat.com>
1799         * posix/regex.c (byte_re_match_2_internal): For gcc replace switch
1800         statement with gotos.
1801         Based on a patch by Paolo Bonzini <bonzini@pc-amo3.elet.polimi.it>.
1803 2001-11-16  Stephen L Moshier  <moshier@mediaone.net>
1805         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
1807 2001-11-15  Ulrich Drepper  <drepper@redhat.com>
1809         * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
1811 2001-10-02  Jakub Jelinek  <jakub@redhat.com>
1812             H.J. Lu  <hjl@gnu.org>
1814         * Versions.def (libc): Add GCC_3.0.
1815         * configure.in (libc_cv_gcc_static_libgcc): Set to -static-libgcc
1816         if gcc supports this flag.
1817         (EXPORT_UNWIND_FIND_FDE): Define unless target configure disables it.
1818         (gcc3): Allow glibc to be compiled with gcc 3.x.
1819         * config.h.in (EXPORT_UNWIND_FIND_FDE): Add.
1820         * config.make.in (static-libgcc, unwind-find-fde): Add.
1821         * Makerules (build-shlib-helper, build-module-helper): Use it.
1822         * scripts/versions.awk: Make sure GLIBC_ versions come first.
1823         * elf/soinit.c (__libc_global_ctors): Set tbases and dbases if
1824         necessary.
1825         (_fini): Call __deregister_frame_info_bases if
1826         __register_frame_info_bases was used to register.
1827         * elf/Versions (__register_frame_info, __deregister_frame_info): Add
1828         for GLIBC_2.0.
1829         (__register_frame_info_bases, __register_frame_info_table_bases,
1830         __deregister_frame_info_bases, _Unwind_Find_FDE): Add for GCC_3.0.
1831         * elf/Makefile (routines): Add unwind-dw2-fde.
1832         (shared-only-routines): Add unwind-dw2-fde.
1833         * sysdeps/alpha/gccframe.h: New file.
1834         * sysdeps/arm/gccframe.h: New file.
1835         * sysdeps/generic/framestate.c: New file.
1836         * sysdeps/generic/dwarf2.h: New file.
1837         * sysdeps/generic/gccframe.h (struct object): Update from gcc 3.0.
1838         * sysdeps/generic/unwind-dw2-fde.c: New file.
1839         * sysdeps/unix/sysv/linux/ia64/unwind-dw2-fde.c: New file.
1840         * sysdeps/generic/unwind-dw2-fde.h: New file.
1841         * sysdeps/generic/unwind-dw2.c: New file.
1842         * sysdeps/generic/unwind-pe.h: New file.
1843         * sysdeps/generic/unwind.h: New file.
1844         * sysdeps/hppa/gccframe.h: New file.
1845         * sysdeps/i386/gccframe.h: New file.
1846         * sysdeps/m68k/gccframe.h: New file.
1847         * sysdeps/mips/gccframe.h: New file.
1848         * sysdeps/powerpc/gccframe.h: New file.
1849         * sysdeps/s390/gccframe.h: New file.
1850         * sysdeps/sh/gccframe.h: New file.
1851         * sysdeps/sparc/gccframe.h: New file.
1852         * sysdeps/vax/gccframe.h: New file.
1853         * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
1854         Set on all architectures except ia64.
1855         * sysdeps/mach/hurd/configure.in (libc_cv_gcc_unwind_find_fde): Set
1856         for i386.
1857         * sysdeps/mach/hurd/i386/Versions (__register_frame_info,
1858         __deregister_frame_info): Move to elf/Versions.
1859         * sysdeps/unix/sysv/linux/m68k/Versions: Likewise.
1860         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
1861         * sysdeps/unix/sysv/linux/alpha/Versions: Likewise.
1862         * sysdeps/unix/sysv/linux/i386/Versions: Likewise.
1863         * sysdeps/unix/sysv/linux/mips/Versions: Likewise.
1864         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
1865         * sysdeps/unix/sysv/linux/s390/s390-32/Versions: Likewise.
1866         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
1867         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: Likewise.
1868         * sysdeps/mach/hurd/i386/Makefile (sysdep-routines): Add framestate.
1869         * sysdeps/unix/sysv/linux/arm/Makefile: Likewise.
1870         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
1871         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
1872         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
1873         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
1874         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
1875         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
1876         * sysdeps/unix/sysv/linux/sparc/Makefile: Likewise.
1878 2001-11-15  Jeff Law  <law@redhat.com>
1880         * posix/regex.c (uintptr_t): Do not provide a definition if the
1881         system provided one.
1883 2001-11-13  Roland McGrath  <roland@frob.com>
1885         * stdio-common/tmpfile.c: Moved to ...
1886         * sysdeps/generic/tmpfile.c: ... here.
1887         * sysdeps/mach/hurd/tmpfile.c: New file.
1889         * hurd/fopenport.c (__fopenport): Renamed from fopenport.
1890         [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
1891         (fopenport): Define as weak alias.
1893         * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
1894         * libio/libioP.h: ... to here.
1896 2001-11-12  Ulrich Drepper  <drepper@redhat.com>
1898         * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
1899         program header twice.  Construct list with the needed information.
1901 2001-11-10  Ulrich Drepper  <drepper@redhat.com>
1903         * po/ca.po: Update from translation team.
1905         * elf/dl-load.c (_dl_map_object_from_fd): Remove use of
1906         _dl_pf_to_prot.  Use arithmetic operation using PF_TO_PROT macro.
1907         * sysdeps/generic/ldsodefs.h (PF_TO_PROT): New macro.
1908         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
1910 2001-11-10  Andreas Jaeger  <aj@suse.de>
1912         * sysdeps/ieee754/ldbl-128/e_log2l.c: New file.
1913         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
1914         Contributed by Stephen L Moshier <moshier@mediaone.net>.
1916 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
1918         * elf/dl-minimal.c (realloc): Handle NULL for first parameter
1919         correctly.
1920         * elf/dl-load.c (is_dst): New function.
1921         (_dl_dst_count): Use is_dst to check for DST variable.
1922         (_dl_dst_substitute): Likewise.
1924 2001-11-09  Roland McGrath  <roland@frob.com>
1926         Hurd/PowerPC port contributed by Peter Bruin <pjbruin@dds.nl>.
1927         * sysdeps/mach/hurd/powerpc/exc2signal.c: New file.
1928         * sysdeps/mach/hurd/powerpc/init-first.c: New file.
1929         * sysdeps/mach/hurd/powerpc/intr-msg.h: New file.
1930         * sysdeps/mach/hurd/powerpc/longjmp-ts.c: New file.
1931         * sysdeps/mach/hurd/powerpc/register-dump.h: New file.
1932         * sysdeps/mach/hurd/powerpc/sigreturn.c: New file.
1933         * sysdeps/mach/hurd/powerpc/static-start.S: New file.
1934         * sysdeps/mach/hurd/powerpc/trampoline.c: New file.
1935         * sysdeps/mach/hurd/powerpc/bits/sigcontext.h: New file.
1936         * sysdeps/mach/hurd/powerpc/Dist: New file.
1938         * hurd/privports.c (__get_privileged_ports):
1939         Only contact the proc server if necessary for this call.
1940         Suggested by Neal H Walfield <neal@cs.uml.edu>.
1941         Check error return for mach_port_mod_refs.
1943 2001-11-09  Andreas Schwab  <schwab@suse.de>
1945         * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
1947 2001-11-09  Ulrich Drepper  <drepper@redhat.com>
1949         * elf/dl-load.c (lose): Remove some unnecessary code.  The new
1950         object is always the last in the list.
1951         (_dl_map_object_from_fd): Delete code to remove from object list
1952         when DF_1_NOOPEN is seen.  This is done in lose.
1954 2001-11-08  Ulrich Drepper  <drepper@redhat.com>
1956         * elf/dl-object.c (_dl_new_object): Various small optimizations.
1958 2001-11-07  Ulrich Drepper  <drepper@redhat.com>
1960         * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
1961         HWCAP_CHECK macro code.
1963         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Optimize code a bit.
1964         Now returns MAP_FAILED on error.
1965         * elf/rtld.c: Adjust caller.
1966         * sysdeps/generic/dl-cache.c: Likewise.
1967         * sysdeps/generic/ldsodefs.h: Adjust description.
1969         * elf/dl-version.c (match_symbol): Optimize error handling for size.
1970         (_dl_check_map_versions): Likewise.
1972 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
1974         * elf/dl-load.c (_dl_map_object_from_fd): Don't call
1975         _dl_signal_error directly, always use lose.  Set fd to -1 after
1976         file is closed.
1977         (lose): Don't call close if fd == -1.
1979 2001-11-07  Kaoru Fukui  <k_fukui@highway.ne.jp>
1981         * manual/charset.texi: Fix typo @w[ISO 6937] to  @w{ISO 6937}.
1982          Also fix typo @code {mbsinit} to @code{mbsinit}.
1984 2001-11-06  Ulrich Drepper  <drepper@redhat.com>
1986         * elf/dl-profile.c: Replace state variable with simple flag named
1987         running.  Remove commented-out code.
1989         * elf/dl-load.c (decompose_rpath): Optimize error handling for size.
1990         (_dl_init_paths): Likewise.
1991         (_dl_map_object_from_fd): Likewise.
1992         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
1994 2001-11-06  Roland McGrath  <roland@frob.com>
1996         * sysdeps/mach/powerpc/sysdep.h: Include sysdeps/unix/powerpc/sysdep.h
1997         instead of sysdeps/powerpc/elf/sysdep.h and sysdeps/unix/sysdep.h.
1999         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Don't include
2000         sysdeps/powerpc/elf/sysdep.h.
2001         Reported by Kaoru Fukui <k_fukui@highway.ne.jp>.
2003 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
2005         * elf/rtld.c (process_dl_debug): Rewritten.  Optimized for size not
2006         speed.
2007         (process_envvars): Some more optimizations.
2008         * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
2010         * elf/elf.h: Add dynamic tag definitions for prelinking.
2012         * elf/rtld.c (process_envvars): Avoid using array of string pointers.
2013         Rewrite code to remove environment varables for SUID binaries.
2014         Small optimization in LD_PROFILE handling.
2015         * sysdeps/generic/unsecvars.h: Adjust format for process_envvars
2016         changes.
2017         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
2019         * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
2021         * elf/dl-reloc.c (_dl_reloc_bad_type): Rewrite to not use writable
2022         strings.  Change type of second parameter.
2023         * sysdeps/generic/ldsodefs.h: Adjust _dl_reloc_bad_type prototype
2024         for last change.
2026         * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
2028 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
2030         * manual/string.texi: Fix typos.
2031         * manual/examples/argp-ex2.c: Likewise.
2033 2001-11-05  Roland McGrath  <roland@frob.com>
2035         * sysdeps/powerpc/elf/sysdep.h: Remove this file, because it overrides
2036         the more-specific unix/sysv/linux/powerpc file and breaks everything.
2037         * sysdeps/powerpc/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE,
2038         ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN, DO_CALL, JUMPTARGET,
2039         PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT): These macros moved here
2040         here, put under [__ELF__].
2042 2001-11-05  Ulrich Drepper  <drepper@redhat.com>
2044         * manual/charset.texi: Extensive editing work.
2045         * manual/nss.texi: Likewise.
2046         Changes by Dennis Grace <dgrace@us.ibm.com>.
2048 2001-11-04  Roland McGrath  <roland@frob.com>
2050         * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
2051         parameter to dir_mkfile.
2053 2001-11-02  Jakub Jelinek  <jakub@redhat.com>
2055         * string/bits/string2.h (__strndup): If n is smaller than len, set
2056         len to n + 1.
2057         * string/tester.c (test_strndup): New function.
2058         (main): Call it.
2060 2001-11-01  Ulrich Drepper  <drepper@redhat.com>
2062         * sunrpc/rpc_main.c: Optimize variable definitions a bit.
2064         * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
2065         * scripts/cpp: New file.
2067         * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
2068         for rtld_search_dirs content.  Minor optimizations.
2070 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
2072         * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
2073         avoiding unnecessary duplication.
2075 2001-10-31  Jakub Jelinek  <jakub@redhat.com>
2077         * elf/dl-load.c (_dl_map_object): If library was found using
2078         LD_LIBRARY_PATH, don't try RUNPATH list.
2080 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2082         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h (REGISTER_DUMP):
2083         Correct second argument of register_dump call.
2084         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h (REGISTER_DUMP):
2085         Likewise.
2087 2001-10-31  Ulrich Drepper  <drepper@redhat.com>
2089         * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
2090         modules.
2091         * iconvdata/TESTS: Likewise.
2092         * iconvdata/gconv-modules: Likewise.
2093         * iconvdata/ibm1132.c: New file.
2094         * iconvdata/ibm1132.h: New file.
2095         * iconvdata/ibm1133.c: New file.
2096         * iconvdata/ibm1133.h: New file.
2097         * iconvdata/ibm1162.c: New file.
2098         * iconvdata/ibm1162.h: New file.
2099         * iconvdata/testdata/IBM1132: New file.
2100         * iconvdata/testdata/IBM1132..UTF8: New file.
2101         * iconvdata/testdata/IBM1133: New file.
2102         * iconvdata/testdata/IBM1133..UTF8: New file.
2103         * iconvdata/testdata/IBM1162: New file.
2104         * iconvdata/testdata/IBM1162..UTF8: New file.
2105         Patches by Masahide Washizawa <WASHI@jp.ibm.com>.
2107         * string/string.h: Fix typo in comment.
2108         * wcsmbs/wchar.h: Likewise.
2110 2001-10-30  Joseph S. Myers  <jsm28@cam.ac.uk>
2112         * manual/getopt.texi (getopt_long, getopt_long_only): Include
2113         const in type of longopts parameter.
2115 2001-10-29  Andreas Jaeger  <aj@suse.de>
2117         * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
2119 2001-10-29  Kevin Ryde  <user42@zip.com.au>
2121         * manual/stdio.texi (Integer Conversions): Corrections to sample printf
2122         output, clarify `#' behaviour on 0.
2123         (Floating-Point Conversions): Clarify that %g only uses %e when
2124         the exponent would be greater than 1.
2126 2001-10-28  Roland McGrath  <roland@frob.com>
2128         Support for Mach/PowerPC contributed by Peter Bruin <pjbruin@dds.nl>.
2129         * sysdeps/mach/powerpc/machine-sp.h: New file.
2130         * sysdeps/mach/powerpc/sysdep.h: New file.
2131         * sysdeps/mach/powerpc/thread_state.h: New file.
2133         * sysdeps/mach/hurd/i386/Makefile: File removed; crt0.o rules moved ...
2134         * sysdeps/mach/hurd/Makefile: ... to here.  For the time being, we can
2135         expect to need the same thing on every platform.
2137         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
2138         * sysdeps/generic/sys/ucontext.h: ... to replace this one.
2140         * sysdeps/unix/sysv/linux/powerpc/sysdep.h (ALIGNARG,
2141         ASM_TYPE_DIRECTIVE, ASM_SIZE_DIRECTIVE, CALL_MCOUNT, ENTRY, EALIGN,
2142         DO_CALL, JUMPTARGET, PSEUDO, PSEUDO_RET, PSEUDO_END, L, C_TEXT):
2143         Move all these assembly-related definitions to ...
2144         * sysdeps/powerpc/elf/sysdep.h: ... this new file.
2146         * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
2147         by Peter Bruin <pjbruin@dds.nl>.
2149         * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
2150         packing results for a `poll' call.
2152 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
2154         * posix/fnmatch_loop.c: Recognize - at end of bracket expression
2155         correctly.
2156         * posix/tst-fnmatch.input: Add tests for - at beginning and end of
2157         bracket expression.
2159         * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
2160         nrules value.
2161         * string/tst-strxfrm.c (test): Also test __strxfrm_l.
2163 2001-10-24  H.J. Lu  <hjl@gnu.org>
2165         * sysdeps/generic/bits/dlfcn.h (DL_CALL_FCT): Cast to void *.
2166         Use __BEGIN_DECLS/__END_DECLS around prototypes.
2167         * sysdeps/mips/bits/dlfcn.h (DL_CALL_FCT): Likewise.
2169 2001-10-21  Jim Meyering  <meyering@lucent.com>
2171         * malloc/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
2172         this code would end up calling gettext even in packages built
2173         with --disable-nls.
2174         * posix/getopt.c (_): Likewise.
2175         * posix/regex.c (_): Likewise.
2177 2001-10-26  Ulrich Drepper  <drepper@redhat.com>
2179         * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
2180         lookup not ip6.int.
2181         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
2182         Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
2184 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
2186         * misc/sys/cdefs.h (__attribute_used__): Define.
2187         * elf/rtld.c (_dl_start): Add __attribute_used__.
2188         * elf/dl-runtime.c (fixup, profile_fixup): Likewise.
2190 2001-10-25  Andreas Schwab  <schwab@suse.de>
2192         * stdlib/a64l.c: Expect least significant digit first.
2193         * stdlib/l64a.c: Produce least significant digit first.
2194         * stdlib/Makefile (tests): Add test-a64l.
2195         * stdlib/test-a64l.c: New file.
2196         Reported by Masaki Hasegawa <masaki-h@pp.iij4u.or.jp>.
2198 2001-10-21  Ulrich Drepper  <drepper@redhat.com>
2200         * po/sk.po: Update from translation team.
2202 2001-10-18  Ulrich Drepper  <drepper@redhat.com>
2204         * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
2206 2001-10-18  Andreas Schwab  <schwab@suse.de>
2208         * math/libm-test.inc (print_ulps): Print ulp values rounded to
2209         next whole number.
2210         (print_function_ulps): Likewise.
2211         (print_complex_function_ulps): Likewise.
2212         (print_max_error): Likewise.
2213         (print_complex_max_error): Likewise.  Handle ignore_max_ulp.
2215 2001-10-16  Andreas Schwab  <schwab@suse.de>
2217         * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
2218         implementation.
2220         * sysdeps/m68k/setjmp.c: Also define setjmp and _setjmp if
2221         BSD_SETJMP or BSD__SETJMP is defined, resp.
2222         * sysdeps/m68k/bsd-setjmp.c: Inline setjmp code instead of making
2223         a tail call to __sigsetjmp that would require extending the
2224         caller's frame.
2225         * sysdeps/m68k/bsd-_setjmp.c: Likewise.
2226         * sysdeps/m68k/bsd-setjmp.S: Deleted.
2227         * sysdeps/m68k/bsd-_setjmp.S: Deleted.
2228         Reported by Jes Sorensen <jes@trained-monkey.org>.
2230 2001-10-16  Andreas Jaeger  <aj@suse.de>
2232         * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
2233         parentheses.  Reported by David Byron <dbyron@porto.coactive.com>,
2234         close PR libc/2589.
2236 2001-10-15  Ulrich Drepper  <drepper@redhat.com>
2238         * po/ca.po: New file.  Contributed by the translation team.
2240 2001-10-15  Ralf Baechle  <ralf@gnu.org>
2242         * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
2243         a varargs prototype.  Remove dependency from kernel header files.
2245         * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
2246         __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
2248 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
2250         * locale/programs/ld-collate.c (handle_ellipsis): Use %lX not %lx
2251         to generate hexadecimal identifier.
2252         Patch by Jungshik Shin <jungshik.shin@yale.edu>.
2254 2001-10-09  Stephen L Moshier  <moshier@mediaone.net>
2256         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
2258 2001-10-14  Ulrich Drepper  <drepper@redhat.com>
2260         * sysdeps/ieee754/ldbl-128/e_powl.c: New file.
2261         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: New file.
2262         Contributed by Stephen L Moshier <moshier@mediaone.net>.
2264         * sysdeps/ieee754/ldbl-128/e_j0l.c: Constify float variables.
2265         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2266         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise
2267         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise
2268         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise
2269         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise
2271         * timezone/africa: Update from tzdata2001d.
2272         * timezone/asia: Likewise.
2273         * timezone/australasia: Likewise.
2274         * timezone/backward: Likewise.
2275         * timezone/europe: Likewise.
2276         * timezone/leapseconds: Likewise.
2277         * timezone/northamerica: Likewise.
2278         * timezone/southamerica: Likewise.
2279         * timezone/zone.tab: Likewise.
2281 2001-10-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2283         * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
2284         * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
2286 2001-10-12  Ulrich Drepper  <drepper@redhat.com>
2288         * elf/elf.h (PT_TLS): New definition.
2290 2001-10-10  Jeff Bailey  <jbailey@nisa.net>
2292         * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
2293         bits/errno.h
2295 2001-10-07  Roland McGrath  <roland@frob.com>
2297         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
2299 2001-10-10  Ulrich Drepper  <drepper@redhat.com>
2301         * elf/elf.h: Add more ELFOSABI_* constants.
2303 2001-10-04  Ben Collins  <bcollins@debian.org>
2305         * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
2306         decleration of __need_wchar_t.
2308 2001-10-03  Jakub Jelinek  <jakub@redhat.com>
2310         * string/bits/string2.h (__strsep_g): Add prototype.
2311         (__strsep): Use it.
2312         * string/Versions (__strsep): Remove.
2313         * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
2315 2001-10-07  Ulrich Drepper  <drepper@redhat.com>
2317         * manua/llio.texi: Clarify file references added by mmap.
2318         Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
2320 2001-09-29  Jes Sorensen  <jes@trained-monkey.org>
2322         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
2323         Add sc_loadrs and sc_rbs_bas to match current kernel.
2325 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
2327         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
2329         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
2331 2001-09-27  Jakub Jelinek  <jakub@redhat.com>
2333         * elf/dl-open.c (dl_open_worker): If l_opencount of freshly loaded
2334         object has been bumped because of relocation dependency, avoid
2335         duplicates in l_scope.
2336         (show_scope): Fix typos.
2337         * elf/Makefile: Add rules to build and run reldep6.
2338         * elf/reldep6.c: New file.
2339         * elf/reldep6mod0.c: New file.
2340         * elf/reldep6mod1.c: New file.
2341         * elf/reldep6mod2.c: New file.
2342         * elf/reldep6mod3.c: New file.
2343         * elf/reldep6mod4.c: New file.
2345 2001-09-26  Jakub Jelinek  <jakub@redhat.com>
2347         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
2348         sparc64_fixup_plt.
2349         (sparc64_fixup_plt): Moved from elf_machine_fixup_plt.  Optimize
2350         near jumps and 0xfffff800XXXXXXXX target addresses, no thread safety
2351         for non-lazy binding. Fix .plt[32768+] handling.
2352         (elf_machine_plt_value): Don't add addend.
2353         (elf_machine_rela): Call sparc64_fixup_plt instead of
2354         elf_machine_fixup_plt.
2355         (elf_machine_runtime_setup, TRAMPOLINE_TEMPLATE): Optimize for
2356         dynamic linker at 0xfffff800XXXXXXXX.
2358         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
2360 2001-09-28  Ulrich Drepper  <drepper@redhat.com>
2362         * elf/elf.h: Define SHF_GROUP and SHF_TLS.
2364 2001-09-25  Jakub Jelinek  <jakub@redhat.com>
2366         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (struct cmsghdr): Don't
2367         declare __cmsg_data field if its size would be bigger than 0.
2368         (CMSG_DATA): Adjust accordingly.
2369         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
2370         * sysdeps/unix/sysv/linux/alpha/bits/socket.h: Likewise.
2371         * sysdeps/unix/sysv/linux/ia64/bits/socket.h: Likewise.
2372         * sysdeps/unix/sysv/linux/s390/s390-64/bits/socket.h: Likewise.
2373         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
2374         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
2375         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2377 2001-09-25  Ulrich Drepper  <drepper@redhat.com>
2379         * iconvdata/TESTS: Add entries for IBM1160 and IBM1161.
2380         * iconvdata/testdata/IBM1160: New file.
2381         * iconvdata/testdata/IBM1160..UTF8: New file.
2382         * iconvdata/testdata/IBM1161: New file.
2383         * iconvdata/testdata/IBM1161..UTF8: New file.
2384         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
2386 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
2388         * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
2389         UL_SETFSIZE computations better.
2391         * rt/Makefile: Remove use of filter for librt again.
2393         * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
2394         UL_SETFSIZE computations better.
2396         * string/Versions: Export __strsep for GLIBC_2.2.5.
2397         * string/bits/string2.h: Define all __STRING_INLINE functions if
2398         _FORCE_INLINES is defined.
2399         Use int instead of char of parameter types.
2400         (__strsep): Don't use __strsep_g.  Don't define it.
2401         (__strsep_1c, __strsep_2c, __strsep_3c): Optimize.
2402         * sysdeps/i386/i486/string.h (__strcpy_a_small): Renamed from
2403         __strcpy_small.
2404         (__stpcpy_a_small): Renamed from __stpcpy_small.
2405         (__strcspn_c1): Don't define if _FORCE_INLINES.
2406         (__strspn_c1): Likewise.
2408 2001-09-22  Ben Collins  <bcollins@debian.org>
2410         * sysdeps/sparc/bits/sigaction.h: Define SA_RESTART and friends when
2411         _UNIX98_SOURCE is defined too.  Matches generic/bits/sigaction.h.
2412         * sysdeps/ia64/bits/sigaction.h: Likewise.
2413         * sysdeps/s390/s390-64/bits/sigaction.h: Likewise.
2415 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
2417         * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
2419 2001-09-24  Jakub Jelinek  <jakub@redhat.com>
2421         * elf/dl-open.c (dl_open_worker): Update l_scope_max.
2423 2001-09-24  Ulrich Drepper  <drepper@redhat.com>
2425         * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
2427 2001-09-20  H.J. Lu  <hjl@gnu.org>
2429         * include/dlfcn.h (__RTLD_SPROF): New definiton.
2430         * elf/dl-open.c (dl_open_worker): Return immediately after loading
2431         for __RTLD_SPROF.
2432         * elf/sprof.c (main): Default to the filename if soname doesn't exist.
2433         (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
2435 2001-09-20  H.J. Lu  <hjl@gnu.org>
2437         * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
2438         don't add 1.
2440 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
2442         * nss/getent.c: Accept -s parameter to overwrite rules in
2443         nsswitch.conf.  Patch by Nalin Dahyabhai <nalin@redhat.com>.
2445         * nss/nss_files/files-network.c (LINE_PARSER): Pad addr string
2446         with as many ".0" as necessary to form a complete address
2447         inet_network understands.
2449         * nss/getent.c: Various cleanups.  Use simpler and fewer function
2450         calls.
2452 2001-09-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2454         * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
2455         _JMPBUF_UNWINDS.
2456         * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
2458 2001-09-22  Ulrich Drepper  <drepper@redhat.com>
2460         * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
2461         IBM1161.
2462         * iconvdata/gconv-modules: Add entries for IBM1160 and IBM1161.
2463         * iconvdata/ibm1160.c: New file.
2464         * iconvdata/ibm1160.h: New file.
2465         * iconvdata/ibm1161.c: New file.
2466         * iconvdata/ibm1161.h: New file.
2467         Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
2469 2001-09-19  Jakub Jelinek  <jakub@redhat.com>
2471         * sysdeps/alpha/dl-machine.h (elf_machine_load_address): Compute the
2472         difference between base address and first PT_LOAD's virtual address,
2473         not the base address.
2475 2001-09-11  Tom Rix  <trix@redhat.com>
2477         * sysdeps/unix/sysv/aix/init-first.c (init):  Use USE_NONONPTION_FLAG
2478         ifdef for __getopt_clean_environment.
2479         * sysdeps/unix/sysv/aix/libc-start.c: Add real implementation.
2481 2001-09-22  Andreas Jaeger  <aj@suse.de>
2483         * elf/reldep4.c (main): Add proper prototype to fix warning.
2485         * elf/reldep5.c (main): Remove unused variable.
2487         * math/math_private.h: Add prototypes.
2489 2001-09-21  Andreas Jaeger  <aj@suse.de>
2491         * sysdeps/unix/sysv/linux/x86_64/Dist: New file.
2492         * sysdeps/x86_64/Dist: New file.
2493         * sysdeps/x86_64/soft-fp/Dist: New file.
2495         * sysdeps/gnu/Dist: Remove eval.c.
2497 2001-09-20  Ulrich Drepper  <drepper@redhat.com>
2499         * malloc/memusage.c (realloc): Don't count already allocated
2500         memory in the sums.
2501         (me): Always use dlsym() to find the real implementations.
2503         * malloc/memusage.sh: Make -n option actually do something.
2505 2001-09-20  Andreas Jaeger  <aj@suse.de>
2507         * elf/elf.h (R_390_NUM): Correct value.
2509         * Versions.def: Add missing versions 2.2.3 for libthread_db and
2510         libpthread.
2512         * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
2513         for x86-64, install x86-64 into */lib64.
2515         * shlib-versions: Add x86-64.
2517         * elf/elf.h: Add x86-64 relocations.
2519 2001-09-19  Ulrich Drepper  <drepper@redhat.com>
2521         * po/fr.po: Update from translation team.
2523 2001-09-19  Andreas Jaeger  <aj@suse.de>
2525         * sysdeps/unix/sysv/linux/x86_64/Makefile: New file.
2526         * sysdeps/unix/sysv/linux/x86_64/Versions: New file.
2527         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: New file.
2528         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: New file.
2529         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: New file.
2530         * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: New file.
2531         * sysdeps/unix/sysv/linux/x86_64/bits/time.h: New file.
2532         * sysdeps/unix/sysv/linux/x86_64/bits/types.h: New file.
2533         * sysdeps/unix/sysv/linux/x86_64/brk.c: New file.
2534         * sysdeps/unix/sysv/linux/x86_64/clone.S: New file.
2535         * sysdeps/unix/sysv/linux/x86_64/fstatfs64.c: New file.
2536         * sysdeps/unix/sysv/linux/x86_64/ftruncate64.c: New file.
2537         * sysdeps/unix/sysv/linux/x86_64/fxstat.c: New file.
2538         * sysdeps/unix/sysv/linux/x86_64/fxstat64.c: New file.
2539         * sysdeps/unix/sysv/linux/x86_64/getdents.c: New file.
2540         * sysdeps/unix/sysv/linux/x86_64/getdents64.c: New file.
2541         * sysdeps/unix/sysv/linux/x86_64/getrlimit64.c: New file.
2542         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
2543         * sysdeps/unix/sysv/linux/x86_64/glob64.c: New file.
2544         * sysdeps/unix/sysv/linux/x86_64/lxstat.c: New file.
2545         * sysdeps/unix/sysv/linux/x86_64/lxstat64.c: New file.
2546         * sysdeps/unix/sysv/linux/x86_64/mmap64.c: New file.
2547         * sysdeps/unix/sysv/linux/x86_64/pread64.c: New file.
2548         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: New file.
2549         * sysdeps/unix/sysv/linux/x86_64/pwrite64.c: New file.
2550         * sysdeps/unix/sysv/linux/x86_64/readdir.c: New file.
2551         * sysdeps/unix/sysv/linux/x86_64/readdir64.c: New file.
2552         * sysdeps/unix/sysv/linux/x86_64/readdir64_r.c: New file.
2553         * sysdeps/unix/sysv/linux/x86_64/readdir_r.c: New file.
2554         * sysdeps/unix/sysv/linux/x86_64/recv.c: New file.
2555         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: New file.
2556         * sysdeps/unix/sysv/linux/x86_64/send.c: New file.
2557         * sysdeps/unix/sysv/linux/x86_64/setrlimit64.c: New file.
2558         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: New file.
2559         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: New file.
2560         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: New file.
2561         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: New file.
2562         * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: New file.
2563         * sysdeps/unix/sysv/linux/x86_64/statfs64.c: New file.
2564         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: New file.
2565         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: New file.
2566         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: New file.
2567         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: New file.
2568         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: New file.
2569         * sysdeps/unix/sysv/linux/x86_64/syscall.S: New file.
2570         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: New file.
2571         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: New file.
2572         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: New file.
2573         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
2574         * sysdeps/unix/sysv/linux/x86_64/truncate64.c: New file.
2575         * sysdeps/unix/sysv/linux/x86_64/umount.c: New file.
2576         * sysdeps/unix/sysv/linux/x86_64/vfork.S: New file.
2577         * sysdeps/unix/sysv/linux/x86_64/xstat.c: New file.
2578         * sysdeps/unix/sysv/linux/x86_64/xstat64.c: New file.
2579         * sysdeps/unix/x86_64/sysdep.S: New file.
2580         * sysdeps/unix/x86_64/sysdep.h: New file.
2581         * sysdeps/x86_64/Implies: New file.
2582         * sysdeps/x86_64/Makefile: New file.
2583         * sysdeps/x86_64/Versions: New file.
2584         * sysdeps/x86_64/__longjmp.S: New file.
2585         * sysdeps/x86_64/abort-instr.h: New file.
2586         * sysdeps/x86_64/atomicity.h: New file.
2587         * sysdeps/x86_64/bits/endian.h: New file.
2588         * sysdeps/x86_64/bits/setjmp.h: New file.
2589         * sysdeps/x86_64/bits/string.h: New file.
2590         * sysdeps/x86_64/bp-asm.h: New file.
2591         * sysdeps/x86_64/bsd-_setjmp.S: New file.
2592         * sysdeps/x86_64/bsd-setjmp.S: New file.
2593         * sysdeps/x86_64/dl-machine.h: New file.
2594         * sysdeps/x86_64/elf/initfini.c: New file.
2595         * sysdeps/x86_64/elf/start.S: New file.
2596         * sysdeps/x86_64/ffs.c: New file.
2597         * sysdeps/x86_64/ffsll.c: New file.
2598         * sysdeps/x86_64/fpu/bits/fenv.h: New file.
2599         * sysdeps/x86_64/fpu/bits/mathdef.h: New file.
2600         * sysdeps/x86_64/fpu/e_acosl.c: New file.
2601         * sysdeps/x86_64/fpu/e_atan2l.c: New file.
2602         * sysdeps/x86_64/fpu/e_exp2l.S: New file.
2603         * sysdeps/x86_64/fpu/e_expl.c: New file.
2604         * sysdeps/x86_64/fpu/e_fmodl.S: New file.
2605         * sysdeps/x86_64/fpu/e_log10l.S: New file.
2606         * sysdeps/x86_64/fpu/e_log2l.S: New file.
2607         * sysdeps/x86_64/fpu/e_logl.S: New file.
2608         * sysdeps/x86_64/fpu/e_powl.S: New file.
2609         * sysdeps/x86_64/fpu/e_rem_pio2l.c: New file.
2610         * sysdeps/x86_64/fpu/e_scalbl.S: New file.
2611         * sysdeps/x86_64/fpu/e_sqrtl.c: New file.
2612         * sysdeps/x86_64/fpu/fclrexcpt.c: New file.
2613         * sysdeps/x86_64/fpu/fedisblxcpt.c: New file.
2614         * sysdeps/x86_64/fpu/feenablxcpt.c: New file.
2615         * sysdeps/x86_64/fpu/fegetenv.c: New file.
2616         * sysdeps/x86_64/fpu/fegetexcept.c: New file.
2617         * sysdeps/x86_64/fpu/fegetround.c: New file.
2618         * sysdeps/x86_64/fpu/feholdexcpt.c: New file.
2619         * sysdeps/x86_64/fpu/fesetenv.c: New file.
2620         * sysdeps/x86_64/fpu/fesetround.c: New file.
2621         * sysdeps/x86_64/fpu/fgetexcptflg.c: New file.
2622         * sysdeps/x86_64/fpu/fraiseexcpt.c: New file.
2623         * sysdeps/x86_64/fpu/fsetexcptflg.c: New file.
2624         * sysdeps/x86_64/fpu/ftestexcept.c: New file.
2625         * sysdeps/x86_64/fpu/libm-test-ulps: New file.
2626         * sysdeps/x86_64/fpu/math_ldbl.h: New file.
2627         * sysdeps/x86_64/fpu/printf_fphex.c: New file.
2628         * sysdeps/x86_64/fpu/s_atanl.c: New file.
2629         * sysdeps/x86_64/fpu/s_cosl.S: New file.
2630         * sysdeps/x86_64/fpu/s_expm1l.S: New file.
2631         * sysdeps/x86_64/fpu/s_fpclassifyl.c: New file.
2632         * sysdeps/x86_64/fpu/s_isinfl.c: New file.
2633         * sysdeps/x86_64/fpu/s_isnanl.c: New file.
2634         * sysdeps/x86_64/fpu/s_log1pl.S: New file.
2635         * sysdeps/x86_64/fpu/s_logbl.c: New file.
2636         * sysdeps/x86_64/fpu/s_nextafterl.c: New file.
2637         * sysdeps/x86_64/fpu/s_nexttoward.c: New file.
2638         * sysdeps/x86_64/fpu/s_nexttowardf.c: New file.
2639         * sysdeps/x86_64/fpu/s_rintl.c: New file.
2640         * sysdeps/x86_64/fpu/s_significandl.c: New file.
2641         * sysdeps/x86_64/fpu/s_sincosl.S: New file.
2642         * sysdeps/x86_64/fpu/s_sinl.S: New file.
2643         * sysdeps/x86_64/fpu/s_tanl.S: New file.
2644         * sysdeps/x86_64/gmp-mparam.h: New file.
2645         * sysdeps/x86_64/hp-timing.c: New file.
2646         * sysdeps/x86_64/hp-timing.h: New file.
2647         * sysdeps/x86_64/htonl.S: New file.
2648         * sysdeps/x86_64/memusage.h: New file.
2649         * sysdeps/x86_64/setjmp.S: New file.
2650         * sysdeps/x86_64/soft-fp/sfp-machine.h: New file.
2651         * sysdeps/x86_64/stackinfo.h: New file.
2652         * sysdeps/x86_64/sysdep.h: New file.
2653         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: New file.
2655         * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
2656         L Moshier.
2658 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2660         * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
2661         Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
2663 2001-09-18  Andreas Schwab  <schwab@suse.de>
2665         * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
2666         list, now that l_scope is a pointer.
2668         * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
2669         scope list.
2671 2001-09-18  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2673         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
2674         (elf_machine_rela_relative): Add a missing declaration.
2676 2001-09-18  Jakub Jelinek  <jakub@redhat.com>
2678         * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: New file.
2679         * sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed: New file.
2680         * sysdeps/unix/sysv/linux/configure.in: Add ia64 and s390
2681         ldd-rewrite scripts.
2683 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2685         * elf/ldd.bash.in: Update copyright message.
2687 2001-09-17  H.J. Lu  <hjl@gnu.org>
2689         * hurd/hurdmalloc.c (bcopy): Removed.
2690         (realloc): Replace bcopy with memcpy.
2691         * hurd/path-lookup.c (file_name_path_scan): Likewise.
2692         * resolv/gethnamaddr.c (map_v4v6_address): Likewise.
2693         * sunrpc/rpcinfo.c (pmapdump): Likewise.
2695         * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
2696         (gethostbyaddr): Likewise.
2697         * sunrpc/rpcinfo.c (get_inet_address): Likewise.
2699 2001-09-18  Ulrich Drepper  <drepper@redhat.com>
2701         * sysdeps/gnu/eval.c: Removed.
2703 2001-09-18  Andreas Jaeger  <aj@suse.de>
2705         * sysdeps/i386/fpu/s_logbl.S: Move to ...
2706         * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
2708         * sysdeps/i386/fpu/s_rintl.S: Move to ...
2709         * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
2711         * sysdeps/i386/fpu/s_significandl.S: Move to ...
2712         * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
2714 2001-09-16  Ulrich Drepper  <drepper@redhat.com>
2716         * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
2717         nrules value.
2719 2001-09-14  H.J. Lu  <hjl@gnu.org>
2721         * sysdeps/mips/fpu/libm-test-ulps: Updated.
2723 2001-09-14  Ulrich Drepper  <drepper@redhat.com>
2725         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
2726         Patch by Florian La Roche <laroche@redhat.com>.
2728         * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
2730         * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
2731         ETHER_CRC_LEN.
2733 2001-09-14  Andreas Schwab  <schwab@suse.de>
2735         * posix/execl.c: Fix last argument of memcpy.  Reported by Brian
2736         Sumner <bls@sgi.com>.
2737         * posix/execlp.c: Likewise.
2739 2001-09-13  Jakub Jelinek  <jakub@redhat.com>
2741         * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
2742         is already found earlier in the search scope.
2744 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
2746         * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
2747         filter.
2749 2001-09-13  Ulrich Drepper  <drepper@redhat.com>
2751         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
2753 2001-09-12  Ulrich Drepper  <drepper@redhat.com>
2755         * config.h.in: Enforce optimization to be used.
2756         * Makeconfig (preprocess-versions): Define ASSEMBLER.
2757         * stdlib/Makefile (isomac-CFLAGS): Define to -O.
2758         * posix/Makefile (annexc-CFLAGS): Define to -O.
2759         * sysdeps/unix/make-syscalls.sh: Define __OPTIMIZE__ in use of asm_CPP.
2761 2001-09-11  Ulrich Drepper  <drepper@redhat.com>
2763         * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
2764         Patch by Stephan Kulow.
2766 2001-09-08  Ben Collins  <bcollins@debian.org>
2768         * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
2769         usage of RESOLVE() (r_type, not reloc->r_type).
2771 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
2773         * elf/dl-object.c: Avoid allocating extra memory block for name.
2774         * elf/dl-close.c (_dl_close): Don't free l_libname if it is not
2775         allocated separately.
2776         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2778 2001-09-08  H.J. Lu  <hjl@gnu.org>
2780         * po/zh_TW.po: Fix a typo.
2782 2001-09-07  Tom Rix  <trix@redhat.com>
2784         * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
2786 2001-08-26  Tom Rix  <trix@redhat.com>
2788         * sysdeps/unix/sysv/aix/Makefile (aix-syscalls.o): More linker
2789         command line options.
2790         * sysdeps/unix/sysv/aix/start.s: New file, rework of start.c
2791         * sysdeps/unix/sysv/aix/start.c: Removed.
2792         * sysdeps/unix/sysv/aix/start-libc.c: New file.
2793         * sysdeps/unix/sysv/aix/init-first.c: New file.
2794         * sysdeps/unix/sysv/aix/fcntl.c: Alias __libc_fcntl to __fcntl.
2796 2001-09-08  Ben Collins  <bcollins@debian.org>
2798         * sysdeps/arm/dl-machine.h: Fix usage of new _dl_signal_error() format.
2799         * sysdeps/generic/dl-machine.h: Likewise.
2800         * sysdeps/hppa/dl-fptr.c: Likewise.
2801         * sysdeps/ia64/dl-fptr.c: Likewise.
2802         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
2803         * sysdeps/mips/dl-machine.h: Likewise.
2804         * sysdeps/mips/mips64/dl-machine.h: Likewise.
2805         * sysdeps/powerpc/dl-machine.c: Likewise.
2807 2001-09-07  Ben Collins  <bcollins@debian.org>
2809         * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
2811         * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
2813 2001-09-08  Ulrich Drepper  <drepper@redhat.com>
2815         * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
2816         dependencies if necessary.
2818         * elf/dl-close.c (_dl_close): If object has no r_list (i.e., wasn't
2819         loaded directly) determine length if l_initfini list by iterating
2820         over its elements.  Minor optimizations.
2821         * elf/dl-deps.c (_dl_map_object_deps): Always add own map to l_initfini
2822         for dependency objects.
2823         If object was already loaded check whether any of the dependencies
2824         is already on the relocation dependency list.  If yes, remove the
2825         latter.  Minor optimizations.
2826         * elf/dl-lookup.c (add_dependency): Add check for self reference of
2827         maps here.  Search l_initfini list only if the object was loaded
2828         directly and not only as a dependency.
2829         (_dl_lookup_symbol): Add relocation dependency also if object
2830         is not in global scope.  Remove test for self-reference here.
2831         (_dl_lookup_versioned_symbol): Likewise.
2832         * elf/dl-object (_dl_new_object): Cleanup.  Initialize dont_free
2833         element of first name record.
2834         * elf/loadtest.c: Add some more test to recognize early if an object
2835         wasn't unloaded.
2836         * elf/Makefile: Add rules to build and run reldep5.
2837         * elf/reldep5.c: New file.
2838         * elf/reldepmod5.c: New file.
2839         * elf/reldepmod6.c: New file.
2841         * elf/reldep2.c: Fix typo.
2843 2001-09-07  Ulrich Drepper  <drepper@redhat.com>
2845         * include/link.h (struct link_map): Add l_scope_mem and l_scope_max
2846         elements.  Change l_scope to be a pointer only.
2847         * elf/dl-object.c (_dl_new_object): Initialize l_scope and l_scope_max.
2848         * elf/dl-open.c (dl_open_worker): If dependency wasn't just opened
2849         here add searchlist of newly open file to the dependency's scope.
2850         * elf/dl-close.c (_dl_close): If dependency is used otherwise remove
2851         only searchlist from its scope.  Free own scope array if necessary.
2852         * elf/Makefile (tests): Add dblload and dblunload now.
2854 2001-09-06  Andreas Jaeger  <aj@suse.de>
2856         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
2857         Stephen L Moshier.
2859 2001-09-05  Ulrich Drepper  <drepper@redhat.com>
2861         * elf/Makefile: Add rules to build new tests.  Don't run them yet since
2862         they both fail.
2863         * elf/dblload.c: New file.
2864         * elf/dblloadmod1.c: New file.
2865         * elf/dblloadmod2.c: New file.
2866         * elf/dblloadmod3.c: New file.
2867         * elf/dblunload.c: New file.
2869 2001-09-04  Richard Henderson  <rth@redhat.com>
2871         * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
2872         (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
2874 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
2876         Correct very misleading message for error in failed runtime relocation.
2877         * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
2878         place of the error.
2879         (_dl_signal_cerror): Likewise.
2880         * sysdeps/generic/ldsodefs.h: Adjust prototypes.
2881         * elf/dl-close.c: Likewise.
2882         * elf/dl-deps.c: Likewise.
2883         * elf/dl-load.c: Likewise.
2884         * elf/dl-lookup.c: Likewise.
2885         * elf/dl-open.c: Likewise.
2886         * elf/dl-reloc.c: Likewise.
2887         * elf/dl-sym.c: Likewise.
2888         * elf/dl-version.c: Likewise.
2889         * sysdeps/generic/dl-sysdep.c: Likewise.
2891 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
2893         * iconv/strtab.c (strtabinit): Initialize null Strent.
2894         (newstring): Move len == 0 handling...
2895         (strtabadd): ...here.
2896         If len == 1, return null Strent.
2897         When inserting a suffix of an existing string, check if
2898         it is not equal to some suffix already recorded.
2899         Copy left and right members over if adding longer string.
2901 2001-09-04  Jakub Jelinek  <jakub@redhat.com>
2903         * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
2905         * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
2906         (__syscall_gethostname): Add prototype.
2908 2001-09-04  Ulrich Drepper  <drepper@redhat.com>
2910         * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
2912 2001-09-02  Ulrich Drepper  <drepper@redhat.com>
2914         * elf/rtld.c (dl_main): Increment l_opencount for main binary.
2916 2001-08-27  Roland McGrath  <roland@frob.com>
2918         * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
2919         short, copy that much into NAME anyway before returning error.
2921 2001-09-01  Richard Henderson  <rth@redhat.com>
2923         * sysdeps/alpha/elf/Dist: Remove file.
2924         * sysdeps/alpha/elf/Makefile: Remove file.
2925         * sysdeps/alpha/elf/crtbegin.S: Remove file.
2926         * sysdeps/alpha/elf/crtend.S: Remove file.
2927         * sysdeps/alpha/elf/initfini.c: New file.
2929 2001-09-01  Mark Kettenis  <kettenis@gnu.org>
2931         * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
2932         * iconv/tst-iconv3.c: Likewise.
2934 2001-09-01  Jakub Jelinek  <jakub@redhat.com>
2936         * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
2938 2001-09-01  Ulrich Drepper  <drepper@redhat.com>
2940         * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
2941         export it.
2942         * iconv/Versions (libc) [GLIBC_2.2.5]: Export __gconv_cache.
2943         * iconv/iconv_prog.c (insert_cache): New function.
2944         (print_known_names): If cache is used call insert_cache to use the
2945         information from the cache [PR libc/2509].
2947 2001-08-31  Ulrich Drepper  <drepper@redhat.com>
2949         * time/strptime.c (strptime_internal): Recognize 'l' format and
2950         handle it like 'I' for symmetry with strftime.
2952 2001-08-31  Richard Henderson  <rth@redhat.com>
2954         * elf/dl-support.c (_dl_cpuclock_offset): Protect with NONAVAIL.
2955         (HP_TIMING_AVAIL): Set to HP_SMALL_TIMING_AVAIL if present.
2956         * elf/rtld.c (HP_TIMING_AVAIL): Likewise.
2957         (print_statistics): Make scalar unsigned long long.
2958         * sysdeps/alpha/hp-timing.h: New file.
2960 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
2962         * stdio-common/perror.c (perror): Save errno early, pass it
2963         down to perror_internal.
2964         (perror_internal): Add errnum argument.
2966 2001-08-31  Jakub Jelinek  <jakub@redhat.com>
2968         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
2969         Don't add old memory content for R_ALPHA_REFQUAD.
2971 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
2973         * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
2974         memory correctly.
2976         * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
2977         instead of open, __close instead of close, __getpagesize instead
2978         of getpagesize.
2980         * string/argz-stringify.c (__argz_stringify): Use __strnlen
2981         instead of strnlen.
2982         * include/string.h (strndupa): Redefine here to use __strnlen
2983         instead of strnlen.
2984         * string/strndup.c (__strndup): Use __strnlen not strnlen.
2986         * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
2987         connected).
2989 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
2991         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Don't handle
2992         R_ALPHA_RELATIVE if RTLD_BOOTSTRAP and HAVE_Z_COMBRELOC.  Only check
2993         for rtld map if neither RTLD_BOOTSTRAP nor HAVE_Z_COMBRELOC is defined.
2994         * sysdeps/i386/dl-machine.h (elf_machine_rel): Similarly.
2995         * sysdeps/ia64/dl-machine.h (elf_machine_rel): Similarly.
2996         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rel): Similarly.
2997         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rel): Similarly.
2999 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
3001         * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
3003 2001-08-30  Andreas Jaeger  <aj@suse.de>
3005         * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
3006         contributed Stephen L Moshier.
3008 2001-08-30  Jakub Jelinek  <jakub@redhat.com>
3010         * sunrpc/etc.rpc (sgi_fam): Add.
3012 2001-08-30  Ulrich Drepper  <drepper@redhat.com>
3014         * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
3016 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
3018         * nis/nis_findserv.c (__nis_findfastest): Don't fail if reply received
3019         first is from a previous call.
3020         Patch by Alexander Belopolsky <alexb@rentec.com> for [PR libc/3670].
3022 2001-08-29  Andreas Schwab  <schwab@suse.de>
3024         * sysdeps/ia64/fpu/libm-test-ulps: Updated.
3026 2001-08-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3028         * config.make.in (INSTALL_SCRIPT): Define.
3029         * Makeconfig (INSTALL_SCRIPT): Define.
3030         * Makerules (do-install-script): New macro to install scripts using
3031         INSTALL_SCRIPT.
3032         (install-bin-script): New rule to install scripts with
3033         do-install-script.
3034         (install-bin-script-nosubdir): New rule.
3035         (install-no-libc.a-nosubdir): Add install-bin-script-nosubdir.
3036         (distinfo-vars): Add $(install-bin-script).
3037         * Rules (others): Likewise.
3038         * Makefile (glibcbug): Install with install-bin-script.
3039         * debug/Makefile (xtrace): Likewise.
3040         (catchsegv): Likewise.
3041         * elf/Makefile (ldd): Likewise.
3042         * malloc/Makefile (mtrace): Likewise.
3043         * timezone/Makefile (tzselect): Likewise.
3045 2001-08-29  H.J. Lu  <hjl@gnu.org>
3047         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Pass
3048         ELF_RTYPE_CLASS_PLT, instead of R_MIPS_REL32, to
3049         _dl_lookup_versioned_symbol () and _dl_lookup_symbol ().
3051 2001-08-29  Andreas Schwab  <schwab@suse.de>
3053         * sysdeps/m68k/fpu/libm-test-ulps: Updated.
3055 2001-08-28  H.J. Lu  <hjl@gnu.org>
3057         * Makeconfig (combreloc-LDFLAGS): New variable.
3058         Add it to LDFLAGS.so, LDFLAGS-rtld, and +link.
3059         * config.make.in (have-z-combreloc): New variable.
3060         * configure.in: Substitute libc_cv_z_combreloc.
3062 2001-08-29  Ulrich Drepper  <drepper@redhat.com>
3064         * po/sv.po: Update from translation team.
3065         * po/fr.po: Likewise.
3066         * po/da.po: Likewise.
3068 2001-08-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3070         * Makerules: Fix a typo: MD% -> MD5.
3072 2001-08-28  Ulrich Drepper  <drepper@redhat.com>
3074         * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
3075         Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
3077 2001-08-28  Andreas Jaeger  <aj@suse.de>
3079         * manual/libc-texinfo.sh: Add entry about free manuals.
3081         * manual/contrib.texi (Contributors): Fix cross reference.
3083         * manual/libc.texinfo (Copying): Include freemanuals.
3085         * manual/Makefile (appendices): Add freemanuals.
3087         * manual/freemanuals.texi: New file.
3088         Patch by Brian Youmans <3diff@gnu.org>.
3090         * manual/libm-err-tab.pl: Pretty print more platforms, print a
3091         smaller table.
3093         * manual/math.texi (Errors in Math Functions): Fix grammar, start
3094         table on separate page.
3095         Patch by Brian Youmans <3diff@gnu.org>.
3097 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
3099         * misc/syslog.c (vsyslog): Try a bit harder to use syslogd.  If
3100         the connection went down after we first used it try to connect
3101         again and resend the message before printing to the console.
3102         Reported by Coserea Gh. Tudor <tudore@tudore.gecadsoftware.com>.
3104 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
3106         * string/tst-strlen.c (main): Test strnlen (, -1) too.
3107         * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
3108         bit set.
3110 2001-08-27  Ulrich Drepper  <drepper@redhat.com>
3112         * iconv/strtab.c (searchstring): Use correct length for comparison.
3113         (strtabadd): Account total size correct if new string has old string as
3114         substring.
3116 2001-08-27  Jakub Jelinek  <jakub@redhat.com>
3118         * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
3120 2001-08-27  Andreas Jaeger  <aj@suse.de>
3122         * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
3124         * math/libm-test.inc (j0_test): Add extra tests.
3125         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Use |x|,
3126         not x, in Hankel approximation.
3127         Patches by Stephen L Moshier.
3129 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
3131         * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
3132         link_map.
3134         * configure.in: Fix test for .rela.dyn section.
3136         * elf/dl-runtime.c: Update calls to _dl_lookup_*.
3138 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
3140         * elf/dl-reloc.c (RESOLVE_MAP, RESOLVE): Use elf_machine_type_class
3141         instead of elf_machine_lookup_noexec_p and elf_machine_lookup_noplt_p.
3142         Pass type_class to _dl_lookup_*.
3143         * elf/dl-lookup.c (_dl_lookup_symbol): Take type_class parameter now.
3144         Pass around just type_class instead of noexec, noplt pair.
3145         (_dl_lookup_versioned_symbol): Likewise.
3146         (_dl_lookup_symbol_skip): Pass around just type_class instead of
3147         noexec, noplt pair.
3148         (_dl_lookup_versioned_symbol_skip): Likewise.
3149         (_dl_do_lookup, _dl_do_lookup_versioned): Likewise.
3150         * elf/do-lookup.h (do_lookup): Likewise.
3151         * include/link.h (struct link_map): Replace noexec and noplt fields
3152         in l_lookup_cache with type_class field.
3153         * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_PLT,
3154         ELF_RTYPE_CLASS_COPY): Define.
3155         Adjust prototypes for _dl_lookup_symbol and
3156         _dl_lookup_versioned_symbol.
3157         * sysdeps/alpha/dl-machine.h (elf_machine_lookup_noplt_p,
3158         elf_machine_lookup_noexec_p): Remove.
3159         (elf_machine_type_class): Define.
3160         * sysdeps/arm/dl-machine.h: Likewise.
3161         * sysdeps/hppa/dl-machine.h: Likewise.
3162         * sysdeps/cris/dl-machine.h: Likewise.
3163         * sysdeps/i386/dl-machine.h: Likewise.
3164         * sysdeps/ia64/dl-machine.h: Likewise.
3165         * sysdeps/m68k/dl-machine.h: Likewise.
3166         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3167         * sysdeps/mips/dl-machine.h: Likewise.
3168         * sysdeps/powerpc/dl-machine.h: Likewise.
3169         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3170         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3171         * sysdeps/sh/dl-machine.h: Likewise.
3172         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3173         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3175 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
3177         * manual/message.texi (Advanced gettext functions): Change
3178         description of plural forms for Slovak.
3179         Reported by Marcel Telka <marcel@telka.sk>.
3181         * manuaL/time.texi (Low-Level Time String Parsing): Fix description of
3182         %z.  Reported by C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>.
3184 2001-08-26  Jakub Jelinek  <jakub@redhat.com>
3186         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
3187         typo.  Patch by Florian La Roche <laroche@redhat.com>.
3189 2001-08-26  Ulrich Drepper  <drepper@redhat.com>
3191         * include/link.h (struct link_map): Add l_lookup_cache element.
3192         * elf/dl-reloc.c (RESOLVE): Add symbol caching here.
3193         (RESOLVE_MAP): Likewise.
3194         (_dl_relocate_object): Remove cache initialization.
3195         * elf/dl-lookup.c: Rip out cache handling code.
3196         * sysdeps/generic/ldsodefs.h: Remove lookup_cache struct and variable
3197         declarations.
3199         * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
3200         remove some __builtin_expect.
3201         (_dl_lookup_versioned_symbol): Likewise.
3203         * config.h.in: Add HAVE_Z_COMBRELOC.
3204         * configure.in: Add test for -z combreloc.
3206         * sysdeps/i386/dl-machine.h (elf_machine_rel): Minor cleanups and
3207         optimizations.  Use HAVE_Z_COMBRELOC to avoid generaton of
3208         R_386_RELATIVE handling for ld.so startup.  Reduce RTLD_BOOTSTRAP
3209         case to almost no code.
3211 2001-08-25  Ulrich Drepper  <drepper@redhat.com>
3213         * po/tr.po: Update from translation team.
3215 2001-08-24  Andreas Jaeger  <aj@suse.de>
3217         * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
3218         make clean works.
3220 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3222         * elf/rtld.c (print_statistics): Printf % after percent values.
3223         * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
3225         * elf/dl-lookup.c (_dl_lookup_symbol): If we use the cache we
3226         don't have to compute the hash value and initialize current_value.
3227         Move reference_name variable to where it is needed.
3228         (_dl_lookup_versioned_symbol): Likewise.
3230 2001-08-24  Roland McGrath  <roland@frob.com>
3232         * string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
3233         Just test that strerror returns non-null for a few errno codes.
3235 2001-08-23  Roland McGrath  <roland@frob.com>
3237         * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
3238         _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
3240         * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
3242         * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
3243         __mach_reply_port.
3245 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3247         * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
3248         returns NULL.
3250         * elf/do-rel.h (elf_dynamic_do_rel): Fix problem with ld.so
3251         startup.  Explicitly remove lazy part for RTLD_BOOTSTRAP since gcc
3252         doesn't do it.
3253         * elf/rtld.c: Include <sys/param.h>.
3254         * elf/dl-reloc.c: Likewise.
3256 2001-08-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3258         * sysdeps/unix/sysv/linux/mips/configure.in: Define AC_SUBST to
3259         empty to prevent junk from being generated.
3260         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
3262 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
3264         * elf/do-rel.h (elf_dynamic_do_rel): If l_addr is 0, skip relative
3265         records.  Rename endrel to relative, initialize it to r, and use it
3266         in elf_machine_rel_relative calls.  Point r after relative relocs.
3268 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3270         * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
3271         of R_386_NONE.
3273 2001-08-24  Jakub Jelinek  <jakub@redhat.com>
3275         * elf/do-rel.h (elf_machine_rel_relative): Define for rela if
3276         necessary.  Undefine newly defined macros at the end.
3277         * sysdeps/hppa/dl-machine.h (elf_machine_rela_relative):
3278         Rename from elf_machine_rel_relative.
3279         * sysdeps/cris/dl-machine.h (elf_machine_rela_relative): Likewise.
3280         * sysdeps/m68k/dl-machine.h (elf_machine_rela_relative): Likewise.
3281         * sysdeps/powerpc/dl-machine.h (elf_machine_rela_relative): Likewise.
3282         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela_relative):
3283         Likewise.
3284         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
3285         Likewise.
3286         * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
3287         Fix argument types.
3288         * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
3289         Fix argument types.
3290         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela_relative):
3291         Likewise.  Fix argument types.
3292         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela_relative):
3293         Likewise.  Fix argument types.
3294         * sysdeps/sh/dl-machine.h (elf_machine_rela_relative): Likewise.
3295         Fix argument types.
3296         * sysdeps/mips/dl-machine.h (elf_machine_rel_relative): Use
3297         ElfW(Rel) in argument.
3298         * sysdeps/mips/mips64/dl-machine.h (elf_machine_rel_relative): New
3299         function.
3301 2001-08-24  Alexandre Oliva  <aoliva@redhat.com>
3303         * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
3305 2001-08-24  Andreas Jaeger  <aj@suse.de>
3307         * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
3308         Stephen L Moshier <moshier@mediaone.net>.
3310 2001-08-24  Ulrich Drepper  <drepper@redhat.com>
3312         * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
3313         first if RELCOUNT is set.
3315         * elf/do-rel.h (elf_dynamic_do_rel): If not relocating lazily, don't
3316         call elf_machine_rel for the last DT_RELCOUNT relocations but instead
3317         elf_machine_rel_relative.
3318         * sysdeps/alpha/dl-machine.h: Define elf_machine_rel_relative.
3319         Minor optimizations.
3320         * sysdeps/arm/dl-machine.h: Likewise.
3321         * sysdeps/cris/dl-machine.h: Likewise.
3322         * sysdeps/hppa/dl-machine.h: Likewise.
3323         * sysdeps/i386/dl-machine.h: Likewise.
3324         * sysdeps/ia64/dl-machine.h: Likewise.
3325         * sysdeps/m68k/dl-machine.h: Likewise.
3326         * sysdeps/mips/dl-machine.h: Likewise.
3327         * sysdeps/powerpc/dl-machine.h: Likewise.
3328         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
3329         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3330         * sysdeps/sh/dl-machine.h: Likewise.
3331         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3332         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3334 2001-08-23  Roland McGrath  <roland@frob.com>
3336         * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
3338         * sysdeps/mach/hurd/bits/libc-lock.h: New file, initially copied from
3339         sysdeps/mach version.  Implement counting ("recursive") mutexes
3340         on top of cthreads mutexes.
3341         * sysdeps/mach/hurd/bits/stdio-lock.h: File removed; generic now works.
3343         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Define to
3344         _LIBC_LOCK_RECURSIVE_INITIALIZER if defined, else do an #error.
3345         (__libc_cleanup_region_start, __libc_cleanup_region_end,
3346         __libc_clean_end): Define these to call the cleanup function after
3347         normal exit when they're supposed to.
3349         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start):
3350         Take new first arg DOIT, a boolean saying whether to really install
3351         any cleanup handler.
3352         (__libc_cleanup_region_end): Do nothing if start's DOIT arg was zero.
3353         (__libc_cleanup_end): Likewise.
3354         * sysdeps/generic/bits/libc-lock.h: Same changes.
3355         * stdio-common/vfscanf.c (LOCK_STREAM): Pass new arg.
3356         * stdio-common/vfprintf.c (buffered_vfprintf, vfprintf): Likewise.
3357         * sysdeps/mach/hurd/bits/stdio-lock.h (_IO_cleanup_region_start):
3358         Likewise.
3359         * misc/syslog.c (vsyslog, openlog, closelog): Likewise.
3360         * sysdeps/generic/bits/stdio-lock.h
3361         (_IO_cleanup_region_start, _IO_cleanup_region_start_noarg): Likewise.
3363 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3365         * elf/ldconfig.c (search_dir): Remove stale symlinks.
3367 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3369         * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
3370         (_dl_lookup_symbol): Lookup relocations in cache and store successfull
3371         lookups in cache.
3372         (_dl_lookup_versioned_symbol): Likewise.
3373         * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
3374         relocation lookup.
3375         * elf/rtld.c (print_statistics): Output _dl_num_cache_relocations.
3376         * sysdeps/generic/ldsodefs.h (struct lookup_cache): New definition.
3377         (lookup_cache, lookup_cache_versioned): Add declarations.
3379 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
3381         * stdlib/tst-random.c (main): Swap parameters in fail call.
3382         Patch by Pete Bevin <pete@petebevin.com>.
3384 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
3386         * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
3388 2001-08-23  Ulrich Drepper  <drepper@redhat.com>
3390         * malloc/obstack.c: Indent preprocessor directives.
3391         Patch by Jim Meyering <meyering@ascend.com>.
3393         * po/ja.po: Update from translation team.
3395 2001-08-23  Roland McGrath  <roland@frob.com>
3397         * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
3399         * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
3400         Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
3402 2001-08-22  Roland McGrath  <roland@frob.com>
3404         * sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
3405         __libc_lock_define_recursive.
3406         * elf/dl-open.c: Don't declare it here any more.
3407         * elf/dl-close.c: Likewise.
3408         * elf/dl-lookup.c: Likewise.
3409         * elf/dl-iteratephdr.c: Likewise.
3410         * elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
3411         __libc_lock_unlock_recursive.
3412         * elf/dl-close.c (_dl_close): Likewise
3413         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
3414         * elf/dl-open.c (_dl_open): Likewise
3416         * sysdeps/generic/bits/libc-lock.h
3417         (__libc_lock_define_recursive): New macro.
3418         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
3419         (_IO_lock_lock): Use __libc_lock_lock_recursive.
3420         (_IO_lock_unlock): Use __libc_lock_unlock_recursive.
3422         * conform/conformtest.pl (checknamespace): Sort the output list.
3424         * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
3425         (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
3426         definitions conditional on [__USE_XOPEN].
3428         * sysdeps/mach/hurd/bits/fcntl.h (O_ASYNC, O_FSYNC, O_SYNC): Define
3429         these unconditionally, not only use [__USE_BSD], so as to match
3430         the sysdeps/unix/sysv/linux files.
3432 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3434         * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
3435         avoid warnings.
3437         * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
3438         DL_LOOKUP_ADDRESS.
3440 2001-08-22  Roland McGrath  <roland@frob.com>
3442         * sysdeps/generic/bits/sigaction.h (struct sigaction): Fix up
3443         conditionalization of sa_handler/sa_sigaction member types to
3444         match the sysdeps/unix/sysv/linux file.
3446 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3448         * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
3449         symbol sizes a bit better.
3451         * sysdeps/ia64/strncpy.S: Complete rewrite.
3452         Contributed by Jakub Jelinek <jakub@redhat.com>.
3454         * string/stratcliff.c (main): Add strncpy test.
3456 2001-08-22  Roland McGrath  <roland@frob.com>
3458         * sysdeps/generic/dl-environ.c: Include <stdlib.h> and <unistd.h>,
3459         and don't declare unsetenv or _environ directly.
3460         (unsetenv): Return int, not void.  Use __environ instead of _environ.
3462 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
3464         * sysdeps/unix/bsd/bsd4.4/Makefile: New file.
3465         * sysdeps/unix/bsd/bsd4.4/Versions: New file.
3466         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: New file.
3467         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Correct
3468         test for cmsg struct size.
3470 2001-04-23  Paul Eggert  <eggert@twinsun.com>
3472         * posix/getopt.h (getopt_long, getopt_long_only, _getopt_internal):
3473         Rename __argc to ___argc in prototypes to avoid compatibility
3474         problems with systems that reserve the identifier "__argc".
3475         Similarly for __argv.
3477 2001-08-21  Roland McGrath  <roland@frob.com>
3479         * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
3481         * mach/Makefile (tests): Removed.
3482         * mach/hello.c: File removed.
3484 2001-08-22  Ulrich Drepper  <drepper@redhat.com>
3486         * po/sv.po: Update from translation team.
3488         * stdio-common/vfscanf.c: Fix handling of %l[].
3489         Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
3491         * libio/Makefile (tests): Add tst-sscanf.
3492         * libio/tst-sscanf.c: New file.
3494         * elf/dl-addr.c (_dl_addr): Fix tests to determine dli_sname.
3495         * malloc/mtrace.c (tr_where): dli_sname always points to a
3496         non-empty string if != NULL.
3497         Reported by Tim Janik <timj@gtk.org>.
3499 2001-08-22  Jakub Jelinek  <jakub@redhat.com>
3501         * sunrpc/xdr_rec.c (xdrrec_create): Fix buf sizes before allocating
3502         buf.  Free resources on failure.
3503         * sunrpc/svc_unix.c (svcunix_create): Free resources on failure.
3504         (makefd_xprt): Likewise.
3505         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
3506         * sunrpc/svc_tcp.c (svctcp_create, makefd_xprt): Likewise.
3507         * sunrpc/auth_unix.c (authunix_create): Likewise.
3509 2001-08-21  Jakub Jelinek  <jakub@redhat.com>
3511         * string/strnlen.c: Remove.
3512         * sysdeps/generic/strnlen.c: New file.
3513         * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
3515 2001-08-21  Roland McGrath  <roland@frob.com>
3517         * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
3518         as a macro, not an extern inline function.
3520         * hurd/Versions (GLIBC_2.2.5): New set, define __hurd_fail here.
3521         * Versions.def (libc): Add GLIBC_2.2.5 set.
3522         * hurd/hurd.h (_HURD_H_EXTERN_INLINE): New macro.
3523         (__hurd_fail): Use that instead of _EXTERN_INLINE in decl.
3525 2001-08-20  Roland McGrath  <roland@frob.com>
3527         * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
3528         (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
3530 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
3532         * string/bits/string2.h: Remove strnlen optimization here.
3533         * sysdeps/i386/i486/bits/string.h: Add it here.
3535 2001-08-21  Wolfram Gloger  <wg@malloc.de>
3537         * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
3539 2001-08-21  Ulrich Drepper  <drepper@redhat.com>
3541         * po/gl.po: Update from translation team.
3543 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3545         * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
3546         * misc/err.c (convert_and_print): Likewise.
3548         * malloc/obstack.c (print_and_abort): Use fprintf instead of two
3549         function calls.
3551 2001-08-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3553         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Revert the
3554         change of the gregset_t type.
3555         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
3557 2001-08-20  kaz Kojima  <kkojima@rr.iij4u.or.jp>
3559         * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
3561 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3563         * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
3565         * string/strnlen.c: Fix the implementation.  We cannot use memchr.
3567 2001-08-18  Mark Kettenis  <kettenis@gnu.org>
3569         * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
3570         before calling the cthreads initialization code.
3572 2001-08-20  Ulrich Drepper  <drepper@redhat.com>
3574         * argp/argp-help.c: Fix two problems introduced in last change.
3576         * include/dirent.h: Include <dirstream.h> first.
3578 2001-08-19  Ulrich Drepper  <drepper@redhat.com>
3580         * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
3582         * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy.
3583         * sunrpc/xdr_rec.c: Likewise.
3584         * sunrpc/xdr_mem.c: Likewise.
3585         * sunrpc/svc_authux.c (_svcauth_unix): Likewise.
3586         * sunrpc/rpc_cmsg.c: Likewise.
3587         * sunrpc/getrpcport.c (getrpcport): Likewise.
3588         * sunrpc/clnt_simp.c (callrpc): Likewise.
3589         * sunrpc/clnt_gen.c (clnt_create): Likewise.
3590         * string/envz.c: Likewise.
3592         * po/ko.po: Update from translation team.
3594         * argp/argp-help.c: Handle wide oriented stderr stream.
3596 2001-08-18  Ulrich Drepper  <drepper@redhat.com>
3598         * sysdeps/generic/strtol.c: Little optimizations.  Add some
3599         __builtin_expect.
3601         * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
3603         * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
3604         * wcsmbs/wcwidth.c (wcwdith): Likewise.
3605         * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
3607         * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
3609         * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
3611         * time/time.h (struct timespec): Use __time_t for tv_sec element.
3613         * sysdeps/generic/inttypes.h: Define __wchar_t.  Use it instead of
3614         wchar_t for function declarations and defintions.
3616         * misc/sys/select.h: Define __need_time_t before including <time.h>.
3617         Define suseconds_t if it hasn't happened yet.
3619         * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
3621         * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
3623         * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
3624         <stddef.h>.
3626         * conform/data/stddef.h-data: Remove wint_t.
3628         * conform/conformtest.pl: Change namespace test to take #undef
3629         lines into account.
3631         * conform/data/netinet/in.h-data: Fix typo in allow-header line.
3633         * conform/data/sys/socket.h-data: Add sockatmark.
3635 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3637         * io/fts.c: Update from recent BSD source.
3639 2001-08-17  Roland McGrath  <roland@frob.com>
3641         * stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide.
3642         * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]:
3643         Likewise.
3645 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3647         * locale/duplocale.c (__duplocale): Also initialize the special
3648         __ctype_* elements.
3650         * conform/data/netdb.h-data: Adjust gai_strerror return type.
3652 2001-08-17  Andreas Jaeger  <aj@suse.de>
3654         * misc/getpass.c: Include wchar.h for prototypes.
3655         * malloc/obstack.c: Likewise.
3657 2001-08-17  Ulrich Drepper  <drepper@redhat.com>
3659         * sunrpc/svc_simple.c (universal): Use __write instead of write.
3661         * wcsmbs/wcscoll.c: Also define __wcscoll.
3662         * include/wchar.h: Declare __wcscoll.
3664         * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
3665         * libio/vwprintf.c: Likewise.
3666         * libio/wprintf.c: Likewise.
3668         * iconv/gconv_cache.c: Use __munmap instead of munmap.
3670 2001-08-16  Ulrich Drepper  <drepper@redhat.com>
3672         * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
3673         instead of mbrtowc.
3674         [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
3675         wcslen, and __wcscoll instead of wcscoll.
3677         * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
3679         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
3680         __getuid instead of getuid.
3682         * stdio-common/perror.c (perror): Use __close instead of close.
3683         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
3684         * libio/freopen.c (freopen): Likewise.
3685         * libio/freopen64.c (freopen64): Likewise.
3687         * libio/tst-ungetwc2.c (main): Define str const.
3689         * include/wchar.h: Add prototypes for __fwprintf and __vfwprintf.
3690         * libio/fwprintf.c: Also define __fwprintf.
3691         * stdio-common/vfprintf.c [COMPILE_WPRINTF]: Also define __vfwprintf.
3692         * argp/argp-fmtstream.c: Handle wide oriented stderr stream.
3693         * assert/assert-perr.c: Likewise.
3694         * assert/assert.c: Likewise.
3695         * gmon/gmon.c: Likewise.
3696         * inet/rcmd.c: Likewise.
3697         * malloc/obstack.c: Likewise.
3698         * misc/err.c: Likewise.
3699         * misc/error.c: Likewise.
3700         * misc/getpass.c: Likewise.
3701         * posix/getopt.c: Likewise.
3702         * resolv/res_hconf.c: Likewise.
3703         * stdio-common/perror.c: Likewise.
3704         * stdio-common/psignal.c: Likewise.
3705         * stdlib/fmtmsg.c: Likewise.
3706         * sunrpc/auth_unix.c: Likewise.
3707         * sunrpc/clnt_perr.c: Likewise.
3708         * sunrpc/clnt_tcp.c: Likewise.
3709         * sunrpc/clnt_udp.c: Likewise.
3710         * sunrpc/clnt_unix.c: Likewise.
3711         * sunrpc/svc_simple.c: Likewise.
3712         * sunrpc/svc_tcp.c: Likewise.
3713         * sunrpc/svc_udp.c: Likewise.
3714         * sunrpc/svc_unix.c: Likewise.
3715         * sunrpc/xdr.c: Likewise.
3716         * sunrpc/xdr_array.c: Likewise.
3717         * sunrpc/xdr_rec.c: Likewise.
3718         * sunrpc/xdr_ref.c: Likewise.
3719         * sysdeps/generic/wordexp.c: Likewise.
3721         * po/it.po: Update from translation team.
3723         * misc/err.c: Handle wide oriented stderr stream.
3725 2001-08-14  Tom Rix  <trix@redhat.com>
3727         * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
3728         * iconv/Makefile: Fix gconv_cache.c CFLAGS.
3730 2001-08-13  Tom Rix  <trix@redhat.com>
3732         * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols.
3733         * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t
3734         and __intptr_t.
3736 2001-08-15  Martin Schwidefsky  <schwidefsky@de.ibm.com>
3738         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext):
3739         Store the access registers to the ucontext structure.
3740         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext):
3741         Likewise.
3743         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext):
3744         Load the access registers from the ucontext structure.
3745         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext):
3746         Likewise.
3748         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx
3749         offsets to the new ucontext layout.
3750         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise.
3752         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout
3753         of the ucontext structure.
3754         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
3756 2001-08-15  Ulrich Drepper  <drepper@redhat.com>
3758         * misc/error.c (error): Handle wide oriented stderr stream correctly.
3759         (error_at_line): Likewise.
3761         * stdio-common/perror.c (perror): Implement according to standard.
3762         The stream orientation must not be changed if the stream was not
3763         oriented before the call.
3764         * stdio-common/Makefile (tests): Add tst-perror.
3765         * stdio-common/tst-perror.c: New file.
3768 See ChangeLog.12 for earlier changes.