1 2002-01-31 Ulrich Drepper <drepper@redhat.com>
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.
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.
47 2002-01-31 Jakub Jelinek <jakub@redhat.com.
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.
80 2002-01-31 Ulrich Drepper <drepper@redhat.com>
82 * sysdeps/posix/readv.c: Don't use alloca if the memory requirements
85 2002-01-31 Andreas Schwab <schwab@suse.de>
87 * sysdeps/posix/readv.c: Check for ssize_t overflow.
89 2002-01-31 Andreas Schwab <schwab@suse.de>
91 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Fix leftover
92 reference to _dl_pagesize.
94 2002-01-30 Ulrich Drepper <drepper@redhat.com>
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
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.
142 2002-01-29 Ulrich Drepper <drepper@redhat.com>
144 * sysdeps/ia64/dl-lookupcfg.h (DL_AUTO_FUNCTION_ADDRESS): Add cast
146 (DL_STATIC_FUNCTION_ADDRESS): Likewise.
148 * elf/dl-lookup.c: Only define or handle _dl_num_relocations for the
150 * elf/dl-reloc.c: Likewise for _dl_num_cache_relocations.
152 * elf/rtld.c (_dl_start): Use __builtin_memset if available.
154 2002-01-29 Ben Collins <bcollins@debian.org>
156 * string/bits/string2.h (__mempcpy): Protect size arg for
157 addition when using __builtin_memcpy.
159 2002-01-29 Ulrich Drepper <drepper@redhat.com>
161 * stdlib/Makefile (tests): Add tst-qsort.
162 * stdlib/tst-qsort.c: New file. Written by Paul Eggert.
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>.
168 * misc/hsearch_r.c (hsearch_r): Don't insert anything if entry is
170 * misc/Makefile (tests): Add tst-hsearch.
171 * misc/tst-hsearch.c: New file.
173 2002-01-18 Wolfram Gloger <wg@malloc.de>
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.
184 2002-01-28 Ulrich Drepper <drepper@redhat.com>
186 * stdlib/msort.c: Remove last patch. The optimization violates the
187 same rule which qsort.c had problems with.
189 2002-01-27 Paul Eggert <eggert@twinsun.com>
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].
196 2002-01-28 Ulrich Drepper <drepper@redhat.com>
198 * elf/dl-load.c (_dl_map_object): Remove incorrect optimization
199 for SHARED code. Reported by Ben Collins <bcollins@debian.org>.
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.
209 2002-01-23 Richard Henderson <rth@redhat.com>
211 * sysdeps/alpha/Makefile (pic-ccflag): New variable.
213 2002-01-28 Ulrich Drepper <drepper@redhat.com>
215 * string/strxfrm.c: Allocate one more byte for rulearr and clear
216 this element [PR libc/2855].
218 * string/strcoll.c: Handle zero-length arguments specially
221 2002-01-23 Jakub Jelinek <jakub@redhat.com>
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.
231 2002-01-23 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
233 * sysdeps/unix/sysv/linux/configure.in (libc_cv_gcc_unwind_find_fde):
236 2001-01-22 Paul Eggert <eggert@twinsun.com>
238 * manual/llio.texi (Linked Channels, Cleaning Streams):
239 Make it clearer that a just-opened input stream might need cleaning.
241 2002-01-21 H.J. Lu <hjl@gnu.org>
243 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
244 Don't use label at end of compound statement.
246 2002-01-28 Stephen L Moshier <moshier@mediaone.net>
248 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
249 Remove test for negative integer arg; sin_pi does it correctly.
251 2002-01-20 Ulrich Drepper <drepper@redhat.com>
253 * nscd/Makefile (distribute): Filter out xmalloc.c.
255 2002-01-19 Ulrich Drepper <drepper@redhat.com>
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
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.
270 2002-01-18 Ulrich Drepper <drepper@redhat.com>
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.
280 * iconvdata/tcvn5712-1.c: Minor cleanups.
282 2002-01-18 Andreas Schwab <schwab@suse.de>
284 * sysdeps/unix/sysv/linux/configure.in
285 (libc_cv_gcc_unwind_find_fde): Set for m68k, too.
287 2002-01-16 Roger Sayle <roger@eyesopen.com>
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.
294 2002-01-17 Ulrich Drepper <drepper@redhat.com>
296 * manual/syslog.texi (openlog): Describe possible problems with
298 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
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
305 * nscd/Makefile (nscd-modules): Add xmalloc for nscd.
306 Patch by Christopher Allen Wing <wingc@engin.umich.edu>.
308 2002-01-17 H.J. Lu <hjl@gnu.org>
310 * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Remove
313 2002-01-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
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.
319 2002-01-17 Andreas Jaeger <aj@suse.de>
321 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: GCC 3.1 has
322 __uint128_t build-in.
324 * sysdeps/unix/sysv/linux/configure.in: Fix check for S390 and
325 PowerPC, sync with 2.2 branch.
327 2002-01-16 Ulrich Drepper <drepper@redhat.com>
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.
346 2002-01-16 Andreas Schwab <schwab@suse.de>
348 * sysdeps/unix/sysv/linux/ia64/ldd-rewrite.sed: Fix regexp to
349 reliably remove "-ia64" from rtld name.
351 2002-01-16 Ulrich Drepper <drepper@redhat.com>
353 * iconvdata/gb18030.c: Bug fixes and support for more characters.
354 Patch by Yu Shao <yshao@redhat.com>.
356 2002-01-16 Martin Schwidefsky <schwidefsky@de.ibm.com>
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.
362 2002-01-14 Martin Schwidefsky <schwidefsky@de.ibm.com>
364 * sysdeps/s390/fpu/libm-test-ulps: Update.
366 2002-01-11 Ulrich Drepper <drepper@redhat.com>
368 * elf/elf.h: Update x86 relocations.
370 2002-01-10 Ulrich Drepper <drepper@redhat.com>
372 * locale/programs/charmap.c (new_width): Check whether byte
373 sequences for both ends of range have the same length.
375 2002-01-09 Jakub Jelinek <jakub@redhat.com>
377 * elf/elf.h (SHN_UNDEF): Remove duplicate definition.
379 2002-01-09 Jakub Jelinek <jakub@redhat.com>
381 * sysdeps/alpha/fpu/e_sqrt.c (__ieee754_sqrt): Don't use multi-line
383 (__full_ieee754_sqrt): Add __attribute_used__.
385 2002-01-10 Ulrich Drepper <drepper@redhat.com>
387 * sysdeps/generic/group_member.c (__group_member): Also check
388 groups[0] [PR libc/2781].
390 2002-01-08 Ulrich Drepper <drepper@redhat.com>
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.
401 2002-01-07 Roland McGrath <roland@frob.com>
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.
406 2002-01-07 Andreas Jaeger <aj@suse.de>
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.
415 2002-01-02 Bruno Haible <bruno@clisp.org>
417 * intl/plural.y: Fix %expect count.
419 2002-01-03 Jakub Jelinek <jakub@redhat.com>
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.
432 2002-01-07 Stephen L Moshier <moshier@mediaone.net>
434 * sysdeps/ieee754/ldbl-96/s_erfl.c (erfcl): Fix K&R header.
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.
440 2002-01-07 Ulrich Drepper <drepper@redhat.com>
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
455 * libio/iolibio.h: Declare __fopen_internal and __fopen_maybe_mmap.
456 * libio/libioP.h: Declare _IO_file_jumps_mmap, _IO_wfile_jumps_mmap,
459 * sysdeps/gnu/_G_config.h: Define _G_MMAP64.
460 * sysdeps/unix/sysv/linux/cris/_G_config.h: Likewise.
462 * stdio-common/Makefile (tests): Add tst-rndseek.
463 * stdio-common/tst-rndseek.c: New file.
465 2002-01-05 Roland McGrath <roland@frob.com>
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.
472 2002-01-03 Ulrich Drepper <drepper@redhat.com>
474 * elf/elf.h: Add more TLS definitions.
476 2002-01-02 Ulrich Drepper <drepper@redhat.com>
478 * include/features.h (__GLIBC_MINOR__): Bump to 3.
480 2002-01-02 Roland McGrath <roland@frob.com>
482 * sysdeps/mach/hurd/sigwait.c (__sigwait): Use __sigandset,
483 __sigisemptyset. Don't use MASK uninitialized.
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.
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.
493 * hurd/hurdinit.c (_hurd_ports_use): Return EGRATUITOUS when
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.
501 * hurd/hurdsig.c (_hurd_internal_post_signal): Leave msgh_seqno unset.
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.
507 * sysdeps/powerpc/elf/libc-start.c: Make AUXVEC diddling code
508 conditional on [HAVE_AUX_VECTOR].
510 * mach/mach/mach_traps.h (thread_switch, __thread_switch): Use
511 mach_msg_timeout_t as type of final argument.
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):
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.
525 2002-01-01 Roland McGrath <roland@frob.com>
527 * sysdeps/mach/hurd/errnos.awk: Tighten up device_types.h matching.
529 2002-01-01 Ulrich Drepper <drepper@redhat.com>
531 * include/stdlib.h: Define inlines for the _l variants of the strto*
534 2002-01-01 Roland McGrath <roland@frob.com>
536 * sysdeps/mach/hurd/powerpc/intr-msg.h: Remove extraneous backslash.
538 * mach/Machrules (MIG): Set CPP as well as CC.
540 2001-12-31 Ulrich Drepper <drepper@redhat.com>
542 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C
543 locale to parse /proc/loadavg [PR libc/2760].
545 2001-12-31 Jakub Jelinek <jakub@redhat.com>
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
551 (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string
552 literals to avoid warnings.
554 2001-12-31 Andreas Jaeger <aj@suse.de>
556 * configure.in: Don't check for gsed since we do not use it anywhere.
558 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
560 * io/fts.c: Update from BSD to fix memory leaks.
562 2001-12-25 Dmitry V. Levin <ldv@alt-linux.org>
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.
575 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
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.
582 2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
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.
589 2001-12-28 Andreas Jaeger <aj@suse.de>
591 * io/bug-ftw3.c: Include string.h for prototypes.
593 * crypt/md5test.c (main): Remove unused variable.
595 * dlfcn/modstatic.c: Add prototype to avoid warning.
597 2001-12-26 Roland McGrath <roland@frob.com>
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>.
603 2001-12-22 Roland McGrath <roland@frob.com>
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.
609 * hurd/Versions (libc: GLIBC_2.2.5): Add _hurd_port_set,
610 _hurd_port_init, and __hurd_self_sigstate.
612 * mach/Versions (libc: GLIBC_2.2.5): Add mig_strncpy.
614 2001-12-21 Andreas Jaeger <aj@suse.de>
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.
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.
626 * sunrpc/svc_tcp.c: Add noreturn attribute for
627 svctcp_rendezvous_abort.
628 * sunrpc/svc_unix.c: Likewise for svcunix_rendezvous_abort.
630 * sysdeps/generic/strstr.c (strstr): Add paranthese for assignment
633 2001-12-19 Jakub Jelinek <jakub@redhat.com>
635 * manual/llio.texi (aio_fsync): Fix a typo.
636 Patch by Tammy Fox <tfox@redhat.com>.
638 2001-12-18 Jakub Jelinek <jakub@redhat.com>
640 * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (clone): Subtract
641 stack bias from child stack pointer before passing it to clone syscall.
643 2001-12-18 Ulrich Drepper <drepper@redhat.com>
645 * sysdeps/posix/sysconf.c (__sysconf): Respect POSIX minimum for
647 * sysdeps/generic/sysconf.c (__sysconf): Likewise.
648 Reported by Thorsten Kukuk <kukuk@suse.de>.
650 * sysdeps/unix/grantpt.c (grantpt): Correct typo in comment and
653 * sysdeps/unix/sysv/linux/grantpt.c: Make __unix_grantpt static.
655 2001-12-18 Thorsten Kukuk <kukuk@suse.de>
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.
663 2001-12-17 Ulrich Drepper <drepper@redhat.com>
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.
670 2001-12-16 Roland McGrath <roland@frob.com>
672 * nss/nsswitch.c (__nss_next): Don't use __FUNCTION__ as literal.
673 * grp/initgroups.c (internal_getgrouplist): Likewise.
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.
679 * sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
681 * sysdeps/mach/hurd/spawni.c: New file, by me with a
682 couple fixes by Neal H Walfield <neal@cs.uml.edu>.
684 2001-12-14 Ulrich Drepper <drepper@redhat.com>
686 * sysdeps/generic/strstr.c (strstr): Update. New optimized version.
687 Patch by Stephen R. van den Berg.
689 * crypt/md5.h: Define md5_uintptr.
691 2001-12-13 Ulrich Drepper <drepper@redhat.com>
693 * libio/tst_swprintf.c (main): Add test for string argument with
695 * stdio-common/Makefile (tests): Add tst-sprintf.
696 * stdio-common/tst-sprintf.c: New file.
698 2001-12-13 Andreas Schwab <schwab@suse.de>
700 * stdio-common/vfprintf.c (process_string_arg): Correctly handle
701 zero precision with wide character string format.
703 2001-12-13 Thorsten Kukuk <kukuk@suse.de>
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.
708 2001-12-13 Ulrich Drepper <drepper@redhat.com>
710 * crypt/md5.c (md5_process_bytes): Correct handling of alignment.
711 Patch by Eric Sharkey <sharkey@netrics.com>.
713 * crypt/md5test.c (main): Add test for multiple calls to
714 __md5_process_bytes to itererate over input string.
716 2001-12-12 Ulrich Drepper <drepper@redhat.com>
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>.
724 2001-12-12 Andreas Jaeger <aj@suse.de>
726 * configure.in: Use -nostartfiles -nostdlib for linker tests, fix
727 combreloc test so that it works in this case.
729 * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
731 2001-12-12 NIIBE Yutaka <gniibe@m17n.org>
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.
738 2001-12-11 Ulrich Drepper <drepper@redhat.com>
740 * resolv/nss_dns/dns-host.c (getanswer_r): Remove MAX_NR_ADDRS
741 limitation [PR libc/2564].
743 2001-12-11 Jakub Jelinek <jakub@redhat.com>
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):
750 * elf/dl-deps.c (_dl_build_local_scope): New.
751 (_dl_map_object_deps): If LD_TRACE_PRELINKING, compute local scopes
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
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
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,
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
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
782 * sysdeps/generic/ldsodefs.h (_dl_trace_prelink_map): New declaration.
783 (DL_DEBUG_PRELINK): Define.
784 (_dl_resolve_conflicts): Add prototype.
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
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
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.
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
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.
844 2001-12-11 Ulrich Drepper <drepper@redhat.com>
846 * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use sizeof
847 where appropriate instead of numbers. Little optimizations.
849 2001-12-10 Roland McGrath <roland@frob.com>
851 * sysdeps/mach/hurd/bind.c (bind): Don't deallocate IFSOCK if we never
854 * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu.*): Set default
855 set to GLIBC_2.2.5, not GLIBC_2.2.4.
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.
861 2001-12-10 Thorsten Kukuk <kukuk@suse.de>
863 * io/ftw.c (ftw_startup): Check, if the path is search and readable.
865 2001-12-10 Ulrich Drepper <drepper@redhat.com>
867 * io/Makefile (tests): Add bug-ftw3.
868 * io/bug-ftw3.c: New file.
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.
874 * po/ca.po: Update from translation team.
876 2001-12-09 Ulrich Drepper <drepper@redhat.com>
878 Implement transliteration of characters in strings of the locale
880 * locale/programs/linereader.c: Adjust for additional parameter to
882 (get_string): If character <Uxxxx> is not found try to transliterate
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
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
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>
914 * include/locale.h: Define __LC_LAST.
915 * iconv/Makefile (CFLAGS-linereader.c): Define to -DNO_TRANSLITERATION.
917 2001-12-07 Geoff Keating <geoffk@redhat.com>
919 * sysdeps/powerpc/Dist: Update for recent FP changes.
920 * sysdeps/powerpc/fpu/Dist: Likewise.
922 2001-12-07 Andreas Schwab <schwab@suse.de>
924 * sysdeps/unix/sysv/linux/opensock.c: Include <string.h>.
926 2001-12-06 Geoff Keating <geoffk@redhat.com>
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
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.
940 2001-12-06 Ulrich Drepper <drepper@redhat.com>
942 * sysdeps/unix/sysv/linux/opensock.c: New file.
944 2001-12-06 Geoff Keating <geoffk@redhat.com>
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.
952 2001-12-06 Ulrich Drepper <drepper@redhat.com>
954 * libio/vasprintf.c (_IO_vasprintf): Free buffer on failure.
955 * assert/assert.c: Check result of __asprintf call and don't use
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
963 * posix/getopt.c: Check result of __asprintf calls and fail if
965 Patch by Dmitry V. Levin <ldv@alt-linux.org>.
967 2001-12-05 Ulrich Drepper <drepper@redhat.com>
969 * sysdeps/generic/strcasecmp.c (__strcasecmp): Little performance
971 * sysdeps/generic/strncase.c: Likewise.
972 * string/tester.c: Add tests for strcasecmp and strncasecmp.
974 2001-12-05 Geoff Keating <geoffk@redhat.com>
976 * scripts/cpp: Test the exit status from 'type', not 'awk'.
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.
987 2001-12-05 Ulrich Drepper <drepper@redhat.com>
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>.
994 * timezone/zic.c: Fix handling of turnaround times.
995 Patch by Arthur David Olson <olsona@dc37a.nci.nih.gov>.
997 2001-12-02 Moshe Olshansky <OLSHANSK@il.ibm.com>
999 * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Fix
1002 2001-12-05 Ulrich Drepper <drepper@redhat.com>
1004 * posix/regex.c: For use outside glibc defined bounded pointer
1005 macros here. Patch by Jim Meyering <jim@meyering.net>.
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.
1014 2001-12-04 Ulrich Drepper <drepper@redhat.com>
1016 * iconvdata/cp1258.c: Optimize conversion from UCS4.
1018 2001-12-02 Roland McGrath <roland@frob.com>
1020 * mach/Makefile, mach/Machrules: Move comments out of \ continuations.
1022 * hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
1023 Reported by Jeff Bailey <jbailey@nisa.net>.
1025 * hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
1026 Reported by Jeff Bailey <jbailey@nisa.net>.
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>.
1032 2001-12-01 Roland McGrath <roland@frob.com>
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.
1038 2001-11-26 Roland McGrath <roland@frob.com>
1040 * hurd/hurdinit.c (_hurd_ports_use): Check if _hurd_ports is null.
1041 Reported by John Tobey <jtobey@john-edwin-tobey.org>.
1043 2001-11-30 Ulrich Drepper <drepper@redhat.com>
1045 * iconvdata/Makefile (modules): Add ARMSCII-8.
1046 * iconvdata/gconv-modules: Add entries for ARMSCII-8.
1047 * iconvdata/armscii-8.c: New file.
1049 2001-11-29 Jakub Jelinek <jakub@redhat.com>
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.
1056 2001-11-29 Andreas Jaeger <aj@suse.de>
1058 * sysdeps/unix/sysv/linux/x86_64/Versions: Add arch_prctl.
1059 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add arch_prctl call.
1061 * sysdeps/generic/abort.c: Include libioP.h for
1062 _IO_flush_all_lockp prototype.
1064 2001-11-29 Ulrich Drepper <drepper@redhat.com>
1066 * posix/regex.h: Define __restrict_arr correctly.
1068 2001-11-28 Ulrich Drepper <drepper@redhat.com>
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>.
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.
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
1105 * iconv/iconv_prog.c: Pass empty strings as default value for to-
1106 and from-charset. Don't determine locale's charset here.
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].
1115 2001-11-28 Jakub Jelinek <jakub@redhat.com>
1117 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
1118 __signbitl): Only define for ISO C99.
1120 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
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.
1125 2001-11-28 Ulrich Drepper <drepper@redhat.com>
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>.
1131 2001-11-28 Bruno Haible <bruno@clisp.org>
1133 * locale/programs/simple-hash.c (lookup_2): Remove function.
1134 (insert_entry_2): Call lookup instead of lookup_2.
1136 2001-03-04 Bruno Haible <bruno@clisp.org>
1138 * intl/dcigettext.c (DCIGETTEXT): Increment path_max proportionally.
1140 2001-10-31 Bruno Haible <bruno@clisp.org>
1142 * intl/plural.y: Include <stddef.h>, needed for NULL with SunOS 4 cc.
1144 2001-03-21 Bruno Haible <bruno@clisp.org>
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.
1150 2001-11-27 Ulrich Drepper <drepper@redhat.com>
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.
1156 2001-09-24 Bruno Haible <bruno@clisp.org>
1158 * intl/loadmsgcat.c (_nl_init_domain_conv): Also enable
1159 transliteration when building on a glibc system but outside glibc.
1161 2001-09-22 Bruno Haible <bruno@clisp.org>
1163 * intl/plural-eval.c: New file, extracted from dcigettext.c.
1164 * intl/dcigettext.c (plural_eval): Remove function, moved to
1166 (plural_lookup): Call PLURAL_EVAL instead of plural_eval.
1167 Include plural-eval.c.
1169 2001-09-22 Bruno Haible <bruno@clisp.org>
1171 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Reject numbers that
1172 don't start with a digit; nplurals must be positive.
1174 2001-09-02 Bruno Haible <bruno@clisp.org>
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
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.
1193 2001-07-28 Bruno Haible <bruno@clisp.org>
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
1199 * intl/localealias.c (read_alias_file): Cast isspace argument to
1202 2001-10-20 Bruno Haible <bruno@clisp.org>
1204 Assume strchr() exists. (Without it, intl/explodename.c wouldn't link
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.
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.
1226 2001-11-27 Ulrich Drepper <drepper@redhat.com>
1228 * stdio-common/Makefile (tests): Add scanf11.
1229 * stdio-common/scanf11.c: New file.
1231 2001-11-26 Ulrich Drepper <drepper@redhat.com>
1233 * version.h (RELEASE): Define as development.
1234 (VERSION): Set to 2.2.90.
1236 2001-11-22 Thorsten Kukuk <kukuk@suse.de>
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.
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.
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.
1250 * nscd/grpcache.c: Use strtoul instead of atol.
1251 * nscd/pwdcache.c: Likewise.
1252 * nss/getent.c: Likewise.
1254 2001-11-27 Paul Eggert <eggert@twinsun.com>
1256 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
1257 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
1259 2001-11-19 Bruno Haible <bruno@clisp.org>
1261 * locale/programs/simple-hash.c (insert_entry_2): Resize at 75%, not
1263 (compute_hashval): Shift by 9 bits, not by 4 bits. This drastically
1264 improves the quality of the hash function, especially for short
1267 2001-11-26 Ulrich Drepper <drepper@redhat.com>
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].
1272 * math/bits/mathcalls.h: Mark ceil and floor as const.
1273 Reported by David Mosberger.
1275 2001-11-21 Jim Meyering <meyering@lucent.com>
1277 * posix/regex.c (iswctype, mbrtowc, wcslen, wcscoll, wcrtomb) [_LIBC]:
1278 Define to be __-prefixed.
1279 Remove unnecessary duplication in `#ifdef _LIBC' blocks.
1281 2001-11-26 Andreas Jaeger <aj@suse.de>
1283 * sysdeps/unix/sysv/linux/hppa/brk.c: Remove __brk_addr alias,
1286 2001-11-26 Stephen L Moshier <moshier@mediaone.net>
1288 * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
1291 * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
1292 unused variables. Fix threshold for returning 1.0.
1294 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
1297 * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
1298 remove unused variables.
1300 * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
1302 * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
1303 include local math header files.
1305 2001-11-22 Andreas Jaeger <aj@suse.de>
1307 * sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
1310 2001-11-21 Andreas Jaeger <aj@suse.de>
1312 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: New file.
1314 * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers): Add
1317 2001-11-15 Andreas Jaeger <aj@suse.de>
1319 * include/features.h (__GLIBC_HAVE_LONG_LONG): Define for
1320 compilers that support it.
1322 * posix/sys/types.h: Use __GLIBC_HAVE_LONG_LONG.
1323 * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
1324 * stdlib/stdlib.h: Likewise.
1326 2001-11-17 Ulrich Drepper <drepper@redhat.com>
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>.
1332 2001-11-16 Stephen L Moshier <moshier@mediaone.net>
1334 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfcl): Fix K&R header.
1336 2001-11-15 Ulrich Drepper <drepper@redhat.com>
1338 * sysdeps/generic/unwind-dw2-fde.c: Don't use recursive mutexes.
1340 2001-10-02 Jakub Jelinek <jakub@redhat.com>
1341 H.J. Lu <hjl@gnu.org>
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
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
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
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.
1407 2001-11-15 Jeff Law <law@redhat.com>
1409 * posix/regex.c (uintptr_t): Do not provide a definition if the
1410 system provided one.
1412 2001-11-13 Roland McGrath <roland@frob.com>
1414 * stdio-common/tmpfile.c: Moved to ...
1415 * sysdeps/generic/tmpfile.c: ... here.
1416 * sysdeps/mach/hurd/tmpfile.c: New file.
1418 * hurd/fopenport.c (__fopenport): Renamed from fopenport.
1419 [USE_IN_LIBIO] (fopencookie): #define as _IO_fopencookie.
1420 (fopenport): Define as weak alias.
1422 * libio/iofopncook.c (_IO_fopencookie): Move forward declaration ...
1423 * libio/libioP.h: ... to here.
1425 2001-11-12 Ulrich Drepper <drepper@redhat.com>
1427 * elf/dl-reloc.c (_dl_relocate_object): Avoid iterating over
1428 program header twice. Construct list with the needed information.
1430 2001-11-10 Ulrich Drepper <drepper@redhat.com>
1432 * po/ca.po: Update from translation team.
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.
1439 2001-11-10 Andreas Jaeger <aj@suse.de>
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>.
1445 2001-11-09 Ulrich Drepper <drepper@redhat.com>
1447 * elf/dl-minimal.c (realloc): Handle NULL for first parameter
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.
1453 2001-11-09 Roland McGrath <roland@frob.com>
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.
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.
1472 2001-11-09 Andreas Schwab <schwab@suse.de>
1474 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: New file.
1476 2001-11-09 Ulrich Drepper <drepper@redhat.com>
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.
1483 2001-11-08 Ulrich Drepper <drepper@redhat.com>
1485 * elf/dl-object.c (_dl_new_object): Various small optimizations.
1487 2001-11-07 Ulrich Drepper <drepper@redhat.com>
1489 * sysdeps/generic/dl-cache.c: Optimize SEARCH_CACHE and
1490 HWCAP_CHECK macro code.
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.
1498 * elf/dl-version.c (match_symbol): Optimize error handling for size.
1499 (_dl_check_map_versions): Likewise.
1501 2001-11-06 Ulrich Drepper <drepper@redhat.com>
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
1506 (lose): Don't call close if fd == -1.
1508 2001-11-07 Kaoru Fukui <k_fukui@highway.ne.jp>
1510 * manual/charset.texi: Fix typo @w[ISO 6937] to @w{ISO 6937}.
1511 Also fix typo @code {mbsinit} to @code{mbsinit}.
1513 2001-11-06 Ulrich Drepper <drepper@redhat.com>
1515 * elf/dl-profile.c: Replace state variable with simple flag named
1516 running. Remove commented-out code.
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.
1523 2001-11-06 Roland McGrath <roland@frob.com>
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.
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>.
1532 2001-11-05 Ulrich Drepper <drepper@redhat.com>
1534 * elf/rtld.c (process_dl_debug): Rewritten. Optimized for size not
1536 (process_envvars): Some more optimizations.
1537 * sysdeps/generic/ldsodefs.h (DL_DEBUG_HELP): New macro.
1539 * elf/elf.h: Add dynamic tag definitions for prelinking.
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
1546 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
1548 * sysdeps/generic/dl-sysdep.c: Don't initialize _dl_cpuclock_offset.
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
1555 * io/fts.h: Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
1557 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
1559 * manual/string.texi: Fix typos.
1560 * manual/examples/argp-ex2.c: Likewise.
1562 2001-11-05 Roland McGrath <roland@frob.com>
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__].
1571 2001-11-05 Ulrich Drepper <drepper@redhat.com>
1573 * manual/charset.texi: Extensive editing work.
1574 * manual/nss.texi: Likewise.
1575 Changes by Dennis Grace <dgrace@us.ibm.com>.
1577 2001-11-04 Roland McGrath <roland@frob.com>
1579 * hurd/set-host.c (_hurd_set_host_config): Use O_WRONLY in flags
1580 parameter to dir_mkfile.
1582 2001-11-02 Jakub Jelinek <jakub@redhat.com>
1584 * string/bits/string2.h (__strndup): If n is smaller than len, set
1586 * string/tester.c (test_strndup): New function.
1589 2001-11-01 Ulrich Drepper <drepper@redhat.com>
1591 * sunrpc/rpc_main.c: Optimize variable definitions a bit.
1593 * sunrpc/Makefile (rpcgen-cmd): Use ../scripts/cpp in rpcgen calls.
1594 * scripts/cpp: New file.
1596 * elf/dl-load.c (_dl_map_object): Correct test of DF_1_NODEFLIB
1597 for rtld_search_dirs content. Minor optimizations.
1599 2001-10-31 Ulrich Drepper <drepper@redhat.com>
1601 * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
1602 avoiding unnecessary duplication.
1604 2001-10-31 Jakub Jelinek <jakub@redhat.com>
1606 * elf/dl-load.c (_dl_map_object): If library was found using
1607 LD_LIBRARY_PATH, don't try RUNPATH list.
1609 2001-10-31 Martin Schwidefsky <schwidefsky@de.ibm.com>
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):
1616 2001-10-31 Ulrich Drepper <drepper@redhat.com>
1618 * iconvdata/Makefile: Add support for IBM1132, IBM1133, and IBM1162
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>.
1636 * string/string.h: Fix typo in comment.
1637 * wcsmbs/wchar.h: Likewise.
1639 2001-10-30 Joseph S. Myers <jsm28@cam.ac.uk>
1641 * manual/getopt.texi (getopt_long, getopt_long_only): Include
1642 const in type of longopts parameter.
1644 2001-10-29 Andreas Jaeger <aj@suse.de>
1646 * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
1648 2001-10-29 Kevin Ryde <user42@zip.com.au>
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.
1655 2001-10-28 Roland McGrath <roland@frob.com>
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.
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.
1666 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: File moved ...
1667 * sysdeps/generic/sys/ucontext.h: ... to replace this one.
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.
1675 * sysdeps/mach/powerpc/machine-lock.h: Assembly code rewritten
1676 by Peter Bruin <pjbruin@dds.nl>.
1678 * hurd/hurdselect.c (_hurd_select): Check SELECT_RETURNED bit when
1679 packing results for a `poll' call.
1681 2001-10-26 Ulrich Drepper <drepper@redhat.com>
1683 * posix/fnmatch_loop.c: Recognize - at end of bracket expression
1685 * posix/tst-fnmatch.input: Add tests for - at beginning and end of
1688 * string/strxfrm.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
1690 * string/tst-strxfrm.c (test): Also test __strxfrm_l.
1692 2001-10-24 H.J. Lu <hjl@gnu.org>
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.
1698 2001-10-21 Jim Meyering <meyering@lucent.com>
1700 * malloc/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
1701 this code would end up calling gettext even in packages built
1703 * posix/getopt.c (_): Likewise.
1704 * posix/regex.c (_): Likewise.
1706 2001-10-26 Ulrich Drepper <drepper@redhat.com>
1708 * resolv/gethnamaddr.c (gethostbyaddr): Use ip6.addr for reverse
1710 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
1711 Reported by Martin.v.Loewis@t-online.de [PR libc/2598].
1713 2001-10-19 Jakub Jelinek <jakub@redhat.com>
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.
1719 2001-10-25 Andreas Schwab <schwab@suse.de>
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>.
1727 2001-10-21 Ulrich Drepper <drepper@redhat.com>
1729 * po/sk.po: Update from translation team.
1731 2001-10-18 Ulrich Drepper <drepper@redhat.com>
1733 * sysdeps/i386/elf/start.S (_fp_hw): Define object type.
1735 2001-10-18 Andreas Schwab <schwab@suse.de>
1737 * math/libm-test.inc (print_ulps): Print ulp values rounded to
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.
1744 2001-10-16 Andreas Schwab <schwab@suse.de>
1746 * sysdeps/m68k/fpu/libm-test-ulps: Updated for fixed cbrtl
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
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>.
1759 2001-10-16 Andreas Jaeger <aj@suse.de>
1761 * sysdeps/ieee754/ldbl-96/s_nextafterl.c (__nextafterl): Fix
1762 parentheses. Reported by David Byron <dbyron@porto.coactive.com>,
1765 2001-10-15 Ulrich Drepper <drepper@redhat.com>
1767 * po/ca.po: New file. Contributed by the translation team.
1769 2001-10-15 Ralf Baechle <ralf@gnu.org>
1771 * sysdeps/unix/sysv/linux/mips/sys/sysmips.h: Make sysmips() prototype
1772 a varargs prototype. Remove dependency from kernel header files.
1774 * sysdeps/unix/sysv/linux/mips/bits/termios.h: General cleanup, use
1775 __USE_MISC / __USE_XOPEN not __USE_BSD where appropriate.
1777 2001-10-14 Ulrich Drepper <drepper@redhat.com>
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>.
1783 2001-10-09 Stephen L Moshier <moshier@mediaone.net>
1785 * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Fix algorithm.
1787 2001-10-14 Ulrich Drepper <drepper@redhat.com>
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>.
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
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.
1810 2001-10-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1812 * sysdeps/s390/s390-32/sys/ucontext.h: Correct __psw_t typedef.
1813 * sysdeps/s390/s390-64/sys/ucontext.h: Likewise.
1815 2001-10-12 Ulrich Drepper <drepper@redhat.com>
1817 * elf/elf.h (PT_TLS): New definition.
1819 2001-10-10 Jeff Bailey <jbailey@nisa.net>
1821 * sysdeps/mach/hurd/Makefile: Add $(CFLAGS) for generation of
1824 2001-10-07 Roland McGrath <roland@frob.com>
1826 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Never return ENOSYS.
1828 2001-10-10 Ulrich Drepper <drepper@redhat.com>
1830 * elf/elf.h: Add more ELFOSABI_* constants.
1832 2001-10-04 Ben Collins <bcollins@debian.org>
1834 * sysdeps/generic/inttypes.h: Fix typo (define, not defined) in
1835 decleration of __need_wchar_t.
1837 2001-10-03 Jakub Jelinek <jakub@redhat.com>
1839 * string/bits/string2.h (__strsep_g): Add prototype.
1841 * string/Versions (__strsep): Remove.
1842 * sysdeps/generic/strsep.c (__strsep_g): Add alias to __strsep.
1844 2001-10-07 Ulrich Drepper <drepper@redhat.com>
1846 * manua/llio.texi: Clarify file references added by mmap.
1847 Patch by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>.
1849 2001-09-29 Jes Sorensen <jes@trained-monkey.org>
1851 * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h (struct sigcontext):
1852 Add sc_loadrs and sc_rbs_bas to match current kernel.
1854 2001-09-27 Jakub Jelinek <jakub@redhat.com>
1856 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
1858 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Fix erfc(-inf).
1860 2001-09-27 Jakub Jelinek <jakub@redhat.com>
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.
1874 2001-09-26 Jakub Jelinek <jakub@redhat.com>
1876 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Call
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.
1887 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
1889 2001-09-28 Ulrich Drepper <drepper@redhat.com>
1891 * elf/elf.h: Define SHF_GROUP and SHF_TLS.
1893 2001-09-25 Jakub Jelinek <jakub@redhat.com>
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.
1906 2001-09-25 Ulrich Drepper <drepper@redhat.com>
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>.
1915 2001-09-24 Ulrich Drepper <drepper@redhat.com>
1917 * sysdeps/unix/bsd/ulimit.c (ulimit): Handle overflow in
1918 UL_SETFSIZE computations better.
1920 * rt/Makefile: Remove use of filter for librt again.
1922 * sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Handle overflow in
1923 UL_SETFSIZE computations better.
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
1933 (__stpcpy_a_small): Renamed from __stpcpy_small.
1934 (__strcspn_c1): Don't define if _FORCE_INLINES.
1935 (__strspn_c1): Likewise.
1937 2001-09-22 Ben Collins <bcollins@debian.org>
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.
1944 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
1946 * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_headers): Add sys/io.h.
1948 2001-09-24 Jakub Jelinek <jakub@redhat.com>
1950 * elf/dl-open.c (dl_open_worker): Update l_scope_max.
1952 2001-09-24 Ulrich Drepper <drepper@redhat.com>
1954 * wcsmbs/wchar.h: Add __attribute_pure__ to mbsinit prototype.
1956 2001-09-20 H.J. Lu <hjl@gnu.org>
1958 * include/dlfcn.h (__RTLD_SPROF): New definiton.
1959 * elf/dl-open.c (dl_open_worker): Return immediately after loading
1961 * elf/sprof.c (main): Default to the filename if soname doesn't exist.
1962 (load_shobj): Call dlopen with `RTLD_LAZY | __RTLD_SPROF'.
1964 2001-09-20 H.J. Lu <hjl@gnu.org>
1966 * elf/dl-profile.c (_dl_mcount): Use old *narcsp value for newarc,
1969 2001-09-22 Ulrich Drepper <drepper@redhat.com>
1971 * nss/getent.c: Accept -s parameter to overwrite rules in
1972 nsswitch.conf. Patch by Nalin Dahyabhai <nalin@redhat.com>.
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.
1978 * nss/getent.c: Various cleanups. Use simpler and fewer function
1981 2001-09-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1983 * sysdeps/s390/s390-32/bits/setjmp.h: Correct pointer comparison in
1985 * sysdeps/s390/s390-64/bits/setjmp.h: Likewise.
1987 2001-09-22 Ulrich Drepper <drepper@redhat.com>
1989 * iconvdata/Makefile: Add rules to build and distribute IBM1160 and
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>.
1998 2001-09-19 Jakub Jelinek <jakub@redhat.com>
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.
2004 2001-09-11 Tom Rix <trix@redhat.com>
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.
2010 2001-09-22 Andreas Jaeger <aj@suse.de>
2012 * elf/reldep4.c (main): Add proper prototype to fix warning.
2014 * elf/reldep5.c (main): Remove unused variable.
2016 * math/math_private.h: Add prototypes.
2018 2001-09-21 Andreas Jaeger <aj@suse.de>
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.
2024 * sysdeps/gnu/Dist: Remove eval.c.
2026 2001-09-20 Ulrich Drepper <drepper@redhat.com>
2028 * malloc/memusage.c (realloc): Don't count already allocated
2030 (me): Always use dlsym() to find the real implementations.
2032 * malloc/memusage.sh: Make -n option actually do something.
2034 2001-09-20 Andreas Jaeger <aj@suse.de>
2036 * elf/elf.h (R_390_NUM): Correct value.
2038 * Versions.def: Add missing versions 2.2.3 for libthread_db and
2041 * sysdeps/unix/sysv/linux/configure.in: Add minimal kernel version
2042 for x86-64, install x86-64 into */lib64.
2044 * shlib-versions: Add x86-64.
2046 * elf/elf.h: Add x86-64 relocations.
2048 2001-09-19 Ulrich Drepper <drepper@redhat.com>
2050 * po/fr.po: Update from translation team.
2052 2001-09-19 Andreas Jaeger <aj@suse.de>
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.
2184 * sysdeps/ieee754/ldbl-128/s_erfl.c: New file, contributed Stephen
2187 2001-09-18 Ulrich Drepper <drepper@redhat.com>
2189 * malloc/malloc.c (ptmalloc_init): Handle _environ==NULL.
2190 Reported by B. D. Elliott <bde@nwlink.com> [PR libc/2541].
2192 2001-09-18 Andreas Schwab <schwab@suse.de>
2194 * elf/dl-load.c (_dl_map_object_from_fd): Update handling of scope
2195 list, now that l_scope is a pointer.
2197 * elf/dl-open.c (dl_open_worker): Fix thinko when enlarging the
2200 2001-09-18 kaz Kojima <kkojima@rr.iij4u.or.jp>
2202 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix reverse condition.
2203 (elf_machine_rela_relative): Add a missing declaration.
2205 2001-09-18 Jakub Jelinek <jakub@redhat.com>
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.
2212 2001-09-18 Ulrich Drepper <drepper@redhat.com>
2214 * elf/ldd.bash.in: Update copyright message.
2216 2001-09-17 H.J. Lu <hjl@gnu.org>
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.
2224 * resolv/gethnamaddr.c (getanswer): Replace bcopy with memmove.
2225 (gethostbyaddr): Likewise.
2226 * sunrpc/rpcinfo.c (get_inet_address): Likewise.
2228 2001-09-18 Ulrich Drepper <drepper@redhat.com>
2230 * sysdeps/gnu/eval.c: Removed.
2232 2001-09-18 Andreas Jaeger <aj@suse.de>
2234 * sysdeps/i386/fpu/s_logbl.S: Move to ...
2235 * sysdeps/i386/fpu/s_logbl.c: ...here, use inline assembler.
2237 * sysdeps/i386/fpu/s_rintl.S: Move to ...
2238 * sysdeps/i386/fpu/s_rintl.c: ...here, use inline assembler.
2240 * sysdeps/i386/fpu/s_significandl.S: Move to ...
2241 * sysdeps/i386/fpu/s_significandl.c: ...here, use inline assembler.
2243 2001-09-16 Ulrich Drepper <drepper@redhat.com>
2245 * string/strcoll.c [USE_IN_EXTENDED_LOCALE_MODEL]: Correctly get
2248 2001-09-14 H.J. Lu <hjl@gnu.org>
2250 * sysdeps/mips/fpu/libm-test-ulps: Updated.
2252 2001-09-14 Ulrich Drepper <drepper@redhat.com>
2254 * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix a typo.
2255 Patch by Florian La Roche <laroche@redhat.com>.
2257 * string/bits/string2.h (__strtok_r_1c): Optimize a bit.
2259 * sysdeps/unix/sysv/linux/net/ethernet.h: Correct references to
2262 2001-09-14 Andreas Schwab <schwab@suse.de>
2264 * posix/execl.c: Fix last argument of memcpy. Reported by Brian
2265 Sumner <bls@sgi.com>.
2266 * posix/execlp.c: Likewise.
2268 2001-09-13 Jakub Jelinek <jakub@redhat.com>
2270 * elf/dl-deps.c (_dl_map_object_deps): Fix filter handling if filter
2271 is already found earlier in the search scope.
2273 2001-09-12 Jakub Jelinek <jakub@redhat.com>
2275 * rt/Makefile (LDFLAGS-rt.so): Use shared thread library as librt's
2278 2001-09-13 Ulrich Drepper <drepper@redhat.com>
2280 * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected errors for j0.
2282 2001-09-12 Ulrich Drepper <drepper@redhat.com>
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.
2290 2001-09-11 Ulrich Drepper <drepper@redhat.com>
2292 * nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
2293 Patch by Stephan Kulow.
2295 2001-09-08 Ben Collins <bcollins@debian.org>
2297 * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
2298 usage of RESOLVE() (r_type, not reloc->r_type).
2300 2001-09-08 Ulrich Drepper <drepper@redhat.com>
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.
2307 2001-09-08 H.J. Lu <hjl@gnu.org>
2309 * po/zh_TW.po: Fix a typo.
2311 2001-09-07 Tom Rix <trix@redhat.com>
2313 * sysdeps/unix/sysv/aix/sysv_termio.h: New file.
2315 2001-08-26 Tom Rix <trix@redhat.com>
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.
2325 2001-09-08 Ben Collins <bcollins@debian.org>
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.
2336 2001-09-07 Ben Collins <bcollins@debian.org>
2338 * sysdeps/sparc/sparc32/dl-machine.h: Fix typo.
2340 * sysdeps/hppa/dl-lookupcfg.h: Forward declare struct link_map.
2342 2001-09-08 Ulrich Drepper <drepper@redhat.com>
2344 * elf/dl-lookup.c (add_dependency): Bump l_opencount of all
2345 dependencies if necessary.
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
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.
2370 * elf/reldep2.c: Fix typo.
2372 2001-09-07 Ulrich Drepper <drepper@redhat.com>
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.
2383 2001-09-06 Andreas Jaeger <aj@suse.de>
2385 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: New file, contributed
2388 2001-09-05 Ulrich Drepper <drepper@redhat.com>
2390 * elf/Makefile: Add rules to build new tests. Don't run them yet since
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.
2398 2001-09-04 Richard Henderson <rth@redhat.com>
2400 * elf/elf.h (R_ALPHA_OP_*, R_ALPHA_IMMED_*): Remove.
2401 (R_ALPHA_GPREL16): Rename from R_ALPHA_IMMED_GP_16.
2403 2001-09-04 Ulrich Drepper <drepper@redhat.com>
2405 Correct very misleading message for error in failed runtime relocation.
2406 * elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
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.
2420 2001-09-04 Jakub Jelinek <jakub@redhat.com>
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.
2430 2001-09-04 Jakub Jelinek <jakub@redhat.com>
2432 * sunrpc/rpc_cout.c (upcase): Account for trailing '\0'.
2434 * sysdeps/unix/sysv/linux/alpha/gethostname.c: Include <errno.h>.
2435 (__syscall_gethostname): Add prototype.
2437 2001-09-04 Ulrich Drepper <drepper@redhat.com>
2439 * elf/dl-object.c (_dl_new_object): Remove unnecessary if.
2441 2001-09-02 Ulrich Drepper <drepper@redhat.com>
2443 * elf/rtld.c (dl_main): Increment l_opencount for main binary.
2445 2001-08-27 Roland McGrath <roland@frob.com>
2447 * sysdeps/unix/sysv/gethostname.c (__gethostname): When LEN is too
2448 short, copy that much into NAME anyway before returning error.
2450 2001-09-01 Richard Henderson <rth@redhat.com>
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.
2458 2001-09-01 Mark Kettenis <kettenis@gnu.org>
2460 * iconv/tst-iconv1.c: Include <stddef.h> for wchar_t.
2461 * iconv/tst-iconv3.c: Likewise.
2463 2001-09-01 Jakub Jelinek <jakub@redhat.com>
2465 * sysdeps/generic/inttypes.h (__gwchar_t): Define to wchar_t for C++.
2467 2001-09-01 Ulrich Drepper <drepper@redhat.com>
2469 * iconv/gconv_cache.c: Rename variable cache to __gconv_cache and
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].
2476 2001-08-31 Ulrich Drepper <drepper@redhat.com>
2478 * time/strptime.c (strptime_internal): Recognize 'l' format and
2479 handle it like 'I' for symmetry with strftime.
2481 2001-08-31 Richard Henderson <rth@redhat.com>
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.
2489 2001-08-31 Jakub Jelinek <jakub@redhat.com>
2491 * stdio-common/perror.c (perror): Save errno early, pass it
2492 down to perror_internal.
2493 (perror_internal): Add errnum argument.
2495 2001-08-31 Jakub Jelinek <jakub@redhat.com>
2497 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Remove unused code.
2498 Don't add old memory content for R_ALPHA_REFQUAD.
2500 2001-08-30 Ulrich Drepper <drepper@redhat.com>
2502 * crypt/md5-crypt.c (__md5_crypt_r): Compute used and required
2505 * sysdeps/unix/sysv/linux/ia64/ioperm.c (_ioperm): Use __open
2506 instead of open, __close instead of close, __getpagesize instead
2509 * string/argz-stringify.c (__argz_stringify): Use __strnlen
2511 * include/string.h (strndupa): Redefine here to use __strnlen
2513 * string/strndup.c (__strndup): Use __strnlen not strnlen.
2515 * misc/syslog.c (vsyslog): Fix typo in last change (connect ->
2518 2001-08-30 Jakub Jelinek <jakub@redhat.com>
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.
2528 2001-08-30 Ulrich Drepper <drepper@redhat.com>
2530 * sysdeps/alpha/fpu/libm-test-ulps: Adjust j0 ULPs.
2532 2001-08-30 Andreas Jaeger <aj@suse.de>
2534 * sysdeps/ieee754/ldbl-128/e_jnl.c: New file,
2535 contributed Stephen L Moshier.
2537 2001-08-30 Jakub Jelinek <jakub@redhat.com>
2539 * sunrpc/etc.rpc (sgi_fam): Add.
2541 2001-08-30 Ulrich Drepper <drepper@redhat.com>
2543 * sysdeps/unix/sysv/linux/alpha/gethostname.c: New file.
2545 2001-08-29 Ulrich Drepper <drepper@redhat.com>
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].
2551 2001-08-29 Andreas Schwab <schwab@suse.de>
2553 * sysdeps/ia64/fpu/libm-test-ulps: Updated.
2555 2001-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2557 * config.make.in (INSTALL_SCRIPT): Define.
2558 * Makeconfig (INSTALL_SCRIPT): Define.
2559 * Makerules (do-install-script): New macro to install scripts using
2561 (install-bin-script): New rule to install scripts with
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.
2574 2001-08-29 H.J. Lu <hjl@gnu.org>
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 ().
2580 2001-08-29 Andreas Schwab <schwab@suse.de>
2582 * sysdeps/m68k/fpu/libm-test-ulps: Updated.
2584 2001-08-28 H.J. Lu <hjl@gnu.org>
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.
2591 2001-08-29 Ulrich Drepper <drepper@redhat.com>
2593 * po/sv.po: Update from translation team.
2594 * po/fr.po: Likewise.
2595 * po/da.po: Likewise.
2597 2001-08-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2599 * Makerules: Fix a typo: MD% -> MD5.
2601 2001-08-28 Ulrich Drepper <drepper@redhat.com>
2603 * sunrpc/rpc_hout.c (pargdef): Function must take pointer to object.
2604 Patch by Patrick Duval <Patrick.Duval@devinci.fr>.
2606 2001-08-28 Andreas Jaeger <aj@suse.de>
2608 * manual/libc-texinfo.sh: Add entry about free manuals.
2610 * manual/contrib.texi (Contributors): Fix cross reference.
2612 * manual/libc.texinfo (Copying): Include freemanuals.
2614 * manual/Makefile (appendices): Add freemanuals.
2616 * manual/freemanuals.texi: New file.
2617 Patch by Brian Youmans <3diff@gnu.org>.
2619 * manual/libm-err-tab.pl: Pretty print more platforms, print a
2622 * manual/math.texi (Errors in Math Functions): Fix grammar, start
2623 table on separate page.
2624 Patch by Brian Youmans <3diff@gnu.org>.
2626 2001-08-27 Ulrich Drepper <drepper@redhat.com>
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>.
2633 2001-08-27 Jakub Jelinek <jakub@redhat.com>
2635 * string/tst-strlen.c (main): Test strnlen (, -1) too.
2636 * sysdeps/generic/strnlen.c (__strnlen): Fix for maxlens with top
2639 2001-08-27 Ulrich Drepper <drepper@redhat.com>
2641 * iconv/strtab.c (searchstring): Use correct length for comparison.
2642 (strtabadd): Account total size correct if new string has old string as
2645 2001-08-27 Jakub Jelinek <jakub@redhat.com>
2647 * elf/rtld.c (dl_main): Update call to _dl_lookup_symbol.
2649 2001-08-27 Andreas Jaeger <aj@suse.de>
2651 * sysdeps/i386/fpu/libm-test-ulps (float): Add ulps for new tests.
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.
2658 2001-08-26 Ulrich Drepper <drepper@redhat.com>
2660 * sysdeps/ia64/dl-lookupcfg.h: Add forward declaration for struct
2663 * configure.in: Fix test for .rela.dyn section.
2665 * elf/dl-runtime.c: Update calls to _dl_lookup_*.
2667 2001-08-26 Jakub Jelinek <jakub@redhat.com>
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
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.
2704 2001-08-26 Ulrich Drepper <drepper@redhat.com>
2706 * manual/message.texi (Advanced gettext functions): Change
2707 description of plural forms for Slovak.
2708 Reported by Marcel Telka <marcel@telka.sk>.
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>.
2713 2001-08-26 Jakub Jelinek <jakub@redhat.com>
2715 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_lazy_rel): Fix a
2716 typo. Patch by Florian La Roche <laroche@redhat.com>.
2718 2001-08-26 Ulrich Drepper <drepper@redhat.com>
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
2728 * elf/dl-lookup.c (_dl_lookup_symbol): Reorder some conditions and
2729 remove some __builtin_expect.
2730 (_dl_lookup_versioned_symbol): Likewise.
2732 * config.h.in: Add HAVE_Z_COMBRELOC.
2733 * configure.in: Add test for -z combreloc.
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.
2740 2001-08-25 Ulrich Drepper <drepper@redhat.com>
2742 * po/tr.po: Update from translation team.
2744 2001-08-24 Andreas Jaeger <aj@suse.de>
2746 * iconv/Makefile (extra-objs): Add iconvconfig-modules so that
2749 2001-08-24 Ulrich Drepper <drepper@redhat.com>
2751 * elf/rtld.c (print_statistics): Printf % after percent values.
2752 * elf/dl-misc.c (_dl_debug_vdprintf): Implement %%.
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.
2759 2001-08-24 Roland McGrath <roland@frob.com>
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.
2764 2001-08-23 Roland McGrath <roland@frob.com>
2766 * hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
2767 _hurdsig_interrupt_timeout, _hurdsig_fault_preemptor.
2769 * sysdeps/posix/shm_unlink.c (shm_unlink): __unlink -> unlink.
2771 * mach/Versions (libc: GLIBC_2.2.5): New set; add __mach_msg_destroy,
2774 2001-08-24 Ulrich Drepper <drepper@redhat.com>
2776 * nss/test-netdb.c (test_hosts): Don't segfault if gethostname
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
2782 * elf/rtld.c: Include <sys/param.h>.
2783 * elf/dl-reloc.c: Likewise.
2785 2001-08-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
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.
2791 2001-08-24 Jakub Jelinek <jakub@redhat.com>
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.
2797 2001-08-24 Ulrich Drepper <drepper@redhat.com>
2799 * sysdeps/i386/dl-machine.h (elf_machine_rel): Correct prediction
2802 2001-08-24 Jakub Jelinek <jakub@redhat.com>
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):
2813 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela_relative):
2815 * sysdeps/ia64/dl-machine.h (elf_machine_rela_relative): Likewise.
2817 * sysdeps/alpha/dl-machine.h (elf_machine_rela_relative): Likewise.
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.
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
2830 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
2832 * sysdeps/sh/dl-machine.h (elf_machine_rela): Fix typo.
2834 2001-08-24 Andreas Jaeger <aj@suse.de>
2836 * sysdeps/ieee754/ldbl-128/e_j1l.c: New file, contributed by
2837 Stephen L Moshier <moshier@mediaone.net>.
2839 2001-08-24 Ulrich Drepper <drepper@redhat.com>
2841 * elf/do-rel.h (elf_dynamic_do_rel): RELATIVE relocations comes
2842 first if RELCOUNT is set.
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.
2863 2001-08-23 Roland McGrath <roland@frob.com>
2865 * rt/tst-aio4.c [! SIGRTMIN] (SIGRTMIN, SIGRTMAX): Define as -1.
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.
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.
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):
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.
2892 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2894 * elf/ldconfig.c (search_dir): Remove stale symlinks.
2896 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2898 * elf/dl-lookup.c (lookup_cache, lookup_cache_versioned): New.
2899 (_dl_lookup_symbol): Lookup relocations in cache and store successfull
2901 (_dl_lookup_versioned_symbol): Likewise.
2902 * elf/dl-reloc.c (_dl_relocate_object): Initialize cache for
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.
2908 2001-08-23 Ulrich Drepper <drepper@redhat.com>
2910 * stdlib/tst-random.c (main): Swap parameters in fail call.
2911 Patch by Pete Bevin <pete@petebevin.com>.
2913 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2915 * sysdeps/generic/inttypes.h: Use __gwchar_t instead of __wchar_t.
2917 2001-08-23 Ulrich Drepper <drepper@redhat.com>
2919 * malloc/obstack.c: Indent preprocessor directives.
2920 Patch by Jim Meyering <meyering@ascend.com>.
2922 * po/ja.po: Update from translation team.
2924 2001-08-23 Roland McGrath <roland@frob.com>
2926 * libio/tst-ungetwc1.c (main): Add a const to quiet a warning.
2928 * nss/test-netdb.c (test_hosts): Don't use MAXHOSTNAMELEN.
2929 Instead, use dynamic buffer to test gethostname's ENAMETOOLONG error.
2931 2001-08-22 Roland McGrath <roland@frob.com>
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
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.
2951 * conform/conformtest.pl (checknamespace): Sort the output list.
2953 * sysdeps/generic/bits/poll.h (POLLWRBAND): New alias for POLLOUT.
2954 (POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND): Make these
2955 definitions conditional on [__USE_XOPEN].
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.
2961 2001-08-22 Ulrich Drepper <drepper@redhat.com>
2963 * test-skeleton.c (add_temp_file): Add __attribute__ ((unused)) to
2966 * dlfcn/tst-dladdr.c (do_test): Get address of ref1 using
2969 2001-08-22 Roland McGrath <roland@frob.com>
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.
2975 2001-08-22 Ulrich Drepper <drepper@redhat.com>
2977 * elf/dl-addr.c (_dl_addr): Handle broken binaries with zero
2978 symbol sizes a bit better.
2980 * sysdeps/ia64/strncpy.S: Complete rewrite.
2981 Contributed by Jakub Jelinek <jakub@redhat.com>.
2983 * string/stratcliff.c (main): Add strncpy test.
2985 2001-08-22 Roland McGrath <roland@frob.com>
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.
2991 2001-08-01 Mark Kettenis <kettenis@gnu.org>
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.
2999 2001-04-23 Paul Eggert <eggert@twinsun.com>
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.
3006 2001-08-21 Roland McGrath <roland@frob.com>
3008 * stdio-common/tst-fseek.c: Include <time.h> for `time' declaration.
3010 * mach/Makefile (tests): Removed.
3011 * mach/hello.c: File removed.
3013 2001-08-22 Ulrich Drepper <drepper@redhat.com>
3015 * po/sv.po: Update from translation team.
3017 * stdio-common/vfscanf.c: Fix handling of %l[].
3018 Reported by Mitsuru Chinen <mchinen@yamato.ibm.com>.
3020 * libio/Makefile (tests): Add tst-sscanf.
3021 * libio/tst-sscanf.c: New file.
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>.
3028 2001-08-22 Jakub Jelinek <jakub@redhat.com>
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.
3038 2001-08-21 Jakub Jelinek <jakub@redhat.com>
3040 * string/strnlen.c: Remove.
3041 * sysdeps/generic/strnlen.c: New file.
3042 * sysdeps/i386/i486/bits/string.h (strnlen): Remove.
3044 2001-08-21 Roland McGrath <roland@frob.com>
3046 * sysdeps/mach/i386/machine-sp.h (__thread_stack_pointer): Define this
3047 as a macro, not an extern inline function.
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.
3054 2001-08-20 Roland McGrath <roland@frob.com>
3056 * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
3057 (__hurd_file_name_split, __hurd_directory_name_split): Likewise.
3059 2001-08-21 Ulrich Drepper <drepper@redhat.com>
3061 * string/bits/string2.h: Remove strnlen optimization here.
3062 * sysdeps/i386/i486/bits/string.h: Add it here.
3064 2001-08-21 Wolfram Gloger <wg@malloc.de>
3066 * malloc/malloc.c: Make access to ..._hook pointers thread-safe.
3068 2001-08-21 Ulrich Drepper <drepper@redhat.com>
3070 * po/gl.po: Update from translation team.
3072 2001-08-20 Ulrich Drepper <drepper@redhat.com>
3074 * misc/error.c (error_tail): Use fputws_unlocked instead of fputws.
3075 * misc/err.c (convert_and_print): Likewise.
3077 * malloc/obstack.c (print_and_abort): Use fprintf instead of two
3080 2001-08-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
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.
3086 2001-08-20 kaz Kojima <kkojima@rr.iij4u.or.jp>
3088 * sysdeps/unix/sysv/linux/sh/sysdep.S: Align errno.
3090 2001-08-20 Ulrich Drepper <drepper@redhat.com>
3092 * posix/regex.c (truncate_wchar): Use wcrtomb not wctomb.
3094 * string/strnlen.c: Fix the implementation. We cannot use memchr.
3096 2001-08-18 Mark Kettenis <kettenis@gnu.org>
3098 * sysdeps/mach/hurd/i386/init-first.c (init): Initialize __environ
3099 before calling the cthreads initialization code.
3101 2001-08-20 Ulrich Drepper <drepper@redhat.com>
3103 * argp/argp-help.c: Fix two problems introduced in last change.
3105 * include/dirent.h: Include <dirstream.h> first.
3107 2001-08-19 Ulrich Drepper <drepper@redhat.com>
3109 * io/fts.c (fts_safe_changedir): Use __fxstat64 instead of __fstat.
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.
3121 * po/ko.po: Update from translation team.
3123 * argp/argp-help.c: Handle wide oriented stderr stream.
3125 2001-08-18 Ulrich Drepper <drepper@redhat.com>
3127 * sysdeps/generic/strtol.c: Little optimizations. Add some
3130 * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
3132 * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t.
3133 * wcsmbs/wcwidth.c (wcwdith): Likewise.
3134 * wcsmbs/wcwidth.h (internal_wcwdith): Likewise.
3136 * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS.
3138 * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests.
3140 * time/time.h (struct timespec): Use __time_t for tv_sec element.
3142 * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of
3143 wchar_t for function declarations and defintions.
3145 * misc/sys/select.h: Define __need_time_t before including <time.h>.
3146 Define suseconds_t if it hasn't happened yet.
3148 * iconv/gconv.h: Define __need_wchar_t before including <stddef.h>.
3150 * conform/data/sys/uio.h-data: Allow UIO_MAXIOV to be defined.
3152 * sysdeps/generic/stdint.h: Don't get definition of wchar_t from
3155 * conform/data/stddef.h-data: Remove wint_t.
3157 * conform/conformtest.pl: Change namespace test to take #undef
3160 * conform/data/netinet/in.h-data: Fix typo in allow-header line.
3162 * conform/data/sys/socket.h-data: Add sockatmark.
3164 2001-08-17 Ulrich Drepper <drepper@redhat.com>
3166 * io/fts.c: Update from recent BSD source.
3168 2001-08-17 Roland McGrath <roland@frob.com>
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]:
3174 2001-08-17 Ulrich Drepper <drepper@redhat.com>
3176 * locale/duplocale.c (__duplocale): Also initialize the special
3179 * conform/data/netdb.h-data: Adjust gai_strerror return type.
3181 2001-08-17 Andreas Jaeger <aj@suse.de>
3183 * misc/getpass.c: Include wchar.h for prototypes.
3184 * malloc/obstack.c: Likewise.
3186 2001-08-17 Ulrich Drepper <drepper@redhat.com>
3188 * sunrpc/svc_simple.c (universal): Use __write instead of write.
3190 * wcsmbs/wcscoll.c: Also define __wcscoll.
3191 * include/wchar.h: Declare __wcscoll.
3193 * libio/fwprintf.c: Use __vfwprintf instead of vfwprintf.
3194 * libio/vwprintf.c: Likewise.
3195 * libio/wprintf.c: Likewise.
3197 * iconv/gconv_cache.c: Use __munmap instead of munmap.
3199 2001-08-16 Ulrich Drepper <drepper@redhat.com>
3201 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
3203 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
3204 wcslen, and __wcscoll instead of wcscoll.
3206 * sysdeps/unix/sockatmark.c (sockatmark): Use __ioctl instead of ioctl.
3208 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Use
3209 __getuid instead of getuid.
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.
3216 * libio/tst-ungetwc2.c (main): Define str const.
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.
3250 * po/it.po: Update from translation team.
3252 * misc/err.c: Handle wide oriented stderr stream.
3254 2001-08-14 Tom Rix <trix@redhat.com>
3256 * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV.
3257 * iconv/Makefile: Fix gconv_cache.c CFLAGS.
3259 2001-08-13 Tom Rix <trix@redhat.com>
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
3265 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com>
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):
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):
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.
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.
3285 2001-08-15 Ulrich Drepper <drepper@redhat.com>
3287 * misc/error.c (error): Handle wide oriented stderr stream correctly.
3288 (error_at_line): Likewise.
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.
3297 See ChangeLog.12 for earlier changes.