1 2003-03-15 Ulrich Drepper <drepper@redhat.com>
3 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
6 2003-03-15 Roland McGrath <roland@redhat.com>
8 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
9 * sysdeps/unix/sysv/linux/system.c: ... here.
10 (FORK): Don't #define if already #define'd.
11 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
12 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
13 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
15 * dlfcn/tst-dlinfo.c: New file.
16 * dlfcn/Makefile (tests): Add tst-dlinfo.
17 ($(objpfx)tst-dlinfo): New target.
19 * dlfcn/dlinfo.c: New file.
20 * dlfcn/Makefile (libdl-routines): Add it.
21 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
22 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
23 [__USE_GNU] (RTLD_DI_*): New enum constants.
24 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
25 * elf/dl-load.c (cache_rpath): New inline function.
26 (_dl_map_object): Use it.
27 (_dl_rtld_di_serinfo): New function.
28 * sysdeps/generic/ldsodefs.h: Declare it.
29 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
31 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
32 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
33 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
34 (__libc_start_main): Just call the generic one for most of the work.
36 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
37 static function by that name instead of BP_SYM (__libc_start_main).
38 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
39 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
40 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
42 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
43 Use this macro for extra AT_* cases.
44 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
45 New macro, guts from ...
46 (__aux_init_cache): ... here, function removed.
47 (DL_PLATFORM_INIT): Don't define this.
49 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
50 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
52 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
54 2003-03-14 Roland McGrath <roland@redhat.com>
56 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
58 2003-03-14 Jakub Jelinek <jakub@redhat.com>
60 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
62 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
63 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
65 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
67 * sysdeps/mips/fpu/bits/mathdef.h: New.
68 (__NO_LONG_DOUBLE_MATH): Define for o32.
70 * sysdeps/mips/sys/asm.h: Formatting changes.
71 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
72 (CPADD): Define for all of them.
73 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
74 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
75 NARGSAVE): Define per ABI spec.
76 (END): Don't redefine.
77 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
78 LONG_SRAV): Remove duplicate definitions.
79 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
80 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
81 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
82 (PTR_LA): Define for all 3 ABIs.
84 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
85 (elf_machine_matches_host): Prevent linking of o32 and n32
87 (elf_machine_dynamic): Document assumption on $gp.
88 (STRINGXP, STRINGXV, STRINGV_): New macros.
89 (elf_machine_load_address): Use them to stringize PTR_LA and
91 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
92 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
93 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
94 (__dl_runtime_resolve): Cast the symtab initializer to the
96 (RTLD_START): Use it. Adjust it for all 3 ABIs.
97 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
98 Handle 64-bit R_MIPS_REL composite relocation and accept
99 R_MIPS_64 relocations to shift addend size to 64 bits.
100 Document assumption regarding local GOT entries. Document
101 backward-compatibility departing from the ABI behavior in
102 applying relocations that reference section symbols, no longer
103 used. Support relocations to mis-aligned offsets.
104 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
106 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
108 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
109 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
110 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
111 restore_rt functions. Use them.
113 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
114 .set mips2 on new abis.
116 2003-03-13 Ulrich Drepper <drepper@redhat.com>
118 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
119 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
120 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
121 * sysdeps/posix/pathconf.c: Likewise.
122 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
123 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
124 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
126 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
129 2003-03-14 Alexandre Oliva <aoliva@redhat.com>
131 * include/gmp.h: Include/gmp-mparam.h.
132 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
135 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
136 ELF_MACHINE_NO_RELA is set.
137 * elf/rtld.c (dl_main): No prelink support for REL-only.
139 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
140 FLAG_MIPS64_LIBN64): Define.
141 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
143 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
144 * sysdeps/mips/memset.S: Likewise.
145 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
146 depending on the ABI.
148 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
149 Don't .set mips2 on new abi.
150 (compare_and_swap): Likewise. Support 64-bit longs on n64.
152 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
154 2003-03-13 Roland McGrath <roland@redhat.com>
156 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
157 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
159 2003-03-13 Alexandre Oliva <aoliva@redhat.com>
161 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
163 * stdlib/fpioconst.c: Likewise.
164 * stdlib/strtod.c: Likewise.
166 * sysdeps/mips/add_n.S: Use L macro for local labels.
167 * sysdeps/mips/addmul_1.S: Likewise.
168 * sysdeps/mips/lshift.S: Likewise.
169 * sysdeps/mips/memcpy.S: Likewise.
170 * sysdeps/mips/memset.S: Likewise.
171 * sysdeps/mips/mul_1.S: Likewise.
172 * sysdeps/mips/rshift.S: Likewise.
173 * sysdeps/mips/sub_n.S: Likewise.
174 * sysdeps/mips/submul_1.S: Likewise.
175 * sysdeps/mips/mips64/add_n.S: Likewise.
176 * sysdeps/mips/mips64/addmul_1.S: Likewise.
177 * sysdeps/mips/mips64/lshift.S: Likewise.
178 * sysdeps/mips/mips64/mul_1.S: Likewise.
179 * sysdeps/mips/mips64/rshift.S: Likewise.
180 * sysdeps/mips/mips64/sub_n.S: Likewise.
181 * sysdeps/mips/mips64/submul_1.S: Likewise.
182 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
183 conventions. Define END as in sys/asm.h.
184 * sysdeps/unix/mips/sysdep.S: Likewise.
185 * sysdeps/unix/mips/wait.S: Likewise.
186 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
188 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
189 Cast shifted values that may be too narrow to mp_limb_t.
190 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
192 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
194 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
195 (__mpn_extract_long_double): Likewise.
196 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
197 (__mpn_construct_long_double): Likewise.
198 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
199 (__mpn_extract_long_double): Likewise.
200 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
201 (__mpn_construct_long_double): Likewise.
203 2003-03-13 Roland McGrath <roland@redhat.com>
205 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
206 entries in the map file match too.
208 2003-03-13 Guido Guenther <agx@sigxcpu.org>
210 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
211 label .Lthread_start since current binutils don't allow branches
212 to globally visible symbols.
214 2003-03-13 Jakub Jelinek <jakub@redhat.com>
216 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
217 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
218 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
219 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
220 clobbered by the syscall.
221 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
222 ASM_ARGS_6): Change constraints from r to index of corresponding
224 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
225 ptid and ctid to match kernel.
226 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
228 2003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
230 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
231 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
232 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
234 2003-03-11 Roland McGrath <roland@redhat.com>
236 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
237 Check SYM_MAP rather than SYM as definedness check.
238 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
239 Don't handle R_PPC64_REL24 reloc.
240 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
242 * sysdeps/powerpc/powerpc64/dl-machine.h
243 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
244 block, so we cover all the TPREL16* flavors without 6 ||s.
245 [USE_TLS] (elf_machine_tprel): New function.
246 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
247 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
248 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
250 2003-03-11 Ralf Baechle <ralf@linux-mips.org>
252 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
253 instead of jalr to invoke subroutine so restoring the $gp register
256 2003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
258 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
259 to __NR_pread if not defined.
260 (__NR_pwrite64): Define to __NR_pwrite if not defined.
262 2003-03-11 Jakub Jelinek <jakub@redhat.com>
264 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
265 * sysdeps/unix/sysv/linux/kernel-features.h
266 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
269 2003-03-11 Jakub Jelinek <jakub@redhat.com>
271 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
272 allocate space even for the trailing '/'.
273 Reported by John Reiser <jreiser@BitWagon.com>.
275 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
276 ASM_CLOBBERS_6): Define.
277 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
278 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
279 to match IA-32 order.
280 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
282 2003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
284 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
285 Copy extra params for NPTL to registers used in clone syscall.
287 2003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
289 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
290 call names for pread and pwrite.
292 2003-03-10 Roland McGrath <roland@redhat.com>
294 * dlfcn/Makefile (libdl-routines): Add dladdr1.
295 * dlfcn/dladdr1.c: New file.
296 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
297 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
298 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
299 a const ElfNN_Sym ** to fill in.
300 * include/dlfcn.h: Update decl. Include <link.h>.
301 * dlfcn/dladdr.c (dladdr): Update caller.
302 * malloc/mtrace.c (tr_where): Likewise.
303 * sysdeps/generic/elf/backtracesyms.c: Likewise.
304 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
305 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
306 * Versions.def (libdl): Define GLIBC_2.3.3 set.
308 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
310 * sysdeps/unix/Makefile (compile-syscall): New variable.
311 Pass -g0 to compiler for assembling syscall stubs from stdin.
313 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
314 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
315 Define these to do nothing.
317 * configure.in: New check for -g on .S files.
318 * configure: Regenerated.
319 * config.make.in (have-cpp-asm-debuginfo): New variable.
320 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
321 * Makeconfig (ASFLAGS): New variable, if undefined and
322 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
323 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
325 2003-03-09 Roland McGrath <roland@redhat.com>
327 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
328 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
330 2003-03-09 Ulrich Drepper <drepper@redhat.com>
332 * po/fi.po: Update from translation team.
333 * po/ca.po: Likewise.
334 * po/da.po: Likewise.
336 2003-03-08 Ulrich Drepper <drepper@redhat.com>
338 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
340 2003-03-07 Ulrich Drepper <drepper@redhat.com>
342 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
344 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
346 2003-03-07 Roland McGrath <roland@redhat.com>
348 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
349 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
351 2003-03-04 Guido Guenther <agx@sigxcpu.org>
353 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
354 stubs, we have INLINE_SYSCALL.
355 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
358 2003-03-06 Roland McGrath <roland@redhat.com>
360 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
361 permanent extent and add a comment about testing its implicit teardown.
363 2003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
365 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
367 2003-03-05 Ulrich Drepper <drepper@redhat.com>
369 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
370 reversed __builtin_expect expectation.
372 2003-03-05 Roland McGrath <roland@redhat.com>
374 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
375 * libio/swscanf.c: Likewise.
376 * libio/swprintf.c: Likewise.
378 2003-03-04 Roland McGrath <roland@redhat.com>
380 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
381 (elf_machine_rela): Always use RESOLVE_MAP, needed for
382 R_PPC64_JMP_SLOT as well as TLS cases.
383 (BIT_INSERT): Move parenthesis where it ought to have been.
384 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
386 * posix/confstr.c (confstr): Correct STRING_LEN values for
387 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
388 break. Reported by Alexandre Julliard <julliard@winehq.com>.
390 2003-03-04 Jakub Jelinek <jakub@redhat.com>
392 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
394 2003-03-04 Ulrich Drepper <drepper@redhat.com>
396 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
399 * po/sv.po: Update from translation team.
401 2003-03-04 Andreas Jaeger <aj@suse.de>
402 Ulrich Drepper <drepper@redhat.com>
404 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
406 2003-03-03 Ulrich Drepper <drepper@redhat.com>
408 * sysdeps/generic/dl-sysdep.h: Add double include protection.
410 * po/tr.po: Update from translation team.
412 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
413 are holes between the segments. Only call mprotect to set
414 proection to PROT_NONE if there are some.
416 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
419 * include/sched.h (__clone2): Use ... instead of adding all the
422 2003-03-03 Roland McGrath <roland@redhat.com>
424 * elf/dl-load.c (struct filebuf): Fix typo in last change.
426 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
427 PI_STATIC_AND_HIDDEN.
429 2003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
431 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
433 * include/sched.h: Update clone2 prototype.
435 2003-03-03 Andreas Jaeger <aj@suse.de>
437 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
438 (llrint): Use it to correct return type.
443 2003-03-03 Ulrich Drepper <drepper@redhat.com>
445 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
448 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
449 if ccs parameter isn't valid. Reported by Andreas Schwab.
451 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
453 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
454 for system call numbers > 255.
455 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
456 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
457 INTERNAL_SYSCALL): Likewise.
458 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
459 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
460 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
461 INTERNAL_SYSCALL): Likewise.
463 2003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
465 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
466 array if it is the initial dtv.
468 2003-03-03 Ulrich Drepper <drepper@redhat.com>
470 * po/es.po: Update from translation team.
471 * po/fr.po: Likewise.
472 * po/gl.po: Likewise.
473 * po/sk.po: Likewise.
474 * po/sv.po: Likewise.
476 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
477 * misc/sys/mman.h: Add prototype for remap_file_pages.
478 * sysdeps/generic/remap_file_pages.c: New file.
479 * misc/Makefile (routines): Add remap_file_pages.
480 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
482 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
484 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
485 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
486 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
487 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
488 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
489 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
490 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
491 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
493 2003-03-03 Roland McGrath <roland@redhat.com>
495 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
496 * sysdeps/ia64/dl-machine.h: Likewise.
497 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
499 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
501 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
502 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
503 * locale/Versions (libc: GLIBC_2.3): Move those to ...
504 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
505 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
506 * Versions.def (libc): Add GLIBC_2.3.3 set.
508 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
509 * sysdeps/ia64/dl-machine.h: Update decl.
511 2003-03-03 Andreas Jaeger <aj@suse.de>
513 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
515 2003-03-02 Roland McGrath <roland@redhat.com>
517 * scripts/abilist.awk: Reject data items with apparent 0 size.
519 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
520 after foo.* as if it were a duplicate.
522 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
524 2003-03-02 Ulrich Drepper <drepper@redhat.com>
526 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
528 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
529 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
530 if not already defined. Use SYSDEP_GETRES to allow other files to
531 provide alternative implementations.
532 * sysdeps/unix/sysv/linux/clock_getres.c: New file
533 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
534 if not already defined. Use SYSDEP_GETTIME to allow other files to
535 provide alternative implementations.
536 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
537 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
538 if not already defined. Use SYSDEP_GETTIME to allow other files to
539 provide alternative implementations.
540 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
541 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
542 other files to provide alternative implementations. Rearrange
543 tests for invalid parameters.
544 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
545 * sysdeps/unix/sysv/linux/sysconf.c: New file.
546 * sysdeps/unix/sysv/linux/kernel-features.h: Define
547 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
548 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
549 _POSIX_MONOTONIC_CLOCK.
551 2003-03-02 Roland McGrath <roland@redhat.com>
553 * scripts/merge-abilist.awk: More checks for bogus input.
554 Uniquify duplicate config names.
556 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
558 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
559 from dl_reloc_overflow, make global.
560 (__process_machine_rela): Update callers.
561 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
562 Add attribute_hidden to __process_machine_rela decl.
563 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
565 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
568 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
569 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
570 (elf_machine_rela): Clean up.
572 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
574 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
575 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
576 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
577 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
578 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
579 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
582 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
583 macros out of [SHARED].
584 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
586 * elf/elf.h: Define R_PPC_* relocs for TLS support.
587 Clean up R_PPC64_* macro definition comments.
589 * configure.in: In "running configure fragment for" message,
590 omit $srcdir from the name if we prepended it.
591 * configure: Regenerated.
593 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
594 From Jakub Jelinek <jakub@redhat.com>.
596 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
597 which duplicated the O_DIRECT defn.
599 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
601 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
604 2003-03-01 Andreas Schwab <schwab@suse.de>
606 * resolv/Makefile (tests): Don't depend on
607 $(objpfx)mtrace-tst-leaks when cross compiling.
609 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
610 __libc_stack_end through GOT since it is a global symbol.
612 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
614 * argp/argp.h: Fix a typo.
615 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
617 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
619 2003-02-27 Pat Rankin <rankin@pactechdata.com>
621 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
623 (get_subexp): Likewise.
625 2003-03-01 GOTO Masanori <gotom@debian.or.jp>
627 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
629 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
631 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
633 2003-02-27 Roland McGrath <roland@redhat.com>
635 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
636 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
637 repeat it and avoids the test for the common case.
638 Clean up and fix calculations for TLS relocs.
640 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
641 * sysdeps/powerpc/dl-tls.h: ... here.
642 (TLS_TP_OFFSET): New macro.
644 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
646 2003-02-27 Ulrich Drepper <drepper@redhat.com>
648 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
649 code generation changes in recent gcc.
651 2003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
653 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
654 Rename argument to avoid symbol conflict.
656 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
657 [__USE_GNU] (O_DIRECT): New macro.
659 2003-02-24 David Mosberger <davidm@hpl.hp.com>
661 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
664 2003-02-27 Ulrich Drepper <drepper@redhat.com>
666 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
667 initializer anymore now that res_thread_freeres is more careful.
669 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
670 except the PKTINFO. Reset interface in PKTINFO.
671 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
673 2003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
675 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
676 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
678 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
679 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
680 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
681 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
683 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
684 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
686 2003-02-25 Andreas Jaeger <aj@suse.de>
688 * manual/memory.texi (Malloc Tunable Parameters): Clarify
689 behaviour of M_MMAP_THRESHOLD.
691 2003-02-25 Roland McGrath <roland@redhat.com>
693 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
694 zero, inidicating _res was not initialized yet.
696 2003-02-24 Ulrich Drepper <drepper@redhat.com>
698 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
701 2003-02-24 Roland McGrath <roland@redhat.com>
703 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
705 2003-02-23 Roland McGrath <roland@redhat.com>
707 * sysdeps/posix/pause.c: New file.
708 * sysdeps/unix/common/pause.c: File removed.
710 2003-02-23 Ulrich Drepper <drepper@redhat.com>
712 * sysdeps/generic/bits/confname.h: Remove #ifs.
714 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
715 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
717 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
720 2003-02-22 Ulrich Drepper <drepper@redhat.com>
722 * sysdeps/generic/dl-sysdep.c: Avoid warning.
724 2003-02-22 Roland McGrath <roland@redhat.com>
726 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
727 * resolv/Makefile (tests): Add tst-leaks.
728 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
729 (tst-leaks-ENV): New variable.
730 ($(objpfx)mtrace-tst-leaks): New target.
731 (tests): Depend on it.
733 * include/libc-internal.h: Declare __libc_thread_freeres.
735 * Makerules: Fix last change to use $($(subdir)-version) when set.
737 * Makerules (install-lib-nosubdir): Depend on installed
738 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
739 regardless of the libfoo.so target's dependencies.
741 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
742 Use that in $(MAKE) calls.
744 2003-02-22 Ulrich Drepper <drepper@redhat.com>
746 * catgets/gencat.c (read_input_file): Collision between
747 auto-assigned numbers and user-defined nubmers is not fatal.
749 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
750 * catgets/Makefile: Add rules to run test2.msg test.
751 * catgets/test2.msg: New file.
753 * catgets/gencat.c (main): Return 1 if messages have been printed.
755 * iconv/iconv_prog.c (main): Unify messages.
757 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
758 when shifting retval.
759 * stdlib/tst-strtod.c (main): Add strtold test case.
760 Reported by Fred J. Tydeman <tydeman@tybor.com>.
762 2003-02-21 Roland McGrath <roland@redhat.com>
764 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
765 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
766 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
768 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
769 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
770 (res_thread_freeres): New function, on __libc_thread_subfreeres and
773 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
774 * malloc/thread-freeres.c: New file.
775 * malloc/Makefile (aux): Add it.
776 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
777 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
778 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
780 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
781 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
783 2003-02-21 Roland McGrath <roland@frob.com>
785 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
787 * iconvdata/Makefile (tests): Add bug-iconv3 only if
788 [$(have-thread-library) = yes].
790 2003-02-21 Ulrich Drepper <drepper@redhat.com>
792 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
794 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
795 not chechk for errors (unless testing for 32bit variant).
796 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
797 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
798 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
800 2003-02-21 Jakub Jelinek <jakub@redhat.com>
802 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
803 Check for signed overflow, not unsigned.
805 * sysdeps/sparc/sparc64/elf/configure.in: New file.
806 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
807 Use -fcall-used-g6, not -fcall-used-g7.
809 2003-02-21 Andreas Jaeger <aj@suse.de>
811 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
814 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
815 clear whole mxcsr but only exceptions.
817 2003-02-21 Roland McGrath <roland@redhat.com>
819 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
820 for libfoo.so that need $(make-link) rules.
822 2003-02-21 Roland McGrath <roland@frob.com>
824 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
825 to match existing struct stat layout in mig protocols.
827 2003-02-20 Ulrich Drepper <drepper@redhat.com>
829 * version.h (VERSION): Bump to 2.3.2.
831 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
832 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
834 * sysdeps/generic/Dist: Add sysdep-cancel.h.
835 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
836 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
837 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
838 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
839 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
841 * Makefile (distribute): Add include/stubs-prologue.h,
842 include/gnu/stubs.h, scripts/merge-abilist.awk, and
843 scripts/extract-abilist.awk.
845 2003-02-20 Roland McGrath <roland@redhat.com>
847 * math/Makefile (distribute): Don't add generated files.
849 2003-02-20 Ulrich Drepper <drepper@redhat.com>
851 * math/Makefile: Rearrange variable definitions slightly to get
852 definition in the right order.
854 2003-02-20 Roland McGrath <roland@redhat.com>
856 * Makerules: Clean up conditional around include of tls.make.
857 * Make-dist: Export generating=t to prevent using that.
858 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
860 2003-02-20 Ulrich Drepper <drepper@redhat.com>
862 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
863 around in search if port IPPORT_RESERVED/2 has been test.
865 2002-02-20 Paolo Bonzini <bonzini@gnu.org>
867 * posix/regcomp.c: Remove inclusions.
868 * posix/regexec.c: Likewise.
869 * posix/regex_internal.c: Likewise.
870 * posix/regex_internal.h: Add inclusions here.
871 * posix/regex.c: Only include sys/types.h before regex.h. Include
872 regex_internal.h here. Include regex_internal.c before regcomp.c
873 and regexec.c (might expose more opportunities to the C compiler).
875 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
877 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
878 [!_LIBC] (__wcrtomb): New definition.
879 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
880 HAVE_LOCALE_H as well.
882 2003-02-20 Ulrich Drepper <drepper@redhat.com>
884 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
885 patch to check for system call errors.
887 2002-07-24 Philip Blundell <philb@gnu.org>
889 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
892 2003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
894 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
895 * sysdeps/unix/sysv/linux/kernel-features.h
896 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
897 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
899 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
900 interprocedure branches.
901 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
902 * sysdeps/powerpc/nofpu/Dist: ...here.
903 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
904 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
905 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
906 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
907 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
909 2003-02-18 Alan Modra <amodra@bigpond.net.au>
911 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
913 2003-02-20 Philip Blundell <philb@gnu.org>
915 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
916 missing arguments to INTERNAL_SYSCALL_ERROR_P and
917 INTERNAL_SYSCALL_ERRNO.
919 2003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
921 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
922 for __ASSUME_32BITUIDS.
924 2003-02-20 Andreas Schwab <schwab@suse.de>
926 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
927 POSIX_MADV_* constants.
929 2003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
931 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
932 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
933 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
934 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
936 2003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
938 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
940 2003-02-16 Roland McGrath <roland@redhat.com>
942 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
944 2003-02-19 Ulrich Drepper <drepper@redhat.com>
946 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
947 decimal input digits.
948 * stdlib/tst-strtod.c (main): Add test for strtof bug.
950 2003-02-18 Ulrich Drepper <drepper@redhat.com>
952 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
953 invalid file descriptors and missing access permissions.
955 2003-02-17 Ulrich Drepper <drepper@redhat.com>
957 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
960 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
961 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
962 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
965 2003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
966 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
968 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
969 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
970 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
971 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
972 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
974 2003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
976 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
977 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
978 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
979 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
980 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
981 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
983 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
984 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
985 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
986 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
988 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
989 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
990 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
991 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
993 2003-02-14 Thorsten Kukuk <kukuk@suse.de>
995 * nss/getent.c (print_hosts): Print all IP addresses of one host.
997 2003-02-15 Roland McGrath <roland@frob.com>
999 * sysdeps/mach/hurd/tls.h: New file.
1000 * sysdeps/mach/hurd/i386/tls.h: New file.
1002 * mach/errsystems.awk: Include <errno.h> in generated output.
1004 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
1005 use target mach-before-compile instead of generated.
1006 (mach-before-compile): New target.
1007 * Makerules: Disable use of tls.make if $(generating) is set.
1008 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
1009 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
1010 mach-shortcuts.h so mach/ generation happens before hurd/.
1012 2003-02-14 Ulrich Drepper <drepper@redhat.com>
1014 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
1015 of demorm correctly if low word is zero.
1016 Reported by Fred J. Tydeman <tydeman@tybor.com>.
1017 * math/libm-test.inc (nextafter_test): New test, but disabled due
1020 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
1021 counter and only call __exit_thread if this is not the last thread.
1023 2003-02-13 Jakub Jelinek <jakub@redhat.com>
1025 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
1026 subtracting map->l_tls_offset.
1028 2003-02-12 Ulrich Drepper <drepper@redhat.com>
1030 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
1031 _CS_GNU_LIBPTHREAD_VERSION.
1032 * posix/conststr.c: Handle these new values.
1033 * posix/getconf.c: Likewise.
1035 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
1036 masking of version index.
1037 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
1039 2003-02-11 Ulrich Drepper <drepper@redhat.com>
1041 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
1042 correctly. Reported by Thorsten Kukuk.
1044 2003-02-10 Ulrich Drepper <drepper@redhat.com>
1046 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
1047 _BSD_SOURCE to compiler.
1048 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
1049 Patches by Alan Modra.
1051 2003-02-08 Ulrich Drepper <drepper@redhat.com>
1053 * io/ftwtest.c: Get current working directory before and after the
1054 nftw call and make sure they match.
1056 2003-02-08 Jim Meyering <jim@meyering.net>
1058 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
1059 the current directory, not just when DIR contains a slash.
1060 Reported by Manoj Srivastava.
1062 2003-02-07 Jim Meyering <jim@meyering.net>
1064 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
1065 Include autoconf-recommended block of dirent/NAMELEN-related
1066 definitions and includes. Use NAMELEN throughout, rather than
1068 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
1069 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
1070 (stpcpy): Declare, if necessary.
1071 (mempcpy): Define, if necessary.
1072 [!_LIBC] (__stpcpy, __mempcpy): Define.
1073 [!_LIBC] (LXSTAT, XSTAT): Define.
1074 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
1075 (find_object): Don't use c99-style struct initializer.
1076 Tweak wording in a couple comments.
1078 2003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1080 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
1082 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
1083 after the trapa instruction.
1084 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
1086 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
1087 (NEED_SYSCALL_INST_PAD): Define.
1088 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
1089 avoid to use definition for the kernel.
1090 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
1091 Save and restore the frame pointer.
1092 (SYSCALL_INST_PAD): Define.
1093 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
1094 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
1095 after trapa instruction.
1096 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
1097 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
1099 2003-02-07 Jakub Jelinek <jakub@redhat.com>
1101 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
1102 so that it can have aliases.
1103 * inet/herrno.c (h_errno): Put it into .bss not .data section.
1105 2003-02-07 Ulrich Drepper <drepper@redhat.com>
1107 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
1108 (profile_fixup): Likewise.
1109 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
1111 2002-11-24 Robert Love <rml@tech9.net>
1113 * posix/sched.h: Second parameter of sched_setaffinity and
1114 sched_getaffinity is `unsigned int', not `unsigned long'.
1115 * sysdeps/generic/sched_setaffinity.c: Likewise.
1116 * sysdeps/generic/sched_getaffinity.c: Likewise.
1118 2003-02-05 Ulrich Drepper <drepper@redhat.com>
1120 * debug/catchsegv.sh: Fix typo in error messsage.
1121 Reported by John Levon <levon@movementarian.org>.
1123 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
1124 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
1125 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
1126 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1127 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
1128 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1129 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1131 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
1132 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
1134 2003-02-05 Jim Meyering <jim@meyering.net>
1136 Fix a heap-corrupting bug.
1137 * io/ftw.c: Include <limits.h>.
1138 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
1139 (process_entry): Allocate enough space to hold the resulting
1140 file name. Don't presume that 2*dirbufsize is enough.
1141 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
1142 it is guaranteed to be defined.
1144 2003-02-04 Ulrich Drepper <drepper@redhat.com>
1146 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
1147 * iconvdata/bug-iconv3.c: New file.
1149 2003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
1151 * sysdeps/unix/sysv/linux/s390/system.c: New file.
1153 2003-02-03 Jakub Jelinek <jakub@redhat.com>
1155 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
1157 * config.h.in (BROKEN_SPARC_WDISP22): Add.
1159 2003-02-03 Ulrich Drepper <drepper@redhat.com>
1161 * sysdeps/i386/i686/memmove.S: New file.
1163 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
1165 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
1166 Include kernel-features.h
1167 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
1168 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
1169 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
1170 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1172 2003-02-02 Jakub Jelinek <jakub@redhat.com>
1174 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
1176 2003-01-25 Jim Meyering <jim@meyering.net>
1178 * io/ftw.c (object_compare): Compare inode numbers before device
1179 numbers, since the former are much more likely to differ.
1181 2003-02-01 Ulrich Drepper <drepper@redhat.com>
1183 * time/tzfile.c (__tzfile_compute): Change return value type to
1184 void. Adjust return statements.
1185 * include/time.h (__tzfile_compute): Adjust prototype.
1187 2003-02-01 Jim Meyering <jim@meyering.net>
1189 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
1192 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
1194 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
1195 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
1197 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
1199 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
1200 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
1201 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
1202 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
1203 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1204 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
1205 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1206 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
1208 2003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
1210 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
1211 back to 2.4.19 for powerpc64.
1212 * sysdeps/unix/sysv/linux/kernel-features.h
1213 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
1214 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
1216 2003-02-01 Ulrich Drepper <drepper@redhat.com>
1218 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
1219 platforms with strange alignment requirements on wchar_t.
1221 2003-01-31 Andreas Schwab <schwab@suse.de>
1223 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
1224 aliases, already added by make-syscalls.sh.
1225 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1226 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1227 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1228 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1229 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1230 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1231 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1232 * sysdeps/unix/inet/syscalls.list: Likewise.
1233 * sysdeps/unix/syscalls.list: Likewise.
1235 2003-01-31 Andreas Schwab <schwab@suse.de>
1237 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
1240 2003-01-30 Jakub Jelinek <jakub@redhat.com>
1242 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
1243 not l to load tls from stack.
1245 2003-01-30 Roland McGrath <roland@redhat.com>
1247 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
1248 null argument before all else.
1249 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
1251 2003-01-30 Jakub Jelinek <jakub@redhat.com>
1253 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
1254 Move to RESOLVE protected part of the header.
1255 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
1258 2003-01-30 Ulrich Drepper <drepper@redhat.com>
1260 * stdio-common/Makefile (tests): Add bug15.
1261 (bug15-ENV): Define.
1262 * stdio-common/bug15.c: New file.
1264 2002-10-07 Wolfram Gloger <wg@malloc.de>
1266 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
1267 to foreign sbrk()'s if arena is contiguous. Bug report from
1268 Bruno Haible <bruno@clisp.org>.
1270 2003-01-30 Jakub Jelinek <jakub@redhat.com>
1272 * sysdeps/s390/libc-tls.c: Include stdlib.h.
1274 2003-01-30 Jakub Jelinek <jakub@redhat.com>
1276 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
1279 2003-01-30 Ulrich Drepper <drepper@redhat.com>
1281 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
1283 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
1285 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
1287 2003-01-30 Jakub Jelinek <jakub@redhat.com>
1289 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
1290 (allocate_static_tls): ...here. Add __attribute_noinline__.
1291 Don't return on failure.
1292 (_dl_reloc_bad_type): Add __attribute_noinline__.
1293 * elf/do-rel.h (elf_dynamic_do_rel): Add
1294 __attribute__((always_inline)).
1295 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
1296 elf_machine_rel_relative, elf_machine_rela_relative,
1297 elf_machine_lazy_rel): Add prototypes with
1298 __attribute__((always_inline)).
1300 2003-01-29 David Mosberger <davidm@hpl.hp.com>
1302 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
1304 2003-01-29 Roland McGrath <roland@redhat.com>
1306 * configure.in: Barf if configured in $srcdir.
1308 2003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
1310 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
1311 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
1313 2003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
1315 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
1316 clone parameters to match the order used on ia32.
1317 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
1319 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
1321 * elf/elf.h: Add new s390 relocs.
1322 * elf/tls-macros.h: Add s390 versions.
1323 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
1324 * sysdeps/s390/dl-tls.h: New file.
1325 * sysdeps/s390/libc-tls.c: New file.
1326 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
1327 relocs for class PLT.
1328 (elf_machine_rela): Handle TLS relocs.
1329 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1330 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
1331 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
1332 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
1333 CLONE_CHILD_*TID flags.
1334 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
1335 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
1337 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
1338 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
1339 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
1340 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
1341 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
1343 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
1344 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
1345 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
1347 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
1348 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
1349 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
1350 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
1353 2003-01-28 Ulrich Drepper <drepper@redhat.com>
1355 * sysdeps/unix/common/pause.c (do_pause): New function. Split
1356 from __libc_pause. Implement using sigsuspend.
1357 (__libc_pause): Call do_pause to do the real work.
1359 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
1360 sig_or_mask parameter is is_sig != 0.
1362 2003-01-21 Philip Blundell <philb@gnu.org>
1364 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
1366 2003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
1368 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
1370 2003-01-27 Ulrich Drepper <drepper@redhat.com>
1372 * stdio-common/bug14.c: Use official name for the locale.
1374 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
1375 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
1376 instead of __libc_cleanup_region_end.
1378 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
1379 as first parameter to __libc_cleanup_region_start.
1381 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
1382 (__fe_nomask_env): Use __prctl not prctl.
1383 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
1386 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
1388 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
1390 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
1391 wrap-around in test.
1393 2003-01-26 Andreas Schwab <schwab@suse.de>
1395 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
1396 compatibility symbols. Remove INTDEF for __divdi3.
1397 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
1398 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
1399 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
1401 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
1403 2003-01-24 Jakub Jelinek <jakub@redhat.com>
1405 * elf/tls-macros.h: Add SPARC 32-bit definitions.
1406 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
1407 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
1408 for the first half of the header. Include tls.h.
1409 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
1411 (elf_machine_rela): Handle TLS relocs.
1412 * sysdeps/sparc/dl-tls.h: New file.
1414 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
1417 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
1418 * sysdeps/sparc/sparc32/memchr.S: Likewise.
1419 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
1420 * sysdeps/sparc/sparc32/strcat.S: Likewise.
1421 * sysdeps/sparc/sparc32/strchr.S: Likewise.
1422 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
1423 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
1424 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
1425 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
1426 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
1427 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
1428 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
1429 * sysdeps/sparc/sparc64/strcat.S: Likewise.
1430 * sysdeps/sparc/sparc64/strchr.S: Likewise.
1431 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
1432 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
1433 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
1434 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
1435 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
1436 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
1438 2003-01-24 Andreas Schwab <schwab@suse.de>
1440 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
1441 elements, and process them backwards.
1442 * elf/Makefile ($(objpfx)tst-array4): New target.
1443 ($(objpfx)tst-array4.out): Likewise.
1444 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
1445 * elf/tst-array4.c: New file.
1446 * elf/tst-array4.exp: Likewise.
1448 2003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
1450 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
1452 2003-01-27 Guido Guenther <agx@sigxcpu.org>
1454 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
1455 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
1456 cancellation handling and handle both __NR_pread64 and __NR_pread.
1457 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1458 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
1459 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
1460 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
1461 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
1462 case, use register names consistently.
1464 2003-01-27 Wolfram Gloger <wg@malloc.de>
1466 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
1467 pointer, not of the computed chunk. Bug report from Carlos
1468 O'Donell <carlos@baldric.uwo.ca>.
1470 2003-01-25 Andreas Schwab <schwab@suse.de>
1472 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
1473 addressing to save GOT entries.
1475 2003-01-21 Jakub Jelinek <jakub@redhat.com>
1477 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
1478 inline_syscall1, inline_syscall2, inline_syscall3,
1479 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
1480 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
1481 __attribute__((unused)) to ChEcK.
1483 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1485 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
1486 Fix inline assembler constraints.
1487 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
1490 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
1493 2003-01-20 Segher Boessenkool <segher@koffie.nl>
1495 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
1496 compute the cosine, not the sine, even if x > 0.8.
1498 2003-01-19 Ulrich Drepper <drepper@redhat.com>
1500 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
1501 _nss_nis_setspent. Work around the different prototypes.
1502 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
1503 internal_nis_endrpcent.
1504 (internal_nis_endrpcent): Change return type to void. Change callers.
1505 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
1506 _nss_nis_setpwent. Work around the different prototypes.
1507 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
1508 of the function to...
1509 (internal_nis_endprotoent): ... here. New function.
1510 (internal_nis_setprotoent): Use internal_nis_endprotoent.
1511 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
1512 _nss_nis_setnetent. Work around the different prototypes.
1513 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
1514 of the function to...
1515 (internal_nis_endnetgrent): ... here. New function.
1516 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
1518 2003-01-19 Jim Meyering <jim@meyering.net>
1520 * time/strftime.c: (widen): Merge nearly-identical definitions.
1521 (nl_get_alt_digit) [! defined my_strftime]: Define.
1522 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
1523 _nl_get_alt_digit and _nl_get_walt_digit.
1525 2003-01-19 Ulrich Drepper <drepper@redhat.com>
1527 * time/strftime.c (my_strftime): Handle very large width
1528 specifications for numeric values correctly. Improve checks for
1530 * time/Makefile (tests): Add tst-strftime.
1531 * time/tst-strftime.c: New file.
1533 2003-01-18 Ulrich Drepper <drepper@redhat.com>
1535 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
1536 _nss_nis_sethostent. Work around the different prototypes.
1537 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
1538 _nss_nis_setgrent. Work around the different prototypes.
1539 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
1540 function. Split out from _nss_nis_endetherent.
1541 (internal_nis_setetherent): Use internal_nis_endetherent instead of
1542 duplicating the code.
1543 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
1544 of _nss_nis_setaliasent.
1545 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
1546 internal_nis_endservent code, don't duplicate it.
1548 * inet/rexec.c (rexec_af): Protect socket operations with
1549 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
1550 * inet/rcmd.c (rcmd_af): Likewise.
1552 2003-01-17 Roland McGrath <roland@redhat.com>
1554 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
1555 Add test of value 0.80190127184058835.
1557 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
1559 2003-01-17 Richard Henderson <rth@redhat.com>
1561 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
1562 relocs for class PLT.
1563 * sysdeps/alpha/libc-tls.c: New file.
1564 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
1565 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
1567 2003-01-17 Jakub Jelinek <jakub@redhat.com>
1569 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
1570 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
1573 2003-01-17 Andreas Jaeger <aj@suse.de>
1575 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
1577 2003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
1579 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
1580 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
1581 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
1582 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
1583 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
1584 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
1585 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
1588 2003-01-16 Ulrich Drepper <drepper@redhat.com>
1590 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
1591 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
1594 * sysdeps/generic/sysconf.c: Unconditionally implement
1595 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
1596 * sysdeps/posix/sysconf.c: Likewise.
1598 2003-01-16 Jakub Jelinek <jakub@redhat.com>
1600 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
1601 set *err to the returned error, not to REG_ESPACE unconditionally.
1602 (build_word_op): Likewise.
1603 * posix/Makefile (tests): Add bug-regex16.
1604 * posix/bug-regex16.c: New test.
1606 2003-01-16 Jakub Jelinek <jakub@redhat.com>
1608 * elf/dl-load.c (_dl_map_object_from_fd): Use
1609 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
1610 been already initialized.
1612 2003-01-15 Dmitry V. Levin <ldv@altlinux.org>
1614 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
1616 2003-01-16 Jakub Jelinek <jakub@redhat.com>
1618 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
1619 allocated too. Reported by Al Viro <aviro@redhat.com>.
1621 2003-01-16 Roland McGrath <roland@redhat.com>
1623 Tweak merged .abilist file format to merge duplicate symbols in
1624 different sets into multi-version stanzas with new "| SET regexp..."
1625 header continuation lines.
1626 * scripts/merge-abilist.awk: Rewritten for new format.
1627 * scripts/extract-abilist.awk: Likewise.
1629 2003-01-15 Ulrich Drepper <drepper@redhat.com>
1631 * nscd/connections.c (nscd_run): Remove bogus return which isn't
1632 necessary with gcc 3.2+.
1633 (nscd_init): Don't use error() to print message, use dbg_log.
1635 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
1636 expected size into state.
1637 (UNPACK_BYTES): Do the reverse.
1638 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
1639 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
1640 Reported by Al Viro <aviro@redhat.com>.
1642 * stdio-common/Makefile (tests): Add bug14.
1643 * stdio-common/bug14.c: New file.
1645 * stdio-common/vfscanf.c: When recognizing multibyte characters in
1646 string reset the byte counter after mbrtowc reported it is not a
1647 partial character. Reported by Al Viro <aviro@redhat.com>.
1649 2003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
1651 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
1652 sysdep-cancel.h, not sysdep.h.
1654 2003-01-15 Ulrich Drepper <drepper@redhat.com>
1656 * nscd/connections.c (nscd_run): Protect accept call with
1659 2003-01-15 Andreas Schwab <schwab@suse.de>
1661 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
1662 (common-generated): Add s-proto-bp.d.
1663 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
1665 * sysdeps/unix/s-proto-bp.S: New file.
1666 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
1667 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
1668 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
1670 2003-01-15 Roland McGrath <roland@redhat.com>
1672 * Makerules: Use -include for tls.make, suppresses warning.
1673 Move gen-as-const-headers rules up so before-compile is set in time.
1674 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
1676 2003-01-15 Ulrich Drepper <drepper@redhat.com>
1678 * nscd/nscd.c (main): Make code to close all file descriptors
1679 faster and more robust.
1681 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
1682 request with one writev call. Protect all read calls with
1684 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
1685 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
1687 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
1688 Protect writev calls with TEMP_FAILURE_RETRY.
1689 * nscd/grpcache.c: Likewise.
1690 * nscd/pwdcache.c: Likewise.
1692 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
1693 IPv6 address in debug output.
1695 2003-01-14 Roland McGrath <roland@redhat.com>
1697 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
1698 $(objpfx) directories, and get rid of vpath directives. The previous
1699 arrangement resulted in files being written to the source directories
1700 when run in a clean build. Find all .abilist files in $(..)abilist/.
1701 (update-abi-%): Likewise.
1702 (generated): Don't add .symlist files, they'll be intermediates.
1704 * sysdeps/generic/init-first.c: Add a comment.
1706 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
1708 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
1709 #includes and expressions.
1711 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
1712 config list when it already contains cpu-.*-os.* without / part.
1714 * Makerules (sed-remove-dotdot): New variable.
1715 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
1716 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
1717 (check-abi-config): New variable, append /tls or /notls to the tuple.
1718 (check-abi-%): Use that for -v config value.
1719 Find .abilist files in abilist/libfoo.abilist, not in subdir.
1720 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
1722 2003-01-14 Ulrich Drepper <drepper@redhat.com>
1724 * manual/install.texi: Correct description of header preparation for
1725 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
1727 2003-01-14 Guido Guenther <agx@sigxcpu.org>
1729 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
1730 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
1731 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
1733 2003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
1735 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
1736 (INTERNAL_SYSCALL): Make use of ERR parameter.
1737 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
1738 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
1739 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
1740 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
1742 2003-01-14 Ulrich Drepper <drepper@redhat.com>
1744 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
1746 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
1748 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
1749 Fix entry for bit 31.
1751 * iconvdata/Makefile: Add rules to build IBM866NAV.
1752 * iconvdata/ibm866nav.c: New file.
1753 * iconvdata/tst-tables.sh: Add IBM866NAV.
1754 * iconvdata/gconv-modules: Add entries for IBM866NAV.
1756 2003-01-13 Ulrich Drepper <drepper@redhat.com>
1758 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
1759 to test void* parameters.
1761 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
1762 source pointer before dereferencing.
1763 (__STRING_SMALLL_GET32): Likewise.
1764 (__memset_gc): Add missing parenthesis around macro arguments.
1765 Patch by Denis Zaitsev <zzz@cd-club.ru>.
1767 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
1768 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
1770 2003-01-14 Jakub Jelinek <jakub@redhat.com>
1772 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
1775 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
1777 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
1778 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
1780 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
1782 2003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
1784 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
1786 (PSEUDO): ... to here.
1787 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
1789 (PSEUDO): ... to here.
1791 2003-01-13 Ulrich Drepper <drepper@redhat.com>
1793 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
1794 dirent64 instead of struct dirent for dirent. Call readdir64
1797 * locale/programs/locfile.c (siblings_uncached): Use struct
1798 dirent64 instead of struct dirent for other_dentry. Call
1799 readdir64 instead of readdir.
1801 * elf/ldconfig.c (direntry): Change type to struct dirent64.
1802 (search_dir): Use readdir64 instead of readdir.
1803 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
1805 2003-01-12 Roland McGrath <roland@redhat.com>
1807 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
1808 not strtol. The former is usable in ld.so, the latter not.
1810 * include/fcntl.h: Declare __libc_creat.
1812 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
1813 libhurduser-link.so-no-z-defs): New variables.
1815 * malloc/malloc.c: Revert last change.
1816 * malloc/malloc.h (_int_*): Move these decls to ...
1817 * include/malloc.h: ... here. Add attribute_hidden.
1818 (_int_valloc): Declare it too.
1820 2003-01-12 Ulrich Drepper <drepper@redhat.com>
1822 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
1823 search for removed searchlist. Reported by Roland McGrath.
1825 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
1826 given as start file.
1828 * io/ftw.c (ftw_startup): Use correct name in check for symlink
1829 without existing target. Patch by Jim Meyering.
1831 * Makerules (build-shlib-helper): Don't use -z defs linker option
1832 if no-z-defs is defined either.
1834 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
1836 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
1839 2003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
1841 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
1842 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1844 2003-01-12 Ulrich Drepper <drepper@redhat.com>
1846 * io/ftwtest-sh: Add test case for relative path with /. at the end.
1848 2003-01-12 Jim Meyering <jim@meyering.net>
1850 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
1851 use the basename if we've already chdir'd into its parent directory.
1853 2003-01-12 Ulrich Drepper <drepper@redhat.com>
1855 * io/ftw.c (process_entry): Use relative path when using chdir()
1856 to change directory after call to ftw_dir.
1857 * io/ftwtest-sh: Add test for relative path argument to nftw()
1858 with FTW_CHDIR option.
1860 2002-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1862 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
1864 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
1866 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
1867 (INTERNAL_SYSCALL): Make use of ERR parameter.
1868 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
1869 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
1870 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
1871 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
1873 2002-01-09 Richard Henderson <rth@redhat.com>
1875 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
1876 DTPREL64 and TPREL64 without loadbase applied.
1878 2002-01-09 Richard Henderson <rth@redhat.com>
1880 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
1883 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
1884 * sysdeps/unix/alpha/sysdep.h: ... here.
1885 (PSEUDO_LOADGP): Remove.
1886 (PSEUDO_PROLOGUE): Load GP in non-pic case.
1887 (SYSCALL_ERROR_LABEL): New.
1888 (PSEUDO): Use it in error branch.
1889 (PSEUDO_END): Add $syscall_error label.
1891 2003-01-12 Andreas Jaeger <aj@suse.de>
1893 * math/bits/mathcalls.h: Round is a const function.
1895 2003-01-11 Jim Meyering <jim@meyering.net>
1897 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
1898 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
1899 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
1900 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
1901 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
1902 [!_LIBC] (internal_function, dirent64, MAX): Define.
1903 (__set_errno): Define if not already defined.
1904 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
1905 the basename, not the entire file name.
1906 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
1907 the basename, not the entire file name.
1909 2003-01-12 Ulrich Drepper <drepper@redhat.com>
1911 * string/tester.c (test_strcpy): Disable last added strcpy until
1914 2003-01-11 Philip Blundell <philb@gnu.org>
1916 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
1918 2003-01-11 Andreas Schwab <schwab@suse.de>
1920 * Makerules: Add vpath for %.dynsym and %.so so that the
1921 implicit rule chaining for check-abi works.
1923 2003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1925 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
1928 2003-01-11 Jakub Jelinek <jakub@redhat.com>
1930 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
1931 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
1933 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
1934 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
1935 Ensure libc.so in DT_NEEDED.
1936 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
1937 CHECK_STATIC_TLS before l_tls_offset use.
1938 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
1940 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
1941 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
1942 Allocate TLS_PRE_TCB_SIZE bytes below result.
1943 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
1944 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
1945 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
1946 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
1947 bytes below result and add tcb_offset to memsz.
1948 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
1949 * sysdeps/ia64/dl-machine.h: Include tls.h.
1950 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
1952 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
1953 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
1954 * sysdeps/ia64/libc-tls.c: New file.
1956 2003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
1958 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
1959 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
1960 Fix type. Move definition out of #if.
1961 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
1962 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
1963 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
1964 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
1965 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
1966 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
1968 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
1969 ftruncate64, pread64, pwrite64, truncate64 entries.
1970 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
1971 (INLINE_SYSCALL): New version that supports function call like
1972 syscalls. Add __builtin_expect.
1973 (LOADARGS_n): Add argument size safety checks.
1974 (INTERNAL_SYSCALL): New Macro.
1975 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
1976 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
1977 redefinition of elf_fpreg_t and elf_fpregset_t.
1979 2003-01-12 Ulrich Drepper <drepper@redhat.com>
1981 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
1982 simplify test for unloading. If loader of a DSO is unloaded do not
1983 use its scope anymore. Fall back to own scope and adjust opencounts.
1984 Fix several comments.
1985 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
1986 the l_searchlist, not only for l_initfini.
1988 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
1989 dependencies if objects cannot be removed. Remove object with the
1990 definition as not unloadable if necessary.
1992 * elf/reldep6.c: Create relocation dependency before closing the first
1995 2003-01-10 Guido Günther <agx@sigxcpu.org>
1997 * sysdeps/unix/mips/fork.S: Add PSEUDO_END.
1998 * sysdeps/unix/mips/brk.S: Likewise.
1999 * sysdeps/unix/mips/pipe.S: Likewise.
2001 2003-01-10 Andreas Schwab <schwab@suse.de>
2003 * sysdeps/unix/sysv/linux/m68k/getsysstats.c: New file.
2005 * sysdeps/unix/sysv/linux/m68k/vfork.S: Optimize for kernels which
2006 are known to have the vfork syscall.
2008 * sysdeps/m68k/sysdep.h (JUMPTARGET): Undefine before defining it.
2010 * sysdeps/unix/sysv/linux/kernel-features.h
2011 (__ASSUME_MMAP2_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL)
2012 (__ASSUME_STAT64_SYSCALL, __ASSUME_FCNTL64)
2013 (__ASSUME_VFORK_SYSCALL): Define for m68k kernels >= 2.4.12.
2015 2003-01-09 Jakub Jelinek <jakub@redhat.com>
2017 * elf/Makefile: Add rules to build and run reldep9 test.
2018 * elf/reldep9.c: New file.
2019 * elf/reldep9mod1.c: New file.
2020 * elf/reldep9mod2.c: New file.
2021 * elf/reldep9mod3.c: New file.
2023 2003-01-09 Jakub Jelinek <jakub@redhat.com>
2025 * elf/Makefile: Add rules to build and run nodelete2 test.
2026 * elf/nodelete2.c: New file.
2027 * elf/nodel2mod1.c: New file.
2028 * elf/nodel2mod2.c: New file.
2029 * elf/nodel2mod3.c: New file.
2031 2003-01-09 Jakub Jelinek <jakub@redhat.com>
2033 * posix/test-vfork.c (noop): Add __attribute_noinline__.
2034 * sysdeps/generic/sysdep.h (JUMPTARGET): Define if not defined.
2035 * sysdeps/i386/sysdep.h (JUMPTARGET): Undefine JUMPTARGET before
2037 * sysdeps/powerpc/powerpc32/sysdep.h (JUMPTARGET): Likewise.
2038 * sysdeps/powerpc/powerpc64/sysdep.h (JUMPTARGET): Likewise.
2039 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Likewise.
2040 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Likewise.
2041 * sysdeps/x86_64/sysdep.h (JUMPTARGET): Likewise.
2043 2003-01-09 Andreas Schwab <schwab@suse.de>
2045 * sysdeps/m68k/fpu/libm-test-ulps: Regenerated.
2047 2003-01-08 Ulrich Drepper <drepper@redhat.com>
2049 * sysdeps/unix/sysv/linux/arm/sysdep.h (INTERNAL_SYSCALL,
2050 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
2052 (INTERNAL_SYSCALL_DECL): Define.
2054 2003-01-06 Jakub Jelinek <jakub@redhat.com>
2056 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INTERNAL_SYSCALL,
2057 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Add err
2059 (INTERNAL_SYSCALL_DECL): Define.
2060 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
2061 * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
2062 * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
2063 (INLINE_SYSCALL): Adjust.
2064 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
2065 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2066 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
2067 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
2068 * elf/dl-misc.c (_dl_debug_vdprintf): Add INTERNAL_SYSCALL_DECL,
2069 add err argument to INTERNAL_SYSCALL* macros.
2070 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
2071 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Likewise.
2072 * sysdeps/unix/sysv/linux/m68k/brk.c (__brk): Likewise.
2073 * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize):
2075 * sysdeps/unix/sysv/linux/sigwait.c (do_sigwait): Likewise.
2076 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Use
2077 INLINE_SYSCALL instead of INTERNAL_SYSCALL and setting errno.
2079 2003-01-07 Ulrich Drepper <drepper@redhat.com>
2081 Unify symbols in user namespace exported by libc.so and libc.a.
2082 * argp/argp-fmtstream.c: Don't define argp_make_fmtstream,
2083 argp_fmtstream_free, and argp_fmtstream_printf.
2084 * argp/argp-fs-xinl.c: Don't define argp_fmtstream_putc,
2085 argp_fmtstream_puts, argp_fmtstream_write, argp_fmtstream_set_lmargin,
2086 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin, and
2087 argp_fmtstream_point.
2088 * gmon/gmon.c: Don't define write_profiling.
2089 * libio/genops.c: Don't define _cleanup.
2091 * intl/explodename.c (_nl_find_language.c): Mark as static.
2092 * intl/loadinfo.h: Remove _nl_find_language prototype.
2094 * libio/fileops.c (_IO_file_seekoff_maybe_mmap): Mark as static.
2095 * libio/libioP.h: Remove declaration.
2097 * libio/iopopen.c (_IO_proc_jumps): Mark as static.
2098 * libio/libioP.h: Remove declaration.
2100 * sysdeps/generic/unwind-dw2.c: Mark __frame_state_for with STATIC.
2101 * sysdeps/generic/framestate.c: Define STATIC before including
2104 * time/Versions [GLIBC_2.3.2] (libc): Export strptime_l.
2106 2003-01-06 Philip Blundell <philb@gnu.org>
2108 * sysdeps/unix/arm/sysdep.S (syscall_error): Optimise a little.
2109 [__LIBC_REENTRANT]: Unify PIC and non-PIC cases.
2111 * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Remove .type
2113 (PSEUDO_RET): Use SYSCALL_ERROR in place of __syscall_error.
2114 (SYSCALL_ERROR): New.
2115 (SYSCALL_ERROR_HANDLER) [NOT_IN_libc]: Provide local copy of error
2117 (INTERNAL_SYSCALL): Define.
2118 (INLINE_SYSCALL): Use it.
2119 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
2120 * sysdeps/unix/sysv/linux/arm/socket.S (__socket): Use
2121 SYSCALL_ERROR in place of __syscall_error.
2123 2003-01-07 Jakub Jelinek <jakub@redhat.com>
2125 * sysdeps/ia64/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
2126 __bswap_32, __bswap_64): Put x into temporary variable
2128 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
2130 * sysdeps/s390/bits/byteswap.h [__GNUC__ >= 2] (__bswap_16,
2131 __bswap_32, __bswap_64): Put x into temporary variable
2133 [!__GNUC__] (__bswap_16, __bswap_32, __bswap_64): Change into static
2135 * sysdeps/i386/bits/byteswap.h [!__GNUC__] (__bswap_16, __bswap_32):
2138 2003-01-07 Jakub Jelinek <jakub@redhat.com>
2140 * sysdeps/unix/sysv/linux/alpha/adjtime.c (ntp_adjtime): New weak
2143 2003-01-07 Jakub Jelinek <jakub@redhat.com>
2145 * elf/rtld.c (_rtld_global): Remove _dl_dynamic_weak initializer.
2146 * elf/dl-support.c (_dl_dynamic_weak): Initialize to 0.
2148 2003-01-07 Ulrich Drepper <drepper@redhat.com>
2150 * math/libm-test.inc (significand_test): New function.
2153 2003-01-06 Roland McGrath <roland@redhat.com>
2155 * sysdeps/i386/i486/bits/string.h (memset): Add parens around macro
2157 (memcpy, memrchr, strcpy, __stpcpy, strncpy, strcat): Likewise.
2158 (strcmp, strncat, strncmp, strchr, __strchrnul, strchrnul): Likewise.
2159 (index, strrchr, rindex, strcspn, strspn, strpbrk, strstr): Likewise.
2161 * string/tester.c (test_strcpy): Add test with `void *' arguments.
2163 2003-01-06 Ulrich Drepper <drepper@redhat.com>
2165 * sysdeps/i386/fpu/s_significandl.c (__significandl): Really
2166 return significand and not the exponent.
2167 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
2169 * elf/dl-misc.c (_dl_debug_vdprintf): Help PPC port by explicitly
2170 taking address of iov in INTERNAL_SYSCALL call. Patch by Franz Sirl.
2172 * malloc/malloc.c: Mark all _int_* functions as static.
2174 2003-01-06 Jakub Jelinek <jakub@redhat.com>
2176 * sysdeps/unix/alpha/sysdep.h (PSEUDO): Use PSEUDO_PREPARE_ARGS.
2177 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Add cancellation
2179 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
2181 2003-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2183 * sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Add branch hint.
2184 * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Add cancellation
2186 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Remove
2187 ftruncate64, truncate64, pread64 and pwrite64 entries.
2188 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
2189 (INLINE_SYSCALL): Add __builtin_expect.
2190 (LOADARGS_n): Add argument size safety checks.
2191 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: New file.
2192 * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: New file.
2193 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: New file.
2194 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: New file.
2195 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: New file.
2196 * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: New file.
2198 2003-01-06 Jakub Jelinek <jakub@redhat.com>
2200 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Define.
2201 * sysdeps/generic/creat.c: Include sysdep-cancel.h.
2202 (LIBC_CANCEL_HANDLED): Add.
2204 * sysdeps/unix/sysv/linux/alpha/sysdep.h
2205 (inline_syscall_r0_constraint): Rename to...
2206 (inline_syscall_r0_out_constraint): ... this. Add =.
2207 (inline_syscall[0-6]): Use inline_syscall_r0_out_constraint.
2209 2003-01-06 Andreas Schwab <schwab@suse.de>
2211 * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Make
2212 sure this is always inlined.
2213 (elf_machine_rela): Likewise.
2215 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Increase inline limit.
2217 2003-01-04 Roland McGrath <roland@redhat.com>
2219 * Makeconfig (+mkdep): Add -MP flag.
2220 Suggested by Art Haas <ahaas@airmail.net>.
2222 2003-01-05 Andreas Schwab <schwab@suse.de>
2224 * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
2226 2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2228 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use
2229 SYSCALL_ERROR_HANDLER.
2230 * sysdeps/unix/sysv/linux/sh/pipe.S (__libc_pipe): Likewise.
2231 * sysdeps/unix/sysv/linux/sh/socket.S (__socket): Likewise.
2232 Add support for cancellation handling.
2233 * sysdeps/unix/sysv/linux/sh/syscall.S (__syscall): Use
2234 SYSCALL_ERROR_HANDLER.
2235 * sysdeps/unix/sysv/linux/sh/vfork.S (__vfork): Likewise.
2236 * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO): Likewise.
2237 Add support for cancellation handling.
2238 (SYSCALL_ERROR_HANDLER): Define PIC variants.
2240 2003-01-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2242 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Mark
2243 __syscall_pread64 and __syscall_pwrite64 cancelable.
2244 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
2245 (INTERNAL_SYSCALL): New macro.
2246 (LOADARGS_0, LOADARGS_1): Fix.
2248 2003-01-05 Ulrich Drepper <drepper@redhat.com>
2250 * Makerules (build-shlip-helper): Unless told otherwise, add
2251 -Wl,-z,defs to linker command line.
2252 * rt/Makefile (librt.so): Link with ld.so.
2253 * dlfcn/Makefile (libdl.so): Likewise.
2255 2003-01-05 Jakub Jelinek <jakub@redhat.com>
2257 * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Add support for
2258 cancellation handling.
2259 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
2260 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise.
2262 2003-01-04 Ulrich Drepper <drepper@redhat.com>
2264 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Correct
2265 order of parameters passed to kill.
2267 2003-01-04 Andreas Schwab <schwab@suse.de>
2269 * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Add nanosecond fields.
2271 2002-01-03 Paul Eggert <eggert@twinsun.com>
2273 * malloc/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to
2274 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
2275 when compiling Bison 1.875's `bitset bset = obstack_alloc
2276 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
2278 2003-01-04 Ulrich Drepper <drepper@redhat.com>
2280 * sysdeps/posix/system.c (do_system): Minor optimizations. Remove
2282 Correct reference counter in case SIGQUIT handler installation failed.
2284 2003-01-03 Ulrich Drepper <drepper@redhat.com>
2286 * include/libc-symbols.h [HAVE_WEAK_SYMBOLS] (_weak_extern):
2287 Define using _Pragma(weak ...).
2289 2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
2291 * resolv/res_libc.c: Provide declaration for __res_init_weak and
2292 reorder declarations.
2294 2003-01-03 Art Haas <ahaas@airmail.net>
2296 * localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
2297 initializer syntax to C99.
2298 * localedata/tests-mbwc/dat_iswalpha.c: Likewise.
2299 * localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
2300 * localedata/tests-mbwc/dat_iswctype.c: Likewise.
2301 * localedata/tests-mbwc/dat_iswdigit.c: Likewise.
2302 * localedata/tests-mbwc/dat_iswgraph.c: Likewise.
2303 * localedata/tests-mbwc/dat_iswlower.c: Likewise.
2304 * localedata/tests-mbwc/dat_iswprint.c: Likewise.
2305 * localedata/tests-mbwc/dat_iswpunct.c: Likewise.
2306 * localedata/tests-mbwc/dat_iswspace.c: Likewise.
2307 * localedata/tests-mbwc/dat_iswupper.c: Likewise.
2308 * localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
2309 * localedata/tests-mbwc/dat_mblen.c: Likewise.
2310 * localedata/tests-mbwc/dat_mbrlen.c: Likewise.
2311 * localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
2312 * localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
2313 * localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
2314 * localedata/tests-mbwc/dat_mbtowc.c: Likewise.
2315 * localedata/tests-mbwc/dat_strcoll.c: Likewise.
2316 * localedata/tests-mbwc/dat_strfmon.c: Likewise.
2317 * localedata/tests-mbwc/dat_strxfrm.c: Likewise.
2318 * localedata/tests-mbwc/dat_swscanf.c: Likewise.
2319 * localedata/tests-mbwc/dat_towctrans.c: Likewise.
2320 * localedata/tests-mbwc/dat_towlower.c: Likewise.
2321 * localedata/tests-mbwc/dat_towupper.c: Likewise.
2322 * localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
2323 * localedata/tests-mbwc/dat_wcscat.c: Likewise.
2324 * localedata/tests-mbwc/dat_wcschr.c: Likewise.
2325 * localedata/tests-mbwc/dat_wcscmp.c: Likewise.
2326 * localedata/tests-mbwc/dat_wcscoll.c: Likewise.
2327 * localedata/tests-mbwc/dat_wcscpy.c: Likewise.
2328 * localedata/tests-mbwc/dat_wcscspn.c: Likewise.
2329 * localedata/tests-mbwc/dat_wcslen.c: Likewise.
2330 * localedata/tests-mbwc/dat_wcsncat.c: Likewise.
2331 * localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
2332 * localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
2333 * localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
2334 * localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
2335 * localedata/tests-mbwc/dat_wcsspn.c: Likewise.
2336 * localedata/tests-mbwc/dat_wcsstr.c: Likewise.
2337 * localedata/tests-mbwc/dat_wcstod.c: Likewise.
2338 * localedata/tests-mbwc/dat_wcstok.c: Likewise.
2339 * localedata/tests-mbwc/dat_wcstombs.c: Likewise.
2340 * localedata/tests-mbwc/dat_wcswidth.c: Likewise.
2341 * localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
2342 * localedata/tests-mbwc/dat_wctob.c: Likewise.
2343 * localedata/tests-mbwc/dat_wctomb.c: Likewise.
2344 * localedata/tests-mbwc/dat_wctrans.c: Likewise.
2345 * localedata/tests-mbwc/dat_wctype.c: Likewise.
2346 * localedata/tests-mbwc/dat_wcwidth.c: Likewise.
2348 2003-01-03 Richard Henderson <rth@redhat.com>
2350 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
2351 (inline_syscall_r0_constraint): New.
2352 (inline_syscall[0-6]): Use them.
2354 2003-01-03 Jakub Jelinek <jakub@redhat.com>
2356 * sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):
2357 Add rtld_hidden_proto.
2358 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Add rtld_hidden_def.
2359 (_dl_allocate_tls): Likewise. Remove INTDEF.
2361 2002-07-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2363 * sysdeps/sh/memcpy.S: Optimize. Based on a patch by Toshiyasu
2364 Morita <toshiyasu.morita@hsa.hitachi.com>.
2365 * sysdeps/sh/memcpy.S: Likewise.
2367 2003-01-02 Ulrich Drepper <drepper@redhat.com>
2369 * sysdeps/pthread/aio_suspend.c (aio_suspend): Don't quite remove
2370 any, but unify the test.
2372 2003-01-02 Jakub Jelinek <jakub@redhat.com>
2374 * sysdeps/unix/sysv/linux/arm/sigaction.c (__sigaction,
2375 sigaction): Protect weak_alias and libc_hidden_weak with
2376 #ifndef LIBC_SIGACTION.
2377 * sysdeps/unix/sysv/linux/ia64/sigaction.c (__sigaction,
2378 sigaction): Likewise.
2379 * sysdeps/unix/sysv/linux/mips/sigaction.c (__sigaction,
2380 sigaction): Likewise.
2381 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__sigaction,
2382 sigaction): Likewise.
2383 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (__sigaction,
2384 sigaction): Likewise.
2385 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (__sigaction,
2386 sigaction): Likewise.
2387 * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__sigaction,
2388 sigaction): Likewise.
2389 * sysdeps/unix/sysv/linux/i386/sigaction.c (__sigaction,
2390 sigaction): Likewise. Remove SIGCANCEL handling here.
2391 * sysdeps/unix/sysv/linux/sigaction.c (__sigaction, sigaction):
2394 2003-01-02 Art Haas <ahaas@airmail.net>
2396 * login/tst-utmp.c: Convert GCC extension initializer syntax to C99.
2398 2003-01-02 Ulrich Drepper <drepper@redhat.com>
2400 * posix/getconf.c: Update copyright year.
2401 * nss/getent.c: Likewise.
2402 * nscd/nscd_nischeck.c: Likewise.
2403 * iconv/iconvconfig.c: Likewise.
2404 * iconv/iconv_prog.c: Likewise.
2405 * elf/ldconfig.c: Likewise.
2406 * catgets/gencat.c: Likewise.
2407 * csu/version.c: Likewise.
2408 * elf/ldd.bash.in: Likewise.
2409 * elf/sprof.c (print_version): Likewise.
2410 * locale/programs/locale.c: Likewise.
2411 * locale/programs/localedef.c: Likewise.
2412 * nscd/nscd.c (print_version): Likewise.
2413 * debug/xtrace.sh: Likewise.
2414 * malloc/memusage.sh: Likewise.
2415 * malloc/mtrace.pl: Likewise.
2417 2003-01-01 Jakub Jelinek <jakub@redhat.com>
2419 * io/sys/stat.h: Include time.h with __need_timespec even if
2420 __USE_MISC is defined but __USE_XOPEN is not.
2422 2003-01-01 Andreas Jaeger <aj@suse.de>
2424 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Use union
2425 type to avoid strict aliasing problem.
2426 (_nss_dns_gethostbyname2_r): Likewise.
2427 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
2428 (_nss_dns_getnetbyname_r): Likewise.
2429 * resolv/gethnamaddr.c (_gethtent): Likewise.
2430 (gethostbyname2): Likewise.
2432 2002-12-31 Ulrich Drepper <drepper@redhat.com>
2434 * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
2435 to avoid using the exported symbols. Define aliases with the
2436 original names separately.
2438 * include/time.h: Add libc_hidden_proto for __strftime_l.
2439 * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
2440 * time/strftime.c: Always use libc_hidden_def if _LIBC.
2442 * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
2443 * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
2445 * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
2448 * csu/Makefile (routines): Add dso_handle.
2449 * csu/dso_handle.c: New file.
2451 2002-12-31 Roland McGrath <roland@redhat.com>
2453 * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
2454 Use $(S-CPPFLAGS) in place of $(asm-CPPFLAGS).
2455 (S-CPPFLAGS): Add -DASSEMBLER here instead.
2456 (generate-md5, +make-deps): Fix magic to get $(S-CPPFLAGS).
2458 2002-12-31 Ulrich Drepper <drepper@redhat.com>
2460 * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
2463 2002-12-31 Andreas Jaeger <aj@suse.de>
2465 * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Sync
2467 * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
2468 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Likewise.
2469 * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Likewise.
2471 * sysdeps/unix/sysv/linux/kernel_stat.h
2472 (_HAVE_STAT_NSEC,_HAVE_STAT_NSEC64): New.
2474 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
2475 __unused[1-3] since they're needed by some platforms. Handle
2476 _HAVE_STAT_NSEC and _HAVE_STAT_NSEC64.
2478 * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Add nsec resolution
2479 for structs stat and stat64.
2480 * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
2481 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
2482 * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
2483 * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
2485 * io/sys/stat.h [__USE_MISC]: Define __need_timespec for struct stat.
2487 * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Adjust for
2488 nsec resolution changes.
2489 (xstat64_conv): Likewise.
2490 (xstat32_conv): Likewise.
2492 * sysdeps/unix/sysv/linux/kernel_stat.h: Add nsec resolution for
2495 * sysdeps/unix/sysv/linux/bits/stat.h: Add nsec resolution for
2496 structs stat and stat64.
2498 * time/time.h (__timespec_defined): Define for __USE_MISC.
2500 2002-12-31 Ulrich Drepper <drepper@redhat.com>
2502 * include/signal.h: Add libc_hidden_proto for __libc_current_sigrtmin
2503 and __libc_current_sigrtmax.
2505 2002-12-31 Jakub Jelinek <jakub@redhat.com>
2507 * include/errno.h (__errno_location): Add prototype.
2508 Use libc_hidden_proto unconditionally.
2509 * include/netdb.h (__h_errno_location): Use libc_hidden_proto
2511 * include/resolv.h (__res_state): Likewise.
2513 * hurd/errno-loc.c (__errno_location): Add libc_hidden_def.
2514 * include/sys/socket.h (accept): Add libc_hidden_proto.
2515 * include/errno.h (__errno_location): Likewise.
2516 * include/netdb.h (__h_errno_location): Likewise.
2517 * include/resolv.h (__res_state): Likewise.
2518 * include/unistd.h (__lseek): Likewise.
2519 * sysdeps/generic/errno-loc.c (__errno_location): Add libc_hidden_def.
2520 * sysdeps/generic/herrno-loc.c (__h_errno_location): Likewise.
2521 * sysdeps/generic/res-state.c (__res_state): Likewise.
2522 * sysdeps/generic/accept.c (accept): Likewise.
2523 * sysdeps/generic/lseek.c (__lseek): Likewise.
2524 * sysdeps/generic/allocrtsig.c (__libc_current_sigrtmin,
2525 __libc_current_sigrtmax): Likewise.
2526 * sysdeps/mach/hurd/accept.c (accept): Likewise.
2527 * sysdeps/mach/hurd/lseek.c (__lseek): Likewise.
2528 * sysdeps/unix/sysv/aix/accept.c (accept): Likewise.
2529 * sysdeps/unix/sysv/aix/lseek.c (__lseek): Likewise.
2530 * sysdeps/unix/sysv/linux/accept.S (accept): Likewise.
2531 * sysdeps/unix/inet/syscalls.list (__GI_accept): New alias to accept.
2532 * sysdeps/unix/sysv/linux/alpha/syscalls.list (__GI_accept): Likewise.
2533 * sysdeps/unix/sysv/linux/hppa/syscalls.list (__GI_accept): Likewise.
2534 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__GI___lseek): New
2536 (__GI_accept): New alias to accept.
2537 * sysdeps/unix/sysv/linux/mips/syscalls.list (__GI_accept): Likewise.
2538 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__GI___lseek):
2539 New alias to llseek.
2540 (__GI_accept): New alias to accept.
2541 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__GI_accept):
2543 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (__GI_accept):
2545 * sysdeps/unix/syscalls.list (__GI___lseek): New alias to lseek.
2547 * sysdeps/alpha/setjmp.S : Use libc_hidden_def(name) instead of
2548 strong_alias (name, __GI_name).
2549 * sysdeps/arm/bsd-_setjmp.S : Likewise.
2550 * sysdeps/hppa/bsd-_setjmp.S : Likewise.
2551 * sysdeps/i386/bsd-_setjmp.S : Likewise.
2552 * sysdeps/mips/mips64/bsd-_setjmp.S : Likewise.
2553 * sysdeps/mips/bsd-_setjmp.S : Likewise.
2554 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S : Likewise.
2555 * sysdeps/powerpc/powerpc64/setjmp.S : Likewise.
2556 * sysdeps/s390/s390-32/elf/setjmp.S : Likewise.
2557 * sysdeps/s390/s390-32/bsd-_setjmp.S : Likewise.
2558 * sysdeps/s390/s390-64/elf/setjmp.S : Likewise.
2559 * sysdeps/s390/s390-64/bsd-_setjmp.S : Likewise.
2560 * sysdeps/sh/bsd-_setjmp.S : Likewise.
2561 * sysdeps/sparc/sparc32/setjmp.S : Likewise.
2562 * sysdeps/unix/arm/fork.S : Likewise.
2563 * sysdeps/unix/bsd/hp/m68k/vfork.S : Likewise.
2564 * sysdeps/unix/bsd/i386/vfork.S : Likewise.
2565 * sysdeps/unix/bsd/osf/alpha/fork.S : Likewise.
2566 * sysdeps/unix/bsd/sun/m68k/vfork.S : Likewise.
2567 * sysdeps/unix/bsd/ultrix4/mips/vfork.S : Likewise.
2568 * sysdeps/unix/bsd/vax/vfork.S : Likewise.
2569 * sysdeps/unix/i386/fork.S : Likewise.
2570 * sysdeps/unix/mips/fork.S : Likewise.
2571 * sysdeps/unix/sparc/fork.S : Likewise.
2572 * sysdeps/unix/sparc/vfork.S : Likewise.
2573 * sysdeps/unix/sysv/linux/arm/vfork.S : Likewise.
2574 * sysdeps/unix/sysv/linux/cris/vfork.S : Likewise.
2575 * sysdeps/unix/sysv/linux/i386/vfork.S : Likewise.
2576 * sysdeps/unix/sysv/linux/ia64/fork.S : Likewise.
2577 * sysdeps/unix/sysv/linux/ia64/setjmp.S : Likewise.
2578 * sysdeps/unix/sysv/linux/ia64/vfork.S : Likewise.
2579 * sysdeps/unix/sysv/linux/m68k/vfork.S : Likewise.
2580 * sysdeps/unix/sysv/linux/sh/vfork.S : Likewise.
2581 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S : Likewise.
2582 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S : Likewise.
2583 * sysdeps/unix/sysv/linux/sparc/fork.S : Likewise.
2584 * sysdeps/unix/sysv/linux/sparc/vfork.S : Likewise.
2585 * sysdeps/unix/sysv/linux/x86_64/vfork.S : Likewise.
2586 * sysdeps/unix/fork.S : Likewise.
2587 * sysdeps/vax/bsd-_setjmp.S : Likewise.
2588 * sysdeps/x86_64/bsd-_setjmp.S : Likewise.
2590 * sysdeps/unix/sysv/linux/ia64/sysdep.h: Guard against multiple
2593 2002-12-31 Ulrich Drepper <drepper@redhat.com>
2595 * include/unistd.h: Add libc_hidden_proto for __fork and __vfork.
2596 * sysdeps/generic/fork.c: Add libc_hidden_def for __fork.
2597 * sysdeps/mach/hurd/fork.c: Likewise.
2598 * sysdeps/unix/sysv/aix/fork.c: Likewise.
2599 * sysdeps/unix/fork.S: Add __GI___fork alias.
2600 * sysdeps/unix/arm/fork.S: Likewise.
2601 * sysdeps/unix/bsd/osf/alpha/fork.S: Likewise.
2602 * sysdeps/unix/i386/fork.S: Likewise.
2603 * sysdeps/unix/mips/fork.S: Likewise.
2604 * sysdeps/unix/sparc/fork.S: Likewise.
2605 * sysdeps/unix/sysv/linux/ia64/fork.S: Likewise.
2606 * sysdeps/unix/sysv/linux/sparc/fork.S: Likewise.
2607 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
2608 * sysdeps/generic/vfork.c: Add libc_hidden_def for __vfork.
2609 * sysdeps/unix/bsd/hp/m68k/vfork.S: Add __GI___vfork alias.
2610 * sysdeps/unix/bsd/i386/vfork.S: Likewise.
2611 * sysdeps/unix/bsd/sun/m68k/vfork.S: Likewise.
2612 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
2613 * sysdeps/unix/bsd/vax/vfork.S: Likewise.
2614 * sysdeps/unix/sparc/vfork.S: Likewise.
2615 * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
2616 * sysdeps/unix/sysv/linux/cris/vfork.S: Likewise.
2617 * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
2618 * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
2619 * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
2620 * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
2621 * sysdeps/unix/sysv/linux/sparc/vfork.S: Likewise.
2622 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
2624 * include/time.h: Add libc_hidden_proto for __nanosleep.
2625 * sysdeps/generic/nanosleep.c: Add libc_hidden_def for __nanosleep.
2626 * sysdeps/mach/nanosleep.c: Likewise.
2627 * sysdeps/unix/sysv/aix/nanosleep.c: Likewise.
2628 * sysdeps/unix/sysv/linux/syscalls.list: Add __GI___nanosleep alias.
2630 * libio/libioP.h: Add libc_hidden_proto for _IO_list_lock,
2631 _IO_list_unlock, and _IO_list_resetlock.
2632 * libio/genops.c: Add libc_hidden_def for _IO_list_lock,
2633 _IO_list_unlock, and _IO_list_resetlock.
2635 * libio/libioP.h: Add libc_hidden_proto for _IO_iter_begin,
2636 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
2637 * libio/genops.c: Add libc_hidden_def for _IO_iter_begin,
2638 _IO_iter_end, _IO_iter_next, and _IO_iter_file.
2640 * include/setjmp.h: Add libc_hidden_proto for __libc_longjmp.
2641 * sysdeps/generic/longjmp.c: Add libc_hidden_def for __longjmp.
2642 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
2643 __GI___longjmp alias.
2645 * include/setjmp.h: Add libc_hidden_proto for _setjmp.
2646 * sysdeps/alpha/setjmp.S: Add __GI__setjmp alias.
2647 * sysdeps/arm/bsd-_setjmp.S: Likewise.
2648 * sysdeps/generic/bsd-_setjmp.c: Likewise.
2649 * sysdeps/hppa/bsd-_setjmp.S: Likewise.
2650 * sysdeps/i386/bsd-_setjmp.S: Likewise.
2651 * sysdeps/m68k/bsd-_setjmp.c: Likewise.
2652 * sysdeps/mips/bsd-_setjmp.S: Likewise.
2653 * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
2654 * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
2655 * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
2656 * sysdeps/s390/s390-32/bsd-_setjmp.S: Likewise.
2657 * sysdeps/s390/s390-32/elf/setjmp.S: Likewise.
2658 * sysdeps/s390/s390-64/bsd-_setjmp.S: Likewise.
2659 * sysdeps/s390/s390-64/elf/setjmp.S: Likewise.
2660 * sysdeps/sh/bsd-_setjmp.S: Likewise.
2661 * sysdeps/sparc/sparc32/setjmp.S: Likewise.
2662 * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
2663 * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S: Likewise.
2664 * sysdeps/vax/bsd-_setjmp.S: Likewise.
2665 * sysdeps/x86_64/bsd-_setjmp.S: Likewise.
2667 2002-12-30 Ulrich Drepper <drepper@redhat.com>
2669 * malloc/thread-m.h (thread_atfork): Define using __register_atfork.
2671 2002-12-30 Roland McGrath <roland@redhat.com>
2673 * Rules (generated): Target removed.
2674 * mach/Makefile (generated): Define it here instead.
2676 * math/Makefile (generated): Add m_*l and m_*f variants too.
2678 2002-12-30 Ulrich Drepper <drepper@redhat.com>
2680 * elf/dl-close.c (_dl_close): Handle relocation dependencies among
2681 the to-be-deleted objects right away instead of later separately.
2682 The latter fails because the scope data structures of the DSO
2683 might already be gone.
2685 * elf/Makefile: Add rules to build and run reldep8 test.
2686 * elf/reldep8.c: New file.
2687 * elf/reldep8mod1.c: New file.
2688 * elf/reldep8mod2.c: New file.
2689 * elf/reldep8mod3.c: New file.
2690 Contributed by Jakub Jelinek.
2692 2002-12-24 GOTO Masanori <gotom@debian.or.jp>
2694 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
2695 checking of return value ENOSYS from getdents64.
2697 2002-12-28 Andreas Schwab <schwab@suse.de>
2699 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d.
2700 ($(common-objpfx)s-%.d): Generalized from
2701 $(common-objpfx)s-proto.d rule.
2702 (common-generated): Add s-proto-cancel.d.
2703 * sysdeps/unix/make-syscalls.sh: Use s-proto-cancel.d for
2704 cancellable syscalls.
2705 * sysdeps/unix/s-proto-cancel.S: New file.
2707 2002-12-29 Roland McGrath <roland@redhat.com>
2709 * resolv/res_libc.c: Move _res defn magic after res_init defn
2710 so _res macro is in effect for that code.
2712 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Fix sed
2713 pattern for prepending $(..) so it doesn't affect $(foo).
2715 * math/Makefile (generated): Add $(addsuffix .c .S,$(calls:s_%=m_%)).
2717 2002-12-29 Jakub Jelinek <jakub@redhat.com>
2719 * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set
2722 2002-12-28 Ulrich Drepper <drepper@redhat.com>
2724 * misc/sys/cdefs.h (__attribute_deprecated__): New #define.
2726 2002-12-28 Andreas Jaeger <aj@suse.de>
2728 * sysdeps/generic/readelflib.c (process_elf_file): Cast value to
2730 * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise.
2732 2002-12-27 Jakub Jelinek <jakub@redhat.com>
2734 * inet/herrno.c (__h_errno_location): Remove.
2735 * inet/Makefile (routines): Add herrno-loc.
2736 * resolv/res_libc.c (__res_state): Remove.
2737 * resolv/Makefile (routines): Add res-state.
2738 * sysdeps/generic/herrno-loc.c: New file.
2739 * sysdeps/generic/res-state.c: New file.
2741 2002-12-27 Jakub Jelinek <jakub@redhat.com>
2743 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
2744 Only define if USE_DL_SYSINFO is defined.
2746 2002-12-22 Jakub Jelinek <jakub@redhat.com>
2748 * sysdeps/unix/sysv/linux/ia64/sysdep.h (INLINE_SYSCALL,
2749 INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERROR):
2750 Define. Patch by Richard Henderson and Jes Sorensen.
2751 (PSEUDO): Remove unnecessary ;;.
2752 * elf/rtld.c (dl_main): Initialize TLS even if no PT_TLS segments
2753 are found unless TLS_INIT_TP_EXPENSIVE. Use NONTLS_INIT_TP.
2754 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Use NONTLS_INIT_TP
2755 if not initializing thread pointer.
2756 [!USE_TLS && NONTLS_INIT_TP] (__pthread_initialize_minimal): New.
2757 * sysdeps/generic/libc-start.c (__pthread_initialize_minimal): Don't
2758 make it weak also if NONTLS_INIT_TP.
2759 * sysdeps/unix/common/pause.c: Handle cancellation.
2760 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h [DONT_LOAD_G1]
2761 (LOADSYSCALL): Remove.
2762 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
2763 (SYSCALL_ERROR_HANDLER): Use it.
2764 (PSEUDO): Don't jump around error handler.
2765 * sysdeps/unix/sysv/linux/sparc/sparc32/pipe.S (__libc_pipe): Don't
2766 jump around error handler.
2767 * sysdeps/unix/sysv/linux/sparc/sparc32/syscall.S (syscall): Likewise.
2768 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S (__socket): Branch
2769 to __syscall_error_handler on failure.
2770 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [DONT_LOAD_G1]
2771 (LOADSYSCALL): Remove.
2772 (SYSCALL_ERROR_HANDLER_ENTRY): Define.
2773 (SYSCALL_ERROR_HANDLER): Use it.
2774 (PSEUDO): Don't jump around error handler.
2775 * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S (__libc_pipe): Don't
2776 jump around error handler.
2777 * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S (syscall): Likewise.
2778 * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S (__socket): Branch
2779 to __syscall_error_handler on failure.
2781 2002-12-27 Roland McGrath <roland@redhat.com>
2783 * scripts/gen-as-const.awk: New file.
2784 * Makefile (distribute): Add it.
2785 * Makerules ($(common-objpfx)%.h %.h.d: %.sym): New pattern rule.
2786 (before-compile): Add $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
2788 (+depfiles): Add $(addprefix $(common-objpfx),$(gen-as-const-headers)).
2790 2002-12-27 Andreas Schwab <schwab@suse.de>
2792 * sysdeps/unix/sysv/linux/m68k/socket.S: Add cancellation support.
2794 2002-12-27 Jakub Jelinek <jakub@redhat.com>
2796 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if
2799 2002-12-27 Andreas Schwab <schwab@suse.de>
2801 * Makerules ($(common-objpfx)%.make): Filter through
2802 $(sed-remove-objpfx).
2804 2002-12-23 Roland McGrath <roland@redhat.com>
2806 * scripts/abilist.awk: Produce a more compact format, divided into
2807 stanzas for each version set, the set name listed only once.
2808 * scripts/extract-abilist.awk: New file.
2809 * scripts/merge-abilist.awk: New file.
2810 * Makerules (check-abi-%, update-abi-%): New pattern rules.
2811 (update-abi, check-abi): New targets.
2812 * Makefile (+subdir_targets): Add subdir_{check,update}-abi.
2814 2002-12-19 Roland McGrath <roland@redhat.com>
2816 * Makerules (%.symlist): Use LC_ALL=C when running awk script.
2818 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Cast result of
2821 2002-12-21 Andreas Schwab <schwab@suse.de>
2823 * elf/check-textrel.c (handle_file): Swap p_type.
2825 2002-12-21 Andreas Schwab <schwab@suse.de>
2827 * sysdeps/unix/sysv/linux/m68k/sysdep.h (INTERNAL_SYSCALL): Define.
2828 (INLINE_SYSCALL): Use it.
2829 (INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): Define.
2830 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
2832 * sysdeps/unix/sysv/linux/m68k/getpagesize.c: Use INTERNAL_SYSCALL.
2833 * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
2835 2002-12-20 Art Haas <ahaas@airmail.net>
2837 * sysdeps/gnu/siglist.c: Convert GCC extension initializer
2840 2002-12-21 Philip Blundell <philb@gnu.org>
2842 * sysdeps/arm/elf/start.S (_start): Optimise a little. Push stack
2843 top as seventh arg to __libc_start_main.
2844 Reported by paulnash@wildseed.com.
2846 * sysdeps/unix/sysv/linux/arm/clone.S: Small optimisation.
2848 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Elide
2849 compatibility cruft when new enough kernel is assumed.
2851 2002-12-20 Jakub Jelinek <jakub@redhat.com>
2853 * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
2854 instead of INLINE_SYSCALL.
2856 2002-12-20 Ulrich Drepper <drepper@redhat.com>
2858 * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
2861 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Define SHM_HUGETLB.
2862 * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
2863 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
2864 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
2865 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2866 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2867 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2868 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2869 * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
2870 Patch by William Lee Irwin <wli@holomorphy.com>.
2872 2002-12-20 Andreas Schwab <schwab@suse.de>
2874 * locale/programs/ld-measurement.c (measurement_output): Fix
2877 2002-12-20 Ulrich Drepper <drepper@redhat.com>
2879 * include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]:
2880 Redefine _IO_flockifle and _IO_funlockfile as inlines.
2882 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): For TLS
2883 builds add "tls" in the search path.
2884 * elf/ldconfig.c (is_hwcap_platform): Also recognize "tls".
2885 (path_hwcap): Recognize "tls".
2887 2002-12-19 Ulrich Drepper <drepper@redhat.com>
2889 * sysdeps/unix/sysv/linux/i386/system.c (cancel_handler): Use
2890 __waitpid instead of waitpid.
2892 * sysdeps/unix/sysv/linux/i386/_exit.S: Use ENTER_KERNEL instead of
2894 * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
2895 * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
2896 * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
2898 * sysdeps/unix/sysv/linux/i386/sysdep.h: Add support to use AT_SYSINFO
2899 information for system calls.
2901 * sysdeps/generic/dl-sysdep.h: Define RTLD_PRIVATE_ERRNO to 1 only
2904 * elf/rtld.c (_dl_start) [USE___THREAD]: Define initdtv.
2906 2002-12-19 Roland McGrath <roland@redhat.com>
2908 * iconvdata/ibm856.h: Convert GCC extension initializer syntax to C99.
2909 * iconvdata/ibm922.h: Likewise.
2910 * iconvdata/ibm930.h: Likewise.
2911 * iconvdata/ibm932.h: Likewise.
2912 * iconvdata/ibm933.h: Likewise.
2913 * iconvdata/ibm935.h: Likewise.
2914 * iconvdata/ibm937.h: Likewise.
2915 * iconvdata/ibm939.h: Likewise.
2916 * iconvdata/ibm943.h: Likewise.
2917 * iconvdata/isiri-3342.h: Likewise.
2919 2002-12-19 Ulrich Drepper <drepper@redhat.com>
2921 * test-skeleton.c (main): Make sure correct value is seen as
2922 argv[0] after adjustment of argv, and argc.
2924 * elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
2925 RTLD_CORRECT_DYNAMIC_WEAK is defined.
2927 2002-12-19 Jakub Jelinek <jakub@redhat.com>
2929 * nscd/connections.c (nscd_run): Shut up warning.
2930 * tst-ungetc.c (assert): Undefined before redefining.
2932 2002-12-19 Ulrich Drepper <drepper@redhat.com>
2934 * posix/regex.c: Use __builtin_expect even outside glibc if gcc 3
2937 2002-12-17 Art Haas <ahaas@airmail.net>
2939 * iconvdata/cp737.h: Convert GCC extension initializer syntax to C99.
2940 * iconvdata/cp775.h: Likewise.
2941 * iconvdata/ibm1046.h: Likewise.
2942 * iconvdata/ibm1124.h: Likewise.
2943 * iconvdata/ibm1129.h: Likewise.
2944 * iconvdata/ibm1132.h: Likewise.
2945 * iconvdata/ibm1133.h: Likewise.
2946 * iconvdata/ibm1160.h: Likewise.
2947 * iconvdata/ibm1161.h: Likewise.
2948 * iconvdata/ibm1162.h: Likewise.
2949 * iconvdata/ibm1163.h: Likewise.
2950 * iconvdata/ibm1164.h: Likewise.
2952 2002-12-19 Ulrich Drepper <drepper@redhat.com>
2954 * sysdeps/unix/sysv/linux/i386/system.c: Define FORK only if
2955 __ASSUME_CLONE_THREAD_FLAGS is defined.
2956 * sysdeps/unix/sysv/linux/kernel-features.h
2957 (__ASSUME_CLONE_THREAD_FLAGS): Define for x86 and kernel >= 2.5.50.
2959 2002-12-18 Ulrich Drepper <drepper@redhat.com>
2961 * sysdeps/unix/sysv/linux/i386/brk.c: Use INTERNAL_SYSCALL instead
2963 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
2965 * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize
2967 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
2969 * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of
2971 [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed
2973 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
2974 Check for AT_SYSINFO and set _dl_sysinfo appropriately.
2975 * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]:
2978 2002-12-18 Jakub Jelinek <jakub@redhat.com>
2980 * misc/Versions [libc: GLIBC_2.3.1]: Move __libc_readv and
2982 [libc: GLIBC_PRIVATE]: ...here.
2983 * sysvipc/Versions [libc: GLIBC_2.3.1]: Move __libc_msgrcv and
2985 [libc: GLIBC_PRIVATE]: ...here.
2987 2002-12-18 Ulrich Drepper <drepper@redhat.com>
2989 * sysdeps/unix/sysv/linux/i386/sysdep.h: Define ENTER_KERNEL macro.
2990 Use it instead of directly int $0x80.
2991 * sysdeps/unix/sysv/linux/i386/brk.c: Use ENTER_KERNEL.
2992 * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2993 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
2994 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
2995 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
2996 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
2998 2002-12-17 Ulrich Drepper <drepper@redhat.com>
3000 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized.
3002 * elf/elf.h (AT_SYSINFO): New define.
3003 * sysdeps/generic/dl-sysdep.c (_dl_show_auxv): Add support for
3006 2002-12-17 Jakub Jelinek <jakub@redhat.com>
3008 * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgrcv, msgsnd):
3010 * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgrcv, msgsnd):
3012 * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgrcv, msgsnd):
3014 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgrcv, msgsnd):
3016 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgrcv, msgsnd):
3018 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__sigsuspend): Likewise.
3020 * malloc/thread-m.h (mutex_init, mutex_lock, mutex_trylock,
3021 mutex_unlock): If not building NPTL, use __libc_maybe_call2 if
3022 available, otherwise __libc_maybe_call.
3023 * sysdeps/unix/sysv/linux/x86_64/recv.c: Add support for
3024 cancellation handling.
3025 * sysdeps/unix/sysv/linux/x86_64/send.c: Likewise.
3027 2002-12-17 Isamu Hasegawa <isamu@yamato.ibm.com>
3029 * posix/regcomp.c (free_workarea_compile): Free the new member
3031 (analyze): Initialize ORG_INDICES.
3032 (duplicate_node_closure): Search for a existing node, which is
3033 duplicated from the node ORG_DEST and satisfies the constraint
3034 CONSTRAINT. And use it to avoid inifimite loop.
3035 (search_duplicated_node): New function.
3036 (duplicate_node): Store the index of the original node.
3037 * posix/regex_internal.c (re_dfa_add_node): Realloc ORG_INDICES
3039 * posix/regex_internal.h (re_dfa_t): Add new members.
3041 2002-12-17 Ulrich Drepper <drepper@redhat.com>
3043 * stdio-common/tst-fdopen.c: Undefine assert before redefining it.
3045 2002-12-16 Ulrich Drepper <drepper@redhat.com>
3047 * sysdeps/posix/system.c (do_system): Add support for installation
3048 of cancellation handlers.
3049 * sysdeps/unix/sysv/linux/i386/system.c: New file.
3051 * stdlib/Makefile (tests): Add tst-system.
3052 * stdlib/tst-system.c: New file.
3054 * sysdeps/unix/sysv/linux/i386/socket.S [NEED_CANCELLATION &&
3055 CENABLE]: Don't lose content of %ebx.
3057 2002-12-17 Jakub Jelinek <jakub@redhat.com>
3059 * sysdeps/unix/sysv/linux/i386/socket.S: Use SINGLE_THREAD_P
3060 macro instead of comparing %gs:MULTIPLE_THREADS_OFFSET directly.
3062 2002-12-16 Ulrich Drepper <drepper@redhat.com>
3064 * sysdeps/posix/getaddrinfo.c (gaih_inet): If __nss_lookup_function
3065 fails to return a function pointer don't use it.
3067 2002-12-16 Art Haas <ahaas@airmail.net>
3069 * io/ftw.c: Convert GCC extension initializer syntax to C99.
3070 * iconvdata/iso-ir-165.c: Likewise.
3071 * iconvdata/jis0208.c: Likewise.
3072 * iconvdata/jis0212.c: Likewise.
3074 2002-12-16 Ulrich Drepper <drepper@redhat.com>
3076 * sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create,
3077 epoll_ctl, and epoll_wait.
3078 * sysdeps/unix/sysv/linux/Versions [libc: GLIBC_2.3.2]: Add
3079 epoll_create, epoll_ctl, and epoll_wait.
3080 * sysdeps/unix/sysv/linux/sys/epoll.h: New file. Written by
3081 Davide Libenzi <davidel@xmailserver.org>.
3082 * sysdeps/unix/sysv/linux/Dist: Add sys/epoll.h.
3083 * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
3086 2002-12-16 Art Haas <ahaas@airmail.net>
3088 * sysdeps/generic/bp-semctl.h: Convert GCC extension initializer
3090 * sysdeps/unix/sysv/aix/settimer.c: Likewise.
3091 * sysdeps/unix/sysv/aix/sleep.c: Likewise.
3092 * sysdeps/unix/sysv/aix/usleep.c: Likewise.
3094 2002-12-16 Ulrich Drepper <drepper@redhat.com>
3096 * stdio-common/Makefile (routines): Remove lockfile. Add
3097 flockfile, ftrylockfile, and funlockfile.
3098 * sysdeps/generic/lockfile.c: Removed. Each function has its own file.
3099 * sysdeps/generic/flockfile.c: New file.
3100 * sysdeps/generic/ftrylockfile.c: New file.
3101 * sysdeps/generic/funlockfile.c: New file.
3103 2002-12-16 Jakub Jelinek <jakub@redhat.com>
3105 * sysdeps/unix/sysv/linux/i386/socket.S: Use CENABLE and CDISABLE
3106 macros instead of doing the calls directly.
3107 * sysdeps/unix/make-syscalls.sh: Add ptw-*.$o target name to rules.
3108 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for ptw-%
3111 2002-12-16 Jakub Jelinek <jakub@redhat.com>
3113 * sysdeps/i386/fpu/bits/mathinline.h: Backout last change.
3114 * sysdeps/ieee754/bits/nan.h: Likewise.
3116 * sysdeps/unix/sysv/linux/ia64/syscalls.list (__syscall_open,
3117 __syscall_wait4, __syscall_ioctl, __syscall_write): Add.
3119 2002-12-16 Roland McGrath <roland@redhat.com>
3121 * sunrpc/xdr_mem.c (xdrmem_inline): Fix argument type.
3122 * sunrpc/xdr_rec.c (xdrrec_inline): Likewise.
3123 * sunrpc/xdr_stdio.c (xdrstdio_inline): Likewise.
3125 * sysdeps/unix/sysv/linux/syscalls.list: Add getpmsg, putpmsg.
3126 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove s_getpmsg,
3128 * sysdeps/unix/sysv/linux/i386/getpmsg.c: File removed.
3129 * sysdeps/unix/sysv/linux/i386/putpmsg.c: File removed.
3130 * sysdeps/unix/sysv/linux/m68k/getpmsg.c: File removed.
3131 * sysdeps/unix/sysv/linux/m68k/putpmsg.c: File removed.
3132 * sysdeps/unix/sysv/linux/mips/getpmsg.c: File removed.
3133 * sysdeps/unix/sysv/linux/mips/putpmsg.c: File removed.
3134 * sysdeps/unix/sysv/linux/powerpc/getpmsg.c: File removed.
3135 * sysdeps/unix/sysv/linux/powerpc/putpmsg.c: File removed.
3137 2002-12-13 Paul Eggert <eggert@twinsun.com>
3139 * sunrpc/rpc/xdr.h (struct XDR.xdr_ops.x_inline): 2nd arg
3140 is now u_int, not int.
3141 (struct XDR.x_handy): Now u_int, not int.
3142 * sunrpc/xdr_mem.c: Include <limits.h>.
3143 (xdrmem_getlong, xdrmem_putlong, xdrmem_getbytes, xdrmem_putbytes,
3144 xdrmem_inline, xdrmem_getint32, xdrmem_putint32):
3145 x_handy is now unsigned, not signed.
3146 Do not decrement x_handy if no change is made.
3147 (xdrmem_setpos): Check for int overflow.
3148 * sunrpc/xdr_sizeof.c (x_inline): 2nd arg is now unsigned.
3149 (xdr_sizeof): Remove cast that is now unnecessary, now that
3150 x_handy is unsigned.
3152 2002-12-15 Art Haas <ahaas@airmail.net>
3154 * iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
3155 * iconvdata/gap.awk: Likewise.
3156 * iconvdata/gen-8bit-gap-1.sh: Likewise.
3157 * iconvdata/gen-8bit-gap.sh: Likewise.
3158 * locale/C-address.c: Likewise.
3159 * locale/C-collate.c: Likewise.
3160 * locale/C-ctype.c: Likewise.
3161 * locale/C-identification.c: Likewise.
3162 * locale/C-measurement.c: Likewise.
3163 * locale/C-messages.c: Likewise.
3164 * locale/C-monetary.c: Likewise.
3165 * locale/C-name.c: Likewise.
3166 * locale/C-numeric.c: Likewise.
3167 * locale/C-paper.c: Likewise.
3168 * locale/C-telephone.c: Likewise.
3169 * locale/C-time.c: Likewise.
3170 * nscd/connections.c: Likewise.
3171 * nscd/grpcache.c: Likewise.
3172 * nscd/hstcache.c: Likewise.
3173 * nscd/pwdcache.c: Likewise.
3174 * stdio-common/vfprintf.c: Likewise.
3175 * stdlib/random.c: Likewise.
3176 * sysdeps/generic/siglist.c: Likewise.
3177 * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
3178 * sysdeps/ieee754/bits/nan.h: Likewise.
3179 * sysdeps/posix/sprofil.c: Likewise.
3180 * sysdeps/unix/sysv/linux/sleep.c: Likewise.
3181 * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
3182 * sysdeps/unix/sysv/linux/usleep.c: Likewise.
3184 2002-12-15 Roland McGrath <roland@redhat.com>
3186 * sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
3188 * sysdeps/unix/sysv/linux/wait.c: Don't include <nptl/pthreadP.h> or
3189 <tls.h> here, no need for it.
3190 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
3192 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): Take ARG as void *
3193 parameter, not varargs parameter.
3195 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_RESET): Evaluate the
3196 argument so it's not an unused variable.
3198 * resolv/resolv.h (__p_key_syms, __p_cert_syms, __p_class_syms,
3199 __p_type_syms, __p_rcode_syms): Remove decls, never really intended
3202 * resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.
3204 2002-12-15 Ulrich Drepper <drepper@redhat.com>
3206 * sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
3207 original __libc_fcntl code. Just renamed.
3209 2002-12-15 Andreas Schwab <schwab@suse.de>
3211 * sysdeps/unix/sysv/linux/m68k/clone.S: Make inline syscall to _exit.
3213 2002-12-14 Olaf Hering <olh@suse.de>
3215 * sysdeps/powerpc/bits/setjmp.h: Include <bits/wordsize.h>.
3216 * sysdeps/powerpc/powerpc64/setjmp.S: Fix typo in r18 load.
3218 2002-12-15 Ulrich Drepper <drepper@redhat.com>
3220 * sysdeps/unix/sysv/linux/libc_fatal.c: New file.
3222 * sysdeps/generic/sysdep-cancel.h: Add dummy definitions for
3223 SINGLE_THREAD_P, LIBC_CANCEL_ASYNC, and LIBC_CANCEL_RESET.
3225 * sysdeps/unix/sysv/linux/open64.c: New file.
3227 * sysdeps/generic/pselect.c: Add support for cancellation handling.
3228 * sysdeps/posix/open64.c: Likewise.
3229 * sysdeps/posix/sigpause.c: Likewise.
3230 * sysdeps/posix/sigwait.c: Likewise.
3231 * sysdeps/posix/system.c: Likewise.
3232 * sysdeps/posix/waitid.c: Likewise.
3233 * sysdeps/unix/sysv/linux/accept.S: Likewise.
3234 * sysdeps/unix/sysv/linux/connect.S: Likewise.
3235 * sysdeps/unix/sysv/linux/llseek.c: Likewise.
3236 * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
3237 * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
3238 * sysdeps/unix/sysv/linux/poll.c: Likewise.
3239 * sysdeps/unix/sysv/linux/pread.c: Likewise.
3240 * sysdeps/unix/sysv/linux/pread64.c: Likewise.
3241 * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
3242 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
3243 * sysdeps/unix/sysv/linux/readv.c: Likewise.
3244 * sysdeps/unix/sysv/linux/recv.S: Likewise.
3245 * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
3246 * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
3247 * sysdeps/unix/sysv/linux/send.S: Likewise.
3248 * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
3249 * sysdeps/unix/sysv/linux/sendto.S: Likewise.
3250 * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
3251 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
3252 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
3253 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
3254 * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
3255 * sysdeps/unix/sysv/linux/wait.c: Likewise.
3256 * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
3257 * sysdeps/unix/sysv/linux/writev.c: Likewise.
3258 * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
3259 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3261 2002-12-14 Jakub Jelinek <jakub@redhat.com>
3263 * sysdeps/generic/sysdep-cancel.h: New file.
3264 * sysdeps/unix/make-syscalls.sh: Handle C at start of args as
3266 * sysdeps/unix/inet/syscalls.list (accept, connect, recv, recvfrom,
3267 recvmsg, send, sendmsg, sendto): Make cancelable.
3268 * sysdeps/unix/mman/syscalls.list (msync): Likewise.
3269 * sysdeps/unix/sysv/linux/alpha/syscalls.list (llseek, pread,
3270 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
3271 sendto, osf_select): Likewise.
3272 * sysdeps/unix/sysv/linux/hppa/syscalls.list (accept, connect, recv,
3273 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
3274 * sysdeps/unix/sysv/linux/ia64/syscalls.list (llseek, pread,
3275 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
3277 * sysdeps/unix/sysv/linux/mips/syscalls.list (accept, connect, recv,
3278 recvfrom, recvmsg, send, sendmsg, sendto): Likewise.
3279 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (llseek, pread,
3280 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
3282 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (llseek, pread,
3283 pwrite, accept, connect, recv, recvfrom, recvmsg, send, sendmsg,
3284 sendto, select): Likewise.
3285 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (llseek, pread,
3286 pwrite, accept, connect, recvfrom, recvmsg, sendmsg, sendto):
3288 * sysdeps/unix/sysv/linux/syscalls.list (creat, nanosleep, pause,
3289 select, fcntl): Likewise.
3290 * sysdeps/unix/sysv/syscalls.list (pause, poll): Likewise.
3291 * sysdeps/unix/syscalls.list (close, fcntl, fsync, lseek, open,
3292 read, readv, select, sigsuspend, write, writev): Likewise.
3294 2002-12-14 Jakub Jelinek <jakub@redhat.com>
3296 * dirent/bug-readdir1.c: Include unistd.h.
3298 2002-12-13 Jakub Jelinek <jakub@redhat.com>
3300 * locale/programs/locale.c: Include locarchive.h.
3301 (ARCHIVE_NAME): Define.
3302 (write_archive_locales): New function.
3303 (write_locales): Use it. Ensure the same locale is not printed
3304 multiple times in verbose mode.
3305 Mode LC_IDENTIFICATION and LC_CTYPE printing into...
3306 (print_LC_IDENTIFICATION, print_LC_CTYPE): ... these helper
3308 (struct nameent): New type.
3309 (nameentcmp): New function.
3311 2002-12-14 Jakub Jelinek <jakub@redhat.com>
3313 * posix/regex_internal.c (re_string_context_at): Guard wide char
3314 code with #ifdef RE_ENABLE_I18N.
3316 2002-11-22 Paolo Bonzini <bonzini@gnu.org>
3318 * posix/regcomp.c (regcomp): __re_compile_fastmap -> re_compile_fastmap
3320 2002-12-13 Roland McGrath <roland@redhat.com>
3322 * posix/bug-regex15.c: New file.
3323 * posix/Makefile (tests): Add it.
3325 * test-skeleton.c (TEST_DATA_LIMIT): New macro, default to 64MB.
3326 (main): Set RLIMIT_DATA limit to TEST_DATA_LIMIT (or lower if need be).
3328 2002-12-13 Ulrich Drepper <drepper@redhat.com>
3330 * elf/dl-misc.c (_dl_debug_vdprintf): Don't depend on 5-digit PIDs.
3332 * misc/syslog.c (log_cleanup): Don't use parameter in
3333 __libc_lock_unlock call, use syslog_lock directly. Adjust callers to
3334 pass NULL instead of a pointer to syslog_lock.
3336 2002-12-12 Ulrich Drepper <drepper@redhat.com>
3338 * iconvdata/Makefile: iconv-rules: Add definition to use gconv.map
3339 linker map for all iconv modules.
3340 (distribute): Add gconv.map.
3341 * iconvdata/gconv.map: New file.
3343 * elf/Makefile: Also check all iconv modules for text relocations.
3345 * stdlib/Makefile: Remove code to automatically import GMP.
3347 * elf/Makefile (tests): Add rules to build and run check-textrel.
3348 * elf/check-textrel.c: New file.
3350 * sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
3353 2002-12-11 Jakub Jelinek <jakub@redhat.com>
3355 * io/test-utime (main): If stnow.st[am]time is wrong, print it and
3358 2002-04-30 Bruno Haible <bruno@clisp.org>
3360 * intl/loadmsgcat.c (_nl_init_domain_conv): Don't append //TRANSLIT to
3361 the encoding if it already has slashes.
3362 Reported by Perry Rapp <prapp@erols.com>.
3364 2002-12-11 Roland McGrath <roland@redhat.com>
3366 * csu/Makefile ($(objpfx)elf-init.oS): Remove target, braino.
3367 (CPPFLAGS-elf-init.oS, CFLAGS-elf-init.oS): New variables.
3368 Turn off PIC for compiling this file.
3370 2002-12-11 Ulrich Drepper <drepper@redhat.com>
3372 * malloc/thread-m.h: Remove thread_id type and MUTEX_INITIALIZER
3373 definitions. Not needed.
3374 [_LIBC]: Use definitions from libc-lock.h instead of referencing
3375 pthread routines directly.
3376 * malloc/arena.c (ptmalloc_unlock_all2): Don't add (void) to
3378 (arena_get2): Don't look at return value of mutex_lock.
3380 2002-12-11 Roland McGrath <roland@redhat.com>
3382 * csu/Makefile ($(objpfx)elf-init.oS): New target, just clone
3383 elf-init.o instead of compiling a PIC version.
3385 2002-12-11 Bruno Haible <bruno@clisp.org>
3387 * intl/gettext.h: Renamed to ...
3388 * intl/gmo.h: ... here.
3389 * intl/Makefile (distribute): Add gmo.h, remove gettext.h.
3390 * intl/gettextP.h: Update.
3391 * intl/loadmsgcat.c: Update.
3393 * intl/gettextP.h (PARAMS): Make more portable.
3394 (attribute_hidden): Define as empty macro if not already defined.
3395 * intl/hash-string.h (PARAMS): Make more portable.
3396 * intl/loadinfo.h (PARAMS): Likewise.
3397 * intl/plural-exp.h (PARAMS): Likewise.
3398 (attribute_hidden): Move definition near the definition of
3401 * intl/gettextP.h (_nl_locale_name) [!_LIBC]: New declaration.
3402 * intl/plural-exp.h (plural_eval) [!_LIBC]: New declaration.
3404 2002-07-13 Bruno Haible <bruno@clisp.org>
3406 * intl/dcigettext.c (freea): New macro.
3407 (FREE_BLOCKS): Free also the registered blocks.
3408 (DCIGETTEXT): Free the 'search' variable.
3409 Reported by Andreas Fischer <a.fischer@asentics.de>.
3411 2002-04-27 Bruno Haible <bruno@clisp.org>
3413 * intl/gettextP.h [! _LIBC]: Use prefix libintl_ instead of suffix __.
3414 * intl/dcigettext.c: Likewise.
3415 * intl/dcgettext.c: Likewise.
3416 * intl/dgettext.c: Likewise.
3417 * intl/gettext.c: Likewise.
3418 * intl/dcngettext.c: Likewise.
3419 * intl/dngettext.c: Likewise.
3420 * intl/ngettext.c: Likewise.
3421 * intl/textdomain.c: Likewise.
3422 * intl/bindtextdom.c: Likewise.
3423 * intl/plural-exp.h: Likewise.
3425 2002-01-02 Bruno Haible <bruno@clisp.org>
3427 * intl/loadmsgcat.c (_nl_init_domain_conv): Use PARAMS in extern decl.
3429 2001-04-30 Bruno Haible <bruno@clisp.org>
3431 * intl/dcigettext.c (getuid, getgid, geteuid, getegid): Provide
3432 default macro definitions. Needed for mingw32.
3434 2002-12-10 Ulrich Drepper <drepper@redhat.com>
3436 * sysdeps/i386/bits/byteswap.h (__bswap_64): Apply
3437 __builtin_constant_p to macro parameter.
3439 * sysdeps/generic/sigpause.c: Define all functions as weak.
3440 * sysdeps/posix/sigpause.c: Likewise.
3442 * elf/tst-tls7.c (do_test): Adjustments for l_tls_modid being of
3445 2002-12-10 Jakub Jelinek <jakub@redhat.com>
3447 * elf/tst-array1.c (preinit_array, init_array, fini_array):
3448 Explicitly align the array to sizeof (void *).
3449 * elf/tst-array2dep.c (init_array, fini_array): Likewise.
3451 * include/libc-symbols.h: Fix a comment typo.
3453 * sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
3454 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
3456 * sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
3458 * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
3459 (__libc_sigsuspend): Likewise.
3460 * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
3461 (__libc_sigsuspend): Likewise.
3462 * sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
3463 (creat): New weak alias.
3465 2002-12-10 Roland McGrath <roland@redhat.com>
3467 * manual/libc-texinfo.sh: Emit @set ADD-ON for each ADD-ON that
3468 contributes a manual chapter.
3469 * manual/signal.texi (Process Signal Mask): Use @ifset linuxthreads
3472 * sysdeps/unix/sysv/linux/dl-librecon.h (EXTRA_LD_ENVVARS): Refer to
3473 and move contents to ...
3474 (EXTRA_LD_ENVVARS_LINUX): ... this new macro. Add break for nonmatch.
3475 * sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS): Use
3476 it instead of duplicating its contents.
3477 (EXTRA_LD_ENVVARS): Likewise. Add break for nonmatch.
3479 2002-12-09 Jakub Jelinek <jakub@redhat.com>
3481 * elf/dl-support.c (_dl_non_dynamic_init): Add DL_OSVERSION_INIT if
3483 * sysdeps/unix/sysv/linux/dl-librecon.h (_dl_osversion_init): New
3485 (EXTRA_LD_ENVVARS): Use it.
3486 (DL_OSVERSION_INIT): Define.
3487 * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Include linux
3489 (EXTRA_LD_ENVVARS): Undef before defining. Use _dl_osversion_init.
3491 2002-12-10 Ulrich Drepper <drepper@redhat.com>
3493 * Versions.def: No new symbols in 2.3.1, but some new ones in 2.3.2.
3495 * sysdeps/unix/closedir.c (__closedir): Remove __libc_lock_lock
3496 call. It is not allowed to destroy pthread mutexes which are
3497 still in use even though it is safe for our implementations. If
3498 somebody still uses the descriptor it is a bug.
3500 2002-12-09 Richard Henderson <rth@redhat.com>
3502 * csu/abi-note.S: Use .p2align, not .align.
3504 2002-12-09 Ulrich Drepper <drepper@redhat.com>
3506 * sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
3507 __libc_select aliases.
3509 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
3512 * sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.
3514 * sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.
3516 * sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.
3518 * sysdeps/unix/syscalls.list: Define __libc_select alias.
3520 * sysdeps/posix/waitid.c: Define __libc_waitid alias.
3522 * sysdeps/posix/sigpause.c: Define __libc_sigpause and
3523 __libc___xpg_sigpause aliases.
3525 * sysdeps/generic/pselect.c: Define __libc_pselect alias.
3527 * misc/error.c: Remove use of USE_IN_LIBIO.
3529 2002-12-08 Roland McGrath <roland@redhat.com>
3531 * elf/Makefile (tests): Uncomment tst-array[123].
3532 * Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
3533 * csu/elf-init.c: New file.
3534 * csu/Makefile (routines, static-only-routines): Add elf-init.
3535 * sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
3536 and __libc_csu_fini in place of _fini.
3537 * sysdeps/arm/elf/start.S: Likewise.
3538 * sysdeps/cris/elf/start.S: Likewise.
3539 * sysdeps/hppa/elf/start.S: Likewise.
3540 * sysdeps/i386/elf/start.S: Likewise.
3541 * sysdeps/ia64/elf/start.S: Likewise.
3542 * sysdeps/m68k/elf/start.S: Likewise.
3543 * sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
3544 * sysdeps/mips/elf/start.S: Likewise.
3545 * sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
3546 * sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
3547 * sysdeps/s390/s390-32/elf/start.S: Likewise.
3548 * sysdeps/s390/s390-64/elf/start.S: Likewise.
3549 * sysdeps/sh/elf/start.S: Likewise.
3550 * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3551 * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3552 * sysdeps/x86_64/elf/start.S: Likewise.
3554 * sysdeps/pthread/aio_notify.c (notify_func_wrapper): Take a malloc'd
3555 struct containing function ptr and value, free it.
3556 (__aio_notify_only): Allocate that and copy values from SIGEV into it.
3557 It's not safe to let the new thread use the SIGEV pointer.
3559 2001-10-20 Paul Eggert <eggert@twinsun.com>
3561 * misc/error.c (strerror_r): Do not declare unless [!_LIBC].
3562 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
3563 Use strerror_r that is only a macro, even if it is not a function.
3564 (strerror): Check for HAVE_DECL_STRERROR before declaring.
3565 (private_strerror): Use prototypes, not old-style function definition.
3566 (print_errno_message): New function.
3567 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
3569 (error_tail, error, error_at_line): Use it.
3571 2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
3573 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA #define.
3575 2002-12-08 Ulrich Drepper <drepper@redhat.com>
3577 * scripts/output-format.sed: Fix bug in one of the s expressions
3578 which used / for one too many things.
3580 * include/unistd.h: Declare __libc_close.
3582 2002-12-07 Ulrich Drepper <drepper@redhat.com>
3584 * sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
3586 2002-12-07 Roland McGrath <roland@redhat.com>
3588 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Reintroduce changes
3589 from 2002-12-06, but remove unnecessary memset call without removing
3590 necessary copy of initialization image.
3592 * Makerules ($(common-objpfx)format.lds): New target.
3593 (common-generated): Add it.
3594 ($(inst_libdir)/libc.so): Depend on that, and cat it into the result.
3595 * scripts/output-format.sed: New file.
3596 * Makefile (distribute): Add it.
3598 2002-12-07 Ulrich Drepper <drepper@redhat.com>
3600 * sysdeps/generic/libc-tls.c: Include <sys/param.h>.
3601 Reported by Art Haas <ahaas@airmail.net>.
3603 2002-12-07 Kenneth W. Chen <kenneth.w.chen@intel.com>
3605 * sysdeps/ia64/strncpy.S (strncpy): Clear ar.ec. Fix .recovery4.
3607 2002-12-07 Jakub Jelinek <jakub@redhat.com>
3609 * string/test-strncpy.c (do_random_tests): Improve test coverage.
3611 2002-12-06 Ulrich Drepper <drepper@redhat.com>
3613 * test-skeleton.c (timeout_handler): Allow expected signal to be
3616 * wctype/wcfuncs.c: Add libc_hidden_def for iswalnum.
3618 * sysdeps/posix/raise.c: Add libc_hidden_def for raise.
3620 2002-12-07 Jakub Jelinek <jakub@redhat.com>
3622 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h [RTLD_PRIVATE_ERRNO]
3623 (SYSCALL_ERROR_HANDLER): Fix a pasto.
3624 Reported by Jeff Bailey <jbailey@nisa.net>.
3626 2002-12-06 Ulrich Drepper <drepper@redhat.com>
3628 * sysdeps/generic/libc-tls.c: Undo last patch.
3630 * include/wctype.h: Define iswalnum with libc_hidden_proto.
3632 * include/signal.h: Define raise with libc_hidden_proto.
3634 * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Use __snprintf and
3635 __execve instead of snprintf and execve.
3637 * sysdeps/x86_64/fpu/libm-test-ulps: Relax errors for float and double
3640 2002-12-06 Jakub Jelinek <jakub@redhat.com>
3642 * posix/Makefile (annexc.out): Add -I../dir for all sorted-dirs.
3643 * posix/annexc.c (fmt, testfmt): Remove -D_LIBC.
3645 2002-12-06 Ulrich Drepper <drepper@redhat.com>
3647 * misc/syslog.c (log_cleanup): New function.
3648 (openlog): Use log_cleanup instead of __libc_mutex_unlock.
3649 (closelog): Likewise.
3651 * elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
3652 * elf/dl-iteratephdr.c: Likewise.
3653 * elf/dl-lookup.c: Likewise.
3654 * elf/dl-misc.c: Likewise.
3655 * elf/dl-open.c: Likewise.
3656 * elf/dl-support.c: Likewise.
3657 * elf/rtld.c: Likewise.
3658 * sysdeps/generic/ldsodefs.h: Likewise.
3659 * sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
3660 * sysdeps/mach/bits/libc-lock.h: Likewise.
3661 * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
3663 2002-12-06 Roland McGrath <roland@redhat.com>
3665 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
3667 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
3668 (malloc_starter, memalign_starter, free_starter): Don't define these.
3669 * malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
3670 Don't declare them either.
3671 * malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
3672 __pthread_initialize, so no need to set hooks to *_starter.
3673 (ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
3674 [_LIBC && SHARED && USE_TLS && !USE___THREAD]
3675 (__libc_malloc_pthread_startup): New function.
3676 * malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.
3678 * malloc/hooks.c (memalign_starter): New function.
3679 * malloc/malloc.c: Declare it.
3680 * malloc/arena.c (save_memalign_hook): New variable.
3681 (ptmalloc_init): Set __memalign_hook to memalign_starter.
3683 * elf/dl-minimal.c (free): Clear the memory.
3684 (calloc): Just call malloc, knowing all memory it returns is cleared.
3686 * sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
3687 malloc and memset; calloc can avoid the zeroing when redundant.
3688 (_dl_tls_setup): Likewise.
3689 * elf/dl-load.c (decompose_rpath): Likewise.
3690 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
3691 call, since memory from sbrk at startup is already zero.
3693 * elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
3694 error string for failure, null for success. Update callers.
3695 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
3696 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
3698 2002-12-05 Jakub Jelinek <jakub@redhat.com>
3700 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (sendfile): Change
3702 (readahead): Change args to i:iii.
3703 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (readahead):
3704 Change args to i:iii.
3705 * sysdeps/unix/sysv/linux/mips/syscalls.list (readahead): Change
3708 2002-12-05 Roland McGrath <roland@redhat.com>
3710 * stdlib/cxa_finalize.c (__cxa_finalize): When given a null argument,
3711 call all functions rather than none.
3712 Reported by Mark P. Mitchell <mark@codesourcery.com>.
3714 2002-12-04 Roland McGrath <roland@redhat.com>
3716 * locale/localeinfo.h [NL_CURRENT_INDIRECT]: Use attribute_tls_model_ie
3717 on _nl_current_LC_* variables.
3719 2002-12-05 Ulrich Drepper <drepper@redhat.com>
3721 * dirent/bug-readdir1.c (main): Don't call closedir, just close
3722 the file descriptor. This is testing what the bug report was about.
3724 2002-12-04 Ulrich Drepper <drepper@redhat.com>
3726 * po/be.po: New file.
3728 * argp/Makefile (tests): Add tst-argp1.
3730 * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
3731 Change type of _attribute to void*.
3732 * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
3733 * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
3734 * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
3735 * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
3736 * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
3738 2002-12-04 Roland McGrath <roland@redhat.com>
3740 * sysdeps/generic/ldsodefs.h (struct rtld_global): Move all [USE_TLS]
3741 members to the end, so a libpthread compiled with !USE_TLS will still
3742 find other members properly.
3744 * sysdeps/i386/i486/bits/string.h (__strcpy_g): Add dummy output
3745 operand for DEST memory. Fix dummy input operand to use SRC.
3746 Reported by Davin McCall <davmac@ozonline.com.au>.
3748 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Account for TCB
3749 alignment when initializing the DTV entry.
3751 * elf/dl-load.c (_dl_map_object_from_fd): If we hit a TLS segment
3752 when TLS has not been set up, try to set it up if we can.
3753 * elf/tst-tls4.c: Revert last change.
3754 * elf/tst-tls5.c: Likewise.
3755 * elf/tst-tls6.c: Likewise.
3756 * elf/tst-tls7.c: Likewise.
3757 * elf/tst-tls8.c: Likewise.
3758 * elf/tst-tls9.c: Likewise.
3760 * sysdeps/generic/dl-tls.c [SHARED] (_dl_tls_setup): New function.
3761 * sysdeps/generic/ldsodefs.h: Declare it.
3762 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
3763 * sysdeps/generic/libc-tls.c (init_slotinfo): New static inline
3764 function, broken out of __libc_setup_tls.
3765 (init_static_tls): Likewise.
3766 (__libc_setup_tls): Call them.
3767 (_dl_tls_setup): New function, uses new subroutines.
3769 * elf/dl-close.c (free_slotinfo): Make argument pointer to pointer.
3770 Clear the pointer when returning true.
3771 (libc_freeres_fn) [SHARED]: If GL(dl_initial_dtv) is null, free the
3772 first element of the slotinfo list too.
3774 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Define only if
3777 * sysdeps/generic/ldsodefs.h (_dl_next_tls_modid): Declare as hidden.
3778 (_dl_determine_tlsoffset): Likewise.
3780 * elf/rtld.c (_dl_initial_error_catch_tsd): Renamed from
3781 startup_error_tsd, made global.
3782 (dl_main): Update initialization.
3783 * elf/dl-tsd.c: Likewise.
3784 * sysdeps/generic/ldsodefs.h: Declare it.
3786 2002-12-03 Ulrich Drepper <drepper@redhat.com>
3788 * manual/texinfo.tex: Update from latest upstream version.
3790 2002-12-03 Roland McGrath <roland@redhat.com>
3792 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Include static TLS
3793 area surplus in calculation for sbrk call.
3795 * iconvdata/cp1125.c: New file.
3796 * iconvdata/Makefile (distribute): Add it.
3797 (modules): Add CP1125.
3798 (gen-8bit-gap-modules): Add cp1125.
3799 * iconvdata/gconv-modules: Add CP1125, alias RUSCII.
3800 * iconvdata/tst-tables.sh: Add CP1125 to the list to test.
3802 2002-12-03 Andreas Jaeger <aj@suse.de>
3804 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
3806 2002-12-03 Ulrich Drepper <drepper@redhat.com>
3808 * sysdeps/posix/system.c (do_system): Make signal handler
3809 installation thread safe.
3811 2002-12-02 Roland McGrath <roland@redhat.com>
3813 * sysdeps/unix/sysv/linux/alpha/syscalls.list (readahead): Change
3814 caller from EXTRA to -.
3815 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3816 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
3817 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3819 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
3821 * sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
3822 bits of RM are cleared.
3824 2002-12-02 Roland McGrath <roland@redhat.com>
3826 * elf/tst-tls4.c: Define an unused TLS variable here, so that no lazy
3827 TLS setup is required.
3828 * elf/tst-tls5.c: Likewise.
3829 * elf/tst-tls6.c: Likewise.
3830 * elf/tst-tls7.c: Likewise.
3831 * elf/tst-tls8.c: Likewise.
3832 * elf/tst-tls9.c: Likewise.
3834 * elf/rtld.c (dl_main): Remove [! SHARED] conditional from
3835 `if (GL(dl_tls_max_dtv_idx) > 0)' tests for doing TLS setup.
3836 * elf/dl-close.c (libc_freeres_fn): Check GL(dl_tls_dtv_slotinfo_list)
3837 for being null before calling free_slotinfo.
3838 * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: For PT_TLS in
3839 dynamic loading, bail with error if GL(dl_tls_max_dtv_idx) is zero.
3841 2002-11-30 Bruno Haible <bruno@clisp.org>
3843 * iconv/gconv.h (__gconv_btowc_fct): New typedef.
3844 (struct __gconv_step): New field __btowc_fct.
3845 * wcsmbs/btowc.c (__btowc): Use the __btowc_fct shortcut if possible.
3846 * iconv/gconv_int.h (__BUILTIN_TRANSFORM): Renamed from
3848 (__gconv_btwoc_ascii): New declaration.
3849 * iconv/gconv_simple.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
3850 (__gconv_btwoc_ascii): New function.
3851 * iconv/gconv_builtin.h: Add BtowcFct argument to all
3852 BUILTIN_TRANSFORMATION invocations.
3853 * iconv/gconv_conf.c (BUILTIN_TRANSFORMATION): Add BtowcFct argument.
3854 * iconv/iconvconfig.c (BUILTIN_TRANSFORMATION): Likewise.
3855 * iconv/gconv_builtin.c (map): New field btowc_fct.
3856 (BUILTIN_TRANSFORMATION): Add BtowcFct argument. Use it to initialize
3858 (__gconv_get_builtin_trans): Initialize __btowc_fct field.
3859 * iconv/gconv_cache.c (find_module): Initialize __btowc_fct field.
3860 * iconv/gconv_db.c (gen_steps, increment_counter): Likewise.
3861 * wcsmbs/wcsmbsload.c (to_wc, to_mb): Likewise.
3862 * iconv/skeleton.c: Document STORE_REST and FROM_ONEBYTE.
3863 (gconv_init): Initialize __btowc_fct field.
3864 Undefine EXTRA_LOOP_ARGS and FROM_ONEBYTE at the end.
3865 * iconv/loop.c: Document ONEBYTE_BODY.
3866 (gconv_btowc, FROM_ONEBYTE): Define if ONEBYTE_BODY is defined.
3867 Undefine ONEBYTE_BODY at the end.
3868 * iconvdata/8bit-generic.c (ONEBYTE_BODY): New macro.
3869 * iconvdata/8bit-gap.c (NONNUL): New macro.
3870 (BODY for FROM_LOOP): Use it.
3871 (ONEBYTE_BODY): New macro.
3872 * iconvdata/isiri-3342.c (HAS_HOLES): Set to 1.
3873 (NONNUL): New macro.
3874 * iconvdata/ansi_x3.110.c (ONEBYTE_BODY): New macro.
3875 * iconvdata/armscii-8.c (ONEBYTE_BODY): New macro.
3876 * iconvdata/cp1255.c (ONEBYTE_BODY): New macro.
3877 * iconvdata/cp1258.c (ONEBYTE_BODY): New macro.
3878 * iconvdata/tcvn5712-1.c (ONEBYTE_BODY): New macro.
3879 * iconvdata/big5.c (ONEBYTE_BODY): New macro.
3880 * iconvdata/big5hkscs.c (ONEBYTE_BODY): New macro.
3881 * iconvdata/euc-cn.c (ONEBYTE_BODY): New macro.
3882 * iconvdata/euc-jp.c (ONEBYTE_BODY): New macro.
3883 * iconvdata/euc-jisx0213.c (ONEBYTE_BODY): New macro.
3884 * iconvdata/euc-kr.c (ONEBYTE_BODY): New macro.
3885 * iconvdata/euc-tw.c (ONEBYTE_BODY): New macro.
3886 * iconvdata/gbk.c (ONEBYTE_BODY): New macro.
3887 * iconvdata/gb18030.c (ONEBYTE_BODY): New macro.
3888 * iconvdata/ibm932.c: Include <stdbool.h>.
3889 (TRUE, FALSE): Remove macros.
3890 (BODY for FROM_LOOP): Remove unused variable rp1.
3891 (ONEBYTE_BODY): New macro.
3892 (BODY for TO_LOOP): Use bool.
3893 * iconvdata/ibm932.h (__ibm932sb_to_ucs4_idx): Remove array.
3894 * iconvdata/ibm943.c: Include <stdbool.h>.
3895 (TRUE, FALSE): Remove macros.
3896 (BODY for FROM_LOOP): Remove unused variable rp1.
3897 (ONEBYTE_BODY): New macro.
3898 (BODY for TO_LOOP): Use bool.
3899 * iconvdata/ibm943.h (__ibm943sb_to_ucs4_idx): Remove array.
3900 * iconvdata/iso8859-1.c (ONEBYTE_BODY): New macro.
3901 * iconvdata/iso_6937-2.c (ONEBYTE_BODY): New macro.
3902 * iconvdata/iso_6937.c (ONEBYTE_BODY): New macro.
3903 * iconvdata/johab.c (ONEBYTE_BODY): New macro.
3904 * iconvdata/sjis.c (ONEBYTE_BODY): New macro.
3905 * iconvdata/shift_jisx0213.c (ONEBYTE_BODY): New macro.
3906 * iconvdata/t.61.c (ONEBYTE_BODY): New macro.
3907 * iconvdata/uhc.c (ONEBYTE_BODY): New macro.
3908 * iconvdata/gbbig5.c: Tweak comment.
3910 2002-12-02 Ulrich Drepper <drepper@redhat.com>
3912 * po/fi.po: Update from translation team.
3914 2002-12-01 Roland McGrath <roland@redhat.com>
3916 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
3917 testing getdents64 return value.
3919 * scripts/versions.awk: Don't pass -n flag to sort command.
3921 * posix/bug-regex13.c: Include <string.h>.
3923 * sysdeps/generic/libc-start.c (__libc_start_main): Do
3924 DL_SYSDEP_OSCHECK here.
3925 * sysdeps/unix/sysv/linux/init-first.c (init): Not here.
3926 * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <fcntl.h>.
3928 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Bail if
3929 argument TCBSIZE <= TLS_INIT_TCB_SIZE, not just if it's zero.
3931 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Check l_tls_offset
3932 instead of l_type to decide whether to use TLS_DTV_UNALLOCATED.
3934 * include/link.h: Comment typo fix.
3936 2002-12-01 Roland McGrath <roland@frob.com>
3938 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_FSYNC): Set to 200112L.
3939 (_POSIX_SPAWN, _POSIX_MAPPED_FILES, _POSIX_MEMLOCK_RANGE,
3940 _POSIX_MEMORY_PROTECTION): Likewise.
3941 (_POSIX_POLL, _POSIX_SELECT): Removed.
3943 2002-11-28 Ulrich Drepper <drepper@redhat.com>
3945 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define macros which
3946 require it to 200112L. Remove _POSIX_POLL and _POSIX_SELECT.
3948 2002-11-28 Jakub Jelinek <jakub@redhat.com>
3950 * sysdeps/unix/alpha/sysdep.S: Change defined(USE___THREAD) to
3952 * sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall*): Avoid
3955 2002-11-28 Ulrich Drepper <drepper@redhat.com>
3957 * sysdeps/unix/sysv/linux/x86_64/vfork.S: Don't trash the CPU's
3958 branch prediction buffers by using unpaired call/ret.
3960 2002-11-27 Ulrich Drepper <drepper@redhat.com>
3962 * sysdeps/unix/sysv/linux/i386/sysdep.h (ASMFMT_2): Fix typo in
3963 first parameters constraint string.
3964 (ASMFMT_3): Likewise. Patch by stefan.lauterbach@mincom.de.
3966 2002-11-27 Isamu Hasegawa <isamu@yamato.ibm.com>
3968 * posix/regcomp.c (parse_expression): Set the bit since the back
3969 reference is used in the regular expression.
3970 * posix/regex_internal.c (re_node_set_init_1): Make it clean in case
3972 (re_node_set_init_copy): Likewise.
3973 * posix/regex_internal.h (state_array_t): New structure.
3974 (re_sub_match_last_t): Likewise.
3975 (re_sub_match_top_t): Likewise.
3976 (re_match_context_t): Add new members.
3977 (re_dfa_t): Likewise.
3978 * posix/regexec.c (re_search_internal): Invoke prune_impossible_nodes
3979 to check the matching is really correct, and retry if failed.
3980 Move the routin pruning the impossible nodes from here, ...
3981 (prune_impossible_nodes): To this function.
3982 (check_matching): Invoke check_subexp_matching_top, and replace
3983 redundant checking with transit_state_bkref invocation.
3984 (proceed_next_node): Replace strncmp with memcmp. Reported by
3985 Paolo Bonzini <bonzini@gnu.org>.
3986 (update_cur_sifted_state): Remove search_subexp invocation.
3987 (search_subexp): Remove this function.
3988 (check_dst_limits_calc_pos): Use search_cur_bkref_entry for
3990 (sift_states_bkref): Use search_cur_bkref_entry for optimization.
3991 Remove unused invocation of match_ctx_add_entry.
3992 (transit_state): Invoke check_subexp_matching_top.
3993 (check_subexp_matching_top): New function.
3994 (transit_state_bkref): Remove unused array.
3995 Merge transit_state_bkref_loop.
3996 (transit_state_bkref_loop): Use get_subexp instead of
3997 sift_states_backward. Use search_cur_bkref_entry for optimization.
3998 Merge this function to transit_state_bkref.
3999 (get_subexp): New function.
4000 (get_subexp_sub): Likewise.
4001 (find_subexp_node): Likewise.
4002 (check_arrival): Likewise.
4003 (check_arrival_expand_ecl): Likewise.
4004 (check_arrival_expand_ecl_sub): Likewise.
4005 (expand_bkref_cache): Likewise.
4006 (match_ctx_init): Initialize new members.
4007 (match_ctx_clean): New function.
4008 (match_ctx_free): Release new members.
4009 (match_ctx_free_subtops): New function.
4010 (match_ctx_add_entry): Fix indent.
4011 (search_cur_bkref_entry): New function.
4012 (match_ctx_add_subtop): Likewise.
4013 (match_ctx_add_sublast): Likewise.
4015 2002-11-25 Ulrich Drepper <drepper@redhat.com>
4017 * iconv/Makefile (tests): Remove tst-iconv4.c
4018 * iconv/tst-iconv4.c: Moved to...
4019 * iconvdata/tst-iconv4.c: ...here. New file.
4020 * iconvdata/Makefile (tests): Add tst-iconv4. Add dependencies.
4022 2002-11-25 Roland McGrath <roland@redhat.com>
4024 * inet/test-ifaddrs.c (main: addr_string): Handle null SA.
4025 Grok AF_LINK if defined.
4026 From Momchil Velikov <velco@fadata.bg>.
4028 * sysdeps/gnu/ifaddrs.c (getifaddrs): If ioctl fails for netmask,
4029 brdaddr, or dstaddr, just set those pointers to null and don't fail.
4030 Reported by Momchil Velikov <velco@fadata.bg>.
4032 * sysdeps/generic/ifreq.h (__if_nextreq) [_HAVE_SA_LEN]: If sa_len
4033 is > sizeof IFR->ifa_addr, advance past the whole longer length.
4034 (__ifreq): Count up NIFS that way too.
4035 Reported by Momchil Velikov <velco@fadata.bg>.
4037 * sysdeps/mach/hurd/lchmod.c: Include <fcntl.h>.
4039 * sysdeps/mach/hurd/i386/init-first.c: Include <ldsodefs.h>
4040 and <fpu_control.h>.
4042 2002-11-24 Ulrich Drepper <drepper@redhat.com>
4044 * elf/elf.h (EM_ST19): Fix typo.
4046 2002-11-25 Jakub Jelinek <jakub@redhat.com>
4048 * include/errno.h (__set_errno): Define as errno = val
4051 2002-11-24 Roland McGrath <roland@redhat.com>
4053 * sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
4054 * sysdeps/posix/writev.c: Likewise.
4055 From Momchil Velikov <velco@fadata.bg>.
4057 * elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
4058 calling *GL(dl_error_catch_tsd) for a thread-local location.
4059 * elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
4060 (dl_main): Same for GL(dl_error_catch_tsd) initialization.
4061 * elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
4063 * libio/iofflush.c: Add libc_hidden_def.
4064 * libio/iofwrite.c: Likewise.
4065 * sysdeps/generic/sigtimedwait.c: Likewise.
4066 * sysdeps/generic/sigwaitinfo.c: Likewise.
4067 * sysdeps/posix/sigwait.c: Likewise.
4068 Reported by Momchil Velikov <velco@fadata.bg>.
4070 * inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
4071 to match <arpa/inet.h> declaration.
4072 * inet/inet_netof.c (inet_netof): Likewise.
4073 * inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
4074 Reported by Momchil Velikov <velco@fadata.bg>.
4076 * configure.in: Skip AUTOCONF check under --without-cvs.
4077 * configure: Regenerated.
4079 * posix/Makefile (headers): Add bits/pthreadtypes.h.
4080 * sysdeps/unix/sysv/linux/Makefile (sysdep_heaers): Don't add it here.
4081 * sysdeps/unix/sysv/linux/Dist: Remove it from the list.
4083 2002-11-24 Andreas Schwab <schwab@suse.de>
4085 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Support inline syscall
4088 2002-11-19 Jim Meyering <jim@meyering.net>
4090 * time/mktime.c (__mon_yday, __mktime_internal) [!_LIBC]: Declare
4092 * time/strptime.c (__mon_yday) [!_LIBC]: Declare as `static'.
4094 2002-11-23 Roland McGrath <roland@redhat.com>
4096 * scripts/abilist.awk: Avoid strtonum function, not there in mawk.
4097 Just produce hex output for datum sizes.
4099 * elf/Makefile ($(objpfx)librtld.mk): Tighten up regexp.
4100 Reported by Luca Barbieri <ldb@ldb.ods.org>.
4102 2002-11-20 Steven Munroe <sjmunroe@us.ibm.com>
4104 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (msqid_ds)
4105 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
4106 and __unused3 fields.
4107 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h (semid_ds)
4108 [__WORDSIZE == 32]: Only PPC32 requires __unused1
4109 and __unused2 fields.
4110 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h (shmid_ds)
4111 [__WORDSIZE == 32]: Only PPC32 requires __unused1, __unused2,
4112 __unused3, and __unused4 fields.
4114 * csu/gmon-start.c (__gmon_start__): Always use TEXT_START macro to
4115 obtain lowest address for profiling in __monstartup call.
4117 2002-11-21 Roland McGrath <roland@redhat.com>
4119 * sysdeps/ia64/fpu/Makefile (libm-sysdep_routines): Remove redunant
4120 $(calls) $(calls:=f) $(long-c-$(long-double-fcts)).
4122 * locale/localeinfo.h (struct locale_data): Revert last change.
4124 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it.
4125 From Ian Wienand <ianw@gelato.unsw.edu.au>.
4127 * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to
4128 __NR_pread64 if not defined.
4129 (__NR_pwrite): Define to __NR_pwrite64 if not defined.
4130 From Ian Wienand <ianw@gelato.unsw.edu.au>.
4132 2002-11-21 Roland McGrath <roland@frob.com>
4134 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set
4135 __libc_multiple_libcs here. Call __setfpucw.
4137 2002-11-21 Ulrich Drepper <drepper@redhat.com>
4139 * elf/Makefile (tests): Don't run test-arrayX tests for now.
4141 * sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags.
4142 * sysdeps/unix/sysv/linux/i386/clone.S: Add support for
4143 CLONE_CHILD_*TID flags.
4145 2002-11-20 Andreas Jaeger <aj@suse.de>
4147 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h (SIGCONTEXT):
4148 We pass struct ucontext on x86-64.
4150 (GET_FRAME): Adjust.
4151 (GET_STACK): Adjust.
4153 2002-11-20 Roland McGrath <roland@redhat.com>
4155 * sysdeps/powerpc/powerpc32/dl-machine.c [! SHARED]: Further
4156 conditionalize [! DO_VERSIONING] #error.
4158 * scripts/abilist.awk: Grok function descriptor symbols.
4160 * intl/tst-gettext.c (main): Check return values from setlocale.
4161 Add necessary unsetenv's to make LANG=existing-locale check work.
4163 * intl/tst-gettext.sh: Use mkdir -p. Copy test files unconditionally,
4164 so aborted prior runs don't confuse things.
4166 * locale/localeinfo.h (struct locale_data: union locale_data_value):
4167 Use uintptr_t instead of unsigned int for `word' member.
4168 (_NL_CURRENT_WORD): Cast to uint32_t.
4170 * posix/bug-regex5.c (main): Use union to extract _NL_COLLATE_NRULES
4173 2002-11-20 Ulrich Drepper <drepper@redhat.com>
4175 * elf/tls-macros.h: Add IA-64 definitions.
4176 Patch by Ian Wienand <ianw@gelato.unsw.edu.au>.
4178 * iconv/Makefile (tests): Add tst-iconv4.
4179 * iconv/tst-iconv4.c: New file.
4181 * iconv/gconv_simple.c (internal_ucs4le_loop_unaligned): Return
4182 __GCONV_EMPTY_INPUT only if input is really empty. Otherwise
4183 __GCONV_INCOMPLETE_INPUT.
4184 (ucs4le_internal_loop): Likewise.
4185 (ucs4le_internal_loop_unaligned): Likewise.
4186 * iconvdata/unicode.c (PREPARE_LOOP): Likewise.
4187 * iconvdata/utf-16.c (PREPARE_LOOP): Likewise.
4188 * iconvdata/utf-32.c (PREPARE_LOOP): Likewise.
4190 * iconv/loop.c (LOOPFCT): First test for empty input then for full
4193 * inet/getnameinfo.c: Use extend_alloca where appropriate.
4194 * sysdeps/posix/getaddrinfo.c: Likewise.
4196 * include/alloca.h (extend_alloca): New define. Based on stack
4197 direction it'll try to append to the previouls allocated buffer.
4199 2002-11-07 Thorsten Kukuk <kukuk@suse.de>
4201 * sysdeps/posix/getaddrinfo.c (gaih_inet): If AF_UNSPEC is set,
4202 use the same service for AF_INET and AF_INET6.
4204 2002-11-19 Ulrich Drepper <drepper@redhat.com>
4206 * intl/localealias.c (read_alias_file): Use only about 400 bytes
4207 of stack space instead of 16k.
4209 2002-11-18 Wolfram Gloger <wg@malloc.de>
4212 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do
4213 nothing if not initialized. Bug report from Marcus Brinkmann
4214 <Marcus.Brinkmann@ruhr-uni-bochum.de>.
4216 2002-11-19 Roland McGrath <roland@redhat.com>
4218 * posix/Versions (libc: GLIBC_2.3.2): Add sched_getaffinity and
4221 * configure.in (libc_cv_gcc_dwarf2_unwind_info check): Use libraries
4222 `-lgcc -lgcc_eh -lgcc', not just `-lgcc -lgcc_eh' in link commands for
4223 test leading to libc_cv_gcc_dwarf2_unwind_info=no_registry_needed.
4224 * configure: Regenerated.
4226 2002-11-19 Ulrich Drepper <drepper@redhat.com>
4228 * include/dlfcn.h: __libc_dlopen is now a macro calling
4229 __libc_dlopen_mode with the extra parameter RTLD_LAZY.
4230 (__libc_dlopen_mode): New prototype.
4231 * elf/dl-libc.c (__libc_dlopen_mode): Renamed from __libc_dlopen. Add
4232 new parameter. Store new parameter in mode field of structure passed
4234 (struct do_dlopen_args): Add new field mode.
4235 (do_dlopen): Pass mode from parameter structure to _dl_open.
4237 2002-11-11 Randolf Chung <tausq@debian.org>
4239 * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h [__USE_FILE_OFFSET64]
4240 (F_GETLK, F_SETLK, F_SETLKW): Define to F_*64 versions.
4241 * sysdeps/unix/sysv/linux/hppa/fcntl.c: New file.
4243 * sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
4245 * sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
4246 Set -mdisable-fpregs for this file.
4248 2002-11-11 Carlos O'Donell <carlos@baldric.uwo.ca>
4250 * sysdeps/unix/sysv/linux/configure.in:
4251 Make 2.4.19 minimum linux kernel for hppa, and add unwind symbols
4252 from gcc-3.0 era for backwards compatibility.
4253 * sysdeps/unix/sysv/linux/configure: Regenerate.
4255 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
4256 Define mcontext_t as a sigcontext.
4258 2002-11-18 Roland McGrath <roland@redhat.com>
4260 * dlfcn/dlerror.c (fini): New function, __attribute__ ((destructor)).
4261 Free memory in `last_result' if it was used.
4263 * resolv/nss_dns/dns-network.c (getanswer_r): In BYNAME case, search
4264 all aliases for one that matches the "<dotted-quad>.IN-ADDR.ARPA" form.
4265 Do the parsing inline instead of copying strings and calling
4266 inet_network, and properly skip all alias names not matching the form.
4268 * manual/pattern.texi (Variable Substitution): Fix # and ## examples.
4270 2002-11-17 Ulrich Drepper <drepper@redhat.com>
4272 * manual/pattern.texi (Wordexp Example): Fix sample code.
4274 * sysdeps/unix/sysv/linux/i386/clone.S: Initialize word in the
4275 childs stack which will be loaded into the %esi register.
4277 2002-11-14 Paul Eggert <eggert@twinsun.com>
4279 * resolv/nss_dns/dns-network.c (getanswer_r): Check for buffer
4280 overflow when skipping the question part and when unpacking aliases.
4282 2002-11-15 Roland McGrath <roland@redhat.com>
4284 * math/Makefile (libm-calls): Remove s_copysign, s_isinf, s_isnan,
4285 s_finite, s_modf, s_scalbn, s_frexp, m_ldexp, s_signbit.
4286 Instead add $(calls:s_%=m_%) to get m_* versions of them all.
4288 2002-11-15 Jakub Jelinek <jakub@redhat.com>
4290 * sysdeps/i386/dl-machine.h (elf_machine_rela): Handle R_386_COPY.
4291 * sysdeps/arm/dl-machine.h (elf_machine_rela): Handle R_ARM_COPY.
4293 2002-11-15 Roland McGrath <roland@redhat.com>
4295 * math/Makefile (libm-calls): Change s_ldexp to m_ldexp.
4296 * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules for m_%.[Sc]
4297 from sysdeps/.../s_%.[Sc] with commands $(+make-include-of-dep).
4298 (+make-include-of-dep): New canned sequence.
4300 * stdlib/canonicalize.c (__realpath): Check for malloc failure.
4301 From Dmitry V. Levin <ldv@altlinux.org>.
4303 2002-11-14 Roland McGrath <roland@redhat.com>
4305 * sysdeps/generic/errno.c (__libc_errno): Remove alias.
4306 * inet/herrno.c (__libc_h_errno): Likewise.
4307 * resolv/res_libc.c (__libc_res): Likewise.
4308 [USE___THREAD]: Use this in place of [USE_TLS && HAVE___THREAD].
4309 (__res_state) [! USE___THREAD]: Don't define as weak.
4310 * csu/Versions: Revert last change.
4311 * resolv/Versions: Revert last change.
4313 * Makerules ($(common-objpfx)%.make): New pattern rule.
4314 * tls.make.c: New file.
4315 * Makefile (distribute): Add it.
4317 * sysdeps/generic/errno.c [! USE___THREAD]
4318 [HAVE_ELF && SHARED && DO_VERSIONING] (errno, _errno): Declare these
4319 with compat_symbol so they are not link-time visible.
4320 [! USE___THREAD] (__libc_errno): New alias for errno.
4321 * csu/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
4322 Add __libc_errno here.
4323 * inet/herrno.c [USE___THREAD]: Use this conditional
4324 in place of [USE_TLS && HAVE___THREAD].
4325 [! USE___THREAD] [HAVE_ELF && SHARED && DO_VERSIONING]
4326 (h_errno, _h_errno): Declare these with compat_symbol so they are not
4328 [! USE___THREAD] (__libc_h_errno): New alias for h_errno.
4329 * resolv/res_libc.c [! USE___THREAD]
4330 [HAVE_ELF && SHARED && DO_VERSIONING] (_res): Likewise.
4331 (_res): Use __attribute__ ((section (".bss"))) so we can have an alias.
4332 (__libc_res): Define as alias for _res.
4333 * resolv/Versions [!(USE_TLS && HAVE___THREAD)] (libc: GLIBC_PRIVATE):
4334 Add __libc_h_errno and __libc_res here.
4336 2002-11-14 Jakub Jelinek <jakub@redhat.com>
4338 * csu/Versions (errno): Move STT_TLS symbol to GLIBC_PRIVATE for now.
4339 * resolv/Versions (h_errno, _res): Likewise.
4341 2002-11-14 Roland McGrath <roland@redhat.com>
4343 * Makerules (%.dynsym): Remove $(objpfx) from target and dep.
4344 (%.symlist): Likewise.
4346 2002-11-13 Roland McGrath <roland@redhat.com>
4348 * scripts/abilist.awk: New file.
4349 * Makefile (distribute): Add it.
4350 * Makerules ($(objpfx)%.dynsym, $(objpfx)%.symlist): New rules.
4351 (tests): Depend on .symlist file for each $(install-lib.so-versioned).
4352 [$(subdir) = elf] (tests): Depend on libc.symlist.
4353 (generated, common-generated): Add those files.
4355 * aclocal.m4 (LIBC_PROG_BINUTILS): Check for objdump, set OBJDUMP.
4356 * configure: Regenerated.
4357 * config.make.in (OBJDUMP): New variable, substituted by configure.
4359 * malloc/mcheck.c (struct hdr): New members `block' and `magic2'.
4360 (mallochook, reallochook): Set them up.
4361 (checkhdr): Check HDR->magic2 value.
4362 (freehook): Reset HDR->magic2.
4363 (memalignhook): New static function.
4364 (old_memalign_hook): New static variable.
4365 (mcheck, reallochook): Set __memalign_hook to memalignhook.
4367 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Zero the space
4370 2002-11-13 Andreas Jaeger <aj@suse.de>
4372 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Check for visibility
4374 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4376 2002-11-11 Paul Eggert <eggert@twinsun.com>
4378 * manual/crypt.texi (Cryptographic Functions): Mention that
4379 the MD5 one-way algorithm is compatible with BSD's.
4381 2002-11-11 Isamu Hasegawa <isamu@yamato.ibm.com>
4383 * posix/regex_internal.c (re_string_skip_chars): Also return the last
4385 (re_string_reconstruct): Calculate the context by itself when the
4386 offset points out of the valid range.
4387 (re_string_context_at): Use wide character when MB_CUR_MAX > 1.
4388 * posix/regex_internal.h (WIDE_NEWLINE_CHAR): New macro.
4389 (IS_WIDE_WORD_CHAR): New macro.
4390 (IS_WIDE_NEWLINE): New macro.
4392 2002-11-12 Andreas Jaeger <aj@suse.de>
4394 * sysdeps/x86_64/strchr.S: Don't use one register for two
4395 purposes, this fixes a bug noticed by test-strchr.c.
4397 * sysdeps/x86_64/strcat.S: Fix algorithm to align source pointer
4400 2002-11-12 Roland McGrath <roland@redhat.com>
4402 * libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]
4403 (_G_IO_NO_BACKWARD_COMPAT): Define it.
4405 * sysdeps/ia64/dl-fptr.c [_LIBC_REENTRANT]: Include <ia64intrin.h>
4406 instead of <pt-machine.h>.
4407 [_LIBC_REENTRANT] (lock, unlock): Use __sync_lock_* macros instead of
4409 From Ian Wienand <ianw@gelato.unsw.edu.au>.
4411 2002-11-10 Roland McGrath <roland@redhat.com>
4413 * libio/bug-wfflush.c (do_test): Call rewind instead of fsetpos.
4414 Call fputs instead of fwprintf (simpler to follow in debugger).
4416 * crypt/md5-crypt.c: Doc fix.
4418 * sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
4419 the beginning of generated target commands.
4421 * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit
4422 dependencies for these in case implicit rule search skipped the
4423 nonexistent source directory.
4424 * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the
4425 files with $(object-suffixes) as targets too.
4426 * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx).
4427 and a target for it using $(make-target-directory).
4429 * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h.
4431 2002-11-10 Roland McGrath <roland@frob.com>
4433 * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ...
4434 * sysdeps/generic/bits/pthreadtypes.h: ... here.
4436 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Treat a struct flock with
4437 l_start == 0 and l_len == 1 as we do l_len == 0.
4439 2002-11-10 Ulrich Drepper <drepper@redhat.com>
4441 * po/da.po: Update from translation team.
4443 2002-11-10 Roland McGrath <roland@redhat.com>
4445 * config.make.in (includedir): New variable, substituted by configure.
4446 Reported missing by Jocelyn Fournier <joc@presence-pc.com>.
4447 * Makeconfig (includedir): Use $(prefix), not $(exec_prefix).
4449 2002-11-10 Andreas Jaeger <aj@suse.de>
4451 * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h (enum): Add
4452 REG_OLDMASK and REG_CR2 to synch with kernel header.
4455 * nss/getXXent.c (GETFUNC_NAME): Use union type to avoid strict
4457 * nss/getXXbyYY_r.c (INTERNAL): Likewise.
4458 * nss/getnssent_r.c (__nss_getent_r): Likewise.
4459 (__nss_setent): Likewise.
4460 (__nss_getent_r): Likewise.
4461 * inet/getnetgrent_r.c (innetgr): Likewise.
4462 (__internal_setnetgrent_reuse): Likewise.
4463 (internal_getnetgrent_r): Likewise.
4464 * inet/ether_hton.c (ether_hostton): Likewise.
4465 * inet/ether_ntoh.c (ether_ntohost): Likewise.
4466 * sunrpc/netname.c (netname2user): Likewise.
4467 * sunrpc/publickey.c (getpublickey): Likewise.
4468 (getsecretkey): Likewise.
4470 2002-11-09 Marcus Brinkmann <marcus@gnu.org>
4472 * sysdeps/mach/hurd/i386/ioperm.c (ioperm): Correct off by one
4473 error in range calculation.
4475 2002-10-09 Jakub Jelinek <jakub@redhat.com>
4477 * string/test-strspn.c (do_test): Ensure zero termination.
4478 * string/test-strpbrk.c (do_test): Likewise.
4479 * string/test-strncmp.c (stupid_strncmp): Use strnlen, not strlen.
4480 * string/test-strncpy.c (stupid_strncpy): Likewise.
4481 * string/test-stpncpy.c (stupid_stpncpy): Likewise.
4483 2002-10-08 Roland McGrath <roland@redhat.com>
4485 * string/test-string.h (test_init): Fill BUF1 and BUF2 with
4488 2002-09-22 H.J. Lu <hjl@gnu.org>
4490 * sysdeps/unix/sysv/linux/mmap64.c (MMAP2_PAGE_SHIFT): Renamed
4491 from PAGE_SHIFT. Define if not defined. Check MMAP2_PAGE_SHIFT
4492 only if __NR_mmap2 is defined.
4494 * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Moved to ...
4495 * sysdeps/unix/sysv/linux/mmap64.c: ... here.
4496 * sysdeps/unix/sysv/linux/hppa/mmap64.c: File removed.
4497 * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: FIle removed,
4499 2002-11-08 Jakub Jelinek <jakub@redhat.com>
4501 * posix/bug-regex13.c (tests): Add new test.
4503 * string/test-strchr.c (stupid_strchr): New function.
4504 (do_random_tests): Make sure the string is zero terminated.
4505 * string/test-strpbrk.c (stupid_strpbrk): New function.
4506 (do_random_tests): Make sure the string is zero terminated.
4507 * string/test-strcmp.c (stupid_strcmp): New function.
4508 (do_random_tests): Make sure the strings are zero terminated.
4509 * string/test-strspn.c (stupid_strspn): New function.
4510 (simple_strspn): Rename rej argument to acc.
4511 (do_random_tests): Make sure the string is zero terminated.
4512 * string/test-strcspn.c (stupid_strcspn): New function.
4513 * string/test-strncpy.c (stupid_strncpy): New function.
4514 * string/test-stpncpy.c (stupid_stpncpy): New function.
4515 * string/test-strncmp.c (stupid_strncmp): New function.
4516 (do_random_tests): Make sure the strings are zero terminated.
4517 * string/test-string.h (impl_t): Change test into long.
4518 (IMPL): Add __attribute__((aligned (sizeof (void *)))).
4520 2002-11-08 Roland McGrath <roland@redhat.com>
4522 * sysdeps/ia64/elf/configure.in: Add TLS check.
4523 From Ian Wienand <ianw@cse.unsw.edu.au>.
4524 * sysdeps/ia64/elf/configure: Regenerated.
4526 2002-11-07 Roland McGrath <roland@redhat.com>
4528 * libio/fileops.c (_IO_new_file_overflow): Use INTUSE(_IO_do_write) in
4529 place of _IO_new_do_write.
4530 [_LIBC] (_IO_do_write): Define as macro for _IO_new_do_write and
4531 #undef before versioned_symbol use.
4533 2002-11-07 Richard Henderson <rth@redhat.com>
4535 * configure.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove test.
4536 * configure: Regenerated.
4537 * config.h.in (ASM_ALPHA_NG_SYMBOL_PREFIX): Remove #undef.
4538 * sysdeps/alpha/dl-machine.h (TRAMPOLINE_TEMPLATE): Use !samegp.
4539 (RTLD_START): Likewise. Access _dl_skip_args, _rtld_local, and
4540 _dl_fini via gp-relative relocations.
4541 * sysdeps/alpha/fpu/e_sqrt.c: Use !samegp.
4543 * elf/tls-macros.h: Add alpha versions.
4544 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle TLS relocs.
4545 * sysdeps/unix/alpha/sysdep.S: Support USE___THREAD.
4546 * sysdeps/unix/alpha/sysdep.h: Likewise. Add SYSCALL_ERROR_HANDLER.
4547 * sysdeps/unix/sysv/linux/alpha/brk.S: Use it.
4548 * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
4549 * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
4550 * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
4551 * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
4552 * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
4553 * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
4554 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Likewise.
4555 * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
4556 * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
4557 * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
4558 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
4559 * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
4560 * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
4561 * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
4563 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Re-include protect.
4564 Kill argument registers across the inline syscall.
4566 * sysdeps/unix/sysv/linux/alpha/clone.S: Add user_tid and tls args.
4568 * linuxthreads/sysdeps/alpha/tls.h: New file.
4569 * sysdeps/alpha/dl-tls.h: New file.
4571 2002-10-29 David Mosberger <davidm@hpl.hp.com>
4573 * sysdeps/ia64/elf/initfini.c [HAVE_INITFINI_ARRAY]
4574 (gmon_initializer): New function.
4575 (.init prologue): If HAVE_INITFINI_ARRAY is true, don't call
4576 __gmon_start__ here. Call it from gmon_initializer() instead.
4578 2002-03-12 H.J. Lu <hjl@gnu.org>
4580 * elf/Makefile [$(have-initfini-array) = yes] (tests): Add tst-array1,
4581 tst-array2, and tst-array3.
4582 [$(have-initfini-array) = yes] (tests-static): Add tst-array3.
4583 [$(have-initfini-array) = yes] (modules-names): Add tst-array2dep.
4584 ($(objpfx)tst-array1.out): New target.
4585 ($(objpfx)tst-array2): Likewise.
4586 ($(objpfx)tst-array2.out): Likewise.
4587 ($(objpfx)tst-array3.out): Likewise.
4588 * elf/tst-array1.c: New file.
4589 * elf/tst-array1.exp: Likewise.
4590 * elf/tst-array2.c: Likewise.
4591 * elf/tst-array2dep.c: Likewise.
4592 * elf/tst-array2.exp: Likewise.
4593 * elf/tst-array3.c: Likewise.
4595 2002-10-28 David Mosberger <davidm@hpl.hp.com>
4597 * elf/dl-fini.c (_dl_fini): Invoke fini_array in _reverse_ order.
4598 Don't add L->l_addr to array entry values.
4600 2002-11-07 Jakub Jelinek <jakub@redhat.com>
4602 * string/test-string.h: New file.
4603 * string/test-strlen.c: New file.
4604 * string/test-string.h: New file.
4605 * string/test-strcmp.c: New file.
4606 * string/test-strchr.c: New file.
4607 * string/test-strrchr.c: New file.
4608 * string/test-strcpy.c: New file.
4609 * string/test-stpcpy.c: New file.
4610 * string/test-strncpy.c: New file.
4611 * string/test-stpncpy.c: New file.
4612 * string/test-strpbrk.c: New file.
4613 * string/test-strcspn.c: New file.
4614 * string/test-strspn.c: New file.
4615 * string/test-strcat.c: New file.
4616 * string/test-strncmp.c: New file.
4617 * string/test-memchr.c: New file.
4618 * string/test-memcmp.c: New file.
4619 * string/test-memset.c: New file.
4620 * string/test-memcpy.c: New file.
4621 * string/test-mempcpy.c: New file.
4622 * string/test-memmove.c: New file.
4623 * string/Makefile (strop-tests): New variable.
4624 (tests): Add strop-tests.
4625 (distribute): Add test-string.h.
4627 2002-11-06 Ulrich Drepper <drepper@redhat.com>
4629 * posix/regcomp.c: Use tabs instead of spaces.
4630 * posix/regexec.c: Likewise.
4631 * posix/regex_internal.h: Likewise.
4633 * posix/regcomp.c (re_compile_fastmap_iter): Use __wcrtomb not wctomb.
4635 2002-11-06 Jakub Jelinek <jakub@redhat.com>
4637 * posix/regcomp.c (re_compile_pattern): Don't set regs_allocated
4639 (regcomp): Don't set can_be_null here.
4640 (re_comp): Clear whole re_comp_buf with the exception of fastmap.
4641 (re_compile_internal): Clear can_be_null, set regs_allocated.
4643 * posix/regcomp.c (re_set_fastmap): New function.
4644 (re_compile_fastmap_iter): Use it. Remove redundant type ==
4645 COMPLEX_BRACKET check.
4646 * posix/regexec.c (re_search_internal): Optimize searching with
4647 fastmap. Call re_string_reconstruct even if match_first is
4648 smaller than raw_mbs_idx.
4650 2002-11-06 Isamu Hasegawa <isamu@yamato.ibm.com>
4652 * posix/regcomp (free_dfa_content): Use free_state.
4653 * posix/regex_internal.c (re_string_realloc_buffers): Don't edit
4654 pointers in case that realloc failed.
4655 (re_node_set_merge): Likewise.
4656 (register_state): Likewise.
4657 (create_newstate_common): Invoke memory release functions in case of
4659 (create_ci_newstate): Likewise.
4660 (create_cd_newstate): Likewise.
4661 (free_state): New function.
4662 * posix/regexec.c (re_search_internal): Invoke memory release
4663 functions in case of error conditions.
4664 (sift_states_backward): Likewise.
4665 (merge_state_array): Likewise.
4666 (add_epsilon_src_nodes): Likewise.
4667 (sub_epsilon_src_nodes): Likewise.
4668 (search_subexp): Likewise.
4669 (sift_states_bkref): Likewise.
4670 (transit_state_sb): Likewise.
4671 (transit_state_mb): Likewise.
4672 (transit_state_bkref_loop): Likewise.
4673 (group_nodes_into_DFAstates): Likewise.
4674 (push_fail_stack): Don't edit pointers in case that realloc failed.
4675 (extend_buffers): Likewise.
4676 (match_ctx_add_entry): Likewise.
4678 2002-11-06 Roland McGrath <roland@redhat.com>
4680 * sysdeps/unix/sysv/linux/mips/configure.in: File removed.
4681 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
4683 * configure.in: Add checks on as and ld for binutils 2.13 or later.
4684 * configure: Regenerated.
4686 2002-11-06 Ulrich Drepper <drepper@redhat.com>
4688 * posix/regcomp.c (regcomp): __re_compile_fastmap can never fail.
4689 If re_compile_internal failed free fastmap buffer.
4690 (free_dfa_content): Broken out of regfree function. Frees all dfa
4692 (regfree): Add free_dfa_content.
4693 (re_compile_internal): If any of the called functions fails free
4694 all dfa related memory.
4696 2002-11-05 Ulrich Drepper <drepper@redhat.com>
4698 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add ugly hacks to prevent
4699 warnings from the kernel headers.
4701 2002-11-05 Roland McGrath <roland@redhat.com>
4703 * sysdeps/unix/mips/sysdep.h [! __PIC__] (PSEUDO): Add nop after jump.
4704 From Johannes Stezenbach <js@convergence.de>.
4706 * sysdeps/unix/sysv/linux/mips/Versions (libc: GLIBC_2.0): Change
4707 #errlist-compat magic comment to give 123 as size.
4708 (libc: GLIBC_2.1): Remove this set, moving #errlist-compat magic to ...
4709 (libc: GLIBC_2.2): ... here.
4710 (libc: GLIBC_2.3): Likewise.
4712 2002-11-05 Ulrich Drepper <drepper@redhat.com>
4714 * elf/dl-fini.c (_dl_fini): Correct the increment of l_opencount
4715 which happens at the beginning so that we can unload modules in
4718 2002-11-06 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4720 * sysdeps/sh/bits/setjmp.h (JB_SIZE): Define only
4721 under [__USE_MISC || _ASM].
4723 * elf/elf.h: Remove the obsolete SH TLS relocations.
4725 2002-11-05 Ulrich Drepper <drepper@redhat.com>
4727 * posix/regcomp.c (regcomp): Initialize preg->can_be_null to zero.
4729 2002-11-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4731 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Handle
4732 __NR_pread64 and __NR_pwrite64.
4733 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
4734 * sysdeps/unix/sysv/linux/powerpc/pread.c: Remove __NR_pread64
4736 Revert change to use INLINE_SYSCALL.
4737 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
4738 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
4739 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
4740 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Revert change to use
4742 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
4744 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
4745 Update clobber list and add a comment about the syscall ABI.
4747 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_pread64,
4748 s_pwrite64, s_ftruncate, s_truncate): Re-add.
4750 2002-11-05 Jakub Jelinek <jakub@redhat.com>
4752 * iconv/gconv_dl.c (free_mem): Clear loaded.
4753 * locale/loadarchive.c (_nl_archive_subfreeres): Call locale_data's
4756 2002-11-05 Ulrich Drepper <drepper@redhat.com>
4758 * sysdeps/unix/sysv/linux/fexecve.c: Include <stdio.h>.
4760 * libio/ioseekoff.c: Remove INTDEF. Define _IO_seekoff_unlocked. Same
4761 as old code without locking. _IO_seekoff calls this function after
4763 * libio/ioseekpos.c: Likewise for _IO_seekpos.
4764 * libio/libioP.h: Replace _IO_seekoff_internal and _IO_seekpos_internal
4765 prototypes with _IO_seekoff_unlocked and _IO_seekpos_unlocked
4767 * libio/iolibio.h (_IO_fseek): Call _IO_seekoff_unlocked instead
4768 of _IO_seekoff_internal.
4769 (_IO_rewind): Likewise.
4770 * libio/ioftell.c: Likewise.
4771 * libio/ftello.c: Likewise.
4772 * libio/ftello64.c: Likewise.
4773 * libio/iofgetpos.c: Likewise.
4774 * libio/iofgetpos64.c: Likewise.
4775 * libio/oldiofgetpos.c: Likewise.
4776 * libio/oldiofgetpos64.c: Likewise.
4777 * libio/iofsetpos.c: Call _IO_seekpos_unlocked instead of
4778 _IO_seekpos_internal.
4779 * libio/iofsetpos64.c: Likewise.
4780 * libio/oldiofsetpos.c: Likewise.
4781 * libio/oldiofsetpos64.c: Likewise.
4783 2002-11-04 Roland McGrath <roland@redhat.com>
4785 * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
4786 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
4787 * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
4788 * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
4789 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
4790 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
4791 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
4792 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
4793 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
4794 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
4795 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
4796 s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
4797 sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
4798 Remove these, no longer used.
4800 2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4802 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
4803 s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
4804 s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
4805 s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
4806 s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
4807 s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
4810 * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
4811 * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4812 * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
4814 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
4815 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
4817 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
4819 2002-11-03 Roland McGrath <roland@redhat.com>
4821 * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
4822 `_dl_tls_static_used'.
4823 * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
4824 (__libc_setup_tls): Initialize it. Let the initial value of
4825 _dl_tls_static_size indicate some surplus space in the computed value.
4826 * elf/dl-open.c (_dl_tls_static_size): New variable.
4827 * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
4828 _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
4829 * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
4830 (CHECK_STATIC_TLS): Use it.
4831 * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
4832 closed objects occupied a trailing contiguous chunk of static TLS area.
4834 2002-10-18 Bruno Haible <bruno@clisp.org>
4836 * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
4838 2002-11-04 Ulrich Drepper <drepper@redhat.com>
4840 * libio/wfileops.c (_IO_wfile_seekoff): Don't modify _offset and
4841 _wide_data->_IO_read_end if adjustment can be made in the current
4844 * sysdeps/unix/sysv/linux/fexecve.c: New file.
4846 * libio/bug-wfflush.c (do_test): Using fseek is not allowed when
4847 wide oriented streams are used.
4849 * nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
4850 service hasn't been used [PR libc/4744].
4852 * include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
4853 Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
4855 * manual/examples/dir.c: Don't include <stddef.h>.
4856 * manual/examples/select.c: Include <errno.h> for TEMP_FAILURE_RETRY.
4857 Reported by Frédéric Delanoy <delanoy_f@yahoo.com>.
4859 2002-11-02 H.J. Lu <hjl@gnu.org>
4861 * stdio-common/reg-printf.c: Include <stddef.h>.
4863 2002-11-03 Ulrich Drepper <drepper@redhat.com>
4865 * sysdeps/generic/libc-tls.c: Define _dl_tls_static_used.
4867 * po/ca.po: Update from translation team.
4868 * po/es.po: Likewise.
4870 * sysdeps/generic/segfault.c (catch_segfault): If HAVE_PROC_SELF
4871 is defined write out memory map.
4872 * sysdeps/unix/sysv/linux/segfault.c: New file.
4874 2002-11-02 Roland McGrath <roland@redhat.com>
4876 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use union type for
4877 pointers that can alias.
4878 Reported by Daniel Jacobowitz <drow@mvista.com>.
4880 * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: New file.
4882 2002-11-02 Roland McGrath <roland@redhat.com>
4884 * manual/filesys.texi (Reading/Closing Directory): Rewrite readdir_r
4885 description to be clearer and to say that *RESULT is set to ENTRY.
4887 2002-10-30 Jakub Jelinek <jakub@redhat.com>
4889 * posix/regexec.c (build_trtable): Alloca or malloc dests_node and
4890 dests_ch arrays together. Alloca or malloc dest_states,
4891 dest_states_word and dest_states_nl arrays together. Free memory on
4894 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
4896 * crypt/crypt_util.c (__init_des_r): Initialize current_salt
4897 and current_saltbits.
4899 2002-11-02 Roland McGrath <roland@redhat.com>
4901 * stdio-common/reg-printf.c: Include <stdlib.h>.
4903 2002-11-02 H.J. Lu <hjl@gnu.org>
4905 * sysdeps/unix/sysv/linux/mips/syscalls.list (s_execve): Set
4906 caller to EXTRA instead of execve.
4908 2002-11-01 Roland McGrath <roland@redhat.com>
4910 * sysdeps/generic/errno-loc.c [! USE___THREAD]: Use this conditional
4911 in place of [!(USE_TLS && HAVE___THREAD)].
4912 (__errno_location) [! USE___THREAD]: Define as strong, not weak.
4914 2002-10-31 Roger Sayle <roger@eyesopen.com>
4916 * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q):
4918 * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
4920 * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST
4921 without defining FP_ROUNDMODE.
4923 2002-10-29 Jakub Jelinek <jakub@redhat.com>
4925 * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove.
4926 (__old_sys_siglist, __old_sys_sigabbrev): Use strong_alias and
4928 * sysdeps/mach/hurd/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
4929 (OLD_SIGLIST_SIZE): Define.
4930 * sysdeps/unix/sysv/linux/siglist.h (OLD_SIGLIST_SIZE_STR): Remove.
4931 (OLD_SIGLIST_SIZE): Define.
4932 * sysdeps/unix/sysv/linux/arm/siglist.c: Remove.
4934 2002-11-01 Jakub Jelinek <jakub@redhat.com>
4936 * sysdeps/ia64/strncpy.S: Fix recovery code.
4938 2002-10-30 Jakub Jelinek <jakub@redhat.com>
4940 * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn):
4942 * elf/dl-close.c (free_mem): Use libc_freeres_fn macro, remove
4944 * elf/dl-libc.c (free_mem): Likewise.
4945 * iconv/gconv_conf.c (free_mem): Likewise.
4946 * iconv/gconv_db.c (free_mem): Likewise.
4947 * iconv/gconv_dl.c (free_mem): Likewise.
4948 * iconv/gconv_cache.c (free_mem): Likewise.
4949 * intl/finddomain.c (free_mem): Likewise.
4950 * intl/dcigettext.c (free_mem): Likewise.
4951 * locale/setlocale.c (free_mem): Likewise.
4952 * misc/fstab.c (fstab_free): Likewise.
4953 * nss/nsswitch.c (free_mem): Likewise.
4954 * posix/regcomp.c (free_mem): Likewise.
4955 * resolv/gai_misc.c (free_res): Likewise.
4956 * stdlib/fmtmsg.c (free_mem): Likewise.
4957 * sunrpc/clnt_perr.c (free_mem): Likewise.
4958 * sysdeps/generic/setenv.c (free_mem): Likewise.
4959 * sysdeps/unix/sysv/linux/shm_open.c (freeit): Likewise.
4960 * sysdeps/pthread/aio_misc.c (free_res): Likewise.
4961 * time/tzset.c (free_mem): Likewise.
4962 * malloc/mtrace.c (release_libc_mem): Add __libc_freeres_fn_section.
4963 * locale/loadarchive.c (_nl_archive_subfreeres): Likewise.
4964 * malloc/set-freeres.c (__libc_freeres): Likewise.
4966 * login/getutent.c: Include stdlib.h instead of stddef.h.
4967 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
4968 (__getutent): Allocate buffer the first time it is run.
4969 * login/getutid.c: Include stdlib.h instead of stddef.h.
4970 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
4971 (__getutid): Allocate buffer the first time it is run.
4972 * login/getutline.c: Include stdlib.h instead of stddef.h.
4973 (buffer): Change into pointer to utmp, add libc_freeres_ptr.
4974 (__getutline): Allocate buffer the first time it is run.
4975 * malloc/mtrace.c (malloc_trace_buffer): Change into char *.
4976 (mtrace): Allocate malloc_trace_buffer.
4977 * resolv/nsap_addr.c (inet_nsap_ntoa): Decrease size of tmpbuf.
4978 * resolv/ns_print.c (ns_sprintrrf): Decrease size of t.
4979 * string/strerror.c: Include libintl.h and errno.h.
4980 (buf): New variable.
4981 (strerror): Only allocate buffer if actually needed (unknown error).
4982 * time/tzfile.c (transitions): Add libc_freeres_ptr.
4985 2002-10-25 Jakub Jelinek <jakub@redhat.com>
4987 * include/libc-symbols.h (libc_freeres_ptr): New macro.
4988 * malloc/set-freeres.c (__libc_freeres_ptrs): Define using
4990 (__libc_freeres): Free all pointers in that section.
4991 * Makerules (build-shlib): Add $(LDSEDCMD-$(@F:lib%.so=%).so) to sed
4992 commands when creating .lds script.
4993 (LDSEDCMD-c.so): New variable.
4994 * inet/rcmd.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
4995 (rcmd_af): Use strdup to allocate ahostbuf.
4996 * inet/rexec.c (ahostbuf): Change into char *. Add libc_freeres_ptr.
4997 (rexec_af): Use strdup to allocate ahostbuf.
4998 * stdio-common/reg-printf.c (printf_funcs): Remove.
4999 (__printf_arginfo_table): Change into printf_arginfo_function **.
5000 Add libc_freeres_ptr.
5001 (__register_printf_function): Allocate __printf_arginfo_table
5002 and __printf_function_table the first time it is called.
5003 * stdio-common/printf-parse.h (__printf_arginfo_table): Change into
5004 printf_arginfo_function **.
5005 (parse_one_spec): Add __builtin_expect.
5006 * grp/fgetgrent.c (buffer): Add libc_freeres_ptr.
5008 * inet/getnetgrent.c (buffer): Add libc_freeres_ptr.
5010 * intl/localealias.c (libc_freeres_ptr): Define if !_LIBC.
5011 (string_space, map): Add libc_freeres_ptr.
5013 * misc/efgcvt.c (FCVT_BUFPTR): Add libc_freeres_ptr.
5015 * misc/mntent.c (getmntent_buffer): Add libc_freeres_ptr.
5017 * crypt/md5-crypt.c (libc_freeres_ptr): Define if !_LIBC.
5018 (buffer): Add libc_freeres_ptr.
5019 (free_mem): Remove for _LIBC.
5020 * nss/getXXbyYY.c (buffer): Add libc_freeres_ptr.
5022 * nss/getXXent.c (buffer): Add libc_freeres_ptr.
5024 * pwd/fgetpwent.c (buffer): Add libc_freeres_ptr.
5026 * resolv/res_hconf.c (ifaddrs): Add libc_freeres_ptr.
5028 * shadow/fgetspent.c (buffer): Add libc_freeres_ptr.
5030 * sysdeps/posix/ttyname.c (getttyname_name): Add libc_freeres_ptr.
5032 * sysdeps/unix/sysv/linux/getsysstats.c (mount_proc): Add
5035 * sysdeps/unix/sysv/linux/ttyname.c (getttyname_name, ttyname_buf): Add
5039 2002-10-30 Jakub Jelinek <jakub@redhat.com>
5041 * malloc/obstack.c [_LIBC] (obstack_free): Change into strong_alias
5042 instead of duplicating the whole function in libc.
5044 2002-10-31 Roland McGrath <roland@redhat.com>
5046 * sysdeps/i386/bits/byteswap.h [__GNUC__ < 2] (__bswap_32):
5047 Renamed from __bswap_16 (typo fix). Reported by <dens@stl.sarov.ru>.
5049 2002-10-30 Jakub Jelinek <jakub@redhat.com>
5051 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Add -D for each
5052 32bit-predefine when creating .new32 list and -U for each
5053 32bit-predefine when creating .new64 list.
5054 * sysdeps/unix/sysv/linux/x86_64/Makefile (32bit-predefine): New.
5056 2002-10-29 Andreas Schwab <schwab@suse.de>
5058 * sysdeps/generic/allocrtsig.c: Include <testrtsig.h>, not
5059 "testrtsig.h". Reported by Daniel Jacobowitz <dan@debian.org>.
5061 2002-10-25 Roland McGrath <roland@redhat.com>
5063 * sysdeps/unix/sysv/linux/configure.in: Fix typo in last change.
5064 * sysdeps/unix/sysv/linux/configure: Regenerated.
5066 * sysdeps/generic/ldsodefs.h: Remove [! SHARED] conditional from
5067 _dl_starting_up decl.
5069 2002-10-20 H.J. Lu <hjl@gnu.org>
5071 * sysdeps/unix/sysv/linux/configure.in: Don't check
5072 /lib/modules/`uname -r`/build/include for kernel headers if
5074 * sysdeps/unix/sysv/linux/configure: Regenerated.
5076 2002-10-25 Roland McGrath <roland@redhat.com>
5078 * math/math.h (M_LOG2El): Correct the value.
5079 From Stephen L Moshier <steve@moshier.net>.
5081 * sysdeps/unix/sysv/linux/init-first.c (init): Remove [! SHARED]
5082 conditional from __libc_multiple_libcs access. Remove kludge for weak
5083 symbol access with old compilers we no longer support.
5084 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
5085 * sysdeps/generic/libc-start.c (__libc_start_main): Likewise.
5087 2002-10-25 Roland McGrath <roland@redhat.com>
5089 * sysdeps/posix/sigvec.c [SA_RESETHAND]: Disable wrapper hacks and
5090 implement SV_RESETHAND by translating it to SA_RESETHAND.
5092 2002-10-23 Alexandre Oliva <aoliva@redhat.com>
5094 * elf/dl-reloc.c (_dl_reloc_bad_use): Print the full 32-bit relocation
5095 type on ELF64 platforms.
5097 2002-10-24 Ulrich Drepper <drepper@redhat.com>
5099 * elf/elf.h (R_X86_64_GOTTPOFF): Renamed from r_x86_64_GOTTPOFF.
5101 * elf/elf.h: Define ELF_NOTE_OS_FREEBSD and NT_TASKSTRUCT.
5103 2002-10-24 Jakub Jelinek <jakub@redhat.com>
5105 * elf/dl-misc.c: Include <sysdep.h>.
5106 (_dl_debug_vdprintf): Only take dl_load_lock if not _dl_starting_up.
5108 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL,
5109 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
5110 (INLINE_SYSCALL): Use that.
5111 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL,
5112 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
5113 (INLINE_SYSCALL): Use that.
5114 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL,
5115 INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO): New macros.
5116 (INLINE_SYSCALL): Use that.
5117 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Include
5119 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
5120 (__INTERNAL_SYSCALL_STRING): Define.
5121 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
5123 (SYSCALL_ERROR_HANDLER): Define RTLD_PRIVATE_ERRNO variant.
5124 (__INTERNAL_SYSCALL_STRING): Define.
5125 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL): Pass
5126 __SYSCALL_STRING to inline_syscall*.
5127 (INTERNAL_SYSCALL, INTERNAL_SYSCALL_ERROR_P, INTERNAL_SYSCALL_ERRNO):
5129 (inline_syscall0, inline_syscall1, inline_syscall2, inline_syscall3,
5130 inline_syscall4, inline_syscall5, inline_syscall6): Add string
5133 2002-10-24 Roland McGrath <roland@redhat.com>
5135 * sysdeps/generic/ldsodefs.h (_dl_starting_up): Declare it here.
5136 * sysdeps/unix/sysv/linux/init-first.c: Not here.
5137 * sysdeps/powerpc/elf/libc-start.c: Or here.
5138 * sysdeps/unix/sysv/aix/libc-start.c: Or here.
5139 * sysdeps/unix/sysv/aix/start-libc.c: Or here.
5140 * sysdeps/unix/sysv/aix/init-first.c: Or here.
5141 * sysdeps/generic/libc-start.c: Or here.
5142 * sysdeps/unix/sysv/linux/init-first.c (init): Protect _dl_starting_up
5143 access with [! SHARED].
5144 * sysdeps/unix/sysv/aix/init-first.c (init): Likewise.
5146 * libio/bug-wfflush.c: New file.
5147 * libio/Makefile (tests): Add bug-wfflush.
5149 2002-10-23 Roland McGrath <roland@redhat.com>
5151 * stdio-common/tst-fphex.c: New file.
5152 * stdio-common/Makefile (tests): Add tst-fphex.
5153 * sysdeps/generic/printf_fphex.c (__printf_fphex): Fix initialization
5154 of WNUMEND. Fix counting of decimal point in WIDTH. Print '0' pad
5155 chars always before the value digits.
5156 Reported by James Antill <james.antill@redhat.com>.
5158 2002-10-24 Jakub Jelinek <jakub@redhat.com>
5160 * posix/regcomp.c (re_comp): Call __regfree on re_comp_buf.
5161 (free_mem): New function.
5162 * posix/Makefile (tests): Add bug-regex14. Add bug-regex14-mem
5163 if not cross compiling.
5164 (generated): Add bug-regex14-mem and bug-regex14.mtrace.
5165 (bug-regex14-ENV): Set.
5166 (bug-regex14-mem): New target.
5167 * posix/bug-regex14.c: New file.
5169 2002-10-23 Roland McGrath <roland@redhat.com>
5171 * elf/Makefile ($(objpfx)librtld.map): Use temporary file for output
5172 target, so we don't touch it when the link fails.
5174 * libio/ftello.c (ftello): Use _IO_off64_t for type of POS.
5175 Check for the result overflowing off_t and fail with EOVERFLOW.
5176 * libio/ioftell.c (_IO_ftell): Likewise.
5177 * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
5179 * login/logwtmp.c (logwtmp): If sizeof ut_tv != sizeof struct timeval,
5180 use a temporary timeval on the stack for gettimeofday and copy it.
5181 * login/logout.c (logout): Likewise.
5182 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
5184 * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs):
5185 Use __SWORD_TYPE instead of int for member types.
5186 (struct statfs64): Likewise.
5187 * sysdeps/unix/sysv/linux/alpha/bits/statfs.h: New file.
5188 * sysdeps/unix/sysv/linux/s390/bits/statfs.h: New file.
5189 * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: File removed.
5190 * sysdeps/unix/sysv/linux/sparc/bits/statfs.h: File removed.
5191 * sysdeps/unix/sysv/linux/x86_64/bits/statfs.h: File removed.
5193 * sysdeps/unix/sysv/linux/sparc/bits/statvfs.h: Moved to ...
5194 * sysdeps/unix/sysv/linux/bits/statvfs.h: ... here.
5195 (ST_NODIRATIME): Restore fixed value of 2048.
5196 * sysdeps/unix/sysv/linux/alpha/bits/statvfs.h: File removed.
5197 * sysdeps/unix/sysv/linux/ia64/bits/statvfs.h: File removed.
5199 Rearranged <bits/types.h> definitions to reduce duplication.
5200 * sysdeps/generic/bits/types.h: Rewritten, using macros from
5201 <bits/wordsize.h> and new header <bits/typesizes.h>.
5202 * posix/Makefile (headers): Add bits/typesizes.h here.
5203 * sysdeps/generic/bits/typesizes.h: New file.
5204 * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: New file.
5205 * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: New file.
5206 * sysdeps/mach/hurd/bits/typesizes.h: New file.
5207 * sysdeps/unix/sysv/linux/alpha/bits/types.h: File removed.
5208 * sysdeps/unix/sysv/linux/bits/types.h: File removed.
5209 * sysdeps/unix/sysv/linux/ia64/bits/types.h: File removed.
5210 * sysdeps/unix/sysv/linux/mips/bits/types.h: File removed.
5211 * sysdeps/unix/sysv/linux/s390/bits/types.h: File removed.
5212 * sysdeps/unix/sysv/linux/sparc/bits/types.h: File removed.
5213 * sysdeps/unix/sysv/linux/x86_64/bits/types.h: File removed.
5214 * posix/sys/types.h [__USE_POSIX199506 || __USE_UNIX98]: Include
5215 <bits/pthreadtypes.h> here, not in <bits/types.h>.
5216 * signal/signal.h: Likewise.
5218 * streams/stropts.h: Include <bits/xtitypes.h>.
5219 * streams/Makefile (headers): Add bits/xtitypes.h here.
5220 * sysdeps/generic/bits/xtitypes.h: New file.
5221 * sysdeps/s390/bits/xtitypes.h: New file.
5222 * sysdeps/ia64/bits/xtitypes.h: New file.
5223 * sysdeps/x86_64/bits/xtitypes.h: New file.
5225 * sysvipc/Makefile (headers): Add bits/ipctypes.h here.
5226 * sysdeps/generic/bits/ipctypes.h: New file.
5227 * sysdeps/mips/bits/ipctypes.h: New file.
5228 * sysdeps/gnu/bits/shm.h: Include <bits/ipctypes.h>.
5229 * sysdeps/gnu/bits/msq.h: Likewise.
5230 * sysvipc/sys/ipc.h: Likewise.
5232 2002-10-22 Ulrich Drepper <drepper@redhat.com>
5234 * elf/dl-load.c (struct filebuf): For buf element to have the
5235 alignment of ElfXX_Ehdr since this is what will be stored in it.
5237 2002-10-22 Jakub Jelinek <jakub@redhat.com>
5239 * locale/programs/locarchive.c (add_alias): Change locrec_offset arg
5240 into pointer to locrec_offset.
5241 (add_locale_to_archive): Adjust callers. Free normalized_name right
5242 before returning, not immediately after add_locale, pass it to
5243 add_alias if not NULL instead of name. Rename second normalized_name
5244 occurence to nnormalized_codeset_name.
5246 * locale/programs/locarchive.c (enlarge_archive): Make sure
5247 string_size is always a multiple of 4.
5248 Reported by Andreas Schwab <schwab@suse.de>.
5250 2002-10-21 Andreas Schwab <schwab@suse.de>
5252 * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_execve): Set
5253 caller to EXTRA instead of execve, since the latter has a
5254 higher-priority implementation in linuxthreads.
5256 2002-10-21 Roland McGrath <roland@redhat.com>
5258 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Initialize the static
5259 slotinfo list's len member to the proper size, not just 1.
5260 Initialize static_map.l_tls_initimage.
5262 * elf/dl-open.c (dl_open_worker): Fix loop searching for
5263 dtv_slotinfo_list element containing new modules' l_tls_modid.
5265 * elf/tst-tls9.c, elf/tst-tls9-static.c: New files.
5266 * elf/tst-tlsmod5.c, elf/tst-tlsmod6.c: New files.
5267 * elf/Makefile (tests): Add tst-tls9.
5268 (tests-static): Add tst-tls9-static.
5269 (tst-tls9-static-ENV): New variable.
5270 ($(objpfx)tst-tls9-static, $(objpfx)tst-tls9-static.out): New targets.
5272 * elf/dl-close.c (remove_slotinfo): Remove an assert; the number of
5273 modids used by partially loaded modules being closed can't be known.
5275 2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com>
5277 * posix/Makefile: Add a test case for the bug reported by Aharon
5278 Robbins <arnold@skeeve.com>.
5279 * posix/bug-regex13.c: New file.
5280 * posix/regcomp.c (peek_token_bracket): Skip the byte already read.
5282 2002-10-21 Ulrich Drepper <drepper@redhat.com>
5284 * csu/gmon-start.c: Pretty printing.
5286 2002-10-19 Art Haas <ahaas@neosoft.com>
5288 * configure.in: Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS,
5289 add AC_HELP_STRING to all AC_ARG_WITH and AC_ARG_ENABLE macros,
5290 add autoconf quotes to the AC_CONFIG_AUX_DIR macro.
5291 * configure: Regenerated.
5293 2002-10-19 Roland McGrath <roland@redhat.com>
5295 * configure.in: Call AC_CONFIG_SUBDIRS with empty argument
5296 and then set $subdirs directly, because the new Autoconf breaks
5297 compatibility in every way imaginable and insists on whining
5298 about usage that worked since the dawn of time.
5299 * configure: Regenerated.
5301 * configure: Regenerated (using Autoconf 2.54).
5302 * sysdeps/alpha/elf/configure: Likewise.
5303 * sysdeps/generic/configure: Likewise.
5304 * sysdeps/i386/elf/configure: Likewise.
5305 * sysdeps/ia64/elf/configure: Likewise.
5306 * sysdeps/mach/hurd/configure: Likewise.
5307 * sysdeps/mach/configure: Likewise.
5308 * sysdeps/unix/configure: Likewise.
5309 * sysdeps/unix/common/configure: Likewise.
5310 * sysdeps/unix/sysv/aix/configure: Likewise.
5311 * sysdeps/unix/sysv/linux/configure: Likewise.
5312 * sysdeps/unix/sysv/linux/mips/configure: Likewise.
5313 * sysdeps/x86_64/elf/configure: Likewise.
5315 * config.make.in: Nix completely-soft nonsense.
5316 * configure.in: Likewise. Under --without-fp, use nofpu subdirectory
5317 of machine directories instead of fpu subdirectory.
5318 * sysdeps/powerpc/soft-fp/Makefile: Remove cruft added in last change.
5319 * sysdeps/powerpc/nofpu/Makefile: Put it in this new file instead.
5320 * sysdeps/powerpc/soft-fp/sim-full.c: Moved to ...
5321 * sysdeps/powerpc/nofpu/sim-full.c: ... here.
5322 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: Moved to ...
5323 * sysdeps/powerpc/nofpu/fraiseexcpt.c: ... here.
5324 * sysdeps/powerpc/soft-fp/fegetexcept.c: Moved to ...
5325 * sysdeps/powerpc/nofpu/fegetexcept.c: ... here.
5326 * sysdeps/powerpc/soft-fp/fclrexcpt.c: Moved to ...
5327 * sysdeps/powerpc/nofpu/fclrexcpt.c: ... here.
5328 * sysdeps/powerpc/soft-fp/ftestexcept.c: Moved to ...
5329 * sysdeps/powerpc/nofpu/ftestexcept.c: ... here.
5330 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: Moved to ...
5331 * sysdeps/powerpc/nofpu/fgetexcptflg.c: ... here.
5332 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: Moved to ...
5333 * sysdeps/powerpc/nofpu/fsetexcptflg.c: ... here.
5334 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: Moved to ...
5335 * sysdeps/powerpc/nofpu/fedisblxcpt.c: ... here.
5336 * sysdeps/powerpc/soft-fp/feenablxcpt.c: Moved to ...
5337 * sysdeps/powerpc/nofpu/feenablxcpt.c: ... here.
5338 * sysdeps/powerpc/soft-fp/fegetenv.c: Moved to ...
5339 * sysdeps/powerpc/nofpu/fegetenv.c: ... here.
5340 * sysdeps/powerpc/soft-fp/fesetenv.c: Moved to ...
5341 * sysdeps/powerpc/nofpu/fesetenv.c: ... here.
5342 * sysdeps/powerpc/soft-fp/fegetround.c: Moved to ...
5343 * sysdeps/powerpc/nofpu/fegetround.c: ... here.
5344 * sysdeps/powerpc/soft-fp/fesetround.c: Moved to ...
5345 * sysdeps/powerpc/nofpu/fesetround.c: ... here.
5346 * sysdeps/powerpc/soft-fp/feupdateenv.c: Moved to ...
5347 * sysdeps/powerpc/nofpu/feupdateenv.c: ... here.
5348 * sysdeps/powerpc/soft-fp/feholdexcpt.c: Moved to ...
5349 * sysdeps/powerpc/nofpu/feholdexcpt.c: ... here.
5350 * sysdeps/powerpc/soft-fp/fenv_const.c: Moved to ...
5351 * sysdeps/powerpc/nofpu/fenv_const.c: ... here.
5352 * sysdeps/powerpc/soft-fp/libm-test-ulps: Moved to ...
5353 * sysdeps/powerpc/nofpu/libm-test-ulps: ... here.
5354 * sysdeps/powerpc/soft-fp/soft-supp.h: Moved to ...
5355 * sysdeps/powerpc/nofpu/soft-supp.h: ... here.
5356 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Moved to ...
5357 * sysdeps/powerpc/nofpu/Versions: ... here, new file.
5359 2002-10-19 Bruno Haible <bruno@clisp.org>
5361 * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: New file.
5363 2002-10-18 Roland McGrath <roland@redhat.com>
5365 * io/Makefile (routines): Add lchmod.
5366 * io/sys/stat.h [__USE_BSD] (lchmod): Declare it.
5367 * sysdeps/generic/lchmod.c: New file.
5368 * sysdeps/mach/hurd/lchmod.c: New file.
5369 * io/Versions (libc: GLIBC_2.3.2): New set, add lchmod.
5371 2002-10-18 Art Haas <ahaas@neosoft.com>
5373 * configure.in: Remove remaining AC_FD_CC macros, and replace
5374 AC_FD_MSG with AS_MESSAGE_FD.
5376 2002-10-18 Roland McGrath <roland@redhat.com>
5378 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela): Fix
5379 typos: VALUE -> FINALADDR.
5381 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL, INLINE_SYSCALL1)
5382 (inline_syscall_clobbers, inline_syscall0, inline_syscall1)
5383 (inline_syscall2, inline_syscall3, inline_syscall4, inline_syscall5)
5384 (inline_syscall6): Move these macros ...
5385 * sysdeps/unix/sysv/linux/alpha/sysdep.h: ... to here.
5387 * configure.in (libc_link_dests, libc_link_sources): Remove these
5388 variables and the AC_LINK_FILES call.
5390 * sysdeps/powerpc/soft-fp/Versions (libc: GLIBC_2.3.2): Fix last
5391 change to put new symbols here instead of in GLIBC_2.2.
5392 * sysdeps/powerpc/Subdirs: Move this file ...
5393 * sysdeps/powerpc/soft-fp/Subdirs: ... here.
5395 2002-10-07 Roland McGrath <roland@redhat.com>
5397 * sysdeps/generic/bits/time.h: Replaced with contents of the
5398 sysdeps/unix/sysv/linux/i386/bits/time.h file. All the following
5399 files were identical except for the absence of CLOCK_THREAD_CPUTIME_ID
5400 and CLOCK_PROCESS_CPUTIME_ID in .../linux/bits/time.h; adding these
5401 macros is ok even for architectures that don't now implement them.
5402 * sysdeps/mach/hurd/bits/time.h: File removed.
5403 * sysdeps/unix/sysv/linux/bits/time.h: File removed.
5404 * sysdeps/unix/sysv/linux/i386/bits/time.h: File removed.
5405 * sysdeps/unix/sysv/linux/ia64/bits/time.h: File removed.
5406 * sysdeps/unix/sysv/linux/sparc/bits/time.h: File removed.
5407 * sysdeps/unix/sysv/linux/x86_64/bits/time.h: File removed.
5409 2002-10-18 Jeff Bailey <jbailey@gnu.org>
5411 * configure.in: Replace obsolete AC_OUTPUT syntax with
5412 AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio.
5414 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for
5415 _AS_PATH_SEPARATOR_PREPARE and _AS_TEST_PREPARE.
5417 * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
5418 * sysdeps/alpha/elf/configure.in: Likewise.
5419 * sysdeps/i386/elf/configure.in: Likewise.
5420 * sysdeps/mach/hurd/configure.in: Likewise.
5421 * sysdeps/x86_64/elf/configure.in: Likewise.
5423 * configure.in: Use AC_CONFIG_SRCDIR and new AC_INIT syntax.
5425 * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement.
5426 * sysdeps/generic/configure.in: Likewise.
5427 * sysdeps/i386/elf/configure.in: Likewise.
5428 * sysdeps/ia64/elf/configure.in: Likewise.
5429 * sysdeps/mach/configure.in: Likewise.
5430 * sysdeps/mach/hurd/configure.in: Likewise.
5431 * sysdeps/unix/configure.in: Likewise.
5432 * sysdeps/unix/common/configure.in: Likewise.
5433 * sysdeps/unix/sysv/aix/configure.in: Likewise.
5434 * sysdeps/unix/sysv/linux/configure.in: Likewise.
5435 * sysdeps/unix/sysv/linux/mips/configure.in: Likewise.
5436 * sysdeps/x86_64/elf/configure.in: Likewise.
5438 * aclocal.m4: Use just the bits from AS_INIT that are needed for the
5439 GLIBC_PROVIDES. Use plain comment instead of HEADER-COMMENT so
5440 that it's obvious when extra autoconf machinery is being dragged in.
5442 2002-10-18 Roland McGrath <roland@redhat.com>
5444 * configure.in: Remove bogus echo included in
5445 2002-10-08 Aldy Hernandez <aldyh@redhat.com> change.
5446 * configure: Regenerated.
5448 2002-10-18 Jakub Jelinek <jakub@redhat.com>
5450 * sysdeps/unix/sysv/linux/pathconf.h (statfs_link_max): Add inline.
5451 (statfs_filesize_max): New function.
5452 * sysdeps/unix/sysv/linux/linux_fsinfo.h (JFFS_SUPER_MAGIC,
5453 JFFS2_SUPER_MAGIC, JFS_SUPER_MAGIC, NTFS_SUPER_MAGIC,
5454 ROMFS_SUPER_MAGIC, UDF_SUPER_MAGIC): Define.
5455 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use
5456 statfs_filesize_max.
5457 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
5458 * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Removed.
5459 * sysdeps/unix/sysv/linux/alpha/pathconf.c: Removed.
5461 2002-10-17 Roland McGrath <roland@redhat.com>
5463 * configure.in (MIG): Just AC_SUBST it here.
5464 * configure: Regenerated.
5465 * sysdeps/mach/configure.in (MIG): Do the AC_CHECK_TOOL here.
5466 Adding final - argument to all AC_CHECK_HEADER uses for .defs files.
5467 * sysdeps/mach/configure: Regenerated.
5469 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_TR_SH_PREPARE])
5470 and AC_PROVIDE([_AS_CR_PREPARE]).
5472 * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDE([_AS_ECHO_N_PREPARE]).
5473 Remove AC_LANG(C) call, instead just define([_AC_LANG], [C]).
5475 * elf/dl-support.c: Move _dl_tls_* variables to ...
5476 * sysdeps/generic/libc-tls.c: ... here.
5478 * elf/dl-close.c (remove_slotinfo): Take new argument. If false,
5479 allow IDX to be one past the current last slotinfo entry.
5480 (_dl_close): Pass IMAP->l_init_called for that parameter.
5482 2002-10-07 Andreas Schwab <schwab@suse.de>
5484 * aclocal.m4: Fix for autoconf 2.53.
5485 * configure.in: Likewise. Require autoconf 2.53.
5487 2002-10-08 Richard Henderson <rth@redhat.com>
5489 * soft-fp/op-4.h: Handle carry correctly in
5490 __FP_FRAC_ADD_3, __FP_FRAC_ADD_4, __FP_FRAC_SUB_3,
5491 __FP_FRAC_SUB_4, __FP_FRAC_DEC_3, __FP_FRAC_DEC_4.
5492 * soft-fp/op-common.h: New macros _FP_DIV_MEAT_N_loop.
5494 2002-10-08 Aldy Hernandez <aldyh@redhat.com>
5496 * configure.in: Compute completely-soft.
5497 * config.make.in: Make completely-soft available to sub-makes.
5498 * sysdeps/powerpc/soft-fp/Makefile: Add gcc-single-routines and
5499 gcc-double-routines. Add sim-full.c. Add fenv_const and
5500 fe_nomask to libm-support.
5501 * sysdeps/powerpc/soft-fp/sim-full.c: New file.
5502 * sysdeps/powerpc/soft-fp/fraiseexcpt.c: New file.
5503 * sysdeps/powerpc/soft-fp/fegetexcept.c: New file.
5504 * sysdeps/powerpc/soft-fp/fclrexcpt.c: New file.
5505 * sysdeps/powerpc/soft-fp/ftestexcept.c: New file.
5506 * sysdeps/powerpc/soft-fp/fgetexcptflg.c: New file.
5507 * sysdeps/powerpc/soft-fp/fsetexcptflg.c: New file.
5508 * sysdeps/powerpc/soft-fp/fedisblxcpt.c: New file.
5509 * sysdeps/powerpc/soft-fp/feenablxcpt.c: New file.
5510 * sysdeps/powerpc/soft-fp/fegetenv.c: New file.
5511 * sysdeps/powerpc/soft-fp/fesetenv.c: New file.
5512 * sysdeps/powerpc/soft-fp/fegetround.c: New file.
5513 * sysdeps/powerpc/soft-fp/fesetround.c: New file.
5514 * sysdeps/powerpc/soft-fp/feupdateenv.c: New file.
5515 * sysdeps/powerpc/soft-fp/feholdexcpt.c: New file.
5516 * sysdeps/powerpc/soft-fp/fenv_const.c: New file.
5517 * sysdeps/powerpc/soft-fp/libm-test-ulps: New file.
5518 * sysdeps/powerpc/soft-fp/soft-supp.h: New file.
5519 * sysdeps/powerpc/soft-fp/Versions: Add libgcc soft-float
5520 symbols. Add __sim_disabled_exceptions, __sim_exceptions,
5522 * sysdeps/powerpc/soft-float/Dist: Add sim-full.c, fenv_const.c.
5523 * sysdeps/powerpc/soft-float/sfp-machine.h: Define
5524 FP_HANDLE_EXCEPTIONS.
5525 Define FP_ROUNDMODE.
5526 Redefine FP_* macros to correspond to the FE_* bit positions.
5527 Define FP_DIV_MEAT_S to _FP_DIV_MEAT_1_loop.
5528 Define externs for __sim_exceptions, __sim_disabled_exceptions,
5529 __sim_round_mode, __simulate_exceptions.
5530 * sysdeps/powerpc/fpu/bits/fenv.h: Move file from here...
5531 * sysdeps/powerpc/bits/fenv.h: ...to here.
5533 2002-10-06 Jakub Jelinek <jakub@redhat.com>
5535 * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
5536 Store R_PPC_UADDR32 and R_PPC_UADDR16 one byte at a time.
5537 Use __builtin_expect for R_PPC_ADDR24 overflow check. Fix
5538 R_PPC_ADDR16, R_PPC_UADDR16 and R_PPC_ADDR14* overflow check, use
5541 2002-10-15 Jakub Jelinek <jakub@redhat.com>
5543 * include/resolv.h (__libc_res_nquery, __libc_res_nsearch,
5544 __libc_res_nsend): New prototypes.
5545 * resolv/res_query.c (QUERYSIZE): Define.
5546 (__libc_res_nquery): Renamed from res_nquery. Added answerp
5547 argument. Allocate only QUERYSIZE bytes first, if res_nmkquery
5548 fails use MAXPACKET buffer. Call __libc_res_nsend instead of
5549 res_nsend, pass answerp.
5550 (res_nquery): Changed into wrapper around __libc_res_nquery.
5551 (__libc_res_nsearch): Renamed from res_nsearch. Added answerp
5552 argument. Call __libc_res_nquerydomain and __libc_res_nquery
5553 instead of the non-__libc_ variants, pass them answerp.
5554 (res_nsearch): Changed into wrapper around __libc_res_nsearch.
5555 (__libc_res_nquerydomain): Renamed from res_nquerydomain.
5556 Added answerp argument. Call __libc_res_nquery instead of
5557 res_nquery, pass answerp.
5558 (res_nquerydomain): Changed into wrapper around
5559 __libc_res_nquerydomain.
5560 * resolv/res_send.c: Include sys/ioctl.h.
5561 (MAXPACKET): Define.
5562 (send_vc): Change arguments. Reallocate answer buffer if it is
5564 (send_dg): Likewise.
5565 (__libc_res_nsend): Renamed from res_nsend. Added ansp argument.
5566 Reallocate answer buffer if it is too small and hooks are in use.
5567 Adjust calls to send_vc and send_dg.
5568 (res_nsend): Changed into wrapper around __libc_res_nsend.
5569 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Allocate
5570 just 1K answer buffer on the stack, use __libc_res_nsearch instead
5572 (_nss_dns_gethostbyaddr_r): Similarly with __libc_res_nquery.
5573 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r): Likewise.
5574 (_nss_dns_getnetbyname_r): Similarly with __libc_res_nsearch.
5575 * resolv/gethnamaddr.c (gethostbyname2): Likewise.
5576 (gethostbyaddr): Similarly with __libc_res_nquery.
5577 * resolv/Versions (libresolv): Export __libc_res_nquery and
5578 __libc_res_nsearch at GLIBC_PRIVATE.
5580 2002-10-17 Roland McGrath <roland@redhat.com>
5582 * configure.in: Grok --without-__thread and disable HAVE___THREAD.
5583 * configure: Regenerated.
5585 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Do CHECK_STATIC_TLS
5586 before performing the reloc, not after.
5587 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
5589 2002-10-17 Ulrich Drepper <drepper@redhat.com>
5591 * locale/programs/locale.c (write_locales): Use 'm' flag in fopen call.
5592 * locale/programs/linereader.c (lr_open): Likewise.
5593 * locale/programs/charmap-dir.c (charmap_open): Likewise.
5594 * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
5596 2002-10-17 Isamu Hasegawa <isamu@yamato.ibm.com>
5598 * posix/bug-regex11.c: Add a test case for the bug reported by
5599 Paolo Bonzini <bonzini@gnu.org>.
5600 * posix/regexec.c (sift_states_bkref): Use correct destination of
5603 2002-10-17 Roland McGrath <roland@redhat.com>
5605 * elf/dl-load.c (_dl_map_object_from_fd): Don't check DF_STATIC_TLS.
5606 * elf/dl-reloc.c (_dl_relocate_object: CHECK_STATIC_TLS): New macro
5607 to signal error if an IE-model TLS reloc resolved to a dlopen'd module.
5608 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
5609 Call it after performing TPOFF relocs.
5610 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
5611 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
5612 * elf/dl-conflict.c (CHECK_STATIC_TLS): New macro (no-op).
5614 * elf/dl-close.c (remove_slotinfo): Change asserts so as not to crash
5615 when closing a partially-initialized object.
5617 * elf/dl-load.c (_dl_map_object_from_fd) [! USE_TLS]: Call lose
5618 instead of _dl_fatal_printf when we see PT_TLS.
5620 * Makeconfig (CPPFLAGS): Fix last change to use $(libof-$(<F))
5621 instead of $(libof-$<).
5623 2002-10-16 Roland McGrath <roland@redhat.com>
5625 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Variable removed.
5626 instead of += to append, to be sure $(lib) gets expanded at defn time.
5627 (libof-$(cpp-src)): New variable, define this instead.
5628 * extra-lib.mk (cpp-srcs-left): Reduce duplication in include setup.
5629 (lib): Don't use override.
5630 (CPPFLAGS-$(lib)): New variable, put -D's here.
5631 * Makeconfig (CPPFLAGS): Use basename fn for CPPFLAGS-basename.
5632 Also add $(CPPFLAGS-LIB) before the file-specific flags, for each
5633 LIB found by $(libof-*) for basename, target, or source.
5634 * Makerules (CPPFLAGS-nonlib): New variable.
5635 * nscd/Makefile (lib): Set to nonlib when using cppflags-iterator.mk.
5636 * locale/Makefile (lib): Likewise.
5637 * sunrpc/Makefile (lib): Likewise.
5639 * sysdeps/unix/sysv/linux/fpathconf.c (LINUX_LINK_MAX): Move macro ...
5640 * sysdeps/unix/sysv/linux/linux_fsinfo.h (LINUX_LINK_MAX): ... here.
5641 * sysdeps/unix/sysv/linux/pathconf.h: New file.
5642 (statfs_link_max): New function, guts from fpathconf.c.
5643 * sysdeps/unix/sysv/linux/fpathconf.c: Rewritten using that.
5644 * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
5645 * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Rewritten
5646 to use the linux/pathconf.c code by #include rather than duplication.
5647 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__pathconf): Likewise.
5649 2002-10-16 Jakub Jelinek <jakub@redhat.com>
5651 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5652 Use __libc_errno only for libc itself.
5654 2002-10-16 Andreas Jaeger <aj@suse.de>
5656 * sysdeps/x86_64/_mcount.S: Fix off-by-1 error in argument access.
5658 2002-10-16 Ulrich Drepper <drepper@redhat.com>
5660 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5661 Use __libc_errno only for libc itself.
5663 2002-10-15 Roland McGrath <roland@redhat.com>
5664 Jakub Jelinek <jakub@redhat.com>
5666 * sysdeps/unix/sysv/linux/Makefile
5667 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from
5668 sparc/Makefile to produce a bi-arch file as needed.
5669 That's now parameterized by the variable $(64bit-predefine).
5670 Use LC_ALL=C for `comm' commands in that rule.
5671 No longer conditional on [$(no_syscall_list_h)].
5672 * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules.
5673 (64bit-predefine): New variable.
5674 * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise.
5675 * sysdeps/unix/sysv/linux/s390/Makefile: New file.
5676 * sysdeps/unix/sysv/linux/powerpc/Makefile
5677 (64bit-predefine): New variable.
5679 2002-10-15 Roland McGrath <roland@redhat.com>
5681 * sysdeps/unix/sysv/linux/Makefile
5682 ($(objpfx)syscall-%.h $(objpfx)syscall-%.d)
5684 * login/utmp-private.h: Declare __libc_utmp_lock.
5685 * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once
5686 and call __libc_utmp_jump_table functions directly, instead of using
5689 * sysdeps/unix/sysv/linux/configure.in: Use case instead of if.
5690 * sysdeps/unix/sysv/linux/configure: Regenerated.
5692 * sysdeps/gnu/bits/utmp.h: Include <bits/wordsize.h>.
5693 (struct lastlog) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
5694 Use int32_t for ll_time.
5695 (struct utmp) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]:
5696 Use int32_t instead of long int for ut_session.
5697 Use an anonymous struct with 32-bit fields for ut_tv.
5698 * sysdeps/gnu/bits/utmpx.h: Include <bits/wordsize.h>.
5699 (struct utmpx) [__WORDSIZE == 64 && __WORDSIZE_COMPAT32]: Do the same
5700 here as in utmp.h for `struct utmp'.
5701 * sysdeps/unix/sysv/linux/powerpc/bits/utmp.h: File removed.
5702 * sysdeps/unix/sysv/linux/powerpc/bits/utmpx.h: File removed.
5703 * sysdeps/unix/sysv/linux/sparc/bits/utmp.h: File removed.
5704 * sysdeps/unix/sysv/linux/sparc/bits/utmpx.h: File removed.
5705 * sysdeps/unix/sysv/linux/x86_64/bits/utmp.h: File removed.
5706 * sysdeps/unix/sysv/linux/x86_64/bits/utmpx.h: File removed.
5708 * sysdeps/unix/sysv/linux/bits/resource.h: Replaced with the contents
5709 of the sysdeps/unix/sysv/linux/i386/bits/resource.h file.
5710 All the following files were identical or equivalent to it.
5711 * sysdeps/unix/sysv/linux/i386/bits/resource.h: File removed.
5712 * sysdeps/unix/sysv/linux/arm/bits/resource.h: File removed.
5713 * sysdeps/unix/sysv/linux/cris/bits/resource.h: File removed.
5714 * sysdeps/unix/sysv/linux/hppa/bits/resource.h: File removed.
5715 * sysdeps/unix/sysv/linux/ia64/bits/resource.h: File removed.
5716 * sysdeps/unix/sysv/linux/m68k/bits/resource.h: File removed.
5717 * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: File removed.
5718 * sysdeps/unix/sysv/linux/s390/bits/resource.h: File removed.
5719 * sysdeps/unix/sysv/linux/sh/bits/resource.h: File removed.
5720 * sysdeps/unix/sysv/linux/x86_64/bits/resource.h: File removed.
5722 * sysdeps/unix/sysv/linux/bits/socket.h (struct msghdr): Use size_t
5723 instead of int for msg_iovlen, instead of socklen_t for msg_controllen.
5724 Other than the previously incorrect sign of msg_iovlen, this is a
5725 no-op on 32-bit platforms. On 64-bit platforms it makes this header
5726 match their layouts as well, so the following are now identical to it.
5727 * sysdeps/unix/sysv/linux/s390/bits/socket.h: File removed.
5728 * sysdeps/unix/sysv/linux/sparc/bits/socket.h: File removed.
5729 * sysdeps/unix/sysv/linux/x86_64/bits/socket.h: File removed.
5730 * sysdeps/unix/sysv/linux/ia64/bits/socket.h: File removed.
5731 * sysdeps/unix/sysv/linux/alpha/bits/socket.h: File removed.
5733 2002-10-15 Ulrich Drepper <drepper@redhat.com>
5735 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
5736 Define for 2.4+ kernels.
5738 * sysdeps/unix/sysv/linux/i386/vfork.S: Optimize for kernels which
5739 are known to have the vfork syscall. Don't confuse the CPUs
5740 branch prediction unit by jumping to the return address.
5742 * sysdeps/unix/sysv/linux/alpha/fpathconf.c (__fpathconf): Add
5743 support for reiserfs and xfs.
5745 * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Add case for
5747 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define XFS_SUPER_MAGIC
5749 Patch by Eric Sandeen <sandeen@sgi.com> [PR libc/4706].
5751 2002-10-16 Jakub Jelinek <jakub@redhat.com>
5753 * include/libc-symbols.h (attribute_tls_model_ie): Define.
5754 * include/errno.h (errno): Define to __libc_errno in libc.so.
5755 Add attribute_tls_model_ie.
5756 * include/netdb.h (h_errno): Define to __libc_h_errno in libc.so.
5757 Add attribute_tls_model_ie.
5758 * include/resolv.h (_res): Define to __libc_res in libc.so. Add
5759 attribute_tls_model_ie.
5760 * inet/herrno.c (__libc_h_errno): Add hidden alias to h_errno.
5762 * resolv/res_libc.c (__libc_res): Add hidden alias to _res.
5764 * sysdeps/generic/bits/libc-tsd.h (__libc_tsd_define): Add
5765 attribute_tls_model_ie.
5766 * sysdeps/generic/errno-loc.c (errno): Only undefine if not using
5768 * sysdeps/generic/errno.c (__libc_errno): Add hidden alias to errno.
5769 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use
5770 __libc_errno in USE___THREAD case.
5771 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5773 * configure.in (HAVE_TLS_MODEL_ATTRIBUTE): Check for
5774 __attribute__((tls_model (""))).
5775 * configure: Rebuilt.
5776 * config.h.in (HAVE_TLS_MODEL_ATTRIBUTE): Add.
5778 2002-10-15 Ulrich Drepper <drepper@redhat.com>
5780 * timezone/asia: Update from tzdata2002d.
5781 * timezone/australasia: Likewise.
5782 * timezone/iso3166.tab: Likewise.
5783 * timezone/southamerica: Likewise.
5784 * timezone/zone-tab: Likewise.
5786 2002-10-15 Roland McGrath <roland@redhat.com>
5788 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls) [TLS_TCB_AT_TP]:
5789 Adjust TCB pointer before calling free, so we get the whole block.
5791 2002-10-14 Roland McGrath <roland@redhat.com>
5793 * sysdeps/unix/sysv/linux/x86_64/sigaction.c
5794 [HAVE_HIDDEN && !HAVE_BROKEN_VISIBILITY_ATTRIBUTE]: Declare restore_rt
5795 extern using attribute_hidden instead of static, avoids warning.
5797 2002-10-09 Jakub Jelinek <jakub@redhat.com>
5799 * sysdeps/unix/sysv/linux/configure.in: Use */lib64 for s390x too.
5800 * sysdeps/unix/sysv/linux/configure: Rebuilt.
5802 2002-10-14 Ulrich Drepper <drepper@redhat.com>
5804 * po/sv.po: Update from translation team.
5806 2002-10-12 H.J. Lu <hjl@gnu.org>
5808 * sunrpc/thrsvc.c (PROCQUIT): New.
5809 (struct rpc_arg): New.
5810 (dispatch): Call exit (0) if request->rq_proc == PROCQUIT.
5811 (test_one_call): Take struct rpc_arg * instead of CLIENT *c.
5812 (thread_wrapper): Modified for struct rpc_arg * and call PROCQUIT.
5813 (main): Modified for struct rpc_arg *.
5815 2002-10-14 Ulrich Drepper <drepper@redhat.com>
5817 * dirent/scandir.c: Rearrange code a bit to reduce binary size.
5819 2002-10-14 Jakub Jelinek <jakub@redhat.com>
5821 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Include tls.h.
5822 (SYSCALL_ERROR_HANDLER): Use RTLD_PRIVATE_ERRNO sequence
5823 in ld.so even if __thread is supported.
5825 2002-10-13 Jakub Jelinek <jakub@redhat.com>
5827 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
5828 Add hack to prevent the compiler from clobbering the signal context.
5829 * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
5831 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h (profil_counter):
5834 2002-10-14 Andreas Jaeger <aj@suse.de>
5836 * sysdeps/mips/fpu/libm-test-ulps: Regenerated by
5837 Guido Guenther <agx@sigxcpu.org>.
5839 2002-10-14 Ulrich Drepper <drepper@redhat.com>
5841 * po/sk.po: Update from translation team.
5843 2002-09-26 Roland McGrath <roland@redhat.com>
5845 * elf/dl-load.c (_dl_dst_count, _dl_dst_substitute): Handle $LIB
5847 * elf/Makefile ($(objpfx)trusted-dirs.st): Make the output define
5848 DL_DST_LIB based on $(slibdir).
5850 2002-10-13 Roland McGrath <roland@frob.com>
5852 * elf/rtld-Rules ($(objpfx)rtld-libc.a): Use $(verbose) in ar command.
5854 * sysdeps/mach/hurd/getresuid.c: New file.
5855 * sysdeps/mach/hurd/getresgid.c: New file.
5856 * sysdeps/mach/hurd/setresuid.c: New file.
5857 * sysdeps/mach/hurd/setresgid.c: New file.
5859 * posix/unistd.h [__USE_GNU] (getresuid, getresgid, setresuid,
5860 setresgid): Declare them.
5863 (__getresuid, __getresgid, __setresuid, __setresgid): Declare them,
5864 add libc_hidden_proto.
5865 * posix/Versions (libc: GLIBC_2.3.2): New set. Add
5866 getresuid, getresgid, setresuid, setresgid here.
5867 * Versions.def (libc): Define GLIBC_2.3.2 set.
5868 * sysdeps/generic/getresuid.c (__getresuid): Fix argument types.
5869 Add libc_hidden_def.
5870 * sysdeps/generic/getresgid.c (__getresgid): Likewise.
5871 * sysdeps/generic/setresgid.c: New file.
5872 * sysdeps/generic/setresuid.c: New file.
5873 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5874 (sysdep_routines): Don't add getresuid and getresgid here.
5875 * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = misc]
5876 (sysdep_routines): Don't add setresuid and setresgid here.
5877 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
5878 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
5879 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
5880 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
5881 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
5882 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
5883 * posix/Makefile (routines): Add them all here instead.
5884 * sysdeps/unix/sysv/linux/i386/getresuid.c (getresuid): Renamed to
5885 __getresuid. Add libc_hidden_def for that, and weak alias to old name.
5886 * sysdeps/unix/sysv/linux/i386/getresgid.c (getresgid): Renamed to
5887 __getresgid. Add libc_hidden_def for that, and weak alias to old name.
5888 * sysdeps/unix/sysv/linux/i386/setresuid.c: Add libc_hidden_def.
5889 [! __NR_setresuid]: Include generic file.
5890 * sysdeps/unix/sysv/linux/i386/setresgid.c (setresgid): Renamed to
5891 __setresgid. Add libc_hidden_def for that, and weak alias to old name.
5892 [! __NR_setresuid]: Include generic file.
5893 * sysdeps/unix/sysv/linux/syscalls.list (setresuid, setresgid):
5894 Caller is - now, not EXTRA.
5895 * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list
5896 (setresuid, setresgid, getresuid, getresgid): Likewise.
5897 * sysdeps/unix/sysv/linux/syscalls.list (getresuid, getresgid):
5898 Add these calls here.
5899 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove them here.
5900 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
5901 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
5902 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5903 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5904 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
5905 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
5906 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
5907 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5909 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5910 (sysdep_routines): Add setfsuid and setfsgid here.
5911 * sysdeps/unix/sysv/linux/arm/Makefile: Not here.
5912 * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
5913 * sysdeps/unix/sysv/linux/cris/Makefile: Likewise.
5914 * sysdeps/unix/sysv/linux/sh/Makefile: Likewise.
5915 * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Likewise.
5916 * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Likewise.
5917 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
5918 * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
5920 * hurd/errno.c: Renamed to ...
5921 * hurd/errno-loc.c: ... this.
5922 * hurd/Makefile (routines): errno -> errno-loc
5924 2002-10-13 Ulrich Drepper <drepper@redhat.com>
5926 * po/de.po: Update from translation team.
5928 * MakeTAGS: Add -E flag to xgettext runs.
5930 2002-10-12 Ulrich Drepper <drepper@redhat.com>
5932 * po/fr.po: Update from translation team.
5934 * sysdeps/posix/system.c: Remove support for old and buggy SCO systems.
5935 Optimize a bit for use in glibc.
5937 2002-10-12 Roland McGrath <roland@redhat.com>
5939 * stdio-common/tst-rndseek.c (TIMEOUT): Increase to 10 seconds.
5940 Some machines are slow. Guido Guenther <agx@sigxcpu.org> has one.
5942 2002-10-12 Ulrich Drepper <drepper@redhat.com>
5944 * po/sv.po: Update from translation team.
5946 2002-10-11 Isamu Hasegawa <isamu@yamato.ibm.com>
5948 * posix/regcomp.c (re_compile_fastmap_iter): Remove the handling
5950 (regfree): Likewise.
5951 (create_initial_state): Likewise.
5952 (analyze): Remove the substitutions which became useless.
5953 (calc_first): Likewise.
5954 (calc_epsdest): Use edests of OP_BACK_REF in case that it has
5955 epsilon destination.
5956 (duplicate_node_closure): New function.
5957 (duplicate_node): Remove the handling OP_CONTEXT_NODE.
5958 (calc_inveclosure): Likewise.
5959 (calc_eclosure): Likewise.
5960 (calc_eclosure_iter): Invoke duplicate_node_closure instead of
5961 direct invocation of duplicate_node.
5962 (parse): Don't use comma operator in the return to avoid compiler
5964 (parse_reg_exp): Likewise.
5965 (parse_branch): Likewise.
5966 (parse_expression): Likewise.
5967 (parse_sub_exp): Likewise.
5968 (parse_dup_op): Likewise.
5969 * posix/regex_internal.c (re_dfa_add_node): Remove the substitutions
5970 which became useless.
5971 (create_ci_newstate): Remove the handling OP_CONTEXT_NODE.
5972 (create_cd_newstate): Likewise.
5973 * posix/regex_internal.h (re_token_type_t): Remove the obsolete type.
5974 (re_token_t): Likewise.
5975 (re_dfa_t): Likewise.
5976 (re_node_set_remove): New macro.
5977 * posix/regexec.c (check_matching): Remove the handling
5979 (check_halt_node_context): Likewise.
5980 (proceed_next_node): Likewise.
5981 (pop_fail_stack): Fix the memory leak.
5982 (set_regs): Likewise.
5983 (free_fail_stack_return): New function.
5984 (sift_states_backward): Fix the memory leak. Remove the handling
5986 (update_cur_sifted_state): Append some if clause to avoid redundant
5988 (sub_epsilon_src_nodes): Use IS_EPSILON_NODE since it might be a
5990 (check_dst_limits): Remove the handling OP_CONTEXT_NODE.
5991 (check_subexp_limits): Likewise.
5992 (search_subexp): Likewise.
5993 (sift_states_bkref): Likewise.
5994 (transit_state_mb): Likewise.
5995 (transit_state_bkref_loop): Likewise.
5996 (transit_state_bkref_loop): Likewise.
5997 (group_nodes_into_DFAstates): Likewise.
5998 (check_node_accept): Likewise.
5999 (sift_ctx_init): Add initializing.
6001 2002-10-12 Ulrich Drepper <drepper@redhat.com>
6003 * sysdeps/unix/sysv/linux/i386/sysdep.h (INLINE_SYSCALL): Use
6006 2002-10-11 Ulrich Drepper <drepper@redhat.com>
6008 * elf/dl-load.c (_dl_map_object_from_fd): Remove unnecessarily
6009 duplicated variable c.
6011 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Use INTERNAL_SYSCALL
6014 * sysdeps/unix/sysv/linux/i386/sysdep.h
6015 (INTERNAL_SYSCALL_ERROR_P): New define.
6016 (INTERNAL_SYSCALL_ERRNO): Likewise.
6018 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
6019 Add hack to prevent the compiler from clobbering the signal context.
6021 2002-10-11 Roland McGrath <roland@redhat.com>
6023 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
6026 * sysdeps/generic/dl-lookupcfg.h: Include <tls.h>.
6027 * sysdeps/sh/dl-lookupcfg.h: File removed.
6028 * sysdeps/i386/dl-lookupcfg.h: File removed.
6030 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
6031 missing labels and ; from last change.
6033 * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
6034 number literals, so they are doubles instead of ints.
6036 2002-10-09 Roland McGrath <roland@redhat.com>
6038 * sysdeps/generic/bits/libc-tsd.h [USE___THREAD]: Conditional
6039 changed from [USE_TLS && HAVE___THREAD].
6041 * sysdeps/i386/dl-machine.h (elf_machine_type_class, elf_machine_rel):
6042 Disable TLS relocs if [RTLD_BOOTSTRAP && !USE___THREAD].
6043 * sysdeps/x86_64/dl-machine.h
6044 (elf_machine_type_class, elf_machine_rela): Likewise.
6045 * sysdeps/sh/dl-machine.h (elf_machine_type_class, elf_machine_rela):
6048 * include/link.h (struct link_map): Remove member l_tls_tp_initialized.
6049 * elf/rtld.c (_dl_start_final, dl_main): Don't use it.
6050 (_dl_start): Conditionalize PT_TLS check on [USE___THREAD].
6052 * sysdeps/i386/dl-tls.h (__TLS_GET_ADDR): Use ___tls_get_addr_internal
6053 instead of ___tls_get_addr.
6054 (___tls_get_addr_internal): Add attribute_hidden to decl.
6056 * sysdeps/generic/ldsodefs.h (struct rtld_global): New variable
6057 _dl_error_catch_tsd.
6058 * elf/rtld.c (startup_error_tsd): New function.
6059 (dl_main): Point _dl_error_catch_tsd at that.
6060 * elf/dl-error.c: Don't use libc-tsd.h for DL_ERROR,
6061 use new function pointer instead.
6062 * elf/dl-tsd.c: New file.
6063 * elf/Makefile (routines): Add it.
6065 2002-10-07 Roland McGrath <roland@redhat.com>
6067 * elf/dl-misc.c (_dl_debug_vdprintf): Use INTERNAL_SYSCALL macro for
6068 writev if it's available. Otherwise if [RTLD_PRIVATE_ERRNO] then
6069 take _dl_load_lock around calling __writev.
6071 * sysdeps/unix/sysv/linux/i386/sysdep.h (INTERNAL_SYSCALL): New macro.
6072 (INLINE_SYSCALL): Use that.
6074 * sysdeps/generic/dl-sysdep.h: New file.
6075 * sysdeps/mach/hurd/dl-sysdep.h: New file.
6076 * sysdeps/generic/ldsodefs.h: Include <dl-sysdep.h>.
6077 * include/errno.h [IS_IN_rtld]: Include <dl-sysdep.h> to define ...
6078 [RTLD_PRIVATE_ERRNO]: Use a hidden global variable for errno and
6080 * elf/dl-minimal.c (__errno_location): Removed.
6081 * sysdeps/unix/i386/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
6082 Use GOTOFF access for errno.
6083 * sysdeps/unix/sysv/linux/i386/sysdep.h
6084 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
6086 * sysdeps/unix/x86_64/sysdep.S (__syscall_errno) [RTLD_PRIVATE_ERRNO]:
6087 Use PC-relative access for errno.
6088 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
6089 [RTLD_PRIVATE_ERRNO] (SYSCALL_ERROR_HANDLER): Likewise.
6091 * include/tls.h: New file.
6092 (USE___THREAD): New macro.
6093 Define to 1 under [USE_TLS && HAVE___THREAD] and only when compiling
6095 * sysdeps/unix/sysv/linux/i386/sysdep.h [USE___THREAD]: Conditional
6096 changed from [USE_TLS && HAVE___THREAD].
6097 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
6098 * sysdeps/unix/i386/sysdep.S: Likewise.
6099 * sysdeps/unix/x86_64/sysdep.S: Likewise.
6100 * include/errno.h: Likewise.
6101 * include/netdb.h: Likewise.
6102 * include/resolv.h: Likewise.
6104 * sysdeps/generic/errno.c: New file.
6105 * csu/Makefile (aux): New variable, list errno.
6106 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno, _errno): Remove defns.
6107 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
6108 * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Likewise.
6109 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
6110 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
6111 * sysdeps/unix/sysv/linux/arm/sysdep.S: Likewise.
6112 * sysdeps/unix/sysv/linux/cris/sysdep.S: Likewise.
6113 * sysdeps/unix/sysv/linux/hppa/sysdep.c: Likewise.
6114 * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
6115 * sysdeps/unix/sysv/linux/powerpc/sysdep.c: Likewise.
6116 * sysdeps/unix/sysv/linux/sparc/sysdep.S: Likewise.
6117 * sysdeps/unix/sysv/linux/sh/sysdep.S: Likewise.
6118 * sysdeps/unix/alpha/sysdep.S: Likewise.
6119 * sysdeps/generic/start.c: Likewise.
6120 * sysdeps/unix/start.c: Likewise.
6121 * sysdeps/unix/arm/start.c: Likewise.
6122 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
6123 * sysdeps/unix/sparc/start.c: Likewise.
6124 * sysdeps/unix/sysv/irix4/start.c: Likewise.
6125 * sysdeps/unix/sysv/linux/mips/sysdep.S: File removed.
6127 * manual/search.texi (Tree Search Function, Hash Search Function):
6128 Mention search.h clearly.
6130 2002-10-05 Roland McGrath <roland@redhat.com>
6132 * elf/dl-fxstat64.c: File removed.
6133 * elf/dl-xstat64.c: File removed.
6134 * elf/Makefile (rtld-routines): Remove them.
6135 * sysdeps/unix/sysv/linux/xstat64.c: Remove RTLD_STAT64 conditionals.
6136 Instead, use strong_alias instead of versioned_symbol in the
6138 * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
6139 * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
6141 * include/shlib-compat.h
6142 (SHLIB_COMPAT): Require that IS_IN_##lib be defined nonzero.
6143 [! NOT_IN_libc] (IS_IN_libc): Define it.
6144 * cppflags-iterator.mk (CPPFLAGS-$(cpp-src)): Use -Dx=1 not just -Dx.
6145 * elf/Makefile (CPPFLAGS-.os): Likewise.
6147 * sunrpc/rpc_main.c (main): Don't declare with noreturn attribute.
6148 Return the status instead of calling exit.
6150 * Makeconfig (CFLAGS): Prepend -std=gnu99.
6151 * Makerules (+make-deps): Use $(CFLAGS) only for .c sources.
6152 Remove superfluous rm command, whose @ plus make bugs hid
6153 all these commands from the make output.
6155 * include/stubs-prologue.h: New file. Give #error under #ifdef _LIBC.
6156 * Makefile ($(inst_includedir)/gnu/stubs.h): Depend on it.
6157 Use that file's contents instead of literal echo's for the prologue.
6158 * include/features.h: Include <gnu/stubs.h> unconditionally.
6159 * include/gnu/stubs.h: New file.
6161 2002-09-30 Roland McGrath <roland@redhat.com>
6163 * elf/rtld-Rules: New file.
6164 * elf/Makefile ($(objpfx)librtld.map, $(objpfx)librtld.mk,
6165 $(objpfx)rtld-libc.a): New targets.
6166 (generated): Add them.
6167 (reloc-link): Remove -o $@ from the variable.
6168 ($(objpfx)dl-allobjs.os): Add -o $@ after $(reloc-link).
6169 (distribute): Add rtld-Rules.
6170 (CPPFLAGS-.os): Define this instead of CFLAGS-.os.
6171 * Makerules ($(+sysdir_pfx)sysd-rules): Emit rules for rtld-% targets.
6172 (common-mostlyclean, common-clean): Clean up rtld-* files.
6173 * sysdeps/unix/make-syscalls.sh: Add rtld-*.os target name to rules.
6175 2002-10-11 Roland McGrath <roland@redhat.com>
6177 * sysdeps/generic/dl-tls.c (__tls_get_addr): After freeing block in
6178 now-unused dtv slot, reset the slot to TLS_DTV_UNALLOCATED.
6180 * elf/tls-macros.h [__x86_64__] (TLS_GD): Fix the sequence with the
6181 proper set of no-op insn prefixes.
6183 * elf/tst-tls8.c (do_test): Use %zd format for l_tls_modid members.
6185 2002-10-11 Ulrich Drepper <drepper@redhat.com>
6187 * sysdeps/unix/sysv/linux/execve.c: Don't try calling
6188 __pthread_kill_other_threads_np.
6190 * sysdeps/generic/pselect.c: Avoid unnecessary sigprocmask calls.
6192 2002-10-08 Roland McGrath <roland@redhat.com>
6194 * locale/newlocale.c (__newlocale): If setting all categories to "C",
6195 just return &_nl_C_locobj instead of copying it.
6196 * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
6197 * locale/duplocale.c (__duplocale): Likewise.
6199 2002-10-07 Roland McGrath <roland@frob.com>
6201 * config.h.in (HAVE_I386_SET_GDT): New #undef.
6202 * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
6203 * sysdeps/mach/configure: Regenerated.
6205 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6207 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
6208 Add all necessary register outputs for syscall-clobbered registers.
6210 2002-10-02 David Mosberger <davidm@hpl.hp.com>
6212 * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
6213 Itanium 2 (and Itanium).
6214 Fix unwind directives and make it fit in 80 columns.
6215 * sysdeps/ia64/memset.S: Likewise.
6216 * sysdeps/ia64/memcpy.S: Likewise.
6217 Move jump table to .rodata section.
6219 2002-10-03 Roland McGrath <roland@frob.com>
6221 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
6224 2002-10-10 Andreas Jaeger <aj@suse.de>
6226 * sysdeps/x86_64/_mcount.S: Restore correct registers.
6228 2002-10-10 Ulrich Drepper <drepper@redhat.com>
6230 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __pselect.
6232 2002-10-09 Ulrich Drepper <drepper@redhat.com>
6234 * sysdeps/generic/ldsodefs.h: Remove attribute_hidden from
6235 _dl_allocate_tls_init. Add rtld_hidden_proto.
6236 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Add
6238 * elf/Versions (ld) [GLIBC_PRIVATE]: Add _dl_allocate_tls_init.
6240 * version.h (VERSION): Bump to 2.3.1.
6242 * Make-dist: Add back one of the tar invocations removed before.
6244 * stdlib/Makefile (distribute): Add allocalim.h.
6246 * sysdeps/generic/bits/libc-tsd.h [!(USE_TLS && HAVE___THREAD)]
6247 (__libc_tsd_address): Use correct variable name.
6248 Patch by Stefan Jones <stefan.jones@multigig.com>.
6250 * sysdeps/unix/sysv/linux/ia64/getcontext.S: Add missing ;;.
6251 Reported by edwardsg@sgi.com [PR libc/4678].
6253 * Versions.def (libc): Add GLIBC_2.3.1.
6254 (libpthread): Add GLIBC_2.3.1.
6256 * include/signal.h: Add libc_hidden_proto for __sigwait, __sigwaitinfo,
6258 * signal/Versions: Add __sigtimedwait, __sigwait, and __sigwaitinfo.
6259 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Add
6261 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
6262 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
6264 * include/sys/msg.h: Declare __libc_msgrcv and __libc_msgsnd.
6265 * sysdeps/unix/sysv/linux/msgrcv.c (__msgrcv): Rename to __libc_msgrcv
6266 and make old name an alias.
6267 * sysdeps/unix/sysv/linux/msgsnd.c (__msgsnd): Rename to __libc_msgsnd
6268 and make old name an alias.
6269 * sysvipc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_msgrcv and
6272 * include/sys/uio.h: Declare __libc_readv and __libc_writev.
6273 * misc/Versions (libc) [GLIBC_PRIVATE]: Add __libc_readv and
6275 * sysdeps/generic/readv.c (__readv): Rename to __libc_readv and make
6277 * sysdeps/posix/readv.c: Likewise
6278 * sysdeps/unix/sysv/aix/readv.c: Likewise.
6279 * sysdeps/unix/sysv/linux/readv.c: Likewise.
6280 * sysdeps/generic/writev.c (__writev): Rename to __libc_writev and make
6282 * sysdeps/posix/writev.c: Likewise
6283 * sysdeps/unix/sysv/aix/writev.c: Likewise.
6284 * sysdeps/unix/sysv/linux/writev.c: Likewise.
6286 * include/sys/wait.h: Declare __waitid.
6287 * posix/Versions (libc) [GLIBC_PRIVATE]: Add __waitid.
6288 * sysdeps/generic/waitid.c (waitid): Rename to __waitid and make old
6290 * sysdeps/posix/waitid.c: Likewise.
6291 * sysdeps/unix/sysv/aix/waitid.c: Likewise.
6293 * sysdeps/unix/sysv/linux/syscalls.list: Add creat syscall.
6295 2002-10-07 Jakub Jelinek <jakub@redhat.com>
6297 * include/alloca.h (__libc_use_alloca, __libc_alloca_cutoff): New
6299 (__MAX_ALLOCA_CUTOFF): Define.
6300 Include allocalim.h.
6301 * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r,
6302 _nss_dns_gethostbyaddr_r): Use alloca or malloc to allocate
6303 host_buffer depending on __libc_use_alloca.
6304 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r,
6305 _nss_dns_getnetbyaddr_r): Use alloca or malloc to allocate
6306 net_buffer depending on __libc_use_alloca.
6307 * resolv/res_query.c (res_nquery): Use alloca or malloc to allocate
6308 buf depending on __libc_use_alloca.
6309 * resolv/gethnamaddr.c (gethostbyname2, gethostbyaddr): Likewise.
6310 * stdio-common/vfprintf.c (vfprintf): Use __libc_use_alloca
6311 instead of hardcoded constants.
6312 Pass proper size argument to alloca and compute end for wide char
6314 * stdio-common/printf_fp.c (__printf_fp): Use __libc_use_alloca
6315 instead of hardcoded constants.
6316 * string/strcoll.c (strcoll): Likewise.
6317 * string/strxfrm.c (strxfrm): Likewise.
6318 * sysdeps/posix/readv.c (__readv): Likewise.
6319 * sysdeps/posix/writev.c (__writev): Likewise.
6320 * sysdeps/generic/allocalim.h: New file.
6322 2002-10-08 Roland McGrath <roland@redhat.com>
6324 * configure.in (aux_missing warning): Change "too old" to
6325 "incompatible versions", since for autoconf it's "too new" right now.
6326 * configure: Regenerated.
6328 * configure.in (AUTOCONF): New check to set it. Set to "no" if the
6329 one found doesn't work on our configure.in.
6330 * configure: Regenerated.
6331 * config.make.in (AUTOCONF): New substituted variable.
6332 * Makefile (autoconf-it-cvs): New canned sequence, broken out of ...
6333 (autoconf-it): ... here, use that instead of defining conditionally.
6334 Use $(AUTOCONF) instead of literal autoconf.
6335 [$(AUTOCONF) != no] (configure, %/configure): Protect these rules
6336 with this condition.
6337 * Make-dist (autoconf-it, configure, %/configure): Copy those changes.
6339 2002-10-08 Ulrich Drepper <drepper@redhat.com>
6341 * Make-dist (dist): Cleanup a bit. We are not interested in the
6342 14 char filename limit anymore. Remove intermediate files and
6345 2002-10-05 Ulrich Drepper <drepper@redhat.com>
6347 * po/sk.po: Update from translation team.
6348 * po/tr.po: Likewise.
6349 * po/gl.po: Likewise.
6351 2002-10-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
6353 * elf/tls-macros.h: Fix SH version of macros so as to match ABI syntax.
6355 2002-10-03 Ulrich Drepper <drepper@redhat.com>
6357 * version.h (RELEASE): Change to stable.
6359 2002-10-03 Jakub Jelinek <jakub@redhat.com>
6361 * sysdeps/unix/sysv/linux/_exit.c (__syscall_exit,
6362 __syscall_exit_group): New prototypes.
6364 2002-10-03 Ulrich Drepper <drepper@redhat.com>
6366 * glibc 2.3 released.
6369 See ChangeLog.13 for earlier changes.