1 2003-06-03 Ulrich Drepper <drepper@redhat.com>
3 * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow
4 DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043].
5 * posix/globtest.sh: Adjust for this change.
7 2003-06-02 Ulrich Drepper <drepper@redhat.com>
9 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_open): Call getsockname
10 to get the actual PID value used in the records passed up.
11 (getifaddrs): Don't initialize nh.pid here.
13 2003-06-02 Ulrich Drepper <drepper@redhat.com>
15 * sysdeps/unix/sysv/linux/ifaddrs.c (netlink_receive): Minor
18 * po/zh_CN.po: Update from translation team.
20 * posix/getconf.c (main): Also recognize names without the
23 * elf/Makefile (CFLAGS-dl-lookup.c): Define.
25 2003-06-02 Bernd Schmidt <bernds@redhat.com>
27 * sysdeps/i386/fpu/bits/mathinline.h (sqrt, __sqrtl, ldexp,
28 ldexpf, ldexpl): Only define if __FAST_MATH__.
30 2003-06-02 Richard C. Bilson <rcbilson@plg.uwaterloo.ca>
32 Replace hard-coded offsets into struct sigcontext with generated file.
33 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: New file.
34 * sysdeps/unix/sysv/linux/ia64/Makefile
35 [$(subdir) = stdlib] (gen-as-const-headers): Add it.
36 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h: Include it instead of
37 defining SC_* macros here.
39 2003-06-02 Jakub Jelinek <jakub@redhat.com>
41 * sysdeps/unix/sysv/linux/bits/sched.h (CLONE_PID): Remove.
43 2003-06-01 Jakub Jelinek <jakub@redhat.com>
45 * sysdeps/i386/dl-machine.h: Include <sysdep.h>.
47 2003-06-01 Ulrich Drepper <drepper@redhat.com>
49 * test-skeleton.c (main): Request getopt to not reorder the
52 * elf/Makefile (CFLAGS-dl-runtime.c): Define.
54 * wcsmbs/wcpncpy.c (__wcpncpy): Fix broken implementation to match
57 2003-05-31 Ulrich Drepper <drepper@redhat.com>
59 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (SA_NOCLDWAIT): Define.
61 2003-05-31 Jakub Jelinek <jakub@redhat.com>
63 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_plt_conflict):
65 (elf_machine_rela) <case R_PPC64_JMP_SLOT>: Avoid
66 RESOLVE_CONFLICT_FIND_MAP. If RESOLVE_CONFLICT_FIND_MAP is defined,
67 call elf_machine_plt_conflict instead of elf_machine_fixup_plt.
69 2003-05-31 Ulrich Drepper <drepper@redhat.com>
71 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Add
74 * csu/Makefile: Fix Makefile warnings regarding Scrt1.o.
76 * libio/fileops.c (_IO_file_open): Don't mark as inline.
78 * sysdeps/ia64/elf/initfini.c (gmon_initializer): Mark with
81 2003-05-30 Ulrich Drepper <drepper@redhat.com>
83 * scripts/config.guess: Update from master copy.
84 * scripts/config.sub: Likewise.
86 2003-05-30 Guido Guenther <agx@sigxcpu.org>
88 * sysdeps/mips/mips64/bsd-_setjmp.S: Include <sys/asm.h> for
89 SETUP_GP64 and friends.
90 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Fix register
91 names in internal_syscall{6,7}.
92 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
93 * sysdeps/unix/sysv/linux/mips/pread.c [_MIPS_SIM == _ABI64]: Fix
94 number of syscall arguments.
95 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
96 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
97 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
99 2003-05-30 Andreas Jaeger <aj@suse.de>
101 * sysdeps/x86_64/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
104 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Add CFI
107 * sysdeps/generic/sysdep.h: Add CFI_* macros for C files.
109 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
112 2003-05-30 Jakub Jelinek <jakub@redhat.com>
114 * sysdeps/powerpc/powerpc32/elf/start.S: Make code compilable with
117 2003-05-11 Andreas Schwab <schwab@suse.de>
119 * Makerules: Always use -MP together with -MD.
120 (sed-remove-dotot): Substitute $(..) also at start of line.
121 ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES.
122 Generated defines with a single compiler call.
123 Use $(sed-remove-dotdot).
124 * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead
125 of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx).
126 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
127 Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx).
128 * sysdeps/unix/sysv/linux/mips/Makefile
129 ($(objpfx)syscall-%.h): Likewise.
131 2003-05-28 Roland McGrath <roland@redhat.com>
133 * malloc/malloc.h [! __GNUC__] (__const): Define if undefined.
135 2003-05-26 Aldy Hernandez <aldyh@redhat.com>
137 * soft-fp/soft-fp.h (FP_EX_UNDERFLOW): Define to 0.
139 2003-05-28 Roland McGrath <roland@redhat.com>
141 * sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
142 rt_sigprocmask system call.
143 * sysdeps/unix/sysv/linux/ia64/ucontext_i.h (SC_MASK): Fix value.
144 From Peter A. Buhr <pabuhr@plg2.math.uwaterloo.ca>.
146 2003-05-28 Ulrich Drepper <drepper@redhat.com>
148 * include/libc-symbols.h: Define hidden attribute for real also if
149 LIBC_NONSHARED is defined. Patch by Jakub Jelinek.
151 * csu/Makefile: Add rules to build Scrt1.o.
152 * sysdeps/i386/elf/start.S: Make code compilable with SHARED.
153 * sysdeps/x86_64/elf/start.S: Likewise.
155 2003-05-27 Jakub Jelinek <jakub@redhat.com>
157 * stdio-common/vfprintf.c (process_arg, process_string_arg): Use
158 pa_int/pa_u_int instead of pa_short_int, pa_u_short_int and pa_char.
159 * stdio-common/printf-parse.h (union printf_arg): Remove pa_char,
160 pa_short_int, pa_u_short_int and pa_float.
162 2003-05-26 Jakub Jelinek <jakub@redhat.com>
164 * libio/strops.c (_IO_str_init_static): Change into a wrapper around
165 _IO_str_init_static_internal.
166 (_IO_str_init_static_internal): Moved from _IO_str_init_static,
167 change size argument to _IO_size_t, don't limit sprintf to 64M.
168 (_IO_str_init_readonly): Call _IO_str_init_static_internal.
169 * libio/wstrops.c (_IO_wstr_init_static): Change size argument to
170 _IO_size_t, don't limit swprintf to 256M.
171 (_IO_wstr_init_readonly): Remove.
172 * libio/libioP.h (_IO_str_init_static_internal, _IO_wstr_init_static):
174 (_IO_wstr_init_readonly): Remove prototype.
175 * libio/iovsprintf.c (_IO_vsprintf): Use
176 _IO_str_init_static_internal instead of INTUSE(_IO_str_init_static).
177 * libio/iovsscanf.c (_IO_vsscanf): Likewise.
178 * libio/memstream.c (open_memstream): Likewise.
179 * libio/obprintf.c (_IO_obstack_vfprintf): Likewise.
180 * libio/vasprintf.c (_IO_vasprintf): Likewise.
181 * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
182 * stdio-common/tst-sprintf.c (main): Add new test.
184 2003-05-26 Ulrich Drepper <drepper@redhat.com>
186 * stdio-common/vfprintf.c (vfprintf): Be bug-compatible with some
187 other implementation in respect of multiple uses of parameter with
190 2003-05-25 Ulrich Drepper <drepper@redhat.com>
192 * sysdeps/unix/sysv/linux/kernel-features.h: Define
193 __ASSUME_FUTEX_REQUEUE for >= 2.5.70.
195 2003-05-22 Andreas Jaeger <aj@suse.de>
197 * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Add CFI
199 * sysdeps/unix/sysv/linux/x86_64/time.S: Likewise.
200 * sysdeps/x86_64/strtok.S: Likewise.
202 2003-05-20 Guido Guenther <agx@sigxcpu.org>
204 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Change SI_ASYNCNL
205 to -60 and define SI_TKILL.
207 2003-05-21 H.J. Lu <hongjiu.lu@intel.com>
209 * math/test-fenv.c (feexcp_nomask_test): Fix comment.
210 (feexcp_mask_test): Likewise.
212 2003-05-21 Ulrich Drepper <drepper@redhat.com>
214 * locale/programs/locale.c (main): Fix typo in last patch.
216 * csu/elf-init.c: Mark __preinit_array_start, __preinit_array_end,
217 __init_array_start, __init_array_end, __fini_array_start, and
218 __fini_array_end as hidden.
220 2003-05-21 Petter Reinholdtsen <pere@hungry.com>
222 * locale/programs/locale.c (main): Report an error if setlocale()
223 fails [PR libc/2254].
225 2003-05-21 Jakub Jelinek <jakub@redhat.com>
227 * sysdeps/unix/sysv/linux/s390/system.c: New file.
229 2003-05-21 Jakub Jelinek <jakub@redhat.com>
231 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (LOADARGS_0,
232 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
233 LOADARGS_6): Don't error if syscall argument is a string literal.
234 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h (LOADARGS_0,
235 LOADARGS_1, LOADARGS_2, LOADARGS_3, LOADARGS_4, LOADARGS_5,
236 LOADARGS_6): Likewise.
238 2003-05-21 Andreas Jaeger <aj@suse.de>
240 * sysdeps/generic/sysdep.h (cfi_offset, cfi_startproc,
241 cfi_endproc, cfi_def_cfa, cfi_def_ccfa_register,
242 cfi_def_cfa_offset, cfi_adjust_cfa_offset, cfi_offset): Define.
244 * sysdeps/x86_64/sysdep.h (CALL_MCOUNT): Add cfi directives.
248 * configure.in: Test for asm cfi directives.
250 * config.h.in: Add HAVE_ASM_CFI_DIRECTIVES.
252 2003-05-17 Andreas Jaeger <aj@suse.de>
254 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Revert last patch.
256 * rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.
258 2003-05-16 Ulrich Drepper <drepper@redhat.com>
260 * rt/Makefile (tests): Add tst-clock_nanosleep.
261 * rt/tst-clock_nanosleep.c: New file.
262 * posix/Makefile (tests): Add tst-nanosleep.
263 * posix/tst-nanosleep.c: New file.
265 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P): Fix definition.
267 * include/features.h (__USE_XOPEN2K): Define also for
268 _POSIX_C_SOURCE>=200112L.
270 * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Fold
271 SI_TKILL code into SI_USER.
272 * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Likewise.
274 * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
276 2003-05-15 Jakub Jelinek <jakub@redhat.com>
278 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow):
279 Remove sym argument, always use refsym.
280 (__process_machine_rela): Adjust callers.
281 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
283 * sysdeps/powerpc/powerpc32/dl-machine.h (_dl_reloc_overflow):
285 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
287 2003-05-15 Ulrich Drepper <drepper@redhat.com>
289 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Fix typo
290 (DL_NEED_SYSINFO -> NEED_DL_SYSINFO). If aux value is not known
291 print numeric values.
293 2003-05-12 Thorsten Kukuk <kukuk@suse.de>
295 * inet/netinet/igmp.h: Sync with Linux Kernel 2.5.69 and *BSD.
297 2003-05-14 Andreas Schwab <schwab@suse.de>
299 * sysdeps/unix/sysv/linux/ia64/umount.c: New file.
301 2003-05-14 Jakub Jelinek <jakub@redhat.com>
303 * elf/rtld.c (dl_main): For LD_TRACE_PRELINKING print search scope
304 even if no DT_NEEDED is present.
306 2003-05-13 David Mosberger <davidm@hpl.hp.com>
308 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix the fix from
309 2003-03-27: setjmp is NOT a leaf-routine (due to the call to
310 __sigjmp_save) so we can't keep the saved unat value in a scratch
311 register (r16). Use loc2 instead.
313 2003-05-13 Ulrich Drepper <drepper@redhat.com>
315 * csu/Makefile: Do compile elf-init with PIC flag since in dynamic
316 binaries it has to be relocatable.
318 * sysdeps/unix/sysv/linux/waitpid.c: Use waitpid syscall is available.
320 2003-05-12 Steven Munroe <sjmunroe@us.ibm.com>
322 * sysdeps/powerpc/bits/atomic.h
323 (__arch_compare_and_exchange_bool_8_rel): Define.
324 (__arch_compare_and_exchange_bool_16_rel): Define.
325 (__ARCH_REL_INSTR): Define if not already defined.
326 (__arch_atomic_exchange_and_add_32): Add "memory" to clobber list.
327 (__arch_atomic_decrement_if_positive_32):
328 Add "memory" to clobber list.
329 (__arch_compare_and_exchange_val_32_acq): Remove release sync.
330 (__arch_compare_and_exchange_val_32_rel): Define.
331 (__arch_atomic_exchange_32): Remove.
332 (__arch_atomic_exchange_32_acq): Define.
333 (__arch_atomic_exchange_32_rel): Define.
334 (atomic_compare_and_exchange_val_rel): Define.
335 (atomic_exchange_acq): Use __arch_atomic_exchange_*_acq forms.
336 (atomic_exchange_rel): Define.
337 * sysdeps/powerpc/powerpc32/bits/atomic.h
338 (__arch_compare_and_exchange_bool_32_acq): Remove release sync.
339 (__arch_compare_and_exchange_bool_32_rel): Define.
340 (__arch_compare_and_exchange_bool_64_rel): Define.
341 (__arch_compare_and_exchange_val_64_rel): Define.
342 (__arch_atomic_exchange_64): Remove.
343 (__arch_atomic_exchange_64_acq): Define.
344 (__arch_atomic_exchange_64_rel): Define.
345 * sysdeps/powerpc/powerpc64/bits/atomic.h
346 (__arch_compare_and_exchange_bool_32_rel): Define.
347 (__arch_compare_and_exchange_bool_64_acq): Remove release sync.
348 (__arch_compare_and_exchange_bool_64_rel): Define.
349 (__arch_compare_and_exchange_val_64_acq): Remove release sync.
350 (__arch_compare_and_exchange_val_64_rel): Define.
351 (__arch_atomic_exchange_64): Remove.
352 (__arch_atomic_exchange_64_acq): Define.
353 (__arch_atomic_exchange_64_rel): Define.
354 (__arch_atomic_exchange_and_add_64): Add "memory" to clobber list.
355 (__arch_atomic_decrement_if_positive_64):
356 Add "memory" to clobber list.
357 [!UP](__ARCH_REL_INSTR): Define as lwsync.
359 2003-05-11 Andreas Schwab <schwab@suse.de>
361 * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
363 2003-05-11 Ulrich Drepper <drepper@redhat.com>
365 * time/tst-strftime.c (do_test): Add tests for - flag.
367 2003-05-11 Jim Meyering <jim@meyering.net>
369 * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
370 the space-padded-by-default conversion specifiers, %e, %k, %l.
372 2003-05-11 Andreas Schwab <schwab@suse.de>
374 * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
376 2003-05-10 Ulrich Drepper <drepper@redhat.com>
378 * sysdeps/generic/bits/sched.h: Define cpu_set_t only if not
379 already defined and when really needed.
380 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
382 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
384 * sysdeps/unix/sysv/linux/netinet/igmp.h: Don't include kernel
385 headers, add defines from kernel header, move it from here...
386 * inet/netinet/igmp.h: ... to here.
387 * inet/Makefile (headers): Add netinet/igmp.h.
388 * sysdeps/unix/sysv/linux/Makefile: Remove netinet/igmp.h.
389 * sysdeps/unix/sysv/linux/Dist: Remove netinet/igmp.h.
391 2003-05-10 Ulrich Drepper <drepper@redhat.com>
393 * sysdeps/pthread/lio_listio64.c (lio_listio64): If SIG == NULL,
394 use dummy sigevent structure with SIGEV_NONE [PR libc/5015].
396 2003-05-09 Thorsten Kukuk <kukuk@suse.de>
398 * libio/bits/stdio.h: Sync prototypes with libio/stdio.h
399 (remove __THROW from possible cancellation points).
401 2003-05-10 Ulrich Drepper <drepper@redhat.com>
403 * posix/sched.h (CPU_SETSIZE): Define.
405 2003-05-09 Ulrich Drepper <drepper@redhat.com>
407 * Makeconfig (gnulib): Remove -lgcc_eh again.
409 * posix/sched.h: Change prototypes of sched_getaffinity and
410 sched_setaffinity. Define CPU_SET, CPU_CLR, CPU_ISSET, and CPU_ZERO.
411 * sysdeps/generic/sched_getaffinity.c: Adjust definition.
412 * sysdeps/generic/sched_setaffinity.c: Likewise.
413 * sysdeps/generic/bits/sched.h: Define __CPU_SETSIZE, __NCPUBITS,
414 __CPUELT, __CPUMASK, cpu_set_t, __cpu_mask, __CPU_ZERO, __CPU_SET,
415 __CPU_CLR, and __CPU_ISSET.
416 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
417 * sysdeps/unix/sysv/linux/sched_getaffinity.c: New file.
418 * sysdeps/unix/sysv/linux/sched_setaffinity.c: New file.
420 * include/atomic.h (atomic_exchange_acq): Renamed from atomic_exchange.
421 (atomic_exchange_rel): New #define.
422 * sysdeps/ia64/bits/atomic.h: Likewise.
423 * sysdeps/i386/i486/bits/atomic.h (atomic_exchange_acq): Renamed from
425 * sysdeps/m68k/m68020/bits/atomic.h: Likewise.
426 * sysdeps/powerpc/bits/atomic.h: Likewise.
427 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Likewise.
428 * sysdeps/sparc/sparc64/bits/atomic.h: Likewise.
429 * sysdeps/x86_64/bits/atomic.h: Likewise.
430 * csu/tst-atomic.c: Use atomic_exchange_acq instead of atomic_exchange.
432 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
434 2003-05-08 Ulrich Drepper <drepper@redhat.com>
436 * malloc/thread-m.h: Remove special handling of thread_atfork if
437 HAVE_register_atfork_malloc is defined.
439 2003-05-07 Andreas Jaeger <aj@suse.de>
441 * sysdeps/unix/sysv/linux/x86_64/syscall.S: Add DWARF2 unwind
444 2003-05-06 Ulrich Drepper <drepper@redhat.com>
446 * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init.
447 * libio/oldiofopen.c (_IO_old_fopen): Likewise.
448 * libio/libioP.h: Declare _IO_old_init.
449 * libio/genops.c (_IO_no_init): Split in two. New function
452 2003-05-05 Ulrich Drepper <drepper@redhat.com>
454 * sysdeps/generic/enbl-secure.c (__libc_enable_secure_decided): New
456 (__libc_init_secure): Don't do anything if __libc_enable_secure_decided
458 * include/unistd.h: Declare __libc_enable_secure_decided.
459 * elf/dl-support.c (_dl_aux_init): Recognize AT_UID, AT_EUID, AT_GID,
460 and AT_EGID. If all found, set __libc_enable_secure and
461 __libc_enable_secure_decided.
463 * sysdeps/generic/libc-start.c [!SHARED]: Call
464 __libc_check_standard_fds after __libc_init_first.
466 2003-05-05 Roland McGrath <roland@redhat.com>
468 * Makerules (common-before-compile): New variable.
469 ($(common-objpfx)%.make): Depend on that instead of $(before-compile).
470 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise. Move this rule
471 to after all setting of before-compile.
473 2003-05-05 Jakub Jelinek <jakub@redhat.com>
475 * sysdeps/ia64/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
476 __arch_compare_and_exchange_val_16_acq): Cast 0 to mem's type.
477 * sysdeps/powerpc/powerpc32/bits/atomic.h
478 (__arch_compare_and_exchange_val_64_acq): Likewise.
479 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
480 (__arch_compare_and_exchange_val_8_acq,
481 __arch_compare_and_exchange_val_16_acq,
482 __arch_compare_and_exchange_val_64_acq): Likewise.
483 * sysdeps/sparc/sparc64/bits/atomic.h
484 (__arch_compare_and_exchange_val_8_acq,
485 __arch_compare_and_exchange_val_16_acq): Likewise.
486 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq,
487 __arch_compare_and_exchange_val_16_acq,
488 __arch_compare_and_exchange_val_64_acq): Likewise.
489 * sysdeps/unix/sysv/linux/sh/bits/atomic.h
490 (__arch_compare_and_exchange_val_64_acq): Likewise.
491 * sysdeps/s390/s390-64/backtrace.c (__backtrace): Add cast to shut
493 * sysdeps/s390/fpu/fegetenv.c (fegetenv): Likewise.
495 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
496 (INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0):
497 Return long instead of int.
498 (INTERNAL_SYSCALL_ERROR_P): Cast val to unsigned long, replace
499 0xfffff001u with -4095UL.
501 2003-05-05 Andreas Jaeger <aj@suse.de>
503 * sysdeps/x86_64/fpu_control.h: New from i386.
505 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_semtimedop):
506 Define if not defined.
508 * sunrpc/Makefile (generated-dirs): New variable.
509 * resolv/Makefile (generated): New variable.
511 2003-05-04 Roland McGrath <roland@redhat.com>
513 * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
514 Depend on $(before-compile).
516 * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
517 pattern rule. The implicit rule could be ruled out when $(objpfx)
518 didn't exist at the time of its consideration (ugh!).
520 * Makerules (+make-deps): Fix target matching.
521 Use $(sed-remove-dotdot).
523 2003-05-03 Ulrich Drepper <drepper@redhat.com>
525 * nscd/nscd.c (main): Parse config file right after parsing
526 parameters. Then, if get_stats is true, call receive_print_stats.
527 Drop parameter from nscd_init call.
528 (get_stats): New variable.
529 (parse_opt): Set get_stats, don't call receive_print_stats here.
530 * nscd/nscd.h: Declare dbs, stat_user, and stat_uid. Adjust nscd_init
532 * nscd/connections.c (stat_user, stat_uid): New variables.
534 (nscd_init): Don't read configuration file here. Drop parameter.
535 (handle_request): Cleanup handling of non-database lookup requests.
536 * nscd/nscd_conf.c (nscd_parse_file): Recognize stat-user entry.
537 Get UID of the specified user. Use xstrdup instead of strdup.
538 * nscd/nscd_stat.c (receive_print_stats): Check UID. If not zero,
540 * nscd/Makefile (nscd-modules): Add xstrdup.
541 * nscd/nscd.conf: Document stat-user entry.
543 2003-05-03 H.J. Lu <hongjiu.lu@intel.com>
545 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_semtimedop): Define
548 2003-04-22 Roland McGrath <roland@redhat.com>
550 * elf/elf.h (AT_SYSINFO_EHDR): New macro, replaces AT_SYSINFO_EH_FRAME.
551 * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
552 dl_sysinfo_eh_frame member, add dl_sysinfo_dso member instead.
553 * elf/dl-support.c: Update defn.
554 * sysdeps/generic/libc-start.c: Don't call __register_frame_info_bases.
555 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
556 Set GL(dl_sysinfo_dso) from AT_SYSINFO_EHDR.
557 (_dl_show_auxv): Grok AT_SYSINFO_EHDR, not AT_SYSINFO_EH_FRAME.
558 * elf/rtld.c (dl_main) [NEED_DL_SYSINFO]: If GL(dl_sysinfo_dso) is
559 set, set up a link_map for the preloaded, prelinked object.
561 2003-05-03 Roland McGrath <roland@redhat.com>
563 * sysdeps/gnu/Makefile (generated): Append errlist-compat.c here, ...
564 * stdio-common/Makefile: ... not here.
566 * csu/Makefile ($(objpfx)initfini.s): Depend on $(before-compile).
567 * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
569 2003-05-02 Ulrich Drepper <drepper@redhat.com>
571 * sysdeps/unix/sysv/linux/s390/semtimedop.c: New file.
573 * sysdeps/unix/sysv/linux/alpha/ipc_priv.h (IPCOP_semtimedop): Define.
575 * sysdeps/generic/dl-fptr.c (_dl_make_fptr): Use 0 not NULL for
576 comparing ftab elements.
577 (_dl_unmap): Fix typo in test.
578 (_dl_make_fptr): Fix typos introduced in last change.
580 * sysdeps/generic/dl-fptr.c: Put back one optimization from the
581 original patch. Use non-exported symbols. Mark translatable
582 strings. Pretty printing.
584 2003-05-02 Roland McGrath <roland@redhat.com>
586 * Makerules (do-stamp): Do $(make-target-directory).
588 2003-04-07 H.J. Lu <hjl@gnu.org>
590 * sysdeps/generic/dl-fptr.c: Modify to remove the lock.
592 2003-04-03 H.J. Lu <hjl@gnu.org>
594 * sysdeps/ia64/dl-fptr.c: Moved to ...
595 * sysdeps/generic/dl-fptr.c: Here.
597 * sysdeps/generic/dl-fptr.h: New.
598 * sysdeps/ia64/dl-fptr.h: New.
600 * sysdeps/ia64/dl-symaddr.c: Moved to ...
601 * sysdeps/generic/dl-symaddr.c: here.
603 * sysdeps/ia64/dl-machine.h: Include <dl-fptr.h>.
604 (IA64_BOOT_FPTR_TABLE_LEN): Removed.
605 (ia64_fdesc): Likewise.
606 (ia64_fdesc_table): Likewise.
607 (__ia64_make_fptr): Likewise.
608 (__ia64_init_bootstrap_fdesc_table): Replace __ia64_boot_fptr_table
609 with _dl_boot_fptr_table.
610 (elf_machine_runtime_setup): Replace `struct ia64_fdesc' with
612 (elf_machine_rela): Replace __ia64_make_fptr with _dl_make_fptr.
614 2003-05-01 Roland McGrath <roland@redhat.com>
616 * sysdeps/generic/bp-thunks.h: Protect includes with [!__ASSEMBLER__].
617 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
619 * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h):
620 Use $(make-target-directory).
621 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
623 * Makerules (compile-mkdep-flags): New variable, pass -MD -MF $@.d.
624 (compile-command.S): Don't use ifndef. Append $(compile-mkdep-flags).
625 (compile-command.s, compile-command.c): Likewise.
626 ($(objpfx)%.d): All such pattern rules removed.
627 ($(+sysdir_pfx)sysd-rules): Don't generate them.
628 ($(common-objpfx)dummy.d): Target removed.
629 (make-dummy-dep): Variable removed.
630 (generate-md5): Likewise.
631 (%.d: %.dt): New pattern rule.
632 (+depfiles): Use $(wildcard) function to get just existing *.d files
633 and .d files for existing *.dt files.
634 (common-clean): Remove all *.d and *.dt files.
635 (before-compile): Add $(objpfx). when it doesn't exist,
636 regardless of $(no_deps).
637 * elf/rtld-Rules ($(objpfx)rtld-%.d): All such pattern rules removed.
638 (rtld-depfiles): Use .os.d instead of .d names.
639 Include existing *.d files and .d files for existing *.dt files.
641 * Makerules ($(common-objpfx)%.make): Protect with [! subdir].
642 Use -MD, -MT and -MF flags instead of SUNPRO_DEPENDENCIES variable.
644 * sysdeps/unix/Makefile ($(common-objpfx)s-%.d): Remove compat.h hack.
645 Do s-*.d includes only if we have some syscall routines in this subdir.
647 * include/libc-symbols.h (libc_freeres_ptr): Use %nobits instead of
648 @nobits. The former is accepted by gas on any ELF platform.
650 2003-05-01 Ulrich Drepper <drepper@redhat.com>
652 * sysdeps/unix/sysv/linux/semtimedop.c: New file.
654 * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
656 2003-04-29 Andreas Schwab <schwab@suse.de>
658 * string/test-strcat.c (do_one_test): Fix attribute name.
660 2003-04-30 Alexandre Oliva <aoliva@redhat.com>
662 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
663 uc_flags long for all ABIs.
665 2003-04-30 Andreas Jaeger <aj@suse.de>
667 * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
668 (DR_CONTROL_RESERVED): Use correct value for 64-bit.
669 Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>.
672 2003-04-30 Ulrich Drepper <drepper@redhat.com>
674 * malloc/malloc.c (mEMALIGn): Define alias __memalign_internal.
675 (__posix_memalign): Use __memalign_internal instead of memalign.
677 2003-04-29 Roland McGrath <roland@redhat.com>
679 * configure.in: Search for AUTOCONF unconditionally.
680 Just don't complain about missing it under --without-cvs.
682 * include/libc-symbols.h (__symbol_set_attribute): New macro,
683 give hidden for [SHARED] and weak for [! SHARED].
684 (symbol_set_declare): Use that. Never need weak_extern these days.
685 * Makerules ($(common-objpfx)shlib.lds): Go back to using PROVIDE.
686 Depend on $(..)Makerules.
688 2003-04-29 Ulrich Drepper <drepper@redhat.com>
690 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Use __ protected
691 variants of socket, bind, recvmsg, and sendto.
693 * sysdeps/i386/fpu/ftestexcept.c: Also check SSE status word.
695 * include/signal.h: Use libc_hidden_proto for sigaddset and sigdelset.
696 * signal/sigaddset.c: Add libc_hidden_def.
697 * signal/sigdelset.c: Likewise.
699 2003-04-29 Jakub Jelinek <jakub@redhat.com>
701 * sysdeps/i386/i486/string-inlines.c (__memcpy_g, __strchr_g): Move
702 to the end of the file.
704 * configure.in: Change __oline__ to $LINENO.
705 (HAVE_BUILTIN_REDIRECTION): New check.
706 * config.h.in (HAVE_BUILTIN_REDIRECTION): Add.
707 * include/libc-symbols.h (libc_hidden_builtin_proto,
708 libc_hidden_builtin_def, libc_hidden_builtin_weak,
709 libc_hidden_builtin_ver): Define.
710 * include/string.h (memchr, memcpy, memmove, memset, strcat, strchr,
711 strcmp, strcpy, strcspn, strlen, strncmp, strncpy, strpbrk, strrchr,
712 strspn, strstr): Add libc_hidden_builtin_proto.
713 * intl/plural.y: Include string.h.
714 * sysdeps/alpha/alphaev6/memchr.S (memchr): Add
715 libc_hidden_builtin_def.
716 * sysdeps/alpha/alphaev6/memcpy.S (memcpy): Likewise.
717 * sysdeps/alpha/alphaev6/memset.S (memset): Likewise.
718 * sysdeps/alpha/alphaev67/strcat.S (strcat): Likewise.
719 * sysdeps/alpha/alphaev67/strchr.S (strchr): Likewise.
720 * sysdeps/alpha/alphaev67/strlen.S (strlen): Likewise.
721 * sysdeps/alpha/alphaev67/strrchr.S (strrchr): Likewise.
722 * sysdeps/alpha/memchr.S (memchr): Likewise.
723 * sysdeps/alpha/memset.S (memset): Likewise.
724 * sysdeps/alpha/strcat.S (strcat): Likewise.
725 * sysdeps/alpha/strchr.S (strchr): Likewise.
726 * sysdeps/alpha/strcmp.S (strcmp): Likewise.
727 * sysdeps/alpha/strcpy.S (strcpy): Likewise.
728 * sysdeps/alpha/strlen.S (strlen): Likewise.
729 * sysdeps/alpha/strncmp.S (strncmp): Likewise.
730 * sysdeps/alpha/strncpy.S (strncpy): Likewise.
731 * sysdeps/alpha/strrchr.S (strrchr): Likewise.
732 * sysdeps/arm/memset.S (memset): Likewise.
733 * sysdeps/arm/strlen.S (strlen): Likewise.
734 * sysdeps/generic/memchr.c (memchr): Likewise.
735 * sysdeps/generic/memcpy.c (memcpy): Likewise.
736 * sysdeps/generic/memmove.c (memmove): Likewise.
737 * sysdeps/generic/memset.c (memset): Likewise.
738 * sysdeps/generic/strcat.c (strcat): Likewise.
739 * sysdeps/generic/strchr.c (strchr): Likewise.
740 * sysdeps/generic/strcmp.c (strcmp): Likewise.
741 * sysdeps/generic/strcpy.c (strcpy): Likewise.
742 * sysdeps/generic/strcspn.c (strcspn): Likewise.
743 * sysdeps/generic/strlen.c (strlen): Likewise.
744 * sysdeps/generic/strncmp.c (strncmp): Likewise.
745 * sysdeps/generic/strncpy.c (strncpy): Likewise.
746 * sysdeps/generic/strpbrk.c (strpbrk): Likewise.
747 * sysdeps/generic/strrchr.c (strrchr): Likewise.
748 * sysdeps/generic/strspn.c (strspn): Likewise.
749 * sysdeps/generic/strstr.c (strstr): Likewise.
750 * sysdeps/i386/i486/strcat.S (strcat): Likewise.
751 * sysdeps/i386/i486/strlen.S (strlen): Likewise.
752 * sysdeps/i386/i586/memcpy.S (memcpy): Likewise.
753 * sysdeps/i386/i586/memset.S (memset): Likewise.
754 * sysdeps/i386/i586/strchr.S (strchr): Likewise.
755 * sysdeps/i386/i586/strcpy.S (strcpy): Likewise.
756 * sysdeps/i386/i586/strlen.S (strlen): Likewise.
757 * sysdeps/i386/i686/memcpy.S (memcpy): Likewise.
758 * sysdeps/i386/i686/memmove.S (memmove): Likewise.
759 * sysdeps/i386/i686/memset.S (memset): Likewise.
760 * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
761 * sysdeps/i386/memchr.S (memchr): Likewise.
762 * sysdeps/i386/memset.c (memset): Likewise.
763 * sysdeps/i386/strchr.S (strchr): Likewise.
764 * sysdeps/i386/strcspn.S (strcspn): Likewise.
765 * sysdeps/i386/strlen.c (strlen): Likewise.
766 * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
767 * sysdeps/i386/strrchr.S (strrchr): Likewise.
768 * sysdeps/i386/strspn.S (strspn): Likewise.
769 * sysdeps/ia64/memchr.S (memchr): Likewise.
770 * sysdeps/ia64/memcpy.S (memcpy): Likewise.
771 * sysdeps/ia64/memmove.S (memmove): Likewise.
772 * sysdeps/ia64/memset.S (memset): Likewise.
773 * sysdeps/ia64/strcat.S (strcat): Likewise.
774 * sysdeps/ia64/strchr.S (strchr): Likewise.
775 * sysdeps/ia64/strcmp.S (strcmp): Likewise.
776 * sysdeps/ia64/strcpy.S (strcpy): Likewise.
777 * sysdeps/ia64/strlen.S (strlen): Likewise.
778 * sysdeps/ia64/strncmp.S (strncmp): Likewise.
779 * sysdeps/ia64/strncpy.S (strncpy): Likewise.
780 * sysdeps/m68k/memchr.S (memchr): Likewise.
781 * sysdeps/m68k/strchr.S (strchr): Likewise.
782 * sysdeps/mips/mips64/memcpy.S (memcpy): Likewise.
783 * sysdeps/mips/mips64/memset.S (memset): Likewise.
784 * sysdeps/mips/memcpy.S (memcpy): Likewise.
785 * sysdeps/mips/memset.S (memset): Likewise.
786 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
787 * sysdeps/powerpc/powerpc32/strchr.S (strchr): Likewise.
788 * sysdeps/powerpc/powerpc32/strcmp.S (strcmp): Likewise.
789 * sysdeps/powerpc/powerpc32/strcpy.S (strcpy): Likewise.
790 * sysdeps/powerpc/powerpc32/strlen.S (strlen): Likewise.
791 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
792 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
793 * sysdeps/powerpc/powerpc64/strchr.S (strchr): Likewise.
794 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Likewise.
795 * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Likewise.
796 * sysdeps/powerpc/powerpc64/strlen.S (strlen): Likewise.
797 * sysdeps/powerpc/strcat.c (strcat): Likewise.
798 * sysdeps/sparc/sparc32/memchr.S (memchr): Likewise.
799 * sysdeps/sparc/sparc32/memcpy.S (memcpy): Likewise.
800 * sysdeps/sparc/sparc32/memset.S (memset): Likewise.
801 * sysdeps/sparc/sparc32/strcat.S (strcat): Likewise.
802 * sysdeps/sparc/sparc32/strchr.S (strchr, strrchr): Likewise.
803 * sysdeps/sparc/sparc32/strcmp.S (strcmp): Likewise.
804 * sysdeps/sparc/sparc32/strcpy.S (strcpy): Likewise.
805 * sysdeps/sparc/sparc32/strlen.S (strlen): Likewise.
806 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S (memcpy, memmove): Likewise.
807 * sysdeps/sparc/sparc64/memchr.S (memchr): Likewise.
808 * sysdeps/sparc/sparc64/memcpy.S (memcpy, memmove): Likewise.
809 * sysdeps/sparc/sparc64/memset.S (memset): Likewise.
810 * sysdeps/sparc/sparc64/strcat.S (strcat): Likewise.
811 * sysdeps/sparc/sparc64/strchr.S (strchr, strrchr): Likewise.
812 * sysdeps/sparc/sparc64/strcmp.S (strcmp): Likewise.
813 * sysdeps/sparc/sparc64/strcpy.S (strcpy): Likewise.
814 * sysdeps/sparc/sparc64/strcspn.S (strcspn): Likewise.
815 * sysdeps/sparc/sparc64/strlen.S (strlen): Likewise.
816 * sysdeps/sparc/sparc64/strncmp.S (strncmp): Likewise.
817 * sysdeps/sparc/sparc64/strncpy.S (strncpy): Likewise.
818 * sysdeps/sparc/sparc64/strpbrk.S (strpbrk): Likewise.
819 * sysdeps/sparc/sparc64/strspn.S (strspn): Likewise.
820 * sysdeps/sh/memcpy.S (memcpy): Likewise.
821 * sysdeps/sh/memset.S (memset): Likewise.
822 * sysdeps/sh/strlen.S (strlen): Likewise.
823 * sysdeps/s390/s390-32/memchr.S (memchr): Likewise.
824 * sysdeps/s390/s390-32/memcpy.S (memcpy): Likewise.
825 * sysdeps/s390/s390-32/memset.S (memset): Likewise.
826 * sysdeps/s390/s390-32/strcmp.S (strcmp): Likewise.
827 * sysdeps/s390/s390-32/strcpy.S (strcpy): Likewise.
828 * sysdeps/s390/s390-32/strncpy.S (strncpy): Likewise.
829 * sysdeps/s390/s390-64/memchr.S (memchr): Likewise.
830 * sysdeps/s390/s390-64/memcpy.S (memcpy): Likewise.
831 * sysdeps/s390/s390-64/memset.S (memset): Likewise.
832 * sysdeps/s390/s390-64/strcmp.S (strcmp): Likewise.
833 * sysdeps/s390/s390-64/strcpy.S (strcpy): Likewise.
834 * sysdeps/s390/s390-64/strncpy.S (strncpy): Likewise.
835 * sysdeps/x86_64/memcpy.S (memcpy): Likewise.
836 * sysdeps/x86_64/memset.S (memset): Likewise.
837 * sysdeps/x86_64/strcat.S (strcat): Likewise.
838 * sysdeps/x86_64/strchr.S (strchr): Likewise.
839 * sysdeps/x86_64/strcmp.S (strcmp): Likewise.
840 * sysdeps/x86_64/strcpy.S (strcpy): Likewise.
841 * sysdeps/x86_64/strcspn.S (strcspn): Likewise.
842 * sysdeps/x86_64/strlen.S (strlen): Likewise.
843 * sysdeps/x86_64/strspn.S (strspn): Likewise.
844 * string/string-inlines.c: Move...
845 * sysdeps/generic/string-inlines.c: ...here.
846 (__memcpy_g, __strchr_g): Remove.
847 (__NO_INLINE__): Define before including <string.h>,
848 undefine after. Include bits/string.h and bits/string2.h.
849 * sysdeps/i386/i486/string-inlines.c: New file.
850 * sysdeps/i386/string-inlines.c: New file.
851 * sysdeps/i386/i486/Versions: Remove.
852 All GLIBC_2.1.1 symbols moved...
853 * sysdeps/i386/Versions (libc): ...here.
855 2003-04-29 Ulrich Drepper <drepper@redhat.com>
857 * sysdeps/i386/fpu/Makefile: New file.
858 * sysdeps/i386/fpu/fedisblxcpt.c: Also set SSE control word.
859 * sysdeps/i386/fpu/feenablxcpt.c: Likewise.
860 * sysdeps/i386/fpu/feholdexcpt.c: Likewise.
861 * sysdeps/i386/fpu/fesetround.c: Also set SSE rounding mode
864 2003-04-28 Ulrich Drepper <drepper@redhat.com>
866 * nscd/nscd_getgr_r.c: Compact code a bit. Add some __builtin_expect.
867 * nscd/nscd_getpw_r.c: Likewise.
868 * nscd/nscd_gethst_r.c: Likewise.
870 2003-04-27 Ulrich Drepper <drepper@redhat.com>
872 * nscd/pwdcache.c: Initialize .version element in result.
873 * nscd/grpcache.c: Likewise.
874 * nscd/pwdcache.c: Likewise.
876 2003-04-27 Andreas Schwab <schwab@suse.de>
878 * Makeconfig ($(common-objpfx)sysd-sorted): Fix for running in
881 2003-04-27 Andreas Schwab <schwab@suse.de>
883 * sysdeps/unix/sysv/linux/m68k/semtimedop.S: New file.
885 2003-04-27 Ulrich Drepper <drepper@redhat.com>
887 * nscd/connections.c (client_queued): New variable.
888 (nscd_run): Revamp the loop. Don't call poll except for cleanup
889 threads. Keep track of the number of delays caused because of busy
891 * nscd/nscd.h: Declare client_queued.
892 * nscd/nscd_stat.c: Transmit and print client_queued information.
894 * locale/programs/locale.c (show_info): Use '\177' instead of CHAR_MAX.
896 * Makerules ($(common-objpfx)shlib.lds): Don't use PROVIDE to
897 define __start_libc_freeres_ptrs and __stop___libc_freeres_ptrs.
899 2003-04-26 Ulrich Drepper <drepper@redhat.com>
901 * elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
902 tracking of freed memory in static TLS block.
903 * elf/Makefile: Add rules to build and run tst-tls13.
904 * elf/tst-tls13.c: New file.
905 * elf/tst-tlsmod13.c: New file.
906 * elf/tst-tlsmod13a.c: New file.
908 * elf/tst-tls8.c: Adjust types of variables to avoid warnings.
910 * elf/dl-reloc.c: Pretty printing.
912 2003-04-26 Roland McGrath <roland@redhat.com>
914 * Makerules ($(common-objpfx)shlib.lds): New target.
915 (common-generated): Add it.
916 (build-shlib, build-module): Use that instead of generating every time.
917 ($(common-objpfx)libc.so): Depend on it.
918 (lib%.so rule): Likewise.
919 (build-module-helper-objlist): Remove %.lds.
920 (LDSEDCMD-c.so): Variable removed.
921 * iconvdata/extra-module.mk ($(objpfx)$(mod).so):
922 Depend on $(common-objpfx)shlib.lds.
923 * dlfcn/Makefile ($(test-modules)): Likewise.
925 2003-04-26 Roland McGrath <roland@frob.com>
927 * sysdeps/mach/hurd/tmpfile.c: Remove USE_IN_LIBIO conditionals.
929 2003-04-26 Andreas Schwab <schwab@suse.de>
931 * elf/dl-close.c (remove_slotinfo): Fix missing parens.
933 2003-04-25 Ulrich Drepper <drepper@redhat.com>
935 * nscd/cache.c (cache_search): Keep track of how many chain links
936 we searched and update table statistics.
937 (cache_add): Keep track of how many values are in the table.
938 (prune_cache): Likewise. Keep track of locking success.
939 Print messages about removed entries in separate pass.
940 * nscd/connections.c (handle_request): Don't print debug message here.
941 The caller will do it. Keep track of locking success.
942 (nscd_run): Print debug message. Also print PID of the client process.
943 * nscd/nscd.c (start_time): New variable.
944 (main): Remember start time.
945 * nscd/nscd.h: Declare start_time.
946 (struct database): Add more members for new statistics.
947 * nscd/nscd_stat.c: Add support for sending, receiving, and printing
950 * sysdeps/posix/getaddrinfo.c: Include <stdbool.h>.
952 2003-04-22 Jakub Jelinek <jakub@redhat.com>
954 * include/link.h (NO_TLS_OFFSET): Define to 0 if not defined.
955 * elf/dl-close.c (_dl_close): Use NO_TLS_OFFSET.
956 * elf/dl-object.c (_dl_new_object): Initialize l_tls_offset to
958 * elf/rtld.c (_dl_start_final, _dl_start): Likewise.
959 * elf/dl-reloc.c (CHECK_STATIC_TLS): Use NO_TLS_OFFSET.
960 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Likewise.
961 * sysdeps/powerpc/dl-tls.h (TLS_TPREL_VALUE): Don't subtract
964 2003-04-24 Ulrich Drepper <drepper@redhat.com>
966 * nss/getent.c: Implement alternative host database lookup via
969 * include/ifaddrs.h: New file.
970 * include/netdb.h: Move definitions of AI_V4MAPPED, AI_ALL, and
972 * resolv/netdb.h: ...here.
973 * sysdeps/gnu/ifaddrs.c. Use libc_hidden_def where appropriate.
974 * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
975 * sysdeps/posix/getaddrinfo.c: Implement AI_V4MAPPED, AI_ALL, and
978 2003-04-24 Roland McGrath <roland@redhat.com>
980 * elf/dl-reloc.c (_dl_allocate_static_tls): Add internal_function.
982 2003-04-24 Jakub Jelinek <jakub@redhat.com>
984 * elf/dl-reloc.c (allocate_static_tls): Rename to...
985 (_dl_allocate_static_tls): ... this function. No longer static.
986 (CHECK_STATIC_TLS): Adjust.
987 * sysdeps/generic/ldsodefs.h (_dl_allocate_static_tls): New prototype.
988 * sysdeps/powerpc/powerpc32/dl-machine.h (__process_machine_rela):
989 Add SYM_MAP argument.
990 (elf_machine_rela): Adjust caller. Declare SYM_MAP unconditionally.
991 Check if SYM_MAP != NULL for R_PPC_DTPREL32. Only handle 32-bit
992 TLS relocs here. #ifdef out relocs which never appear in
993 .gnu.conflict section from dl-conflict.c processing.
994 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
995 Add SYM_MAP argument. Handle 16-bit TLS relocs here.
997 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): #ifdef
998 out relocs which never appear in .gnu.conflict section from
999 dl-conflict.c processing.
1000 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
1001 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1002 * sysdeps/i386/dl-machine.h (elf_machine_rela): Likewise.
1003 Use r_type in RESOLVE macro.
1005 2003-04-23 Ulrich Drepper <drepper@redhat.com>
1007 * nis/ypclnt.c (__yp_bind): Expect YPDB parameter to always be !=
1008 NULL. Remove code made redundant by this assumption.
1009 (__yp_unbind): Add call to free. Adjust all callers.
1011 * nis/ypclnt.c (yp_all): Free the dom_binding object after
1014 * grp/initgroups.c (getgrouplist): Don't copy too much into the
1015 user buffer if more groups are found than fit into it.
1017 * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Use
1020 2003-04-23 Jakub Jelinek <jakub@redhat.com>
1022 * sysdeps/posix/getaddrinfo.c (gaih_inet): Check for rc == ERANGE,
1023 not rc == errno. Use extend_alloca.
1025 * elf/tst-tls12.c (main): Fix declaration.
1026 * elf/tst-tls10.c (dummy): Make hidden instead of static.
1027 * elf/tst-tlsmod7.c (dummy): Likewise.
1028 * elf/tst-tlsmod8.c (dummy): Likewise.
1029 * elf/tst-tlsmod9.c (dummy): Likewise.
1031 2003-04-22 Roland McGrath <roland@redhat.com>
1033 * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
1034 (open_not_cancel): Make last argument non-optional.
1035 * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
1036 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
1037 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
1039 * include/tls.h: Protect against multiple inclusion.
1041 2003-04-22 Ulrich Drepper <drepper@redhat.com>
1043 * nscd/nscd-client.h: Add declaration for __nscd_open_socket.
1044 * nscd/nscd_gethst_r.c (__nscd_open_socket): Renamed from
1045 open_socket. Not static anymore.
1046 (nscd_gethst_r): Use __nscd_open_socket.
1047 * nscd/nscd_getgr_r.c (open_socket): Removed.
1048 (nscd_getgr_r): Use __nscd_open_socket.
1049 * nscd/nscd_getpw_r.c (open_socket): Removed.
1050 (nscd_getpw_r): Use __nscd_open_socket.
1052 * nscd/nscd.c (main): Change type of fdn to long int and use strtol.
1053 * nscd/connections.c (handle_request): Add cast to avoid warning.
1055 2003-04-21 Ulrich Drepper <drepper@redhat.com>
1057 * signal/sigfillset.c: Moved to...
1058 * sysdeps/generic/sigfillset.c: ...here. If SIGCANCEL is defined
1059 do not set the corresponding bit.
1061 * sysdeps/unix/sysv/linux/sigprocmask.c: Prevent changing mask for
1063 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Define SI_TKILL.
1064 * sysdeps/unix/sysv/linux/bits/siginfo.h: Define SI_TKILL.
1065 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Define SI_TKILL.
1066 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Define SI_TKILL.
1067 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Define SI_TKILL.
1069 2003-04-20 Ulrich Drepper <drepper@redhat.com>
1071 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast
1072 first syscall parameter to const char*.
1074 2003-04-19 Ulrich Drepper <drepper@redhat.com>
1076 * intl/Makefile ($(objpfx)msgs.h): Use C locale for sed run.
1078 * configure.in: Add AC_PROG_CXX.
1079 * config.make.in (CXX): Define.
1081 * sysdeps/i386/i686/hp-timing.h (HP_TIMING_PRINT): Change type of
1082 __len to size_t to avoid warnings.
1084 2003-04-18 Jes Sorensen <jes@wildopensource.com>
1086 * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux
1088 * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
1090 2003-04-19 Ulrich Drepper <drepper@redhat.com>
1092 * stdlib/cxa_finalize.c (__cxa_finalize): Don't call
1093 UNREGISTER_ATFORK if d == NULL.
1095 * catgets/nl_types.h: Remove __THROW marker from cancellation points.
1096 * dirent/dirent.h: Likewise.
1097 * dlfcn/dlfcn.h: Likewise.
1098 * grp/grp.h: Likewise.
1099 * iconv/iconv.h: Likewise.
1100 * io/fcntl.h: Likewise.
1101 * io/ftw.h: Likewise.
1102 * libio/stdio.h: Likewise.
1103 * misc/sys/mman.h: Likewise.
1104 * misc/sys/select.h: Likewise.
1105 * misc/sys/syslog.h: Likewise.
1106 * misc/sys/uio.h: Likewise.
1107 * posix/spawn.h: Likewise.
1108 * posix/unistd.h: Likewise.
1109 * posix/sys/wait.h: Likewise.
1110 * pwd/pwd.h: Likewise.
1111 * resolv/netdb.h: Likewise.
1112 * rt/aio.h: Likewise.
1113 * shadow/shadow.h: Likewise.
1114 * signal/signal.h: Likewise.
1115 * socket/sys/socket.h: Likewise.
1116 * stdlib/stdlib.h: Likewise.
1117 * streams/stropts.h: Likewise.
1118 * string/string.h: Likewise.
1119 * sysdeps/gnu/utmpx.h: Likewise.
1120 * sysvipc/sys/msg.h: Likewise.
1121 * termios/termios.h: Likewise.
1122 * time/time.h: Likewise.
1123 * wcsmbs/wchar.h: Likewise.
1124 * iconv/gconv_cache.c: Include <not-cancel.h> and use non-cancelable
1126 * misc/daemon.c: Likewise.
1127 * sysdeps/generic/backtracesymsfd.c: Likewise.
1128 * sysdeps/generic/check_fds.c: Likewise.
1129 * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
1130 * sysdeps/unix/sysv/linux/not-cancel.h: New file.
1131 * sysdeps/generic/not-cancel.h: New file.
1132 * csu/Makefile (distribute): Add not-cancel.h.
1133 * sysdeps/unix/sysv/linux/fatal-prepare.h: New file.
1134 * sysdeps/unix/sysv/linux/Makefile: Define FATAL_PREPARE_INCLUDE
1135 for assert.c and assert-perr.c to include <fatal-prepare.h>.
1136 * sysdeps/unix/sysv/linux/Dist: Add fatal-prepare.h.
1138 * sysdeps/posix/remove.c (remove): Rewrite. No need to restore
1139 errno and unlink first.
1141 * io/ftw.c (ftw_dir): In all places assume fchdir is available.
1143 2003-04-18 Ulrich Drepper <drepper@redhat.com>
1145 * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_fatal): Use
1146 INTERNAL_SYSCALL instead of INLINE_SYSCALL.
1148 2003-04-17 Ulrich Drepper <drepper@redhat.com>
1150 * sysdeps/unix/sysv/linux/Makefile: Remove db2 directory handling.
1152 * malloc/Makefile (CFLAGS-malloc.c): Define DEFAULT_TOP_PAD to 128k.
1153 * sysdeps/unix/sysv/linux/Makefile (CFLAGS-malloc.c): Add to, not
1156 * signal/Makefile (tests): Add tst-sigsimple.
1157 * signal/tst-sigsimple.c: New file.
1159 2003-04-16 Jakub Jelinek <jakub@redhat.com>
1161 * elf/Makefile (distribute): Add tst-tlsmod{[7-9],1[0-2]}.c and
1163 (tests): Add tst-tls1[0-2].
1164 (modules-names): Add tst-tlsmod{[7-8],1[0-2]}.
1165 ($(objpfx)tst-tlsmod8.so): Depend on tst-tlsmod7.so.
1166 ($(objpfx)tst-tlsmod10.so): Depend on tst-tlsmod9.so.
1167 ($(objpfx)tst-tlsmod12.so): Depend on tst-tlsmod11.so.
1168 ($(objpfx)tst-tls10): Depend on tst-tlsmod8.so.
1169 ($(objpfx)tst-tls11): Depend on tst-tlsmod10.so.
1170 ($(objpfx)tst-tls12): Depend on tst-tlsmod12.so.
1171 * elf/tst-tls10.c: New test.
1172 * elf/tst-tls11.c: New test.
1173 * elf/tst-tls12.c: New test.
1174 * elf/tst-tls10.h: New file.
1175 * elf/tst-tlsmod7.c: New file.
1176 * elf/tst-tlsmod8.c: New file.
1177 * elf/tst-tlsmod9.c: New file.
1178 * elf/tst-tlsmod10.c: New file.
1179 * elf/tst-tlsmod11.c: New file.
1180 * elf/tst-tlsmod12.c: New file.
1182 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
1184 * sysdeps/powerpc/bits/atomic.h: Moved ppc32/64 specific code to ...
1185 * sysdeps/powerpc/powerpc32/bits/atomic.h: New file.
1186 * sysdeps/powerpc/powerpc64/bits/atomic.h: New file.
1188 2003-04-17 Ulrich Drepper <drepper@redhat.com>
1190 * posix/regex.h: Include <sys/types.h>.
1192 * signal/sigrelse.c (sigrelse): Use sigdelset and not __sigdelset.
1193 The signal number must be checked.
1194 * signal/sighold.c (sighold): Use sigaddset and not __sigaddset.
1195 The signal number must be checked [PR libc/5004].
1197 * sysdeps/unix/sysv/linux/system.c: If compiled without threads
1198 don't do anything fancy.
1200 * sysdeps/generic/bits/libc-lock.h: Define
1201 __rtld_lock_define_initialized_recursive.
1203 * nss/getXXbyYY_r.c [USE_NSCD] (REENTRANT_NAME): Only retry
1204 contacting nscd if NOT_USENSCD_NAME > 0.
1205 * nss/nsswitch.c (__nss_disable_nscd): New function.
1206 * nss/nsswitch.h: Declare it.
1207 * nss/Versions [GLIBC_PRIVATE]: Export __nss_disable_nscd.
1208 * nscd/nscd.c (main): Call __nss_disable_nscd.
1210 2003-04-16 Ulrich Drepper <drepper@redhat.com>
1212 * stdio-common/perror.c (perror): We don't need to set the offset
1213 to _IO_pos_bad, this is how streams are initialized.
1215 * locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
1216 (time_output): If necessary, allocate new buffer for .name string if
1217 padding is required.
1219 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Check lengths
1220 before copying. This might leave holes in the list. Adjust
1221 pointers if necessary.
1222 (netlink_receive): Allocate only one block.
1223 (free_netlink_handle): Adjust appropriately.
1224 (getifaddrs): Lots of cleanups.
1226 * string/test-strncpy.c (do_one_test): Mark start and stop as
1228 * string/test-memchr.c: Likewise.
1229 * string/test-memcmp.c: Likewise.
1230 * string/test-memcpy.c: Likewise.
1231 * string/test-memmove.c: Likewise.
1232 * string/test-memset.c: Likewise.
1233 * string/test-strcat.c: Likewise.
1234 * string/test-strchr.c: Likewise.
1235 * string/test-strcmp.c: Likewise.
1236 * string/test-strcpy.c: Likewise.
1237 * string/test-strlen.c: Likewise.
1238 * string/test-strncmp.c: Likewise.
1239 * string/test-strpbrk.c: Likewise.
1240 * string/test-strrchr.c: Likewise.
1241 * string/test-strspn.c: Likewise.
1243 2003-04-15 Roland McGrath <roland@redhat.com>
1245 * libio/fileops.c (_IO_file_close_it): Macro tweak to avoid warning.
1247 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO]: Add decl for
1248 INTUSE(__register_frame_info_bases).
1250 2003-04-15 Ulrich Drepper <drepper@redhat.com>
1252 * elf/elf.h: Define AT_SYSINFO_EH_FRAME.
1253 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle
1254 AT_SYSINFO_EH_FRAME. Adjust string width.
1255 (_dl_show_auxv):Display AT_SYSINFO_EH_FRAME value.
1256 * sysdeps/generic/ldsodefs.h [NEED_DL_SYSINFO] (struct rtld_global):
1257 Add _dl_sysinfo_eh_frame field.
1258 * elf/dl-support.c [NEED_DL_SYSINFO]: Define _dl_sysinfo_eh_frame.
1259 * sysdeps/generic/libc-start.c [NEED_DL_SYSINFO] Define eh_obj
1261 [NEED_DL_SYSINFO] (LIBC_START_MAIN): Call __register_frame_info_bases
1262 if _dl_sysinfo_eh_frame is non-NULL.
1264 * Makeconfig (gnulib): Add -lgcc_eh.
1266 * config.h.in: Define HAVE_FORCED_UNWIND.
1268 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
1270 * sysdeps/powerpc/powerpc64/strcmp.S: Convert to full 64-bit.
1271 * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
1273 2003-04-15 Jakub Jelinek <jakub@redhat.com>
1275 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Avoid
1276 checking R_PPC_RELATIVE, R_PPC_NONE and whether relocation is
1277 against local symbol in conflict processing.
1279 2003-04-15 Steven Munroe <sjmunroe@us.ibm.com>
1281 * sysdeps/powerpc/bits/atomic.h
1282 [__powerpc64] (__arch_compare_and_exchange_val_64_acq): Define.
1283 [! __powerpc64] (__arch_compare_and_exchange_val_64_acq): Defined
1285 (__arch_compare_and_exchange_val_32_acq): Define.
1286 (atomic_compare_and_exchange_val_acq): Define.
1288 2003-04-15 Ulrich Drepper <drepper@redhat.com>
1290 * include/atomic.h: Pretty printing.
1292 2003-04-14 Ulrich Drepper <drepper@redhat.com>
1294 * stdio-common/vfscanf.c: Add casts to avoid warnings.
1296 2003-04-14 Jakub Jelinek <jakub@redhat.com>
1298 * sysdeps/i386/i486/bits/atomic.h: Rename LOCK to LOCK_PREFIX.
1299 * sysdeps/x86_64/bits/atomic.h: Likewise.
1301 2003-04-14 Ulrich Drepper <drepper@redhat.com>
1303 * sysdeps/unix/sysv/linux/i386/sysdep.h: Change PUSHARGS_1 and
1304 POPARGS_1 to emit labels for the mov instructions.
1306 2003-04-14 Jakub Jelinek <jakub@redhat.com>
1308 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (ret_NOERRNO): Define.
1310 2003-04-14 Roland McGrath <roland@redhat.com>
1312 * sysdeps/generic/unwind-dw2.c (_Unwind_GetCFA): Add a cast to silence
1315 * sysdeps/generic/unwind-pe.h: Fix decl hacks broken in merge.
1317 2003-04-14 Ulrich Drepper <drepper@redhat.com>
1319 * string/strxfrm.c (STRXFRM): Terminate rulearr at correct
1320 position. Reported by jreiser@BitWagon.com.
1322 2003-04-13 Ulrich Drepper <drepper@redhat.com>
1324 * sysdeps/generic/unwind-dw2-fde.c: Update from recent gcc version.
1325 * sysdeps/generic/unwind-dw2-fde.h: Likewise.
1326 * sysdeps/generic/unwind-dw2.c: Likewise.
1327 * sysdeps/generic/unwind-pe.h: Likewise.
1329 2003-04-13 Alexandre Oliva <aoliva@redhat.com>
1331 * sysdeps/unix/sysv/linux/mips/profil-counter: New.
1332 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Port to n32/n64.
1333 * sysdeps/unix/sysv/linux/mips/bits/sigcontext.h: New.
1334 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Port to n32/n64.
1335 (mcontext_t): Make it match the 32-bit mips kernel in o32.
1336 * sysdeps/unix/sysv/linux/mips/sys/user.h: Bring in constants from
1337 the mips and mips64 headers.
1338 (struct user): Port to n32/n64.
1340 2003-04-12 Ulrich Drepper <drepper@redhat.com>
1342 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add cast to
1345 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): If
1346 __ASSUME_VSYSCALL is defined don't add restorer.
1347 * sysdeps/unix/sysv/linux/kernel-features.h: Define
1348 __ASSUME_VSYSCALL for 2.5.53.
1350 2003-04-11 Ulrich Drepper <drepper@redhat.com>
1352 * sysdeps/generic/libc-start.c: Cleanup MAIN_AUXVEC_ARG handling.
1353 Remove HAVE_CANCELBUF code. Replace with code using the new
1354 initializers for unwind-based cleanup handling.
1355 * sysdeps/generic/unwind.h: Update from latest gcc version.
1356 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define labels in a few
1357 places to allow unwind data generation.
1358 * sysdeps/i386/bits/setjmp.h: Allow file to be included multiple times.
1359 * sysdeps/x86_64/bits/setjmp.h: Likewise.
1360 * sysdeps/sh/bits/setjmp.h: Likewise.
1361 * sysdeps/powerpc/bits/setjmp.h: Likewise.
1362 * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: Likewise.
1363 * sysdeps/alpha/bits/setjmp.h: Likewise.
1365 2003-04-11 Roland McGrath <roland@redhat.com>
1367 * csu/tst-empty.c: New file.
1368 * csu/Makefile (tests, tests-static): Add it.
1370 2003-04-11 Jakub Jelinek <jakub@redhat.com>
1372 * string/test-strcmp.c (do_random_tests): Test whether return value
1373 has been promoted to wordsize if the ABI requires caller to do so.
1374 * string/test-strncmp.c (do_random_tests): Likewise.
1375 * string/test-memcmp.c (do_random_tests): Likewise.
1377 * sysdeps/powerpc/powerpc64/strcmp.S (strcmp): Sign extend rRTN
1380 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
1381 (__fe_nomask_env): Try prctl even if __ASSUME_NEW_PRCTL_SYSCALL
1382 is not defined, but the prctl constants are.
1384 * string/tester.c (test_strcmp): Fix a typo.
1386 2003-04-09 Ulrich Drepper <drepper@redhat.com>
1388 * sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD definition.
1389 * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
1391 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
1393 * sysdeps/mips/sys/regdef.h (t4,t5,t6,t7): Renamed to t0..t3 on
1395 (ta0, ta1, ta2, ta3): Defined to t4..t7 on o32, and a4..a7 on
1397 * sysdeps/mips/mips64/memcpy.S: Adjust register naming
1399 * sysdeps/mips/mips64/memset.S: Likewise.
1400 * sysdeps/unix/mips/sysdep.S (__syscall_error) [_LIBC_REENTRANT]:
1401 Use t0 instead of t4 as temporary.
1403 2003-04-07 Ulrich Drepper <drepper@redhat.com>
1405 * elf/ldconfig.c (parse_conf): Ignore leading whitespace. Use
1406 feof_unlocked instead of feof.
1407 (add_dir): Ignore trailing whitespace.
1409 2003-04-07 Jakub Jelinek <jakub@redhat.com>
1411 * posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
1412 sum of SIZE1 and SIZE2 arguments.
1414 2003-04-06 Ulrich Drepper <drepper@redhat.com>
1416 * iconv/iconv_prog.c (process_block): Don't print message about
1417 invalid input if the -c option is used.
1418 (main): Correctly append IGNORE string for -c option.
1420 2002-04-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1422 * sysdeps/sh/bits/atomic.h: Moved to ...
1423 * sysdeps/unix/sysv/linux/sh/bits/atomic.h: ... here. Add comments.
1424 (__arch_compare_and_exchange_val_*_acq): Add parens around macro
1426 (atomic_bit_set, atomic_bit_test_set): Likewise.
1427 (atomic_exchange_and_add): Likewise. Don't evaluate VALUE argument
1429 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
1431 2003-04-06 Roland McGrath <roland@redhat.com>
1433 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Rewrite register
1434 restoration as done for setcontext yesterday.
1436 2003-04-06 Jakub Jelinek <jakub@redhat.com>
1438 * elf/rtld.c: Revert 2003-03-14 change.
1439 * elf/dl-conflict.c (_dl_resolve_conflicts): Move
1440 #if ! ELF_MACHINE_NO_RELA conditional into the routine.
1442 2003-04-05 Ulrich Drepper <drepper@redhat.com>
1444 * sunrpc/xdr.c (xdr_string): Catch nodesize == 0 [PR libc/4999].
1446 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
1447 Always initialize *signgamp before returning an error.
1449 2003-04-05 Roland McGrath <roland@redhat.com>
1451 * sysdeps/unix/sysv/linux/i386/setcontext.S: Rewrite to avoid writing
1452 below the stack pointer even if switching to the same context we are
1455 2003-04-05 Ulrich Drepper <drepper@redhat.com>
1457 * catgets/gencat.c (read_input_file): Make sure that \n is not
1458 alone on the line before testing for continuation.
1460 * math/test-tgmath.c (compile_test): Initialize c.
1462 2003-04-05 Alexandre Oliva <aoliva@redhat.com>
1464 * sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: New.
1465 * sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: New.
1466 * sysdeps/unix/sysv/linux/kernel-features.h: fcntl64 is available
1468 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Explain why
1469 XSTAT_IS_XSTAT64 must not be used for mips n64. Use 64-bit data
1470 structure on n32 as well.
1471 * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use POSIX-compliant
1472 data types on n32 and n64.
1474 2003-04-05 Ulrich Drepper <drepper@redhat.com>
1476 * libio/fileops.c (_IO_new_file_fopen): Don't free step data right
1479 * malloc/thread-m.h [PTHREAD_MUTEX_INITIALIZER]: If
1480 HAVE_register_atfork_malloc is defined use __register_atfork_malloc
1481 instead of __register_atfork.
1483 2003-04-05 Jakub Jelinek <jakub@redhat.com>
1485 * stdio-common/reg-printf.c (__register_printf_function): Calloc
1486 instead of malloc __printf_arginfo_table and __printf_function_table.
1487 Reported by John Reiser <jreiser@BitWagon.com>.
1489 2003-04-04 Steven Munroe <sjmunroe@us.ibm.com>
1491 * sysdeps/powerpc/powerpc64/strchr.S: 64-bit optimizations.
1492 * sysdeps/powerpc/powerpc64/strlen.S: 64-bit optimizations.
1494 * sysdeps/powerpc/fpu/bits/mathdef.h (FLT_EVAL_METHOD): Undef before
1497 2003-04-04 Alexandre Oliva <aoliva@redhat.com>
1499 * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock): Adjust
1502 2003-04-03 Roland McGrath <roland@redhat.com>
1504 * configure.in: Fix up use of compilation flags to match the build:
1505 For .s files, $ASFLAGS;
1506 For .S files, $CPPFLAGS $ASFLAGS;
1507 For .c files, $CFLAGS $CPPFLAGS;
1508 when linking, add $LDFLAGS.
1509 * configure: Regenerated.
1511 2003-04-03 Jakub Jelinek <jakub@redhat.com>
1513 * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Reverse test
1514 for atomic_compare_and_exchange_bool_acq failure.
1516 2003-04-03 Ulrich Drepper <drepper@redhat.com>
1518 * posix/unistd.h: Define _POSIX_VERSION, _POSIX2_VERSION,
1519 _POSIX2_C_BIND, _POSIX2_C_DEV, _POSIX2_SW_DEV, and
1520 _POSXI2_LOCALEDEF to 200112L. Remove _POSIX2_C_VERSION.
1521 Remove declaration of pthread_atfork.
1523 2003-04-02 Ulrich Drepper <drepper@redhat.com>
1525 * locale/iso-639.def: Add many more languages from the current ISO 639.
1527 * sysdeps/unix/sysv/linux/ipc_priv.h: Define IPCOP_semtimedop.
1528 * sysdeps/generic/semtimedop.c: New file.
1529 * sysdeps/unix/sysv/linux/i386/semtimedop.S: New file.
1530 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add semtimedop.
1531 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1532 * sysvipc/Makefile (routines): Add semtimedop.
1533 * sysvipc/Versions [GLIBC_2.3.3] (glibc): Add semtimedop.
1534 * sysvipc/sys/sem.h: Declare semtimedop.
1536 2003-04-02 Daniel Jacobowitz <drow@mvista.com>
1538 * configure.in: Check for __register_frame_info in both
1540 * configure: Regenerated.
1542 2003-04-01 Roland McGrath <roland@redhat.com>
1544 * scripts/abilist.awk: Allow dots in soname suffix.
1546 * scripts/abilist.awk (emit): Fix bailout condition.
1548 2003-04-01 Jakub Jelinek <jakub@redhat.com>
1550 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Use the
1553 * elf/tls-macros.h [__ia64__] (TLS_IE, TLS_LD, TLS_GD): Add gp
1554 register as input to asm.
1556 2003-04-01 Jakub Jelinek <jakub@redhat.com>
1558 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (sigevent_t): Fix a typo.
1560 2003-04-01 Andreas Jaeger <aj@suse.de>
1562 * configure.in: Output as/ld as name if version is too old.
1564 2003-03-31 Daniel Jacobowitz <drow@mvista.com>
1566 * configure.in: Don't require an installed C library in the test
1567 for ".set" assembler support.
1569 2003-03-31 Roland McGrath <roland@redhat.com>
1571 * signal/tst-sigset.c: New file.
1572 * signal/Makefile (tests): Add it.
1574 2003-03-31 Ulrich Drepper <drepper@redhat.com>
1576 * sysdeps/unix/sysv/linux/alpha/bits/signum.h (_NSIG): Define to 65.
1577 * sysdeps/unix/sysv/linux/hppa/bits/signum.h (_NSIG): Likewise.
1578 * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Likewise.
1579 * sysdeps/unix/sysv/linux/bits/signum.h (_NSIG): Likewise.
1580 (__SIGRTMAX): Adjust accordingly.
1581 * sysdeps/gnu/siglist.c: If OLD2_SIGLIST_SIZE is defined define
1582 second compatibility symbol set.
1583 * sysdeps/unix/sysv/linux/siglist.h (OLD2_SIGLIST_SIZE): Define.
1585 2003-03-31 Andreas Schwab <schwab@suse.de>
1587 * sysdeps/m68k/m68020/bits/atomic.h (atomic_increment_and_test):
1589 (atomic_decrement_and_test): Fix test.
1591 2003-03-31 Jakub Jelinek <jakub@redhat.com>
1593 * sysdeps/sparc/sparc32/bits/atomic.h: New file.
1594 * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
1595 * sysdeps/sparc/sparc64/bits/atomic.h: New file.
1596 * sysdeps/sparc/sparc32/atomicity.h: Removed.
1597 * sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
1598 * sysdeps/sparc/sparc64/atomicity.h: Removed.
1600 2003-03-30 Roland McGrath <roland@redhat.com>
1602 * scripts/abilist.awk: Grok .opd foo plus .text .foo as "foo F" alone.
1604 * intl/po2test.sed: Anchor substitution regexps to fix last change.
1606 2003-03-29 Paolo Bonzini <bonzini@gnu.org>
1608 * intl/po2test.sed: Unify the transformations for msgid and msgstr
1609 and remove a useless s/// command.
1611 2003-03-27 David Mosberger <davidm@hpl.hp.com>
1613 * sysdeps/ia64/dl-machine.h (RTLD_START): Wrap ".save rp, r0"
1614 directive into empty .prologue region to ensure that call-chain
1615 is terminated even for the first instruction.
1617 * sysdeps/ia64/elf/start.S (_start): Use ".save rp, r0" idiom
1618 to terminate call-chain right from the get-go.
1620 * sysdeps/unix/sysv/linux/ia64/fork.S (fork): Remove unnecessary
1621 stop bit between compare & branch.
1623 2003-03-29 Ulrich Drepper <drepper@redhat.com>
1625 * stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
1626 point correctly [PR libc/4993].
1628 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
1629 netlink_open calls if netlink is known to not be available.
1631 2003-03-29 Alexandre Oliva <aoliva@redhat.com>
1633 * configure.in: Add mips64* support.
1634 * sysdeps/mips/bits/endian.h: Make it bi-endian.
1635 * sysdeps/mips/mipsel/bits/endian.h: Removed.
1636 * sysdeps/mips/mips64/n32/el/bits/endian.h: Removed.
1637 * sysdeps/mips/mips64/n64/el/bits/endian.h: Removed.
1638 * sysdeps/mips/mips32/Makefile (CC): Add -mabi=32.
1639 * sysdeps/mips/mips64/n32/Makefile (CC): Add -mabi=n32.
1640 * sysdeps/mips/mips64/n64/Makefile (CC): Add -mabi=64.
1641 * sysdeps/mips/Implies: Moved wordsize-32 to...
1642 * sysdeps/mips/mips32/Implies: New file.
1643 * sysdeps/unix/mips/sysdep.h (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO,
1645 (ret, PSEUDO_END): Moved past END.
1646 (PSEUDO): Moved to...
1647 * sysdeps/unix/mips/mips32/sysdep.h: New file.
1648 * sysdeps/unix/mips/mips64/n32/sysdep.h: Removed #undef PSEUDO.
1649 * sysdeps/unix/mips/mips64/n64/sysdep.h: Likewise.
1650 * sysdeps/unix/sysv/linux/mips/sysdep.h: Move to...
1651 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: New file.
1652 * sysdeps/unix/sysv/linux/mips/mips32/kern64/sysdep.h: New file.
1654 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start):
1657 2003-03-28 Thorsten Kukuk <kukuk@suse.de>
1659 * sysdeps/unix/sysv/linux/ifaddrs.c: New file.
1660 * inet/test-ifaddrs.c: Allow AF_PACKET.
1661 * sysdeps/unix/sysv/linux/kernel-features.h: Add
1662 __ASSUME_NETLINK_SUPPORT.
1664 2003-03-28 Ulrich Drepper <drepper@redhat.com>
1666 * elf/vismain.c (do_test): Comment out tests which fail in the moment.
1668 2003-03-26 H.J. Lu <hjl@gnu.org>
1670 * elf/vismod.h (getvarlocal1): Return const char **.
1671 (getvarinmod1): Likewise.
1672 (getvaritcpt1): Likewise.
1673 (getvarlocal2): Likewise.
1674 (getvarinmod2): Likewise.
1675 (getvaritcpt2): Likewise.
1676 (getvaritcpt3): Likewise.
1677 * elf/vismain.c (do_test): Adjusted.
1678 * elf/vismod1.c (getvarlocal1): Return address.
1679 (getvarinmod1): Likewise.
1680 (getvaritcpt1): Likewise.
1681 * elf/vismod2.c (getvarlocal2): Likewise.
1682 (getvarinmod2): Likewise.
1683 (getvaritcpt2): Likewise.
1684 * elf/vismod3.c (getvaritcpt3): Likewise.
1686 2003-03-28 Roland McGrath <roland@redhat.com>
1688 * elf/vismain.c (do_test): Print both addresses when they don't match.
1690 * scripts/abilist.awk: If given -v filename_regexp and/or -v
1691 libname_regexp when parsing names, then produce output only
1692 for those matching the given regexps. In combine mode, save all
1693 stanzas for a final sorting by stanza header at the end.
1694 Emit a blank line between stanzas.
1696 * scripts/abilist.awk: When given -v combine=1, do parse_names and
1697 emit a single output stream with lib name in stanza header lines.
1699 * scripts/abilist.awk: Emit A for all *ABS* regardless of type.
1701 2003-03-27 Roland McGrath <roland@redhat.com>
1703 * sysdeps/powerpc/bits/atomic.h [! __powerpc64__]
1704 (__arch_atomic_decrement_if_positive_64): Fix bogus definition.
1706 2003-03-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1708 * sysdeps/sh/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
1709 Return old value. Make asm output reg constraint earlyclobber.
1711 (__arch_compare_and_exchange_8_acq): ... this.
1712 (__arch_compare_and_exchange_val_16_acq):
1713 Return old value. Make asm output reg constraint earlyclobber.
1715 (__arch_compare_and_exchange_16_acq): ... this.
1716 (__arch_compare_and_exchange_val_32_acq):
1717 Return old value. Make asm output reg constraint earlyclobber.
1719 (__arch_compare_and_exchange_32_acq): ... this.
1720 (__arch_compare_and_exchange_val_64_acq):
1722 (__arch_compare_and_exchange_64_acq): ... this.
1723 (atomic_exchange_and_add): Use local variables and
1724 __arch_compare_and_exchange_val_64_acq.
1725 (atomic_add): Likewise.
1726 (atomic_add_negative, atomic_add_zero): Use local variables.
1728 2003-03-28 Alexandre Oliva <aoliva@redhat.com>
1730 * sysdeps/unix/mips/sysdep.S: Include sys/asm.h.
1732 2003-03-27 Ulrich Drepper <drepper@redhat.com>
1734 * Makefile: Remove libmd5crypt goal.
1736 2003-03-25 Jakub Jelinek <jakub@redhat.com>
1738 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Restore
1739 special handling of relocations against local symbols.
1741 2003-03-27 Steven Munroe <sjmunroe@us.ibm.com>
1743 * sysdeps/powerpc/bits/atomic.h
1744 (__arch_compare_and_exchange_bool_32_acq): Move to [!__powerpc64__].
1745 [__powerpc64__] (__arch_compare_and_exchange_bool_32_acq):
1746 Define PPC64 specific version.
1747 [__powerpc64__] (__arch_compare_and_exchange_bool_64_acq):
1748 Change (mem) constraint to "b".
1749 [__powerpc64__] (__arch_atomic_exchange_and add_64):
1750 Replace addi with add. Change (value) contraint to "r".
1751 Change (mem) constraint to "b".
1752 [__powerpc64__] (__arch_atomic_decrement_if_positive_64): New macro.
1753 (__arch_atomic_exchange_32): Change (mem) constraint to "b".
1754 (__arch_atomic_exchange_and_add_32): Change (mem) constraint to "b".
1755 (__arch_atomic_decrement_if_positive_32): New macro.
1756 (atomic_decrement_if_positive): Use __arch* macros.
1758 2003-03-27 Jakub Jelinek <jakub@redhat.com>
1760 * sysdeps/ia64/fpu/libm-test-ulps: Update.
1762 2003-03-27 Roland McGrath <roland@redhat.com>
1764 * scripts/rpm2dynsym.sh: New file.
1765 * Makefile (distribute): Add it.
1767 2003-03-27 David Mosberger <davidm@hpl.hp.com>
1769 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Restore caller's
1770 ar.unat before returning. Add missing .mem.offset directives
1771 to ensure file gets assembled without warnings.
1772 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
1774 2003-03-27 Jakub Jelinek <jakub@redhat.com>
1776 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf) <_SC_MONOTONIC_CLOCK>:
1777 Return -1 instead of 0 if clock_getres failed.
1779 2003-03-27 Roland McGrath <roland@redhat.com>
1781 * scripts/abilist.awk: If variable `parse_names' is set, grok the file
1782 header lines and write out foo.symlist files for each foo.so.NN listed.
1784 * libio/libioP.h (_IO_wfile_jumps): Remove attribute_hidden.
1785 This symbol is exported, and we don't want to hide it.
1786 Add libc_hidden_proto instead.
1787 (_IO_file_jumps): Add libc_hidden_proto.
1788 * libio/wfileops.c (_IO_wfile_jumps): Add libc_hidden_data_def.
1790 * libio/fileops.c (_IO_file_jumps): Likewise.
1791 * libio/stdfiles.c: Don't use INTUSE on them.
1792 * libio/iofdopen.c (_IO_new_fdopen): Likewise.
1793 * libio/iofopen.c (__fopen_internal): Likewise.
1794 * libio/freopen.c (freopen): Likewise.
1795 * libio/freopen64.c (freopen64): Likewise.
1796 * libio/iovdprintf.c (_IO_vdprintf): Likewise.
1798 * Makerules (check-abi) [$(enable-check-abi) = warn]:
1799 Ignore exit status from diff.
1800 * configure.in (enable_check_abi): Document possible value "warn".
1801 Change default to no for now.
1802 * configure: Regenerated.
1804 * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Emit stub_warning
1805 macro calls and a #include <stub-tag.h> at the end.
1806 * Makerules ($(objpfx)stubs): Tweak sed commands.
1808 * sysdeps/unix/sysv/linux/syscalls.list: Use - rather than EXTRA in
1809 caller column for *xattr syscalls, since they are in sysdeps/generic.
1811 * sysdeps/unix/sysv/linux/i386/setfsuid.c: setfsgid -> setfsuid
1812 * sysdeps/unix/sysv/linux/i386/setfsgid.c: setfsuid -> setfsgid
1814 2003-03-26 Roland McGrath <roland@redhat.com>
1816 * Makerules (check-abi-config): Use /thread instead of /tls when
1817 use-thread and not just use-tls is set.
1819 * Makerules (update-abi): Put quotes around $(update-abi-config).
1821 * elf/Makefile (check-abi): Depend on check-abi-ld.
1822 (update-abi): Depend on update-abi-ld.
1824 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
1826 * sysdeps/unix/sysv/linux/i386/setfsuid.c: Use INTERNAL_SYSCALL and
1827 do not check for errors (unless testing for 32bit variant).
1828 * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
1830 2003-03-27 Philip Blundell <philb@gnu.org>
1832 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET_NOERRNO): Use
1833 unconditional mov. Remove nop.
1835 * sysdeps/unix/sysv/linux/kernel-features.h
1836 (__ASSUME_VFORK_SYSCALL): Define for kernel 2.4 on arm.
1837 * sysdeps/unix/sysv/linux/arm/vfork.S: Elide compatibility code
1838 when __ASSUME_VFORK_SYSCALL is defined.
1839 * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise for
1840 __ASSUME_MMAP2_SYSCALL.
1841 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise for
1842 __ASSUME_REALTIME_SIGNALS.
1844 2003-03-26 Ulrich Drepper <drepper@redhat.com>
1846 * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_COPY): Define to 2
1847 only if DL_NO_COPY_RELOCS is not defined.
1848 * sysdeps/ia64/dl-lookupcfg.h: Define DL_NO_COPY_RELOCS.
1850 2003-03-26 Roland McGrath <roland@redhat.com>
1852 * sysdeps/unix/make-syscalls.sh: When an undefined syscall has
1853 SOURCE=-, append its symbol names to make variable unix-stub-syscalls.
1854 * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls]
1855 (sysdep_routines): Add stub-syscalls.
1856 ($(objpfx)stub-syscalls.c): New target.
1857 (generated): Add stub-syscalls.c.
1859 * tls.make.c: Also define use-tls according to USE_TLS macro.
1861 2003-03-26 Ulrich Drepper <drepper@redhat.com>
1863 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (struct siginfo): Avoid
1864 no-op padding element.
1865 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
1866 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
1867 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1868 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
1870 2003-03-26 GOTO Masanori <gotom@debian.or.jp>
1872 * sysdeps/unix/sysv/linux/i386/getgroups.c: Fix the error
1873 condition check for the return value of getgroups32.
1875 2003-03-26 Jakub Jelinek <jakub@redhat.com>
1877 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (PSEUDO_NOERRNO):
1879 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h (PSEUDO_NOERRNO,
1880 PSEUDO_END_NOERRNO): Define.
1881 * sysdeps/unix/sysdep.h (PSEUDO_END_NOERRNO): Fix a typo.
1882 Define to PSEUDO_END.
1884 2003-03-26 Ulrich Drepper <drepper@redhat.com>
1886 * abilist/librt.abilist: Add new timer interfaces for 64-bit archs.
1888 2003-03-25 Jiro SEKIBA <jir@yamato.ibm.com>
1890 * iconvdata/euc-tw.c (from_euc_tw): Fix return value of TO_LOOP.
1891 * iconvdata/bug-iconv4.c: New file.
1892 * iconvdata/Makefile (tests): Add bug-iconv4.
1894 2003-03-25 H.J. Lu <hjl@gnu.org>
1896 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid looking up protected
1898 (_dl_lookup_versioned_symbol): Likewise.
1900 2003-03-26 Jakub Jelinek <jakub@redhat.com>
1902 * csu/tst-atomic.c (do_test): Add some new
1903 atomic_compare_and_exchange_val_acq, atomic_add_zero,
1904 atomic_compare_and_exchange_bool_acq and atomic_add_negative tests.
1905 * include/atomic.h (atomic_add_negative, atomic_add_zero):
1906 Prefix local variable so that it doesn't clash with the one
1907 in atomic_exchange_and_add.
1908 * sysdeps/ia64/bits/atomic.h (atomic_exchange): Fix for long/void *
1910 (atomic_exchange_and_add): Implement using __sync_fetch_and_add_?i.
1911 * sysdeps/powerpc/bits/atomic.h (atomic_exchange_and_add): Force
1912 value into register.
1913 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_64_acq):
1914 Cast newval to long.
1915 * sysdeps/x86_64/bits/atomic.h
1916 (__arch_compare_and_exchange_val_64_acq): Cast newval and oldval to
1918 (atomic_exchange): Cast newvalue to long if sizeof == 8.
1919 (atomic_exchange_and_add): Cast value to long if sizeof == 8.
1920 (atomic_add, atomic_add_negative, atomic_add_zero): Likewise.
1921 (atomic_bit_set): Shift 1L up in all cases to shut up warnings.
1923 2003-03-21 Martin Schwidefsky <schwidefskyde.ibm.com>
1925 * sysdeps/s390/s390-32/backtrace.c (__backtrace): Remove high order
1926 bit from backtrace addresses.
1928 2003-03-21 Andreas Schwab <schwab@suse.de>
1930 * sysdeps/unix/sysv/linux/i386/chown.c: Don't define any versioned
1933 2003-03-25 Roland McGrath <roland@redhat.com>
1935 * config.make.in (enable-check-abi): New variable from configure.
1936 * configure.in (enable_check_abi): New substituted variable,
1937 controlled by --{enable,disable}-check-abi (default yes).
1938 * configure: Regenerated.
1939 * Makerules [$(enable-check-abi) = yes] (tests): Put this condition
1940 on check-abi dependency.
1942 2003-03-26 Andreas Schwab <schwab@suse.de>
1944 * sysdeps/m68k/m68020/bits/atomic.h: Fix typos.
1945 * include/atomic.h: Likewise.
1947 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Define ret_NOERRNO.
1949 2003-03-25 Roland McGrath <roland@redhat.com>
1951 * sysdeps/powerpc/bits/atomic.h (__arch_atomic_exchange_32): New macro.
1952 (__arch_atomic_exchange_64): New macro.
1953 (atomic_exchange): Use them.
1954 (__arch_atomic_exchange_and_add_32): New macro.
1955 (__arch_atomic_exchange_and_add_64): New macro.
1956 (atomic_exchange_and_add): Use them.
1957 Original patch from Steven Munroe <sjmunroe@us.ibm.com>.
1959 2003-03-25 Alexandre Oliva <aoliva@redhat.com>
1961 * sysdeps/mips/sgidefs.h (_MIPS_ISA_MIPS32, _MIPS_ISA_MIPS64):
1963 * sysdeps/mips/sys/asm.h: Test _MIPS_ISA against them on all
1965 (ALSZ, ALMASK, SZREG, REG_S, REG_L): Define based on ABI, not ISA.
1966 (PTR_ADD, etc): Test _MIPS_SZPTR instead of _MIPS_SZLONG.
1967 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
1968 to decide whether to add padding.
1969 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use _MIPS_SZPTR
1970 to decide whether to add padding.
1971 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h (struct
1972 old_kernel_sigaction): Likewise.
1974 2003-03-25 Ulrich Drepper <drepper@redhat.com>
1976 * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
1977 atomic_add_zero were supposed to do.
1978 * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
1981 * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
1982 This matches the new timer implementation.
1983 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__TIMER_T_TYPE):
1985 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__TIMER_T_TYPE):
1987 * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
1988 timer info for what the kernel provides these days.
1989 (struct sigevent): Add _tid field.
1990 Define SIGEV_THREAD_ID.
1991 Remove struct __pthread_attr_s forward declaration.
1992 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Likewise.
1993 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
1994 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
1995 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
1997 * Versions.def (librt): Add GLIBC_2.3.3.
1999 * abilist/libpthread.abilist: Update for nptl.
2001 2003-03-24 Jon Grimm <jgrimm@us.ibm.com>
2003 * inet/netinet/in.h: Add IPPROTO_SCTP.
2005 2003-03-24 Ulrich Drepper <drepper@redhat.com>
2007 * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLET): Define.
2009 2003-03-24 Philip Blundell <philb@gnu.org>
2011 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL):
2012 Remove a1 from clobber list.
2014 2003-03-24 Ulrich Drepper <drepper@redhat.com>
2016 * timezone/antarctica: Update from tzdata2003a.
2017 * timezone/asia: Likewise.
2018 * timezone/australasia: Likewise.
2019 * timezone/europe: Likewise.
2020 * timezone/iso3166.tab: Likewise.
2021 * timezone/northamerica: Likewise.
2022 * timezone/southamerica: Likewise.
2023 * timezone/zone.tab: Likewise.
2025 2003-03-24 Steven Munroe <sjmunroe@us.ibm.com>
2027 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_END_NOERRNO): Fix typo.
2029 2003-03-23 Ulrich Drepper <drepper@redhat.com>
2031 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ret_NOERRNO): Avoid
2032 unwanted expansion by definining to ret. Patch by Ian Wienand.
2034 * sysdeps/unix/make-syscalls.sh: Recognize 'E' in first position of
2035 the parameter description to denote no error checking. Generate
2036 appropriate pseudo asm code.
2037 * sysdeps/unix/syscalls.list: Mark getgid, getpid, getuid with 'E'.
2038 * sysdeps/unix/sysv/linux/syscalls.list: Mark getegid, geteuid,
2039 getpgrp, and getppid with 'E'.
2040 * sysdeps/powerpc/powerpc32/sysdep.h: Define PSEUDO_NOERRNO,
2041 PSEUDO_END_NOERRNO, and ret_NOERRNO.
2042 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
2043 * sysdeps/unix/sysdep.h: Likewise.
2044 * sysdeps/unix/alpha/sysdep.h: Likewise.
2045 * sysdeps/unix/sparc/sysdep.h: Likewise.
2046 * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
2047 * sysdeps/unix/sysv/linux/cris/sysdep.h: Likewise.
2048 * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
2049 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
2050 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
2051 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
2052 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
2053 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2054 * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
2055 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
2056 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
2058 2003-03-23 Roland McGrath <roland@redhat.com>
2060 * Makeconfig (+includes): Don't use $(last-includes).
2062 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
2064 * sysdeps/unix/sysv/linux/configure.in: Update mips64 patterns.
2065 * sysdeps/unix/sysv/linux/configure: Rebuilt.
2067 2003-03-23 Jakub Jelinek <jakub@redhat.com>
2069 * sysdeps/alpha/fpu/libm-test-ulps: Update.
2070 * sysdeps/arm/libm-test-ulps: Update.
2071 * sysdeps/hppa/fpu/libm-test-ulps: Update.
2072 * sysdeps/ia64/fpu/libm-test-ulps: Update.
2073 * sysdeps/mips/fpu/libm-test-ulps: Update.
2074 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
2075 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2076 * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
2077 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
2078 * sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
2079 * sysdeps/s390/fpu/libm-test-ulps: Update.
2080 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2082 2003-03-22 Roland McGrath <roland@redhat.com>
2084 * include/atomic.h: Put parens around all macro arguments.
2085 (__atomic_val_bysize, __atomic_bool_bysize): New macros.
2086 (atomic_compare_and_exchange_val_acq): Use it.
2087 (atomic_compare_and_exchange_bool_acq): Likewise.
2088 (atomic_increment_and_test): Invert sense of test.
2089 (atomic_decrement_and_test): Likewise.
2090 * csu/tst-atomic.c: Update those tests to match.
2092 2003-03-22 Jakub Jelinek <jakub@redhat.com>
2094 * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment.
2095 Don't define if __arch_compare_and_exchange_val_32_acq is not defined.
2096 (atomic_compare_and_exchange_bool_acq): Add comment. Don't use
2097 __oldval variable in the macro, since it might be macro argument.
2098 (atomic_decrement_if_positive): Initialize __memp, remove setting
2099 of non-existent variable.
2100 (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting.
2101 * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement
2102 using atomic_compare_and_exchange_val_acq.
2103 (atomic_decrement_if_positive, atomic_bit_test_set): Define.
2104 * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq):
2106 (__arch_compare_and_exchange_bool_8_acq): ... this.
2107 (__arch_compare_and_exchange_val_16_acq): Renamed from...
2108 (__arch_compare_and_exchange_bool_16_acq): ... this.
2109 (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed
2111 (__arch_compare_and_exchange_bool_32_acq): ... this.
2112 (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed
2114 (__arch_compare_and_exchange_bool_64_acq): ... this.
2115 (__arch_compare_and_exchange_val_32_acq): Use __typeof for local
2116 variables types instead of assuming int.
2117 Change prefix of local variables to __arch.
2118 * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq):
2120 (atomic_compare_and_exchange_val_acq,
2121 atomic_compare_and_exchange_bool_acq): Define.
2123 * csu/tst-atomic.c: New test.
2124 * csu/tst-atomic-long.c: New test.
2125 * csu/Makefile (tests): Add tst-atomic and tst-atomic-long.
2127 * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong.
2129 * sysdeps/s390/Versions: Add trailing newline.
2131 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning
2132 if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument.
2134 2003-03-22 Andreas Schwab <schwab@suse.de>
2136 * sysdeps/m68k/fpu/libm-test-ulps: Update.
2138 * sysdeps/m68k/m68020/bits/atomic.h: New file.
2139 * sysdeps/m68k/m68020/atomicity.h: Removed.
2141 2003-03-22 Alexandre Oliva <aoliva@redhat.com>
2143 * sysdeps/mips/elf/ldsodefs.h: Add mips-specific elf64 relocation
2144 data structures and macros. Protect from multiple inclusion.
2146 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Fix harmless
2149 2003-03-21 Andreas Jaeger <aj@suse.de>
2151 * sysdeps/i386/fpu/libm-test-ulps: Update.
2153 * math/libm-test.inc (tgamma_test): Recompute some constants with
2154 36 digits precision.
2155 (lgamma_test): Likewise.
2156 (ccos_test): Likewise.
2157 (ccosh_test): Likewise.
2158 (clog10_test): Likewise.
2159 (csin_test): Likewise.
2160 (csinh_test): Likewise.
2161 (ctan_test): Likewise.
2162 (ctanh_test): Likewise.
2164 2003-03-19 Jakub Jelinek <jakub@redhat.com>
2166 * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Regenerated.
2168 2003-03-21 Roland McGrath <roland@redhat.com>
2170 * sysdeps/i386/i486/bits/atomic.h (atomic_bit_set): Use "ir"
2171 constraint to permit non-constant BIT argument.
2172 (atomic_bit_test_set): Likewise.
2173 * sysdeps/x86_64/bits/atomic.h (atomic_bit_test_set): Likewise.
2174 (atomic_bit_set): Likewise. Use 1UL in case that BIT might be >= 32.
2175 For quadword case, use "i" constraint if __builtin_constant_p and < 32
2176 or "r" constraint otherwise.
2178 * configure.in: Move AC_PROG_CC and other program-finding before all
2180 * configure: Regenerated.
2182 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
2184 * sysdeps/mips/mips64/memcpy.S: Fix porting bug that broke
2185 unaligned copying of 8-15 bytes. From Chris Demetriou
2186 <cgd@broadcom.com>. Fix label names.
2187 * sysdeps/mips/mips64/memset.S: Fix label names. Make similar
2188 change as to memcpy.S.
2189 * sysdeps/mips/memcpy.S: Formatting changes.
2190 * sysdeps/mips/memset.S: Likewise.
2192 2003-03-21 Roland McGrath <roland@redhat.com>
2194 * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add trailing semicolon.
2196 2003-03-21 Alexandre Oliva <aoliva@redhat.com>
2198 * sysdeps/mips/mips64/memcpy.S, sysdeps/mips/mips64/memset.S: New.
2199 * sysdeps/mips/memcpy.S, sysdeps/mips/memset.S: Update comments.
2201 2003-03-21 Roland McGrath <roland@redhat.com>
2203 * sysdeps/i386/i486/bits/atomic.h
2204 (__arch_compare_and_exchange_val_64_acq): Rewrite abort-calling
2205 version of the macro to avoid compile-time warnings.
2206 [! __PIC__] (__arch_compare_and_exchange_64_acq): Rename to above.
2207 (atomic_exchange_and_add, atomic_add): Fix name and usage of it.
2208 (atomic_increment, atomic_decrement): Likewise.
2210 2003-03-21 Ulrich Drepper <drepper@redhat.com>
2212 * sysdeps/x86_64/bits/atomic.h: Don't use matching memory constraints.
2213 * sysdeps/i386/i486/bits/atomic.h: Likewise.
2215 2003-03-21 Roland McGrath <roland@redhat.com>
2217 * include/atomic.h (atomic_compare_and_exchange_bool_acq): Typo fix.
2219 2003-03-20 Ulrich Drepper <drepper@redhat.com>
2221 * include/atomic.h: Define atomic_compare_and_exchange_val_acq,
2222 atomic_compare_and_exchange_val_rel,
2223 atomic_compare_and_exchange_bool_acq, and
2224 atomic_compare_and_exchange_bool_rel instead of
2225 atomic_compare_and_exchange_acq and atomic_compare_and_exchange_rel.
2226 * sysdeps/i386/i486/bits/atomic.h: Define
2227 __arch_compare_and_exchange_val_*_acq instead of
2228 __arch_compare_and_exchange_*_acq.
2229 * sysdeps/x86_64/bits/atomic.h: Likewise.
2230 * sysdeps/ia64/bits/atomic.h: Define
2231 __arch_compare_and_exchange_bool_*_acq instead of
2232 __arch_compare_and_exchange_*_acq.
2233 * sysdeps/powerpc/bits/atomic.h: Likewise.
2234 * sysdeps/s390/bits/atomic.h: Likewise.
2235 * gmon/mcount.c: Adjust for new form of compare&exchange macros.
2236 * malloc/set-freeres.c: Likewise.
2237 * nscd/cache.c: Likewise.
2238 * stdlib/cxa_finalize.c: Likewise.
2239 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
2241 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
2243 * sysdeps/mips/bits/setjmp.h: n32 has only 6 call-saved fpregs.
2244 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Adjust.
2245 * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
2247 * sysdeps/unix/sysv/linux/mips/pread.c: Don't break up offset
2248 into high and low halves on n64.
2249 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
2250 * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
2251 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
2253 2003-03-20 Ulrich Drepper <drepper@redhat.com>
2255 * include/atomic.h (atomic_decrement_if_positive): Adjust for the
2256 correct atomic_compare_and_exchange_acq semantics.
2258 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
2260 * sysdeps/mips/ieee754.h: Remove excess #endif.
2262 2003-03-20 Roland McGrath <roland@redhat.com>
2264 * sysdeps/powerpc/bits/atomic.h (atomic_exchange): Remove unused
2265 variable. Remove superfluous memory clobber.
2267 * include/atomic.h: Syntax braino fix.
2269 * posix/tst-nice.c (do_test): Use %m formats instead of printing errno
2270 in decimal. Don't bail if niced at start. Just check that nice call
2271 bumps the total at all.
2273 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
2275 * sysdeps/mips/bits/setjmp.h: Store all N32 and N64 registers,
2276 including pc, gp, sp and fp, as long long.
2277 * sysdeps/mips/mips64/setjmp.S: Pass gp to __sigsetjmp_aux.
2278 * sysdeps/mips/mips64/setjmp_aux.c: Adjust type of arguments.
2279 Add gp argument, and set gp in the jmpbuf to it.
2280 * sysdeps/mips/setjmp_aux.c: Revert to o32-only.
2282 2003-03-20 Ulrich Drepper <drepper@redhat.com>
2284 * include/atomic.h: Define atomic_exchange and
2285 atomic_decrement_if_positive if not already defined. Add some
2287 * sysdeps/i386/i486/bits/atomic.h: Define atomic_exchange.
2288 * sysdeps/x86_64/bits/atomic.h: Likewise.
2289 * sysdeps/ia64/bits/atomic.h: Pretty printing. Define atomic_exchange.
2290 * sysdeps/powerpc/bits/atomic.h: Pretty printing. Define
2291 atomic_exchange, atomic_exchange_and_add, and
2292 atomic_decrement_if_positive
2294 2003-03-20 Alexandre Oliva <aoliva@redhat.com>
2296 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: Sign-extend
2297 with a single instruction.
2299 * sysdeps/mips/dl-machine.h (ELF_MIPS_GNU_GOT1_MASK): Define
2301 (elf_machine_runtime_setup): Cast link_map pointer to Elf Addr
2303 (elf_machine_rel, elf_machine_rel_relative): Cast symidx to Elf
2304 Word before comparing with gotsym. Take reloc_addr argument as
2305 void*. Remove the code added for the compiler to drop any
2306 alignment assumptions.
2308 2003-03-19 Ulrich Drepper <drepper@redhat.com>
2310 * Makefile (distribute): Add include/atomic.h and bits/atomic.h.
2311 * include/atomic.h: New file.
2312 * sysdeps/i386/i486/bits/atomic.h: New file.
2313 * sysdeps/x86_64/bits/atomic.h: New file.
2314 * sysdeps/s390/bits/atomic.h: New file.
2315 * sysdeps/sh/bits/atomic.h: New file.
2316 * sysdeps/ia64/bits/atomic.h: New file.
2317 * sysdeps/powerpc/bits/atomic.h: New file.
2318 * sysdeps/generic/bits/atomic.h: New file.
2319 * sysdeps/i386/i486/atomicity.h: Removed.
2320 * sysdeps/x86_64/atomicity.h: Removed.
2321 * sysdeps/s390/s390-32/atomicity.h: Removed.
2322 * sysdeps/s390/s390-64/atomicity.h: Removed.
2323 * sysdeps/ia64/atomicity.h: Removed.
2324 * sysdeps/powerpc/powerpc32/atomicity.h: Removed.
2325 * sysdeps/powerpc/powerpc64/atomicity.h: Removed.
2326 * elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
2327 use of macros from atomicity.h to new names and semantics.
2328 * gmon_mcount.c: Likewise.
2329 * malloc/set-freeres.c: Likewise.
2330 * nscd/cache.c: Likewise.
2331 * stdlib/cxa_finalize.c: Likewise.
2332 * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
2334 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
2336 * sysdeps/mips/ieee754.h: New file, suitable to replace both
2337 ../ieee754/ieee754.h and ../ieee754/ldbl-128/ieee754.h, kept
2338 mips-specific for now.
2340 2003-03-19 Ulrich Drepper <drepper@redhat.com>
2342 * stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
2343 hexdigits correctly. Reported by Fred Tydeman <tydeman@tybor.com>.
2344 * stdlib/tst-strtod.c: Add test for the bug.
2346 * posix/tst-nice.c (do_test): Remove invalid of return value.
2347 Don't run test if initial level != 0.
2349 2003-03-19 Amos Waterland <apw@us.ibm.com>
2351 * posix/tst-nice.c: New file.
2352 * posix/Makefile (tests): Add tst-nice.
2354 2003-03-18 Roland McGrath <roland@redhat.com>
2356 * abilist: New directory of libfoo.abilist files maintained using
2357 scripts/merge-abilist.awk and "make update-abi" rules.
2358 * Makefile (distribute): Add abilist/*.abilist.
2359 * Makerules [$(build-shared) = yes] [$(subdir)] (tests):
2360 Depend on check-abi.
2362 * configure.in: Move $critic_missing check after all AC_CHECK_PROG_VER.
2363 * configure: Regenerated.
2365 * sysdeps/unix/sysv/linux/syscalls.list (posix_fadvise64): Fix name.
2367 2003-03-18 Ulrich Drepper <drepper@redhat.com>
2369 * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_MONOTONIC_CLOCK
2372 2003-03-18 Steven Munroe <sjmunroe@us.ibm.com>
2374 * sysdeps/powerpc/powerpc64/memcpy.S: New file.
2376 2003-03-18 Ulrich Drepper <drepper@redhat.com>
2378 * Versions.def: Add GLIBC_2.3.3 for libpthread.
2380 2003-03-17 Ulrich Drepper <drepper@redhat.com>
2382 * sysdeps/generic/libc-start.c [!SHARED &&
2383 !LIBC_START_MAIN_AUXVEC_ARG]: Compute beginning of auxvec correctly.
2385 2003-03-17 Roland McGrath <roland@redhat.com>
2387 * include/ctype.h: Revert last change.
2389 2003-03-17 Ulrich Drepper <drepper@redhat.com>
2391 * argp/tst-argp1.c: Use test-skeleton.c.
2392 * locale/tst-C-locale.c: Likewise.
2394 2003-03-17 Alexandre Oliva <aoliva@redhat.com>
2396 * sysdeps/mips/mips64/Implies: Move wordsize-64 to...
2397 * sysdeps/mips/mips64/n64/Implies: New file.
2398 * sysdeps/mips/mips64/n64/Makefile: New file.
2399 * sysdeps/mips/mips64/n64/el/bits/endian.h: New file.
2400 * sysdeps/mips/mips64/n32/Implies: New file.
2401 * sysdeps/mips/mips64/n32/Makefile: New file.
2402 * sysdeps/mips/mips64/n32/el/bits/endian.h: New file.
2403 * sysdeps/unix/mips/mips64/n32/sysdep.h: New file.
2404 * sysdeps/unix/mips/mips64/n64/sysdep.h: New file.
2405 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: New file.
2406 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: New file.
2407 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: New file.
2408 * sysdeps/unix/sysv/linux/mips/mips64/ldconfig.h: New file.
2409 * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: New file.
2410 * sysdeps/unix/sysv/linux/mips/mips64/recv.c: New file.
2411 * sysdeps/unix/sysv/linux/mips/mips64/send.c: New file.
2412 * sysdeps/unix/sysv/linux/mips/mips64/syscall.S: New file.
2413 * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: New file.
2414 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: New file.
2415 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S: New file.
2417 * sysdeps/unix/sysv/linux/configure.in (libc_cv_slibdir): Use
2418 lib64 for mips64/n64 and lib32 for mips64/n32.
2419 (ldd_rewrite_script): Needed for all mips64 configurations.
2420 * sysdeps/unix/sysv/linux/configure: Rebuilt.
2421 * sysdeps/unix/sysv/linux/mips/mips64/ldd-rewrite.sed: New file.
2422 * sysdeps/unix/sysv/linux/mips/mips64/Dist: New file.
2424 * sysdeps/mips/machine-gmon.h (MCOUNT): Define for N32 and N64 as
2427 * sysdeps/unix/sysv/linux/mips/configure.in: New. Pre-process
2428 asm/unistd.h into asm-unistd.h.
2429 * sysdeps/unix/sysv/linux/mips/configure: Generated.
2430 * sysdeps/unix/sysv/linux/mips/Makefile: Do custom processing
2432 * sysdeps/unix/sysv/linux/mips/sys/syscall.h: New file.
2433 * sysdeps/unix/sysv/linux/mips/clone.S: Don't include
2436 * sysdeps/unix/sysv/linux/mips/sys/ptrace.h: New file.
2437 * sysdeps/unix/sysv/linux/mips/ptrace.c: New file. Use long
2438 long type for registers on n32.
2440 * sysdeps/mips/bits/wordsize.h: New file, appropriate for all
2442 * sysdeps/mips/mips64/gmp-mparam.h: New file. Define
2443 BITS_PER_LONGINT to __WORDSIZE, to match all 3 ABIs.
2444 * sysdeps/mips/setjmp_aux.c (STRINGXP, REGS, PTRS): New macros.
2445 (__sigsetjmp_aux): Use them. Adjust for all 3 ABIs.
2446 * sysdeps/mips/elf/start.S: Adjust for all 3 ABIs.
2447 * sysdeps/unix/mips/brk.S: Likewise.
2448 * sysdeps/unix/mips/sysdep.S: Likewise.
2449 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
2450 * sysdeps/mips/bits/setjmp.h (__jmp_buf): Likewise.
2451 * sysdeps/mips/sys/ucontext.h: Likewise.
2452 * sysdeps/unix/sysv/linux/mips/sys/profcs.h: Likewise.
2453 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Likewise.
2454 * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Likewise.
2455 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
2456 * sysdeps/mips/mips64/bsd-setjmp.S: Likewise.
2457 * sysdeps/mips/mips64/setjmp.S: Likewise.
2458 * sysdeps/mips/mips64/bits/setjmp.h: Deleted, obsolete.
2459 * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Use long long for
2462 2003-03-16 Ulrich Drepper <drepper@redhat.com>
2464 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
2465 not at function level.
2466 * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
2468 2003-03-15 Roland McGrath <roland@redhat.com>
2470 * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
2471 * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
2472 * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Likewise.
2473 * nis/nis_table.c (__create_ib_request): Likewise.
2475 * posix/fnmatch_loop.c: Add casts for signedness.
2476 * nss/nss_files/files-hosts.c: Likewise.
2477 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
2478 * gmon/gmon.c (write_call_graph): Use u_long for FROM_LEN.
2479 * nscd/nscd_getgr_r.c (nscd_getgr_r): Use nscd_ssize_t for CNT.
2481 * configure.in (libc_cv_visibility_attribute): Use AC_TRY_COMMAND,
2482 get errors into the log file.
2483 (libc_cv_broken_visibility_attribute): Likewise.
2484 (libc_cv_broken_alias_attribute): Likewise.
2485 (libc_cv_asm_weak_directive): Likewise.
2486 (libc_cv_need_minus_P): Likewise.
2487 (libc_cv_dot_text): Likewise.
2488 (libc_cv_asm_global_directive): Likewise.
2489 (libc_cv_asm_type_prefix): Likewise.
2490 * configure: Regenerated.
2492 * nscd/cache.c (cache_search): Give first arg type `request_type'.
2493 * nscd/nscd.h: Update decl.
2495 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
2496 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
2497 * elf/dl-close.c (_dl_close): Likewise.
2498 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
2499 * io/fts.c (fts_build): Likewise.
2500 * elf/cache.c (add_to_cache): Likewise.
2501 * locale/programs/locarchive.c (show_archive_content): Likewise.
2503 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
2505 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
2507 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
2509 2003-03-15 Ulrich Drepper <drepper@redhat.com>
2511 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
2512 code for most parts.
2514 2003-03-15 Roland McGrath <roland@redhat.com>
2516 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
2517 * sysdeps/unix/sysv/linux/system.c: ... here.
2518 (FORK): Don't #define if already #define'd.
2519 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
2520 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
2521 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
2523 * dlfcn/tst-dlinfo.c: New file.
2524 * dlfcn/Makefile (tests): Add tst-dlinfo.
2525 ($(objpfx)tst-dlinfo): New target.
2527 * dlfcn/dlinfo.c: New file.
2528 * dlfcn/Makefile (libdl-routines): Add it.
2529 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
2530 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
2531 [__USE_GNU] (RTLD_DI_*): New enum constants.
2532 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
2533 * elf/dl-load.c (cache_rpath): New inline function.
2534 (_dl_map_object): Use it.
2535 (_dl_rtld_di_serinfo): New function.
2536 * sysdeps/generic/ldsodefs.h: Declare it.
2537 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
2539 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
2540 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
2541 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
2542 (__libc_start_main): Just call the generic one for most of the work.
2544 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
2545 static function by that name instead of BP_SYM (__libc_start_main).
2546 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
2547 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
2548 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
2550 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
2551 Use this macro for extra AT_* cases.
2552 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
2553 New macro, guts from ...
2554 (__aux_init_cache): ... here, function removed.
2555 (DL_PLATFORM_INIT): Don't define this.
2557 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
2558 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
2560 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
2562 2003-03-14 Roland McGrath <roland@redhat.com>
2564 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
2566 2003-03-14 Jakub Jelinek <jakub@redhat.com>
2568 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
2570 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
2571 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
2573 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
2575 * sysdeps/mips/fpu/bits/mathdef.h: New.
2576 (__NO_LONG_DOUBLE_MATH): Define for o32.
2578 * sysdeps/mips/sys/asm.h: Formatting changes.
2579 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
2580 (CPADD): Define for all of them.
2581 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
2582 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
2583 NARGSAVE): Define per ABI spec.
2584 (END): Don't redefine.
2585 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
2586 LONG_SRAV): Remove duplicate definitions.
2587 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
2588 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
2589 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
2590 (PTR_LA): Define for all 3 ABIs.
2592 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
2593 (elf_machine_matches_host): Prevent linking of o32 and n32
2595 (elf_machine_dynamic): Document assumption on $gp.
2596 (STRINGXP, STRINGXV, STRINGV_): New macros.
2597 (elf_machine_load_address): Use them to stringize PTR_LA and
2599 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
2600 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
2601 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
2602 (__dl_runtime_resolve): Cast the symtab initializer to the
2604 (RTLD_START): Use it. Adjust it for all 3 ABIs.
2605 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
2606 Handle 64-bit R_MIPS_REL composite relocation and accept
2607 R_MIPS_64 relocations to shift addend size to 64 bits.
2608 Document assumption regarding local GOT entries. Document
2609 backward-compatibility departing from the ABI behavior in
2610 applying relocations that reference section symbols, no longer
2611 used. Support relocations to mis-aligned offsets.
2612 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
2614 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
2616 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
2617 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
2618 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
2619 restore_rt functions. Use them.
2621 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
2622 .set mips2 on new abis.
2624 2003-03-13 Ulrich Drepper <drepper@redhat.com>
2626 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
2627 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
2628 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
2629 * sysdeps/posix/pathconf.c: Likewise.
2630 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
2631 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
2632 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
2634 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
2637 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
2639 * include/gmp.h: Include/gmp-mparam.h.
2640 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
2643 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
2644 ELF_MACHINE_NO_RELA is set.
2645 * elf/rtld.c (dl_main): No prelink support for REL-only.
2647 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
2648 FLAG_MIPS64_LIBN64): Define.
2649 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
2651 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
2652 * sysdeps/mips/memset.S: Likewise.
2653 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
2654 depending on the ABI.
2656 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
2657 Don't .set mips2 on new abi.
2658 (compare_and_swap): Likewise. Support 64-bit longs on n64.
2660 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
2662 2003-03-13 Roland McGrath <roland@redhat.com>
2664 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
2665 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
2667 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
2669 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
2671 * stdlib/fpioconst.c: Likewise.
2672 * stdlib/strtod.c: Likewise.
2674 * sysdeps/mips/add_n.S: Use L macro for local labels.
2675 * sysdeps/mips/addmul_1.S: Likewise.
2676 * sysdeps/mips/lshift.S: Likewise.
2677 * sysdeps/mips/memcpy.S: Likewise.
2678 * sysdeps/mips/memset.S: Likewise.
2679 * sysdeps/mips/mul_1.S: Likewise.
2680 * sysdeps/mips/rshift.S: Likewise.
2681 * sysdeps/mips/sub_n.S: Likewise.
2682 * sysdeps/mips/submul_1.S: Likewise.
2683 * sysdeps/mips/mips64/add_n.S: Likewise.
2684 * sysdeps/mips/mips64/addmul_1.S: Likewise.
2685 * sysdeps/mips/mips64/lshift.S: Likewise.
2686 * sysdeps/mips/mips64/mul_1.S: Likewise.
2687 * sysdeps/mips/mips64/rshift.S: Likewise.
2688 * sysdeps/mips/mips64/sub_n.S: Likewise.
2689 * sysdeps/mips/mips64/submul_1.S: Likewise.
2690 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
2691 conventions. Define END as in sys/asm.h.
2692 * sysdeps/unix/mips/sysdep.S: Likewise.
2693 * sysdeps/unix/mips/wait.S: Likewise.
2694 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
2696 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
2697 Cast shifted values that may be too narrow to mp_limb_t.
2698 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
2700 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
2702 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
2703 (__mpn_extract_long_double): Likewise.
2704 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
2705 (__mpn_construct_long_double): Likewise.
2706 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
2707 (__mpn_extract_long_double): Likewise.
2708 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
2709 (__mpn_construct_long_double): Likewise.
2711 2003-03-13 Roland McGrath <roland@redhat.com>
2713 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
2714 entries in the map file match too.
2716 2003-03-13 Guido Guenther <agx@sigxcpu.org>
2718 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
2719 label .Lthread_start since current binutils don't allow branches
2720 to globally visible symbols.
2722 2003-03-13 Jakub Jelinek <jakub@redhat.com>
2724 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
2725 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
2726 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
2727 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
2728 clobbered by the syscall.
2729 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
2730 ASM_ARGS_6): Change constraints from r to index of corresponding
2732 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
2733 ptid and ctid to match kernel.
2734 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
2736 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
2738 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
2739 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
2740 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
2742 2003-03-11 Roland McGrath <roland@redhat.com>
2744 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
2745 Check SYM_MAP rather than SYM as definedness check.
2746 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
2747 Don't handle R_PPC64_REL24 reloc.
2748 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
2750 * sysdeps/powerpc/powerpc64/dl-machine.h
2751 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
2752 block, so we cover all the TPREL16* flavors without 6 ||s.
2753 [USE_TLS] (elf_machine_tprel): New function.
2754 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
2755 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
2756 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
2758 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
2760 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
2761 instead of jalr to invoke subroutine so restoring the $gp register
2764 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
2766 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
2767 to __NR_pread if not defined.
2768 (__NR_pwrite64): Define to __NR_pwrite if not defined.
2770 2003-03-11 Jakub Jelinek <jakub@redhat.com>
2772 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
2773 * sysdeps/unix/sysv/linux/kernel-features.h
2774 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
2777 2003-03-11 Jakub Jelinek <jakub@redhat.com>
2779 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
2780 allocate space even for the trailing '/'.
2781 Reported by John Reiser <jreiser@BitWagon.com>.
2783 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
2784 ASM_CLOBBERS_6): Define.
2785 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
2786 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
2787 to match IA-32 order.
2788 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
2790 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
2792 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
2793 Copy extra params for NPTL to registers used in clone syscall.
2795 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
2797 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
2798 call names for pread and pwrite.
2800 2003-03-10 Roland McGrath <roland@redhat.com>
2802 * dlfcn/Makefile (libdl-routines): Add dladdr1.
2803 * dlfcn/dladdr1.c: New file.
2804 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
2805 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
2806 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
2807 a const ElfNN_Sym ** to fill in.
2808 * include/dlfcn.h: Update decl. Include <link.h>.
2809 * dlfcn/dladdr.c (dladdr): Update caller.
2810 * malloc/mtrace.c (tr_where): Likewise.
2811 * sysdeps/generic/elf/backtracesyms.c: Likewise.
2812 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
2813 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
2814 * Versions.def (libdl): Define GLIBC_2.3.3 set.
2816 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
2818 * sysdeps/unix/Makefile (compile-syscall): New variable.
2819 Pass -g0 to compiler for assembling syscall stubs from stdin.
2821 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
2822 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
2823 Define these to do nothing.
2825 * configure.in: New check for -g on .S files.
2826 * configure: Regenerated.
2827 * config.make.in (have-cpp-asm-debuginfo): New variable.
2828 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
2829 * Makeconfig (ASFLAGS): New variable, if undefined and
2830 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
2831 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
2833 2003-03-09 Roland McGrath <roland@redhat.com>
2835 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
2836 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
2838 2003-03-09 Ulrich Drepper <drepper@redhat.com>
2840 * po/fi.po: Update from translation team.
2841 * po/ca.po: Likewise.
2842 * po/da.po: Likewise.
2844 2003-03-08 Ulrich Drepper <drepper@redhat.com>
2846 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
2848 2003-03-07 Ulrich Drepper <drepper@redhat.com>
2850 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
2852 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
2854 2003-03-07 Roland McGrath <roland@redhat.com>
2856 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
2857 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
2859 2003-03-04 Guido Guenther <agx@sigxcpu.org>
2861 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
2862 stubs, we have INLINE_SYSCALL.
2863 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
2866 2003-03-06 Roland McGrath <roland@redhat.com>
2868 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
2869 permanent extent and add a comment about testing its implicit teardown.
2871 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2873 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
2875 2003-03-05 Ulrich Drepper <drepper@redhat.com>
2877 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
2878 reversed __builtin_expect expectation.
2880 2003-03-05 Roland McGrath <roland@redhat.com>
2882 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
2883 * libio/swscanf.c: Likewise.
2884 * libio/swprintf.c: Likewise.
2886 2003-03-04 Roland McGrath <roland@redhat.com>
2888 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
2889 (elf_machine_rela): Always use RESOLVE_MAP, needed for
2890 R_PPC64_JMP_SLOT as well as TLS cases.
2891 (BIT_INSERT): Move parenthesis where it ought to have been.
2892 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
2894 * posix/confstr.c (confstr): Correct STRING_LEN values for
2895 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
2896 break. Reported by Alexandre Julliard <julliard@winehq.com>.
2898 2003-03-04 Jakub Jelinek <jakub@redhat.com>
2900 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
2902 2003-03-04 Ulrich Drepper <drepper@redhat.com>
2904 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
2907 * po/sv.po: Update from translation team.
2909 2003-03-04 Andreas Jaeger <aj@suse.de>
2910 Ulrich Drepper <drepper@redhat.com>
2912 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
2914 2003-03-03 Ulrich Drepper <drepper@redhat.com>
2916 * sysdeps/generic/dl-sysdep.h: Add double include protection.
2918 * po/tr.po: Update from translation team.
2920 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
2921 are holes between the segments. Only call mprotect to set
2922 proection to PROT_NONE if there are some.
2924 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
2927 * include/sched.h (__clone2): Use ... instead of adding all the
2930 2003-03-03 Roland McGrath <roland@redhat.com>
2932 * elf/dl-load.c (struct filebuf): Fix typo in last change.
2934 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
2935 PI_STATIC_AND_HIDDEN.
2937 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
2939 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
2941 * include/sched.h: Update clone2 prototype.
2943 2003-03-03 Andreas Jaeger <aj@suse.de>
2945 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
2946 (llrint): Use it to correct return type.
2949 (llround): Likewise.
2951 2003-03-03 Ulrich Drepper <drepper@redhat.com>
2953 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
2956 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
2957 if ccs parameter isn't valid. Reported by Andreas Schwab.
2959 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
2961 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
2962 for system call numbers > 255.
2963 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
2964 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
2965 INTERNAL_SYSCALL): Likewise.
2966 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
2967 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
2968 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
2969 INTERNAL_SYSCALL): Likewise.
2971 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
2973 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
2974 array if it is the initial dtv.
2976 2003-03-03 Ulrich Drepper <drepper@redhat.com>
2978 * po/es.po: Update from translation team.
2979 * po/fr.po: Likewise.
2980 * po/gl.po: Likewise.
2981 * po/sk.po: Likewise.
2982 * po/sv.po: Likewise.
2984 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
2985 * misc/sys/mman.h: Add prototype for remap_file_pages.
2986 * sysdeps/generic/remap_file_pages.c: New file.
2987 * misc/Makefile (routines): Add remap_file_pages.
2988 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
2990 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
2992 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
2993 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
2994 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
2995 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
2996 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
2997 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
2998 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
2999 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
3001 2003-03-03 Roland McGrath <roland@redhat.com>
3003 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
3004 * sysdeps/ia64/dl-machine.h: Likewise.
3005 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
3007 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
3009 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
3010 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
3011 * locale/Versions (libc: GLIBC_2.3): Move those to ...
3012 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
3013 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
3014 * Versions.def (libc): Add GLIBC_2.3.3 set.
3016 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
3017 * sysdeps/ia64/dl-machine.h: Update decl.
3019 2003-03-03 Andreas Jaeger <aj@suse.de>
3021 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
3023 2003-03-02 Roland McGrath <roland@redhat.com>
3025 * scripts/abilist.awk: Reject data items with apparent 0 size.
3027 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
3028 after foo.* as if it were a duplicate.
3030 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
3032 2003-03-02 Ulrich Drepper <drepper@redhat.com>
3034 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
3036 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
3037 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
3038 if not already defined. Use SYSDEP_GETRES to allow other files to
3039 provide alternative implementations.
3040 * sysdeps/unix/sysv/linux/clock_getres.c: New file
3041 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
3042 if not already defined. Use SYSDEP_GETTIME to allow other files to
3043 provide alternative implementations.
3044 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
3045 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
3046 if not already defined. Use SYSDEP_GETTIME to allow other files to
3047 provide alternative implementations.
3048 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
3049 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
3050 other files to provide alternative implementations. Rearrange
3051 tests for invalid parameters.
3052 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
3053 * sysdeps/unix/sysv/linux/sysconf.c: New file.
3054 * sysdeps/unix/sysv/linux/kernel-features.h: Define
3055 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
3056 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
3057 _POSIX_MONOTONIC_CLOCK.
3059 2003-03-02 Roland McGrath <roland@redhat.com>
3061 * scripts/merge-abilist.awk: More checks for bogus input.
3062 Uniquify duplicate config names.
3064 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
3066 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
3067 from dl_reloc_overflow, make global.
3068 (__process_machine_rela): Update callers.
3069 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
3070 Add attribute_hidden to __process_machine_rela decl.
3071 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
3073 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
3076 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
3077 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
3078 (elf_machine_rela): Clean up.
3080 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
3082 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
3083 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
3084 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
3085 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
3086 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
3087 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
3090 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
3091 macros out of [SHARED].
3092 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
3094 * elf/elf.h: Define R_PPC_* relocs for TLS support.
3095 Clean up R_PPC64_* macro definition comments.
3097 * configure.in: In "running configure fragment for" message,
3098 omit $srcdir from the name if we prepended it.
3099 * configure: Regenerated.
3101 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
3102 From Jakub Jelinek <jakub@redhat.com>.
3104 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
3105 which duplicated the O_DIRECT defn.
3107 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
3109 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
3112 2003-03-01 Andreas Schwab <schwab@suse.de>
3114 * resolv/Makefile (tests): Don't depend on
3115 $(objpfx)mtrace-tst-leaks when cross compiling.
3117 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
3118 __libc_stack_end through GOT since it is a global symbol.
3120 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
3122 * argp/argp.h: Fix a typo.
3123 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
3125 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
3127 2003-02-27 Pat Rankin <rankin@pactechdata.com>
3129 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
3131 (get_subexp): Likewise.
3133 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
3135 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
3137 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
3139 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
3141 2003-02-27 Roland McGrath <roland@redhat.com>
3143 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
3144 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
3145 repeat it and avoids the test for the common case.
3146 Clean up and fix calculations for TLS relocs.
3148 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
3149 * sysdeps/powerpc/dl-tls.h: ... here.
3150 (TLS_TP_OFFSET): New macro.
3152 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
3154 2003-02-27 Ulrich Drepper <drepper@redhat.com>
3156 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
3157 code generation changes in recent gcc.
3159 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
3161 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
3162 Rename argument to avoid symbol conflict.
3164 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
3165 [__USE_GNU] (O_DIRECT): New macro.
3167 2003-02-24 David Mosberger <davidm@hpl.hp.com>
3169 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
3172 2003-02-27 Ulrich Drepper <drepper@redhat.com>
3174 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
3175 initializer anymore now that res_thread_freeres is more careful.
3177 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
3178 except the PKTINFO. Reset interface in PKTINFO.
3179 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
3181 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
3183 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
3184 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
3186 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
3187 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
3188 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
3189 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
3191 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
3192 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
3194 2003-02-25 Andreas Jaeger <aj@suse.de>
3196 * manual/memory.texi (Malloc Tunable Parameters): Clarify
3197 behaviour of M_MMAP_THRESHOLD.
3199 2003-02-25 Roland McGrath <roland@redhat.com>
3201 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
3202 zero, inidicating _res was not initialized yet.
3204 2003-02-24 Ulrich Drepper <drepper@redhat.com>
3206 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
3209 2003-02-24 Roland McGrath <roland@redhat.com>
3211 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
3213 2003-02-23 Roland McGrath <roland@redhat.com>
3215 * sysdeps/posix/pause.c: New file.
3216 * sysdeps/unix/common/pause.c: File removed.
3218 2003-02-23 Ulrich Drepper <drepper@redhat.com>
3220 * sysdeps/generic/bits/confname.h: Remove #ifs.
3222 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
3223 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
3225 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
3228 2003-02-22 Ulrich Drepper <drepper@redhat.com>
3230 * sysdeps/generic/dl-sysdep.c: Avoid warning.
3232 2003-02-22 Roland McGrath <roland@redhat.com>
3234 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
3235 * resolv/Makefile (tests): Add tst-leaks.
3236 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
3237 (tst-leaks-ENV): New variable.
3238 ($(objpfx)mtrace-tst-leaks): New target.
3239 (tests): Depend on it.
3241 * include/libc-internal.h: Declare __libc_thread_freeres.
3243 * Makerules: Fix last change to use $($(subdir)-version) when set.
3245 * Makerules (install-lib-nosubdir): Depend on installed
3246 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
3247 regardless of the libfoo.so target's dependencies.
3249 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
3250 Use that in $(MAKE) calls.
3252 2003-02-22 Ulrich Drepper <drepper@redhat.com>
3254 * catgets/gencat.c (read_input_file): Collision between
3255 auto-assigned numbers and user-defined nubmers is not fatal.
3257 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
3258 * catgets/Makefile: Add rules to run test2.msg test.
3259 * catgets/test2.msg: New file.
3261 * catgets/gencat.c (main): Return 1 if messages have been printed.
3263 * iconv/iconv_prog.c (main): Unify messages.
3265 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
3266 when shifting retval.
3267 * stdlib/tst-strtod.c (main): Add strtold test case.
3268 Reported by Fred J. Tydeman <tydeman@tybor.com>.
3270 2003-02-21 Roland McGrath <roland@redhat.com>
3272 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
3273 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
3274 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
3276 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
3277 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
3278 (res_thread_freeres): New function, on __libc_thread_subfreeres and
3281 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
3282 * malloc/thread-freeres.c: New file.
3283 * malloc/Makefile (aux): Add it.
3284 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
3285 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
3286 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
3288 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
3289 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
3291 2003-02-21 Roland McGrath <roland@frob.com>
3293 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
3295 * iconvdata/Makefile (tests): Add bug-iconv3 only if
3296 [$(have-thread-library) = yes].
3298 2003-02-21 Ulrich Drepper <drepper@redhat.com>
3300 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
3302 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
3303 not chechk for errors (unless testing for 32bit variant).
3304 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
3305 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
3306 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
3308 2003-02-21 Jakub Jelinek <jakub@redhat.com>
3310 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
3311 Check for signed overflow, not unsigned.
3313 * sysdeps/sparc/sparc64/elf/configure.in: New file.
3314 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
3315 Use -fcall-used-g6, not -fcall-used-g7.
3317 2003-02-21 Andreas Jaeger <aj@suse.de>
3319 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
3322 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
3323 clear whole mxcsr but only exceptions.
3325 2003-02-21 Roland McGrath <roland@redhat.com>
3327 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
3328 for libfoo.so that need $(make-link) rules.
3330 2003-02-21 Roland McGrath <roland@frob.com>
3332 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
3333 to match existing struct stat layout in mig protocols.
3335 2003-02-20 Ulrich Drepper <drepper@redhat.com>
3337 * version.h (VERSION): Bump to 2.3.2.
3339 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
3340 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
3342 * sysdeps/generic/Dist: Add sysdep-cancel.h.
3343 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
3344 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
3345 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
3346 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
3347 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
3349 * Makefile (distribute): Add include/stubs-prologue.h,
3350 include/gnu/stubs.h, scripts/merge-abilist.awk, and
3351 scripts/extract-abilist.awk.
3353 2003-02-20 Roland McGrath <roland@redhat.com>
3355 * math/Makefile (distribute): Don't add generated files.
3357 2003-02-20 Ulrich Drepper <drepper@redhat.com>
3359 * math/Makefile: Rearrange variable definitions slightly to get
3360 definition in the right order.
3362 2003-02-20 Roland McGrath <roland@redhat.com>
3364 * Makerules: Clean up conditional around include of tls.make.
3365 * Make-dist: Export generating=t to prevent using that.
3366 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
3368 2003-02-20 Ulrich Drepper <drepper@redhat.com>
3370 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
3371 around in search if port IPPORT_RESERVED/2 has been test.
3373 2002-02-20 Paolo Bonzini <bonzini@gnu.org>
3375 * posix/regcomp.c: Remove inclusions.
3376 * posix/regexec.c: Likewise.
3377 * posix/regex_internal.c: Likewise.
3378 * posix/regex_internal.h: Add inclusions here.
3379 * posix/regex.c: Only include sys/types.h before regex.h. Include
3380 regex_internal.h here. Include regex_internal.c before regcomp.c
3381 and regexec.c (might expose more opportunities to the C compiler).
3383 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
3385 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
3386 [!_LIBC] (__wcrtomb): New definition.
3387 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
3388 HAVE_LOCALE_H as well.
3390 2003-02-20 Ulrich Drepper <drepper@redhat.com>
3392 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
3393 patch to check for system call errors.
3395 2002-07-24 Philip Blundell <philb@gnu.org>
3397 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
3400 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3402 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
3403 * sysdeps/unix/sysv/linux/kernel-features.h
3404 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
3405 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
3407 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
3408 interprocedure branches.
3409 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
3410 * sysdeps/powerpc/nofpu/Dist: ...here.
3411 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
3412 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
3413 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
3414 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
3415 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
3417 2003-02-18 Alan Modra <amodra@bigpond.net.au>
3419 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
3421 2003-02-20 Philip Blundell <philb@gnu.org>
3423 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
3424 missing arguments to INTERNAL_SYSCALL_ERROR_P and
3425 INTERNAL_SYSCALL_ERRNO.
3427 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
3429 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
3430 for __ASSUME_32BITUIDS.
3432 2003-02-20 Andreas Schwab <schwab@suse.de>
3434 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
3435 POSIX_MADV_* constants.
3437 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3439 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
3440 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
3441 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
3442 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
3444 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
3446 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
3448 2003-02-16 Roland McGrath <roland@redhat.com>
3450 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
3452 2003-02-19 Ulrich Drepper <drepper@redhat.com>
3454 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
3455 decimal input digits.
3456 * stdlib/tst-strtod.c (main): Add test for strtof bug.
3458 2003-02-18 Ulrich Drepper <drepper@redhat.com>
3460 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
3461 invalid file descriptors and missing access permissions.
3463 2003-02-17 Ulrich Drepper <drepper@redhat.com>
3465 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
3468 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
3469 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
3470 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
3473 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
3474 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3476 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
3477 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
3478 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
3479 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
3480 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
3482 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3484 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
3485 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
3486 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
3487 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
3488 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
3489 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
3491 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
3492 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
3493 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
3494 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
3496 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
3497 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
3498 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
3499 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
3501 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
3503 * nss/getent.c (print_hosts): Print all IP addresses of one host.
3505 2003-02-15 Roland McGrath <roland@frob.com>
3507 * sysdeps/mach/hurd/tls.h: New file.
3508 * sysdeps/mach/hurd/i386/tls.h: New file.
3510 * mach/errsystems.awk: Include <errno.h> in generated output.
3512 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
3513 use target mach-before-compile instead of generated.
3514 (mach-before-compile): New target.
3515 * Makerules: Disable use of tls.make if $(generating) is set.
3516 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
3517 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
3518 mach-shortcuts.h so mach/ generation happens before hurd/.
3520 2003-02-14 Ulrich Drepper <drepper@redhat.com>
3522 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
3523 of demorm correctly if low word is zero.
3524 Reported by Fred J. Tydeman <tydeman@tybor.com>.
3525 * math/libm-test.inc (nextafter_test): New test, but disabled due
3528 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
3529 counter and only call __exit_thread if this is not the last thread.
3531 2003-02-13 Jakub Jelinek <jakub@redhat.com>
3533 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
3534 subtracting map->l_tls_offset.
3536 2003-02-12 Ulrich Drepper <drepper@redhat.com>
3538 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
3539 _CS_GNU_LIBPTHREAD_VERSION.
3540 * posix/conststr.c: Handle these new values.
3541 * posix/getconf.c: Likewise.
3543 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
3544 masking of version index.
3545 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
3547 2003-02-11 Ulrich Drepper <drepper@redhat.com>
3549 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
3550 correctly. Reported by Thorsten Kukuk.
3552 2003-02-10 Ulrich Drepper <drepper@redhat.com>
3554 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
3555 _BSD_SOURCE to compiler.
3556 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
3557 Patches by Alan Modra.
3559 2003-02-08 Ulrich Drepper <drepper@redhat.com>
3561 * io/ftwtest.c: Get current working directory before and after the
3562 nftw call and make sure they match.
3564 2003-02-08 Jim Meyering <jim@meyering.net>
3566 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
3567 the current directory, not just when DIR contains a slash.
3568 Reported by Manoj Srivastava.
3570 2003-02-07 Jim Meyering <jim@meyering.net>
3572 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
3573 Include autoconf-recommended block of dirent/NAMELEN-related
3574 definitions and includes. Use NAMELEN throughout, rather than
3576 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
3577 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
3578 (stpcpy): Declare, if necessary.
3579 (mempcpy): Define, if necessary.
3580 [!_LIBC] (__stpcpy, __mempcpy): Define.
3581 [!_LIBC] (LXSTAT, XSTAT): Define.
3582 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
3583 (find_object): Don't use c99-style struct initializer.
3584 Tweak wording in a couple comments.
3586 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3588 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
3590 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
3591 after the trapa instruction.
3592 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
3594 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
3595 (NEED_SYSCALL_INST_PAD): Define.
3596 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
3597 avoid to use definition for the kernel.
3598 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
3599 Save and restore the frame pointer.
3600 (SYSCALL_INST_PAD): Define.
3601 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
3602 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
3603 after trapa instruction.
3604 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
3605 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
3607 2003-02-07 Jakub Jelinek <jakub@redhat.com>
3609 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
3610 so that it can have aliases.
3611 * inet/herrno.c (h_errno): Put it into .bss not .data section.
3613 2003-02-07 Ulrich Drepper <drepper@redhat.com>
3615 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
3616 (profile_fixup): Likewise.
3617 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
3619 2002-11-24 Robert Love <rml@tech9.net>
3621 * posix/sched.h: Second parameter of sched_setaffinity and
3622 sched_getaffinity is `unsigned int', not `unsigned long'.
3623 * sysdeps/generic/sched_setaffinity.c: Likewise.
3624 * sysdeps/generic/sched_getaffinity.c: Likewise.
3626 2003-02-05 Ulrich Drepper <drepper@redhat.com>
3628 * debug/catchsegv.sh: Fix typo in error messsage.
3629 Reported by John Levon <levon@movementarian.org>.
3631 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
3632 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
3633 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
3634 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3635 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
3636 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3637 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3639 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
3640 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
3642 2003-02-05 Jim Meyering <jim@meyering.net>
3644 Fix a heap-corrupting bug.
3645 * io/ftw.c: Include <limits.h>.
3646 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
3647 (process_entry): Allocate enough space to hold the resulting
3648 file name. Don't presume that 2*dirbufsize is enough.
3649 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
3650 it is guaranteed to be defined.
3652 2003-02-04 Ulrich Drepper <drepper@redhat.com>
3654 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
3655 * iconvdata/bug-iconv3.c: New file.
3657 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
3659 * sysdeps/unix/sysv/linux/s390/system.c: New file.
3661 2003-02-03 Jakub Jelinek <jakub@redhat.com>
3663 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
3665 * config.h.in (BROKEN_SPARC_WDISP22): Add.
3667 2003-02-03 Ulrich Drepper <drepper@redhat.com>
3669 * sysdeps/i386/i686/memmove.S: New file.
3671 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
3673 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
3674 Include kernel-features.h
3675 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
3676 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
3677 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
3678 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
3680 2003-02-02 Jakub Jelinek <jakub@redhat.com>
3682 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
3684 2003-01-25 Jim Meyering <jim@meyering.net>
3686 * io/ftw.c (object_compare): Compare inode numbers before device
3687 numbers, since the former are much more likely to differ.
3689 2003-02-01 Ulrich Drepper <drepper@redhat.com>
3691 * time/tzfile.c (__tzfile_compute): Change return value type to
3692 void. Adjust return statements.
3693 * include/time.h (__tzfile_compute): Adjust prototype.
3695 2003-02-01 Jim Meyering <jim@meyering.net>
3697 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
3700 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
3702 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
3703 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
3705 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
3707 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
3708 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
3709 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
3710 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
3711 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3712 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
3713 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3714 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
3716 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
3718 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
3719 back to 2.4.19 for powerpc64.
3720 * sysdeps/unix/sysv/linux/kernel-features.h
3721 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
3722 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
3724 2003-02-01 Ulrich Drepper <drepper@redhat.com>
3726 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
3727 platforms with strange alignment requirements on wchar_t.
3729 2003-01-31 Andreas Schwab <schwab@suse.de>
3731 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
3732 aliases, already added by make-syscalls.sh.
3733 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3734 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
3735 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3736 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3737 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3738 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3739 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3740 * sysdeps/unix/inet/syscalls.list: Likewise.
3741 * sysdeps/unix/syscalls.list: Likewise.
3743 2003-01-31 Andreas Schwab <schwab@suse.de>
3745 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
3748 2003-01-30 Jakub Jelinek <jakub@redhat.com>
3750 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
3751 not l to load tls from stack.
3753 2003-01-30 Roland McGrath <roland@redhat.com>
3755 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
3756 null argument before all else.
3757 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
3759 2003-01-30 Jakub Jelinek <jakub@redhat.com>
3761 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
3762 Move to RESOLVE protected part of the header.
3763 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
3766 2003-01-30 Ulrich Drepper <drepper@redhat.com>
3768 * stdio-common/Makefile (tests): Add bug15.
3769 (bug15-ENV): Define.
3770 * stdio-common/bug15.c: New file.
3772 2002-10-07 Wolfram Gloger <wg@malloc.de>
3774 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
3775 to foreign sbrk()'s if arena is contiguous. Bug report from
3776 Bruno Haible <bruno@clisp.org>.
3778 2003-01-30 Jakub Jelinek <jakub@redhat.com>
3780 * sysdeps/s390/libc-tls.c: Include stdlib.h.
3782 2003-01-30 Jakub Jelinek <jakub@redhat.com>
3784 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
3787 2003-01-30 Ulrich Drepper <drepper@redhat.com>
3789 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
3791 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
3793 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
3795 2003-01-30 Jakub Jelinek <jakub@redhat.com>
3797 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
3798 (allocate_static_tls): ...here. Add __attribute_noinline__.
3799 Don't return on failure.
3800 (_dl_reloc_bad_type): Add __attribute_noinline__.
3801 * elf/do-rel.h (elf_dynamic_do_rel): Add
3802 __attribute__((always_inline)).
3803 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
3804 elf_machine_rel_relative, elf_machine_rela_relative,
3805 elf_machine_lazy_rel): Add prototypes with
3806 __attribute__((always_inline)).
3808 2003-01-29 David Mosberger <davidm@hpl.hp.com>
3810 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
3812 2003-01-29 Roland McGrath <roland@redhat.com>
3814 * configure.in: Barf if configured in $srcdir.
3816 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
3818 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
3819 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
3821 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
3823 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
3824 clone parameters to match the order used on ia32.
3825 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
3827 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
3829 * elf/elf.h: Add new s390 relocs.
3830 * elf/tls-macros.h: Add s390 versions.
3831 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
3832 * sysdeps/s390/dl-tls.h: New file.
3833 * sysdeps/s390/libc-tls.c: New file.
3834 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
3835 relocs for class PLT.
3836 (elf_machine_rela): Handle TLS relocs.
3837 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
3838 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
3839 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
3840 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
3841 CLONE_CHILD_*TID flags.
3842 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
3843 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
3845 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
3846 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
3847 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
3848 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
3849 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
3851 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
3852 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
3853 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
3855 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
3856 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
3857 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
3858 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
3861 2003-01-28 Ulrich Drepper <drepper@redhat.com>
3863 * sysdeps/unix/common/pause.c (do_pause): New function. Split
3864 from __libc_pause. Implement using sigsuspend.
3865 (__libc_pause): Call do_pause to do the real work.
3867 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
3868 sig_or_mask parameter is is_sig != 0.
3870 2003-01-21 Philip Blundell <philb@gnu.org>
3872 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
3874 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
3876 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
3878 2003-01-27 Ulrich Drepper <drepper@redhat.com>
3880 * stdio-common/bug14.c: Use official name for the locale.
3882 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
3883 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
3884 instead of __libc_cleanup_region_end.
3886 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
3887 as first parameter to __libc_cleanup_region_start.
3889 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
3890 (__fe_nomask_env): Use __prctl not prctl.
3891 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
3894 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
3896 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
3898 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
3899 wrap-around in test.
3901 2003-01-26 Andreas Schwab <schwab@suse.de>
3903 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
3904 compatibility symbols. Remove INTDEF for __divdi3.
3905 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
3906 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
3907 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
3909 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
3911 2003-01-24 Jakub Jelinek <jakub@redhat.com>
3913 * elf/tls-macros.h: Add SPARC 32-bit definitions.
3914 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
3915 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
3916 for the first half of the header. Include tls.h.
3917 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
3919 (elf_machine_rela): Handle TLS relocs.
3920 * sysdeps/sparc/dl-tls.h: New file.
3922 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
3925 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
3926 * sysdeps/sparc/sparc32/memchr.S: Likewise.
3927 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
3928 * sysdeps/sparc/sparc32/strcat.S: Likewise.
3929 * sysdeps/sparc/sparc32/strchr.S: Likewise.
3930 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
3931 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
3932 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
3933 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
3934 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
3935 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
3936 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
3937 * sysdeps/sparc/sparc64/strcat.S: Likewise.
3938 * sysdeps/sparc/sparc64/strchr.S: Likewise.
3939 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
3940 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
3941 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
3942 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
3943 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
3944 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
3946 2003-01-24 Andreas Schwab <schwab@suse.de>
3948 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
3949 elements, and process them backwards.
3950 * elf/Makefile ($(objpfx)tst-array4): New target.
3951 ($(objpfx)tst-array4.out): Likewise.
3952 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
3953 * elf/tst-array4.c: New file.
3954 * elf/tst-array4.exp: Likewise.
3956 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
3958 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
3960 2003-01-27 Guido Guenther <agx@sigxcpu.org>
3962 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
3963 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
3964 cancellation handling and handle both __NR_pread64 and __NR_pread.
3965 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3966 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
3967 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
3968 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3969 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
3970 case, use register names consistently.
3972 2003-01-27 Wolfram Gloger <wg@malloc.de>
3974 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
3975 pointer, not of the computed chunk. Bug report from Carlos
3976 O'Donell <carlos@baldric.uwo.ca>.
3978 2003-01-25 Andreas Schwab <schwab@suse.de>
3980 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
3981 addressing to save GOT entries.
3983 2003-01-21 Jakub Jelinek <jakub@redhat.com>
3985 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
3986 inline_syscall1, inline_syscall2, inline_syscall3,
3987 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
3988 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
3989 __attribute__((unused)) to ChEcK.
3991 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
3993 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
3994 Fix inline assembler constraints.
3995 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
3998 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
4001 2003-01-20 Segher Boessenkool <segher@koffie.nl>
4003 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
4004 compute the cosine, not the sine, even if x > 0.8.
4006 2003-01-19 Ulrich Drepper <drepper@redhat.com>
4008 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
4009 _nss_nis_setspent. Work around the different prototypes.
4010 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
4011 internal_nis_endrpcent.
4012 (internal_nis_endrpcent): Change return type to void. Change callers.
4013 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
4014 _nss_nis_setpwent. Work around the different prototypes.
4015 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
4016 of the function to...
4017 (internal_nis_endprotoent): ... here. New function.
4018 (internal_nis_setprotoent): Use internal_nis_endprotoent.
4019 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
4020 _nss_nis_setnetent. Work around the different prototypes.
4021 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
4022 of the function to...
4023 (internal_nis_endnetgrent): ... here. New function.
4024 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
4026 2003-01-19 Jim Meyering <jim@meyering.net>
4028 * time/strftime.c: (widen): Merge nearly-identical definitions.
4029 (nl_get_alt_digit) [! defined my_strftime]: Define.
4030 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
4031 _nl_get_alt_digit and _nl_get_walt_digit.
4033 2003-01-19 Ulrich Drepper <drepper@redhat.com>
4035 * time/strftime.c (my_strftime): Handle very large width
4036 specifications for numeric values correctly. Improve checks for
4038 * time/Makefile (tests): Add tst-strftime.
4039 * time/tst-strftime.c: New file.
4041 2003-01-18 Ulrich Drepper <drepper@redhat.com>
4043 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
4044 _nss_nis_sethostent. Work around the different prototypes.
4045 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
4046 _nss_nis_setgrent. Work around the different prototypes.
4047 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
4048 function. Split out from _nss_nis_endetherent.
4049 (internal_nis_setetherent): Use internal_nis_endetherent instead of
4050 duplicating the code.
4051 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
4052 of _nss_nis_setaliasent.
4053 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
4054 internal_nis_endservent code, don't duplicate it.
4056 * inet/rexec.c (rexec_af): Protect socket operations with
4057 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
4058 * inet/rcmd.c (rcmd_af): Likewise.
4060 2003-01-17 Roland McGrath <roland@redhat.com>
4062 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
4063 Add test of value 0.80190127184058835.
4065 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
4067 2003-01-17 Richard Henderson <rth@redhat.com>
4069 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
4070 relocs for class PLT.
4071 * sysdeps/alpha/libc-tls.c: New file.
4072 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
4073 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
4075 2003-01-17 Jakub Jelinek <jakub@redhat.com>
4077 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
4078 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
4081 2003-01-17 Andreas Jaeger <aj@suse.de>
4083 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
4085 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
4087 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
4088 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
4089 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
4090 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
4091 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
4092 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
4093 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
4096 2003-01-16 Ulrich Drepper <drepper@redhat.com>
4098 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
4099 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
4102 * sysdeps/generic/sysconf.c: Unconditionally implement
4103 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
4104 * sysdeps/posix/sysconf.c: Likewise.
4106 2003-01-16 Jakub Jelinek <jakub@redhat.com>
4108 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
4109 set *err to the returned error, not to REG_ESPACE unconditionally.
4110 (build_word_op): Likewise.
4111 * posix/Makefile (tests): Add bug-regex16.
4112 * posix/bug-regex16.c: New test.
4114 2003-01-16 Jakub Jelinek <jakub@redhat.com>
4116 * elf/dl-load.c (_dl_map_object_from_fd): Use
4117 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
4118 been already initialized.
4120 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
4122 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
4124 2003-01-16 Jakub Jelinek <jakub@redhat.com>
4126 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
4127 allocated too. Reported by Al Viro <aviro@redhat.com>.
4129 2003-01-16 Roland McGrath <roland@redhat.com>
4131 Tweak merged .abilist file format to merge duplicate symbols in
4132 different sets into multi-version stanzas with new "| SET regexp..."
4133 header continuation lines.
4134 * scripts/merge-abilist.awk: Rewritten for new format.
4135 * scripts/extract-abilist.awk: Likewise.
4137 2003-01-15 Ulrich Drepper <drepper@redhat.com>
4139 * nscd/connections.c (nscd_run): Remove bogus return which isn't
4140 necessary with gcc 3.2+.
4141 (nscd_init): Don't use error() to print message, use dbg_log.
4143 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
4144 expected size into state.
4145 (UNPACK_BYTES): Do the reverse.
4146 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
4147 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
4148 Reported by Al Viro <aviro@redhat.com>.
4150 * stdio-common/Makefile (tests): Add bug14.
4151 * stdio-common/bug14.c: New file.
4153 * stdio-common/vfscanf.c: When recognizing multibyte characters in
4154 string reset the byte counter after mbrtowc reported it is not a
4155 partial character. Reported by Al Viro <aviro@redhat.com>.
4157 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
4159 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
4160 sysdep-cancel.h, not sysdep.h.
4162 2003-01-15 Ulrich Drepper <drepper@redhat.com>
4164 * nscd/connections.c (nscd_run): Protect accept call with
4167 2003-01-15 Andreas Schwab <schwab@suse.de>
4169 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
4170 (common-generated): Add s-proto-bp.d.
4171 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
4173 * sysdeps/unix/s-proto-bp.S: New file.
4174 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
4175 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
4176 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
4178 2003-01-15 Roland McGrath <roland@redhat.com>
4180 * Makerules: Use -include for tls.make, suppresses warning.
4181 Move gen-as-const-headers rules up so before-compile is set in time.
4182 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
4184 2003-01-15 Ulrich Drepper <drepper@redhat.com>
4186 * nscd/nscd.c (main): Make code to close all file descriptors
4187 faster and more robust.
4189 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
4190 request with one writev call. Protect all read calls with
4192 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
4193 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
4195 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
4196 Protect writev calls with TEMP_FAILURE_RETRY.
4197 * nscd/grpcache.c: Likewise.
4198 * nscd/pwdcache.c: Likewise.
4200 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
4201 IPv6 address in debug output.
4203 2003-01-14 Roland McGrath <roland@redhat.com>
4205 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
4206 $(objpfx) directories, and get rid of vpath directives. The previous
4207 arrangement resulted in files being written to the source directories
4208 when run in a clean build. Find all .abilist files in $(..)abilist/.
4209 (update-abi-%): Likewise.
4210 (generated): Don't add .symlist files, they'll be intermediates.
4212 * sysdeps/generic/init-first.c: Add a comment.
4214 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
4216 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
4217 #includes and expressions.
4219 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
4220 config list when it already contains cpu-.*-os.* without / part.
4222 * Makerules (sed-remove-dotdot): New variable.
4223 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
4224 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
4225 (check-abi-config): New variable, append /tls or /notls to the tuple.
4226 (check-abi-%): Use that for -v config value.
4227 Find .abilist files in abilist/libfoo.abilist, not in subdir.
4228 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
4230 2003-01-14 Ulrich Drepper <drepper@redhat.com>
4232 * manual/install.texi: Correct description of header preparation for
4233 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
4235 2003-01-14 Guido Guenther <agx@sigxcpu.org>
4237 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
4238 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
4239 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
4241 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
4243 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
4244 (INTERNAL_SYSCALL): Make use of ERR parameter.
4245 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
4246 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
4247 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
4248 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
4250 2003-01-14 Ulrich Drepper <drepper@redhat.com>
4252 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
4254 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
4256 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
4257 Fix entry for bit 31.
4259 * iconvdata/Makefile: Add rules to build IBM866NAV.
4260 * iconvdata/ibm866nav.c: New file.
4261 * iconvdata/tst-tables.sh: Add IBM866NAV.
4262 * iconvdata/gconv-modules: Add entries for IBM866NAV.
4264 2003-01-13 Ulrich Drepper <drepper@redhat.com>
4266 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
4267 to test void* parameters.
4269 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
4270 source pointer before dereferencing.
4271 (__STRING_SMALLL_GET32): Likewise.
4272 (__memset_gc): Add missing parenthesis around macro arguments.
4273 Patch by Denis Zaitsev <zzz@cd-club.ru>.
4275 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
4276 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
4278 2003-01-14 Jakub Jelinek <jakub@redhat.com>
4280 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
4283 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
4285 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
4286 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
4288 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
4290 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
4292 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
4294 (PSEUDO): ... to here.
4295 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
4297 (PSEUDO): ... to here.
4299 2003-01-13 Ulrich Drepper <drepper@redhat.com>
4301 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
4302 dirent64 instead of struct dirent for dirent. Call readdir64
4305 * locale/programs/locfile.c (siblings_uncached): Use struct
4306 dirent64 instead of struct dirent for other_dentry. Call
4307 readdir64 instead of readdir.
4309 * elf/ldconfig.c (direntry): Change type to struct dirent64.
4310 (search_dir): Use readdir64 instead of readdir.
4311 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
4313 2003-01-12 Roland McGrath <roland@redhat.com>
4315 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
4316 not strtol. The former is usable in ld.so, the latter not.
4318 * include/fcntl.h: Declare __libc_creat.
4320 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
4321 libhurduser-link.so-no-z-defs): New variables.
4323 * malloc/malloc.c: Revert last change.
4324 * malloc/malloc.h (_int_*): Move these decls to ...
4325 * include/malloc.h: ... here. Add attribute_hidden.
4326 (_int_valloc): Declare it too.
4328 2003-01-12 Ulrich Drepper <drepper@redhat.com>
4330 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
4331 search for removed searchlist. Reported by Roland McGrath.
4333 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
4334 given as start file.
4336 * io/ftw.c (ftw_startup): Use correct name in check for symlink
4337 without existing target. Patch by Jim Meyering.
4339 * Makerules (build-shlib-helper): Don't use -z defs linker option
4340 if no-z-defs is defined either.
4342 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
4344 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
4347 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
4349 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
4350 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4352 2003-01-12 Ulrich Drepper <drepper@redhat.com>
4354 * io/ftwtest-sh: Add test case for relative path with /. at the end.
4356 2003-01-12 Jim Meyering <jim@meyering.net>
4358 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
4359 use the basename if we've already chdir'd into its parent directory.
4361 2003-01-12 Ulrich Drepper <drepper@redhat.com>
4363 * io/ftw.c (process_entry): Use relative path when using chdir()
4364 to change directory after call to ftw_dir.
4365 * io/ftwtest-sh: Add test for relative path argument to nftw()
4366 with FTW_CHDIR option.
4368 2002-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4370 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
4372 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
4374 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
4375 (INTERNAL_SYSCALL): Make use of ERR parameter.
4376 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
4377 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
4378 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
4379 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
4381 2002-01-09 Richard Henderson <rth@redhat.com>
4383 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
4384 DTPREL64 and TPREL64 without loadbase applied.
4386 2002-01-09 Richard Henderson <rth@redhat.com>
4388 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
4391 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
4392 * sysdeps/unix/alpha/sysdep.h: ... here.
4393 (PSEUDO_LOADGP): Remove.
4394 (PSEUDO_PROLOGUE): Load GP in non-pic case.
4395 (SYSCALL_ERROR_LABEL): New.
4396 (PSEUDO): Use it in error branch.
4397 (PSEUDO_END): Add $syscall_error label.
4399 2003-01-12 Andreas Jaeger <aj@suse.de>
4401 * math/bits/mathcalls.h: Round is a const function.
4403 2003-01-11 Jim Meyering <jim@meyering.net>
4405 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
4406 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
4407 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
4408 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
4409 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
4410 [!_LIBC] (internal_function, dirent64, MAX): Define.
4411 (__set_errno): Define if not already defined.
4412 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
4413 the basename, not the entire file name.
4414 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
4415 the basename, not the entire file name.
4417 2003-01-12 Ulrich Drepper <drepper@redhat.com>
4419 * string/tester.c (test_strcpy): Disable last added strcpy until
4422 2003-01-11 Philip Blundell <philb@gnu.org>
4424 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
4426 2003-01-11 Andreas Schwab <schwab@suse.de>
4428 * Makerules: Add vpath for %.dynsym and %.so so that the
4429 implicit rule chaining for check-abi works.
4431 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4433 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
4436 2003-01-11 Jakub Jelinek <jakub@redhat.com>
4438 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
4439 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
4441 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
4442 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
4443 Ensure libc.so in DT_NEEDED.
4444 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
4445 CHECK_STATIC_TLS before l_tls_offset use.
4446 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
4448 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4449 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
4450 Allocate TLS_PRE_TCB_SIZE bytes below result.
4451 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
4452 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
4453 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
4454 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
4455 bytes below result and add tcb_offset to memsz.
4456 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
4457 * sysdeps/ia64/dl-machine.h: Include tls.h.
4458 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
4460 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
4461 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
4462 * sysdeps/ia64/libc-tls.c: New file.
4464 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
4466 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
4467 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
4468 Fix type. Move definition out of #if.
4469 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
4470 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
4471 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
4472 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
4473 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
4474 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
4476 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
4477 ftruncate64, pread64, pwrite64, truncate64 entries.
4478 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
4479 (INLINE_SYSCALL): New version that supports function call like
4480 syscalls. Add __builtin_expect.
4481 (LOADARGS_n): Add argument size safety checks.
4482 (INTERNAL_SYSCALL): New Macro.
4483 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
4484 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
4485 redefinition of elf_fpreg_t and elf_fpregset_t.
4487 2003-01-12 Ulrich Drepper <drepper@redhat.com>
4489 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
4490 simplify test for unloading. If loader of a DSO is unloaded do not
4491 use its scope anymore. Fall back to own scope and adjust opencounts.
4492 Fix several comments.
4493 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
4494 the l_searchlist, not only for l_initfini.
4496 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
4497 dependencies if objects cannot be removed. Remove object with the
4498 definition as not unloadable if necessary.
4500 * elf/reldep6.c: Create relocation dependency before closing the first
4503 2003-01-10 Guido Günther <agx@sigxcpu.org>
4505 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
4506 * sysdeps/unix/mips/brk.S: Likewise.
4507 * sysdeps/unix/mips/pipe.S: Likewise.
4509 2003-01-10 Andreas Schwab <schwab@suse.de>
4511 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
4513 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
4514 are known to have the vfork syscall.
4516 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
4518 * sysdeps/unix/sysv/linux/kernel-features.h
4519 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
4520 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
4521 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
4523 2003-01-09 Jakub Jelinek <jakub@redhat.com>
4525 * elf/Makefile: Add rules to build and run reldep9 test.
4526 * elf/reldep9.c: New file.
4527 * elf/reldep9mod1.c: New file.
4528 * elf/reldep9mod2.c: New file.
4529 * elf/reldep9mod3.c: New file.
4531 2003-01-09 Jakub Jelinek <jakub@redhat.com>
4533 * elf/Makefile: Add rules to build and run nodelete2 test.
4534 * elf/nodelete2.c: New file.
4535 * elf/nodel2mod1.c: New file.
4536 * elf/nodel2mod2.c: New file.
4537 * elf/nodel2mod3.c: New file.
4539 2003-01-09 Jakub Jelinek <jakub@redhat.com>
4541 * posix/test-vfork.c (noop): Add __attribute_noinline__.
4542 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
4543 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
4545 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
4546 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
4547 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
4548 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
4549 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
4551 2003-01-09 Andreas Schwab <schwab@suse.de>
4553 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
4555 2003-01-08 Ulrich Drepper <drepper@redhat.com>
4557 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
4558 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
4560 (INTERNAL_SYSCALL_DECL): Define.
4562 2003-01-06 Jakub Jelinek <jakub@redhat.com>
4564 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
4565 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
4567 (INTERNAL_SYSCALL_DECL): Define.
4568 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
4569 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
4570 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
4571 (INLINE_SYSCALL): Adjust.
4572 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
4573 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4574 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
4575 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
4576 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
4577 add err argument to INTERNAL_SYSCALL* macros.
4578 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
4579 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
4580 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
4581 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
4583 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
4584 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
4585 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
4587 2003-01-07 Ulrich Drepper <drepper@redhat.com>
4589 Unify symbols in user namespace exported by libc.so and libc.a.
4590 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
4591 argp_fmtstream_free, and argp_fmtstream_printf.
4592 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
4593 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
4594 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
4595 argp_fmtstream_point.
4596 * gmon/gmon.c: Don't define write_profiling.
4597 * libio/genops.c: Don't define _cleanup.
4599 * intl/explodename.c (_nl_find_language.c): Mark as static.
4600 * intl/loadinfo.h: Remove _nl_find_language prototype.
4602 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
4603 * libio/libioP.h: Remove declaration.
4605 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
4606 * libio/libioP.h: Remove declaration.
4608 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
4609 * sysdeps/generic/framestate.c: Define STATIC before including
4612 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
4614 2003-01-06 Philip Blundell <philb@gnu.org>
4616 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
4617 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
4619 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
4621 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
4622 (SYSCALL_ERROR): New.
4623 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
4625 (INTERNAL_SYSCALL): Define.
4626 (INLINE_SYSCALL): Use it.
4627 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
4628 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
4629 SYSCALL_ERROR in place of __syscall_error.
4631 2003-01-07 Jakub Jelinek <jakub@redhat.com>
4633 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
4634 __bswap_32, __bswap_64): Put x into temporary variable
4636 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
4638 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
4639 __bswap_32, __bswap_64): Put x into temporary variable
4641 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
4643 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
4646 2003-01-07 Jakub Jelinek <jakub@redhat.com>
4648 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
4651 2003-01-07 Jakub Jelinek <jakub@redhat.com>
4653 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
4654 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
4656 2003-01-07 Ulrich Drepper <drepper@redhat.com>
4658 * math/libm-test.inc (significand_test): New function.
4661 2003-01-06 Roland McGrath <roland@redhat.com>
4663 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
4665 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
4666 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
4667 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
4669 * string/tester.c (test_strcpy): Add test with `void *' arguments.
4671 2003-01-06 Ulrich Drepper <drepper@redhat.com>
4673 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
4674 return significand and not the exponent.
4675 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4677 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
4678 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
4680 * malloc/malloc.c: Mark all _int_* functions as static.
4682 2003-01-06 Jakub Jelinek <jakub@redhat.com>
4684 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
4685 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
4687 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
4689 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4691 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
4692 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
4694 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
4695 ftruncate64, truncate64, pread64 and pwrite64 entries.
4696 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
4697 (INLINE_SYSCALL): Add __builtin_expect.
4698 (LOADARGS_n): Add argument size safety checks.
4699 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
4700 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
4701 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
4702 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
4703 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
4704 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
4706 2003-01-06 Jakub Jelinek <jakub@redhat.com>
4708 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
4709 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
4710 (LIBC_CANCEL_HANDLED): Add.
4712 * sysdeps/unix/sysv/linux/alpha/sysdep.h
4713 (inline_syscall_r0_constraint): Rename to...
4714 (inline_syscall_r0_out_constraint): ... this. Add =.
4715 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
4717 2003-01-06 Andreas Schwab <schwab@suse.de>
4719 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
4720 sure this is always inlined.
4721 (elf_machine_rela): Likewise.
4723 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
4725 2003-01-04 Roland McGrath <roland@redhat.com>
4727 * Makeconfig (+mkdep): Add -MP flag.
4728 Suggested by Art Haas <ahaas@airmail.net>.
4730 2003-01-05 Andreas Schwab <schwab@suse.de>
4732 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
4734 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4736 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
4737 SYSCALL_ERROR_HANDLER.
4738 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
4739 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
4740 Add support for cancellation handling.
4741 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
4742 SYSCALL_ERROR_HANDLER.
4743 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
4744 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
4745 Add support for cancellation handling.
4746 (SYSCALL_ERROR_HANDLER): Define PIC variants.
4748 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4750 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
4751 __syscall_pread64 and __syscall_pwrite64 cancelable.
4752 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
4753 (INTERNAL_SYSCALL): New macro.
4754 (LOADARGS_0, LOADARGS_1): Fix.
4756 2003-01-05 Ulrich Drepper <drepper@redhat.com>
4758 * Makerules (build-shlip-helper): Unless told otherwise, add
4759 -Wl,-z,defs to linker command line.
4760 * rt/Makefile (librt.so): Link with ld.so.
4761 * dlfcn/Makefile (libdl.so): Likewise.
4763 2003-01-05 Jakub Jelinek <jakub@redhat.com>
4765 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
4766 cancellation handling.
4767 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4768 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
4770 2003-01-04 Ulrich Drepper <drepper@redhat.com>
4772 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
4773 order of parameters passed to kill.
4775 2003-01-04 Andreas Schwab <schwab@suse.de>
4777 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
4779 2002-01-03 Paul Eggert <eggert@twinsun.com>
4781 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
4782 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
4783 when compiling Bison 1.875's `bitset bset = obstack_alloc
4784 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
4786 2003-01-04 Ulrich Drepper <drepper@redhat.com>
4788 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
4790 Correct reference counter in case SIGQUIT handler installation failed.
4792 2003-01-03 Ulrich Drepper <drepper@redhat.com>
4794 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
4795 Define using _Pragma(weak ...).
4797 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
4799 * resolv/res_libc.c: Provide declaration for __res_init_weak and
4800 reorder declarations.
4802 2003-01-03 Art Haas <ahaas@airmail.net>
4804 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
4805 initializer syntax to C99.
4806 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
4807 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
4808 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
4809 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
4810 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
4811 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
4812 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
4813 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
4814 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
4815 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
4816 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
4817 * localedata/tests-mbwc/dat_mblen.c: Likewise.
4818 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
4819 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
4820 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
4821 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
4822 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
4823 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
4824 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
4825 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
4826 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
4827 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
4828 * localedata/tests-mbwc/dat_towlower.c: Likewise.
4829 * localedata/tests-mbwc/dat_towupper.c: Likewise.
4830 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
4831 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
4832 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
4833 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
4834 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
4835 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
4836 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
4837 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
4838 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
4839 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
4840 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
4841 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
4842 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
4843 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
4844 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
4845 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
4846 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
4847 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
4848 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
4849 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
4850 * localedata/tests-mbwc/dat_wctob.c: Likewise.
4851 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
4852 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
4853 * localedata/tests-mbwc/dat_wctype.c: Likewise.
4854 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
4856 2003-01-03 Richard Henderson <rth@redhat.com>
4858 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
4859 (inline_syscall_r0_constraint): New.
4860 (inline_syscall[0-6]): Use them.
4862 2003-01-03 Jakub Jelinek <jakub@redhat.com>
4864 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
4865 Add rtld_hidden_proto.
4866 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
4867 (_dl_allocate_tls): Likewise. Remove INTDEF.
4869 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4871 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
4872 Morita <toshiyasu.morita@hsa.hitachi.com>.
4873 * sysdeps/sh/memcpy.S: Likewise.
4875 2003-01-02 Ulrich Drepper <drepper@redhat.com>
4877 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
4878 any, but unify the test.
4880 2003-01-02 Jakub Jelinek <jakub@redhat.com>
4882 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
4883 sigaction): Protect weak_alias and libc_hidden_weak with
4884 #ifndef LIBC_SIGACTION.
4885 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
4886 sigaction): Likewise.
4887 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
4888 sigaction): Likewise.
4889 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
4890 sigaction): Likewise.
4891 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
4892 sigaction): Likewise.
4893 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
4894 sigaction): Likewise.
4895 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
4896 sigaction): Likewise.
4897 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
4898 sigaction): Likewise. Remove SIGCANCEL handling here.
4899 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
4902 2003-01-02 Art Haas <ahaas@airmail.net>
4904 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
4906 2003-01-02 Ulrich Drepper <drepper@redhat.com>
4908 * posix/getconf.c: Update copyright year.
4909 * nss/getent.c: Likewise.
4910 * nscd/nscd_nischeck.c: Likewise.
4911 * iconv/iconvconfig.c: Likewise.
4912 * iconv/iconv_prog.c: Likewise.
4913 * elf/ldconfig.c: Likewise.
4914 * catgets/gencat.c: Likewise.
4915 * csu/version.c: Likewise.
4916 * elf/ldd.bash.in: Likewise.
4917 * elf/sprof.c (print_version): Likewise.
4918 * locale/programs/locale.c: Likewise.
4919 * locale/programs/localedef.c: Likewise.
4920 * nscd/nscd.c (print_version): Likewise.
4921 * debug/xtrace.sh: Likewise.
4922 * malloc/memusage.sh: Likewise.
4923 * malloc/mtrace.pl: Likewise.
4925 2003-01-01 Jakub Jelinek <jakub@redhat.com>
4927 * io/sys/stat.h: Include time.h with __need_timespec even if
4928 __USE_MISC is defined but __USE_XOPEN is not.
4930 2003-01-01 Andreas Jaeger <aj@suse.de>
4932 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
4933 type to avoid strict aliasing problem.
4934 (_nss_dns_gethostbyname2_r): Likewise.
4935 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
4936 (_nss_dns_getnetbyname_r): Likewise.
4937 * resolv/gethnamaddr.c (_gethtent): Likewise.
4938 (gethostbyname2): Likewise.
4940 2002-12-31 Ulrich Drepper <drepper@redhat.com>
4942 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
4943 to avoid using the exported symbols. Define aliases with the
4944 original names separately.
4946 * include/time.h: Add libc_hidden_proto for __strftime_l.
4947 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
4948 * time/strftime.c: Always use libc_hidden_def if _LIBC.
4950 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
4951 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
4953 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
4956 * csu/Makefile (routines): Add dso_handle.
4957 * csu/dso_handle.c: New file.
4959 2002-12-31 Roland McGrath <roland@redhat.com>
4961 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
4962 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
4963 (S-CPPFLAGS): Add -DASSEMBLER here instead.
4964 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
4966 2002-12-31 Ulrich Drepper <drepper@redhat.com>
4968 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
4971 2002-12-31 Andreas Jaeger <aj@suse.de>
4973 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
4975 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
4976 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
4977 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
4979 * sysdeps/unix/sysv/linux/kernel_stat.h
4980 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
4982 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
4983 __unused[1-3] since they're needed by some platforms. Handle
4984 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
4986 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
4987 for structs stat and stat64.
4988 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
4989 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
4990 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
4991 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
4993 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
4995 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
4996 nsec resolution changes.
4997 (xstat64_conv): Likewise.
4998 (xstat32_conv): Likewise.
5000 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
5003 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
5004 structs stat and stat64.
5006 * time/time.h (__timespec_defined): Define for __USE_MISC.
5008 2002-12-31 Ulrich Drepper <drepper@redhat.com>
5010 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
5011 and __libc_current_sigrtmax.
5013 2002-12-31 Jakub Jelinek <jakub@redhat.com>
5015 * include/errno.h (__errno_location): Add prototype.
5016 Use libc_hidden_proto unconditionally.
5017 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
5019 * include/resolv.h (__res_state): Likewise.
5021 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
5022 * include/sys/socket.h (accept): Add libc_hidden_proto.
5023 * include/errno.h (__errno_location): Likewise.
5024 * include/netdb.h (__h_errno_location): Likewise.
5025 * include/resolv.h (__res_state): Likewise.
5026 * include/unistd.h (__lseek): Likewise.
5027 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
5028 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
5029 * sysdeps/generic/res-state.c (__res_state): Likewise.
5030 * sysdeps/generic/accept.c (accept): Likewise.
5031 * sysdeps/generic/lseek.c (__lseek): Likewise.
5032 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
5033 __libc_current_sigrtmax): Likewise.
5034 * sysdeps/mach/hurd/accept.c (accept): Likewise.
5035 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
5036 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
5037 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
5038 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
5039 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
5040 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
5041 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
5042 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
5044 (__GI_accept): New alias to accept.
5045 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
5046 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
5047 New alias to llseek.
5048 (__GI_accept): New alias to accept.
5049 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
5051 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
5053 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
5055 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
5056 strong_alias (name, __GI_name).
5057 * sysdeps/arm/bsd-_setjmp.S : Likewise.
5058 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
5059 * sysdeps/i386/bsd-_setjmp.S : Likewise.
5060 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
5061 * sysdeps/mips/bsd-_setjmp.S : Likewise.
5062 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
5063 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
5064 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
5065 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
5066 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
5067 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
5068 * sysdeps/sh/bsd-_setjmp.S : Likewise.
5069 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
5070 * sysdeps/unix/arm/fork.S : Likewise.
5071 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
5072 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
5073 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
5074 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
5075 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
5076 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
5077 * sysdeps/unix/i386/fork.S : Likewise.
5078 * sysdeps/unix/mips/fork.S : Likewise.
5079 * sysdeps/unix/sparc/fork.S : Likewise.
5080 * sysdeps/unix/sparc/vfork.S : Likewise.
5081 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
5082 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
5083 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
5084 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
5085 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
5086 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
5087 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
5088 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
5089 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
5090 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
5091 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
5092 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
5093 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
5094 * sysdeps/unix/fork.S : Likewise.
5095 * sysdeps/vax/bsd-_setjmp.S : Likewise.
5096 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
5098 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
5101 2002-12-31 Ulrich Drepper <drepper@redhat.com>
5103 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
5104 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
5105 * sysdeps/mach/hurd/fork.c: Likewise.
5106 * sysdeps/unix/sysv/aix/fork.c: Likewise.
5107 * sysdeps/unix/fork.S: Add __GI___fork alias.
5108 * sysdeps/unix/arm/fork.S: Likewise.
5109 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
5110 * sysdeps/unix/i386/fork.S: Likewise.
5111 * sysdeps/unix/mips/fork.S: Likewise.
5112 * sysdeps/unix/sparc/fork.S: Likewise.
5113 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
5114 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
5115 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5116 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
5117 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
5118 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
5119 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
5120 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
5121 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
5122 * sysdeps/unix/sparc/vfork.S: Likewise.
5123 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
5124 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
5125 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
5126 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
5127 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
5128 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
5129 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
5130 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
5132 * include/time.h: Add libc_hidden_proto for __nanosleep.
5133 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
5134 * sysdeps/mach/nanosleep.c: Likewise.
5135 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
5136 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
5138 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
5139 _IO_list_unlock, and _IO_list_resetlock.
5140 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
5141 _IO_list_unlock, and _IO_list_resetlock.
5143 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
5144 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
5145 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
5146 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
5148 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
5149 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
5150 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
5151 __GI___longjmp alias.
5153 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
5154 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
5155 * sysdeps/arm/bsd-_setjmp.S: Likewise.
5156 * sysdeps/generic/bsd-_setjmp.c: Likewise.
5157 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
5158 * sysdeps/i386/bsd-_setjmp.S: Likewise.
5159 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
5160 * sysdeps/mips/bsd-_setjmp.S: Likewise.
5161 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
5162 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
5163 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
5164 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
5165 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
5166 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
5167 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
5168 * sysdeps/sh/bsd-_setjmp.S: Likewise.
5169 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
5170 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
5171 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
5172 * sysdeps/vax/bsd-_setjmp.S: Likewise.
5173 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
5175 2002-12-30 Ulrich Drepper <drepper@redhat.com>
5177 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
5179 2002-12-30 Roland McGrath <roland@redhat.com>
5181 * Rules (generated): Target removed.
5182 * mach/Makefile (generated): Define it here instead.
5184 * math/Makefile (generated): Add m_*l and m_*f variants too.
5186 2002-12-30 Ulrich Drepper <drepper@redhat.com>
5188 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
5189 the to-be-deleted objects right away instead of later separately.
5190 The latter fails because the scope data structures of the DSO
5191 might already be gone.
5193 * elf/Makefile: Add rules to build and run reldep8 test.
5194 * elf/reldep8.c: New file.
5195 * elf/reldep8mod1.c: New file.
5196 * elf/reldep8mod2.c: New file.
5197 * elf/reldep8mod3.c: New file.
5198 Contributed by Jakub Jelinek.
5200 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
5202 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
5203 checking of return value ENOSYS from getdents64.
5205 2002-12-28 Andreas Schwab <schwab@suse.de>
5207 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
5208 ($(common-objpfx)s-%.d): Generalized from
5209 $(common-objpfx)s-proto.d rule.
5210 (common-generated): Add s-proto-cancel.d.
5211 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
5212 cancellable syscalls.
5213 * sysdeps/unix/s-proto-cancel.S: New file.
5215 2002-12-29 Roland McGrath <roland@redhat.com>
5217 * resolv/res_libc.c: Move _res defn magic after res_init defn
5218 so _res macro is in effect for that code.
5220 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
5221 pattern for prepending $(..) so it doesn't affect $(foo).
5223 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
5225 2002-12-29 Jakub Jelinek <jakub@redhat.com>
5227 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
5230 2002-12-28 Ulrich Drepper <drepper@redhat.com>
5232 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
5234 2002-12-28 Andreas Jaeger <aj@suse.de>
5236 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
5238 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
5240 2002-12-27 Jakub Jelinek <jakub@redhat.com>
5242 * inet/herrno.c (__h_errno_location): Remove.
5243 * inet/Makefile (routines): Add herrno-loc.
5244 * resolv/res_libc.c (__res_state): Remove.
5245 * resolv/Makefile (routines): Add res-state.
5246 * sysdeps/generic/herrno-loc.c: New file.
5247 * sysdeps/generic/res-state.c: New file.
5249 2002-12-27 Jakub Jelinek <jakub@redhat.com>
5251 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
5252 Only define if USE_DL_SYSINFO is defined.
5254 2002-12-22 Jakub Jelinek <jakub@redhat.com>
5256 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
5257 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
5258 Define. Patch by Richard Henderson and Jes Sorensen.
5259 (PSEUDO): Remove unnecessary ;;.
5260 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
5261 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
5262 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
5263 if not initializing thread pointer.
5264 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
5265 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
5266 make it weak also if NONTLS_INIT_TP.
5267 * sysdeps/unix/common/pause.c: Handle cancellation.
5268 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
5269 (LOADSYSCALL): Remove.
5270 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
5271 (SYSCALL_ERROR_HANDLER): Use it.
5272 (PSEUDO): Don't jump around error handler.
5273 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
5274 jump around error handler.
5275 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
5276 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
5277 to __syscall_error_handler on failure.
5278 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
5279 (LOADSYSCALL): Remove.
5280 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
5281 (SYSCALL_ERROR_HANDLER): Use it.
5282 (PSEUDO): Don't jump around error handler.
5283 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
5284 jump around error handler.
5285 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
5286 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
5287 to __syscall_error_handler on failure.
5289 2002-12-27 Roland McGrath <roland@redhat.com>
5291 * scripts/gen-as-const.awk: New file.
5292 * Makefile (distribute): Add it.
5293 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
5294 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
5296 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
5298 2002-12-27 Andreas Schwab <schwab@suse.de>
5300 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
5302 2002-12-27 Jakub Jelinek <jakub@redhat.com>
5304 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
5307 2002-12-27 Andreas Schwab <schwab@suse.de>
5309 * Makerules ($(common-objpfx)%.make): Filter through
5310 $(sed-remove-objpfx).
5312 2002-12-23 Roland McGrath <roland@redhat.com>
5314 * scripts/abilist.awk: Produce a more compact format, divided into
5315 stanzas for each version set, the set name listed only once.
5316 * scripts/extract-abilist.awk: New file.
5317 * scripts/merge-abilist.awk: New file.
5318 * Makerules (check-abi-%, update-abi-%): New pattern rules.
5319 (update-abi, check-abi): New targets.
5320 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
5322 2002-12-19 Roland McGrath <roland@redhat.com>
5324 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
5326 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
5329 2002-12-21 Andreas Schwab <schwab@suse.de>
5331 * elf/check-textrel.c (handle_file): Swap p_type.
5333 2002-12-21 Andreas Schwab <schwab@suse.de>
5335 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
5336 (INLINE_SYSCALL): Use it.
5337 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
5338 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
5340 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
5341 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
5343 2002-12-20 Art Haas <ahaas@airmail.net>
5345 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
5348 2002-12-21 Philip Blundell <philb@gnu.org>
5350 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
5351 top as seventh arg to __libc_start_main.
5352 Reported by paulnash@wildseed.com.
5354 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
5356 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
5357 compatibility cruft when new enough kernel is assumed.
5359 2002-12-20 Jakub Jelinek <jakub@redhat.com>
5361 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
5362 instead of INLINE_SYSCALL.
5364 2002-12-20 Ulrich Drepper <drepper@redhat.com>
5366 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
5369 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
5370 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
5371 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
5372 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5373 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5374 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5375 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5376 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5377 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
5378 Patch by William Lee Irwin <wli@holomorphy.com>.
5380 2002-12-20 Andreas Schwab <schwab@suse.de>
5382 * locale/programs/ld-measurement.c (measurement_output): Fix
5385 2002-12-20 Ulrich Drepper <drepper@redhat.com>
5387 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
5388 Redefine _IO_flockifle and _IO_funlockfile as inlines.
5390 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
5391 builds add "tls" in the search path.
5392 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
5393 (path_hwcap): Recognize "tls".
5395 2002-12-19 Ulrich Drepper <drepper@redhat.com>
5397 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
5398 __waitpid instead of waitpid.
5400 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
5402 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
5403 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
5404 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
5406 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
5407 information for system calls.
5409 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
5412 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
5414 2002-12-19 Roland McGrath <roland@redhat.com>
5416 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
5417 * iconvdata/ibm922.h: Likewise.
5418 * iconvdata/ibm930.h: Likewise.
5419 * iconvdata/ibm932.h: Likewise.
5420 * iconvdata/ibm933.h: Likewise.
5421 * iconvdata/ibm935.h: Likewise.
5422 * iconvdata/ibm937.h: Likewise.
5423 * iconvdata/ibm939.h: Likewise.
5424 * iconvdata/ibm943.h: Likewise.
5425 * iconvdata/isiri-3342.h: Likewise.
5427 2002-12-19 Ulrich Drepper <drepper@redhat.com>
5429 * test-skeleton.c (main): Make sure correct value is seen as
5430 argv[0] after adjustment of argv, and argc.
5432 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
5433 RTLD_CORRECT_DYNAMIC_WEAK is defined.
5435 2002-12-19 Jakub Jelinek <jakub@redhat.com>
5437 * nscd/connections.c (nscd_run): Shut up warning.
5438 * tst-ungetc.c (assert): Undefined before redefining.
5440 2002-12-19 Ulrich Drepper <drepper@redhat.com>
5442 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
5445 2002-12-17 Art Haas <ahaas@airmail.net>
5447 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
5448 * iconvdata/cp775.h: Likewise.
5449 * iconvdata/ibm1046.h: Likewise.
5450 * iconvdata/ibm1124.h: Likewise.
5451 * iconvdata/ibm1129.h: Likewise.
5452 * iconvdata/ibm1132.h: Likewise.
5453 * iconvdata/ibm1133.h: Likewise.
5454 * iconvdata/ibm1160.h: Likewise.
5455 * iconvdata/ibm1161.h: Likewise.
5456 * iconvdata/ibm1162.h: Likewise.
5457 * iconvdata/ibm1163.h: Likewise.
5458 * iconvdata/ibm1164.h: Likewise.
5460 2002-12-19 Ulrich Drepper <drepper@redhat.com>
5462 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
5463 __ASSUME_CLONE_THREAD_FLAGS is defined.
5464 * sysdeps/unix/sysv/linux/kernel-features.h
5465 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
5467 2002-12-18 Ulrich Drepper <drepper@redhat.com>
5469 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
5471 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5473 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
5475 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
5477 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
5479 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
5481 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
5482 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
5483 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
5486 2002-12-18 Jakub Jelinek <jakub@redhat.com>
5488 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
5490 [libc: GLIBC_PRIVATE]: ...here.
5491 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
5493 [libc: GLIBC_PRIVATE]: ...here.
5495 2002-12-18 Ulrich Drepper <drepper@redhat.com>
5497 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
5498 Use it instead of directly int $0x80.
5499 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
5500 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
5501 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
5502 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5503 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
5504 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
5506 2002-12-17 Ulrich Drepper <drepper@redhat.com>
5508 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
5510 * elf/elf.h (AT_SYSINFO): New define.
5511 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
5514 2002-12-17 Jakub Jelinek <jakub@redhat.com>
5516 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
5518 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
5520 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
5522 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
5524 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
5526 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
5528 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
5529 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
5530 available, otherwise __libc_maybe_call.
5531 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
5532 cancellation handling.
5533 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
5535 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
5537 * posix/regcomp.c (free_workarea_compile): Free the new member
5539 (analyze): Initialize ORG_INDICES.
5540 (duplicate_node_closure): Search for a existing node, which is
5541 duplicated from the node ORG_DEST and satisfies the constraint
5542 CONSTRAINT. And use it to avoid inifimite loop.
5543 (search_duplicated_node): New function.
5544 (duplicate_node): Store the index of the original node.
5545 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
5547 * posix/regex_internal.h (re_dfa_t): Add new members.
5549 2002-12-17 Ulrich Drepper <drepper@redhat.com>
5551 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
5553 2002-12-16 Ulrich Drepper <drepper@redhat.com>
5555 * sysdeps/posix/system.c (do_system): Add support for installation
5556 of cancellation handlers.
5557 * sysdeps/unix/sysv/linux/i386/system.c: New file.
5559 * stdlib/Makefile (tests): Add tst-system.
5560 * stdlib/tst-system.c: New file.
5562 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
5563 CENABLE]: Don't lose content of %ebx.
5565 2002-12-17 Jakub Jelinek <jakub@redhat.com>
5567 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
5568 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
5570 2002-12-16 Ulrich Drepper <drepper@redhat.com>
5572 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
5573 fails to return a function pointer don't use it.
5575 2002-12-16 Art Haas <ahaas@airmail.net>
5577 * io/ftw.c: Convert GCC extension initializer syntax to C99.
5578 * iconvdata/iso-ir-165.c: Likewise.
5579 * iconvdata/jis0208.c: Likewise.
5580 * iconvdata/jis0212.c: Likewise.
5582 2002-12-16 Ulrich Drepper <drepper@redhat.com>
5584 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
5585 epoll_ctl, and epoll_wait.
5586 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
5587 epoll_create, epoll_ctl, and epoll_wait.
5588 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
5589 Davide Libenzi <davidel@xmailserver.org>.
5590 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
5591 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
5594 2002-12-16 Art Haas <ahaas@airmail.net>
5596 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
5598 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
5599 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
5600 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
5602 2002-12-16 Ulrich Drepper <drepper@redhat.com>
5604 * stdio-common/Makefile (routines): Remove lockfile. Add
5605 flockfile, ftrylockfile, and funlockfile.
5606 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
5607 * sysdeps/generic/flockfile.c: New file.
5608 * sysdeps/generic/ftrylockfile.c: New file.
5609 * sysdeps/generic/funlockfile.c: New file.
5611 2002-12-16 Jakub Jelinek <jakub@redhat.com>
5613 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
5614 macros instead of doing the calls directly.
5615 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
5616 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
5619 2002-12-16 Jakub Jelinek <jakub@redhat.com>
5621 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
5622 * sysdeps/ieee754/bits/nan.h: Likewise.
5624 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
5625 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
5627 2002-12-16 Roland McGrath <roland@redhat.com>
5629 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
5630 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
5631 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
5633 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
5634 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
5636 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
5637 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
5638 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
5639 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
5640 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
5641 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
5642 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
5643 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
5645 2002-12-13 Paul Eggert <eggert@twinsun.com>
5647 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
5648 is now u_int, not int.
5649 (struct XDR.x_handy): Now u_int, not int.
5650 * sunrpc/xdr_mem.c: Include <limits.h>.
5651 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
5652 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
5653 x_handy is now unsigned, not signed.
5654 Do not decrement x_handy if no change is made.
5655 (xdrmem_setpos): Check for int overflow.
5656 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
5657 (xdr_sizeof): Remove cast that is now unnecessary, now that
5658 x_handy is unsigned.
5660 2002-12-15 Art Haas <ahaas@airmail.net>
5662 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
5663 * iconvdata/gap.awk: Likewise.
5664 * iconvdata/gen-8bit-gap-1.sh: Likewise.
5665 * iconvdata/gen-8bit-gap.sh: Likewise.
5666 * locale/C-address.c: Likewise.
5667 * locale/C-collate.c: Likewise.
5668 * locale/C-ctype.c: Likewise.
5669 * locale/C-identification.c: Likewise.
5670 * locale/C-measurement.c: Likewise.
5671 * locale/C-messages.c: Likewise.
5672 * locale/C-monetary.c: Likewise.
5673 * locale/C-name.c: Likewise.
5674 * locale/C-numeric.c: Likewise.
5675 * locale/C-paper.c: Likewise.
5676 * locale/C-telephone.c: Likewise.
5677 * locale/C-time.c: Likewise.
5678 * nscd/connections.c: Likewise.
5679 * nscd/grpcache.c: Likewise.
5680 * nscd/hstcache.c: Likewise.
5681 * nscd/pwdcache.c: Likewise.
5682 * stdio-common/vfprintf.c: Likewise.
5683 * stdlib/random.c: Likewise.
5684 * sysdeps/generic/siglist.c: Likewise.
5685 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
5686 * sysdeps/ieee754/bits/nan.h: Likewise.
5687 * sysdeps/posix/sprofil.c: Likewise.
5688 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
5689 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
5690 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
5692 2002-12-15 Roland McGrath <roland@redhat.com>
5694 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
5696 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
5697 <tls.h> here, no need for it.
5698 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
5700 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
5701 parameter, not varargs parameter.
5703 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
5704 argument so it's not an unused variable.
5706 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
5707 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
5710 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
5712 2002-12-15 Ulrich Drepper <drepper@redhat.com>
5714 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
5715 original __libc_fcntl code. Just renamed.
5717 2002-12-15 Andreas Schwab <schwab@suse.de>
5719 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
5721 2002-12-14 Olaf Hering <olh@suse.de>
5723 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
5724 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
5726 2002-12-15 Ulrich Drepper <drepper@redhat.com>
5728 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
5730 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
5731 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
5733 * sysdeps/unix/sysv/linux/open64.c: New file.
5735 * sysdeps/generic/pselect.c: Add support for cancellation handling.
5736 * sysdeps/posix/open64.c: Likewise.
5737 * sysdeps/posix/sigpause.c: Likewise.
5738 * sysdeps/posix/sigwait.c: Likewise.
5739 * sysdeps/posix/system.c: Likewise.
5740 * sysdeps/posix/waitid.c: Likewise.
5741 * sysdeps/unix/sysv/linux/accept.S: Likewise.
5742 * sysdeps/unix/sysv/linux/connect.S: Likewise.
5743 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
5744 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
5745 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
5746 * sysdeps/unix/sysv/linux/poll.c: Likewise.
5747 * sysdeps/unix/sysv/linux/pread.c: Likewise.
5748 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
5749 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
5750 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
5751 * sysdeps/unix/sysv/linux/readv.c: Likewise.
5752 * sysdeps/unix/sysv/linux/recv.S: Likewise.
5753 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
5754 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
5755 * sysdeps/unix/sysv/linux/send.S: Likewise.
5756 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
5757 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
5758 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
5759 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
5760 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
5761 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
5762 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
5763 * sysdeps/unix/sysv/linux/wait.c: Likewise.
5764 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
5765 * sysdeps/unix/sysv/linux/writev.c: Likewise.
5766 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
5767 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
5769 2002-12-14 Jakub Jelinek <jakub@redhat.com>
5771 * sysdeps/generic/sysdep-cancel.h: New file.
5772 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
5774 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
5775 recvmsg, send, sendmsg, sendto): Make cancelable.
5776 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
5777 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
5778 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
5779 sendto, osf_select): Likewise.
5780 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
5781 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
5782 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
5783 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
5785 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
5786 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
5787 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
5788 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
5790 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
5791 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
5792 sendto, select): Likewise.
5793 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
5794 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
5796 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
5797 select, fcntl): Likewise.
5798 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
5799 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
5800 read, readv, select, sigsuspend, write, writev): Likewise.
5802 2002-12-14 Jakub Jelinek <jakub@redhat.com>
5804 * dirent/bug-readdir1.c: Include unistd.h.
5806 2002-12-13 Jakub Jelinek <jakub@redhat.com>
5808 * locale/programs/locale.c: Include locarchive.h.
5809 (ARCHIVE_NAME): Define.
5810 (write_archive_locales): New function.
5811 (write_locales): Use it. Ensure the same locale is not printed
5812 multiple times in verbose mode.
5813 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
5814 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
5816 (struct nameent): New type.
5817 (nameentcmp): New function.
5819 2002-12-14 Jakub Jelinek <jakub@redhat.com>
5821 * posix/regex_internal.c (re_string_context_at): Guard wide char
5822 code with #ifdef RE_ENABLE_I18N.
5824 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
5826 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
5828 2002-12-13 Roland McGrath <roland@redhat.com>
5830 * posix/bug-regex15.c: New file.
5831 * posix/Makefile (tests): Add it.
5833 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
5834 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
5836 2002-12-13 Ulrich Drepper <drepper@redhat.com>
5838 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
5840 * misc/syslog.c (log_cleanup): Don't use parameter in
5841 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
5842 pass NULL instead of a pointer to syslog_lock.
5844 2002-12-12 Ulrich Drepper <drepper@redhat.com>
5846 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
5847 linker map for all iconv modules.
5848 (distribute): Add gconv.map.
5849 * iconvdata/gconv.map: New file.
5851 * elf/Makefile: Also check all iconv modules for text relocations.
5853 * stdlib/Makefile: Remove code to automatically import GMP.
5855 * elf/Makefile (tests): Add rules to build and run check-textrel.
5856 * elf/check-textrel.c: New file.
5858 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
5861 2002-12-11 Jakub Jelinek <jakub@redhat.com>
5863 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
5866 2002-04-30 Bruno Haible <bruno@clisp.org>
5868 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
5869 the encoding if it already has slashes.
5870 Reported by Perry Rapp <prapp@erols.com>.
5872 2002-12-11 Roland McGrath <roland@redhat.com>
5874 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
5875 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
5876 Turn off PIC for compiling this file.
5878 2002-12-11 Ulrich Drepper <drepper@redhat.com>
5880 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
5881 definitions. Not needed.
5882 [_LIBC]: Use definitions from libc-lock.h instead of referencing
5883 pthread routines directly.
5884 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
5886 (arena_get2): Don't look at return value of mutex_lock.
5888 2002-12-11 Roland McGrath <roland@redhat.com>
5890 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
5891 elf-init.o instead of compiling a PIC version.
5893 2002-12-11 Bruno Haible <bruno@clisp.org>
5895 * intl/gettext.h: Renamed to ...
5896 * intl/gmo.h: ... here.
5897 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
5898 * intl/gettextP.h: Update.
5899 * intl/loadmsgcat.c: Update.
5901 * intl/gettextP.h (PARAMS): Make more portable.
5902 (attribute_hidden): Define as empty macro if not already defined.
5903 * intl/hash-string.h (PARAMS): Make more portable.
5904 * intl/loadinfo.h (PARAMS): Likewise.
5905 * intl/plural-exp.h (PARAMS): Likewise.
5906 (attribute_hidden): Move definition near the definition of
5909 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
5910 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
5912 2002-07-13 Bruno Haible <bruno@clisp.org>
5914 * intl/dcigettext.c (freea): New macro.
5915 (FREE_BLOCKS): Free also the registered blocks.
5916 (DCIGETTEXT): Free the 'search' variable.
5917 Reported by Andreas Fischer <a.fischer@asentics.de>.
5919 2002-04-27 Bruno Haible <bruno@clisp.org>
5921 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
5922 * intl/dcigettext.c: Likewise.
5923 * intl/dcgettext.c: Likewise.
5924 * intl/dgettext.c: Likewise.
5925 * intl/gettext.c: Likewise.
5926 * intl/dcngettext.c: Likewise.
5927 * intl/dngettext.c: Likewise.
5928 * intl/ngettext.c: Likewise.
5929 * intl/textdomain.c: Likewise.
5930 * intl/bindtextdom.c: Likewise.
5931 * intl/plural-exp.h: Likewise.
5933 2002-01-02 Bruno Haible <bruno@clisp.org>
5935 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
5937 2001-04-30 Bruno Haible <bruno@clisp.org>
5939 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
5940 default macro definitions. Needed for mingw32.
5942 2002-12-10 Ulrich Drepper <drepper@redhat.com>
5944 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
5945 __builtin_constant_p to macro parameter.
5947 * sysdeps/generic/sigpause.c: Define all functions as weak.
5948 * sysdeps/posix/sigpause.c: Likewise.
5950 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
5953 2002-12-10 Jakub Jelinek <jakub@redhat.com>
5955 * elf/tst-array1.c (preinit_array, init_array, fini_array):
5956 Explicitly align the array to sizeof (void *).
5957 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
5959 * include/libc-symbols.h: Fix a comment typo.
5961 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
5962 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
5964 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
5966 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
5967 (__libc_sigsuspend): Likewise.
5968 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
5969 (__libc_sigsuspend): Likewise.
5970 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
5971 (creat): New weak alias.
5973 2002-12-10 Roland McGrath <roland@redhat.com>
5975 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
5976 contributes a manual chapter.
5977 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
5980 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
5981 and move contents to ...
5982 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
5983 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
5984 it instead of duplicating its contents.
5985 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
5987 2002-12-09 Jakub Jelinek <jakub@redhat.com>
5989 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
5991 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
5993 (EXTRA_LD_ENVVARS): Use it.
5994 (DL_OSVERSION_INIT): Define.
5995 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
5997 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
5999 2002-12-10 Ulrich Drepper <drepper@redhat.com>
6001 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
6003 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
6004 call. It is not allowed to destroy pthread mutexes which are
6005 still in use even though it is safe for our implementations. If
6006 somebody still uses the descriptor it is a bug.
6008 2002-12-09 Richard Henderson <rth@redhat.com>
6010 * csu/abi-note.S: Use .p2align, not .align.
6012 2002-12-09 Ulrich Drepper <drepper@redhat.com>
6014 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
6015 __libc_select aliases.
6017 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
6020 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
6022 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
6024 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
6026 * sysdeps/unix/syscalls.list: Define __libc_select alias.
6028 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
6030 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
6031 __libc___xpg_sigpause aliases.
6033 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
6035 * misc/error.c: Remove use of USE_IN_LIBIO.
6037 2002-12-08 Roland McGrath <roland@redhat.com>
6039 * elf/Makefile (tests): Uncomment tst-array[123].
6040 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
6041 * csu/elf-init.c: New file.
6042 * csu/Makefile (routines, static-only-routines): Add elf-init.
6043 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
6044 and __libc_csu_fini in place of _fini.
6045 * sysdeps/arm/elf/start.S: Likewise.
6046 * sysdeps/cris/elf/start.S: Likewise.
6047 * sysdeps/hppa/elf/start.S: Likewise.
6048 * sysdeps/i386/elf/start.S: Likewise.
6049 * sysdeps/ia64/elf/start.S: Likewise.
6050 * sysdeps/m68k/elf/start.S: Likewise.
6051 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
6052 * sysdeps/mips/elf/start.S: Likewise.
6053 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
6054 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
6055 * sysdeps/s390/s390-32/elf/start.S: Likewise.
6056 * sysdeps/s390/s390-64/elf/start.S: Likewise.
6057 * sysdeps/sh/elf/start.S: Likewise.
6058 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
6059 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
6060 * sysdeps/x86_64/elf/start.S: Likewise.
6062 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
6063 struct containing function ptr and value, free it.
6064 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
6065 It's not safe to let the new thread use the SIGEV pointer.
6067 2001-10-20 Paul Eggert <eggert@twinsun.com>
6069 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
6070 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
6071 Use strerror_r that is only a macro, even if it is not a function.
6072 (strerror): Check for HAVE_DECL_STRERROR before declaring.
6073 (private_strerror): Use prototypes, not old-style function definition.
6074 (print_errno_message): New function.
6075 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
6077 (error_tail, error, error_at_line): Use it.
6079 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
6081 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
6083 2002-12-08 Ulrich Drepper <drepper@redhat.com>
6085 * scripts/output-format.sed: Fix bug in one of the s expressions
6086 which used / for one too many things.
6088 * include/unistd.h: Declare __libc_close.
6090 2002-12-07 Ulrich Drepper <drepper@redhat.com>
6092 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
6094 2002-12-07 Roland McGrath <roland@redhat.com>
6096 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
6097 from 2002-12-06, but remove unnecessary memset call without removing
6098 necessary copy of initialization image.
6100 * Makerules ($(common-objpfx)format.lds): New target.
6101 (common-generated): Add it.
6102 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
6103 * scripts/output-format.sed: New file.
6104 * Makefile (distribute): Add it.
6106 2002-12-07 Ulrich Drepper <drepper@redhat.com>
6108 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
6109 Reported by Art Haas <ahaas@airmail.net>.
6111 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
6113 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
6115 2002-12-07 Jakub Jelinek <jakub@redhat.com>
6117 * string/test-strncpy.c (do_random_tests): Improve test coverage.
6119 2002-12-06 Ulrich Drepper <drepper@redhat.com>
6121 * test-skeleton.c (timeout_handler): Allow expected signal to be
6124 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
6126 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
6128 2002-12-07 Jakub Jelinek <jakub@redhat.com>
6130 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
6131 (SYSCALL_ERROR_HANDLER): Fix a pasto.
6132 Reported by Jeff Bailey <jbailey@nisa.net>.
6134 2002-12-06 Ulrich Drepper <drepper@redhat.com>
6136 * sysdeps/generic/libc-tls.c: Undo last patch.
6138 * include/wctype.h: Define iswalnum with libc_hidden_proto.
6140 * include/signal.h: Define raise with libc_hidden_proto.
6142 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
6143 __execve instead of snprintf and execve.
6145 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
6148 2002-12-06 Jakub Jelinek <jakub@redhat.com>
6150 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
6151 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
6153 2002-12-06 Ulrich Drepper <drepper@redhat.com>
6155 * misc/syslog.c (log_cleanup): New function.
6156 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
6157 (closelog): Likewise.
6159 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
6160 * elf/dl-iteratephdr.c: Likewise.
6161 * elf/dl-lookup.c: Likewise.
6162 * elf/dl-misc.c: Likewise.
6163 * elf/dl-open.c: Likewise.
6164 * elf/dl-support.c: Likewise.
6165 * elf/rtld.c: Likewise.
6166 * sysdeps/generic/ldsodefs.h: Likewise.
6167 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
6168 * sysdeps/mach/bits/libc-lock.h: Likewise.
6169 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
6171 2002-12-06 Roland McGrath <roland@redhat.com>
6173 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
6175 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
6176 (malloc_starter, memalign_starter, free_starter): Don't define these.
6177 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
6178 Don't declare them either.
6179 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
6180 __pthread_initialize, so no need to set hooks to *_starter.
6181 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
6182 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
6183 (__libc_malloc_pthread_startup): New function.
6184 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
6186 * malloc/hooks.c (memalign_starter): New function.
6187 * malloc/malloc.c: Declare it.
6188 * malloc/arena.c (save_memalign_hook): New variable.
6189 (ptmalloc_init): Set __memalign_hook to memalign_starter.
6191 * elf/dl-minimal.c (free): Clear the memory.
6192 (calloc): Just call malloc, knowing all memory it returns is cleared.
6194 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
6195 malloc and memset; calloc can avoid the zeroing when redundant.
6196 (_dl_tls_setup): Likewise.
6197 * elf/dl-load.c (decompose_rpath): Likewise.
6198 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
6199 call, since memory from sbrk at startup is already zero.
6201 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
6202 error string for failure, null for success. Update callers.
6203 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
6204 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
6206 2002-12-05 Jakub Jelinek <jakub@redhat.com>
6208 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
6210 (readahead): Change args to i:iii.
6211 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
6212 Change args to i:iii.
6213 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
6216 2002-12-05 Roland McGrath <roland@redhat.com>
6218 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
6219 call all functions rather than none.
6220 Reported by Mark P. Mitchell <mark@codesourcery.com>.
6222 2002-12-04 Roland McGrath <roland@redhat.com>
6224 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
6225 on _nl_current_LC_* variables.
6227 2002-12-05 Ulrich Drepper <drepper@redhat.com>
6229 * dirent/bug-readdir1.c (main): Don't call closedir, just close
6230 the file descriptor. This is testing what the bug report was about.
6232 2002-12-04 Ulrich Drepper <drepper@redhat.com>
6234 * po/be.po: New file.
6236 * argp/Makefile (tests): Add tst-argp1.
6238 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
6239 Change type of _attribute to void*.
6240 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
6241 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
6242 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
6243 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
6244 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
6246 2002-12-04 Roland McGrath <roland@redhat.com>
6248 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
6249 members to the end, so a libpthread compiled with !USE_TLS will still
6250 find other members properly.
6252 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
6253 operand for DEST memory. Fix dummy input operand to use SRC.
6254 Reported by Davin McCall <davmac@ozonline.com.au>.
6256 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
6257 alignment when initializing the DTV entry.
6259 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
6260 when TLS has not been set up, try to set it up if we can.
6261 * elf/tst-tls4.c: Revert last change.
6262 * elf/tst-tls5.c: Likewise.
6263 * elf/tst-tls6.c: Likewise.
6264 * elf/tst-tls7.c: Likewise.
6265 * elf/tst-tls8.c: Likewise.
6266 * elf/tst-tls9.c: Likewise.
6268 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
6269 * sysdeps/generic/ldsodefs.h: Declare it.
6270 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
6271 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
6272 function, broken out of __libc_setup_tls.
6273 (init_static_tls): Likewise.
6274 (__libc_setup_tls): Call them.
6275 (_dl_tls_setup): New function, uses new subroutines.
6277 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
6278 Clear the pointer when returning true.
6279 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
6280 first element of the slotinfo list too.
6282 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
6285 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
6286 (_dl_determine_tlsoffset): Likewise.
6288 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
6289 startup_error_tsd, made global.
6290 (dl_main): Update initialization.
6291 * elf/dl-tsd.c: Likewise.
6292 * sysdeps/generic/ldsodefs.h: Declare it.
6294 2002-12-03 Ulrich Drepper <drepper@redhat.com>
6296 * manual/texinfo.tex: Update from latest upstream version.
6298 2002-12-03 Roland McGrath <roland@redhat.com>
6300 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
6301 area surplus in calculation for sbrk call.
6303 * iconvdata/cp1125.c: New file.
6304 * iconvdata/Makefile (distribute): Add it.
6305 (modules): Add CP1125.
6306 (gen-8bit-gap-modules): Add cp1125.
6307 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
6308 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
6310 2002-12-03 Andreas Jaeger <aj@suse.de>
6312 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
6314 2002-12-03 Ulrich Drepper <drepper@redhat.com>
6316 * sysdeps/posix/system.c (do_system): Make signal handler
6317 installation thread safe.
6319 2002-12-02 Roland McGrath <roland@redhat.com>
6321 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
6322 caller from EXTRA to -.
6323 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6324 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
6325 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
6327 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
6329 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
6330 bits of RM are cleared.
6332 2002-12-02 Roland McGrath <roland@redhat.com>
6334 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
6335 TLS setup is required.
6336 * elf/tst-tls5.c: Likewise.
6337 * elf/tst-tls6.c: Likewise.
6338 * elf/tst-tls7.c: Likewise.
6339 * elf/tst-tls8.c: Likewise.
6340 * elf/tst-tls9.c: Likewise.
6342 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
6343 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
6344 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
6345 for being null before calling free_slotinfo.
6346 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
6347 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
6349 2002-11-30 Bruno Haible <bruno@clisp.org>
6351 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
6352 (struct __gconv_step): New field __btowc_fct.
6353 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
6354 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
6356 (__gconv_btwoc_ascii): New declaration.
6357 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
6358 (__gconv_btwoc_ascii): New function.
6359 * iconv/gconv_builtin.h: Add BtowcFct argument to all
6360 BUILTIN_TRANSFORMATION invocations.
6361 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
6362 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
6363 * iconv/gconv_builtin.c (map): New field btowc_fct.
6364 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
6366 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
6367 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
6368 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
6369 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
6370 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
6371 (gconv_init): Initialize __btowc_fct field.
6372 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
6373 * iconv/loop.c: Document ONEBYTE_BODY.
6374 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
6375 Undefine ONEBYTE_BODY at the end.
6376 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
6377 * iconvdata/8bit-gap.c (NONNUL): New macro.
6378 (BODY for FROM_LOOP): Use it.
6379 (ONEBYTE_BODY): New macro.
6380 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
6381 (NONNUL): New macro.
6382 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
6383 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
6384 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
6385 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
6386 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
6387 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
6388 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
6389 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
6390 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
6391 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
6392 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
6393 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
6394 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
6395 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
6396 * iconvdata/ibm932.c: Include <stdbool.h>.
6397 (TRUE, FALSE): Remove macros.
6398 (BODY for FROM_LOOP): Remove unused variable rp1.
6399 (ONEBYTE_BODY): New macro.
6400 (BODY for TO_LOOP): Use bool.
6401 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
6402 * iconvdata/ibm943.c: Include <stdbool.h>.
6403 (TRUE, FALSE): Remove macros.
6404 (BODY for FROM_LOOP): Remove unused variable rp1.
6405 (ONEBYTE_BODY): New macro.
6406 (BODY for TO_LOOP): Use bool.
6407 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
6408 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
6409 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
6410 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
6411 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
6412 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
6413 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
6414 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
6415 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
6416 * iconvdata/gbbig5.c: Tweak comment.
6418 2002-12-02 Ulrich Drepper <drepper@redhat.com>
6420 * po/fi.po: Update from translation team.
6422 2002-12-01 Roland McGrath <roland@redhat.com>
6424 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
6425 testing getdents64 return value.
6427 * scripts/versions.awk: Don't pass -n flag to sort command.
6429 * posix/bug-regex13.c: Include <string.h>.
6431 * sysdeps/generic/libc-start.c (__libc_start_main): Do
6432 DL_SYSDEP_OSCHECK here.
6433 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
6434 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
6436 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
6437 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
6439 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
6440 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
6442 * include/link.h: Comment typo fix.
6444 2002-12-01 Roland McGrath <roland@frob.com>
6446 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
6447 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
6448 _POSIX_MEMORY_PROTECTION): Likewise.
6449 (_POSIX_POLL, _POSIX_SELECT): Removed.
6451 2002-11-28 Ulrich Drepper <drepper@redhat.com>
6453 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
6454 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
6456 2002-11-28 Jakub Jelinek <jakub@redhat.com>
6458 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
6460 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
6463 2002-11-28 Ulrich Drepper <drepper@redhat.com>
6465 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
6466 branch prediction buffers by using unpaired call/ret.
6468 2002-11-27 Ulrich Drepper <drepper@redhat.com>
6470 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
6471 first parameters constraint string.
6472 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
6474 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
6476 * posix/regcomp.c (parse_expression): Set the bit since the back
6477 reference is used in the regular expression.
6478 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
6480 (re_node_set_init_copy): Likewise.
6481 * posix/regex_internal.h (state_array_t): New structure.
6482 (re_sub_match_last_t): Likewise.
6483 (re_sub_match_top_t): Likewise.
6484 (re_match_context_t): Add new members.
6485 (re_dfa_t): Likewise.
6486 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
6487 to check the matching is really correct, and retry if failed.
6488 Move the routin pruning the impossible nodes from here, ...
6489 (prune_impossible_nodes): To this function.
6490 (check_matching): Invoke check_subexp_matching_top, and replace
6491 redundant checking with transit_state_bkref invocation.
6492 (proceed_next_node): Replace strncmp with memcmp. Reported by
6493 Paolo Bonzini <bonzini@gnu.org>.
6494 (update_cur_sifted_state): Remove search_subexp invocation.
6495 (search_subexp): Remove this function.
6496 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
6498 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
6499 Remove unused invocation of match_ctx_add_entry.
6500 (transit_state): Invoke check_subexp_matching_top.
6501 (check_subexp_matching_top): New function.
6502 (transit_state_bkref): Remove unused array.
6503 Merge transit_state_bkref_loop.
6504 (transit_state_bkref_loop): Use get_subexp instead of
6505 sift_states_backward. Use search_cur_bkref_entry for optimization.
6506 Merge this function to transit_state_bkref.
6507 (get_subexp): New function.
6508 (get_subexp_sub): Likewise.
6509 (find_subexp_node): Likewise.
6510 (check_arrival): Likewise.
6511 (check_arrival_expand_ecl): Likewise.
6512 (check_arrival_expand_ecl_sub): Likewise.
6513 (expand_bkref_cache): Likewise.
6514 (match_ctx_init): Initialize new members.
6515 (match_ctx_clean): New function.
6516 (match_ctx_free): Release new members.
6517 (match_ctx_free_subtops): New function.
6518 (match_ctx_add_entry): Fix indent.
6519 (search_cur_bkref_entry): New function.
6520 (match_ctx_add_subtop): Likewise.
6521 (match_ctx_add_sublast): Likewise.
6523 2002-11-25 Ulrich Drepper <drepper@redhat.com>
6525 * iconv/Makefile (tests): Remove tst-iconv4.c
6526 * iconv/tst-iconv4.c: Moved to...
6527 * iconvdata/tst-iconv4.c: ...here. New file.
6528 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
6530 2002-11-25 Roland McGrath <roland@redhat.com>
6532 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
6533 Grok AF_LINK if defined.
6534 From Momchil Velikov <velco@fadata.bg>.
6536 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
6537 brdaddr, or dstaddr, just set those pointers to null and don't fail.
6538 Reported by Momchil Velikov <velco@fadata.bg>.
6540 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
6541 is > sizeof IFR->ifa_addr, advance past the whole longer length.
6542 (__ifreq): Count up NIFS that way too.
6543 Reported by Momchil Velikov <velco@fadata.bg>.
6545 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
6547 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
6548 and <fpu_control.h>.
6550 2002-11-24 Ulrich Drepper <drepper@redhat.com>
6552 * elf/elf.h (EM_ST19): Fix typo.
6554 2002-11-25 Jakub Jelinek <jakub@redhat.com>
6556 * include/errno.h (__set_errno): Define as errno = val
6559 2002-11-24 Roland McGrath <roland@redhat.com>
6561 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
6562 * sysdeps/posix/writev.c: Likewise.
6563 From Momchil Velikov <velco@fadata.bg>.
6565 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
6566 calling *GL(dl_error_catch_tsd) for a thread-local location.
6567 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
6568 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
6569 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
6571 * libio/iofflush.c: Add libc_hidden_def.
6572 * libio/iofwrite.c: Likewise.
6573 * sysdeps/generic/sigtimedwait.c: Likewise.
6574 * sysdeps/generic/sigwaitinfo.c: Likewise.
6575 * sysdeps/posix/sigwait.c: Likewise.
6576 Reported by Momchil Velikov <velco@fadata.bg>.
6578 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
6579 to match <arpa/inet.h> declaration.
6580 * inet/inet_netof.c (inet_netof): Likewise.
6581 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
6582 Reported by Momchil Velikov <velco@fadata.bg>.
6584 * configure.in: Skip AUTOCONF check under --without-cvs.
6585 * configure: Regenerated.
6587 * posix/Makefile (headers): Add bits/pthreadtypes.h.
6588 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
6589 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
6591 2002-11-24 Andreas Schwab <schwab@suse.de>
6593 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
6596 2002-11-19 Jim Meyering <jim@meyering.net>
6598 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
6600 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
6602 2002-11-23 Roland McGrath <roland@redhat.com>
6604 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
6605 Just produce hex output for datum sizes.
6607 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
6608 Reported by Luca Barbieri <ldb@ldb.ods.org>.
6610 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
6612 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
6613 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
6614 and __unused3 fields.
6615 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
6616 [__WORDSIZE == 32]: Only PPC32 requires __unused1
6617 and __unused2 fields.
6618 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
6619 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
6620 __unused3, and __unused4 fields.
6622 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
6623 obtain lowest address for profiling in __monstartup call.
6625 2002-11-21 Roland McGrath <roland@redhat.com>
6627 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
6628 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
6630 * locale/localeinfo.h (struct locale_data): Revert last change.
6632 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
6633 From Ian Wienand <ianw@gelato.unsw.edu.au>.
6635 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
6636 __NR_pread64 if not defined.
6637 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
6638 From Ian Wienand <ianw@gelato.unsw.edu.au>.
6640 2002-11-21 Roland McGrath <roland@frob.com>
6642 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
6643 __libc_multiple_libcs here. Call __setfpucw.
6645 2002-11-21 Ulrich Drepper <drepper@redhat.com>
6647 * elf/Makefile (tests): Don't run test-arrayX tests for now.
6649 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
6650 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
6651 CLONE_CHILD_*TID flags.
6653 2002-11-20 Andreas Jaeger <aj@suse.de>
6655 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
6656 We pass struct ucontext on x86-64.
6658 (GET_FRAME): Adjust.
6659 (GET_STACK): Adjust.
6661 2002-11-20 Roland McGrath <roland@redhat.com>
6663 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
6664 conditionalize [! DO_VERSIONING] #error.
6666 * scripts/abilist.awk: Grok function descriptor symbols.
6668 * intl/tst-gettext.c (main): Check return values from setlocale.
6669 Add necessary unsetenv's to make LANG=existing-locale check work.
6671 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
6672 so aborted prior runs don't confuse things.
6674 * locale/localeinfo.h (struct locale_data: union locale_data_value):
6675 Use uintptr_t instead of unsigned int for `word' member.
6676 (_NL_CURRENT_WORD): Cast to uint32_t.
6678 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
6681 2002-11-20 Ulrich Drepper <drepper@redhat.com>
6683 * elf/tls-macros.h: Add IA-64 definitions.
6684 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
6686 * iconv/Makefile (tests): Add tst-iconv4.
6687 * iconv/tst-iconv4.c: New file.
6689 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
6690 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
6691 __GCONV_INCOMPLETE_INPUT.
6692 (ucs4le_internal_loop): Likewise.
6693 (ucs4le_internal_loop_unaligned): Likewise.
6694 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
6695 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
6696 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
6698 * iconv/loop.c (LOOPFCT): First test for empty input then for full
6701 * inet/getnameinfo.c: Use extend_alloca where appropriate.
6702 * sysdeps/posix/getaddrinfo.c: Likewise.
6704 * include/alloca.h (extend_alloca): New define. Based on stack
6705 direction it'll try to append to the previouls allocated buffer.
6707 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
6709 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
6710 use the same service for AF_INET and AF_INET6.
6712 2002-11-19 Ulrich Drepper <drepper@redhat.com>
6714 * intl/localealias.c (read_alias_file): Use only about 400 bytes
6715 of stack space instead of 16k.
6717 2002-11-18 Wolfram Gloger <wg@malloc.de>
6720 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
6721 nothing if not initialized. Bug report from Marcus Brinkmann
6722 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
6724 2002-11-19 Roland McGrath <roland@redhat.com>
6726 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
6729 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
6730 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
6731 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
6732 * configure: Regenerated.
6734 2002-11-19 Ulrich Drepper <drepper@redhat.com>
6736 * include/dlfcn.h: __libc_dlopen is now a macro calling
6737 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
6738 (__libc_dlopen_mode): New prototype.
6739 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
6740 new parameter. Store new parameter in mode field of structure passed
6742 (struct do_dlopen_args): Add new field mode.
6743 (do_dlopen): Pass mode from parameter structure to _dl_open.
6745 2002-11-11 Randolf Chung <tausq@debian.org>
6747 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
6748 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
6749 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
6751 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
6753 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
6754 Set -mdisable-fpregs for this file.
6756 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
6758 * sysdeps/unix/sysv/linux/configure.in:
6759 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
6760 from gcc-3.0 era for backwards compatibility.
6761 * sysdeps/unix/sysv/linux/configure: Regenerate.
6763 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
6764 Define mcontext_t as a sigcontext.
6766 2002-11-18 Roland McGrath <roland@redhat.com>
6768 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
6769 Free memory in `last_result' if it was used.
6771 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
6772 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
6773 Do the parsing inline instead of copying strings and calling
6774 inet_network, and properly skip all alias names not matching the form.
6776 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
6778 2002-11-17 Ulrich Drepper <drepper@redhat.com>
6780 * manual/pattern.texi (Wordexp Example): Fix sample code.
6782 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
6783 childs stack which will be loaded into the %esi register.
6785 2002-11-14 Paul Eggert <eggert@twinsun.com>
6787 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
6788 overflow when skipping the question part and when unpacking aliases.
6790 2002-11-15 Roland McGrath <roland@redhat.com>
6792 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
6793 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
6794 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
6796 2002-11-15 Jakub Jelinek <jakub@redhat.com>
6798 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
6799 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
6801 2002-11-15 Roland McGrath <roland@redhat.com>
6803 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
6804 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
6805 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
6806 (+make-include-of-dep): New canned sequence.
6808 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
6809 From Dmitry V. Levin <ldv@altlinux.org>.
6811 2002-11-14 Roland McGrath <roland@redhat.com>
6813 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
6814 * inet/herrno.c (__libc_h_errno): Likewise.
6815 * resolv/res_libc.c (__libc_res): Likewise.
6816 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
6817 (__res_state) [! USE___THREAD]: Don't define as weak.
6818 * csu/Versions: Revert last change.
6819 * resolv/Versions: Revert last change.
6821 * Makerules ($(common-objpfx)%.make): New pattern rule.
6822 * tls.make.c: New file.
6823 * Makefile (distribute): Add it.
6825 * sysdeps/generic/errno.c [! USE___THREAD]
6826 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
6827 with compat_symbol so they are not link-time visible.
6828 [! USE___THREAD] (__libc_errno): New alias for errno.
6829 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
6830 Add __libc_errno here.
6831 * inet/herrno.c [USE___THREAD]: Use this conditional
6832 in place of [USE_TLS && HAVE___THREAD].
6833 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
6834 (h_errno, _h_errno): Declare these with compat_symbol so they are not
6836 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
6837 * resolv/res_libc.c [! USE___THREAD]
6838 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
6839 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
6840 (__libc_res): Define as alias for _res.
6841 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
6842 Add __libc_h_errno and __libc_res here.
6844 2002-11-14 Jakub Jelinek <jakub@redhat.com>
6846 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
6847 * resolv/Versions (h_errno, _res): Likewise.
6849 2002-11-14 Roland McGrath <roland@redhat.com>
6851 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
6852 (%.symlist): Likewise.
6854 2002-11-13 Roland McGrath <roland@redhat.com>
6856 * scripts/abilist.awk: New file.
6857 * Makefile (distribute): Add it.
6858 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
6859 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
6860 [$(subdir) = elf] (tests): Depend on libc.symlist.
6861 (generated, common-generated): Add those files.
6863 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
6864 * configure: Regenerated.
6865 * config.make.in (OBJDUMP): New variable, substituted by configure.
6867 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
6868 (mallochook, reallochook): Set them up.
6869 (checkhdr): Check HDR->magic2 value.
6870 (freehook): Reset HDR->magic2.
6871 (memalignhook): New static function.
6872 (old_memalign_hook): New static variable.
6873 (mcheck, reallochook): Set __memalign_hook to memalignhook.
6875 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
6878 2002-11-13 Andreas Jaeger <aj@suse.de>
6880 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
6882 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
6884 2002-11-11 Paul Eggert <eggert@twinsun.com>
6886 * manual/crypt.texi (Cryptographic Functions): Mention that
6887 the MD5 one-way algorithm is compatible with BSD's.
6889 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
6891 * posix/regex_internal.c (re_string_skip_chars): Also return the last
6893 (re_string_reconstruct): Calculate the context by itself when the
6894 offset points out of the valid range.
6895 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
6896 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
6897 (IS_WIDE_WORD_CHAR): New macro.
6898 (IS_WIDE_NEWLINE): New macro.
6900 2002-11-12 Andreas Jaeger <aj@suse.de>
6902 * sysdeps/x86_64/strchr.S: Don't use one register for two
6903 purposes, this fixes a bug noticed by test-strchr.c.
6905 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
6908 2002-11-12 Roland McGrath <roland@redhat.com>
6910 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
6911 (_G_IO_NO_BACKWARD_COMPAT): Define it.
6913 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
6914 instead of <pt-machine.h>.
6915 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
6917 From Ian Wienand <ianw@gelato.unsw.edu.au>.
6919 2002-11-10 Roland McGrath <roland@redhat.com>
6921 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
6922 Call fputs instead of fwprintf (simpler to follow in debugger).
6924 * crypt/md5-crypt.c: Doc fix.
6926 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
6927 the beginning of generated target commands.
6929 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
6930 dependencies for these in case implicit rule search skipped the
6931 nonexistent source directory.
6932 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
6933 files with $(object-suffixes) as targets too.
6934 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
6935 and a target for it using $(make-target-directory).
6937 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
6939 2002-11-10 Roland McGrath <roland@frob.com>
6941 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
6942 * sysdeps/generic/bits/pthreadtypes.h: ... here.
6944 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
6945 l_start == 0 and l_len == 1 as we do l_len == 0.
6947 2002-11-10 Ulrich Drepper <drepper@redhat.com>
6949 * po/da.po: Update from translation team.
6951 2002-11-10 Roland McGrath <roland@redhat.com>
6953 * config.make.in (includedir): New variable, substituted by configure.
6954 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
6955 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
6957 2002-11-10 Andreas Jaeger <aj@suse.de>
6959 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
6960 REG_OLDMASK and REG_CR2 to synch with kernel header.
6963 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
6965 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
6966 * nss/getnssent_r.c (__nss_getent_r): Likewise.
6967 (__nss_setent): Likewise.
6968 (__nss_getent_r): Likewise.
6969 * inet/getnetgrent_r.c (innetgr): Likewise.
6970 (__internal_setnetgrent_reuse): Likewise.
6971 (internal_getnetgrent_r): Likewise.
6972 * inet/ether_hton.c (ether_hostton): Likewise.
6973 * inet/ether_ntoh.c (ether_ntohost): Likewise.
6974 * sunrpc/netname.c (netname2user): Likewise.
6975 * sunrpc/publickey.c (getpublickey): Likewise.
6976 (getsecretkey): Likewise.
6978 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
6980 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
6981 error in range calculation.
6983 2002-10-09 Jakub Jelinek <jakub@redhat.com>
6985 * string/test-strspn.c (do_test): Ensure zero termination.
6986 * string/test-strpbrk.c (do_test): Likewise.
6987 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
6988 * string/test-strncpy.c (stupid_strncpy): Likewise.
6989 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
6991 2002-10-08 Roland McGrath <roland@redhat.com>
6993 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
6996 2002-09-22 H.J. Lu <hjl@gnu.org>
6998 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
6999 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
7000 only if __NR_mmap2 is defined.
7002 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
7003 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
7004 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
7005 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
7007 2002-11-08 Jakub Jelinek <jakub@redhat.com>
7009 * posix/bug-regex13.c (tests): Add new test.
7011 * string/test-strchr.c (stupid_strchr): New function.
7012 (do_random_tests): Make sure the string is zero terminated.
7013 * string/test-strpbrk.c (stupid_strpbrk): New function.
7014 (do_random_tests): Make sure the string is zero terminated.
7015 * string/test-strcmp.c (stupid_strcmp): New function.
7016 (do_random_tests): Make sure the strings are zero terminated.
7017 * string/test-strspn.c (stupid_strspn): New function.
7018 (simple_strspn): Rename rej argument to acc.
7019 (do_random_tests): Make sure the string is zero terminated.
7020 * string/test-strcspn.c (stupid_strcspn): New function.
7021 * string/test-strncpy.c (stupid_strncpy): New function.
7022 * string/test-stpncpy.c (stupid_stpncpy): New function.
7023 * string/test-strncmp.c (stupid_strncmp): New function.
7024 (do_random_tests): Make sure the strings are zero terminated.
7025 * string/test-string.h (impl_t): Change test into long.
7026 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
7028 2002-11-08 Roland McGrath <roland@redhat.com>
7030 * sysdeps/ia64/elf/configure.in: Add TLS check.
7031 From Ian Wienand <ianw@cse.unsw.edu.au>.
7032 * sysdeps/ia64/elf/configure: Regenerated.
7034 2002-11-07 Roland McGrath <roland@redhat.com>
7036 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
7037 place of _IO_new_do_write.
7038 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
7039 #undef before versioned_symbol use.
7041 2002-11-07 Richard Henderson <rth@redhat.com>
7043 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
7044 * configure: Regenerated.
7045 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
7046 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
7047 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
7048 _dl_fini via gp-relative relocations.
7049 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
7051 * elf/tls-macros.h: Add alpha versions.
7052 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
7053 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
7054 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
7055 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
7056 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
7057 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
7058 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
7059 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
7060 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
7061 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
7062 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
7063 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
7064 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
7065 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
7066 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
7067 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
7068 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
7069 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
7071 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
7072 Kill argument registers across the inline syscall.
7074 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
7076 * linuxthreads/sysdeps/alpha/tls.h: New file.
7077 * sysdeps/alpha/dl-tls.h: New file.
7079 2002-10-29 David Mosberger <davidm@hpl.hp.com>
7081 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
7082 (gmon_initializer): New function.
7083 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
7084 __gmon_start__ here. Call it from gmon_initializer() instead.
7086 2002-03-12 H.J. Lu <hjl@gnu.org>
7088 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
7089 tst-array2, and tst-array3.
7090 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
7091 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
7092 ($(objpfx)tst-array1.out): New target.
7093 ($(objpfx)tst-array2): Likewise.
7094 ($(objpfx)tst-array2.out): Likewise.
7095 ($(objpfx)tst-array3.out): Likewise.
7096 * elf/tst-array1.c: New file.
7097 * elf/tst-array1.exp: Likewise.
7098 * elf/tst-array2.c: Likewise.
7099 * elf/tst-array2dep.c: Likewise.
7100 * elf/tst-array2.exp: Likewise.
7101 * elf/tst-array3.c: Likewise.
7103 2002-10-28 David Mosberger <davidm@hpl.hp.com>
7105 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
7106 Don't add L->l_addr to array entry values.
7108 2002-11-07 Jakub Jelinek <jakub@redhat.com>
7110 * string/test-string.h: New file.
7111 * string/test-strlen.c: New file.
7112 * string/test-string.h: New file.
7113 * string/test-strcmp.c: New file.
7114 * string/test-strchr.c: New file.
7115 * string/test-strrchr.c: New file.
7116 * string/test-strcpy.c: New file.
7117 * string/test-stpcpy.c: New file.
7118 * string/test-strncpy.c: New file.
7119 * string/test-stpncpy.c: New file.
7120 * string/test-strpbrk.c: New file.
7121 * string/test-strcspn.c: New file.
7122 * string/test-strspn.c: New file.
7123 * string/test-strcat.c: New file.
7124 * string/test-strncmp.c: New file.
7125 * string/test-memchr.c: New file.
7126 * string/test-memcmp.c: New file.
7127 * string/test-memset.c: New file.
7128 * string/test-memcpy.c: New file.
7129 * string/test-mempcpy.c: New file.
7130 * string/test-memmove.c: New file.
7131 * string/Makefile (strop-tests): New variable.
7132 (tests): Add strop-tests.
7133 (distribute): Add test-string.h.
7135 2002-11-06 Ulrich Drepper <drepper@redhat.com>
7137 * posix/regcomp.c: Use tabs instead of spaces.
7138 * posix/regexec.c: Likewise.
7139 * posix/regex_internal.h: Likewise.
7141 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
7143 2002-11-06 Jakub Jelinek <jakub@redhat.com>
7145 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
7147 (regcomp): Don't set can_be_null here.
7148 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
7149 (re_compile_internal): Clear can_be_null, set regs_allocated.
7151 * posix/regcomp.c (re_set_fastmap): New function.
7152 (re_compile_fastmap_iter): Use it. Remove redundant type ==
7153 COMPLEX_BRACKET check.
7154 * posix/regexec.c (re_search_internal): Optimize searching with
7155 fastmap. Call re_string_reconstruct even if match_first is
7156 smaller than raw_mbs_idx.
7158 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
7160 * posix/regcomp (free_dfa_content): Use free_state.
7161 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
7162 pointers in case that realloc failed.
7163 (re_node_set_merge): Likewise.
7164 (register_state): Likewise.
7165 (create_newstate_common): Invoke memory release functions in case of
7167 (create_ci_newstate): Likewise.
7168 (create_cd_newstate): Likewise.
7169 (free_state): New function.
7170 * posix/regexec.c (re_search_internal): Invoke memory release
7171 functions in case of error conditions.
7172 (sift_states_backward): Likewise.
7173 (merge_state_array): Likewise.
7174 (add_epsilon_src_nodes): Likewise.
7175 (sub_epsilon_src_nodes): Likewise.
7176 (search_subexp): Likewise.
7177 (sift_states_bkref): Likewise.
7178 (transit_state_sb): Likewise.
7179 (transit_state_mb): Likewise.
7180 (transit_state_bkref_loop): Likewise.
7181 (group_nodes_into_DFAstates): Likewise.
7182 (push_fail_stack): Don't edit pointers in case that realloc failed.
7183 (extend_buffers): Likewise.
7184 (match_ctx_add_entry): Likewise.
7186 2002-11-06 Roland McGrath <roland@redhat.com>
7188 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
7189 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
7191 * configure.in: Add checks on as and ld for binutils 2.13 or later.
7192 * configure: Regenerated.
7194 2002-11-06 Ulrich Drepper <drepper@redhat.com>
7196 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
7197 If re_compile_internal failed free fastmap buffer.
7198 (free_dfa_content): Broken out of regfree function. Frees all dfa
7200 (regfree): Add free_dfa_content.
7201 (re_compile_internal): If any of the called functions fails free
7202 all dfa related memory.
7204 2002-11-05 Ulrich Drepper <drepper@redhat.com>
7206 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
7207 warnings from the kernel headers.
7209 2002-11-05 Roland McGrath <roland@redhat.com>
7211 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
7212 From Johannes Stezenbach <js@convergence.de>.
7214 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
7215 #errlist-compat magic comment to give 123 as size.
7216 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
7217 (libc: GLIBC_2.2): ... here.
7218 (libc: GLIBC_2.3): Likewise.
7220 2002-11-05 Ulrich Drepper <drepper@redhat.com>
7222 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
7223 which happens at the beginning so that we can unload modules in
7226 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7228 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
7229 under [__USE_MISC || _ASM].
7231 * elf/elf.h: Remove the obsolete SH TLS relocations.
7233 2002-11-05 Ulrich Drepper <drepper@redhat.com>
7235 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
7237 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7239 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
7240 __NR_pread64 and __NR_pwrite64.
7241 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
7242 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
7244 Revert change to use INLINE_SYSCALL.
7245 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
7246 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
7247 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
7248 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
7250 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
7252 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
7253 Update clobber list and add a comment about the syscall ABI.
7255 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
7256 s_pwrite64, s_ftruncate, s_truncate): Re-add.
7258 2002-11-05 Jakub Jelinek <jakub@redhat.com>
7260 * iconv/gconv_dl.c (free_mem): Clear loaded.
7261 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
7264 2002-11-05 Ulrich Drepper <drepper@redhat.com>
7266 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
7268 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
7269 as old code without locking. _IO_seekoff calls this function after
7271 * libio/ioseekpos.c: Likewise for _IO_seekpos.
7272 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
7273 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
7275 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
7276 of _IO_seekoff_internal.
7277 (_IO_rewind): Likewise.
7278 * libio/ioftell.c: Likewise.
7279 * libio/ftello.c: Likewise.
7280 * libio/ftello64.c: Likewise.
7281 * libio/iofgetpos.c: Likewise.
7282 * libio/iofgetpos64.c: Likewise.
7283 * libio/oldiofgetpos.c: Likewise.
7284 * libio/oldiofgetpos64.c: Likewise.
7285 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
7286 _IO_seekpos_internal.
7287 * libio/iofsetpos64.c: Likewise.
7288 * libio/oldiofsetpos.c: Likewise.
7289 * libio/oldiofsetpos64.c: Likewise.
7291 2002-11-04 Roland McGrath <roland@redhat.com>
7293 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
7294 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
7295 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
7296 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
7297 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
7298 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
7299 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
7300 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
7301 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
7302 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
7303 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
7304 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
7305 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
7306 Remove these, no longer used.
7308 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7310 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
7311 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
7312 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
7313 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
7314 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
7315 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
7318 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
7319 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
7320 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
7322 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
7323 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
7325 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
7327 2002-11-03 Roland McGrath <roland@redhat.com>
7329 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
7330 `_dl_tls_static_used'.
7331 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
7332 (__libc_setup_tls): Initialize it. Let the initial value of
7333 _dl_tls_static_size indicate some surplus space in the computed value.
7334 * elf/dl-open.c (_dl_tls_static_size): New variable.
7335 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
7336 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
7337 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
7338 (CHECK_STATIC_TLS): Use it.
7339 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
7340 closed objects occupied a trailing contiguous chunk of static TLS area.
7342 2002-10-18 Bruno Haible <bruno@clisp.org>
7344 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
7346 2002-11-04 Ulrich Drepper <drepper@redhat.com>
7348 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
7349 _wide_data->_IO_read_end if adjustment can be made in the current
7352 * sysdeps/unix/sysv/linux/fexecve.c: New file.
7354 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
7355 wide oriented streams are used.
7357 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
7358 service hasn't been used [PR libc/4744].
7360 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
7361 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
7363 * manual/examples/dir.c: Don't include <stddef.h>.
7364 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
7365 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
7367 2002-11-02 H.J. Lu <hjl@gnu.org>
7369 * stdio-common/reg-printf.c: Include <stddef.h>.
7371 2002-11-03 Ulrich Drepper <drepper@redhat.com>
7373 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
7375 * po/ca.po: Update from translation team.
7376 * po/es.po: Likewise.
7378 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
7379 is defined write out memory map.
7380 * sysdeps/unix/sysv/linux/segfault.c: New file.
7382 2002-11-02 Roland McGrath <roland@redhat.com>
7384 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
7385 pointers that can alias.
7386 Reported by Daniel Jacobowitz <drow@mvista.com>.
7388 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
7390 2002-11-02 Roland McGrath <roland@redhat.com>
7392 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
7393 description to be clearer and to say that *RESULT is set to ENTRY.
7395 2002-10-30 Jakub Jelinek <jakub@redhat.com>
7397 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
7398 dests_ch arrays together. Alloca or malloc dest_states,
7399 dest_states_word and dest_states_nl arrays together. Free memory on
7402 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
7404 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
7405 and current_saltbits.
7407 2002-11-02 Roland McGrath <roland@redhat.com>
7409 * stdio-common/reg-printf.c: Include <stdlib.h>.
7411 2002-11-02 H.J. Lu <hjl@gnu.org>
7413 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
7414 caller to EXTRA instead of execve.
7416 2002-11-01 Roland McGrath <roland@redhat.com>
7418 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
7419 in place of [!(USE_TLS && HAVE___THREAD)].
7420 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
7422 2002-10-31 Roger Sayle <roger@eyesopen.com>
7424 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
7426 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
7428 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
7429 without defining FP_ROUNDMODE.
7431 2002-10-29 Jakub Jelinek <jakub@redhat.com>
7433 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
7434 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
7436 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
7437 (OLD_SIGLIST_SIZE): Define.
7438 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
7439 (OLD_SIGLIST_SIZE): Define.
7440 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
7442 2002-11-01 Jakub Jelinek <jakub@redhat.com>
7444 * sysdeps/ia64/strncpy.S: Fix recovery code.
7446 2002-10-30 Jakub Jelinek <jakub@redhat.com>
7448 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
7450 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
7452 * elf/dl-libc.c (free_mem): Likewise.
7453 * iconv/gconv_conf.c (free_mem): Likewise.
7454 * iconv/gconv_db.c (free_mem): Likewise.
7455 * iconv/gconv_dl.c (free_mem): Likewise.
7456 * iconv/gconv_cache.c (free_mem): Likewise.
7457 * intl/finddomain.c (free_mem): Likewise.
7458 * intl/dcigettext.c (free_mem): Likewise.
7459 * locale/setlocale.c (free_mem): Likewise.
7460 * misc/fstab.c (fstab_free): Likewise.
7461 * nss/nsswitch.c (free_mem): Likewise.
7462 * posix/regcomp.c (free_mem): Likewise.
7463 * resolv/gai_misc.c (free_res): Likewise.
7464 * stdlib/fmtmsg.c (free_mem): Likewise.
7465 * sunrpc/clnt_perr.c (free_mem): Likewise.
7466 * sysdeps/generic/setenv.c (free_mem): Likewise.
7467 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
7468 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
7469 * time/tzset.c (free_mem): Likewise.
7470 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
7471 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
7472 * malloc/set-freeres.c (__libc_freeres): Likewise.
7474 * login/getutent.c: Include stdlib.h instead of stddef.h.
7475 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
7476 (__getutent): Allocate buffer the first time it is run.
7477 * login/getutid.c: Include stdlib.h instead of stddef.h.
7478 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
7479 (__getutid): Allocate buffer the first time it is run.
7480 * login/getutline.c: Include stdlib.h instead of stddef.h.
7481 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
7482 (__getutline): Allocate buffer the first time it is run.
7483 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
7484 (mtrace): Allocate malloc_trace_buffer.
7485 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
7486 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
7487 * string/strerror.c: Include libintl.h and errno.h.
7488 (buf): New variable.
7489 (strerror): Only allocate buffer if actually needed (unknown error).
7490 * time/tzfile.c (transitions): Add libc_freeres_ptr.
7493 2002-10-25 Jakub Jelinek <jakub@redhat.com>
7495 * include/libc-symbols.h (libc_freeres_ptr): New macro.
7496 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
7498 (__libc_freeres): Free all pointers in that section.
7499 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
7500 commands when creating .lds script.
7501 (LDSEDCMD-c.so): New variable.
7502 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
7503 (rcmd_af): Use strdup to allocate ahostbuf.
7504 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
7505 (rexec_af): Use strdup to allocate ahostbuf.
7506 * stdio-common/reg-printf.c (printf_funcs): Remove.
7507 (__printf_arginfo_table): Change into printf_arginfo_function **.
7508 Add libc_freeres_ptr.
7509 (__register_printf_function): Allocate __printf_arginfo_table
7510 and __printf_function_table the first time it is called.
7511 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
7512 printf_arginfo_function **.
7513 (parse_one_spec): Add __builtin_expect.
7514 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
7516 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
7518 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
7519 (string_space, map): Add libc_freeres_ptr.
7521 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
7523 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
7525 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
7526 (buffer): Add libc_freeres_ptr.
7527 (free_mem): Remove for _LIBC.
7528 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
7530 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
7532 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
7534 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
7536 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
7538 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
7540 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
7543 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
7547 2002-10-30 Jakub Jelinek <jakub@redhat.com>
7549 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
7550 instead of duplicating the whole function in libc.
7552 2002-10-31 Roland McGrath <roland@redhat.com>
7554 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
7555 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
7557 2002-10-30 Jakub Jelinek <jakub@redhat.com>
7559 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
7560 32bit-predefine when creating .new32 list and -U for each
7561 32bit-predefine when creating .new64 list.
7562 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
7564 2002-10-29 Andreas Schwab <schwab@suse.de>
7566 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
7567 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
7569 2002-10-25 Roland McGrath <roland@redhat.com>
7571 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
7572 * sysdeps/unix/sysv/linux/configure: Regenerated.
7574 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
7575 _dl_starting_up decl.
7577 2002-10-20 H.J. Lu <hjl@gnu.org>
7579 * sysdeps/unix/sysv/linux/configure.in: Don't check
7580 /lib/modules/`uname -r`/build/include for kernel headers if
7582 * sysdeps/unix/sysv/linux/configure: Regenerated.
7584 2002-10-25 Roland McGrath <roland@redhat.com>
7586 * math/math.h (M_LOG2El): Correct the value.
7587 From Stephen L Moshier <steve@moshier.net>.
7589 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
7590 conditional from __libc_multiple_libcs access. Remove kludge for weak
7591 symbol access with old compilers we no longer support.
7592 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
7593 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
7595 2002-10-25 Roland McGrath <roland@redhat.com>
7597 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
7598 implement SV_RESETHAND by translating it to SA_RESETHAND.
7600 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
7602 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
7603 type on ELF64 platforms.
7605 2002-10-24 Ulrich Drepper <drepper@redhat.com>
7607 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
7609 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
7611 2002-10-24 Jakub Jelinek <jakub@redhat.com>
7613 * elf/dl-misc.c: Include <sysdep.h>.
7614 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
7616 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
7617 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
7618 (INLINE_SYSCALL): Use that.
7619 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
7620 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
7621 (INLINE_SYSCALL): Use that.
7622 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
7623 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
7624 (INLINE_SYSCALL): Use that.
7625 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
7627 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
7628 (__INTERNAL_SYSCALL_STRING): Define.
7629 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
7631 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
7632 (__INTERNAL_SYSCALL_STRING): Define.
7633 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
7634 __SYSCALL_STRING to inline_syscall*.
7635 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
7637 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
7638 inline_syscall4, inline_syscall5, inline_syscall6): Add string
7641 2002-10-24 Roland McGrath <roland@redhat.com>
7643 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
7644 * sysdeps/unix/sysv/linux/init-first.c: Not here.
7645 * sysdeps/powerpc/elf/libc-start.c: Or here.
7646 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
7647 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
7648 * sysdeps/unix/sysv/aix/init-first.c: Or here.
7649 * sysdeps/generic/libc-start.c: Or here.
7650 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
7651 access with [! SHARED].
7652 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
7654 * libio/bug-wfflush.c: New file.
7655 * libio/Makefile (tests): Add bug-wfflush.
7657 2002-10-23 Roland McGrath <roland@redhat.com>
7659 * stdio-common/tst-fphex.c: New file.
7660 * stdio-common/Makefile (tests): Add tst-fphex.
7661 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
7662 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
7663 chars always before the value digits.
7664 Reported by James Antill <james.antill@redhat.com>.
7666 2002-10-24 Jakub Jelinek <jakub@redhat.com>
7668 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
7669 (free_mem): New function.
7670 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
7671 if not cross compiling.
7672 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
7673 (bug-regex14-ENV): Set.
7674 (bug-regex14-mem): New target.
7675 * posix/bug-regex14.c: New file.
7677 2002-10-23 Roland McGrath <roland@redhat.com>
7679 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
7680 target, so we don't touch it when the link fails.
7682 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
7683 Check for the result overflowing off_t and fail with EOVERFLOW.
7684 * libio/ioftell.c (_IO_ftell): Likewise.
7685 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
7687 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
7688 use a temporary timeval on the stack for gettimeofday and copy it.
7689 * login/logout.c (logout): Likewise.
7690 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
7692 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
7693 Use __SWORD_TYPE instead of int for member types.
7694 (struct statfs64): Likewise.
7695 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
7696 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
7697 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
7698 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
7699 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
7701 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
7702 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
7703 (ST_NODIRATIME): Restore fixed value of 2048.
7704 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
7705 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
7707 Rearranged <bits/types.h> definitions to reduce duplication.
7708 * sysdeps/generic/bits/types.h: Rewritten, using macros from
7709 <bits/wordsize.h> and new header <bits/typesizes.h>.
7710 * posix/Makefile (headers): Add bits/typesizes.h here.
7711 * sysdeps/generic/bits/typesizes.h: New file.
7712 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
7713 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
7714 * sysdeps/mach/hurd/bits/typesizes.h: New file.
7715 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
7716 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
7717 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
7718 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
7719 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
7720 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
7721 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
7722 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
7723 <bits/pthreadtypes.h> here, not in <bits/types.h>.
7724 * signal/signal.h: Likewise.
7726 * streams/stropts.h: Include <bits/xtitypes.h>.
7727 * streams/Makefile (headers): Add bits/xtitypes.h here.
7728 * sysdeps/generic/bits/xtitypes.h: New file.
7729 * sysdeps/s390/bits/xtitypes.h: New file.
7730 * sysdeps/ia64/bits/xtitypes.h: New file.
7731 * sysdeps/x86_64/bits/xtitypes.h: New file.
7733 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
7734 * sysdeps/generic/bits/ipctypes.h: New file.
7735 * sysdeps/mips/bits/ipctypes.h: New file.
7736 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
7737 * sysdeps/gnu/bits/msq.h: Likewise.
7738 * sysvipc/sys/ipc.h: Likewise.
7740 2002-10-22 Ulrich Drepper <drepper@redhat.com>
7742 * elf/dl-load.c (struct filebuf): For buf element to have the
7743 alignment of ElfXX_Ehdr since this is what will be stored in it.
7745 2002-10-22 Jakub Jelinek <jakub@redhat.com>
7747 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
7748 into pointer to locrec_offset.
7749 (add_locale_to_archive): Adjust callers. Free normalized_name right
7750 before returning, not immediately after add_locale, pass it to
7751 add_alias if not NULL instead of name. Rename second normalized_name
7752 occurence to nnormalized_codeset_name.
7754 * locale/programs/locarchive.c (enlarge_archive): Make sure
7755 string_size is always a multiple of 4.
7756 Reported by Andreas Schwab <schwab@suse.de>.
7758 2002-10-21 Andreas Schwab <schwab@suse.de>
7760 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
7761 caller to EXTRA instead of execve, since the latter has a
7762 higher-priority implementation in linuxthreads.
7764 2002-10-21 Roland McGrath <roland@redhat.com>
7766 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
7767 slotinfo list's len member to the proper size, not just 1.
7768 Initialize static_map.l_tls_initimage.
7770 * elf/dl-open.c (dl_open_worker): Fix loop searching for
7771 dtv_slotinfo_list element containing new modules' l_tls_modid.
7773 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
7774 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
7775 * elf/Makefile (tests): Add tst-tls9.
7776 (tests-static): Add tst-tls9-static.
7777 (tst-tls9-static-ENV): New variable.
7778 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
7780 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
7781 modids used by partially loaded modules being closed can't be known.
7783 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
7785 * posix/Makefile: Add a test case for the bug reported by Aharon
7786 Robbins <arnold@skeeve.com>.
7787 * posix/bug-regex13.c: New file.
7788 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
7790 2002-10-21 Ulrich Drepper <drepper@redhat.com>
7792 * csu/gmon-start.c: Pretty printing.
7794 2002-10-19 Art Haas <ahaas@neosoft.com>
7796 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
7797 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
7798 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
7799 * configure: Regenerated.
7801 2002-10-19 Roland McGrath <roland@redhat.com>
7803 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
7804 and then set $subdirs directly, because the new Autoconf breaks
7805 compatibility in every way imaginable and insists on whining
7806 about usage that worked since the dawn of time.
7807 * configure: Regenerated.
7809 * configure: Regenerated (using Autoconf 2.54).
7810 * sysdeps/alpha/elf/configure: Likewise.
7811 * sysdeps/generic/configure: Likewise.
7812 * sysdeps/i386/elf/configure: Likewise.
7813 * sysdeps/ia64/elf/configure: Likewise.
7814 * sysdeps/mach/hurd/configure: Likewise.
7815 * sysdeps/mach/configure: Likewise.
7816 * sysdeps/unix/configure: Likewise.
7817 * sysdeps/unix/common/configure: Likewise.
7818 * sysdeps/unix/sysv/aix/configure: Likewise.
7819 * sysdeps/unix/sysv/linux/configure: Likewise.
7820 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
7821 * sysdeps/x86_64/elf/configure: Likewise.
7823 * config.make.in: Nix completely-soft nonsense.
7824 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
7825 of machine directories instead of fpu subdirectory.
7826 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
7827 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
7828 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
7829 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
7830 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
7831 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
7832 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
7833 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
7834 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
7835 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
7836 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
7837 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
7838 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
7839 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
7840 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
7841 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
7842 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
7843 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
7844 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
7845 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
7846 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
7847 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
7848 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
7849 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
7850 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
7851 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
7852 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
7853 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
7854 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
7855 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
7856 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
7857 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
7858 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
7859 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
7860 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
7861 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
7862 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
7863 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
7864 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
7865 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
7867 2002-10-19 Bruno Haible <bruno@clisp.org>
7869 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
7871 2002-10-18 Roland McGrath <roland@redhat.com>
7873 * io/Makefile (routines): Add lchmod.
7874 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
7875 * sysdeps/generic/lchmod.c: New file.
7876 * sysdeps/mach/hurd/lchmod.c: New file.
7877 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
7879 2002-10-18 Art Haas <ahaas@neosoft.com>
7881 * configure.in: Remove remaining AC_FD_CC macros, and replace
7882 AC_FD_MSG with AS_MESSAGE_FD.
7884 2002-10-18 Roland McGrath <roland@redhat.com>
7886 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
7887 typos: VALUE -> FINALADDR.
7889 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
7890 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
7891 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
7892 (inline_syscall6): Move these macros ...
7893 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
7895 * configure.in (libc_link_dests, libc_link_sources): Remove these
7896 variables and the AC_LINK_FILES call.
7898 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
7899 change to put new symbols here instead of in GLIBC_2.2.
7900 * sysdeps/powerpc/Subdirs: Move this file ...
7901 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
7903 2002-10-07 Roland McGrath <roland@redhat.com>
7905 * sysdeps/generic/bits/time.h: Replaced with contents of the
7906 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
7907 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
7908 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
7909 macros is ok even for architectures that don't now implement them.
7910 * sysdeps/mach/hurd/bits/time.h: File removed.
7911 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
7912 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
7913 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
7914 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
7915 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
7917 2002-10-18 Jeff Bailey <jbailey@gnu.org>
7919 * configure.in: Replace obsolete AC_OUTPUT syntax with
7920 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
7922 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
7923 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
7925 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
7926 * sysdeps/alpha/elf/configure.in: Likewise.
7927 * sysdeps/i386/elf/configure.in: Likewise.
7928 * sysdeps/mach/hurd/configure.in: Likewise.
7929 * sysdeps/x86_64/elf/configure.in: Likewise.
7931 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
7933 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
7934 * sysdeps/generic/configure.in: Likewise.
7935 * sysdeps/i386/elf/configure.in: Likewise.
7936 * sysdeps/ia64/elf/configure.in: Likewise.
7937 * sysdeps/mach/configure.in: Likewise.
7938 * sysdeps/mach/hurd/configure.in: Likewise.
7939 * sysdeps/unix/configure.in: Likewise.
7940 * sysdeps/unix/common/configure.in: Likewise.
7941 * sysdeps/unix/sysv/aix/configure.in: Likewise.
7942 * sysdeps/unix/sysv/linux/configure.in: Likewise.
7943 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
7944 * sysdeps/x86_64/elf/configure.in: Likewise.
7946 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
7947 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
7948 that it's obvious when extra autoconf machinery is being dragged in.
7950 2002-10-18 Roland McGrath <roland@redhat.com>
7952 * configure.in: Remove bogus echo included in
7953 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
7954 * configure: Regenerated.
7956 2002-10-18 Jakub Jelinek <jakub@redhat.com>
7958 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
7959 (statfs_filesize_max): New function.
7960 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
7961 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
7962 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
7963 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
7964 statfs_filesize_max.
7965 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
7966 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
7967 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
7969 2002-10-17 Roland McGrath <roland@redhat.com>
7971 * configure.in (MIG): Just AC_SUBST it here.
7972 * configure: Regenerated.
7973 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
7974 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
7975 * sysdeps/mach/configure: Regenerated.
7977 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
7978 and AC_PROVIDE([_AS_CR_PREPARE]).
7980 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
7981 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
7983 * elf/dl-support.c: Move _dl_tls_* variables to ...
7984 * sysdeps/generic/libc-tls.c: ... here.
7986 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
7987 allow IDX to be one past the current last slotinfo entry.
7988 (_dl_close): Pass IMAP->l_init_called for that parameter.
7990 2002-10-07 Andreas Schwab <schwab@suse.de>
7992 * aclocal.m4: Fix for autoconf 2.53.
7993 * configure.in: Likewise. Require autoconf 2.53.
7995 2002-10-08 Richard Henderson <rth@redhat.com>
7997 * soft-fp/op-4.h: Handle carry correctly in
7998 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
7999 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
8000 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
8002 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
8004 * configure.in: Compute completely-soft.
8005 * config.make.in: Make completely-soft available to sub-makes.
8006 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
8007 gcc-double-routines. Add sim-full.c. Add fenv_const and
8008 fe_nomask to libm-support.
8009 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
8010 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
8011 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
8012 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
8013 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
8014 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
8015 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
8016 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
8017 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
8018 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
8019 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
8020 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
8021 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
8022 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
8023 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
8024 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
8025 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
8026 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
8027 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
8028 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
8030 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
8031 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
8032 FP_HANDLE_EXCEPTIONS.
8033 Define FP_ROUNDMODE.
8034 Redefine FP_* macros to correspond to the FE_* bit positions.
8035 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
8036 Define externs for __sim_exceptions, __sim_disabled_exceptions,
8037 __sim_round_mode, __simulate_exceptions.
8038 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
8039 * sysdeps/powerpc/bits/fenv.h: ...to here.
8041 2002-10-06 Jakub Jelinek <jakub@redhat.com>
8043 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
8044 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
8045 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
8046 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
8049 2002-10-15 Jakub Jelinek <jakub@redhat.com>
8051 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
8052 __libc_res_nsend): New prototypes.
8053 * resolv/res_query.c (QUERYSIZE): Define.
8054 (__libc_res_nquery): Renamed from res_nquery. Added answerp
8055 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
8056 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
8057 res_nsend, pass answerp.
8058 (res_nquery): Changed into wrapper around __libc_res_nquery.
8059 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
8060 argument. Call __libc_res_nquerydomain and __libc_res_nquery
8061 instead of the non-__libc_ variants, pass them answerp.
8062 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
8063 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
8064 Added answerp argument. Call __libc_res_nquery instead of
8065 res_nquery, pass answerp.
8066 (res_nquerydomain): Changed into wrapper around
8067 __libc_res_nquerydomain.
8068 * resolv/res_send.c: Include sys/ioctl.h.
8069 (MAXPACKET): Define.
8070 (send_vc): Change arguments. Reallocate answer buffer if it is
8072 (send_dg): Likewise.
8073 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
8074 Reallocate answer buffer if it is too small and hooks are in use.
8075 Adjust calls to send_vc and send_dg.
8076 (res_nsend): Changed into wrapper around __libc_res_nsend.
8077 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
8078 just 1K answer buffer on the stack, use __libc_res_nsearch instead
8080 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
8081 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
8082 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
8083 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
8084 (gethostbyaddr): Similarly with __libc_res_nquery.
8085 * resolv/Versions (libresolv): Export __libc_res_nquery and
8086 __libc_res_nsearch at GLIBC_PRIVATE.
8088 2002-10-17 Roland McGrath <roland@redhat.com>
8090 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
8091 * configure: Regenerated.
8093 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
8094 before performing the reloc, not after.
8095 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
8097 2002-10-17 Ulrich Drepper <drepper@redhat.com>
8099 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
8100 * locale/programs/linereader.c (lr_open): Likewise.
8101 * locale/programs/charmap-dir.c (charmap_open): Likewise.
8102 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
8104 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
8106 * posix/bug-regex11.c: Add a test case for the bug reported by
8107 Paolo Bonzini <bonzini@gnu.org>.
8108 * posix/regexec.c (sift_states_bkref): Use correct destination of
8111 2002-10-17 Roland McGrath <roland@redhat.com>
8113 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
8114 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
8115 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
8116 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
8117 Call it after performing TPOFF relocs.
8118 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
8119 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
8120 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
8122 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
8123 when closing a partially-initialized object.
8125 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
8126 instead of _dl_fatal_printf when we see PT_TLS.
8128 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
8129 instead of $(libof-$<).
8131 2002-10-16 Roland McGrath <roland@redhat.com>
8133 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
8134 instead of += to append, to be sure $(lib) gets expanded at defn time.
8135 (libof-$(cpp-src)): New variable, define this instead.
8136 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
8137 (lib): Don't use override.
8138 (CPPFLAGS-$(lib)): New variable, put -D's here.
8139 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
8140 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
8141 LIB found by $(libof-*) for basename, target, or source.
8142 * Makerules (CPPFLAGS-nonlib): New variable.
8143 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
8144 * locale/Makefile (lib): Likewise.
8145 * sunrpc/Makefile (lib): Likewise.
8147 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
8148 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
8149 * sysdeps/unix/sysv/linux/pathconf.h: New file.
8150 (statfs_link_max): New function, guts from fpathconf.c.
8151 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
8152 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
8153 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
8154 to use the linux/pathconf.c code by #include rather than duplication.
8155 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
8157 2002-10-16 Jakub Jelinek <jakub@redhat.com>
8159 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
8160 Use __libc_errno only for libc itself.
8162 2002-10-16 Andreas Jaeger <aj@suse.de>
8164 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
8166 2002-10-16 Ulrich Drepper <drepper@redhat.com>
8168 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
8169 Use __libc_errno only for libc itself.
8171 2002-10-15 Roland McGrath <roland@redhat.com>
8172 Jakub Jelinek <jakub@redhat.com>
8174 * sysdeps/unix/sysv/linux/Makefile
8175 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
8176 sparc/Makefile to produce a bi-arch file as needed.
8177 That's now parameterized by the variable $(64bit-predefine).
8178 Use LC_ALL=C for `comm' commands in that rule.
8179 No longer conditional on [$(no_syscall_list_h)].
8180 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
8181 (64bit-predefine): New variable.
8182 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
8183 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
8184 * sysdeps/unix/sysv/linux/powerpc/Makefile
8185 (64bit-predefine): New variable.
8187 2002-10-15 Roland McGrath <roland@redhat.com>
8189 * sysdeps/unix/sysv/linux/Makefile
8190 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
8192 * login/utmp-private.h: Declare __libc_utmp_lock.
8193 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
8194 and call __libc_utmp_jump_table functions directly, instead of using
8197 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
8198 * sysdeps/unix/sysv/linux/configure: Regenerated.
8200 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
8201 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
8202 Use int32_t for ll_time.
8203 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
8204 Use int32_t instead of long int for ut_session.
8205 Use an anonymous struct with 32-bit fields for ut_tv.
8206 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
8207 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
8208 here as in utmp.h for `struct utmp'.
8209 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
8210 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
8211 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
8212 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
8213 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
8214 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
8216 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
8217 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
8218 All the following files were identical or equivalent to it.
8219 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
8220 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
8221 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
8222 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
8223 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
8224 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
8225 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
8226 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
8227 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
8228 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
8230 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
8231 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
8232 Other than the previously incorrect sign of msg_iovlen, this is a
8233 no-op on 32-bit platforms. On 64-bit platforms it makes this header
8234 match their layouts as well, so the following are now identical to it.
8235 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
8236 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
8237 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
8238 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
8239 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
8241 2002-10-15 Ulrich Drepper <drepper@redhat.com>
8243 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
8244 Define for 2.4+ kernels.
8246 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
8247 are known to have the vfork syscall. Don't confuse the CPUs
8248 branch prediction unit by jumping to the return address.
8250 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
8251 support for reiserfs and xfs.
8253 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
8255 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
8257 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
8259 2002-10-16 Jakub Jelinek <jakub@redhat.com>
8261 * include/libc-symbols.h (attribute_tls_model_ie): Define.
8262 * include/errno.h (errno): Define to __libc_errno in libc.so.
8263 Add attribute_tls_model_ie.
8264 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
8265 Add attribute_tls_model_ie.
8266 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
8267 attribute_tls_model_ie.
8268 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
8270 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
8272 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
8273 attribute_tls_model_ie.
8274 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
8276 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
8277 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
8278 __libc_errno in USE___THREAD case.
8279 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
8281 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
8282 __attribute__((tls_model (""))).
8283 * configure: Rebuilt.
8284 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
8286 2002-10-15 Ulrich Drepper <drepper@redhat.com>
8288 * timezone/asia: Update from tzdata2002d.
8289 * timezone/australasia: Likewise.
8290 * timezone/iso3166.tab: Likewise.
8291 * timezone/southamerica: Likewise.
8292 * timezone/zone-tab: Likewise.
8294 2002-10-15 Roland McGrath <roland@redhat.com>
8296 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
8297 Adjust TCB pointer before calling free, so we get the whole block.
8299 2002-10-14 Roland McGrath <roland@redhat.com>
8301 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
8302 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
8303 extern using attribute_hidden instead of static, avoids warning.
8305 2002-10-09 Jakub Jelinek <jakub@redhat.com>
8307 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
8308 * sysdeps/unix/sysv/linux/configure: Rebuilt.
8310 2002-10-14 Ulrich Drepper <drepper@redhat.com>
8312 * po/sv.po: Update from translation team.
8314 2002-10-12 H.J. Lu <hjl@gnu.org>
8316 * sunrpc/thrsvc.c (PROCQUIT): New.
8317 (struct rpc_arg): New.
8318 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
8319 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
8320 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
8321 (main): Modified for struct rpc_arg *.
8323 2002-10-14 Ulrich Drepper <drepper@redhat.com>
8325 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
8327 2002-10-14 Jakub Jelinek <jakub@redhat.com>
8329 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
8330 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
8331 in ld.so even if __thread is supported.
8333 2002-10-13 Jakub Jelinek <jakub@redhat.com>
8335 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
8336 Add hack to prevent the compiler from clobbering the signal context.
8337 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
8339 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
8342 2002-10-14 Andreas Jaeger <aj@suse.de>
8344 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
8345 Guido Guenther <agx@sigxcpu.org>.
8347 2002-10-14 Ulrich Drepper <drepper@redhat.com>
8349 * po/sk.po: Update from translation team.
8351 2002-09-26 Roland McGrath <roland@redhat.com>
8353 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
8355 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
8356 DL_DST_LIB based on $(slibdir).
8358 2002-10-13 Roland McGrath <roland@frob.com>
8360 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
8362 * sysdeps/mach/hurd/getresuid.c: New file.
8363 * sysdeps/mach/hurd/getresgid.c: New file.
8364 * sysdeps/mach/hurd/setresuid.c: New file.
8365 * sysdeps/mach/hurd/setresgid.c: New file.
8367 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
8368 setresgid): Declare them.
8371 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
8372 add libc_hidden_proto.
8373 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
8374 getresuid, getresgid, setresuid, setresgid here.
8375 * Versions.def (libc): Define GLIBC_2.3.2 set.
8376 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
8377 Add libc_hidden_def.
8378 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
8379 * sysdeps/generic/setresgid.c: New file.
8380 * sysdeps/generic/setresuid.c: New file.
8381 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8382 (sysdep_routines): Don't add getresuid and getresgid here.
8383 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
8384 (sysdep_routines): Don't add setresuid and setresgid here.
8385 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
8386 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
8387 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
8388 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
8389 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8390 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
8391 * posix/Makefile (routines): Add them all here instead.
8392 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
8393 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
8394 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
8395 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
8396 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
8397 [! __NR_setresuid]: Include generic file.
8398 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
8399 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
8400 [! __NR_setresuid]: Include generic file.
8401 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
8402 Caller is - now, not EXTRA.
8403 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
8404 (setresuid, setresgid, getresuid, getresgid): Likewise.
8405 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
8406 Add these calls here.
8407 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
8408 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
8409 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
8410 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
8411 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
8412 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
8413 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
8414 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
8415 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
8417 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8418 (sysdep_routines): Add setfsuid and setfsgid here.
8419 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
8420 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
8421 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
8422 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
8423 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
8424 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
8425 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
8426 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
8428 * hurd/errno.c: Renamed to ...
8429 * hurd/errno-loc.c: ... this.
8430 * hurd/Makefile (routines): errno -> errno-loc
8432 2002-10-13 Ulrich Drepper <drepper@redhat.com>
8434 * po/de.po: Update from translation team.
8436 * MakeTAGS: Add -E flag to xgettext runs.
8438 2002-10-12 Ulrich Drepper <drepper@redhat.com>
8440 * po/fr.po: Update from translation team.
8442 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
8443 Optimize a bit for use in glibc.
8445 2002-10-12 Roland McGrath <roland@redhat.com>
8447 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
8448 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
8450 2002-10-12 Ulrich Drepper <drepper@redhat.com>
8452 * po/sv.po: Update from translation team.
8454 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
8456 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
8458 (regfree): Likewise.
8459 (create_initial_state): Likewise.
8460 (analyze): Remove the substitutions which became useless.
8461 (calc_first): Likewise.
8462 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
8463 epsilon destination.
8464 (duplicate_node_closure): New function.
8465 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
8466 (calc_inveclosure): Likewise.
8467 (calc_eclosure): Likewise.
8468 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
8469 direct invocation of duplicate_node.
8470 (parse): Don't use comma operator in the return to avoid compiler
8472 (parse_reg_exp): Likewise.
8473 (parse_branch): Likewise.
8474 (parse_expression): Likewise.
8475 (parse_sub_exp): Likewise.
8476 (parse_dup_op): Likewise.
8477 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
8478 which became useless.
8479 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
8480 (create_cd_newstate): Likewise.
8481 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
8482 (re_token_t): Likewise.
8483 (re_dfa_t): Likewise.
8484 (re_node_set_remove): New macro.
8485 * posix/regexec.c (check_matching): Remove the handling
8487 (check_halt_node_context): Likewise.
8488 (proceed_next_node): Likewise.
8489 (pop_fail_stack): Fix the memory leak.
8490 (set_regs): Likewise.
8491 (free_fail_stack_return): New function.
8492 (sift_states_backward): Fix the memory leak. Remove the handling
8494 (update_cur_sifted_state): Append some if clause to avoid redundant
8496 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
8498 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
8499 (check_subexp_limits): Likewise.
8500 (search_subexp): Likewise.
8501 (sift_states_bkref): Likewise.
8502 (transit_state_mb): Likewise.
8503 (transit_state_bkref_loop): Likewise.
8504 (transit_state_bkref_loop): Likewise.
8505 (group_nodes_into_DFAstates): Likewise.
8506 (check_node_accept): Likewise.
8507 (sift_ctx_init): Add initializing.
8509 2002-10-12 Ulrich Drepper <drepper@redhat.com>
8511 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
8514 2002-10-11 Ulrich Drepper <drepper@redhat.com>
8516 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
8517 duplicated variable c.
8519 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
8522 * sysdeps/unix/sysv/linux/i386/sysdep.h
8523 (INTERNAL_SYSCALL_ERROR_P): New define.
8524 (INTERNAL_SYSCALL_ERRNO): Likewise.
8526 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
8527 Add hack to prevent the compiler from clobbering the signal context.
8529 2002-10-11 Roland McGrath <roland@redhat.com>
8531 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
8534 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
8535 * sysdeps/sh/dl-lookupcfg.h: File removed.
8536 * sysdeps/i386/dl-lookupcfg.h: File removed.
8538 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
8539 missing labels and ; from last change.
8541 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
8542 number literals, so they are doubles instead of ints.
8544 2002-10-09 Roland McGrath <roland@redhat.com>
8546 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
8547 changed from [USE_TLS && HAVE___THREAD].
8549 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
8550 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
8551 * sysdeps/x86_64/dl-machine.h
8552 (elf_machine_type_class, elf_machine_rela): Likewise.
8553 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
8556 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
8557 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
8558 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
8560 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
8561 instead of ___tls_get_addr.
8562 (___tls_get_addr_internal): Add attribute_hidden to decl.
8564 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
8565 _dl_error_catch_tsd.
8566 * elf/rtld.c (startup_error_tsd): New function.
8567 (dl_main): Point _dl_error_catch_tsd at that.
8568 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
8569 use new function pointer instead.
8570 * elf/dl-tsd.c: New file.
8571 * elf/Makefile (routines): Add it.
8573 2002-10-07 Roland McGrath <roland@redhat.com>
8575 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
8576 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
8577 take _dl_load_lock around calling __writev.
8579 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
8580 (INLINE_SYSCALL): Use that.
8582 * sysdeps/generic/dl-sysdep.h: New file.
8583 * sysdeps/mach/hurd/dl-sysdep.h: New file.
8584 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
8585 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
8586 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
8588 * elf/dl-minimal.c (__errno_location): Removed.
8589 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
8590 Use GOTOFF access for errno.
8591 * sysdeps/unix/sysv/linux/i386/sysdep.h
8592 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
8594 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
8595 Use PC-relative access for errno.
8596 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8597 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
8599 * include/tls.h: New file.
8600 (USE___THREAD): New macro.
8601 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
8603 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
8604 changed from [USE_TLS && HAVE___THREAD].
8605 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8606 * sysdeps/unix/i386/sysdep.S: Likewise.
8607 * sysdeps/unix/x86_64/sysdep.S: Likewise.
8608 * include/errno.h: Likewise.
8609 * include/netdb.h: Likewise.
8610 * include/resolv.h: Likewise.
8612 * sysdeps/generic/errno.c: New file.
8613 * csu/Makefile (aux): New variable, list errno.
8614 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
8615 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
8616 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
8617 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
8618 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
8619 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
8620 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
8621 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
8622 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
8623 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
8624 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
8625 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
8626 * sysdeps/unix/alpha/sysdep.S: Likewise.
8627 * sysdeps/generic/start.c: Likewise.
8628 * sysdeps/unix/start.c: Likewise.
8629 * sysdeps/unix/arm/start.c: Likewise.
8630 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
8631 * sysdeps/unix/sparc/start.c: Likewise.
8632 * sysdeps/unix/sysv/irix4/start.c: Likewise.
8633 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
8635 * manual/search.texi (Tree Search Function, Hash Search Function):
8636 Mention search.h clearly.
8638 2002-10-05 Roland McGrath <roland@redhat.com>
8640 * elf/dl-fxstat64.c: File removed.
8641 * elf/dl-xstat64.c: File removed.
8642 * elf/Makefile (rtld-routines): Remove them.
8643 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
8644 Instead, use strong_alias instead of versioned_symbol in the
8646 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
8647 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
8649 * include/shlib-compat.h
8650 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
8651 [! NOT_IN_libc] (IS_IN_libc): Define it.
8652 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
8653 * elf/Makefile (CPPFLAGS-.os): Likewise.
8655 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
8656 Return the status instead of calling exit.
8658 * Makeconfig (CFLAGS): Prepend -std=gnu99.
8659 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
8660 Remove superfluous rm command, whose @ plus make bugs hid
8661 all these commands from the make output.
8663 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
8664 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
8665 Use that file's contents instead of literal echo's for the prologue.
8666 * include/features.h: Include <gnu/stubs.h> unconditionally.
8667 * include/gnu/stubs.h: New file.
8669 2002-09-30 Roland McGrath <roland@redhat.com>
8671 * elf/rtld-Rules: New file.
8672 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
8673 $(objpfx)rtld-libc.a): New targets.
8674 (generated): Add them.
8675 (reloc-link): Remove -o $@ from the variable.
8676 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
8677 (distribute): Add rtld-Rules.
8678 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
8679 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
8680 (common-mostlyclean, common-clean): Clean up rtld-* files.
8681 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
8683 2003-05-20 Jakub Jelinek <jakub@redhat.com>
8685 * elf/dynamic-link.h (elf_get_dynamic_info): Add temp argument.
8686 If temp != NULL, copy dynamic entries which need relocation to temp
8687 array before relocating.
8688 (DL_RO_DYN_TEMP_CNT): Define.
8689 * elf/dl-load.c (_dl_map_object_from_fd): Adjust caller.
8690 * elf/rtld.c (_dl_start): Likewise.
8691 (dl_main): Likewise. Add dyn_temp static variable.
8693 2002-10-11 Roland McGrath <roland@redhat.com>
8695 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
8696 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
8698 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
8699 proper set of no-op insn prefixes.
8701 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
8703 2002-10-11 Ulrich Drepper <drepper@redhat.com>
8705 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
8706 __pthread_kill_other_threads_np.
8708 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
8710 2002-10-08 Roland McGrath <roland@redhat.com>
8712 * locale/newlocale.c (__newlocale): If setting all categories to "C",
8713 just return &_nl_C_locobj instead of copying it.
8714 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
8715 * locale/duplocale.c (__duplocale): Likewise.
8717 2002-10-07 Roland McGrath <roland@frob.com>
8719 * config.h.in (HAVE_I386_SET_GDT): New #undef.
8720 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
8721 * sysdeps/mach/configure: Regenerated.
8723 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8725 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
8726 Add all necessary register outputs for syscall-clobbered registers.
8728 2002-10-02 David Mosberger <davidm@hpl.hp.com>
8730 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
8731 Itanium 2 (and Itanium).
8732 Fix unwind directives and make it fit in 80 columns.
8733 * sysdeps/ia64/memset.S: Likewise.
8734 * sysdeps/ia64/memcpy.S: Likewise.
8735 Move jump table to .rodata section.
8737 2002-10-03 Roland McGrath <roland@frob.com>
8739 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
8742 2002-10-10 Andreas Jaeger <aj@suse.de>
8744 * sysdeps/x86_64/_mcount.S: Restore correct registers.
8746 2002-10-10 Ulrich Drepper <drepper@redhat.com>
8748 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
8750 2002-10-09 Ulrich Drepper <drepper@redhat.com>
8752 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
8753 _dl_allocate_tls_init. Add rtld_hidden_proto.
8754 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
8756 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
8758 * version.h (VERSION): Bump to 2.3.1.
8760 * Make-dist: Add back one of the tar invocations removed before.
8762 * stdlib/Makefile (distribute): Add allocalim.h.
8764 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
8765 (__libc_tsd_address): Use correct variable name.
8766 Patch by Stefan Jones <stefan.jones@multigig.com>.
8768 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
8769 Reported by edwardsg@sgi.com [PR libc/4678].
8771 * Versions.def (libc): Add GLIBC_2.3.1.
8772 (libpthread): Add GLIBC_2.3.1.
8774 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
8776 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
8777 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
8779 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
8780 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
8782 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
8783 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
8784 and make old name an alias.
8785 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
8786 and make old name an alias.
8787 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
8790 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
8791 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
8793 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
8795 * sysdeps/posix/readv.c: Likewise
8796 * sysdeps/unix/sysv/aix/readv.c: Likewise.
8797 * sysdeps/unix/sysv/linux/readv.c: Likewise.
8798 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
8800 * sysdeps/posix/writev.c: Likewise
8801 * sysdeps/unix/sysv/aix/writev.c: Likewise.
8802 * sysdeps/unix/sysv/linux/writev.c: Likewise.
8804 * include/sys/wait.h: Declare __waitid.
8805 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
8806 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
8808 * sysdeps/posix/waitid.c: Likewise.
8809 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
8811 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
8813 2002-10-07 Jakub Jelinek <jakub@redhat.com>
8815 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
8817 (__MAX_ALLOCA_CUTOFF): Define.
8818 Include allocalim.h.
8819 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
8820 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
8821 host_buffer depending on __libc_use_alloca.
8822 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
8823 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
8824 net_buffer depending on __libc_use_alloca.
8825 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
8826 buf depending on __libc_use_alloca.
8827 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
8828 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
8829 instead of hardcoded constants.
8830 Pass proper size argument to alloca and compute end for wide char
8832 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
8833 instead of hardcoded constants.
8834 * string/strcoll.c (strcoll): Likewise.
8835 * string/strxfrm.c (strxfrm): Likewise.
8836 * sysdeps/posix/readv.c (__readv): Likewise.
8837 * sysdeps/posix/writev.c (__writev): Likewise.
8838 * sysdeps/generic/allocalim.h: New file.
8840 2002-10-08 Roland McGrath <roland@redhat.com>
8842 * configure.in (aux_missing warning): Change "too old" to
8843 "incompatible versions", since for autoconf it's "too new" right now.
8844 * configure: Regenerated.
8846 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
8847 one found doesn't work on our configure.in.
8848 * configure: Regenerated.
8849 * config.make.in (AUTOCONF): New substituted variable.
8850 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
8851 (autoconf-it): ... here, use that instead of defining conditionally.
8852 Use $(AUTOCONF) instead of literal autoconf.
8853 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
8854 with this condition.
8855 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
8857 2002-10-08 Ulrich Drepper <drepper@redhat.com>
8859 * Make-dist (dist): Cleanup a bit. We are not interested in the
8860 14 char filename limit anymore. Remove intermediate files and
8863 2002-10-05 Ulrich Drepper <drepper@redhat.com>
8865 * po/sk.po: Update from translation team.
8866 * po/tr.po: Likewise.
8867 * po/gl.po: Likewise.
8869 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8871 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
8873 2002-10-03 Ulrich Drepper <drepper@redhat.com>
8875 * version.h (RELEASE): Change to stable.
8877 2002-10-03 Jakub Jelinek <jakub@redhat.com>
8879 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
8880 __syscall_exit_group): New prototypes.
8882 2002-10-03 Ulrich Drepper <drepper@redhat.com>
8884 * glibc 2.3 released.
8887 See ChangeLog.13 for earlier changes.