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