]> sourceware.org Git - glibc.git/blame - ChangeLog
2003-03-15 Roland McGrath <roland@redhat.com>
[glibc.git] / ChangeLog
CommitLineData
638bb1f3
RM
12003-03-15 Roland McGrath <roland@redhat.com>
2
3 * nscd/cache.c (cache_search): Give first arg type `request_type'.
4 * nscd/nscd.h: Update decl.
5
6 * nscd/nscd_getpw_r.c (nscd_getpw_r): Add casts for signedness.
7 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8 * elf/dl-close.c (_dl_close): Likewise.
9 * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown): int -> size_t
10 * io/fts.c (fts_build): Likewise.
11 * elf/cache.c (add_to_cache): Likewise.
12 * locale/programs/locarchive.c (show_archive_content): Likewise.
13
14 * posix/fnmatch.c (fnmatch): Tweak __builtin_expect use.
15
16 * include/ctype.h (__ctype_b_loc): Tweak type punning to make gcc 3.3
17 happy.
18 (__ctype_toupper_loc, __ctype_tolower_loc): Likewise.
19
c04dad40
UD
202003-03-15 Ulrich Drepper <drepper@redhat.com>
21
22 * sysdeps/unix/sysv/linux/ia64/system.c: Use the generic Linux
23 code for most parts.
24
124dcac8
RM
252003-03-15 Roland McGrath <roland@redhat.com>
26
7eecc0c2
RM
27 * sysdeps/unix/sysv/linux/i386/system.c: Moved to ...
28 * sysdeps/unix/sysv/linux/system.c: ... here.
29 (FORK): Don't #define if already #define'd.
30 * sysdeps/unix/sysv/linux/s390/system.c: File removed.
31 * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]:
32 (__ASSUME_CLONE_THREAD_FLAGS): Define for kernel >= 2.5.64.
33
45e4762c
RM
34 * dlfcn/tst-dlinfo.c: New file.
35 * dlfcn/Makefile (tests): Add tst-dlinfo.
36 ($(objpfx)tst-dlinfo): New target.
37
38 * dlfcn/dlinfo.c: New file.
39 * dlfcn/Makefile (libdl-routines): Add it.
40 * dlfcn/Versions (libdl: GLIBC_2.3.3): Add dlinfo.
41 * dlfcn/dlfcn.h [__USE_GNU]: Declare dlinfo.
42 [__USE_GNU] (RTLD_DI_*): New enum constants.
43 [__USE_GNU] (Dl_serpath, Dl_serinfo): New types.
44 * elf/dl-load.c (cache_rpath): New inline function.
45 (_dl_map_object): Use it.
46 (_dl_rtld_di_serinfo): New function.
47 * sysdeps/generic/ldsodefs.h: Declare it.
48 * elf/Versions (ld: GLIBC_PRIVATE): Add it.
49
124dcac8
RM
50 * sysdeps/powerpc/elf/libc-start.c (AUX_VECTOR_INIT): Define it.
51 (LIBC_START_MAIN, LIBC_START_MAIN_AUXVEC_ARG, MAIN_AUXVEC_ARG)
52 (INIT_MAIN_ARGS): Define, and #include <sysdeps/generic/libc-start.c>.
53 (__libc_start_main): Just call the generic one for most of the work.
54
55 * sysdeps/generic/libc-start.c [LIBC_START_MAIN]: If defined, define a
56 static function by that name instead of BP_SYM (__libc_start_main).
57 [LIBC_START_MAIN_AUXVEC_ARG]: Take AUXVEC as argument.
58 [MAIN_AUXVEC_ARG]: Pass 4th argument to MAIN.
59 [INIT_MAIN_ARGS]: Give INIT the same args as MAIN.
60
61 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_PLATFORM_AUXV]:
62 Use this macro for extra AT_* cases.
63 * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c (DL_PLATFORM_AUXV):
64 New macro, guts from ...
65 (__aux_init_cache): ... here, function removed.
66 (DL_PLATFORM_INIT): Don't define this.
67
68 * sysdeps/powerpc/powerpc32/memset.S: Put __cache_line_size in bss.
69 * sysdeps/powerpc/powerpc64/memset.S: Likewise.
70
e993ec9a 71 * Versions.def (libthread_db): Add GLIBC_2.3.3 set.
124dcac8 72
39d8c1a2
RM
732003-03-14 Roland McGrath <roland@redhat.com>
74
75 * dlfcn/dlerror.c (dlerror): If objname is "", don't put ": " after it.
76
c58859ce
RM
772003-03-14 Jakub Jelinek <jakub@redhat.com>
78
79 * sysdeps/unix/sysv/linux/Makefile (syscall-%.h): Fix a typo.
80
81 * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Include
82 sysdeps/posix/pause.c instead of sysdeps/unix/common/pause.c.
83
44bc0afb
AO
842003-03-14 Alexandre Oliva <aoliva@redhat.com>
85
882dda66
AO
86 * sysdeps/mips/fpu/bits/mathdef.h: New.
87 (__NO_LONG_DOUBLE_MATH): Define for o32.
88
4abdb6ca
AO
89 * sysdeps/mips/sys/asm.h: Formatting changes.
90 (PTR, PTRSIZE, PTRLOG): Adjust for all 3 ABIs.
91 (CPADD): Define for all of them.
92 (SETUP_GP, SETUP_GPX, SETUP_GPX_L, SAVE_GP, SETUP_GP64,
93 SETUP_GPX64, SETUP_GPX64_L, RESTORE_GP64, USE_ALT_CP,
94 NARGSAVE): Define per ABI spec.
95 (END): Don't redefine.
96 (LONG_SLL, LONG_SLLV, LONG_SRL, LONG_SRLV, LONG_SRA,
97 LONG_SRAV): Remove duplicate definitions.
98 (PTR_ADD, PTR_ADDI, PTR_ADDU, PTR_ADDIU, PTR_SUB, PTR_SUBI,
99 PTR_SUBU, PTR_SUBIU, PTR_L, PTR_S, PTR_SLL, PTR_SLLV, PTR_SRL,
100 PTR_SRLV, PTR_SRA, PTR_SRAV, PTR_SCALESHIFT): Define for n32.
101 (PTR_LA): Define for all 3 ABIs.
102
365eccdb
AO
103 * sysdeps/mips/dl-machine.h: Include sys/asm.h.
104 (elf_machine_matches_host): Prevent linking of o32 and n32
105 together.
106 (elf_machine_dynamic): Document assumption on $gp.
107 (STRINGXP, STRINGXV, STRINGV_): New macros.
108 (elf_machine_load_address): Use them to stringize PTR_LA and
109 PTR_SUBU.
110 (ELF_DL_FRAME_SIZE, ELF_DL_SAVE_ARG_REGS,
111 ELF_DL_RESTORE_ARG_REGS, IFABIO32): New macros used in...
112 (_dl_runtime_resolve): Adjust it for all 3 ABIs.
113 (__dl_runtime_resolve): Cast the symtab initializer to the
114 right type.
115 (RTLD_START): Use it. Adjust it for all 3 ABIs.
116 (elf_machine_rel): Mark as always_inline in RTLD_BOOTSTRAP.
117 Handle 64-bit R_MIPS_REL composite relocation and accept
118 R_MIPS_64 relocations to shift addend size to 64 bits.
119 Document assumption regarding local GOT entries. Document
120 backward-compatibility departing from the ABI behavior in
121 applying relocations that reference section symbols, no longer
122 used. Support relocations to mis-aligned offsets.
123 * sysdeps/mips/mips64/dl-machine.h: Deleted, obsolete.
124
d4c803f8
AO
125 * sysdeps/unix/sysv/linux/mips/readelflib.c: New file.
126
84c63a76
AO
127 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h
128 (_KERNEL_NSIG_BPW): Define in terms of _MIPS_SZLONG.
129 * sysdeps/unix/sysv/linux/mips/sigaction.c: Define restore and
130 restore_rt functions. Use them.
131
44bc0afb
AO
132 * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Don't
133 .set mips2 on new abis.
134
564cd8b6
UD
1352003-03-13 Ulrich Drepper <drepper@redhat.com>
136
137 * posix/getconf.c: Recognize POSIX2_SYMLINKS.
138 * sysdeps/generic/bits/confname.h: Define _PC_2_SYMLINKS.
139 * sysdeps/posix/fpathconf.c: Handle _PC_2_SYMLINKS.
140 * sysdeps/posix/pathconf.c: Likewise.
141 * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
142 * sysdeps/unix/sysv/linux/pathconf.c: Likewise.
143 * sysdeps/unix/sysv/linux/pathconf.h: Define statfs_symlinks.
144
145 * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define some more magic
146 words.
147
3be9dc8e
AO
1482003-03-14 Alexandre Oliva <aoliva@redhat.com>
149
150 * include/gmp.h: Include/gmp-mparam.h.
151 * stdlib/strtod.c: Include gmp-mparam.h before gmp.h and
152 gmp-impl.h.
153
a77dcecf
AO
154 * elf/dl-conflict.c: Don't compile _dl_resolve_conflicts if
155 ELF_MACHINE_NO_RELA is set.
156 * elf/rtld.c (dl_main): No prelink support for REL-only.
157
b5bac573
AO
158 * sysdeps/generic/ldconfig.h (FLAG_MIPS64_LIBN32,
159 FLAG_MIPS64_LIBN64): Define.
160 * elf/cache.c (print_entry): Handle mips64 n32 and n64.
161
5ace1393
AO
162 * sysdeps/mips/memcpy.S: Map t0-3 to a4-7 on new abis.
163 * sysdeps/mips/memset.S: Likewise.
164 * sysdeps/mips/sys/regdef.h: Alias a4-7 or t0-3 to $8-11
165 depending on the ABI.
166
1b12a2cb
AO
167 * sysdeps/mips/atomicity.h (exchange_and_add, atomic_add):
168 Don't .set mips2 on new abi.
169 (compare_and_swap): Likewise. Support 64-bit longs on n64.
170
264befa8
AO
171 * stdlib/fpioconst.h: Include gmp.h with angle brackets.
172
d8a5edc2
RM
1732003-03-13 Roland McGrath <roland@redhat.com>
174
175 * elf/dl-load.c (_dl_map_object_from_fd): Bail if no PT_LOAD phdrs
176 found. Reported by Alexandre Oliva <aoliva@redhat.com>.
177
1782003-03-13 Alexandre Oliva <aoliva@redhat.com>
179
180 * stdio-common/_itoa.c (_itoa_base_table): Make 64-bit
181 literals long long.
182 * stdlib/fpioconst.c: Likewise.
183 * stdlib/strtod.c: Likewise.
184
185 * sysdeps/mips/add_n.S: Use L macro for local labels.
186 * sysdeps/mips/addmul_1.S: Likewise.
187 * sysdeps/mips/lshift.S: Likewise.
188 * sysdeps/mips/memcpy.S: Likewise.
189 * sysdeps/mips/memset.S: Likewise.
190 * sysdeps/mips/mul_1.S: Likewise.
191 * sysdeps/mips/rshift.S: Likewise.
192 * sysdeps/mips/sub_n.S: Likewise.
193 * sysdeps/mips/submul_1.S: Likewise.
194 * sysdeps/mips/mips64/add_n.S: Likewise.
195 * sysdeps/mips/mips64/addmul_1.S: Likewise.
196 * sysdeps/mips/mips64/lshift.S: Likewise.
197 * sysdeps/mips/mips64/mul_1.S: Likewise.
198 * sysdeps/mips/mips64/rshift.S: Likewise.
199 * sysdeps/mips/mips64/sub_n.S: Likewise.
200 * sysdeps/mips/mips64/submul_1.S: Likewise.
201 * sysdeps/unix/mips/sysdep.h: Define L() according to ABI
202 conventions. Define END as in sys/asm.h.
203 * sysdeps/unix/mips/sysdep.S: Likewise.
204 * sysdeps/unix/mips/wait.S: Likewise.
205 * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
206
207 * sysdeps/ieee754/dbl-64/dbl2mpn.c (__mpn_extract_double):
208 Cast shifted values that may be too narrow to mp_limb_t.
209 * sysdeps/ieee754/dbl-64/mpn2dbl.c (__mpn_construct_double):
210 Likewise.
211 * sysdeps/ieee754/flt-32/mpn2flt.c (__mpn_construct_float):
212 Likewise.
213 * sysdeps/ieee754/ldbl-128/ldbl2mpn.c
214 (__mpn_extract_long_double): Likewise.
215 * sysdeps/ieee754/ldbl-128/mpn2ldbl.c
216 (__mpn_construct_long_double): Likewise.
217 * sysdeps/ieee754/ldbl-96/ldbl2mpn.c
218 (__mpn_extract_long_double): Likewise.
219 * sysdeps/ieee754/ldbl-96/mpn2ldbl.c
220 (__mpn_construct_long_double): Likewise.
221
6461e577
RM
2222003-03-13 Roland McGrath <roland@redhat.com>
223
224 * elf/Makefile ($(objpfx)librtld.mk): Tweak regexp so that one-line
225 entries in the map file match too.
226
6fde8d53
AJ
2272003-03-13 Guido Guenther <agx@sigxcpu.org>
228
229 * sysdeps/unix/sysv/linux/mips/clone.S: introduce and use local
230 label .Lthread_start since current binutils don't allow branches
231 to globally visible symbols.
232
b5ec5617
UD
2332003-03-13 Jakub Jelinek <jakub@redhat.com>
234
235 * sysdeps/unix/sysv/linux/ia64/sysdep.h (BREAK_INSN_1, BREAK_INSN,
236 ASM_OUTARGS_0, ASM_OUTARGS_1, ASM_OUTARGS_2, ASM_OUTARGS_3,
237 ASM_OUTARGS_4, ASM_OUTARGS_5, ASM_OUTARGS_6): Define.
238 (INTERNAL_SYSCALL, INLINE_SYSCALL): Use it. Make syscall arguments
239 clobbered by the syscall.
240 (ASM_ARGS_1, ASM_ARGS_2, ASM_ARGS_3, ASM_ARGS_4, ASM_ARGS_5,
241 ASM_ARGS_6): Change constraints from r to index of corresponding
242 output register.
243 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Swap
244 ptid and ctid to match kernel.
245 * sysdeps/unix/sysv/linux/ia64/system.c (FORK): Likewise.
246
3cd69852
RM
2472003-03-12 Steven Munroe <sjmunroe@us.ibm.com>
248
b5ec5617 249 * sysdeps/powerpc/powerpc64/elf/configure.in: Remove
3cd69852 250 AC_DEFINE(PI_STATIC_AND_HIDDEN). Not supported for PowerPC64.
b5ec5617 251 * sysdeps/powerpc/powerpc64/elf/configure: Regenerated.
3cd69852 252
d63609a7
RM
2532003-03-11 Roland McGrath <roland@redhat.com>
254
255 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
256 Check SYM_MAP rather than SYM as definedness check.
257 Handle R_PPC64_ADDR32, R_PPC64_ADDR30, and R_PPC64_REL64 relocs.
258 Don't handle R_PPC64_REL24 reloc.
259 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
260
261 * sysdeps/powerpc/powerpc64/dl-machine.h
262 [USE_TLS] (elf_machine_type_class): Match all the TLS relocs in a
263 block, so we cover all the TPREL16* flavors without 6 ||s.
264 [USE_TLS] (elf_machine_tprel): New function.
265 (elf_machine_rela) [USE_TLS]: Use elf_machine_tprel for TPREL64 reloc,
266 and handle TPREL16 relocs too. Return rather than break for DTPREL64.
267 Mostly from Steven Munroe <sjmunroe@us.ibm.com>.
268
b874af99
UD
2692003-03-11 Ralf Baechle <ralf@linux-mips.org>
270
271 * sysdeps/unix/sysv/linux/mips/clone.S (__thread_start): Use jal
272 instead of jalr to invoke subroutine so restoring the $gp register
273 will work properly.
274
6c477888
UD
2752003-03-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
276
277 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (__NR_pread64): Define
278 to __NR_pread if not defined.
279 (__NR_pwrite64): Define to __NR_pwrite if not defined.
280
f006d3a0
UD
2812003-03-11 Jakub Jelinek <jakub@redhat.com>
282
283 * sysdeps/unix/sysv/linux/ia64/system.c: New file.
284 * sysdeps/unix/sysv/linux/kernel-features.h
285 (__ASSUME_CLONE_THREAD_FLAGS): Define for IA-64 and s390* with
286 kernel >= 2.5.64.
287
b33e6163
RM
2882003-03-11 Jakub Jelinek <jakub@redhat.com>
289
290 * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): If CNT == 1,
291 allocate space even for the trailing '/'.
292 Reported by John Reiser <jreiser@BitWagon.com>.
293
294 * sysdeps/unix/sysv/linux/ia64/sysdep.h (LOAD_ARGS_6, ASM_ARGS_6,
295 ASM_CLOBBERS_6): Define.
296 (ASM_CLOBBERS_5): Use ASM_CLOBBERS_6.
297 * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone2): Reorder arguments
298 to match IA-32 order.
299 * sysdeps/unix/sysv/linux/i386/clone.S: Fix comment.
300
19afbd2c
RM
3012003-03-10 Steven Munroe <sjmunroe@us.ibm.com>
302
f006d3a0 303 * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't clobber R7.
19afbd2c
RM
304 Copy extra params for NPTL to registers used in clone syscall.
305
ce2290cb
RM
3062003-03-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
307
308 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Correct system
309 call names for pread and pwrite.
310
e48f9638
RM
3112003-03-10 Roland McGrath <roland@redhat.com>
312
d38c777e
RM
313 * dlfcn/Makefile (libdl-routines): Add dladdr1.
314 * dlfcn/dladdr1.c: New file.
315 * dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
316 [__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
317 * elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
318 a const ElfNN_Sym ** to fill in.
319 * include/dlfcn.h: Update decl. Include <link.h>.
320 * dlfcn/dladdr.c (dladdr): Update caller.
321 * malloc/mtrace.c (tr_where): Likewise.
322 * sysdeps/generic/elf/backtracesyms.c: Likewise.
323 * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
324 * dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
325 * Versions.def (libdl): Define GLIBC_2.3.3 set.
326
e48f9638
RM
327 * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
328 assembler command.
329 * sysdeps/unix/Makefile (compile-syscall): New variable.
330 Pass -g0 to compiler for assembling syscall stubs from stdin.
331
332 * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
333 (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
334 Define these to do nothing.
335
336 * configure.in: New check for -g on .S files.
337 * configure: Regenerated.
338 * config.make.in (have-cpp-asm-debuginfo): New variable.
339 * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
340 * Makeconfig (ASFLAGS): New variable, if undefined and
341 $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
342 * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
343
fcc60e3b
RM
3442003-03-09 Roland McGrath <roland@redhat.com>
345
346 * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Take 3 new args
347 used by NPTL on new kernels. From Paul Mackerras <paulus@samba.org>.
348
e51838c8
UD
3492003-03-09 Ulrich Drepper <drepper@redhat.com>
350
351 * po/fi.po: Update from translation team.
8049ef78 352 * po/ca.po: Likewise.
c37cae9e 353 * po/da.po: Likewise.
e51838c8 354
05ae97d8
UD
3552003-03-08 Ulrich Drepper <drepper@redhat.com>
356
357 * rt/tst-aio7.c (do_test): Change BYTES into a #define.
358
b6b9ee9b
UD
3592003-03-07 Ulrich Drepper <drepper@redhat.com>
360
fcc60e3b 361 * rt/tst-aio7.c (do_test): Give BUFF permanent extent, too.
35457070 362
b6b9ee9b
UD
363 * sysdeps/powerpc/fpu/w_sqrt.c: Fix comment.
364
6326c93c
RM
3652003-03-07 Roland McGrath <roland@redhat.com>
366
367 * sysdeps/s390/s390-32/sysdep.h (L): Use .Lfoo instead of foo.
368 * sysdeps/s390/s390-64/sysdep.h (L): Likewise.
369
2090a1d0
AJ
3702003-03-04 Guido Guenther <agx@sigxcpu.org>
371
372 * sysdeps/unix/sysv/linux/mips/syscalls.list: Remove unneeded
373 stubs, we have INLINE_SYSCALL.
374 * sysdeps/unix/sysv/linux/mips/bits/mman.h: Define MAP_POPULATE,
375 MAP_NONBLOCK.
376
696efd11
RM
3772003-03-06 Roland McGrath <roland@redhat.com>
378
379 * rt/tst-aio7.c (do_test): Revert last change. Instead, give CB1
380 permanent extent and add a comment about testing its implicit teardown.
381
f1a56a2b
RM
3822003-03-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
383
384 * rt/tst-aio7.c (do_test): Cancel i/o on CB1 before it's out of scope.
385
49400d0e
UD
3862003-03-05 Ulrich Drepper <drepper@redhat.com>
387
388 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage): Fix
389 reversed __builtin_expect expectation.
390
5fc728a2
RM
3912003-03-05 Roland McGrath <roland@redhat.com>
392
393 * stdio-common/sscanf.c: Use prototype defn with ... syntax.
394 * libio/swscanf.c: Likewise.
395 * libio/swprintf.c: Likewise.
396
510793fd
RM
3972003-03-04 Roland McGrath <roland@redhat.com>
398
790eed83
RM
399 * sysdeps/powerpc/powerpc64/dl-machine.h: Include <dl-tls.h>.
400 (elf_machine_rela): Always use RESOLVE_MAP, needed for
401 R_PPC64_JMP_SLOT as well as TLS cases.
402 (BIT_INSERT): Move parenthesis where it ought to have been.
403 Reported by Steven Munroe <sjmunroe@us.ibm.com>.
404
510793fd
RM
405 * posix/confstr.c (confstr): Correct STRING_LEN values for
406 _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION, add missing
407 break. Reported by Alexandre Julliard <julliard@winehq.com>.
408
0de28d5c
UD
4092003-03-04 Jakub Jelinek <jakub@redhat.com>
410
411 * sysdeps/ia64/fpu/libm-test-ulps: Regenerated.
412
269e8af7
UD
4132003-03-04 Ulrich Drepper <drepper@redhat.com>
414
e2b80a58
UD
415 * sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
416 clone parameters.
417
269e8af7
UD
418 * po/sv.po: Update from translation team.
419
330a187b 4202003-03-04 Andreas Jaeger <aj@suse.de>
269e8af7 421 Ulrich Drepper <drepper@redhat.com>
330a187b
AJ
422
423 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Fix comments.
424
4f6f0a8f
UD
4252003-03-03 Ulrich Drepper <drepper@redhat.com>
426
cc775edf
UD
427 * sysdeps/generic/dl-sysdep.h: Add double include protection.
428
75081542
UD
429 * po/tr.po: Update from translation team.
430
6fffb9a2
UD
431 * elf/dl-load.c (_dl_map_object_from_fd): Determine whether there
432 are holes between the segments. Only call mprotect to set
433 proection to PROT_NONE if there are some.
434
435 * elf/dl-load.c (struct filebuf): Actually use FILEBUF_SIZE.
436 Update comment.
437
4f6f0a8f
UD
438 * include/sched.h (__clone2): Use ... instead of adding all the
439 new parameters.
440
ce78b460
RM
4412003-03-03 Roland McGrath <roland@redhat.com>
442
868b9d6a
RM
443 * elf/dl-load.c (struct filebuf): Fix typo in last change.
444
ce78b460
RM
445 * sysdeps/powerpc/powerpc32/elf/configure.in: Don't define
446 PI_STATIC_AND_HIDDEN.
ce78b460 447
625f22fc
UD
4482003-03-03 Ian Wienand <ianw@gelato.unsw.edu.au>
449
450 * sysdeps/unix/sysv/linux/ia64/clone2.S: Update to take extra clone
451 flags.
452 * include/sched.h: Update clone2 prototype.
453
71502ebe
UD
4542003-03-03 Andreas Jaeger <aj@suse.de>
455
456 * math/tgmath.h (__TGMATH_UNARY_REAL_RET_ONLY): New definition.
457 (llrint): Use it to correct return type.
458 (lrint): Likewise.
459 (lround): Likewise.
460 (llround): Likewise.
461
d15a8404
UD
4622003-03-03 Ulrich Drepper <drepper@redhat.com>
463
ca97fb53
UD
464 * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
465 byte filebuf size.
466
1739d268
UD
467 * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
468 if ccs parameter isn't valid. Reported by Andreas Schwab.
469
4702003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
471
472 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S (syscall): Add support
473 for system call numbers > 255.
474 * sysdeps/unix/sysv/linux/s390/s390-32/syscall.h (DO_CALL,
475 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
476 INTERNAL_SYSCALL): Likewise.
477 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S (syscall): Likewise.
478 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.h (DO_CALL,
479 INLINE_SYSCALL, INTERNAL_SYSCALL_DIRECT, INTERNAL_SYSCALL_SVC0,
480 INTERNAL_SYSCALL): Likewise.
481
4822003-03-03 Martin Schwidefsky <schwidefsky@de.ibm.com>
483
484 * sysdeps/generic/dl-tls.c (_dl_deallocate_tls): Don't free the dtv
485 array if it is the initial dtv.
486
4872003-03-03 Ulrich Drepper <drepper@redhat.com>
488
489 * po/es.po: Update from translation team.
490 * po/fr.po: Likewise.
71502ebe 491 * po/gl.po: Likewise.
1739d268
UD
492 * po/sk.po: Likewise.
493 * po/sv.po: Likewise.
494
d15a8404
UD
495 * sysdeps/unix/sysv/linux/syscalls.list: Add remap_file_pages entry.
496 * misc/sys/mman.h: Add prototype for remap_file_pages.
497 * sysdeps/generic/remap_file_pages.c: New file.
3c531a87 498 * misc/Makefile (routines): Add remap_file_pages.
a05be180 499 * misc/Versions [libc:GLIBC_2.3.3]: Add remap_file_pages.
d15a8404
UD
500
501 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_POPULATE
502 and MAP_NONBLOCK.
503 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
504 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise
505 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
506 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
507 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
508 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Likewise.
509 * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
510 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
511
ea6a015b
RM
5122003-03-03 Roland McGrath <roland@redhat.com>
513
a49f5762
RM
514 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Revert last change.
515 * sysdeps/ia64/dl-machine.h: Likewise.
516 * sysdeps/ia64/dl-symaddr.c (_dl_symbol_address): Remove const from
517 argument type.
518 * sysdeps/ia64/dl-lookupcfg.h: Update decl.
519
520 * sysdeps/wordsize-64/strtol_l.c (strtoll_l): Define as weak alias.
521 * sysdeps/wordsize-64/strtoul_l.c (strtoull_l): Define as weak alias.
522 * locale/Versions (libc: GLIBC_2.3): Move those to ...
523 * sysdeps/wordsize-32/Versions (libc: GLIBC_2.3): ... here, new file.
524 * sysdeps/wordsize-64/Versions (libc: GLIBC_2.3.3) Likewise.
525 * Versions.def (libc): Add GLIBC_2.3.3 set.
526
ea6a015b
RM
527 * sysdeps/ia64/dl-fptr.c (__ia64_make_fptr): Add const to MAP arg.
528 * sysdeps/ia64/dl-machine.h: Update decl.
529
62584540
AJ
5302003-03-03 Andreas Jaeger <aj@suse.de>
531
d15a8404 532 * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Add missing brace.
62584540 533
78c3fb45
RM
5342003-03-02 Roland McGrath <roland@redhat.com>
535
536 * scripts/abilist.awk: Reject data items with apparent 0 size.
537
538 * scripts/merge-abilist.awk: Restore hack to elide pattern foo.*/bar
539 after foo.* as if it were a duplicate.
540
541 * sysdeps/unix/sysv/linux/ia64/brk.S: Add .type and .size for __curbrk.
542
885bafa1
UD
5432003-03-02 Ulrich Drepper <drepper@redhat.com>
544
1be3d664
UD
545 * elf/dl-load.c (struct filebuf): Reduce buf array to 512 bytes.
546
885bafa1
UD
547 * sysdeps/generic/bits/time.h: Define CLOCK_MONOTONIC.
548 * sysdeps/posix/clock_getres.c: Define code for CLOCK_REALTIME only
549 if not already defined. Use SYSDEP_GETRES to allow other files to
550 provide alternative implementations.
551 * sysdeps/unix/sysv/linux/clock_getres.c: New file
552 * sysdeps/unix/clock_gettime.c: Define code for CLOCK_REALTIME only
553 if not already defined. Use SYSDEP_GETTIME to allow other files to
554 provide alternative implementations.
555 * sysdeps/unix/sysv/linux/clock_gettime.c: New file.
556 * sysdeps/unix/clock_settime.c: Define code for CLOCK_REALTIME only
557 if not already defined. Use SYSDEP_GETTIME to allow other files to
558 provide alternative implementations.
559 * sysdeps/unix/sysv/linux/clock_settime.c: New file.
560 * sysdeps/unix/clock_nanosleep.c: Use SYSDEP_NANOSLEEP to allow
561 other files to provide alternative implementations. Rearrange
562 tests for invalid parameters.
563 * sysdeps/unix/sysv/linux/clock_nanosleep.c: New file.
564 * sysdeps/unix/sysv/linux/sysconf.c: New file.
565 * sysdeps/unix/sysv/linux/kernel-features.h: Define
78c3fb45 566 __ASSUME_POSIX_TIMERS for Linux 2.5.63 and up.
885bafa1
UD
567 * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
568 _POSIX_MONOTONIC_CLOCK.
569
bb0ddc2f
RM
5702003-03-02 Roland McGrath <roland@redhat.com>
571
8f3846a9
RM
572 * scripts/merge-abilist.awk: More checks for bogus input.
573 Uniquify duplicate config names.
574
575 * scripts/abilist.awk: Don't distinguish weak symbols in normal output.
576
7551556f
RM
577 * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): Renamed
578 from dl_reloc_overflow, make global.
579 (__process_machine_rela): Update callers.
580 * sysdeps/powerpc/powerpc32/dl-machine.h: Declare _dl_reloc_overflow.
581 Add attribute_hidden to __process_machine_rela decl.
582 (elf_machine_type_class, elf_machine_rela): Handle 16-bit TLS relocs.
583
3a601d31
RM
584 * sysdeps/generic/libc-start.c (__libc_start_main): Don't assign const
585 variable.
586
bb0ddc2f
RM
587 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
588 Don't use weak_extern for dl_rtld_map. Instead check only if [SHARED].
589 (elf_machine_rela): Clean up.
590
591 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Clean up.
592
593 PowerPC TLS support contributed by Paul Mackerras <paulus@samba.org>.
594 * sysdeps/powerpc/powerpc32/elf/configure.in: New file.
595 * sysdeps/powerpc/powerpc32/elf/configure: New generated file.
596 * elf/tls-macros.h [__powerpc__ && !__powerpc64__]
597 (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Define them.
598 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Support
599 new relocs for TLS.
600
601 * sysdeps/powerpc/dl-tls.h (TLS_TP_OFFSET, TLS_DTV_OFFSET): Move these
602 macros out of [SHARED].
603 (TLS_TPREL_VALUE, TLS_DTPREL_VALUE): New macros.
604
605 * elf/elf.h: Define R_PPC_* relocs for TLS support.
606 Clean up R_PPC64_* macro definition comments.
7ed33cba 607
d1149385
RM
608 * configure.in: In "running configure fragment for" message,
609 omit $srcdir from the name if we prepended it.
610 * configure: Regenerated.
611
7ed33cba
RM
612 * elf/dl-reloc.c (allocate_static_tls): Fix calculations.
613 From Jakub Jelinek <jakub@redhat.com>.
614
615 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Revert last change,
616 which duplicated the O_DIRECT defn.
617
6182003-03-01 GOTO Masanori <gotom@debian.or.jp>
619
620 * stdlib/stdlib.h: Add missing __USE_BSD enclosure for BSD derived
621 random functions.
622
4191f43d
AS
6232003-03-01 Andreas Schwab <schwab@suse.de>
624
7ed33cba
RM
625 * resolv/Makefile (tests): Don't depend on
626 $(objpfx)mtrace-tst-leaks when cross compiling.
627
4191f43d
AS
628 * sysdeps/m68k/dl-machine.h (_dl_start_user): Access
629 __libc_stack_end through GOT since it is a global symbol.
630
85c54a32
UD
6312003-03-01 GOTO Masanori <gotom@debian.or.jp>
632
633 * argp/argp.h: Fix a typo.
634 Reported by H.S.Teoh <hsteoh@quickfur.ath.cx>.
635
636 * manual/terminal.texi: Fix cfmakeraw() definition from int to void.
637
6382003-02-27 Pat Rankin <rankin@pactechdata.com>
639
640 * posix/regexec.c (proceed_next_node): Cast re_string_get_buffer to
641 char *.
642 (get_subexp): Likewise.
643
a6861e64
UD
6442003-03-01 GOTO Masanori <gotom@debian.or.jp>
645
646 * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECT): Define.
647
6482003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
649
650 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_DIRECT): Define.
651
a6963e69
RM
6522003-02-27 Roland McGrath <roland@redhat.com>
653
654 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Remove
655 special case for dl_rtld_map in R_PPC64_RELATIVE; it's harmless to
656 repeat it and avoids the test for the common case.
657 Clean up and fix calculations for TLS relocs.
658
659 * sysdeps/powerpc/powerpc64/dl-tls.h: Moved to ...
660 * sysdeps/powerpc/dl-tls.h: ... here.
661 (TLS_TP_OFFSET): New macro.
662
663 * sunrpc/svc_udp.c (svcudp_recv): Add a cast to last change.
664
427f5fa1
UD
6652003-02-27 Ulrich Drepper <drepper@redhat.com>
666
667 * sysdeps/i386/fpu/libm-test-ulps: Increase ULPs for yn due to
668 code generation changes in recent gcc.
669
73a061bb
RM
6702003-02-26 Steven Munroe <sjmunroe@us.ibm.com>
671
672 * sysdeps/powerpc/fpu/fpu_control.h (_FPU_GETCW, _FPU_SETCW):
673 Rename argument to avoid symbol conflict.
674
675 * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
676 [__USE_GNU] (O_DIRECT): New macro.
677
d2637c70
UD
6782003-02-24 David Mosberger <davidm@hpl.hp.com>
679
680 * sysdeps/unix/sysv/linux/ia64/sysdep.S (__syscall_error): Fix
681 unwind info.
682
d148ed25
UD
6832003-02-27 Ulrich Drepper <drepper@redhat.com>
684
e361e438
UD
685 * resolv/res_libc.c [USE___THREAD] (_res): Don't need the
686 initializer anymore now that res_thread_freeres is more careful.
687
d148ed25
UD
688 * sunrpc/svc_udp.c (svcudp_recv): Remove all control messages
689 except the PKTINFO. Reset interface in PKTINFO.
dbf6131c 690 Patch by Neil Brown <neilb@cse.unsw.edu.au> [PR libc/4973].
d148ed25 691
fec41719
RM
6922003-02-25 Steven Munroe <sjmunroe@us.ibm.com>
693
d148ed25
UD
694 * elf/elf.h: Add new R_PPC64_* relocs for TLS.
695 * elf/tls-macros.h [__powerpc64__] (TLS_LE, TLS_IE, TLS_LD, TLS_GD):
696 Define.
fec41719
RM
697 * sysdeps/powerpc/powerpc64/elf/configure.in: New file.
698 * sysdeps/powerpc/powerpc64/elf/configure: New file (generated).
afafddab
RM
699 * sysdeps/powerpc/powerpc64/dl-machine.h: Support new TLS relocs.
700 * sysdeps/powerpc/powerpc64/dl-tls.h: New file.
fec41719 701
d148ed25 702 * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
fec41719
RM
703 Do DL_SYSDEP_OSCHECK here, matching 2002-12-01 change to generic file.
704
56ce76ea
AJ
7052003-02-25 Andreas Jaeger <aj@suse.de>
706
707 * manual/memory.texi (Malloc Tunable Parameters): Clarify
708 behaviour of M_MMAP_THRESHOLD.
709
724fad20
RM
7102003-02-25 Roland McGrath <roland@redhat.com>
711
712 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is
713 zero, inidicating _res was not initialized yet.
714
80d80779
UD
7152003-02-24 Ulrich Drepper <drepper@redhat.com>
716
717 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Remove EACCES
718 test.
719
81b47a8b
RM
7202003-02-24 Roland McGrath <roland@redhat.com>
721
722 * sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
723
de217051
RM
7242003-02-23 Roland McGrath <roland@redhat.com>
725
726 * sysdeps/posix/pause.c: New file.
727 * sysdeps/unix/common/pause.c: File removed.
728
fd1a0d0c
UD
7292003-02-23 Ulrich Drepper <drepper@redhat.com>
730
cdd8e46f
UD
731 * sysdeps/generic/bits/confname.h: Remove #ifs.
732
5a6bbb41
UD
733 * posix/Makefile (CFLAGS-regex.c): Remove RE_ENABLE_I18N definition.
734 * posix/regex_internal.h (RE_ENABLE_I18N): Pretty printing.
735
fd1a0d0c
UD
736 * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
737 element to -1.
738
249062b0
UD
7392003-02-22 Ulrich Drepper <drepper@redhat.com>
740
741 * sysdeps/generic/dl-sysdep.c: Avoid warning.
742
92cc462c
RM
7432003-02-22 Roland McGrath <roland@redhat.com>
744
ce84ab61
RM
745 * resolv/tst-leaks.c: New file by Daniel Jacobowitz <drow@mvista.com>.
746 * resolv/Makefile (tests): Add tst-leaks.
747 ($(objpfx)tst-leaks): Depend on $(objpfx)libresolv.so.
748 (tst-leaks-ENV): New variable.
749 ($(objpfx)mtrace-tst-leaks): New target.
750 (tests): Depend on it.
751
d2d442a5
RM
752 * include/libc-internal.h: Declare __libc_thread_freeres.
753
7a0c303e
RM
754 * Makerules: Fix last change to use $($(subdir)-version) when set.
755
cc8bfce9
RM
756 * Makerules (install-lib-nosubdir): Depend on installed
757 libfoo-X.Y.Z.so and libfoo.so.NN files so they are installed
758 regardless of the libfoo.so target's dependencies.
759
92cc462c
RM
760 * MakeTAGS (sub-make-vars): New variable, includes generating=t.
761 Use that in $(MAKE) calls.
762
e57f9f75
UD
7632003-02-22 Ulrich Drepper <drepper@redhat.com>
764
819c56e7
UD
765 * catgets/gencat.c (read_input_file): Collision between
766 auto-assigned numbers and user-defined nubmers is not fatal.
767 Handle it.
768 Patch by Michael M. Lampkin <michael.lampkin@ieee.org>.
c780aa21
UD
769 * catgets/Makefile: Add rules to run test2.msg test.
770 * catgets/test2.msg: New file.
819c56e7
UD
771
772 * catgets/gencat.c (main): Return 1 if messages have been printed.
773
757f9fcb
UD
774 * iconv/iconv_prog.c (main): Unify messages.
775
e57f9f75
UD
776 * stdlib/strtod.c (INTERNAL): Remove bogus clearing of second word
777 when shifting retval.
778 * stdlib/tst-strtod.c (main): Add strtold test case.
779 Reported by Fred J. Tydeman <tydeman@tybor.com>.
780
e8783fd5
RM
7812003-02-21 Roland McGrath <roland@redhat.com>
782
2a3d906e
RM
783 * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT.
784 * sunrpc/rpc_thread.c: Likewise for text_set_element use.
785 (__rpc_thread_destroy): Add it to __libc_subfreeres too.
786
787 * include/resolv.h: Add libc_hidden_proto for __res_nclose.
788 * resolv/res_init.c (__res_nclose): Add libc_hidden_def.
789 (res_thread_freeres): New function, on __libc_thread_subfreeres and
790 __libc_subfreeres.
791
792 * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres.
e8783fd5
RM
793 * malloc/thread-freeres.c: New file.
794 * malloc/Makefile (aux): Add it.
2a3d906e 795 * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed.
e8783fd5
RM
796 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Put in special section
797 "__libc_thread_freeres_fn" and add to __libc_thread_subfreeres set.
798
799 * sysdeps/unix/sysv/linux/i386/geteuid.c (__geteuid): Typo fix.
800 * sysdeps/unix/sysv/linux/i386/getgid.c (__getgid): Typo fix.
801
8022003-02-21 Roland McGrath <roland@frob.com>
803
804 * sysdeps/mach/hurd/opendir.c (__opendir): Use O_NONBLOCK in open.
805
806 * iconvdata/Makefile (tests): Add bug-iconv3 only if
807 [$(have-thread-library) = yes].
808
1c848253
UD
8092003-02-21 Ulrich Drepper <drepper@redhat.com>
810
9c03686d
UD
811 * sysdeps/unix/sysv/linux/bits/signum.h (__SIGRTMAX): Define as _NSIG.
812
1c848253
UD
813 * sysdeps/unix/sysv/linux/i386/getuid.c: Use INTERNAL_SYSCALL and do
814 not chechk for errors (unless testing for 32bit variant).
815 * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
816 * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
817 * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
818
6f50cb00
UD
8192003-02-21 Jakub Jelinek <jakub@redhat.com>
820
821 * sysdeps/x86_64/dl-machine.h (elf_machine_rela) <R_X86_64_PC32>:
822 Check for signed overflow, not unsigned.
823
cef0a48d
UD
824 * sysdeps/sparc/sparc64/elf/configure.in: New file.
825 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep-CFLAGS):
826 Use -fcall-used-g6, not -fcall-used-g7.
827
dd3608b9
AJ
8282003-02-21 Andreas Jaeger <aj@suse.de>
829
830 * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
831 mode.
832
833 * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not
834 clear whole mxcsr but only exceptions.
835
59fed0e2
RM
8362003-02-21 Roland McGrath <roland@redhat.com>
837
838 * Makerules: Filter $(install-lib-ldscripts) out of list of targets
839 for libfoo.so that need $(make-link) rules.
840
36f0ccda
RM
8412003-02-21 Roland McGrath <roland@frob.com>
842
843 * sysdeps/mach/hurd/bits/typesizes.h (__DEV_T_TYPE): Use __U32_TYPE
844 to match existing struct stat layout in mig protocols.
845
ec503662
UD
8462003-02-20 Ulrich Drepper <drepper@redhat.com>
847
848 * version.h (VERSION): Bump to 2.3.2.
849
850 * elf/Makefile (distribute): Add reldep9.c, tst-array1.exp,
851 tst-array2.exp, tst-array4.exp, tst-array2dep.c, check-textrel.c,
852 and dl-sysdep.h.
853 * sysdeps/generic/Dist: Add sysdep-cancel.h.
854 * sysdeps/powerpc/nofpu/Dist: Add soft-supp.h.
855 * sysdeps/unix/Dist: Add s-proto-bp.S and s-proto-cancel.S.
856 * sysdeps/unix/sysv/linux/Dist: Add pathconf.h.
857 * sysdeps/unix/sysv/linux/i386/Dist: Add bp-thunk.h.
858 * sysdeps/unix/sysv/linux/powerpc/powerpc64/Dist: Add fe_nomask.c and
859 ucontext_i.h.
860 * Makefile (distribute): Add include/stubs-prologue.h,
861 include/gnu/stubs.h, scripts/merge-abilist.awk, and
862 scripts/extract-abilist.awk.
863
af57745c
RM
8642003-02-20 Roland McGrath <roland@redhat.com>
865
866 * math/Makefile (distribute): Don't add generated files.
867
6314208a
UD
8682003-02-20 Ulrich Drepper <drepper@redhat.com>
869
6314208a
UD
870 * math/Makefile: Rearrange variable definitions slightly to get
871 definition in the right order.
872
ab10a294
RM
8732003-02-20 Roland McGrath <roland@redhat.com>
874
875 * Makerules: Clean up conditional around include of tls.make.
876 * Make-dist: Export generating=t to prevent using that.
877 (+distinfo): Likewise for $(shell $(MAKE) ...) runs.
878
54e1cabc
UD
8792003-02-20 Ulrich Drepper <drepper@redhat.com>
880
881 * inet/rcmd.c (rresvport_af): Avoid using invliad values. Wrap
882 around in search if port IPPORT_RESERVED/2 has been test.
883
ec503662 8842002-02-20 Paolo Bonzini <bonzini@gnu.org>
54e1cabc
UD
885
886 * posix/regcomp.c: Remove inclusions.
887 * posix/regexec.c: Likewise.
888 * posix/regex_internal.c: Likewise.
889 * posix/regex_internal.h: Add inclusions here.
890 * posix/regex.c: Only include sys/types.h before regex.h. Include
891 regex_internal.h here. Include regex_internal.c before regcomp.c
892 and regexec.c (might expose more opportunities to the C compiler).
893
894 * posix/regcomp.c (parse_expression): Fix construct rejected by SGI CC.
895
896 * posix/regex_internal.h [!_LIBC] (__mempcpy): Fix typo.
897 [!_LIBC] (__wcrtomb): New definition.
898 [!_LIBC]: Conditionalize enabling of I18N on HAVE_WCSCOLL and
899 HAVE_LOCALE_H as well.
900
6eb74f33
UD
9012003-02-20 Ulrich Drepper <drepper@redhat.com>
902
903 * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Remove obsolete
904 patch to check for system call errors.
905
05856976
UD
9062002-07-24 Philip Blundell <philb@gnu.org>
907
908 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Yield ENODEV
909 on unknown systems.
910
9112003-02-20 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
912
913 * sysdeps/powerpc/powerpc32/atomicity.h: Remove compiler workaround.
914 * sysdeps/unix/sysv/linux/kernel-features.h
915 (__ASSUME_NEW_PRCTL_SYSCALL): Defined for ppc32 too.
916 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: Use prctl
917 if possible.
918 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Avoid short
919 interprocedure branches.
920 * sysdeps/powerpc/soft-fp/Dist (sim-full.c, fenv_const.c): Move to...
921 * sysdeps/powerpc/nofpu/Dist: ...here.
922 * sysdeps/unix/sysv/linux/powerpc/Dist (fe_nomask.c): Move to...
923 * sysdeps/unix/sysv/linux/powerpc/powerpc32/Dist: ...here.
924 * sysdeps/unix/sysv/linux/s390/s390-64/Dist (kernel_stat.h): Delete.
925 * sysdeps/unix/sysv/linux/sparc/Dist (bits/utmpx.h): Delete.
926 * sysdeps/unix/sysv/linux/x86_64/Dist (bits/utmpx.h): Delete.
927
a592f998
UD
9282003-02-18 Alan Modra <amodra@bigpond.net.au>
929
930 * sysdeps/powerpc/powerpc32/sysdep.h (HIDDEN_JUMPTARGET): Redefine.
931
44ed664b
UD
9322003-02-20 Philip Blundell <philb@gnu.org>
933
934 * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Add
935 missing arguments to INTERNAL_SYSCALL_ERROR_P and
936 INTERNAL_SYSCALL_ERRNO.
937
ffdcfcb0
UD
9382003-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
939
940 * sysdeps/unix/sysv/linux/s390/s390-32/chown.c (__real_chown): Test
941 for __ASSUME_32BITUIDS.
942
4b2ed419
AS
9432003-02-20 Andreas Schwab <schwab@suse.de>
944
945 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Add MADV_* and
946 POSIX_MADV_* constants.
947
01b28852
UD
9482003-02-20 Kaz Kojima <kkojima@rr.iij4u.or.jp>
949
950 * sysdeps/unix/sysv/linux/sh/pread.c: New file.
951 * sysdeps/unix/sysv/linux/sh/pread64.c: New file.
952 * sysdeps/unix/sysv/linux/sh/pwrite.c: New file.
953 * sysdeps/unix/sysv/linux/sh/pwrite64.c: New file.
954
a70e514b
UD
9552003-02-19 Jiro Sekiba <jir@yamato.ibm.com>
956
957 * iconvdata/utf-16.c (gconv_end): Fix range of low surrogate.
958
ade67411
RM
9592003-02-16 Roland McGrath <roland@redhat.com>
960
961 * signal/signal.h: Include <sys/ucontext.h>, not <ucontext.h>.
962
1c524710
UD
9632003-02-19 Ulrich Drepper <drepper@redhat.com>
964
01b28852 965 * stdlib/strtod.c (INTERNAL): Up the safety margin for cutting off
1c524710 966 decimal input digits.
b5f7b119 967 * stdlib/tst-strtod.c (main): Add test for strtof bug.
1c524710 968
2f7dc594
UD
9692003-02-18 Ulrich Drepper <drepper@redhat.com>
970
971 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Recognize
972 invalid file descriptors and missing access permissions.
973
46d7e2ba
UD
9742003-02-17 Ulrich Drepper <drepper@redhat.com>
975
8bd3f184 976 * nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 if no entry has
2cfe49db
UD
977 been found.
978
46d7e2ba
UD
979 * sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
980 TTY_NAME_MAX and not the _POSIX_* minimal value macros.
981 * sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
982 and LOGIN_NAME_MAX.
983
b2740a3b
UD
9842003-02-17 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
985 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
986
987 * sysdeps/powerpc/elf/libc-start.c: Handle NONTLS_INIT_TP.
988 * sysdeps/powerpc/powerpc32/__longjmp.S: Remove R2 handling.
989 * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
990 * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
991 * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
992
81b50572
UD
9932003-02-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
994
995 * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Delete.
996 * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Delete.
997 * sysdeps/unix/sysv/linux/powerpc/pread64.c: Delete.
998 * sysdeps/unix/sysv/linux/powerpc/pread.c: Delete.
999 * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Delete.
1000 * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Delete.
1001
1002 * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: Move file...
1003 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fe_nomask.c: ...here.
1004 * sysdeps/unix/sysv/linux/powerpc/glob64.c: Move file...
1005 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: ...here.
1006
1007 * sysdeps/unix/sysv/linux/tcgetattr.c: Use INLINE_SYSCALL.
1008 * sysdeps/unix/sysv/linux/tcsetattr.c: Likewise.
1009 * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Delete.
1010 * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Delete.
1011
fdcd8f9c
UD
10122003-02-14 Thorsten Kukuk <kukuk@suse.de>
1013
1014 * nss/getent.c (print_hosts): Print all IP addresses of one host.
1015
7125d3cf
RM
10162003-02-15 Roland McGrath <roland@frob.com>
1017
8321ef15
RM
1018 * sysdeps/mach/hurd/tls.h: New file.
1019 * sysdeps/mach/hurd/i386/tls.h: New file.
1020
b0104b6f
RM
1021 * mach/errsystems.awk: Include <errno.h> in generated output.
1022
7125d3cf
RM
1023 * sysdeps/mach/Makefile (mach-before-compile rule): Pass generating=t,
1024 use target mach-before-compile instead of generated.
1025 (mach-before-compile): New target.
1026 * Makerules: Disable use of tls.make if $(generating) is set.
1027 * mach/Makefile: Include mach-syscalls.mk even if no_deps=t.
1028 * sysdeps/mach/hurd/Makefile: Make generated hurd headers depend on
1029 mach-shortcuts.h so mach/ generation happens before hurd/.
1030
47202270
UD
10312003-02-14 Ulrich Drepper <drepper@redhat.com>
1032
a439bb2f
UD
1033 * sysdeps/i386/fpu/s_nextafterl.c: Decrement high word of mantissa
1034 of demorm correctly if low word is zero.
1035 Reported by Fred J. Tydeman <tydeman@tybor.com>.
757de559
UD
1036 * math/libm-test.inc (nextafter_test): New test, but disabled due
1037 to gcc bug.
a439bb2f 1038
47202270
UD
1039 * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread
1040 counter and only call __exit_thread if this is not the last thread.
1041
dac0f772
UD
10422003-02-13 Jakub Jelinek <jakub@redhat.com>
1043
1044 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of
1045 subtracting map->l_tls_offset.
1046
7437cbd1
UD
10472003-02-12 Ulrich Drepper <drepper@redhat.com>
1048
2067577c
UD
1049 * sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and
1050 _CS_GNU_LIBPTHREAD_VERSION.
1051 * posix/conststr.c: Handle these new values.
1052 * posix/getconf.c: Likewise.
1053
7437cbd1
UD
1054 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE): Fix
1055 masking of version index.
1056 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
1057
969c9da7
UD
10582003-02-11 Ulrich Drepper <drepper@redhat.com>
1059
1060 * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Compute alignment
1061 correctly. Reported by Thorsten Kukuk.
1062
e5ffa64a
UD
10632003-02-10 Ulrich Drepper <drepper@redhat.com>
1064
1065 * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and
1066 _BSD_SOURCE to compiler.
1067 * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings.
1068 Patches by Alan Modra.
1069
34c86f42
UD
10702003-02-08 Ulrich Drepper <drepper@redhat.com>
1071
1072 * io/ftwtest.c: Get current working directory before and after the
1073 nftw call and make sure they match.
1074
10752003-02-08 Jim Meyering <jim@meyering.net>
1076
2067577c 1077 * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
34c86f42
UD
1078 the current directory, not just when DIR contains a slash.
1079 Reported by Manoj Srivastava.
1080
ae9ecd08
UD
10812003-02-07 Jim Meyering <jim@meyering.net>
1082
1083 * io/ftw.c: Add autoconf-recommended block of alloca-related code.
1084 Include autoconf-recommended block of dirent/NAMELEN-related
1085 definitions and includes. Use NAMELEN throughout, rather than
1086 _D_EXACT_NAMLEN.
1087 [_LIBC]: Define NAMELEN to _D_EXACT_NAMLEN.
1088 [!_LIBC] (__getcwd): Define to xgetcwd and declare xgetcwd.
1089 (stpcpy): Declare, if necessary.
1090 (mempcpy): Define, if necessary.
1091 [!_LIBC] (__stpcpy, __mempcpy): Define.
1092 [!_LIBC] (LXSTAT, XSTAT): Define.
1093 (lstat) [!LIBC && !LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define to rpl_lstat.
1094 (find_object): Don't use c99-style struct initializer.
1095 Tweak wording in a couple comments.
1096
2a051a7d
UD
10972003-02-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1098
1099 * elf/tls-macros.h: Add non-PIC TLS macros and fix clobber list
1100 for SH.
1101 * sysdeps/unix/sysv/linux/sh/brk.c: Add SYSCALL_INST_PAD
1102 after the trapa instruction.
1103 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Add additional
1104 parameters.
1105 * sysdeps/unix/sysv/linux/sh/sh4/sysdep.h: New file.
1106 (NEED_SYSCALL_INST_PAD): Define.
1107 * sysdeps/unix/sysv/linux/sh/sys/user.h (start_thread): Undef to
1108 avoid to use definition for the kernel.
1109 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
1110 Save and restore the frame pointer.
1111 (SYSCALL_INST_PAD): Define.
1112 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
1113 (INTERNAL_SYSCALL): Make use of ERR parameter. Add SYSCALL_INST_PAD
1114 after trapa instruction.
1115 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
1116 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
1117
1f503475
UD
11182003-02-07 Jakub Jelinek <jakub@redhat.com>
1119
1120 * resolv/res_libc.c (_res): Ensure _res is not common symbol,
1121 so that it can have aliases.
1122 * inet/herrno.c (h_errno): Put it into .bss not .data section.
1123
eecc378c
UD
11242003-02-07 Ulrich Drepper <drepper@redhat.com>
1125
1126 * elf/dl-runtime.c (fixup): Correct typo in version index computation.
1127 (profile_fixup): Likewise.
1f503475 1128 Patch by Lance Larsh <Lance.Larsh@oracle.com>.
eecc378c 1129
ce96c93d
UD
11302002-11-24 Robert Love <rml@tech9.net>
1131
1132 * posix/sched.h: Second parameter of sched_setaffinity and
1133 sched_getaffinity is `unsigned int', not `unsigned long'.
1134 * sysdeps/generic/sched_setaffinity.c: Likewise.
1135 * sysdeps/generic/sched_getaffinity.c: Likewise.
1136
e0f86659
UD
11372003-02-05 Ulrich Drepper <drepper@redhat.com>
1138
432cf458 1139 * debug/catchsegv.sh: Fix typo in error messsage.
ce96c93d 1140 Reported by John Levon <levon@movementarian.org>.
432cf458 1141
5cd09cd6
UD
1142 * sysdeps/unix/sysv/linux/posix_fadvise.c: New file.
1143 * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall.
1144 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
1145 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1146 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
1147 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1148 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1149
e0f86659
UD
1150 * libio/putwc_u.c: Use _IO_putwc_unlocked, not _IO_putc_unlocked.
1151 Patch by Moritz Schulte <moritz@duesseldorf.ccc.de>.
1152
5049f197
UD
11532003-02-05 Jim Meyering <jim@meyering.net>
1154
1155 Fix a heap-corrupting bug.
1156 * io/ftw.c: Include <limits.h>.
1157 (PATH_MAX) [!defined PATH_MAX]: Define to 1024.
1158 (process_entry): Allocate enough space to hold the resulting
1159 file name. Don't presume that 2*dirbufsize is enough.
1160 (ftw_startup): Always use PATH_MAX to compute buffer size, now that
1161 it is guaranteed to be defined.
1162
6f1cff95
UD
11632003-02-04 Ulrich Drepper <drepper@redhat.com>
1164
1165 * iconvdata/Makefile: Add rules to build and run bug-iconv3.
1166 * iconvdata/bug-iconv3.c: New file.
1167
b33b0d0d
UD
11682003-02-04 Martin Schwidefsky <schwidefsky@de.ibm.com>
1169
1170 * sysdeps/unix/sysv/linux/s390/system.c: New file.
1171
6900ded2
UD
11722003-02-03 Jakub Jelinek <jakub@redhat.com>
1173
1174 * sysdeps/sparc/sparc32/elf/configure.in (BROKEN_SPARC_WDISP22): New
1175 check.
1176 * config.h.in (BROKEN_SPARC_WDISP22): Add.
1177
663684b2
UD
11782003-02-03 Ulrich Drepper <drepper@redhat.com>
1179
1180 * sysdeps/i386/i686/memmove.S: New file.
1181
3e4fc359
UD
11822003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
1183
1184 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c:
1185 Include kernel-features.h
1186 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
1187 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
1188 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
1189 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1190
75dec09e
UD
11912003-02-02 Jakub Jelinek <jakub@redhat.com>
1192
1193 * elf/tls-macros.h [sparc] (TLS_LD, TLS_GD): Add "cc" clobbers.
1194
78e88510
UD
11952003-01-25 Jim Meyering <jim@meyering.net>
1196
1197 * io/ftw.c (object_compare): Compare inode numbers before device
1198 numbers, since the former are much more likely to differ.
1199
38e68573
UD
12002003-02-01 Ulrich Drepper <drepper@redhat.com>
1201
1202 * time/tzfile.c (__tzfile_compute): Change return value type to
1203 void. Adjust return statements.
1204 * include/time.h (__tzfile_compute): Adjust prototype.
1205
12062003-02-01 Jim Meyering <jim@meyering.net>
1207
1208 * time/tzset.c (__tz_convert): Remove dead code; __tzfile_compute
1209 always returns 1.
1210
12112003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
1212
1213 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
1214 [!__ASSUME_NEW_PRCTL_SYSCALL]: Noop prctl syscall and set ENOSYS.
1215
12162003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
1217
1218 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
1219 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Generate ENOSYS stub.
1220 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
1221 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
1222 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1223 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
1224 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1225 [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Likewise.
1226
12272003-01-31 Steven Munroe <sjmunroe@us.ibm.com>
1228
1229 * sysdeps/unix/sysv/linux/configure.in: Change arch_minimum_kernel
1230 back to 2.4.19 for powerpc64.
1231 * sysdeps/unix/sysv/linux/kernel-features.h
1232 (__ASSUME_NEW_PRCTL_SYSCALL): Define for powerpc64.
1233 (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Define for powerpc64.
1234
12352003-02-01 Ulrich Drepper <drepper@redhat.com>
1236
1237 * wcsmbs/wcscpy.c (wcscpy): Add alternative implementation for
1238 platforms with strange alignment requirements on wchar_t.
1239
b67fcc1e
UD
12402003-01-31 Andreas Schwab <schwab@suse.de>
1241
1242 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove __GI_*
1243 aliases, already added by make-syscalls.sh.
1244 * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
1245 * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
1246 * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
1247 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1248 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1249 * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
1250 * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
1251 * sysdeps/unix/inet/syscalls.list: Likewise.
1252 * sysdeps/unix/syscalls.list: Likewise.
1253
fb784fd5
AS
12542003-01-31 Andreas Schwab <schwab@suse.de>
1255
1256 * sysdeps/m68k/Makefile (sysdep-CFLAGS): Don't define, not needed
1257 any more.
1258
c4c1336c
UD
12592003-01-30 Jakub Jelinek <jakub@redhat.com>
1260
1261 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Use lg,
1262 not l to load tls from stack.
1263
d6f5e721
RM
12642003-01-30 Roland McGrath <roland@redhat.com>
1265
1266 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for
1267 null argument before all else.
1268 Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
1269
7ba7c829
UD
12702003-01-30 Jakub Jelinek <jakub@redhat.com>
1271
1272 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_lazy_rel):
1273 Move to RESOLVE protected part of the header.
1274 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_lazy_rel):
1275 Likewise.
1276
12772003-01-30 Ulrich Drepper <drepper@redhat.com>
1278
1279 * stdio-common/Makefile (tests): Add bug15.
1280 (bug15-ENV): Define.
1281 * stdio-common/bug15.c: New file.
1282
886d5973
UD
12832002-10-07 Wolfram Gloger <wg@malloc.de>
1284
1285 * malloc/malloc.c (sYSMALLOc): Only check for breakage due
1286 to foreign sbrk()'s if arena is contiguous. Bug report from
1287 Bruno Haible <bruno@clisp.org>.
1288
12892003-01-30 Jakub Jelinek <jakub@redhat.com>
1290
1291 * sysdeps/s390/libc-tls.c: Include stdlib.h.
1292
12932003-01-30 Jakub Jelinek <jakub@redhat.com>
1294
1295 * stdio-common/vfprintf.c (vfprintf): Only subtract lowest 3 bits of
1296 ps.__count.
1297
12982003-01-30 Ulrich Drepper <drepper@redhat.com>
1299
1300 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Fix storing and
1301 restoring of %r6.
1302 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise. Use
1303 64-bit load.
1304 Patch by Martin Schwidefsky <schwidefsky@de.ibm.com>.
1305
13062003-01-30 Jakub Jelinek <jakub@redhat.com>
1307
1308 * elf/dl-reloc.c (CHECK_STATIC_TLS): Move _dl_signal_error...
1309 (allocate_static_tls): ...here. Add __attribute_noinline__.
1310 Don't return on failure.
1311 (_dl_reloc_bad_type): Add __attribute_noinline__.
1312 * elf/do-rel.h (elf_dynamic_do_rel): Add
1313 __attribute__((always_inline)).
1314 * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
1315 elf_machine_rel_relative, elf_machine_rela_relative,
1316 elf_machine_lazy_rel): Add prototypes with
1317 __attribute__((always_inline)).
1318
13192003-01-29 David Mosberger <davidm@hpl.hp.com>
1320
1321 * elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
1322
871afd6b
RM
13232003-01-29 Roland McGrath <roland@redhat.com>
1324
1325 * configure.in: Barf if configured in $srcdir.
871afd6b 1326
1e49399d
UD
13272003-01-28 Steven Munroe <sjmunroe@us.ibm.com>
1328
1329 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
1e2f8718 1330 (__fe_nomask_env): Change __prctl call to INTERNAL_SYSCALL.
1e49399d 1331
db34912e
UD
13322003-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
1333
1334 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Reorder additional
1335 clone parameters to match the order used on ia32.
1336 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
1337
e6ebd2e4
UD
13382003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
1339
1340 * elf/elf.h: Add new s390 relocs.
1341 * elf/tls-macros.h: Add s390 versions.
1342 * sysdeps/s390/Versions [GLIBC_2.3] (ld): Export __tls_get_offset.
1343 * sysdeps/s390/dl-tls.h: New file.
1344 * sysdeps/s390/libc-tls.c: New file.
1345 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class): Add TLS
1346 relocs for class PLT.
1347 (elf_machine_rela): Handle TLS relocs.
1348 * sysdeps/s390/s390-64/dl-machine.h: Likewise.
1349 * sysdeps/s390/s390-32/elf/configure.in: Add TLS check.
1350 * sysdeps/s390/s390-64/elf/configure.in: Likewise.
1351 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Add support for
1352 CLONE_CHILD_*TID flags.
1353 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
1354 * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Use branch with 32
1355 bit offset.
1356 * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
1357 * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
1358 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S (__syscall_error):
1359 Support USE___THREAD. Define RTLD_PRIVATE_ERRNO variant.
1360 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S (__syscall_error):
1361 Likewise.
1362 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
1363 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER.
1364 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
1365 variants.
1366 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h:
1367 (SYSCALL_ERROR_LABEL): Move define next to SYSCALL_ERROR_HANDLER. Use
1368 direct branch to syscall_error for !PIC and PIC && !_LIBC_REENTRANT.
1369 (SYSCALL_ERROR_HANDLER): Add USE___THREAD and RTLD_PRIVATE_ERRNO
1370 variants.
1371
772e3426
UD
13722003-01-28 Ulrich Drepper <drepper@redhat.com>
1373
1374 * sysdeps/unix/common/pause.c (do_pause): New function. Split
1375 from __libc_pause. Implement using sigsuspend.
1376 (__libc_pause): Call do_pause to do the real work.
1377
1378 * sysdeps/posix/sigpause.c (do_sigpause): Check range of
1379 sig_or_mask parameter is is_sig != 0.
1380
0566b130
UD
13812003-01-21 Philip Blundell <philb@gnu.org>
1382
1383 * sysdeps/unix/sysv/linux/bits/ioctls.h (SIOCSIFNAME): Define.
1384
a15698cb
UD
13852003-01-27 Steven Munroe <sjmunroe@us.ibm.com>
1386
1387 * stdio-common/Makefile: Add bug14-ENV to set LOCPATH for make check.
1388
b7e033f7
UD
13892003-01-27 Ulrich Drepper <drepper@redhat.com>
1390
e6fb8846
UD
1391 * stdio-common/bug14.c: Use official name for the locale.
1392
1fc46908
UD
1393 * stdio-common/vfprintf.c [USE_IN_LIBIO]: Use _IO_cleanup_region_start
1394 instead of __libc_cleanup_region_start and _IO_cleanup_region_end
1395 instead of __libc_cleanup_region_end.
1396
1397 * sysdeps/unix/sysv/linux/i386/system.c (CLEANUP_HANDLER): Pass 1
1398 as first parameter to __libc_cleanup_region_start.
1399
68ff8426
UD
1400 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c
1401 (__fe_nomask_env): Use __prctl not prctl.
1402 * sysdeps/unix/sysv/linux/syscalls.list: Add __prctl alias for
1403 prctl syscall.
1404
809cd222
UD
1405 * elf/dl-reloc.c (CHECK_STATIC_TLS): Improve error message.
1406
1407 * elf/dl-open.c (_dl_tls_static_size): Bump to 2048.
1408
b7e033f7
UD
1409 * elf/dl-reloc.c (allocate_static_tls): Avoid arithmetic
1410 wrap-around in test.
1411
62f29da7
UD
14122003-01-26 Andreas Schwab <schwab@suse.de>
1413
1414 * sysdeps/wordsize-32/divdi3.c: Export the functions only as
1415 compatibility symbols. Remove INTDEF for __divdi3.
1416 * sysdeps/wordsize-32/lldiv.c: Don't use __divdi3_internal.
1417 * sysdeps/powerpc/powerpc32/divdi3.c: Remove.
1418 * sysdeps/powerpc/powerpc32/Makefile (CPPFLAGS-divdi3.c): Don't
1419 define.
1420 * sysdeps/powerpc/powerpc32/Dist: Remove divdi3.c.
1421
14222003-01-24 Jakub Jelinek <jakub@redhat.com>
1423
1424 * elf/tls-macros.h: Add SPARC 32-bit definitions.
1425 * sysdeps/sparc/sparc32/elf/configure.in: Add TLS check.
1426 * sysdeps/sparc/sparc32/dl-machine.h: Add dl_machine_h guards
1427 for the first half of the header. Include tls.h.
1428 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS
1429 relocs too.
1430 (elf_machine_rela): Handle TLS relocs.
1431 * sysdeps/sparc/dl-tls.h: New file.
1432
1433 * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Add cancellation
1434 support.
1435
1436 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Use %g6 instead of %g7.
1437 * sysdeps/sparc/sparc32/memchr.S: Likewise.
1438 * sysdeps/sparc/sparc32/memcpy.S: Likewise.
1439 * sysdeps/sparc/sparc32/strcat.S: Likewise.
1440 * sysdeps/sparc/sparc32/strchr.S: Likewise.
1441 * sysdeps/sparc/sparc32/strcmp.S: Likewise.
1442 * sysdeps/sparc/sparc32/strcpy.S: Likewise.
1443 * sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Likewise.
1444 * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
1445 * sysdeps/sparc/sparc64/memcpy.S: Likewise.
1446 * sysdeps/sparc/sparc64/stpcpy.S: Likewise.
1447 * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
1448 * sysdeps/sparc/sparc64/strcat.S: Likewise.
1449 * sysdeps/sparc/sparc64/strchr.S: Likewise.
1450 * sysdeps/sparc/sparc64/strcmp.S: Likewise.
1451 * sysdeps/sparc/sparc64/strcpy.S: Likewise.
1452 * sysdeps/sparc/sparc64/strncmp.S: Likewise.
1453 * sysdeps/sparc/sparc64/strncpy.S: Likewise.
1454 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
1455 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
1456
14572003-01-24 Andreas Schwab <schwab@suse.de>
1458
1459 * elf/dl-close.c (_dl_close): Don't relocate DT_FINI_ARRAY
1460 elements, and process them backwards.
1461 * elf/Makefile ($(objpfx)tst-array4): New target.
1462 ($(objpfx)tst-array4.out): Likewise.
1463 (tests) [$(have-initfini-array) = yes]: Add tst-array4.
1464 * elf/tst-array4.c: New file.
1465 * elf/tst-array4.exp: Likewise.
1466
14672003-01-24 Steven Munroe <sjmunroe@us.ibm.com>
1468
1469 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: New file.
1470
14712003-01-27 Guido Guenther <agx@sigxcpu.org>
1472
1473 * sysdeps/unix/sysv/linux/mips/sysdep.h (SYSCALL_ERROR_LABEL): Define.
1474 * sysdeps/unix/sysv/linux/mips/pread.c: Add support for
1475 cancellation handling and handle both __NR_pread64 and __NR_pread.
1476 * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1477 * sysdeps/unix/sysv/linux/mips/pwrite.c: Add support for
1478 cancellation handling and handle both __NR_pwrite64 and __NR_pwrite.
1479 * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
1480 * sysdeps/unix/mips/sysdep.S: Don't set errno in the _LIBC_REENTRANT
1481 case, use register names consistently.
1482
14832003-01-27 Wolfram Gloger <wg@malloc.de>
1484
1485 * malloc/hooks.c (mem2chunk_check): Check alignment of mem
1486 pointer, not of the computed chunk. Bug report from Carlos
1487 O'Donell <carlos@baldric.uwo.ca>.
1488
251c0f71
AS
14892003-01-25 Andreas Schwab <schwab@suse.de>
1490
1491 * sysdeps/m68k/dl-machine.h (_dl_start_user): Use pc-relative
1492 addressing to save GOT entries.
1493
86dfa4eb
RM
14942003-01-21 Jakub Jelinek <jakub@redhat.com>
1495
1496 * sysdeps/unix/alpha/sysdep.h (inline_syscall0,
1497 inline_syscall1, inline_syscall2, inline_syscall3,
1498 inline_syscall4, inline_syscall5, inline_syscall6): Add __volatile__.
1499 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INTERNAL_SYSCALL): Add
1500 __attribute__((unused)) to ChEcK.
1501
d5b6c817
UD
15022003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1503
1504 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INTERNAL_SYSCALL):
1505 Fix inline assembler constraints.
1506 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INTERNAL_SYSCALL):
1507 Likewise.
1508
1509 * sysdeps/s390/s390-64/Makefile (pic-ccflag): Use -fpic instead of
1510 -fPIC.
1511
83c9a671
RM
15122003-01-20 Segher Boessenkool <segher@koffie.nl>
1513
1514 * sysdeps/ieee754/dbl-64/sincos32.c (__mpcos): Really
1515 compute the cosine, not the sine, even if x > 0.8.
1516
b677d674
UD
15172003-01-19 Ulrich Drepper <drepper@redhat.com>
1518
1519 * nis/nss_nis/nis-spwd.c: Make _nss_nis_endspent an alias of
1520 _nss_nis_setspent. Work around the different prototypes.
1521 * nis/nss_nis/nis-rpc.c (internal_nis_setrpcent): Use
1522 internal_nis_endrpcent.
1523 (internal_nis_endrpcent): Change return type to void. Change callers.
1524 * nis/nss_nis/nis-pwd.c: Make _nss_nis_endpwent an alias of
1525 _nss_nis_setpwent. Work around the different prototypes.
1526 * nis/nss_nis/nis-proto.c (_nss_nis_endprotoent): Split out body
1527 of the function to...
1528 (internal_nis_endprotoent): ... here. New function.
1529 (internal_nis_setprotoent): Use internal_nis_endprotoent.
1530 * nis/nss_nis/nis-network.c: Make _nss_nis_endnetent an alias of
1531 _nss_nis_setnetent. Work around the different prototypes.
1532 * nis/nss_nis/nis-netgrp.c (_nss_nis_endnetgrent): Split out body
1533 of the function to...
1534 (internal_nis_endnetgrent): ... here. New function.
1535 (_nss_nis_setnetgrent): Use internal_nis_endnetgrent.
1536
978bd143
UD
15372003-01-19 Jim Meyering <jim@meyering.net>
1538
1539 * time/strftime.c: (widen): Merge nearly-identical definitions.
1540 (nl_get_alt_digit) [! defined my_strftime]: Define.
1541 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
1542 _nl_get_alt_digit and _nl_get_walt_digit.
1543
b1a173f7
UD
15442003-01-19 Ulrich Drepper <drepper@redhat.com>
1545
1546 * time/strftime.c (my_strftime): Handle very large width
1547 specifications for numeric values correctly. Improve checks for
1548 overflow.
1549 * time/Makefile (tests): Add tst-strftime.
1550 * time/tst-strftime.c: New file.
1551
039c1b75
UD
15522003-01-18 Ulrich Drepper <drepper@redhat.com>
1553
6675b191
UD
1554 * nis/nss_nis/nis-hosts.c: Make _nss_nis_endhostent an alias of
1555 _nss_nis_sethostent. Work around the different prototypes.
1556 * nis/nss_nis/nis-grp.c: Make _nss_nis_endgrent an alias of
1557 _nss_nis_setgrent. Work around the different prototypes.
1558 * nis/nss_nis/nis-ethers.c (internal_nis_endetherent): New
1559 function. Split out from _nss_nis_endetherent.
1560 (internal_nis_setetherent): Use internal_nis_endetherent instead of
1561 duplicating the code.
1562 * nis/nss_nis/nis-alias.c: Make _nss_nss_nis_endaliasent an alias
1563 of _nss_nis_setaliasent.
1564 * nis/nss_nis/nis-service.c (internal_nis_setservent): Reuse
1565 internal_nis_endservent code, don't duplicate it.
1566
039c1b75
UD
1567 * inet/rexec.c (rexec_af): Protect socket operations with
1568 TEMP_FAILURE_RETRY. Use writev instead of multiple write.
1569 * inet/rcmd.c (rcmd_af): Likewise.
1570
62431425
RM
15712003-01-17 Roland McGrath <roland@redhat.com>
1572
d32e4346
RM
1573 * math/libm-test.inc (sin_test, cos_test, sincos_test) [TEST_DOUBLE]:
1574 Add test of value 0.80190127184058835.
1575
62431425
RM
1576 * elf/dl-open.c: Fix typo ifdef -> ifndef on _dl_tls_static_size defn.
1577
0f0b7994
UD
15782003-01-17 Richard Henderson <rth@redhat.com>
1579
1580 * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Add TLS
1581 relocs for class PLT.
1582 * sysdeps/alpha/libc-tls.c: New file.
1583 * sysdeps/unix/alpha/sysdep.S (EPILOGUE, GPSAVEREG): New.
1584 (LOADGP) [!PIC]: Rewrite to preserve caller's gp.
1585
15862003-01-17 Jakub Jelinek <jakub@redhat.com>
1587
1588 * sysdeps/unix/sysv/linux/ia64/dl-static.c (_dl_static_init): Use
1589 __libc_lock_{,un}lock_recursive instead of __libc_lock_{,un}lock
1590 on _dl_static_lock.
1591
1d4ff70e
AJ
15922003-01-17 Andreas Jaeger <aj@suse.de>
1593
1594 * stdio-common/bug14.c: Include stdlib.h for exit prototype.
1595
609b4783
UD
15962003-01-16 Steven Munroe <sjmunroe@us.ibm.com>
1597
1598 * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: New file.
1599 * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: New file.
1600 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: New file.
1601 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: New file.
1602 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h: New file.
1603 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: New file.
1604 * sysdeps/unix/sysv/linux/configure.in: Minimum kernel for PPC64
1605 is 2.4.21.
1606
16072003-01-16 Ulrich Drepper <drepper@redhat.com>
1608
1609 * sysdeps/generic/glob.c (glob): Assume sysconf() always returns
1610 values != -1 for _LIBC. Use extend_alloca to reallocate alloca'ed
1611 buffers.
1612
1613 * sysdeps/generic/sysconf.c: Unconditionally implement
1614 _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX.
1615 * sysdeps/posix/sysconf.c: Likewise.
1616
7b7b9e70
UD
16172003-01-16 Jakub Jelinek <jakub@redhat.com>
1618
1619 * posix/regcomp.c (parse_bracket_exp): If build_charclass fails,
1620 set *err to the returned error, not to REG_ESPACE unconditionally.
1621 (build_word_op): Likewise.
1622 * posix/Makefile (tests): Add bug-regex16.
1623 * posix/bug-regex16.c: New test.
1624
850dcfca
UD
16252003-01-16 Jakub Jelinek <jakub@redhat.com>
1626
1627 * elf/dl-load.c (_dl_map_object_from_fd): Use
1628 GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has
1629 been already initialized.
1630
a1f8ec97
UD
16312003-01-15 Dmitry V. Levin <ldv@altlinux.org>
1632
1633 * sysdeps/unix/sysv/linux/ptsname.c: Fix typo in comment.
1634
f811dbdc
UD
16352003-01-16 Jakub Jelinek <jakub@redhat.com>
1636
1637 * posix/regcomp.c (re_compile_internal): If clearing buffer, clear
1638 allocated too. Reported by Al Viro <aviro@redhat.com>.
1639
4dd98447
RM
16402003-01-16 Roland McGrath <roland@redhat.com>
1641
1642 Tweak merged .abilist file format to merge duplicate symbols in
1643 different sets into multi-version stanzas with new "| SET regexp..."
1644 header continuation lines.
1645 * scripts/merge-abilist.awk: Rewritten for new format.
1646 * scripts/extract-abilist.awk: Likewise.
1647
0f740059
UD
16482003-01-15 Ulrich Drepper <drepper@redhat.com>
1649
e09edf23
UD
1650 * nscd/connections.c (nscd_run): Remove bogus return which isn't
1651 necessary with gcc 3.2+.
1652 (nscd_init): Don't use error() to print message, use dbg_log.
1653
ea31b613
UD
1654 * iconv/gconv_simple.c (STORE_REST): Explicitly store the total
1655 expected size into state.
1656 (UNPACK_BYTES): Do the reverse.
41f112ad 1657 * iconv/loop.c: Use CLEAR_STATE if defined to clear __state element.
ea31b613
UD
1658 * wcsmbs/tst-mbrtowc.c (utf8_test_1): Add test for the bug.
1659 Reported by Al Viro <aviro@redhat.com>.
1660
a1a2fec1
UD
1661 * stdio-common/Makefile (tests): Add bug14.
1662 * stdio-common/bug14.c: New file.
1663
0f740059
UD
1664 * stdio-common/vfscanf.c: When recognizing multibyte characters in
1665 string reset the byte counter after mbrtowc reported it is not a
1666 partial character. Reported by Al Viro <aviro@redhat.com>.
1667
c16abc04
UD
16682003-01-15 Steven Munroe <sjmunroe@us.ibm.com>
1669
1670 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Include
1671 sysdep-cancel.h, not sysdep.h.
1672
16732003-01-15 Ulrich Drepper <drepper@redhat.com>
1674
1675 * nscd/connections.c (nscd_run): Protect accept call with
1676 TEMP_FAILURE_RETRY.
1677
c841fa22
AS
16782003-01-15 Andreas Schwab <schwab@suse.de>
1679
1680 * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-bp.d.
1681 (common-generated): Add s-proto-bp.d.
1682 * sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
1683 of bp thunks.
1684 * sysdeps/unix/s-proto-bp.S: New file.
1685 * sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
1686 Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
1687 * sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
1688
73917724
RM
16892003-01-15 Roland McGrath <roland@redhat.com>
1690
1691 * Makerules: Use -include for tls.make, suppresses warning.
1692 Move gen-as-const-headers rules up so before-compile is set in time.
1693 (sed-remove-dotdot): Fix to work right for subdirs or top dir.
1694
c9f24336
UD
16952003-01-15 Ulrich Drepper <drepper@redhat.com>
1696
d4397629
UD
1697 * nscd/nscd.c (main): Make code to close all file descriptors
1698 faster and more robust.
1699
9caf4f1c
UD
1700 * nscd/nscd_getpw_r.c (nscd_getpw_r): Consolidate writing of the
1701 request with one writev call. Protect all read calls with
1702 TEMP_FAILURE_RETRY.
1703 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
1704 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
1705
1706 * nscd/hstcache.c: Use extend_alloca to reallocate alloca'd buffer.
1707 Protect writev calls with TEMP_FAILURE_RETRY.
1708 * nscd/grpcache.c: Likewise.
1709 * nscd/pwdcache.c: Likewise.
1710
c9f24336
UD
1711 * nscd/hstcache.c (addhstbynamev6): Don't interpret hostname as
1712 IPv6 address in debug output.
1713
9ae10332
RM
17142003-01-14 Roland McGrath <roland@redhat.com>
1715
1716 * Makerules (check-abi-%): Use two rules for $(common-objpfx) and
1717 $(objpfx) directories, and get rid of vpath directives. The previous
1718 arrangement resulted in files being written to the source directories
1719 when run in a clean build. Find all .abilist files in $(..)abilist/.
1720 (update-abi-%): Likewise.
1721 (generated): Don't add .symlist files, they'll be intermediates.
1722
1723 * sysdeps/generic/init-first.c: Add a comment.
1724
1725 * elf/Makefile ($(objpfx)ld.so): Pass -z defs in link.
1726
1727 * scripts/gen-as-const.awk: Grok lone "--" as a separator between
1728 #includes and expressions.
1729
1730 * scripts/merge-abilist.awk: Omit cpu-.*-os.*/modifier from merged
1731 config list when it already contains cpu-.*-os.* without / part.
1732
1733 * Makerules (sed-remove-dotdot): New variable.
1734 ($(common-objpfx)%.make): Use it. Depend on $(before-compile).
1735 ($(common-objpfx)%.h $(common-objpfx)%.h.d): Likewise.
1736 (check-abi-config): New variable, append /tls or /notls to the tuple.
1737 (check-abi-%): Use that for -v config value.
1738 Find .abilist files in abilist/libfoo.abilist, not in subdir.
1739 * Rules: Move bits/stdio_lim.h generation rules to Makerules.
1740
a8d87c92
UD
17412003-01-14 Ulrich Drepper <drepper@redhat.com>
1742
1743 * manual/install.texi: Correct description of header preparation for
1744 Linux build. Patch by mhwood@Ameritech.Net [PR libc/4941].
1745
574b892e
UD
17462003-01-14 Guido Guenther <agx@sigxcpu.org>
1747
1748 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_SYSCALL,
1749 INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
1750 INTERNAL_SYSCALL_ERROR_P, INLINE_SYSCALL): Define.
1751
17522003-01-14 Steven Munroe <sjmunroe@us.ibm.com>
1753
1754 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
1755 (INTERNAL_SYSCALL): Make use of ERR parameter.
1756 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
1757 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
1758 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
1759 * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: New file.
1760
2c255347
UD
17612003-01-14 Ulrich Drepper <drepper@redhat.com>
1762
086311a9
UD
1763 * sunrpc/pm_getport.c (pmap_getport): Open TCP socket if protocol
1764 == IPPROTO_TCP.
1765 Patch by James Strandboge <jamie@tpptraining.com> [PR libc/4943].
1766
2f279b14
UD
1767 * sysdeps/unix/sysv/linux/i386/dl-procinfo.c (_dl_x86_cap_flags):
1768 Fix entry for bit 31.
1769
2c255347
UD
1770 * iconvdata/Makefile: Add rules to build IBM866NAV.
1771 * iconvdata/ibm866nav.c: New file.
1772 * iconvdata/tst-tables.sh: Add IBM866NAV.
1773 * iconvdata/gconv-modules: Add entries for IBM866NAV.
1774
642eb2a2
UD
17752003-01-13 Ulrich Drepper <drepper@redhat.com>
1776
1777 * string/tester.c (test_strcpy): Use the previously #if 0'ed code
1778 to test void* parameters.
1779
1780 * sysdeps/i386/i486/bits/string.h (__STRING_SMALLL_GET16): Cast
1781 source pointer before dereferencing.
1782 (__STRING_SMALLL_GET32): Likewise.
1783 (__memset_gc): Add missing parenthesis around macro arguments.
574b892e 1784 Patch by Denis Zaitsev <zzz@cd-club.ru>.
642eb2a2
UD
1785
1786 * sysdeps/i386/i486/bits/string.h (__strspn_cg): Tell the compiler
574b892e 1787 that %eax is modified. Reported by Denis Zaitsev <zzz@cd-club.ru>.
642eb2a2 1788
115bb61d
UD
17892003-01-14 Jakub Jelinek <jakub@redhat.com>
1790
1791 * sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL): Undefined before
1792 defining.
1793
17942003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
1795
1796 * sysdeps/s390/s390-64/initfini.c: Avoid unterminated string literals.
1797 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (L): Don't define it
1798 here.
1799 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (L): Likewise.
1800
18012003-01-13 Martin Schwidefsky <schwidefsky@de.ibm.com>
1802
1803 * sysdeps/s390/s390-32/sysdep.h (JUMPTARGET): Move branch instructions
1804 from here...
1805 (PSEUDO): ... to here.
1806 * sysdeps/s390/s390-64/sysdep.h (JUMPTARGET): Move branch instruction
1807 from here...
1808 (PSEUDO): ... to here.
1809
9ef0a840
UD
18102003-01-13 Ulrich Drepper <drepper@redhat.com>
1811
1812 * locale/programs/charmap-dir.c (charmap_readdir): Use struct
1813 dirent64 instead of struct dirent for dirent. Call readdir64
1814 instead of readdir.
1815
1816 * locale/programs/locfile.c (siblings_uncached): Use struct
1817 dirent64 instead of struct dirent for other_dentry. Call
1818 readdir64 instead of readdir.
1819
1820 * elf/ldconfig.c (direntry): Change type to struct dirent64.
1821 (search_dir): Use readdir64 instead of readdir.
1822 Patch by Zhangfan Xing <xing@pacific.jpl.nasa.gov>.
1823
f1c5213d
RM
18242003-01-12 Roland McGrath <roland@redhat.com>
1825
c01ec9c7
RM
1826 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
1827 not strtol. The former is usable in ld.so, the latter not.
1828
f1c5213d
RM
1829 * include/fcntl.h: Declare __libc_creat.
1830
1831 * sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
1832 libhurduser-link.so-no-z-defs): New variables.
1833
1834 * malloc/malloc.c: Revert last change.
1835 * malloc/malloc.h (_int_*): Move these decls to ...
1836 * include/malloc.h: ... here. Add attribute_hidden.
1837 (_int_valloc): Declare it too.
1838
73398a44
UD
18392003-01-12 Ulrich Drepper <drepper@redhat.com>
1840
115bb61d 1841 * elf/dl-close.c (_dl_close): Fix typo, must be == not = in
1376cd8c
UD
1842 search for removed searchlist. Reported by Roland McGrath.
1843
40212ce0
UD
1844 * io/ftwtest-sh: Add test for case of symlink to nonexisting file
1845 given as start file.
1846
1847 * io/ftw.c (ftw_startup): Use correct name in check for symlink
1848 without existing target. Patch by Jim Meyering.
1849
73398a44
UD
1850 * Makerules (build-shlib-helper): Don't use -z defs linker option
1851 if no-z-defs is defined either.
1852
18532003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
1854
1855 * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Remove unused
1856 file.
1857
18582003-01-10 Martin Schwidefsky <schwidefsky@de.ibm.com>
1859
1860 * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Add vfork.
1861 * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
1862
b2608c22
UD
18632003-01-12 Ulrich Drepper <drepper@redhat.com>
1864
1865 * io/ftwtest-sh: Add test case for relative path with /. at the end.
1866
18672003-01-12 Jim Meyering <jim@meyering.net>
1868
1869 * io/ftw.c (ftw_startup): When trying to stat the starting directory,
1870 use the basename if we've already chdir'd into its parent directory.
1871
a5ce5fcf
UD
18722003-01-12 Ulrich Drepper <drepper@redhat.com>
1873
1874 * io/ftw.c (process_entry): Use relative path when using chdir()
b2608c22 1875 to change directory after call to ftw_dir.
a5ce5fcf
UD
1876 * io/ftwtest-sh: Add test for relative path argument to nftw()
1877 with FTW_CHDIR option.
1878
b398ae3c
UD
18792002-01-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1880
1881 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_VFORK_SYSCALL):
1882 Define for powerpc.
1883 * sysdeps/unix/sysv/linux/powerpc/syscall.S: Take register alignment
1884 into account.
1885 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
1886 (INTERNAL_SYSCALL): Make use of ERR parameter.
1887 (INTERNAL_SYSCALL_DECL, INTERNAL_SYSCALL_ERRNO,
1888 INTERNAL_SYSCALL_ERROR_P): Adjust accordingly.
1889 (INLINE_SYSCALL): Make use of INTERNAL_SYSCALL.
1890 * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: New file.
1891
18922002-01-09 Richard Henderson <rth@redhat.com>
1893
1894 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Compute
1895 DTPREL64 and TPREL64 without loadbase applied.
1896
18972002-01-09 Richard Henderson <rth@redhat.com>
1898
1899 * sysdeps/unix/alpha/sysdep.S: Use correct definition of errno
1900 for NOT_IN_libc.
1901
1902 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Move inline syscall bits...
1903 * sysdeps/unix/alpha/sysdep.h: ... here.
1904 (PSEUDO_LOADGP): Remove.
1905 (PSEUDO_PROLOGUE): Load GP in non-pic case.
1906 (SYSCALL_ERROR_LABEL): New.
1907 (PSEUDO): Use it in error branch.
1908 (PSEUDO_END): Add $syscall_error label.
1909
1f8613a6
AJ
19102003-01-12 Andreas Jaeger <aj@suse.de>
1911
1912 * math/bits/mathcalls.h: Round is a const function.
1913
aff4519d
UD
19142003-01-11 Jim Meyering <jim@meyering.net>
1915
1916 * io/ftw.c [HAVE_CONFIG_H]: Include <config.h>.
1917 [HAVE_SYS_PARAM_H || _LIBC]: Guard inclusion of <sys/param.h>.
1918 Include <sys/stat.h>, not <include/sys/stat.h>, if !_LIBC.
1919 [!_LIBC] (__chdir, __closedir, __fchdir, __getcwd, __opendir): Define.
1920 [!_LIBC] (__readdir64, __tdestroy, __tfind, __tsearch): Define.
1921 [!_LIBC] (internal_function, dirent64, MAX): Define.
1922 (__set_errno): Define if not already defined.
1923 (open_dir_stream): When FTW_CHDIR is enabled, invoke opendir on
1924 the basename, not the entire file name.
1925 (process_entry): When FTW_CHDIR is enabled, invoke XSTAT or LXSTAT on
1926 the basename, not the entire file name.
1927
19282003-01-12 Ulrich Drepper <drepper@redhat.com>
1929
1930 * string/tester.c (test_strcpy): Disable last added strcpy until
1931 it is fixed.
1932
19332003-01-11 Philip Blundell <philb@gnu.org>
1934
1935 * sysdeps/unix/sysv/linux/arm/socket.S: Add cancellation support.
1936
19372003-01-11 Andreas Schwab <schwab@suse.de>
1938
1939 * Makerules: Add vpath for %.dynsym and %.so so that the
1940 implicit rule chaining for check-abi works.
1941
19422003-01-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1943
1944 * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
1945 Add non-PIC case.
1946
19472003-01-11 Jakub Jelinek <jakub@redhat.com>
1948
1949 * elf/tls-macros.h [__ia64__] (__TLS_CALL_CLOBBERS): Define.
1950 [__ia64__] (TLS_LE, TLS_IE): Fix typos. Add ;; at start of asm if
1951 gp is used early.
1952 [__ia64__] (TLS_LD, TLS_GD): Likewise. Use __TLS_CALL_CLOBBERS.
1953 * elf/Makefile ($(objpfx)tst-tlsmod5.so, $(objpfx)tst-tlsmod6.so):
1954 Ensure libc.so in DT_NEEDED.
1955 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Move
1956 CHECK_STATIC_TLS before l_tls_offset use.
1957 * sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela):
1958 Likewise.
1959 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
1960 * sysdeps/generic/dl-tls.c (_dl_allocate_tls_storage) [TLS_DTV_AT_TP]:
1961 Allocate TLS_PRE_TCB_SIZE bytes below result.
1962 (_dl_deallocate_tls) [TLS_DTV_AT_TP]: Adjust before freeing.
1963 * sysdeps/generic/libc-tls.c (__libc_setup_tls): If
1964 TLS_INIT_TP_EXPENSIVE is not defined, allocate even if no PT_TLS
1965 segment has been found. If TLS_DTV_AT_TP, allocate TLS_PRE_TCB_SIZE
1966 bytes below result and add tcb_offset to memsz.
1967 * sysdeps/ia64/dl-tls.h (__tls_get_addr): New prototype.
1968 * sysdeps/ia64/dl-machine.h: Include tls.h.
1969 (elf_machine_type_class): Return ELF_RTYPE_CLASS_PLT for TLS relocs
1970 too.
1971 (elf_machine_rela): Assume if sym_map != NULL sym is non-NULL too.
1972 Handle R_IA64_DTPMOD*, R_IA64_DTPREL* and R_IA64_TPREL* relocations.
1973 * sysdeps/ia64/libc-tls.c: New file.
1974
19752003-01-10 Steven Munroe <sjmunroe@us.ibm.com>
1976
1977 * sysdeps/powerpc/powerpc64/sysdep.h (PSEUDO_RET): Add branch hit.
1978 * sysdeps/unix/sysv/linux/powerpc/bits/stat.h (STAT_VER_LINUX):
1979 Fix type. Move definition out of #if.
1980 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ftruncate64.c: New file.
1981 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: New file.
1982 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: New file.
1983 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: New file.
1984 * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: New file.
1985 * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Add cancellation
1986 support.
1987 * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Remove
1988 ftruncate64, pread64, pwrite64, truncate64 entries.
1989 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
1990 (INLINE_SYSCALL): New version that supports function call like
1991 syscalls. Add __builtin_expect.
1992 (LOADARGS_n): Add argument size safety checks.
1993 (INTERNAL_SYSCALL): New Macro.
1994 * sysdeps/unix/sysv/linux/powerpc/powerpc64/truncate64.c: New file.
1995 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [__PPC_ELF_H]: Avoid
1996 redefinition of elf_fpreg_t and elf_fpregset_t.
1997
19982003-01-12 Ulrich Drepper <drepper@redhat.com>
1999
2000 * elf/dl-close.c (_dl_close): Add several asserts. Correct and
2001 simplify test for unloading. If loader of a DSO is unloaded do not
2002 use its scope anymore. Fall back to own scope and adjust opencounts.
2003 Fix several comments.
2004 * elf/dl-deps.c (_dl_map_object_deps): Always allocate memory for
2005 the l_searchlist, not only for l_initfini.
2006
2007 * elf/dl-lookup.c (add_dependencies): Avoid creating relocation
2008 dependencies if objects cannot be removed. Remove object with the
2009 definition as not unloadable if necessary.
2010
2011 * elf/reldep6.c: Create relocation dependency before closing the first
2012 module.
2013
2014