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