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