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